@learncard/chapi-plugin 1.1.20 → 1.1.21

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.
@@ -1892,4 +1892,4 @@ web-credential-handler/index.js:
1892
1892
  * Copyright (c) 2018-2022 Digital Bazaar, Inc. All rights reserved.
1893
1893
  *)
1894
1894
  */
1895
- //# sourceMappingURL=chapi-plugin.cjs.development.js.map
1895
+ //# sourceMappingURL=chapi-plugin.cjs.development.cjs.map
@@ -121,4 +121,4 @@ web-credential-handler/index.js:
121
121
  * Copyright (c) 2018-2022 Digital Bazaar, Inc. All rights reserved.
122
122
  *)
123
123
  */
124
- //# sourceMappingURL=chapi-plugin.cjs.production.min.js.map
124
+ //# sourceMappingURL=chapi-plugin.cjs.production.min.cjs.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  if (process.env.NODE_ENV === 'production') {
4
- module.exports = require('./chapi-plugin.cjs.production.min.js');
4
+ module.exports = require('./chapi-plugin.cjs.production.min.cjs');
5
5
  } else {
6
- module.exports = require('./chapi-plugin.cjs.development.js');
6
+ module.exports = require('./chapi-plugin.cjs.development.cjs');
7
7
  }
@@ -0,0 +1,3 @@
1
+ export { getCHAPIPlugin } from './chapi';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,9 +1,22 @@
1
1
  {
2
2
  "name": "@learncard/chapi-plugin",
3
- "version": "1.1.20",
3
+ "version": "1.1.21",
4
4
  "description": "",
5
- "main": "./dist/index.js",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
6
7
  "module": "./dist/chapi-plugin.esm.js",
8
+ "exports": {
9
+ ".": {
10
+ "import": {
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/chapi-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
  ],
@@ -27,18 +40,18 @@
27
40
  "jest": "^29.3.0",
28
41
  "shx": "^0.3.4",
29
42
  "ts-jest": "^29.0.3",
30
- "@learncard/types": "5.17.0"
43
+ "@learncard/types": "5.17.1"
31
44
  },
32
45
  "types": "./dist/index.d.ts",
33
46
  "dependencies": {
34
47
  "credential-handler-polyfill": "^3.2.1",
35
48
  "web-credential-handler": "^2.0.0",
36
- "@learncard/core": "9.4.20",
37
- "@learncard/didkit-plugin": "^1.9.0"
49
+ "@learncard/core": "9.4.21",
50
+ "@learncard/didkit-plugin": "^1.9.1"
38
51
  },
39
52
  "sideEffects": false,
40
53
  "scripts": {
41
- "build": "node ./scripts/build.mjs && shx cp ./scripts/mixedEntypoint.js ./dist/index.js && tsc --p tsconfig.json",
54
+ "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",
42
55
  "test": "jest --passWithNoTests",
43
56
  "test:watch": "jest --watch",
44
57
  "test:coverage": "jest --silent --ci --coverage --coverageReporters=\"text\" --coverageReporters=\"text-summary\""