@learncard/network-plugin 2.13.0 → 2.13.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 ADDED
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (process.env.NODE_ENV === 'production') {
4
+ module.exports = require('./lcn-plugin.cjs.production.min.cjs');
5
+ } else {
6
+ module.exports = require('./lcn-plugin.cjs.development.cjs');
7
+ }
@@ -0,0 +1,3 @@
1
+ export * from './types';
2
+ export * from './plugin';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -17377,4 +17377,4 @@ mustache/mustache.mjs:
17377
17377
  * http://github.com/janl/mustache.js
17378
17378
  *)
17379
17379
  */
17380
- //# sourceMappingURL=lcn-plugin.cjs.development.js.map
17380
+ //# sourceMappingURL=lcn-plugin.cjs.development.cjs.map
@@ -32,4 +32,4 @@ mustache/mustache.mjs:
32
32
  * http://github.com/janl/mustache.js
33
33
  *)
34
34
  */
35
- //# sourceMappingURL=lcn-plugin.cjs.production.min.js.map
35
+ //# sourceMappingURL=lcn-plugin.cjs.production.min.cjs.map
package/package.json CHANGED
@@ -1,9 +1,22 @@
1
1
  {
2
2
  "name": "@learncard/network-plugin",
3
- "version": "2.13.0",
3
+ "version": "2.13.1",
4
4
  "description": "",
5
- "main": "./dist/index.js",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
6
7
  "module": "./dist/lcn-plugin.esm.js",
8
+ "exports": {
9
+ ".": {
10
+ "import": {
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/lcn-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,21 +41,21 @@
28
41
  "shx": "^0.3.4",
29
42
  "ts-jest": "^29.0.3",
30
43
  "@types/mustache": "^4.2.5",
31
- "@learncard/didkey-plugin": "^1.1.20",
32
- "@learncard/didkit-plugin": "^1.9.0",
33
- "@learncard/vc-plugin": "^1.5.0",
34
- "@learncard/types": "5.17.0"
44
+ "@learncard/didkit-plugin": "^1.9.1",
45
+ "@learncard/didkey-plugin": "^1.1.21",
46
+ "@learncard/types": "5.17.1",
47
+ "@learncard/vc-plugin": "^1.5.1"
35
48
  },
36
49
  "types": "./dist/index.d.ts",
37
50
  "dependencies": {
38
51
  "mustache": "^4.2.0",
39
- "@learncard/core": "9.4.20",
40
- "@learncard/helpers": "1.3.2",
41
- "@learncard/network-brain-client": "2.5.37"
52
+ "@learncard/core": "9.4.21",
53
+ "@learncard/network-brain-client": "2.5.38",
54
+ "@learncard/helpers": "1.3.3"
42
55
  },
43
56
  "sideEffects": false,
44
57
  "scripts": {
45
- "build": "node ./scripts/build.mjs && shx cp ./scripts/mixedEntypoint.js ./dist/index.js && tsc --p tsconfig.json",
58
+ "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",
46
59
  "test": "jest --passWithNoTests",
47
60
  "test:watch": "jest --watch",
48
61
  "test:coverage": "jest --silent --ci --coverage --coverageReporters=\"text\" --coverageReporters=\"text-summary\""
package/dist/index.js DELETED
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === 'production') {
4
- module.exports = require('./lcn-plugin.cjs.production.min.js');
5
- } else {
6
- module.exports = require('./lcn-plugin.cjs.development.js');
7
- }