Socket
Socket
Sign inDemoInstall

handy-redis

Package Overview
Dependencies
3
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.2 to 2.0.3

dist/type-util.d.ts

3

dist/flatten.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.flattenDeep = void 0;
exports.flattenDeep = (array) => {
const flattenDeep = (array) => {
const flat = [];

@@ -18,2 +18,3 @@ for (const item of array) {

};
exports.flattenDeep = flattenDeep;
//# sourceMappingURL=flatten.js.map

@@ -1,1 +0,6 @@

export { addNodeRedisCommand, createNodeRedisClient, WrappedNodeRedisClient, CreateNodeRedisClient, createNodeRedisClient as createHandyClient, WrappedNodeRedisClient as IHandyRedis, } from "./node_redis";
import { WrappedNodeRedisClient } from "./node_redis";
export { addNodeRedisCommand, createNodeRedisClient, WrappedNodeRedisClient, CreateNodeRedisClient, } from "./node_redis";
/** @deprecated use `createNodeRedisClient` */
export declare const createHandyClient: import("./node_redis").CreateNodeRedisClient;
/** @deprecated use `WrappedNodeRedisClient` */
export declare type IHandyRedis = WrappedNodeRedisClient;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createHandyClient = exports.createNodeRedisClient = exports.addNodeRedisCommand = void 0;
var node_redis_1 = require("./node_redis");
Object.defineProperty(exports, "addNodeRedisCommand", { enumerable: true, get: function () { return node_redis_1.addNodeRedisCommand; } });
Object.defineProperty(exports, "createNodeRedisClient", { enumerable: true, get: function () { return node_redis_1.createNodeRedisClient; } });
// for backwards-compatibility
Object.defineProperty(exports, "createHandyClient", { enumerable: true, get: function () { return node_redis_1.createNodeRedisClient; } });
const node_redis_1 = require("./node_redis");
var node_redis_2 = require("./node_redis");
Object.defineProperty(exports, "addNodeRedisCommand", { enumerable: true, get: function () { return node_redis_2.addNodeRedisCommand; } });
Object.defineProperty(exports, "createNodeRedisClient", { enumerable: true, get: function () { return node_redis_2.createNodeRedisClient; } });
// aliases for backwards-compatibility with v1.x
/** @deprecated use `createNodeRedisClient` */
exports.createHandyClient = node_redis_1.createNodeRedisClient;
//# sourceMappingURL=index.js.map

@@ -37,7 +37,8 @@ "use strict";

/** add a command that isn't included by default in node_redis e.g. `addCommand('lpos')` */
exports.addNodeRedisCommand = (command) => {
const addNodeRedisCommand = (command) => {
nodeRedis.addCommand(command);
addCommands([command]);
};
exports.createNodeRedisClient = (...clientArgs) => {
exports.addNodeRedisCommand = addNodeRedisCommand;
const createNodeRedisClient = (...clientArgs) => {
const nodeRedisInstance = typeof clientArgs[0] === "object" && typeof clientArgs[0].scan === "function"

@@ -48,2 +49,3 @@ ? clientArgs[0]

};
exports.createNodeRedisClient = createNodeRedisClient;
//# sourceMappingURL=index.js.map
import * as nodeRedis from "redis";
import { Commands } from "../generated/interface";
declare type Push_ts4<A extends unknown[], B> = [...A, B];
declare type VariadicTuplesPrefixesSupported = Push_ts4<[1, 2], 3> extends {
length: 3;
} ? "yes" : "no";
declare type Push<A extends unknown[], B> = VariadicTuplesPrefixesSupported extends "yes" ? Push_ts4<A, B> : Array<A[number] | B>;
import { Push } from "../type-util";
export declare type ResultType<K extends keyof Commands> = ReturnType<Commands[K]> extends Promise<infer X> ? X : never;

@@ -23,2 +19,1 @@ export declare const WrappedNodeRedisMultiImpl: {

};
export {};

@@ -7,3 +7,3 @@ "use strict";

const util_1 = require("util");
exports.WrappedNodeRedisMultiImpl = class _WrappedNodeRedisMulti {
const WrappedNodeRedisMultiImpl = class _WrappedNodeRedisMulti {
constructor(multi) {

@@ -18,2 +18,3 @@ this.nodeRedisMulti = multi;

};
exports.WrappedNodeRedisMultiImpl = WrappedNodeRedisMultiImpl;
Object.keys(nodeRedis.Multi.prototype)

@@ -20,0 +21,0 @@ .filter(method => method !== "exec" && method !== "exec_atomic")

{
"name": "handy-redis",
"version": "2.0.2",
"version": "2.0.3",
"description": "A redis client with first-class Promise and TypeScript support, and extensive documentation.",

@@ -29,2 +29,3 @@ "keywords": [

"build": "yarn typecheck && yarn compile",
"postbuild": "sed -i 's~declare type Push_ts4~// @ts-ignore (https://github.com/mmkal/handy-redis/pulls/251)\\ndeclare type Push_ts4~g' dist/type-util.d.ts",
"check-clean": "check-clean",

@@ -53,31 +54,31 @@ "ci": "run-s clean build coverage lint check-clean",

"@types/cross-spawn": "6.0.2",
"@types/eslint": "7.2.4",
"@types/eslint": "7.2.5",
"@types/jest": "26.0.15",
"@types/lodash": "4.14.162",
"@types/lodash": "4.14.165",
"@types/node": "12.12.37",
"@types/redis-mock": "0.17.0",
"@typescript-eslint/eslint-plugin": "4.5.0",
"@typescript-eslint/parser": "4.5.0",
"check-clean": "0.2.5",
"@typescript-eslint/eslint-plugin": "4.8.2",
"@typescript-eslint/parser": "4.8.2",
"check-clean": "0.3.0",
"del-cli": "3.0.1",
"eslint": "7.12.0",
"eslint": "7.14.0",
"eslint-config-xo": "0.33.1",
"eslint-config-xo-typescript": "0.35.0",
"eslint-plugin-codegen": "0.13.3",
"eslint-config-xo-typescript": "0.36.0",
"eslint-plugin-codegen": "0.14.2",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jest": "24.1.0",
"eslint-plugin-jest": "24.1.3",
"eslint-plugin-prettier": "3.1.4",
"eslint-plugin-unicorn": "23.0.0",
"expect-type": "0.8.0",
"jest": "26.6.1",
"expect-type": "0.9.2",
"jest": "26.6.3",
"lodash": "4.17.20",
"npm-run-all": "4.1.5",
"prettier": "2.1.2",
"prettier": "2.2.1",
"redis": "3.0.2",
"redis-mock": "0.52.0",
"semantic-release": "17.2.1",
"redis-mock": "0.55.0",
"semantic-release": "17.3.0",
"string-argv": "0.3.1",
"ts-jest": "26.4.2",
"ts-jest": "26.4.4",
"ts-node": "9.0.0",
"typescript": "4.0.3"
"typescript": "4.1.2"
},

@@ -84,0 +85,0 @@ "engines": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc