@pollar/core 0.8.1 → 0.8.2

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.mjs CHANGED
@@ -1,3 +1,5 @@
1
+ import { sha256 as sha256$1 } from '@noble/hashes/sha2';
2
+
1
3
  var __create = Object.create;
2
4
  var __defProp = Object.defineProperty;
3
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -182,11 +184,8 @@ function defaultKeyManager(storage, apiKey) {
182
184
  }
183
185
  return _factory(storage, apiKey);
184
186
  }
185
-
186
- // src/lib/sha256.ts
187
187
  async function sha256(data) {
188
- const buf = await crypto.subtle.digest("SHA-256", data);
189
- return new Uint8Array(buf);
188
+ return sha256$1(data);
190
189
  }
191
190
 
192
191
  // src/lib/api-key-hash.ts