@learncard/cli 3.4.0 → 3.4.2
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/CHANGELOG.md +34 -0
- package/dist/index.js +3 -2
- package/package.json +12 -12
- package/src/replHelpers.ts +6 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @learncard/cli
|
|
2
2
|
|
|
3
|
+
## 3.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`3a0b110bd9503969c1f33c47505a43d2d199d083`](https://github.com/learningeconomy/LearnCard/commit/3a0b110bd9503969c1f33c47505a43d2d199d083), [`c749d55bec0fed881c3e488ffd90744e2eee021e`](https://github.com/learningeconomy/LearnCard/commit/c749d55bec0fed881c3e488ffd90744e2eee021e), [`3a0b110bd9503969c1f33c47505a43d2d199d083`](https://github.com/learningeconomy/LearnCard/commit/3a0b110bd9503969c1f33c47505a43d2d199d083), [`3a0b110bd9503969c1f33c47505a43d2d199d083`](https://github.com/learningeconomy/LearnCard/commit/3a0b110bd9503969c1f33c47505a43d2d199d083), [`3a0b110bd9503969c1f33c47505a43d2d199d083`](https://github.com/learningeconomy/LearnCard/commit/3a0b110bd9503969c1f33c47505a43d2d199d083), [`3a0b110bd9503969c1f33c47505a43d2d199d083`](https://github.com/learningeconomy/LearnCard/commit/3a0b110bd9503969c1f33c47505a43d2d199d083)]:
|
|
8
|
+
- @learncard/types@5.17.2
|
|
9
|
+
- @learncard/init@2.4.0
|
|
10
|
+
- @learncard/core@9.4.22
|
|
11
|
+
- @learncard/learn-cloud-plugin@2.3.27
|
|
12
|
+
- @learncard/render-method-plugin@3.0.2
|
|
13
|
+
- @learncard/holder-continuity@0.2.2
|
|
14
|
+
- @learncard/didkit-plugin@1.9.2
|
|
15
|
+
- @learncard/ler-rs-plugin@0.1.13
|
|
16
|
+
- @learncard/linked-claims-plugin@0.2.22
|
|
17
|
+
- @learncard/open-badge-v2-plugin@1.1.23
|
|
18
|
+
- @learncard/simple-signing-plugin@1.1.26
|
|
19
|
+
|
|
20
|
+
## 3.4.1
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [[`1706490abb9a8c1b099882c84d144ccabf92ffe2`](https://github.com/learningeconomy/LearnCard/commit/1706490abb9a8c1b099882c84d144ccabf92ffe2), [`1706490abb9a8c1b099882c84d144ccabf92ffe2`](https://github.com/learningeconomy/LearnCard/commit/1706490abb9a8c1b099882c84d144ccabf92ffe2)]:
|
|
25
|
+
- @learncard/init@2.3.21
|
|
26
|
+
- @learncard/didkit-plugin@1.9.1
|
|
27
|
+
- @learncard/learn-cloud-plugin@2.3.26
|
|
28
|
+
- @learncard/ler-rs-plugin@0.1.12
|
|
29
|
+
- @learncard/linked-claims-plugin@0.2.21
|
|
30
|
+
- @learncard/open-badge-v2-plugin@1.1.22
|
|
31
|
+
- @learncard/types@5.17.1
|
|
32
|
+
- @learncard/holder-continuity@0.2.1
|
|
33
|
+
- @learncard/core@9.4.21
|
|
34
|
+
- @learncard/render-method-plugin@3.0.1
|
|
35
|
+
- @learncard/simple-signing-plugin@1.1.25
|
|
36
|
+
|
|
3
37
|
## 3.4.0
|
|
4
38
|
|
|
5
39
|
### Minor Changes
|
package/dist/index.js
CHANGED
|
@@ -55,7 +55,8 @@ var __spreadValues = (a, b) => {
|
|
|
55
55
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
56
56
|
const createExportLearnCardBundleHelper = (exportBundle, defaultWallet) => {
|
|
57
57
|
return (walletOrOptions, maybeOptions) => {
|
|
58
|
-
if (maybeOptions)
|
|
58
|
+
if (maybeOptions)
|
|
59
|
+
return exportBundle(walletOrOptions, maybeOptions);
|
|
59
60
|
return exportBundle(defaultWallet, walletOrOptions);
|
|
60
61
|
};
|
|
61
62
|
};
|
|
@@ -69,7 +70,7 @@ const createRestoreLearnCardFromBundleHelper = (restoreBundle, defaultInit) => {
|
|
|
69
70
|
};
|
|
70
71
|
|
|
71
72
|
var name = "@learncard/cli";
|
|
72
|
-
var version = "3.4.
|
|
73
|
+
var version = "3.4.2";
|
|
73
74
|
var description = "Command Line Interface for LearnCard";
|
|
74
75
|
var main = "dist/index.js";
|
|
75
76
|
var bin = "dist/index.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@learncard/cli",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.2",
|
|
4
4
|
"description": "Command Line Interface for LearnCard",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": "dist/index.js",
|
|
@@ -15,17 +15,17 @@
|
|
|
15
15
|
"pretty-repl": "^3.1.1",
|
|
16
16
|
"rollup": "^2.80.0",
|
|
17
17
|
"rollup-plugin-esbuild": "^4.9.1",
|
|
18
|
-
"@learncard/core": "9.4.
|
|
19
|
-
"@learncard/didkit-plugin": "^1.9.
|
|
20
|
-
"@learncard/init": "^2.
|
|
21
|
-
"@learncard/
|
|
22
|
-
"@learncard/
|
|
23
|
-
"@learncard/
|
|
24
|
-
"@learncard/open-badge-v2-plugin": "1.1.
|
|
25
|
-
"@learncard/
|
|
26
|
-
"@learncard/
|
|
27
|
-
"@learncard/types": "5.17.
|
|
28
|
-
"@learncard/
|
|
18
|
+
"@learncard/core": "9.4.22",
|
|
19
|
+
"@learncard/didkit-plugin": "^1.9.2",
|
|
20
|
+
"@learncard/init": "^2.4.0",
|
|
21
|
+
"@learncard/ler-rs-plugin": "0.1.13",
|
|
22
|
+
"@learncard/linked-claims-plugin": "0.2.22",
|
|
23
|
+
"@learncard/learn-cloud-plugin": "2.3.27",
|
|
24
|
+
"@learncard/open-badge-v2-plugin": "1.1.23",
|
|
25
|
+
"@learncard/simple-signing-plugin": "1.1.26",
|
|
26
|
+
"@learncard/render-method-plugin": "3.0.2",
|
|
27
|
+
"@learncard/types": "5.17.2",
|
|
28
|
+
"@learncard/holder-continuity": "0.2.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/cors": "^2.8.12",
|
package/src/replHelpers.ts
CHANGED
|
@@ -6,7 +6,8 @@ import type {
|
|
|
6
6
|
} from '@learncard/holder-continuity';
|
|
7
7
|
|
|
8
8
|
type ExportLearnCardBundleFn = typeof import('@learncard/holder-continuity').exportLearnCardBundle;
|
|
9
|
-
type RestoreLearnCardFromBundleFn =
|
|
9
|
+
type RestoreLearnCardFromBundleFn =
|
|
10
|
+
typeof import('@learncard/holder-continuity').restoreLearnCardFromBundle;
|
|
10
11
|
|
|
11
12
|
export const createExportLearnCardBundleHelper = (
|
|
12
13
|
exportBundle: ExportLearnCardBundleFn,
|
|
@@ -16,7 +17,8 @@ export const createExportLearnCardBundleHelper = (
|
|
|
16
17
|
walletOrOptions: LearnCardBundleWallet | ExportLearnCardBundleOptions,
|
|
17
18
|
maybeOptions?: ExportLearnCardBundleOptions
|
|
18
19
|
) => {
|
|
19
|
-
if (maybeOptions)
|
|
20
|
+
if (maybeOptions)
|
|
21
|
+
return exportBundle(walletOrOptions as LearnCardBundleWallet, maybeOptions);
|
|
20
22
|
|
|
21
23
|
return exportBundle(defaultWallet, walletOrOptions as ExportLearnCardBundleOptions);
|
|
22
24
|
};
|
|
@@ -28,9 +30,9 @@ export const createRestoreLearnCardFromBundleHelper = (
|
|
|
28
30
|
) => {
|
|
29
31
|
return (
|
|
30
32
|
path: string,
|
|
31
|
-
options:
|
|
33
|
+
options: Omit<RestoreLearnCardFromBundleOptions, 'init'> & {
|
|
32
34
|
init?: Partial<RestoreLearnCardInit>;
|
|
33
|
-
}
|
|
35
|
+
} = {}
|
|
34
36
|
) => {
|
|
35
37
|
return restoreBundle(path, {
|
|
36
38
|
...options,
|