1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

add node: to node "core modules" imports

This commit is contained in:
Leibale
2023-09-18 15:03:07 -04:00
parent 3fa54fef58
commit 266d635a60
495 changed files with 528 additions and 528 deletions

View File

@@ -1,4 +1,4 @@
// import { strict as assert } from 'assert';
// import { strict as assert } from 'node:assert';
// import { SinonSpy, spy } from 'sinon';
// import { Decoder, RESP_TYPES } from './decoder';
// import { ErrorReply } from '../errors';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import { describe } from 'mocha';
import encodeCommand from './encoder';

View File

@@ -4,7 +4,7 @@ import { Decoder, PUSH_TYPE_MAPPING, RESP_TYPES } from '../RESP/decoder';
import { CommandArguments, TypeMapping, ReplyUnion, RespVersions } from '../RESP/types';
import { ChannelListeners, PubSub, PubSubCommand, PubSubListener, PubSubType, PubSubTypeListeners } from './pub-sub';
import { AbortError, ErrorReply } from '../errors';
import { EventEmitter } from 'stream';
import { EventEmitter } from 'node:stream';
export interface CommandOptions<T = TypeMapping> {
chainId?: symbol;

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL, waitTillBeenCalled } from '../test-utils';
import RedisClient, { RedisClientType } from '.';
// import { RedisClientMultiCommandType } from './multi-command';
@@ -6,9 +6,9 @@ import RedisClient, { RedisClientType } from '.';
import { AbortError, ClientClosedError, ClientOfflineError, ConnectionTimeoutError, DisconnectsClientError, SocketClosedUnexpectedlyError, WatchError } from '../errors';
import { defineScript } from '../lua-script';
// import { spy } from 'sinon';
import { once } from 'events';
import { once } from 'node:events';
// import { ClientKillFilters } from '../commands/CLIENT_KILL';
// import { promisify } from 'util';
// import { promisify } from 'node:util';
import { MATH_FUNCTION, loadMathFunction } from '../commands/FUNCTION_LOAD.spec';
import { RESP_TYPES } from '../RESP/decoder';
import { SortedSetMember } from '../commands/generic-transformers';

View File

@@ -1,11 +1,11 @@
import COMMANDS from '../commands';
import RedisSocket, { RedisSocketOptions, RedisTlsSocketOptions } from './socket';
import RedisCommandsQueue, { CommandOptions } from './commands-queue';
import { EventEmitter } from 'events';
import { EventEmitter } from 'node:events';
import { attachConfig, functionArgumentsPrefix, getTransformReply, scriptArgumentsPrefix } from '../commander';
import { ClientClosedError, ClientOfflineError, DisconnectsClientError, WatchError } from '../errors';
import { URL } from 'url';
import { TcpSocketConnectOpts } from 'net';
import { URL } from 'node:url';
import { TcpSocketConnectOpts } from 'node:net';
import { PubSubType, PubSubListener, PubSubTypeListeners, ChannelListeners } from './pub-sub';
import { Command, CommandSignature, TypeMapping, CommanderConfig, RedisFunction, RedisFunctions, RedisModules, RedisScript, RedisScripts, ReplyUnion, RespVersions, RedisArgument } from '../RESP/types';
import RedisClientMultiCommand, { RedisClientMultiCommandType } from './multi-command';

View File

@@ -1,10 +1,10 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import { promisify } from 'util';
import { promisify } from 'node:util';
import { RedisLegacyClientType } from './legacy-mode';
import { ErrorReply } from '../errors';
import { RedisClientType } from '.';
import { once } from 'events';
import { once } from 'node:events';
function testWithLegacyClient(title: string, fn: (legacy: RedisLegacyClientType, client: RedisClientType) => Promise<unknown>) {
testUtils.testWithClient(title, client => fn(client.legacy(), client), GLOBAL.SERVERS.OPEN);

View File

@@ -1,7 +1,7 @@
import COMMANDS from '../commands';
import { Command, RedisArgument, RedisFunction, RedisFunctions, RedisModules, RedisScript, RedisScripts, RespVersions, TypeMapping } from '../RESP/types';
import RedisClient, { RedisClientType, RedisClientOptions, RedisClientExtensions } from '.';
import { EventEmitter } from 'events';
import { EventEmitter } from 'node:events';
import { DoublyLinkedNode, DoublyLinkedList, SinglyLinkedList } from './linked-list';
import { TimeoutError } from '../errors';
import { attachConfig, functionArgumentsPrefix, getTransformReply, scriptArgumentsPrefix } from '../commander';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import { PubSub, PubSubType } from './pub-sub';
describe('PubSub', () => {

View File

@@ -1,6 +1,6 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import { spy } from 'sinon';
import { once } from 'events';
import { once } from 'node:events';
import RedisSocket, { RedisSocketOptions } from './socket';
describe('Socket', () => {

View File

@@ -1,6 +1,6 @@
import { EventEmitter } from 'events';
import * as net from 'net';
import * as tls from 'tls';
import { EventEmitter } from 'node:events';
import * as net from 'node:net';
import * as tls from 'node:tls';
import { ConnectionTimeoutError, ClientClosedError, SocketClosedUnexpectedlyError, ReconnectStrategyError } from '../errors';
import { setTimeout } from 'timers/promises';
import { RedisArgument } from '../RESP/types';

View File

@@ -1,8 +1,8 @@
import { RedisClusterClientOptions, RedisClusterOptions } from '.';
import { RootNodesUnavailableError } from '../errors';
import RedisClient, { RedisClientOptions, RedisClientType } from '../client';
import { types } from 'util';
import { EventEmitter } from 'stream';
import { types } from 'node:util';
import { EventEmitter } from 'node:stream';
import { ChannelListeners, PubSubType, PubSubTypeListeners } from '../client/pub-sub';
import { RedisArgument, RedisFunctions, RedisModules, RedisScripts, RespVersions } from '../RESP/types';

View File

@@ -1,4 +1,4 @@
// import { strict as assert } from 'assert';
// import { strict as assert } from 'node:assert';
// import testUtils, { GLOBAL, waitTillBeenCalled } from '../test-utils';
// import RedisCluster from '.';
// import { ClusterSlotStates } from '../commands/CLUSTER_SETSLOT';

View File

@@ -2,7 +2,7 @@ import { RedisClientOptions, RedisClientType } from '../client';
import { CommandOptions } from '../client/commands-queue';
import { Command, CommandArguments, CommanderConfig, CommandPolicies, CommandWithPoliciesSignature, TypeMapping, RedisArgument, RedisFunction, RedisFunctions, RedisModules, RedisScript, RedisScripts, ReplyUnion, RespVersions } from '../RESP/types';
import COMMANDS from '../commands';
import { EventEmitter } from 'events';
import { EventEmitter } from 'node:events';
import { attachConfig, functionArgumentsPrefix, getTransformReply, scriptArgumentsPrefix } from '../commander';
import RedisClusterSlots, { NodeAddressMap, ShardNode } from './cluster-slots';
import RedisClusterMultiCommand, { RedisClusterMultiCommandType } from './multi-command';
@@ -16,14 +16,14 @@ interface ClusterCommander<
S extends RedisScripts,
RESP extends RespVersions,
TYPE_MAPPING extends TypeMapping,
POLICIES extends CommandPolicies
// POLICIES extends CommandPolicies
> extends CommanderConfig<M, F, S, RESP>{
commandOptions?: ClusterCommandOptions<TYPE_MAPPING, POLICIES>;
commandOptions?: ClusterCommandOptions<TYPE_MAPPING/*, POLICIES*/>;
}
export type RedisClusterClientOptions = Omit<
RedisClientOptions,
keyof ClusterCommander<RedisModules, RedisFunctions, RedisScripts, RespVersions, TypeMapping, CommandPolicies>
keyof ClusterCommander<RedisModules, RedisFunctions, RedisScripts, RespVersions, TypeMapping/*, CommandPolicies*/>
>;
export interface RedisClusterOptions<
@@ -32,8 +32,8 @@ export interface RedisClusterOptions<
S extends RedisScripts = RedisScripts,
RESP extends RespVersions = RespVersions,
TYPE_MAPPING extends TypeMapping = TypeMapping,
POLICIES extends CommandPolicies = CommandPolicies
> extends ClusterCommander<M, F, S, RESP, TYPE_MAPPING, POLICIES> {
// POLICIES extends CommandPolicies = CommandPolicies
> extends ClusterCommander<M, F, S, RESP, TYPE_MAPPING/*, POLICIES*/> {
/**
* Should contain details for some of the cluster nodes that the client will use to discover
* the "cluster topology". We recommend including details for at least 3 nodes here.
@@ -68,9 +68,9 @@ export interface RedisClusterOptions<
type WithCommands<
RESP extends RespVersions,
TYPE_MAPPING extends TypeMapping,
POLICIES extends CommandPolicies
// POLICIES extends CommandPolicies
> = {
[P in keyof typeof COMMANDS]: CommandWithPoliciesSignature<(typeof COMMANDS)[P], RESP, TYPE_MAPPING, POLICIES>;
[P in keyof typeof COMMANDS]: CommandWithPoliciesSignature<(typeof COMMANDS)[P], RESP, TYPE_MAPPING, POLICIES>;
};
export type RedisClusterType<
@@ -79,8 +79,8 @@ export type RedisClusterType<
S extends RedisScripts = {},
RESP extends RespVersions = 2,
TYPE_MAPPING extends TypeMapping = {},
POLICIES extends CommandPolicies = {}
> = RedisCluster<M, F, S, RESP, TYPE_MAPPING, POLICIES> & WithCommands<RESP, TYPE_MAPPING, POLICIES>;
// POLICIES extends CommandPolicies = {}
> = RedisCluster<M, F, S, RESP, TYPE_MAPPING, POLICIES> & WithCommands<RESP, TYPE_MAPPING/*, POLICIES*/>;
// & WithModules<M> & WithFunctions<F> & WithScripts<S>
export interface ClusterCommandOptions<

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import ACL_CAT from './ACL_CAT';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import ACL_DELUSER from './ACL_DELUSER';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import ACL_DRYRUN from './ACL_DRYRUN';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import ACL_GENPASS from './ACL_GENPASS';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import ACL_GETUSER from './ACL_GETUSER';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import ACL_LIST from './ACL_LIST';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils from '../test-utils';
import ACL_LOAD from './ACL_LOAD';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import ACL_LOG from './ACL_LOG';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import ACL_LOG_RESET from './ACL_LOG_RESET';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils from '../test-utils';
import ACL_SAVE from './ACL_SAVE';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils from '../test-utils';
import ACL_SETUSER from './ACL_SETUSER';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils from '../test-utils';
import ACL_USERS from './ACL_USERS';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils from '../test-utils';
import ACL_WHOAMI from './ACL_WHOAMI';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import APPEND from './APPEND';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import ASKING from './ASKING';
describe('ASKING', () => {

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import AUTH from './AUTH';
describe('AUTH', () => {

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import BGREWRITEAOF from './BGREWRITEAOF';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import BGSAVE from './BGSAVE';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import BITCOUNT from './BITCOUNT';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import BITFIELD from './BITFIELD';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import BITFIELD_RO from './BITFIELD_RO';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import BITOP from './BITOP';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import BITPOS from './BITPOS';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL, BLOCKING_MIN_VALUE } from '../test-utils';
import BLMOVE from './BLMOVE';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL, BLOCKING_MIN_VALUE } from '../test-utils';
import BLMPOP from './BLMPOP';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL, BLOCKING_MIN_VALUE } from '../test-utils';
import BLPOP from './BLPOP';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL, BLOCKING_MIN_VALUE } from '../test-utils';
import BRPOP from './BRPOP';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL, BLOCKING_MIN_VALUE } from '../test-utils';
import BRPOPLPUSH from './BRPOPLPUSH';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL, BLOCKING_MIN_VALUE } from '../test-utils';
import BZMPOP from './BZMPOP';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL, BLOCKING_MIN_VALUE } from '../test-utils';
import BZPOPMAX from './BZPOPMAX';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL, BLOCKING_MIN_VALUE } from '../test-utils';
import BZPOPMIN from './BZPOPMIN';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import CLIENT_CACHING from './CLIENT_CACHING';
describe('CLIENT CACHING', () => {

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CLIENT_GETNAME from './CLIENT_GETNAME';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import CLIENT_GETREDIR from './CLIENT_GETREDIR';
describe('CLIENT GETREDIR', () => {

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CLIENT_ID from './CLIENT_ID';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import CLIENT_INFO from './CLIENT_INFO';
import testUtils, { GLOBAL } from '../test-utils';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import CLIENT_KILL, { CLIENT_KILL_FILTERS } from './CLIENT_KILL';
describe('CLIENT KILL', () => {

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import CLIENT_LIST from './CLIENT_LIST';
import testUtils, { GLOBAL } from '../test-utils';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CLIENT_NO_EVICT from './CLIENT_NO-EVICT';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CLIENT_PAUSE from './CLIENT_PAUSE';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CLIENT_SETNAME from './CLIENT_SETNAME';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CLIENT_TRACKING from './CLIENT_TRACKING';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CLIENT_TRACKINGINFO from './CLIENT_TRACKINGINFO';
import { RESP_TYPES } from '../RESP/decoder';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CLIENT_UNPAUSE from './CLIENT_UNPAUSE';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import CLUSTER_ADDSLOTS from './CLUSTER_ADDSLOTS';
describe('CLUSTER ADDSLOTS', () => {

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils from '../test-utils';
import CLUSTER_ADDSLOTSRANGE from './CLUSTER_ADDSLOTSRANGE';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CLUSTER_BUMPEPOCH from './CLUSTER_BUMPEPOCH';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CLUSTER_COUNT_FAILURE_REPORTS from './CLUSTER_COUNT-FAILURE-REPORTS';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CLUSTER_COUNTKEYSINSLOT from './CLUSTER_COUNTKEYSINSLOT';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import CLUSTER_DELSLOTS from './CLUSTER_DELSLOTS';
describe('CLUSTER DELSLOTS', () => {

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import CLUSTER_DELSLOTSRANGE from './CLUSTER_DELSLOTSRANGE';
describe('CLUSTER DELSLOTSRANGE', () => {

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import CLUSTER_FAILOVER, { FAILOVER_MODES } from './CLUSTER_FAILOVER';
describe('CLUSTER FAILOVER', () => {

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import CLUSTER_FLUSHSLOTS from './CLUSTER_FLUSHSLOTS';
describe('CLUSTER FLUSHSLOTS', () => {

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import CLUSTER_FORGET from './CLUSTER_FORGET';
describe('CLUSTER FORGET', () => {

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CLUSTER_GETKEYSINSLOT from './CLUSTER_GETKEYSINSLOT';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import { transformArguments, transformReply } from './CLUSTER_INFO';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CLUSTER_KEYSLOT from './CLUSTER_KEYSLOT';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CLUSTER_LINKS from './CLUSTER_LINKS';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import CLUSTER_MEET from './CLUSTER_MEET';
describe('CLUSTER MEET', () => {

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CLUSTER_MYID from './CLUSTER_MYID';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CLUSTER_NODES from './CLUSTER_NODES';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CLUSTER_REPLICAS from './CLUSTER_REPLICAS';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import CLUSTER_REPLICATE from './CLUSTER_REPLICATE';
describe('CLUSTER REPLICATE', () => {

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import CLUSTER_RESET from './CLUSTER_RESET';
describe('CLUSTER RESET', () => {

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CLUSTER_SAVECONFIG from './CLUSTER_SAVECONFIG';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import CLUSTER_SET_CONFIG_EPOCH from './CLUSTER_SET-CONFIG-EPOCH';
describe('CLUSTER SET-CONFIG-EPOCH', () => {

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import CLUSTER_SETSLOT, { CLUSTER_SLOT_STATES } from './CLUSTER_SETSLOT';
describe('CLUSTER SETSLOT', () => {

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CLUSTER_SLOTS from './CLUSTER_SLOTS';

View File

@@ -1,4 +1,4 @@
// import { strict as assert } from 'assert';
// import { strict as assert } from 'node:assert';
// import testUtils, { GLOBAL } from '../test-utils';
// import { transformArguments } from './COMMAND';
// import { assertPingCommand } from './COMMAND_INFO.spec';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import COMMAND_COUNT from './COMMAND_COUNT';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import COMMAND_GETKEYS from './COMMAND_GETKEYS';

View File

@@ -1,4 +1,4 @@
// import { strict as assert } from 'assert';
// import { strict as assert } from 'node:assert';
// import testUtils, { GLOBAL } from '../test-utils';
// import { transformArguments } from './COMMAND_GETKEYSANDFLAGS';

View File

@@ -1,4 +1,4 @@
// import { strict as assert } from 'assert';
// import { strict as assert } from 'node:assert';
// import testUtils, { GLOBAL } from '../test-utils';
// import { transformArguments } from './COMMAND_INFO';
// import { CommandCategories, CommandFlags, CommandReply } from './generic-transformers';

View File

@@ -1,4 +1,4 @@
// import { strict as assert } from 'assert';
// import { strict as assert } from 'node:assert';
// import testUtils, { GLOBAL } from '../test-utils';
// import { transformArguments, FilterBy } from './COMMAND_LIST';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CONFIG_GET from './CONFIG_GET';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import CONFIG_RESETSTAT from './CONFIG_RESETSTAT';
describe('CONFIG RESETSTAT', () => {

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import CONFIG_REWRITE from './CONFIG_REWRITE';
describe('CONFIG REWRITE', () => {

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CONFIG_SET from './CONFIG_SET';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import COPY from './COPY';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import DBSIZE from './DBSIZE';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import DECR from './DECR';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import DECRBY from './DECRBY';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import DEL from './DEL';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import DISCARD from './DISCARD';
describe('DISCARD', () => {

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
describe('DUMP', () => {

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import ECHO from './ECHO';

View File

@@ -1,4 +1,4 @@
import { strict as assert } from 'assert';
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import EVAL from './EVAL';

Some files were not shown because too many files have changed in this diff Show More