From 3bd28a9924d9675b0df76063d2fc59ca1bd70120 Mon Sep 17 00:00:00 2001 From: Leibale Eidelman Date: Wed, 25 Jan 2023 20:37:00 -0500 Subject: [PATCH] fix #2391 - remove node: prefix from imports --- packages/client/lib/client/socket.spec.ts | 4 ++-- packages/client/lib/cluster/cluster-slots.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/client/lib/client/socket.spec.ts b/packages/client/lib/client/socket.spec.ts index 86929b227a..eb555351ac 100644 --- a/packages/client/lib/client/socket.spec.ts +++ b/packages/client/lib/client/socket.spec.ts @@ -1,6 +1,6 @@ -import { strict as assert } from 'node:assert'; +import { strict as assert } from 'assert'; import { spy } from 'sinon'; -import { once } from 'node:events'; +import { once } from 'events'; import RedisSocket, { RedisSocketOptions } from './socket'; describe('Socket', () => { diff --git a/packages/client/lib/cluster/cluster-slots.ts b/packages/client/lib/cluster/cluster-slots.ts index 2804f499f5..b540c2fa85 100644 --- a/packages/client/lib/cluster/cluster-slots.ts +++ b/packages/client/lib/cluster/cluster-slots.ts @@ -3,9 +3,9 @@ import { RedisClusterClientOptions, RedisClusterOptions } from '.'; import { RedisCommandArgument, RedisFunctions, RedisModules, RedisScripts } from '../commands'; import { RootNodesUnavailableError } from '../errors'; import { ClusterSlotsNode } from '../commands/CLUSTER_SLOTS'; -import { types } from 'node:util'; +import { types } from 'util'; import { ChannelListeners, PubSubType, PubSubTypeListeners } from '../client/pub-sub'; -import { EventEmitter } from 'node:stream'; +import { EventEmitter } from 'stream'; // We need to use 'require', because it's not possible with Typescript to import // function that are exported as 'module.exports = function`, without esModuleInterop