@learncard/core 9.3.27 → 9.3.29

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/core.esm.js CHANGED
@@ -3659,7 +3659,7 @@ var require_promise3 = __commonJS({
3659
3659
  });
3660
3660
 
3661
3661
  // src/polyfills.ts
3662
- var import_promise = __toESM(require_promise3());
3662
+ var import_promise = __toESM(require_promise3(), 1);
3663
3663
  import * as ac from "abort-controller/dist/abort-controller.js";
3664
3664
  var g = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : void 0;
3665
3665
  if (g) {
package/dist/index.cjs ADDED
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (process.env.NODE_ENV === 'production') {
4
+ module.exports = require('./core.cjs.production.min.cjs');
5
+ } else {
6
+ module.exports = require('./core.cjs.development.cjs');
7
+ }
package/package.json CHANGED
@@ -1,9 +1,16 @@
1
1
  {
2
2
  "name": "@learncard/core",
3
- "version": "9.3.27",
3
+ "version": "9.3.29",
4
4
  "description": "",
5
- "main": "./dist/index.js",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
6
7
  "module": "./dist/core.esm.js",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/core.esm.js",
11
+ "require": "./dist/index.cjs"
12
+ }
13
+ },
7
14
  "files": [
8
15
  "dist"
9
16
  ],
@@ -28,18 +35,18 @@
28
35
  "shx": "^0.3.4",
29
36
  "sift": "^17.0.1",
30
37
  "ts-jest": "^29.0.3",
31
- "tsc-alias": "^1.6.9",
32
- "@learncard/types": "5.6.14"
38
+ "tsc-alias": "^1.8.10",
39
+ "@learncard/types": "5.7.0"
33
40
  },
34
41
  "types": "./dist/index.d.ts",
35
42
  "dependencies": {
36
43
  "abort-controller": "^3.0.0",
37
44
  "core-js": "^3.25.5",
38
45
  "isomorphic-webcrypto": "^2.3.8",
39
- "@learncard/helpers": "1.1.16"
46
+ "@learncard/helpers": "1.1.17"
40
47
  },
41
48
  "scripts": {
42
- "build": "node ./scripts/build.mjs && shx cp ./scripts/mixedEntypoint.js ./dist/index.js && tsc --p tsconfig.build.json && tsc-alias",
49
+ "build": "node ./scripts/build.mjs && shx cp ./scripts/mixedEntypoint.js ./dist/index.cjs && tsc --p tsconfig.build.json && tsc-alias",
43
50
  "start": "aqu watch",
44
51
  "lint": "aqu lint",
45
52
  "lint:fix": "aqu lint --fix",
package/dist/index.js DELETED
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === 'production') {
4
- module.exports = require('./core.cjs.production.min.js');
5
- } else {
6
- module.exports = require('./core.cjs.development.js');
7
- }