@learncard/idx-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.
@@ -21023,4 +21023,4 @@ fast-json-patch/module/duplex.mjs:
21023
21023
  * MIT license
21024
21024
  *)
21025
21025
  */
21026
- //# sourceMappingURL=idx-plugin.cjs.development.js.map
21026
+ //# sourceMappingURL=idx-plugin.cjs.development.cjs.map
@@ -60,4 +60,4 @@ fast-json-patch/module/duplex.mjs:
60
60
  * MIT license
61
61
  *)
62
62
  */
63
- //# sourceMappingURL=idx-plugin.cjs.production.min.js.map
63
+ //# sourceMappingURL=idx-plugin.cjs.production.min.cjs.map
package/dist/index.cjs ADDED
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (process.env.NODE_ENV === 'production') {
4
+ module.exports = require('./idx-plugin.cjs.production.min.cjs');
5
+ } else {
6
+ module.exports = require('./idx-plugin.cjs.development.cjs');
7
+ }
@@ -0,0 +1,5 @@
1
+ import { getIDXPlugin } from './idx';
2
+ export { getIDXPlugin } from './idx';
3
+ export * from './types';
4
+ export default getIDXPlugin;
5
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,9 +1,22 @@
1
1
  {
2
2
  "name": "@learncard/idx-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/idx-plugin.esm.js",
8
+ "exports": {
9
+ ".": {
10
+ "import": {
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/idx-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
  ],
@@ -34,13 +47,13 @@
34
47
  "@ceramicnetwork/http-client": "2.7.0",
35
48
  "@ceramicnetwork/streamid": "2.7.0",
36
49
  "@glazed/did-datastore": "0.3.2",
37
- "@learncard/ceramic-plugin": "^1.1.20",
38
- "@learncard/core": "9.4.20",
39
- "@learncard/types": "5.17.0"
50
+ "@learncard/ceramic-plugin": "^1.1.21",
51
+ "@learncard/types": "5.17.1",
52
+ "@learncard/core": "9.4.21"
40
53
  },
41
54
  "sideEffects": false,
42
55
  "scripts": {
43
- "build": "node ./scripts/build.mjs && shx cp ./scripts/mixedEntypoint.js ./dist/index.js && tsc --p tsconfig.json",
56
+ "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",
44
57
  "test": "jest --passWithNoTests",
45
58
  "test:watch": "jest --watch",
46
59
  "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('./idx-plugin.cjs.production.min.js');
5
- } else {
6
- module.exports = require('./idx-plugin.cjs.development.js');
7
- }