1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

replace @redis with @node-redis

This commit is contained in:
leibale
2021-11-16 02:35:24 -05:00
parent 7fc1d2d7cf
commit 0cabe71cf8
29 changed files with 153 additions and 149 deletions

View File

@@ -7,4 +7,4 @@
"npm": {
"publishArgs": ["--access", "public"]
}
}
}

View File

@@ -1,2 +1,2 @@
# @redis/client
# @node-redis/client
The sources and docs for this package are in the main [node-redis](https://github.com/redis/node-redis) repo.

View File

@@ -1,4 +1,4 @@
import TestUtils from '@redis/test-utils';
import TestUtils from '@node-redis/test-utils';
import { SinonSpy } from 'sinon';
import { promiseTimeout } from './utils';

View File

@@ -1,5 +1,5 @@
{
"name": "@redis/client",
"name": "@node-redis/client",
"version": "1.0.0-rc",
"license": "MIT",
"main": "./dist/index.js",
@@ -18,7 +18,7 @@
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"@redis/test-utils": "*",
"@node-redis/test-utils": "*",
"@types/node": "^16.11.7",
"@types/redis-parser": "^3.0.0",
"@types/sinon": "^10.0.6",

View File

@@ -7,4 +7,4 @@
"npm": {
"publishArgs": ["--access", "public"]
}
}
}

View File

@@ -1,2 +1,2 @@
# @redis/json
# @node-redis/json
The sources and docs for this package are in the main [node-redis](https://github.com/redis/node-redis) repo.

View File

@@ -1,4 +1,4 @@
import { pushVerdictArguments } from '@redis/client/dist/lib/commands/generic-transformers';
import { pushVerdictArguments } from '@node-redis/client/dist/lib/commands/generic-transformers';
export const FIRST_KEY_INDEX = 1;

View File

@@ -1,4 +1,4 @@
import TestUtils from '@redis/test-utils';
import TestUtils from '@node-redis/test-utils';
import RedisJSON from '.';
export default new TestUtils({

View File

@@ -1,5 +1,5 @@
{
"name": "@redis/json",
"name": "@node-redis/json",
"version": "1.0.0-rc.0",
"license": "MIT",
"main": "./dist/index.js",
@@ -9,11 +9,11 @@
"build": "tsc"
},
"peerDependencies": {
"@redis/client": "^1.0.0-rc"
"@node-redis/client": "^1.0.0-rc"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"@redis/test-utils": "*",
"@node-redis/test-utils": "*",
"@types/node": "^16.11.7",
"nyc": "^15.1.0",
"release-it": "^14.11.7",

View File

@@ -7,4 +7,4 @@
"npm": {
"publishArgs": ["--access", "public"]
}
}
}

View File

@@ -1,2 +1,2 @@
# @redis/search
# @node-redis/search
The sources and docs for this package are in the main [node-redis](https://github.com/redis/node-redis) repo.

View File

@@ -1,5 +1,5 @@
import { RedisCommandArguments } from '@redis/client/dist/lib/commands';
import { pushVerdictArgument, transformReplyTuples, TuplesObject } from '@redis/client/dist/lib/commands/generic-transformers';
import { RedisCommandArguments } from '@node-redis/client/dist/lib/commands';
import { pushVerdictArgument, transformReplyTuples, TuplesObject } from '@node-redis/client/dist/lib/commands/generic-transformers';
import { PropertyName, pushArgumentsWithLength, pushSortByArguments, SortByOptions } from '.';
export enum AggregateSteps {

View File

@@ -1,4 +1,4 @@
import { pushOptionalVerdictArgument } from '@redis/client/dist/lib/commands/generic-transformers';
import { pushOptionalVerdictArgument } from '@node-redis/client/dist/lib/commands/generic-transformers';
import { RedisSearchLanguages, PropertyName } from '.';
export enum SchemaFieldTypes {

View File

@@ -1,5 +1,5 @@
import { RedisCommandArguments } from '@redis/client/dist/lib/commands';
import { pushVerdictArguments } from '@redis/client/dist/lib/commands/generic-transformers';
import { RedisCommandArguments } from '@node-redis/client/dist/lib/commands';
import { pushVerdictArguments } from '@node-redis/client/dist/lib/commands/generic-transformers';
export function transformArguments(dictionary: string, term: string | Array<string>): RedisCommandArguments {
return pushVerdictArguments(['FT.DICTADD', dictionary], term);

View File

@@ -1,5 +1,5 @@
import { RedisCommandArguments } from '@redis/client/dist/lib/commands';
import { pushVerdictArguments } from '@redis/client/dist/lib/commands/generic-transformers';
import { RedisCommandArguments } from '@node-redis/client/dist/lib/commands';
import { pushVerdictArguments } from '@node-redis/client/dist/lib/commands/generic-transformers';
export function transformArguments(dictionary: string, term: string | Array<string>): RedisCommandArguments {
return pushVerdictArguments(['FT.DICTDEL', dictionary], term);

View File

@@ -1,5 +1,5 @@
import { RedisCommandArguments } from '@redis/client/dist/lib/commands';
import { pushOptionalVerdictArgument, pushVerdictArgument, transformReplyTuples } from '@redis/client/dist/lib/commands/generic-transformers';
import { RedisCommandArguments } from '@node-redis/client/dist/lib/commands';
import { pushOptionalVerdictArgument, pushVerdictArgument, transformReplyTuples } from '@node-redis/client/dist/lib/commands/generic-transformers';
import { RedisSearchLanguages, PropertyName, pushSortByArguments, SortByOptions } from '.';
export const FIRST_KEY_INDEX = 1;

View File

@@ -2,4 +2,4 @@ export function transformArguments(key: string, string: string): Array<string> {
return ['FT.SUGDEL', key, string];
}
export { transformReplyBoolean as transformReply } from '@redis/client/dist/lib/commands/generic-transformers';
export { transformReplyBoolean as transformReply } from '@node-redis/client/dist/lib/commands/generic-transformers';

View File

@@ -1,5 +1,5 @@
import { pushVerdictArguments } from '@redis/client/dist/lib/commands/generic-transformers';
import { RedisCommandArguments } from '@redis/client/dist/lib/commands';
import { pushVerdictArguments } from '@node-redis/client/dist/lib/commands/generic-transformers';
import { RedisCommandArguments } from '@node-redis/client/dist/lib/commands';
interface SynUpdateOptions {
SKIPINITIALSCAN?: true;

View File

@@ -26,7 +26,7 @@ import * as SUGLEN from './SUGLEN';
import * as SYNDUMP from './SYNDUMP';
import * as SYNUPDATE from './SYNUPDATE';
import * as TAGVALS from './TAGVALS';
import { RedisCommandArguments } from '@redis/client/dist/lib/commands';
import { RedisCommandArguments } from '@node-redis/client/dist/lib/commands';
export default {
_LIST,

View File

@@ -1,4 +1,4 @@
import TestUtils from '@redis/test-utils';
import TestUtils from '@node-redis/test-utils';
import RediSearch from '.';
export default new TestUtils({

View File

@@ -1,5 +1,5 @@
{
"name": "@redis/search",
"name": "@node-redis/search",
"version": "1.0.0-rc.0",
"license": "MIT",
"main": "./dist/index.js",
@@ -9,11 +9,11 @@
"build": "tsc"
},
"peerDependencies": {
"@redis/client": "^1.0.0-rc"
"@node-redis/client": "^1.0.0-rc"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"@redis/test-utils": "*",
"@node-redis/test-utils": "*",
"@types/node": "^16.11.7",
"nyc": "^15.1.0",
"release-it": "^14.11.7",

View File

@@ -1,8 +1,8 @@
import { createConnection } from 'net';
import { once } from 'events';
import { RedisModules, RedisScripts } from '@redis/client/lib/commands';
import RedisClient, { RedisClientType } from '@redis/client/lib/client';
import { promiseTimeout } from '@redis/client/lib/utils';
import { RedisModules, RedisScripts } from '@node-redis/client/lib/commands';
import RedisClient, { RedisClientType } from '@node-redis/client/lib/client';
import { promiseTimeout } from '@node-redis/client/lib/utils';
import * as path from 'path';
import { promisify } from 'util';
import { exec } from 'child_process';

View File

@@ -1,6 +1,6 @@
import { RedisModules, RedisScripts } from '@redis/client/lib/commands';
import RedisClient, { RedisClientOptions, RedisClientType } from '@redis/client/lib/client';
import RedisCluster, { RedisClusterOptions, RedisClusterType } from '@redis/client/lib/cluster';
import { RedisModules, RedisScripts } from '@node-redis/client/lib/commands';
import RedisClient, { RedisClientOptions, RedisClientType } from '@node-redis/client/lib/client';
import RedisCluster, { RedisClusterOptions, RedisClusterType } from '@node-redis/client/lib/cluster';
import { RedisServerDockerConfig, spawnRedisServer, spawnRedisCluster } from './dockers';
import yargs from 'yargs';
import { hideBin } from 'yargs/helpers';

View File

@@ -1,5 +1,5 @@
{
"name": "@redis/test-utils",
"name": "@node-redis/test-utils",
"private": true,
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
@@ -8,7 +8,7 @@
"test": "echo \"TODO\""
},
"peerDependencies": {
"@redis/client": "^1.0.0-rc"
"@node-redis/client": "^1.0.0-rc"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.1",