You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
fix #2391 - remove node: prefix from imports
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { strict as assert } from 'node:assert';
|
import { strict as assert } from 'assert';
|
||||||
import { spy } from 'sinon';
|
import { spy } from 'sinon';
|
||||||
import { once } from 'node:events';
|
import { once } from 'events';
|
||||||
import RedisSocket, { RedisSocketOptions } from './socket';
|
import RedisSocket, { RedisSocketOptions } from './socket';
|
||||||
|
|
||||||
describe('Socket', () => {
|
describe('Socket', () => {
|
||||||
|
@@ -3,9 +3,9 @@ import { RedisClusterClientOptions, RedisClusterOptions } from '.';
|
|||||||
import { RedisCommandArgument, RedisFunctions, RedisModules, RedisScripts } from '../commands';
|
import { RedisCommandArgument, RedisFunctions, RedisModules, RedisScripts } from '../commands';
|
||||||
import { RootNodesUnavailableError } from '../errors';
|
import { RootNodesUnavailableError } from '../errors';
|
||||||
import { ClusterSlotsNode } from '../commands/CLUSTER_SLOTS';
|
import { ClusterSlotsNode } from '../commands/CLUSTER_SLOTS';
|
||||||
import { types } from 'node:util';
|
import { types } from 'util';
|
||||||
import { ChannelListeners, PubSubType, PubSubTypeListeners } from '../client/pub-sub';
|
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
|
// We need to use 'require', because it's not possible with Typescript to import
|
||||||
// function that are exported as 'module.exports = function`, without esModuleInterop
|
// function that are exported as 'module.exports = function`, without esModuleInterop
|
||||||
|
Reference in New Issue
Block a user