@upstash/ratelimit
Advanced tools
Comparing version 2.0.0 to 2.0.1-canary
@@ -169,3 +169,3 @@ import { Aggregate } from '@upstash/core-analytics'; | ||
getUsageOverTime<TFilter extends keyof Omit<Event, "time">>(timestampCount: number, groupby: TFilter): Promise<Aggregate[]>; | ||
getMostAllowedBlocked(timestampCount: number, getTop?: number): Promise<{ | ||
getMostAllowedBlocked(timestampCount: number, getTop?: number, checkAtMost?: number): Promise<{ | ||
allowed: { | ||
@@ -172,0 +172,0 @@ identifier: string; |
@@ -82,5 +82,6 @@ "use strict"; | ||
} | ||
async getMostAllowedBlocked(timestampCount, getTop) { | ||
async getMostAllowedBlocked(timestampCount, getTop, checkAtMost) { | ||
getTop = getTop ?? 5; | ||
return this.analytics.getMostAllowedBlocked(this.table, timestampCount, getTop); | ||
const timestamp = void 0; | ||
return this.analytics.getMostAllowedBlocked(this.table, timestampCount, getTop, timestamp, checkAtMost); | ||
} | ||
@@ -87,0 +88,0 @@ }; |
@@ -1,1 +0,1 @@ | ||
{ "name": "@upstash/ratelimit", "version": "v2.0.0", "main": "./dist/index.js", "types": "./dist/index.d.ts", "files": [ "dist" ], "scripts": { "build": "tsup", "test": "bun test src --coverage", "fmt": "bunx @biomejs/biome check --apply ./src" }, "devDependencies": { "@upstash/redis": "^1.31.5", "bun-types": "latest", "rome": "^11.0.0", "tsup": "^7.2.0", "turbo": "^1.10.15", "typescript": "^5.0.0" }, "license": "MIT", "dependencies": { "@upstash/core-analytics": "^0.0.9" } } | ||
{ "name": "@upstash/ratelimit", "version": "v2.0.1-canary", "main": "./dist/index.js", "types": "./dist/index.d.ts", "files": [ "dist" ], "scripts": { "build": "tsup", "test": "bun test src --coverage", "fmt": "bunx @biomejs/biome check --apply ./src" }, "devDependencies": { "@upstash/redis": "^1.31.5", "bun-types": "latest", "rome": "^11.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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
379819
3864
2
+ Added@upstash/core-analytics@0.0.10(transitive)
- Removed@upstash/core-analytics@0.0.9(transitive)