Skip to content

Commit

Permalink
Updated pacakge.json code to note throw a warning in console.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersem committed May 14, 2024
1 parent 5688ace commit 8806543
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8806543

Please sign in to comment.