@learncard/cli 1.0.0 → 1.0.4
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 +26 -0
- package/dist/index.js +5 -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,31 @@
|
|
|
1
1
|
# @learncard/cli
|
|
2
2
|
|
|
3
|
+
## 1.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`da81189`](https://github.com/WeLibraryOS/LearnCard/commit/da811895ae672f4287fbcd2026bf1aac5a6447e1)]:
|
|
8
|
+
- @learncard/core@1.3.1
|
|
9
|
+
|
|
10
|
+
## 1.0.3
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies []:
|
|
15
|
+
- @learncard/core@1.3.0
|
|
16
|
+
|
|
17
|
+
## 1.0.2
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Fix bad shebang
|
|
22
|
+
|
|
23
|
+
## 1.0.1
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Add node shebang
|
|
28
|
+
|
|
3
29
|
## 1.0.0
|
|
4
30
|
|
|
5
31
|
### Major Changes
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
'use strict';
|
|
2
3
|
|
|
3
4
|
var repl = require('pretty-repl');
|
|
@@ -17,13 +18,14 @@ var crypto__default = /*#__PURE__*/_interopDefaultLegacy(crypto);
|
|
|
17
18
|
const generateRandomSeed = () => crypto__default["default"].randomBytes(32).toString("hex");
|
|
18
19
|
|
|
19
20
|
var name = "@learncard/cli";
|
|
20
|
-
var version = "1.0.
|
|
21
|
+
var version = "1.0.4";
|
|
21
22
|
var description = "Test out learn card!";
|
|
22
23
|
var main = "dist/index.js";
|
|
23
24
|
var bin = "dist/index.js";
|
|
24
25
|
var scripts = {
|
|
25
26
|
start: "rollup -c && node dist/index.js",
|
|
26
|
-
build: "rollup -c"
|
|
27
|
+
build: "rollup -c",
|
|
28
|
+
prepare: "pnpm build"
|
|
27
29
|
};
|
|
28
30
|
var author = "Learning Economy Foundation (www.learningeconomy.io)";
|
|
29
31
|
var license = "MIT";
|
|
@@ -97,7 +99,7 @@ commander.program.version(packageJson.version).argument("[seed]").action(async (
|
|
|
97
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");
|
|
98
100
|
console.log("\u2502 Description \u2502 Command \u2502");
|
|
99
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");
|
|
100
|
-
console.log(`\u2502 View your did \u2502 ${g.wallet}.did;
|
|
102
|
+
console.log(`\u2502 View your did \u2502 ${g.wallet}.did(); \u2502`);
|
|
101
103
|
console.log(`\u2502 Generate an unsigned VC \u2502 ${g.wallet}.getTestVc(); \u2502`);
|
|
102
104
|
console.log(`\u2502 Issue a signed VC \u2502 await ${g.wallet}.issueCredential(uvc); \u2502`);
|
|
103
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.0.4",
|
|
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.1
|
|
11
|
-
"@learncard/types": "2.1.
|
|
10
|
+
"@learncard/core": "1.3.1",
|
|
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' }],
|
|
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); │`);
|