@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.cjs CHANGED
@@ -659,9 +659,6 @@ function sleep(ms) {
659
659
  }
660
660
 
661
661
  // src/stores/FileStore.ts
662
- function hashKey(key) {
663
- return (0, import_node_crypto.createHash)("sha1").update(key).digest("hex");
664
- }
665
662
  var FileStore = class {
666
663
  constructor(options) {
667
664
  this.options = options;
@@ -797,6 +794,9 @@ var FileStore = class {
797
794
  };
798
795
  }
799
796
  };
797
+ function hashKey(key) {
798
+ return (0, import_node_crypto.createHash)("sha256").update(key).digest("hex");
799
+ }
800
800
 
801
801
  // src/stores/MemoryStore.ts
802
802
  var import_node_crypto2 = require("crypto");
@@ -1325,7 +1325,7 @@ var OrbitStasis = class {
1325
1325
  c.set(exposeAs, manager);
1326
1326
  return await next();
1327
1327
  });
1328
- core.services.set(exposeAs, manager);
1328
+ core.container.instance(exposeAs, manager);
1329
1329
  core.hooks.doAction("cache:init", manager);
1330
1330
  }
1331
1331
  getCache() {