@learncard/learn-cloud-plugin 2.3.25 → 2.3.26

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.
@@ -6107,7 +6107,7 @@ var require_lib = __commonJS({
6107
6107
  });
6108
6108
 
6109
6109
  // src/plugin.ts
6110
- var import_lodash = __toESM(require_lodash());
6110
+ var import_lodash = __toESM(require_lodash(), 1);
6111
6111
  import { getClient } from "@learncard/learn-cloud-client";
6112
6112
  import { isEncrypted } from "@learncard/helpers";
6113
6113
 
@@ -21124,7 +21124,7 @@ var AllocateCredentialStatusInputValidator = external_exports.object({
21124
21124
  }).default({});
21125
21125
 
21126
21126
  // src/helpers.ts
21127
- var import_json_stringify_deterministic = __toESM(require_lib());
21127
+ var import_json_stringify_deterministic = __toESM(require_lib(), 1);
21128
21128
 
21129
21129
  // ../../../node_modules/.pnpm/pbkdf2-hmac@1.2.1/node_modules/pbkdf2-hmac/dist/index.browser.esm.js
21130
21130
  var e = { "SHA-1": { outputLength: 20, blockSize: 64 }, "SHA-256": { outputLength: 32, blockSize: 64 }, "SHA-384": { outputLength: 48, blockSize: 128 }, "SHA-512": { outputLength: 64, blockSize: 128 } };
package/package.json CHANGED
@@ -1,9 +1,22 @@
1
1
  {
2
2
  "name": "@learncard/learn-cloud-plugin",
3
- "version": "2.3.25",
3
+ "version": "2.3.26",
4
4
  "description": "",
5
- "main": "./dist/index.js",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
6
7
  "module": "./dist/learn-cloud-plugin.esm.js",
8
+ "exports": {
9
+ ".": {
10
+ "import": {
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/learn-cloud-plugin.esm.js"
13
+ },
14
+ "require": {
15
+ "types": "./dist/index.d.cts",
16
+ "default": "./dist/index.cjs"
17
+ }
18
+ }
19
+ },
7
20
  "files": [
8
21
  "dist"
9
22
  ],
@@ -28,22 +41,22 @@
28
41
  "jest": "^29.3.0",
29
42
  "shx": "^0.3.4",
30
43
  "ts-jest": "^29.0.3",
31
- "@learncard/learn-cloud-service": "^2.5.18",
32
- "@learncard/types": "5.17.0"
44
+ "@learncard/learn-cloud-service": "^2.5.19",
45
+ "@learncard/types": "5.17.1"
33
46
  },
34
47
  "types": "./dist/index.d.ts",
35
48
  "dependencies": {
36
49
  "json-stringify-deterministic": "^1.0.8",
37
50
  "lodash": "^4.17.21",
38
51
  "pbkdf2-hmac": "^1.2.1",
39
- "@learncard/core": "9.4.20",
40
- "@learncard/helpers": "^1.3.2",
41
- "@learncard/didkit-plugin": "1.9.0",
42
- "@learncard/learn-cloud-client": "1.6.25"
52
+ "@learncard/core": "9.4.21",
53
+ "@learncard/didkit-plugin": "1.9.1",
54
+ "@learncard/helpers": "^1.3.3",
55
+ "@learncard/learn-cloud-client": "1.6.26"
43
56
  },
44
57
  "sideEffects": false,
45
58
  "scripts": {
46
- "build": "node ./scripts/build.mjs && shx cp ./scripts/mixedEntypoint.js ./dist/index.js && tsc --p tsconfig.json",
59
+ "build": "node ./scripts/build.mjs && shx cp ./scripts/mixedEntypoint.js ./dist/index.cjs && tsc --p tsconfig.json && shx cp ./dist/index.d.ts ./dist/index.d.cts",
47
60
  "test": "jest --passWithNoTests",
48
61
  "test:watch": "jest --watch",
49
62
  "test:coverage": "jest --silent --ci --coverage --coverageReporters=\"text\" --coverageReporters=\"text-summary\""