@learncard/cli 1.0.1 → 1.1.0
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 +31 -0
- package/dist/index.js +3 -3
- package/package.json +3 -3
- package/rollup.config.js +1 -1
- package/src/index.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @learncard/cli
|
|
2
2
|
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#26](https://github.com/WeLibraryOS/LearnCard/pull/26) [`e72b559`](https://github.com/WeLibraryOS/LearnCard/commit/e72b55994495e4bc6156b08abdd166c77fae67b7) Thanks [@TaylorBeeston](https://github.com/TaylorBeeston)! - Add secp256k1 keypair support and related did methods
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`e72b559`](https://github.com/WeLibraryOS/LearnCard/commit/e72b55994495e4bc6156b08abdd166c77fae67b7)]:
|
|
12
|
+
- @learncard/core@1.4.0
|
|
13
|
+
|
|
14
|
+
## 1.0.4
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [[`da81189`](https://github.com/WeLibraryOS/LearnCard/commit/da811895ae672f4287fbcd2026bf1aac5a6447e1)]:
|
|
19
|
+
- @learncard/core@1.3.1
|
|
20
|
+
|
|
21
|
+
## 1.0.3
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies []:
|
|
26
|
+
- @learncard/core@1.3.0
|
|
27
|
+
|
|
28
|
+
## 1.0.2
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- Fix bad shebang
|
|
33
|
+
|
|
3
34
|
## 1.0.1
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var repl = require('pretty-repl');
|
|
@@ -18,7 +18,7 @@ var crypto__default = /*#__PURE__*/_interopDefaultLegacy(crypto);
|
|
|
18
18
|
const generateRandomSeed = () => crypto__default["default"].randomBytes(32).toString("hex");
|
|
19
19
|
|
|
20
20
|
var name = "@learncard/cli";
|
|
21
|
-
var version = "1.0
|
|
21
|
+
var version = "1.1.0";
|
|
22
22
|
var description = "Test out learn card!";
|
|
23
23
|
var main = "dist/index.js";
|
|
24
24
|
var bin = "dist/index.js";
|
|
@@ -99,7 +99,7 @@ commander.program.version(packageJson.version).argument("[seed]").action(async (
|
|
|
99
99
|
console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510");
|
|
100
100
|
console.log("\u2502 Description \u2502 Command \u2502");
|
|
101
101
|
console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");
|
|
102
|
-
console.log(`\u2502 View your did \u2502 ${g.wallet}.did;
|
|
102
|
+
console.log(`\u2502 View your did \u2502 ${g.wallet}.did(); \u2502`);
|
|
103
103
|
console.log(`\u2502 Generate an unsigned VC \u2502 ${g.wallet}.getTestVc(); \u2502`);
|
|
104
104
|
console.log(`\u2502 Issue a signed VC \u2502 await ${g.wallet}.issueCredential(uvc); \u2502`);
|
|
105
105
|
console.log(`\u2502 Verify a signed VC \u2502 await ${g.wallet}.verifyCredential(vc); \u2502`);
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@learncard/cli",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Test out learn card!",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": "dist/index.js",
|
|
7
7
|
"author": "Learning Economy Foundation (www.learningeconomy.io)",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@learncard/core": "1.
|
|
11
|
-
"@learncard/types": "2.1.
|
|
10
|
+
"@learncard/core": "1.4.0",
|
|
11
|
+
"@learncard/types": "2.1.2",
|
|
12
12
|
"@rollup/plugin-json": "^4.1.0",
|
|
13
13
|
"commander": "^9.3.0",
|
|
14
14
|
"figlet": "^1.5.2",
|
package/rollup.config.js
CHANGED
|
@@ -6,7 +6,7 @@ const packageJson = require('./package.json');
|
|
|
6
6
|
export default [
|
|
7
7
|
{
|
|
8
8
|
input: ['src/index.tsx'],
|
|
9
|
-
output: [{ file: packageJson.bin, format: 'cjs', banner: '#!/
|
|
9
|
+
output: [{ file: packageJson.bin, format: 'cjs', banner: '#!/usr/bin/env node' }],
|
|
10
10
|
plugins: [json(), esbuild()],
|
|
11
11
|
},
|
|
12
12
|
];
|
package/src/index.tsx
CHANGED
|
@@ -68,7 +68,7 @@ program
|
|
|
68
68
|
console.log('┌─────────────────────────┬──────────────────────────────────────┐');
|
|
69
69
|
console.log('│ Description │ Command │');
|
|
70
70
|
console.log('├─────────────────────────┼──────────────────────────────────────┤');
|
|
71
|
-
console.log(`│ View your did │ ${g.wallet}.did;
|
|
71
|
+
console.log(`│ View your did │ ${g.wallet}.did(); │`);
|
|
72
72
|
console.log(`│ Generate an unsigned VC │ ${g.wallet}.getTestVc(); │`);
|
|
73
73
|
console.log(`│ Issue a signed VC │ await ${g.wallet}.issueCredential(uvc); │`);
|
|
74
74
|
console.log(`│ Verify a signed VC │ await ${g.wallet}.verifyCredential(vc); │`);
|