@upstash/ratelimit
Advanced tools
Comparing version 0.0.0-ci.ca0fadfd69102cd1e6b00d7e4d3f1de037245e0e-20241006181002 to 0.0.0-ci.dfbcad5070f6dfff0ad7ce0558d8f7ee0809805c-20241021082734
import { Aggregate } from '@upstash/core-analytics'; | ||
import { Pipeline } from '@upstash/redis'; | ||
import { Redis as Redis$1 } from '@upstash/redis'; | ||
@@ -93,3 +93,2 @@ /** | ||
}; | ||
type IsDenied = 0 | 1; | ||
type DeniedValue = string | undefined; | ||
@@ -107,11 +106,9 @@ type LimitOptions = { | ||
type Redis = { | ||
sadd: <TData>(key: string, ...members: TData[]) => Promise<number>; | ||
hset: <TValue>(key: string, obj: { | ||
[key: string]: TValue; | ||
}) => Promise<number>; | ||
eval: <TArgs extends unknown[], TData = unknown>(...args: [script: string, keys: string[], args: TArgs]) => Promise<TData>; | ||
evalsha: <TArgs extends unknown[], TData = unknown>(...args: [sha1: string, keys: string[], args: TArgs]) => Promise<TData>; | ||
scriptLoad: (...args: [script: string]) => Promise<string>; | ||
smismember: (key: string, members: string[]) => Promise<IsDenied[]>; | ||
multi: () => Pipeline; | ||
sadd: Redis$1["sadd"]; | ||
hset: Redis$1["hset"]; | ||
eval: Redis$1["eval"]; | ||
evalsha: Redis$1["evalsha"]; | ||
scriptLoad: Redis$1["scriptLoad"]; | ||
smismember: Redis$1["smismember"]; | ||
multi: Redis$1["multi"]; | ||
}; | ||
@@ -118,0 +115,0 @@ |
@@ -603,3 +603,3 @@ "use strict"; | ||
transaction.del(ipDenyList); | ||
transaction.sadd(ipDenyList, ...allIps); | ||
transaction.sadd(ipDenyList, allIps.at(0), ...allIps.slice(1)); | ||
transaction.sdiffstore(ipDenyList, ipDenyList, allDenyLists); | ||
@@ -606,0 +606,0 @@ transaction.sunionstore(allDenyLists, allDenyLists, ipDenyList); |
@@ -1,1 +0,1 @@ | ||
{ "name": "@upstash/ratelimit", "version": "v0.0.0-ci.ca0fadfd69102cd1e6b00d7e4d3f1de037245e0e-20241006181002", "main": "./dist/index.js", "types": "./dist/index.d.ts", "files": [ "dist" ], "scripts": { "build": "tsup", "test": "bun test src --coverage", "fmt": "prettier --write .", "lint": "eslint \"src/**/*.{js,ts,tsx}\" --quiet --fix" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^8.4.0", "@upstash/redis": "^1.31.5", "bun-types": "latest", "eslint": "^9.10.0", "eslint-plugin-unicorn": "^55.0.0", "tsup": "^7.2.0", "turbo": "^1.10.15", "typescript": "^5.0.0" }, "license": "MIT", "dependencies": { "@upstash/core-analytics": "^0.0.10" } } | ||
{ "name": "@upstash/ratelimit", "version": "v0.0.0-ci.dfbcad5070f6dfff0ad7ce0558d8f7ee0809805c-20241021082734", "main": "./dist/index.js", "types": "./dist/index.d.ts", "files": [ "dist" ], "scripts": { "build": "tsup", "test": "bun test src --coverage", "fmt": "prettier --write .", "lint": "eslint \"src/**/*.{js,ts,tsx}\" --quiet --fix" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^8.4.0", "@upstash/redis": "^1.34.3", "bun-types": "latest", "eslint": "^9.10.0", "eslint-plugin-unicorn": "^55.0.0", "tsup": "^7.2.0", "turbo": "^1.10.15", "typescript": "^5.0.0" }, "license": "MIT", "dependencies": { "@upstash/core-analytics": "^0.0.10" } } |
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
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
383607
3927