@gravito/stasis 3.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.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";
@@ -1283,7 +1283,7 @@ var OrbitStasis = class {
1283
1283
  c.set(exposeAs, manager);
1284
1284
  return await next();
1285
1285
  });
1286
- core.services.set(exposeAs, manager);
1286
+ core.container.instance(exposeAs, manager);
1287
1287
  core.hooks.doAction("cache:init", manager);
1288
1288
  }
1289
1289
  getCache() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravito/stasis",
3
- "version": "3.0.0",
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": [