@learncard/crypto-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.
- package/dist/{crypto-plugin.cjs.development.js → crypto-plugin.cjs.development.cjs} +2 -2
- package/dist/{crypto-plugin.cjs.production.min.js → crypto-plugin.cjs.production.min.cjs} +2 -2
- package/dist/{crypto-plugin.cjs.production.min.js.map → crypto-plugin.cjs.production.min.cjs.map} +1 -1
- package/dist/{index.js → index.cjs} +2 -2
- package/dist/index.d.cts +7 -0
- package/package.json +17 -4
- /package/dist/{crypto-plugin.cjs.development.js.map → crypto-plugin.cjs.development.cjs.map} +0 -0
|
@@ -36,7 +36,7 @@ __export(index_exports, {
|
|
|
36
36
|
module.exports = __toCommonJS(index_exports);
|
|
37
37
|
|
|
38
38
|
// src/crypto.ts
|
|
39
|
-
var import_isomorphic_webcrypto = __toESM(require("isomorphic-webcrypto"));
|
|
39
|
+
var import_isomorphic_webcrypto = __toESM(require("isomorphic-webcrypto"), 1);
|
|
40
40
|
if (typeof window === "undefined" && !globalThis.crypto) globalThis.crypto = import_isomorphic_webcrypto.default;
|
|
41
41
|
var crypto_default = import_isomorphic_webcrypto.default;
|
|
42
42
|
|
|
@@ -49,4 +49,4 @@ var CryptoPlugin = {
|
|
|
49
49
|
crypto: /* @__PURE__ */ __name(() => crypto_default, "crypto")
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
-
//# sourceMappingURL=crypto-plugin.cjs.development.
|
|
52
|
+
//# sourceMappingURL=crypto-plugin.cjs.development.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var l=Object.create;var i=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var c=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var m=(o,p)=>i(o,"name",{value:p,configurable:!0});var g=(o,p)=>{for(var r in p)i(o,r,{get:p[r],enumerable:!0})},n=(o,p,r,y)=>{if(p&&typeof p=="object"||typeof p=="function")for(let t of a(p))!f.call(o,t)&&t!==r&&i(o,t,{get:()=>p[t],enumerable:!(y=s(p,t))||y.enumerable});return o};var u=(o,p,r)=>(r=o!=null?l(c(o)):{},n(p||!o||!o.__esModule?i(r,"default",{value:o,enumerable:!0}):r,o)),C=o=>n(i({},"__esModule",{value:!0}),o);var x={};g(x,{CryptoPlugin:()=>h});module.exports=C(x);var e=u(require("isomorphic-webcrypto"));typeof window>"u"&&!globalThis.crypto&&(globalThis.crypto=e.default);var d=e.default;var h={name:"Crypto",displayName:"Crypto Plugin",description:"Exposes a standardized, isomorphic Crypto object",methods:{crypto:m(()=>d,"crypto")}};
|
|
2
|
-
//# sourceMappingURL=crypto-plugin.cjs.production.min.
|
|
1
|
+
"use strict";var l=Object.create;var i=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var c=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var m=(o,p)=>i(o,"name",{value:p,configurable:!0});var g=(o,p)=>{for(var r in p)i(o,r,{get:p[r],enumerable:!0})},n=(o,p,r,y)=>{if(p&&typeof p=="object"||typeof p=="function")for(let t of a(p))!f.call(o,t)&&t!==r&&i(o,t,{get:()=>p[t],enumerable:!(y=s(p,t))||y.enumerable});return o};var u=(o,p,r)=>(r=o!=null?l(c(o)):{},n(p||!o||!o.__esModule?i(r,"default",{value:o,enumerable:!0}):r,o)),C=o=>n(i({},"__esModule",{value:!0}),o);var x={};g(x,{CryptoPlugin:()=>h});module.exports=C(x);var e=u(require("isomorphic-webcrypto"),1);typeof window>"u"&&!globalThis.crypto&&(globalThis.crypto=e.default);var d=e.default;var h={name:"Crypto",displayName:"Crypto Plugin",description:"Exposes a standardized, isomorphic Crypto object",methods:{crypto:m(()=>d,"crypto")}};
|
|
2
|
+
//# sourceMappingURL=crypto-plugin.cjs.production.min.cjs.map
|
package/dist/{crypto-plugin.cjs.production.min.js.map → crypto-plugin.cjs.production.min.cjs.map}
RENAMED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.ts", "../src/crypto.ts"],
|
|
4
4
|
"sourcesContent": ["import { CryptoPluginType } from './types';\n\nimport crypto from './crypto';\n\nexport * from './types';\n\n/**\n * @group Plugins\n */\nexport const CryptoPlugin: CryptoPluginType = {\n name: 'Crypto',\n displayName: 'Crypto Plugin',\n description: 'Exposes a standardized, isomorphic Crypto object',\n methods: {\n crypto: () => crypto,\n },\n};\n", "import crypto from 'isomorphic-webcrypto';\n\nif (typeof window === 'undefined' && !globalThis.crypto) globalThis.crypto = crypto;\n\nexport default crypto;\n"],
|
|
5
|
-
"mappings": "6mBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,kBAAAE,IAAA,eAAAC,EAAAH,GCAA,IAAAI,EAAmB,
|
|
5
|
+
"mappings": "6mBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,kBAAAE,IAAA,eAAAC,EAAAH,GCAA,IAAAI,EAAmB,qCAEf,OAAO,OAAW,KAAe,CAAC,WAAW,SAAQ,WAAW,OAAS,EAAAC,SAE7E,IAAOC,EAAQ,EAAAD,QDKR,IAAME,EAAiC,CAC1C,KAAM,SACN,YAAa,gBACb,YAAa,mDACb,QAAS,CACL,OAAQC,EAAA,IAAMC,EAAN,SACZ,CACJ",
|
|
6
6
|
"names": ["index_exports", "__export", "CryptoPlugin", "__toCommonJS", "import_isomorphic_webcrypto", "crypto", "crypto_default", "CryptoPlugin", "__name", "crypto_default"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
if (process.env.NODE_ENV === 'production') {
|
|
4
|
-
module.exports = require('./crypto-plugin.cjs.production.min.
|
|
4
|
+
module.exports = require('./crypto-plugin.cjs.production.min.cjs');
|
|
5
5
|
} else {
|
|
6
|
-
module.exports = require('./crypto-plugin.cjs.development.
|
|
6
|
+
module.exports = require('./crypto-plugin.cjs.development.cjs');
|
|
7
7
|
}
|
package/dist/index.d.cts
ADDED
package/package.json
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@learncard/crypto-plugin",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.21",
|
|
4
4
|
"description": "",
|
|
5
|
-
"
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
6
7
|
"module": "./dist/crypto-plugin.esm.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"default": "./dist/crypto-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,11 +44,11 @@
|
|
|
31
44
|
"types": "./dist/index.d.ts",
|
|
32
45
|
"dependencies": {
|
|
33
46
|
"isomorphic-webcrypto": "^2.3.8",
|
|
34
|
-
"@learncard/core": "9.4.
|
|
47
|
+
"@learncard/core": "9.4.21"
|
|
35
48
|
},
|
|
36
49
|
"sideEffects": false,
|
|
37
50
|
"scripts": {
|
|
38
|
-
"build": "node ./scripts/build.mjs && shx cp ./scripts/mixedEntypoint.js ./dist/index.
|
|
51
|
+
"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",
|
|
39
52
|
"test": "jest --passWithNoTests",
|
|
40
53
|
"test:watch": "jest --watch",
|
|
41
54
|
"test:coverage": "jest --silent --ci --coverage --coverageReporters=\"text\" --coverageReporters=\"text-summary\""
|
/package/dist/{crypto-plugin.cjs.development.js.map → crypto-plugin.cjs.development.cjs.map}
RENAMED
|
File without changes
|