diff --git a/index.js b/index.js index 156c8fe..d2a0d9a 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,8 @@ import Telegram from "telegram-notify"; import Docker from "dockerode"; -import pjson from "./package.json" assert {type: "json"} ; +//const pjson = require("./package.json"); +import { createRequire } from "module"; +const pjson = createRequire(import.meta.url)("./package.json"); import PushBullet from "pushbullet"; import Pushover from 'node-pushover'; import { Webhook } from 'discord-webhook-node'; diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json index 473efff..ecad78c 100644 --- a/node_modules/.package-lock.json +++ b/node_modules/.package-lock.json @@ -1,6 +1,6 @@ { "name": "monocker", - "version": "2.9.4", + "version": "2.9.5", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package-lock.json b/package-lock.json index 464f4ae..28728ee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "monocker", - "version": "2.9.4", + "version": "2.9.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "monocker", - "version": "2.9.4", + "version": "2.9.5", "license": "MIT", "dependencies": { "discord-webhook-node": "^1.1.8",