Skip to content

Commit 30e34eb

Browse files
fix syntax error due to assert (#21)
* fix syntax error due to `assert` nodejs/node#52104 (comment) * fix missed assert thanks for pointing it out puxlit * bump nodejs version and regenerate package-lock.json per kocka's request
1 parent a8742a9 commit 30e34eb

File tree

3 files changed

+529
-320
lines changed

3 files changed

+529
-320
lines changed

main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
*/
1111
import {CookieJar} from 'tough-cookie';
1212
import {WebhookClient} from 'discord.js';
13-
import config from './config.json' assert {type: 'json'};
13+
import config from './config.json' with {type: 'json'};
1414
import got from 'got';
1515
import {parse} from 'node-html-parser';
16-
import pkg from './package.json' assert {type: 'json'};
16+
import pkg from './package.json' with {type: 'json'};
1717
import process from 'process';
1818
import {writeFile} from 'fs/promises';
1919

@@ -62,7 +62,7 @@ class ContentReviewLog {
6262
async _initCache() {
6363
try {
6464
this._data = (await import('./cache.json', {
65-
assert: {
65+
with: {
6666
type: 'json'
6767
}
6868
})).default;

0 commit comments

Comments
 (0)