Skip to content

Commit

Permalink
fix syntax error due to assert (#21)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
LunarTwilight authored Jul 5, 2024
1 parent a8742a9 commit 30e34eb
Show file tree
Hide file tree
Showing 3 changed files with 529 additions and 320 deletions.
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
*/
import {CookieJar} from 'tough-cookie';
import {WebhookClient} from 'discord.js';
import config from './config.json' assert {type: 'json'};
import config from './config.json' with {type: 'json'};
import got from 'got';
import {parse} from 'node-html-parser';
import pkg from './package.json' assert {type: 'json'};
import pkg from './package.json' with {type: 'json'};
import process from 'process';
import {writeFile} from 'fs/promises';

Expand Down Expand Up @@ -62,7 +62,7 @@ class ContentReviewLog {
async _initCache() {
try {
this._data = (await import('./cache.json', {
assert: {
with: {
type: 'json'
}
})).default;
Expand Down
Loading

0 comments on commit 30e34eb

Please sign in to comment.