@learncard/crypto-plugin 1.0.55 → 1.1.1
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 +10 -6
- package/dist/crypto-plugin.cjs.development.js.map +1 -1
- package/dist/crypto-plugin.cjs.production.min.js +1 -1
- package/dist/crypto-plugin.cjs.production.min.js.map +2 -2
- package/dist/crypto-plugin.esm.js +5 -3
- package/dist/crypto-plugin.esm.js.map +1 -1
- package/package.json +6 -6
|
@@ -5,6 +5,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
9
|
var __export = (target, all) => {
|
|
9
10
|
for (var name in all)
|
|
10
11
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -18,22 +19,25 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
19
|
return to;
|
|
19
20
|
};
|
|
20
21
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
26
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
27
|
mod
|
|
23
28
|
));
|
|
24
29
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
30
|
|
|
26
31
|
// src/index.ts
|
|
27
|
-
var
|
|
28
|
-
__export(
|
|
32
|
+
var index_exports = {};
|
|
33
|
+
__export(index_exports, {
|
|
29
34
|
CryptoPlugin: () => CryptoPlugin
|
|
30
35
|
});
|
|
31
|
-
module.exports = __toCommonJS(
|
|
36
|
+
module.exports = __toCommonJS(index_exports);
|
|
32
37
|
|
|
33
38
|
// src/crypto.ts
|
|
34
39
|
var import_isomorphic_webcrypto = __toESM(require("isomorphic-webcrypto"));
|
|
35
|
-
if (typeof window === "undefined" && !globalThis.crypto)
|
|
36
|
-
globalThis.crypto = import_isomorphic_webcrypto.default;
|
|
40
|
+
if (typeof window === "undefined" && !globalThis.crypto) globalThis.crypto = import_isomorphic_webcrypto.default;
|
|
37
41
|
var crypto_default = import_isomorphic_webcrypto.default;
|
|
38
42
|
|
|
39
43
|
// src/index.ts
|
|
@@ -42,7 +46,7 @@ var CryptoPlugin = {
|
|
|
42
46
|
displayName: "Crypto Plugin",
|
|
43
47
|
description: "Exposes a standardized, isomorphic Crypto object",
|
|
44
48
|
methods: {
|
|
45
|
-
crypto: () => crypto_default
|
|
49
|
+
crypto: /* @__PURE__ */ __name(() => crypto_default, "crypto")
|
|
46
50
|
}
|
|
47
51
|
};
|
|
48
52
|
//# sourceMappingURL=crypto-plugin.cjs.development.js.map
|
|
@@ -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": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,kCAAmB;AAEnB,IAAI,OAAO,WAAW,eAAe,CAAC,WAAW,OAAQ,YAAW,SAAS,4BAAAA;AAE7E,IAAO,iBAAQ,4BAAAA;;;ADKR,IAAM,eAAiC;AAAA,EAC1C,MAAM;AAAA,EACN,aAAa;AAAA,EACb,aAAa;AAAA,EACb,SAAS;AAAA,IACL,QAAQ,6BAAM,gBAAN;AAAA,EACZ;AACJ;",
|
|
6
6
|
"names": ["crypto"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var
|
|
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
2
|
//# sourceMappingURL=crypto-plugin.cjs.production.min.js.map
|
|
@@ -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": "
|
|
6
|
-
"names": ["
|
|
5
|
+
"mappings": "6mBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,kBAAAE,IAAA,eAAAC,EAAAH,GCAA,IAAAI,EAAmB,mCAEf,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
|
+
"names": ["index_exports", "__export", "CryptoPlugin", "__toCommonJS", "import_isomorphic_webcrypto", "crypto", "crypto_default", "CryptoPlugin", "__name", "crypto_default"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
|
|
1
4
|
// src/crypto.ts
|
|
2
5
|
import crypto from "isomorphic-webcrypto";
|
|
3
|
-
if (typeof window === "undefined" && !globalThis.crypto)
|
|
4
|
-
globalThis.crypto = crypto;
|
|
6
|
+
if (typeof window === "undefined" && !globalThis.crypto) globalThis.crypto = crypto;
|
|
5
7
|
var crypto_default = crypto;
|
|
6
8
|
|
|
7
9
|
// src/index.ts
|
|
@@ -10,7 +12,7 @@ var CryptoPlugin = {
|
|
|
10
12
|
displayName: "Crypto Plugin",
|
|
11
13
|
description: "Exposes a standardized, isomorphic Crypto object",
|
|
12
14
|
methods: {
|
|
13
|
-
crypto: () => crypto_default
|
|
15
|
+
crypto: /* @__PURE__ */ __name(() => crypto_default, "crypto")
|
|
14
16
|
}
|
|
15
17
|
};
|
|
16
18
|
export {
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/crypto.ts", "../src/index.ts"],
|
|
4
4
|
"sourcesContent": ["import crypto from 'isomorphic-webcrypto';\n\nif (typeof window === 'undefined' && !globalThis.crypto) globalThis.crypto = crypto;\n\nexport default crypto;\n", "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"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;AAAA,OAAO,YAAY;AAEnB,IAAI,OAAO,WAAW,eAAe,CAAC,WAAW,OAAQ,YAAW,SAAS;AAE7E,IAAO,iBAAQ;;;ACKR,IAAM,eAAiC;AAAA,EAC1C,MAAM;AAAA,EACN,aAAa;AAAA,EACb,aAAa;AAAA,EACb,SAAS;AAAA,IACL,QAAQ,6BAAM,gBAAN;AAAA,EACZ;AACJ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@learncard/crypto-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/crypto-plugin.esm.js",
|
|
@@ -9,19 +9,19 @@
|
|
|
9
9
|
],
|
|
10
10
|
"author": "Learning Economy Foundation (www.learningeconomy.io)",
|
|
11
11
|
"license": "MIT",
|
|
12
|
-
"homepage": "https://github.com/
|
|
12
|
+
"homepage": "https://github.com/learningeconomy/LearnCard/tree/main/packages/plugins/crypto/README.md",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
|
-
"url": "
|
|
15
|
+
"url": "https://github.com/learningeconomy/LearnCard"
|
|
16
16
|
},
|
|
17
17
|
"bugs": {
|
|
18
|
-
"url": "https://github.com/
|
|
18
|
+
"url": "https://github.com/learningeconomy/LearnCard/issues"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/jest": "^29.2.2",
|
|
22
22
|
"@types/node": "^17.0.31",
|
|
23
23
|
"aqu": "0.4.3",
|
|
24
|
-
"esbuild": "^0.
|
|
24
|
+
"esbuild": "^0.27.1",
|
|
25
25
|
"esbuild-jest": "^0.5.0",
|
|
26
26
|
"esbuild-plugin-copy": "^1.3.0",
|
|
27
27
|
"jest": "^29.3.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"types": "./dist/index.d.ts",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"isomorphic-webcrypto": "^2.3.8",
|
|
34
|
-
"@learncard/core": "9.
|
|
34
|
+
"@learncard/core": "9.4.1"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "node ./scripts/build.mjs && shx cp ./scripts/mixedEntypoint.js ./dist/index.js && tsc --p tsconfig.json",
|