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