@learncard/learn-card-plugin 1.2.30 → 1.2.32
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.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,+BAA+B,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG3E,cAAc,SAAS,CAAC;AACxB,cAAc,0BAA0B,CAAC;AAEzC;;GAEG;AACH,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,+BAA+B,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG3E,cAAc,SAAS,CAAC;AACxB,cAAc,0BAA0B,CAAC;AAEzC;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAC3B,WAAW,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,+BAA+B,CAAC,KAChE,eAOD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verificationPrettifier.d.ts","sourceRoot":"","sources":["../src/verificationPrettifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAA0B,MAAM,kBAAkB,CAAC;AA8H5E,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"verificationPrettifier.d.ts","sourceRoot":"","sources":["../src/verificationPrettifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAA0B,MAAM,kBAAkB,CAAC;AA8H5E,eAAO,MAAM,wBAAwB,GAAI,MAAM,gBAAgB,KAAG,gBAmEjE,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,OAAO,gBAAgB,EAAE,KAAG,gBAAgB,EAC/C,CAAC"}
|
package/dist/verify.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify.d.ts","sourceRoot":"","sources":["../src/verify.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,EAAE,EACF,iBAAiB,EACjB,gBAAgB,EAEnB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AA0IxD,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"verify.d.ts","sourceRoot":"","sources":["../src/verify.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,EAAE,EACF,iBAAiB,EACjB,gBAAgB,EAEnB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AA0IxD,eAAO,MAAM,gBAAgB,GACzB,WAAW,SAAS,CAChB,GAAG,EACH,GAAG,EACH;IACI,gBAAgB,EAAE,CACd,UAAU,EAAE,EAAE,EACd,OAAO,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,KAC9B,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACnC,CACJ,KACF,CAAC,CACA,UAAU,EAAE,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EACpC,UAAU,EAAE,EAAE,EACd,OAAO,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,EAC/B,QAAQ,CAAC,EAAE,OAAO,KACjB,OAAO,CAAC,gBAAgB,EAAE,GAAG,iBAAiB,CAAC,CAkCnD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@learncard/learn-card-plugin",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.32",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
],
|
|
25
25
|
"scripts": {
|
|
26
26
|
"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",
|
|
27
|
-
"test": "
|
|
28
|
-
"test:watch": "
|
|
29
|
-
"test:coverage": "
|
|
27
|
+
"test": "vitest run",
|
|
28
|
+
"test:watch": "vitest",
|
|
29
|
+
"test:coverage": "vitest run --coverage"
|
|
30
30
|
},
|
|
31
31
|
"author": "Learning Economy Foundation (www.learningeconomy.io)",
|
|
32
32
|
"license": "MIT",
|
|
@@ -39,21 +39,17 @@
|
|
|
39
39
|
"url": "https://github.com/learningeconomy/LearnCard/issues"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@types/jest": "^29.2.2",
|
|
43
42
|
"@types/node": "^17.0.31",
|
|
44
43
|
"aqu": "0.4.3",
|
|
45
44
|
"esbuild": "^0.27.1",
|
|
46
|
-
"esbuild-jest": "^0.5.0",
|
|
47
45
|
"esbuild-plugin-copy": "^1.3.0",
|
|
48
|
-
"
|
|
49
|
-
"shx": "^0.3.4",
|
|
50
|
-
"ts-jest": "^29.0.3"
|
|
46
|
+
"shx": "^0.3.4"
|
|
51
47
|
},
|
|
52
48
|
"types": "./dist/index.d.ts",
|
|
53
49
|
"dependencies": {
|
|
54
|
-
"@learncard/core": "9.4.
|
|
55
|
-
"@learncard/didkit-plugin": "^1.9.
|
|
56
|
-
"@learncard/types": "5.18.
|
|
50
|
+
"@learncard/core": "9.4.32",
|
|
51
|
+
"@learncard/didkit-plugin": "^1.9.12",
|
|
52
|
+
"@learncard/types": "5.18.3",
|
|
57
53
|
"date-fns": "^2.28.0"
|
|
58
54
|
},
|
|
59
55
|
"sideEffects": false
|
package/src/test/verify.test.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { vi } from 'vitest';
|
|
1
2
|
import { VC, VerificationCheck, VerificationStatusEnum } from '@learncard/types';
|
|
2
3
|
|
|
3
4
|
import { verifyCredential } from '../verify';
|
|
@@ -7,7 +8,7 @@ const credential = {} as VC;
|
|
|
7
8
|
const prettify = async (verificationCheck: VerificationCheck) => {
|
|
8
9
|
const learnCard = {
|
|
9
10
|
invoke: {
|
|
10
|
-
verifyCredential:
|
|
11
|
+
verifyCredential: vi.fn().mockResolvedValue(verificationCheck),
|
|
11
12
|
},
|
|
12
13
|
};
|
|
13
14
|
|