Skip to content

Commit 3bd28a9

Browse files
authored
fix #2391 - remove node: prefix from imports
1 parent c6e1124 commit 3bd28a9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/client/lib/client/socket.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { strict as assert } from 'node:assert';
1+
import { strict as assert } from 'assert';
22
import { spy } from 'sinon';
3-
import { once } from 'node:events';
3+
import { once } from 'events';
44
import RedisSocket, { RedisSocketOptions } from './socket';
55

66
describe('Socket', () => {

packages/client/lib/cluster/cluster-slots.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { RedisClusterClientOptions, RedisClusterOptions } from '.';
33
import { RedisCommandArgument, RedisFunctions, RedisModules, RedisScripts } from '../commands';
44
import { RootNodesUnavailableError } from '../errors';
55
import { ClusterSlotsNode } from '../commands/CLUSTER_SLOTS';
6-
import { types } from 'node:util';
6+
import { types } from 'util';
77
import { ChannelListeners, PubSubType, PubSubTypeListeners } from '../client/pub-sub';
8-
import { EventEmitter } from 'node:stream';
8+
import { EventEmitter } from 'stream';
99

1010
// We need to use 'require', because it's not possible with Typescript to import
1111
// function that are exported as 'module.exports = function`, without esModuleInterop

0 commit comments

Comments
 (0)