Skip to content

Commit

Permalink
use modern syntax for node module imports (zerodytrash#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
FilterUnfiltered committed Aug 19, 2023
1 parent c7bb683 commit 75ef60a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { EventEmitter } = require('events');
const { EventEmitter } = require('node:events');

const TikTokHttpClient = require('./lib/tiktokHttpClient.js');
const WebcastWebsocket = require('./lib/webcastWebsocket.js');
Expand Down
4 changes: 2 additions & 2 deletions src/lib/webcastProtobuf.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const protobufjs = require('protobufjs');
const util = require('util');
const zlib = require('zlib');
const util = require('node:util');
const zlib = require('node:zlib');
const unzip = util.promisify(zlib.unzip);

let tiktokSchemaPath = require.resolve('../proto/tiktokSchema.proto');
Expand Down

0 comments on commit 75ef60a

Please sign in to comment.