Skip to content

Commit 48441b2

Browse files
committed
Replace 'assert' with 'with' in the event service code
nodejs/node#52104
1 parent 65aee7b commit 48441b2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

server/services/event/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import config from "./config.json" assert { type: "json" };
2-
import spamWords from "./spamwords.json" assert { type: "json" };
1+
import config from "./config.json" with { type: "json" };
2+
import spamWords from "./spamwords.json" with { type: "json" };
33

44
import {
55
AkuvoxService,

server/services/event/services/base/SyslogService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import syslogServer from "syslog-server";
22
import { API, getTimestamp, isIpAddress, parseSyslogMessage } from "../../utils/index.js";
3-
import config from "../../config.json" assert { type: "json" };
3+
import config from "../../config.json" with { type: "json" };
44

55
const { topology } = config;
66
const natEnabled = topology?.nat === true;

server/services/event/utils/API.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import axios from "axios";
22
import https from "https";
33
import { getTimestamp } from "./index.js";
44
import { EVENT } from "../constants.js";
5-
import config from "../config.json" assert { type: "json" };
5+
import config from "../config.json" with { type: "json" };
66

77
const { api: { internal }, clickhouse } = config;
88
const agent = new https.Agent({ rejectUnauthorized: false });

0 commit comments

Comments
 (0)