@upstash/ratelimit
Advanced tools
Comparing version 0.0.0-ci.b1700114539281dffd8cdc735b109024d3062db7-20241010102154 to 0.0.0-ci.c4b8ba25044da9dc7989bf759073e0108eedadbc-20241021061223
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 @@ |
@@ -1,1 +0,1 @@ | ||
{ "name": "@upstash/ratelimit", "version": "v0.0.0-ci.b1700114539281dffd8cdc735b109024d3062db7-20241010102154", "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.c4b8ba25044da9dc7989bf759073e0108eedadbc-20241021061223", "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
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
383569
3927