@learncard/create-http-bridge 1.1.242 → 1.1.244
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 +17 -0
- package/README.md +6 -5
- package/cli/Info.tsx +6 -6
- package/dist/index.js +5 -5
- package/package.json +61 -61
- package/serverless.yml +1 -1
- package/LICENSE +0 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @learncard/create-http-bridge
|
|
2
2
|
|
|
3
|
+
## 1.1.244
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9b1f8352946f78f382f85d95c5e983d86449ea68`](https://github.com/learningeconomy/LearnCard/commit/9b1f8352946f78f382f85d95c5e983d86449ea68) Thanks [@TaylorBeeston](https://github.com/TaylorBeeston)! - Republish package metadata with concrete internal dependency versions instead of workspace protocol ranges.
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`9b1f8352946f78f382f85d95c5e983d86449ea68`](https://github.com/learningeconomy/LearnCard/commit/9b1f8352946f78f382f85d95c5e983d86449ea68)]:
|
|
10
|
+
- @learncard/init@2.4.5
|
|
11
|
+
|
|
12
|
+
## 1.1.243
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [[`59d79e9c2aed145284d6cc3de4c53ef0d3415299`](https://github.com/learningeconomy/LearnCard/commit/59d79e9c2aed145284d6cc3de4c53ef0d3415299), [`8bcccce23f919e9bcd0d22d87e7d33242b557930`](https://github.com/learningeconomy/LearnCard/commit/8bcccce23f919e9bcd0d22d87e7d33242b557930), [`8bcccce23f919e9bcd0d22d87e7d33242b557930`](https://github.com/learningeconomy/LearnCard/commit/8bcccce23f919e9bcd0d22d87e7d33242b557930), [`8bcccce23f919e9bcd0d22d87e7d33242b557930`](https://github.com/learningeconomy/LearnCard/commit/8bcccce23f919e9bcd0d22d87e7d33242b557930)]:
|
|
17
|
+
- @learncard/init@2.4.4
|
|
18
|
+
- @learncard/types@5.17.5
|
|
19
|
+
|
|
3
20
|
## 1.1.242
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -9,17 +9,19 @@
|
|
|
9
9
|
**LearnCard Bridge - HTTP** is a suite of tools with a simple CLI for deploying a serverless execution environment for LearnCard Core exposed over an HTTP API.
|
|
10
10
|
|
|
11
11
|
## Documentation
|
|
12
|
+
|
|
12
13
|
All LearnCard documentation can be found at:
|
|
13
14
|
https://docs.learncard.com
|
|
14
15
|
|
|
15
16
|
## Install
|
|
16
17
|
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
18
|
+
- Clone this repo
|
|
19
|
+
- Set up AWS CLI
|
|
20
|
+
- Add a .env file exporting a wallet seed (e.g. `WALLET_SEED=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa`)
|
|
21
|
+
- Run `bun run serverless-deploy`
|
|
21
22
|
|
|
22
23
|
## Contributing
|
|
24
|
+
|
|
23
25
|
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
|
|
24
26
|
|
|
25
27
|
Please make sure to update tests as appropriate.
|
|
@@ -28,7 +30,6 @@ Please make sure to update tests as appropriate.
|
|
|
28
30
|
|
|
29
31
|
**[Learning Economy Foundation (LEF)](https://www.learningeconomy.io)** is a 501(c)(3) non-profit organization leveraging global standards and web3 protocols to bring quality skills and equal opportunity to every human on earth, and address the persistent inequities that exist around the globe in education and employment. We help you build the future of education and work with:
|
|
30
32
|
|
|
31
|
-
|
|
32
33
|
## License
|
|
33
34
|
|
|
34
35
|
MIT © [Learning Economy Foundation](https://github.com/Learning-Economy-Foundation)
|
package/cli/Info.tsx
CHANGED
|
@@ -8,12 +8,12 @@ type InfoProps = {
|
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
const Info: React.FC<InfoProps> = ({ path }) => {
|
|
11
|
-
const [
|
|
11
|
+
const [bun, setBun] = useState(true);
|
|
12
12
|
const [aws, setAws] = useState(true);
|
|
13
13
|
|
|
14
14
|
useEffect(() => {
|
|
15
15
|
const checkForBinaries = async () => {
|
|
16
|
-
|
|
16
|
+
setBun(!!(await lookpath('bun')));
|
|
17
17
|
setAws(!!(await lookpath('aws')));
|
|
18
18
|
};
|
|
19
19
|
|
|
@@ -50,10 +50,10 @@ const Info: React.FC<InfoProps> = ({ path }) => {
|
|
|
50
50
|
)}
|
|
51
51
|
|
|
52
52
|
<Box borderStyle="round" flexDirection="column">
|
|
53
|
-
{!
|
|
53
|
+
{!bun && (
|
|
54
54
|
<Text>
|
|
55
55
|
<Text color="green">{'$ '}</Text>
|
|
56
|
-
<SyntaxHighlight code="npm i -g
|
|
56
|
+
<SyntaxHighlight code="npm i -g bun@1.3.14" language="bash" />
|
|
57
57
|
</Text>
|
|
58
58
|
)}
|
|
59
59
|
<Text>
|
|
@@ -65,11 +65,11 @@ const Info: React.FC<InfoProps> = ({ path }) => {
|
|
|
65
65
|
</Text>
|
|
66
66
|
<Text>
|
|
67
67
|
<Text color="green">{'$ '}</Text>
|
|
68
|
-
<SyntaxHighlight code="
|
|
68
|
+
<SyntaxHighlight code="bun install" language="bash" />
|
|
69
69
|
</Text>
|
|
70
70
|
<Text>
|
|
71
71
|
<Text color="green">{'$ '}</Text>
|
|
72
|
-
<SyntaxHighlight code="
|
|
72
|
+
<SyntaxHighlight code="bun run serverless-deploy" language="bash" />
|
|
73
73
|
</Text>
|
|
74
74
|
</Box>
|
|
75
75
|
</Box>
|
package/dist/index.js
CHANGED
|
@@ -341,11 +341,11 @@ const Cloning = ({ path, onFinished }) => {
|
|
|
341
341
|
};
|
|
342
342
|
|
|
343
343
|
const Info = ({ path }) => {
|
|
344
|
-
const [
|
|
344
|
+
const [bun, setBun] = React.useState(true);
|
|
345
345
|
const [aws, setAws] = React.useState(true);
|
|
346
346
|
React.useEffect(() => {
|
|
347
347
|
const checkForBinaries = async () => {
|
|
348
|
-
|
|
348
|
+
setBun(!!await lookpath.lookpath("bun"));
|
|
349
349
|
setAws(!!await lookpath.lookpath("aws"));
|
|
350
350
|
};
|
|
351
351
|
checkForBinaries();
|
|
@@ -364,13 +364,13 @@ const Info = ({ path }) => {
|
|
|
364
364
|
/* @__PURE__ */ React__default["default"].createElement(ink.Text, null, "Success!"),
|
|
365
365
|
/* @__PURE__ */ React__default["default"].createElement(ink.Text, null, "Your new Learn Card HTTP Bridge is ready to deploy!"),
|
|
366
366
|
aws ? /* @__PURE__ */ React__default["default"].createElement(ink.Text, null, "To deploy, run the following commands:") : /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, /* @__PURE__ */ React__default["default"].createElement(ink.Text, null, "It looks like you might not have serverless/AWS set up yet!"), /* @__PURE__ */ React__default["default"].createElement(ink.Text, null, "Please review the instructions at https://www.serverless.com/framework/docs/tutorial if you have any issues deploying the Learn Card HTTP Bridge!"), /* @__PURE__ */ React__default["default"].createElement(ink.Text, null, "After you're all set up, run the following commands to deploy the Learn Card HTTP Bridge!")),
|
|
367
|
-
/* @__PURE__ */ React__default["default"].createElement(ink.Box, { borderStyle: "round", flexDirection: "column" }, !
|
|
367
|
+
/* @__PURE__ */ React__default["default"].createElement(ink.Box, { borderStyle: "round", flexDirection: "column" }, !bun && /* @__PURE__ */ React__default["default"].createElement(ink.Text, null, /* @__PURE__ */ React__default["default"].createElement(ink.Text, { color: "green" }, "$ "), /* @__PURE__ */ React__default["default"].createElement(SyntaxHighlight__default["default"], { code: "npm i -g bun@1.3.14", language: "bash" })), /* @__PURE__ */ React__default["default"].createElement(ink.Text, null, /* @__PURE__ */ React__default["default"].createElement(ink.Text, { color: "green" }, "$ "), /* @__PURE__ */ React__default["default"].createElement(
|
|
368
368
|
SyntaxHighlight__default["default"],
|
|
369
369
|
{
|
|
370
370
|
code: `cd ${path}/packages/learn-card-bridge-http`,
|
|
371
371
|
language: "bash"
|
|
372
372
|
}
|
|
373
|
-
)), /* @__PURE__ */ React__default["default"].createElement(ink.Text, null, /* @__PURE__ */ React__default["default"].createElement(ink.Text, { color: "green" }, "$ "), /* @__PURE__ */ React__default["default"].createElement(SyntaxHighlight__default["default"], { code: "
|
|
373
|
+
)), /* @__PURE__ */ React__default["default"].createElement(ink.Text, null, /* @__PURE__ */ React__default["default"].createElement(ink.Text, { color: "green" }, "$ "), /* @__PURE__ */ React__default["default"].createElement(SyntaxHighlight__default["default"], { code: "bun install", language: "bash" })), /* @__PURE__ */ React__default["default"].createElement(ink.Text, null, /* @__PURE__ */ React__default["default"].createElement(ink.Text, { color: "green" }, "$ "), /* @__PURE__ */ React__default["default"].createElement(SyntaxHighlight__default["default"], { code: "bun run serverless-deploy", language: "bash" })))
|
|
374
374
|
);
|
|
375
375
|
};
|
|
376
376
|
|
|
@@ -416,7 +416,7 @@ const App = ({ name = "LearnCardHTTPBridge" }) => {
|
|
|
416
416
|
};
|
|
417
417
|
|
|
418
418
|
var name = "@learncard/create-http-bridge";
|
|
419
|
-
var version = "1.1.
|
|
419
|
+
var version = "1.1.244";
|
|
420
420
|
var description = "Instantly create and deploy a Learn Card Bridge HTTP API via AWS Lambda!";
|
|
421
421
|
var main = "dist/index.js";
|
|
422
422
|
var bin = "dist/index.js";
|
package/package.json
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
2
|
+
"name": "@learncard/create-http-bridge",
|
|
3
|
+
"version": "1.1.244",
|
|
4
|
+
"description": "Instantly create and deploy a Learn Card Bridge HTTP API via AWS Lambda!",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"bin": "dist/index.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"serverless-deploy": "shx cp ../learn-card-core/src/didkit/pkg/didkit_wasm_bg.wasm src/didkit_wasm_bg.wasm && serverless deploy",
|
|
9
|
+
"start": "rollup -c && node dist/index.js",
|
|
10
|
+
"build": "rollup -c"
|
|
11
|
+
},
|
|
12
|
+
"author": "Learning Economy Foundation (www.learningeconomy.io)",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@learncard/init": "2.4.5",
|
|
16
|
+
"@learncard/types": "5.17.5",
|
|
17
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
18
|
+
"commander": "^9.3.0",
|
|
19
|
+
"cors": "^2.8.5",
|
|
20
|
+
"express": "~4.21.0",
|
|
21
|
+
"figlet": "^1.5.2",
|
|
22
|
+
"immer": "^9.0.15",
|
|
23
|
+
"ink": "^3.2.0",
|
|
24
|
+
"ink-gradient": "^2.0.0",
|
|
25
|
+
"ink-spinner": "^4.0.3",
|
|
26
|
+
"ink-syntax-highlight": "^1.0.1",
|
|
27
|
+
"ink-text-input": "^4.0.3",
|
|
28
|
+
"ink-use-stdout-dimensions": "^1.0.5",
|
|
29
|
+
"inquirer": "^8.2.4",
|
|
30
|
+
"lookpath": "^1.2.2",
|
|
31
|
+
"react": "^18.2.0",
|
|
32
|
+
"rollup": "^2.80.0",
|
|
33
|
+
"rollup-plugin-esbuild": "^4.9.1",
|
|
34
|
+
"serverless-esbuild": "^1.25.0",
|
|
35
|
+
"serverless-http": "^3.0.1",
|
|
36
|
+
"serverless-plugin-warmup": "^8.1.0",
|
|
37
|
+
"simple-git": "^3.36.0",
|
|
38
|
+
"use-immer": "^0.7.0"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@types/aws-lambda": "^8.10.106",
|
|
42
|
+
"@types/cors": "^2.8.12",
|
|
43
|
+
"@types/express": "^4.17.13",
|
|
44
|
+
"@types/figlet": "^1.5.4",
|
|
45
|
+
"@types/ink-gradient": "^2.0.1",
|
|
46
|
+
"@types/inquirer": "^8.2.1",
|
|
47
|
+
"@types/node": "^18.0.0",
|
|
48
|
+
"@types/react": "^17.0.2",
|
|
49
|
+
"nodemon": "^2.0.16",
|
|
50
|
+
"serverless-plugin-typescript": "^2.1.0",
|
|
51
|
+
"shx": "^0.3.4",
|
|
52
|
+
"ts-node": "^10.8.1"
|
|
53
|
+
},
|
|
54
|
+
"repository": {
|
|
55
|
+
"type": "git",
|
|
56
|
+
"url": "https://github.com/learningeconomy/LearnCard"
|
|
57
|
+
},
|
|
58
|
+
"homepage": "https://github.com/learningeconomy/LearnCard/tree/main/packages/learn-card-bridge-http/README.md",
|
|
59
|
+
"bugs": {
|
|
60
|
+
"url": "https://github.com/learningeconomy/LearnCard/issues"
|
|
61
|
+
}
|
|
62
|
+
}
|
package/serverless.yml
CHANGED
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Learning Economy Foundation <sdk@learningeconomy.io>
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|