Comparing version 0.0.722 to 0.0.723
11
cache.ts
@@ -581,9 +581,10 @@ import { max, min, floor, round } from './alias'; | ||
this.capacity = capacity; | ||
this.window = capacity * this.settings.window! / 100 >>> 0; | ||
this.resource = resource ?? this.settings.resource ?? capacity; | ||
const { settings } = this; | ||
this.window = capacity * settings.window! / 100 >>> 0; | ||
this.resource = resource ?? settings.resource ?? capacity; | ||
this.sweeper.resize( | ||
capacity, | ||
this.settings.sweep!.window!, | ||
this.settings.sweep!.room!, | ||
this.settings.sweep!.range!); | ||
settings.sweep!.window!, | ||
settings.sweep!.room!, | ||
settings.sweep!.range!); | ||
this.ensure(0); | ||
@@ -590,0 +591,0 @@ } |
{ | ||
"name": "spica", | ||
"version": "0.0.722", | ||
"version": "0.0.723", | ||
"description": "Supervisor, Coroutine, Channel, select, AtomicPromise, Cancellation, Cache, List, Queue, Stack, and some utils.", | ||
@@ -5,0 +5,0 @@ "private": false, |
@@ -581,9 +581,10 @@ import { max, min, floor, round } from './alias'; | ||
this.capacity = capacity; | ||
this.window = capacity * this.settings.window! / 100 >>> 0; | ||
this.resource = resource ?? this.settings.resource ?? capacity; | ||
const { settings } = this; | ||
this.window = capacity * settings.window! / 100 >>> 0; | ||
this.resource = resource ?? settings.resource ?? capacity; | ||
this.sweeper.resize( | ||
capacity, | ||
this.settings.sweep!.window!, | ||
this.settings.sweep!.room!, | ||
this.settings.sweep!.range!); | ||
settings.sweep!.window!, | ||
settings.sweep!.room!, | ||
settings.sweep!.range!); | ||
this.ensure(0); | ||
@@ -590,0 +591,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1153712
32264