1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-02-04 16:18:41 +00:00

Compare commits

...

4 commits

Author SHA1 Message Date
dependabot[bot]
e1acc48679
Merge 8b6f15e55b into 5f09fbedc1 2023-10-25 09:40:17 +00:00
5f09fbedc1
fix 2023-10-25 16:49:26 +09:00
574b7a2906
create node-sea 2023-10-25 16:30:49 +09:00
dependabot[bot]
8b6f15e55b
Bump fastify from 3.28.0 to 3.29.4 in /vercel-fastify
Bumps [fastify](https://github.com/fastify/fastify) from 3.28.0 to 3.29.4.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v3.28.0...v3.29.4)

---
updated-dependencies:
- dependency-name: fastify
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-21 22:50:59 +00:00
5 changed files with 51 additions and 11 deletions

29
node-sea/README.md Normal file
View file

@ -0,0 +1,29 @@
# Node.js Single Executable Application
```
$ node --experimental-sea-config sea-config.json
$ cp "$(which node)" hello
$ npx postject hello NODE_SEA_BLOB sea-prep.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2
$ ./hello
Hello, undefined!
(node:918684) ExperimentalWarning: Single executable application is an experimental feature and might change at any time
(Use `hello --trace-warnings ...` to show where the warning was created)
```
## Environment
```
$ npx envinfo --system --binaries
System:
OS: Linux 6.2 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
CPU: (12) x64 13th Gen Intel(R) Core(TM) i7-1365U
Memory: 19.25 GB / 31.00 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 20.5.1 - /usr/bin/node
Yarn: 1.22.19 - ~/.local/bin/yarn
npm: 9.8.0 - /usr/bin/npm
pnpm: 8.6.2 - ~/.local/bin/pnpm
```

1
node-sea/hello.js Normal file
View file

@ -0,0 +1 @@
console.log(`Hello, ${process.argv[2]}!`);

4
node-sea/sea-config.json Normal file
View file

@ -0,0 +1,4 @@
{
"main": "hello.js",
"output": "sea-prep.blob"
}

View file

@ -9,7 +9,7 @@
"deploy": "vercel deploy" "deploy": "vercel deploy"
}, },
"dependencies": { "dependencies": {
"fastify": "^3.28.0", "fastify": "^3.29.4",
"fastify-autoload": "^3.12.0", "fastify-autoload": "^3.12.0",
"pino-pretty": "^7.6.1" "pino-pretty": "^7.6.1"
}, },

View file

@ -9,6 +9,11 @@
dependencies: dependencies:
ajv "^6.12.6" ajv "^6.12.6"
"@fastify/error@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@fastify/error/-/error-2.0.0.tgz#a9f94af56eb934f0ab1ce4ef9f0ced6ebf2319dc"
integrity sha512-wI3fpfDT0t7p8E6dA2eTECzzOd+bZsZCJ2Hcv+Onn2b7ZwK3RwD27uW2QDaMtQhAfWQQP+WNK7nKf0twLsBf9w==
"@nodelib/fs.scandir@2.1.5": "@nodelib/fs.scandir@2.1.5":
version "2.1.5" version "2.1.5"
resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5"
@ -365,6 +370,11 @@ configstore@^5.0.1:
write-file-atomic "^3.0.0" write-file-atomic "^3.0.0"
xdg-basedir "^4.0.0" xdg-basedir "^4.0.0"
content-type@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b"
integrity sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==
cookie@^0.4.0: cookie@^0.4.0:
version "0.4.2" version "0.4.2"
resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.2.tgz#0e41f24de5ecf317947c82fc789e06a884824432" resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.2.tgz#0e41f24de5ecf317947c82fc789e06a884824432"
@ -669,21 +679,17 @@ fastify-autoload@^3.12.0:
pkg-up "^3.1.0" pkg-up "^3.1.0"
semver "^7.3.5" semver "^7.3.5"
fastify-error@^0.3.0: fastify@^3.29.4:
version "0.3.1" version "3.29.4"
resolved "https://registry.yarnpkg.com/fastify-error/-/fastify-error-0.3.1.tgz#8eb993e15e3cf57f0357fc452af9290f1c1278d2" resolved "https://registry.yarnpkg.com/fastify/-/fastify-3.29.4.tgz#294e33017b55f3cb72f315c41cf51431bc9b7a34"
integrity sha512-oCfpcsDndgnDVgiI7bwFKAun2dO+4h84vBlkWsWnz/OUK9Reff5UFoFl241xTiLeHWX/vU9zkDVXqYUxjOwHcQ== integrity sha512-BEyKidZQvscNaiF1BLh+YLE7AzHH03NexhPzrwZP6KBQ+jG2czdgq72X+RFB5rK9hbqdaafVb5yiWN+hCvHfYg==
fastify@^3.28.0:
version "3.28.0"
resolved "https://registry.yarnpkg.com/fastify/-/fastify-3.28.0.tgz#14d939a2f176b82af1094de7abcb0b2d83bcff8f"
integrity sha512-LAQtGllpkRe8L6Tpf3zdbvXzXFOrgaWV3Tbvp3xMv9ngcr9zht9U2/mo5zq9qp9kplSiBJ0w43aVAMqv6PBMbw==
dependencies: dependencies:
"@fastify/ajv-compiler" "^1.0.0" "@fastify/ajv-compiler" "^1.0.0"
"@fastify/error" "^2.0.0"
abstract-logging "^2.0.0" abstract-logging "^2.0.0"
avvio "^7.1.2" avvio "^7.1.2"
content-type "^1.0.4"
fast-json-stringify "^2.5.2" fast-json-stringify "^2.5.2"
fastify-error "^0.3.0"
find-my-way "^4.5.0" find-my-way "^4.5.0"
flatstr "^1.0.12" flatstr "^1.0.12"
light-my-request "^4.2.0" light-my-request "^4.2.0"