Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

spica

Package Overview
Dependencies
Maintainers
1
Versions
804
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spica - npm Package Compare versions

Comparing version 0.0.748 to 0.0.749

20

cache.test.ts

@@ -368,3 +368,3 @@ import { Cache } from './cache';

console.debug('DWC overlap', dwc['overlapLRU'], dwc['overlapLFU']);
assert(stats.dwc / stats.lru * 100 >>> 0 === 204);
assert(stats.dwc / stats.lru * 100 >>> 0 === 205);
});

@@ -454,3 +454,3 @@

console.debug('DWC overlap', dwc['overlapLRU'], dwc['overlapLFU']);
assert(stats.dwc / stats.lru * 100 >>> 0 === 166);
assert(stats.dwc / stats.lru * 100 >>> 0 === 165);
});

@@ -516,3 +516,3 @@

console.debug('DWC overlap', dwc['overlapLRU'], dwc['overlapLFU']);
assert(stats.dwc / stats.lru * 100 >>> 0 === 233);
assert(stats.dwc / stats.lru * 100 >>> 0 === 245);
});

@@ -547,3 +547,3 @@

console.debug('DWC overlap', dwc['overlapLRU'], dwc['overlapLFU']);
assert(stats.dwc / stats.lru * 100 >>> 0 === 74);
assert(stats.dwc / stats.lru * 100 >>> 0 === 77);
});

@@ -689,4 +689,4 @@

console.debug('DWC overlap', dwc['overlapLRU'], dwc['overlapLFU']);
assert(stats.dwc / stats.lru * 100 >>> 0 === 90);
assert(dwc['partition']! * 100 / capacity >>> 0 === 54);
assert(stats.dwc / stats.lru * 100 >>> 0 === 112);
assert(dwc['partition']! * 100 / capacity >>> 0 === 55);
});

@@ -719,3 +719,3 @@

? -i % capacity / 2 | 0
: random() * capacity * 2 | 0;
: random() * capacity * 9 | 0;
stats.lru += lru.get(key) ?? +lru.set(key, 1) & 0;

@@ -734,4 +734,4 @@ stats.dwc += dwc.get(key) ?? +dwc.set(key, 1) & 0;

console.debug('DWC overlap', dwc['overlapLRU'], dwc['overlapLFU']);
assert(stats.dwc / stats.lru * 100 >>> 0 === 86);
assert(dwc['partition']! * 100 / capacity >>> 0 === 64);
assert(stats.dwc / stats.lru * 100 >>> 0 === 83);
assert(dwc['partition']! * 100 / capacity >>> 0 === 53);
});

@@ -765,3 +765,3 @@

console.debug('DWC overlap', dwc['overlapLRU'], dwc['overlapLFU']);
assert(stats.dwc / stats.lru * 100 >>> 0 === 161);
assert(stats.dwc / stats.lru * 100 >>> 0 === 162);
});

@@ -768,0 +768,0 @@

@@ -103,3 +103,3 @@ import { Clock } from './clock';

console.debug('Clock / LRU hit ratio', `${stats.clock / stats.lru * 100 | 0}%`);
assert(stats.clock / stats.lru * 100 >>> 0 === 100);
assert(stats.clock / stats.lru * 100 >>> 0 === 99);
assert(clock['values'].length === capacity);

@@ -106,0 +106,0 @@ });

{
"name": "spica",
"version": "0.0.748",
"version": "0.0.749",
"description": "Supervisor, Coroutine, Channel, select, AtomicPromise, Cancellation, Cache, List, Queue, Stack, and some utils.",

@@ -5,0 +5,0 @@ "private": false,

@@ -131,3 +131,3 @@ const bases = Object.freeze([...Array(7)].map((_, i) => 1 << i));

x ^= x << 13;
x ^= x >> 17;
x ^= x >>> 17;
x ^= x << 15;

@@ -138,3 +138,3 @@ return seed = x >>> 0;

export namespace xorshift {
const max = -1 >>> 0;
const max = ~0 >>> 0;
assert(0 * max + 1 >>> 0 === 1);

@@ -141,0 +141,0 @@ assert(0.9 * max + 1 >>> 0 >= 0);

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc