@learncard/crypto-plugin 1.0.1 → 1.0.3

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.
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -17,10 +16,7 @@ var __copyProps = (to, from, except, desc) => {
17
16
  }
18
17
  return to;
19
18
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
- mod
23
- ));
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
24
20
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
21
 
26
22
  // src/index.ts
@@ -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": ";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,kCAAmB;AAEnB,IAAI,OAAO,WAAW,eAAe,CAAC,WAAW;AAAQ,aAAW,SAAS,4BAAAA;AAE7E,IAAO,iBAAQ,4BAAAA;;;ADKR,IAAM,eAAiC;AAAA,EAC1C,MAAM;AAAA,EACN,aAAa;AAAA,EACb,aAAa;AAAA,EACb,SAAS;AAAA,IACL,QAAQ,MAAM;AAAA,EAClB;AACJ;",
6
- "names": ["crypto"]
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,kCAAmB;AAEnB,IAAI,OAAO,WAAW,eAAe,CAAC,WAAW;AAAQ,aAAW,SAAS;AAE7E,IAAO,iBAAQ;;;ADKR,IAAM,eAAiC;AAAA,EAC1C,MAAM;AAAA,EACN,aAAa;AAAA,EACb,aAAa;AAAA,EACb,SAAS;AAAA,IACL,QAAQ,MAAM;AAAA,EAClB;AACJ;",
6
+ "names": []
7
7
  }
@@ -1,2 +1,2 @@
1
- "use strict";var d=Object.create;var i=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var a=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty;var f=(o,p)=>{for(var r in p)i(o,r,{get:p[r],enumerable:!0})},m=(o,p,r,y)=>{if(p&&typeof p=="object"||typeof p=="function")for(let t of s(p))!c.call(o,t)&&t!==r&&i(o,t,{get:()=>p[t],enumerable:!(y=l(p,t))||y.enumerable});return o};var g=(o,p,r)=>(r=o!=null?d(a(o)):{},m(p||!o||!o.__esModule?i(r,"default",{value:o,enumerable:!0}):r,o)),u=o=>m(i({},"__esModule",{value:!0}),o);var h={};f(h,{CryptoPlugin:()=>C});module.exports=u(h);var e=g(require("isomorphic-webcrypto"));typeof window>"u"&&!globalThis.crypto&&(globalThis.crypto=e.default);var n=e.default;var C={name:"Crypto",displayName:"Crypto Plugin",description:"Exposes a standardized, isomorphic Crypto object",methods:{crypto:()=>n}};
1
+ var d=Object.create;var i=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var a=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty;var f=(o,p)=>{for(var r in p)i(o,r,{get:p[r],enumerable:!0})},m=(o,p,r,y)=>{if(p&&typeof p=="object"||typeof p=="function")for(let t of s(p))!c.call(o,t)&&t!==r&&i(o,t,{get:()=>p[t],enumerable:!(y=l(p,t))||y.enumerable});return o};var g=(o,p,r)=>(r=o!=null?d(a(o)):{},m(p||!o||!o.__esModule?i(r,"default",{value:o,enumerable:!0}):r,o)),u=o=>m(i({},"__esModule",{value:!0}),o);var h={};f(h,{CryptoPlugin:()=>C});module.exports=u(h);var e=g(require("isomorphic-webcrypto"));typeof window>"u"&&!globalThis.crypto&&(globalThis.crypto=e.default);var n=e.default;var C={name:"Crypto",displayName:"Crypto Plugin",description:"Exposes a standardized, isomorphic Crypto object",methods:{crypto:()=>n}};
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": "0jBAAA,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,OAAQ,IAAMC,CAClB,CACJ",
6
- "names": ["src_exports", "__export", "CryptoPlugin", "__toCommonJS", "import_isomorphic_webcrypto", "crypto", "crypto_default", "CryptoPlugin", "crypto_default"]
5
+ "mappings": "6iBAAA,uDCAA,MAAmB,mCAEnB,AAAI,MAAO,QAAW,KAAe,CAAC,WAAW,QAAQ,YAAW,OAAS,WAE7E,GAAO,GAAQ,UDKR,GAAM,GAAiC,CAC1C,KAAM,SACN,YAAa,gBACb,YAAa,mDACb,QAAS,CACL,OAAQ,IAAM,CAClB,CACJ",
6
+ "names": []
7
7
  }
@@ -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": ";AAAA,OAAO,YAAY;AAEnB,IAAI,OAAO,WAAW,eAAe,CAAC,WAAW;AAAQ,aAAW,SAAS;AAE7E,IAAO,iBAAQ;;;ACKR,IAAM,eAAiC;AAAA,EAC1C,MAAM;AAAA,EACN,aAAa;AAAA,EACb,aAAa;AAAA,EACb,SAAS;AAAA,IACL,QAAQ,MAAM;AAAA,EAClB;AACJ;",
5
+ "mappings": ";AAAA;AAEA,IAAI,OAAO,WAAW,eAAe,CAAC,WAAW;AAAQ,aAAW,SAAS;AAE7E,IAAO,iBAAQ;;;ACKR,IAAM,eAAiC;AAAA,EAC1C,MAAM;AAAA,EACN,aAAa;AAAA,EACb,aAAa;AAAA,EACb,SAAS;AAAA,IACL,QAAQ,MAAM;AAAA,EAClB;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.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/crypto-plugin.esm.js",
@@ -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.0.1"
34
+ "@learncard/core": "9.0.3"
35
35
  },
36
36
  "scripts": {
37
37
  "build": "node ./scripts/build.mjs && shx cp ./scripts/mixedEntypoint.js ./dist/index.js && tsc --p tsconfig.json",