@gravito/stasis 2.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5 -6
- package/dist/index.d.cts +533 -19
- package/dist/index.d.ts +533 -19
- package/dist/index.js +5 -6
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -617,9 +617,6 @@ function sleep(ms) {
|
|
|
617
617
|
}
|
|
618
618
|
|
|
619
619
|
// src/stores/FileStore.ts
|
|
620
|
-
function hashKey(key) {
|
|
621
|
-
return createHash("sha1").update(key).digest("hex");
|
|
622
|
-
}
|
|
623
620
|
var FileStore = class {
|
|
624
621
|
constructor(options) {
|
|
625
622
|
this.options = options;
|
|
@@ -755,6 +752,9 @@ var FileStore = class {
|
|
|
755
752
|
};
|
|
756
753
|
}
|
|
757
754
|
};
|
|
755
|
+
function hashKey(key) {
|
|
756
|
+
return createHash("sha256").update(key).digest("hex");
|
|
757
|
+
}
|
|
758
758
|
|
|
759
759
|
// src/stores/MemoryStore.ts
|
|
760
760
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
@@ -1281,10 +1281,9 @@ var OrbitStasis = class {
|
|
|
1281
1281
|
this.manager = manager;
|
|
1282
1282
|
core.adapter.use("*", async (c, next) => {
|
|
1283
1283
|
c.set(exposeAs, manager);
|
|
1284
|
-
await next();
|
|
1285
|
-
return void 0;
|
|
1284
|
+
return await next();
|
|
1286
1285
|
});
|
|
1287
|
-
core.
|
|
1286
|
+
core.container.instance(exposeAs, manager);
|
|
1288
1287
|
core.hooks.doAction("cache:init", manager);
|
|
1289
1288
|
}
|
|
1290
1289
|
getCache() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravito/stasis",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
|
26
26
|
"test": "bun test",
|
|
27
|
+
"test:coverage": "bun test --coverage --coverage-threshold=80",
|
|
28
|
+
"test:ci": "bun test --coverage --coverage-threshold=80",
|
|
27
29
|
"typecheck": "bun tsc -p tsconfig.json --noEmit --skipLibCheck"
|
|
28
30
|
},
|
|
29
31
|
"keywords": [
|