@bitgo-beta/argon2 0.0.1-beta.7 → 0.0.1-beta.70

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.
Files changed (2) hide show
  1. package/index.mjs +3 -0
  2. package/package.json +9 -2
package/index.mjs ADDED
@@ -0,0 +1,3 @@
1
+ // CJS/ESM interop: import the UMD bundle as a default and re-export named functions
2
+ import argon2 from './argon2.umd.min.js';
3
+ export const { argon2d, argon2i, argon2id, argon2Verify } = argon2;
package/package.json CHANGED
@@ -1,15 +1,22 @@
1
1
  {
2
2
  "name": "@bitgo-beta/argon2",
3
- "version": "0.0.1-beta.7",
3
+ "version": "0.0.1-beta.70",
4
4
  "description": "Vendored argon2 (hash-wasm v4.12.0) for BitGo SDK",
5
5
  "main": "argon2.umd.min.js",
6
6
  "types": "index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./index.mjs",
10
+ "require": "./argon2.umd.min.js"
11
+ }
12
+ },
7
13
  "scripts": {
8
14
  "test": "mocha test/**/*.ts",
9
15
  "verify": "./scripts/verify-vendor.sh"
10
16
  },
11
17
  "files": [
12
18
  "argon2.umd.min.js",
19
+ "index.mjs",
13
20
  "index.d.ts",
14
21
  "LICENSE",
15
22
  "PROVENANCE.md"
@@ -24,5 +31,5 @@
24
31
  "publishConfig": {
25
32
  "access": "public"
26
33
  },
27
- "gitHead": "fb8b4fccf90d2687297aa4f734da5498547ace0b"
34
+ "gitHead": "03a636092e57b10be6b9d10dc923ac6fb8c25c8b"
28
35
  }