@learncard/encryption-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/{encryption-plugin.cjs.development.js → encryption-plugin.cjs.development.cjs} +1 -1
- package/dist/{encryption-plugin.cjs.production.min.js → encryption-plugin.cjs.production.min.cjs} +1 -1
- package/dist/{index.js → index.cjs} +2 -2
- package/dist/index.d.cts +7 -0
- package/package.json +18 -5
- /package/dist/{encryption-plugin.cjs.development.js.map → encryption-plugin.cjs.development.cjs.map} +0 -0
- /package/dist/{encryption-plugin.cjs.production.min.js.map → encryption-plugin.cjs.production.min.cjs.map} +0 -0
|
@@ -35,4 +35,4 @@ var getEncryptionPlugin = /* @__PURE__ */ __name(async (learnCard) => ({
|
|
|
35
35
|
decryptDagJwe: /* @__PURE__ */ __name(async (_learnCard, jwe, jwks = []) => learnCard.invoke.decryptDagJwe(jwe, [_learnCard.id.keypair(), ...jwks]), "decryptDagJwe")
|
|
36
36
|
}
|
|
37
37
|
}), "getEncryptionPlugin");
|
|
38
|
-
//# sourceMappingURL=encryption-plugin.cjs.development.
|
|
38
|
+
//# sourceMappingURL=encryption-plugin.cjs.development.cjs.map
|
package/dist/{encryption-plugin.cjs.production.min.js → encryption-plugin.cjs.production.min.cjs}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use strict";var o=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var c=(n,e)=>o(n,"name",{value:e,configurable:!0});var d=(n,e)=>{for(var i in e)o(n,i,{get:e[i],enumerable:!0})},s=(n,e,i,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let p of y(e))!a.call(n,p)&&p!==i&&o(n,p,{get:()=>e[p],enumerable:!(t=r(e,p))||t.enumerable});return n};var g=n=>s(o({},"__esModule",{value:!0}),n);var w={};d(w,{getEncryptionPlugin:()=>m});module.exports=g(w);var m=c(async n=>({name:"Encryption",displayName:"Encryption Plugin",description:"Exposes basic encryption methods",methods:{createJwe:c(async(e,i,t=[])=>n.invoke.createJwe(i,[e.id.did(),...t]),"createJwe"),decryptJwe:c(async(e,i,t=[])=>n.invoke.decryptJwe(i,[e.id.keypair(),...t]),"decryptJwe"),createDagJwe:c(async(e,i,t=[])=>n.invoke.createDagJwe(i,[e.id.did(),...t]),"createDagJwe"),decryptDagJwe:c(async(e,i,t=[])=>n.invoke.decryptDagJwe(i,[e.id.keypair(),...t]),"decryptDagJwe")}}),"getEncryptionPlugin");
|
|
2
|
-
//# sourceMappingURL=encryption-plugin.cjs.production.min.
|
|
2
|
+
//# sourceMappingURL=encryption-plugin.cjs.production.min.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
if (process.env.NODE_ENV === 'production') {
|
|
4
|
-
module.exports = require('./encryption-plugin.cjs.production.min.
|
|
4
|
+
module.exports = require('./encryption-plugin.cjs.production.min.cjs');
|
|
5
5
|
} else {
|
|
6
|
-
module.exports = require('./encryption-plugin.cjs.development.
|
|
6
|
+
module.exports = require('./encryption-plugin.cjs.development.cjs');
|
|
7
7
|
}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EncryptionPluginType, EncryptionDependentLearnCard } from './types';
|
|
2
|
+
export * from './types';
|
|
3
|
+
/**
|
|
4
|
+
* @group Plugins
|
|
5
|
+
*/
|
|
6
|
+
export declare const getEncryptionPlugin: (learnCard: EncryptionDependentLearnCard) => Promise<EncryptionPluginType>;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@learncard/encryption-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/encryption-plugin.esm.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"default": "./dist/encryption-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
|
],
|
|
@@ -30,12 +43,12 @@
|
|
|
30
43
|
},
|
|
31
44
|
"types": "./dist/index.d.ts",
|
|
32
45
|
"dependencies": {
|
|
33
|
-
"@learncard/core": "9.4.
|
|
34
|
-
"@learncard/types": "5.17.
|
|
46
|
+
"@learncard/core": "9.4.21",
|
|
47
|
+
"@learncard/types": "5.17.1"
|
|
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/{encryption-plugin.cjs.development.js.map → encryption-plugin.cjs.development.cjs.map}
RENAMED
|
File without changes
|
|
File without changes
|