@learncard/cli 3.4.17 → 3.5.1
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 +38 -0
- package/README.md +10 -0
- package/dist/index.js +1933 -56
- package/package.json +24 -24
- package/rollup.config.js +25 -3
- package/scripts/embed-snippets.ts +25 -0
- package/src/consent-contract.ts +116 -0
- package/src/embed.ts +102 -0
- package/src/index.tsx +473 -147
- package/src/init.ts +26 -0
- package/src/open.test.ts +40 -0
- package/src/open.ts +186 -0
- package/src/out.test.ts +40 -0
- package/src/out.ts +16 -0
- package/src/phase-two.test.ts +154 -0
- package/src/project.test.ts +207 -0
- package/src/project.ts +394 -0
- package/src/revoke.test.ts +29 -0
- package/src/revoke.ts +65 -0
- package/src/send-template.test.ts +20 -0
- package/src/send.test.ts +45 -0
- package/src/send.ts +245 -0
- package/src/setup-signing.test.ts +62 -0
- package/src/setup-signing.ts +185 -0
- package/src/snippet-files.ts +16 -0
- package/src/status.test.ts +33 -0
- package/src/status.ts +96 -0
- package/src/token.test.ts +28 -0
- package/src/token.ts +138 -0
- package/src/verify.test.ts +35 -0
- package/src/verify.ts +66 -0
- package/src/webhook.ts +247 -0
- package/tsconfig.json +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# @learncard/cli
|
|
2
2
|
|
|
3
|
+
## 3.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`20b3844ddb7e649c9964308214ec4c395e9fc8db`](https://github.com/learningeconomy/LearnCard/commit/20b3844ddb7e649c9964308214ec4c395e9fc8db), [`b4f94f5a5ffbd52bad6cd26dc3dd627df8d5e6fb`](https://github.com/learningeconomy/LearnCard/commit/b4f94f5a5ffbd52bad6cd26dc3dd627df8d5e6fb), [`19bb79b1355dd9de7f71554fdb608f38b78ed6bb`](https://github.com/learningeconomy/LearnCard/commit/19bb79b1355dd9de7f71554fdb608f38b78ed6bb)]:
|
|
8
|
+
- @learncard/didkit-plugin@1.10.0
|
|
9
|
+
- @learncard/types@5.20.0
|
|
10
|
+
- @learncard/init@2.4.16
|
|
11
|
+
- @learncard/lca-api-plugin@2.0.5
|
|
12
|
+
- @learncard/learn-cloud-plugin@2.3.41
|
|
13
|
+
- @learncard/holder-continuity@0.2.18
|
|
14
|
+
- @learncard/core@9.4.35
|
|
15
|
+
- @learncard/ler-rs-plugin@0.1.26
|
|
16
|
+
- @learncard/linked-claims-plugin@0.2.35
|
|
17
|
+
- @learncard/open-badge-v2-plugin@1.1.36
|
|
18
|
+
- @learncard/render-method-plugin@7.0.0
|
|
19
|
+
|
|
20
|
+
## 3.5.0
|
|
21
|
+
|
|
22
|
+
### Minor Changes
|
|
23
|
+
|
|
24
|
+
- [#1528](https://github.com/learningeconomy/LearnCard/pull/1528) [`75d1816d5bbbd17772ef4c1c6b4932deacb9ccb5`](https://github.com/learningeconomy/LearnCard/commit/75d1816d5bbbd17772ef4c1c6b4932deacb9ccb5) Thanks [@Custard7](https://github.com/Custard7)! - Add quickstart commands that mirror the docs: `send <email>` (writes a seed to `.env`, creates an issuer profile, sends an Open Badges 3.0 credential via the universal inbox, and writes a reusable `send.mjs`), plus `init`, `status`, `revoke`, `verify`, `token`, `setup-signing`, `webhook`, `embed`, `consent-contract`, `open`, and `repl`.
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [[`6315fa3346cf75df2c6cbabe78962a9faa408781`](https://github.com/learningeconomy/LearnCard/commit/6315fa3346cf75df2c6cbabe78962a9faa408781), [`80d2ebf54bb5a643808f8f7d908cf68758903dce`](https://github.com/learningeconomy/LearnCard/commit/80d2ebf54bb5a643808f8f7d908cf68758903dce), [`75d1816d5bbbd17772ef4c1c6b4932deacb9ccb5`](https://github.com/learningeconomy/LearnCard/commit/75d1816d5bbbd17772ef4c1c6b4932deacb9ccb5)]:
|
|
29
|
+
- @learncard/types@5.19.0
|
|
30
|
+
- @learncard/init@2.4.15
|
|
31
|
+
- @learncard/holder-continuity@0.2.17
|
|
32
|
+
- @learncard/core@9.4.34
|
|
33
|
+
- @learncard/didkit-plugin@1.9.14
|
|
34
|
+
- @learncard/lca-api-plugin@2.0.4
|
|
35
|
+
- @learncard/learn-cloud-plugin@2.3.40
|
|
36
|
+
- @learncard/ler-rs-plugin@0.1.25
|
|
37
|
+
- @learncard/linked-claims-plugin@0.2.34
|
|
38
|
+
- @learncard/open-badge-v2-plugin@1.1.35
|
|
39
|
+
- @learncard/render-method-plugin@6.0.0
|
|
40
|
+
|
|
3
41
|
## 3.4.17
|
|
4
42
|
|
|
5
43
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -18,6 +18,16 @@ https://docs.learncard.com
|
|
|
18
18
|
|
|
19
19
|
## Usage
|
|
20
20
|
|
|
21
|
+
### Send your first credential
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npx @learncard/cli send you@example.com
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Generates a seed into `.env`, creates your issuer profile, sends a "Quickstart Complete" badge to the address, and writes the code it ran to `./send.mjs`. Pass `--yes` to accept defaults; `--name "Acme"`, `--badge "Welcome to Acme"`, `--description`, and `--profile-id` set them explicitly. Walkthrough: https://docs.learncard.com/start-here/your-first-integration
|
|
28
|
+
|
|
29
|
+
### Interactive REPL
|
|
30
|
+
|
|
21
31
|
```bash
|
|
22
32
|
npx @learncard/cli
|
|
23
33
|
|