@learncard/vpqr-plugin 1.1.19 → 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.
package/dist/index.cjs ADDED
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (process.env.NODE_ENV === 'production') {
4
+ module.exports = require('./vpqr-plugin.cjs.production.min.cjs');
5
+ } else {
6
+ module.exports = require('./vpqr-plugin.cjs.development.cjs');
7
+ }
@@ -0,0 +1,8 @@
1
+ import { VpqrPlugin, VpqrPluginDependentMethods } from './types';
2
+ import { LearnCard } from '@learncard/core';
3
+ export * from './types';
4
+ /**
5
+ * @group Plugins
6
+ */
7
+ export declare const getVpqrPlugin: (learnCard: LearnCard<any, any, VpqrPluginDependentMethods>) => VpqrPlugin;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -5352,4 +5352,4 @@ base58-universal/lib/index.js:
5352
5352
  * @see https://github.com/nuintun/qrcode#readme
5353
5353
  *)
5354
5354
  */
5355
- //# sourceMappingURL=vpqr-plugin.cjs.development.js.map
5355
+ //# sourceMappingURL=vpqr-plugin.cjs.development.cjs.map
@@ -89,4 +89,4 @@ base58-universal/lib/index.js:
89
89
  * @see https://github.com/nuintun/qrcode#readme
90
90
  *)
91
91
  */
92
- //# sourceMappingURL=vpqr-plugin.cjs.production.min.js.map
92
+ //# sourceMappingURL=vpqr-plugin.cjs.production.min.cjs.map
package/package.json CHANGED
@@ -1,9 +1,22 @@
1
1
  {
2
2
  "name": "@learncard/vpqr-plugin",
3
- "version": "1.1.19",
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/vpqr-plugin.esm.js",
8
+ "exports": {
9
+ ".": {
10
+ "import": {
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/vpqr-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
  ],
@@ -31,12 +44,12 @@
31
44
  "types": "./dist/index.d.ts",
32
45
  "dependencies": {
33
46
  "@digitalbazaar/vpqr": "^3.0.0",
34
- "@learncard/core": "9.4.19",
35
- "@learncard/types": "5.16.0"
47
+ "@learncard/core": "9.4.21",
48
+ "@learncard/types": "5.17.1"
36
49
  },
37
50
  "sideEffects": false,
38
51
  "scripts": {
39
- "build": "node ./scripts/build.mjs && shx cp ./scripts/mixedEntypoint.js ./dist/index.js && tsc --p tsconfig.json",
52
+ "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",
40
53
  "test": "jest --passWithNoTests",
41
54
  "test:watch": "jest --watch",
42
55
  "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('./vpqr-plugin.cjs.production.min.js');
5
- } else {
6
- module.exports = require('./vpqr-plugin.cjs.development.js');
7
- }