edge-runtime
Advanced tools
Comparing version 1.0.1-beta.5 to 1.0.1-beta.6
@@ -14,22 +14,10 @@ #!/usr/bin/env node | ||
const exit_hook_1 = __importDefault(require("exit-hook")); | ||
const meow_1 = __importDefault(require("meow")); | ||
const mri_1 = __importDefault(require("mri")); | ||
const path_1 = __importDefault(require("path")); | ||
const cli = (0, meow_1.default)({ | ||
flags: { | ||
cwd: { | ||
type: 'string', | ||
default: process.cwd(), | ||
}, | ||
repl: { | ||
type: 'boolean', | ||
default: false, | ||
}, | ||
listen: { | ||
type: 'boolean', | ||
default: false, | ||
}, | ||
port: { | ||
type: 'number', | ||
default: 3000, | ||
}, | ||
const { _: input, ...flags } = (0, mri_1.default)(process.argv.slice(2), { | ||
default: { | ||
cwd: process.cwd(), | ||
listen: false, | ||
port: 3000, | ||
repl: false, | ||
}, | ||
@@ -42,3 +30,3 @@ }); | ||
*/ | ||
const [scriptPath] = cli.input; | ||
const [scriptPath] = input; | ||
if (!scriptPath) { | ||
@@ -52,5 +40,5 @@ const replPath = path_1.default.resolve(__dirname, 'repl.js'); | ||
const runtime = new edge_runtime_1.EdgeRuntime({ initialCode }); | ||
if (!cli.flags.listen) | ||
if (!flags.listen) | ||
return runtime.evaluate(''); | ||
logger.debug(`v${String(cli.pkg.version)} at Node.js ${process.version}`); | ||
logger.debug(`v${String(require('../../package.json').version)} at Node.js ${process.version}`); | ||
/** | ||
@@ -61,3 +49,3 @@ * Start a server with the script provided in the file path. | ||
logger: logger, | ||
port: cli.flags.port, | ||
port: flags.port, | ||
runtime, | ||
@@ -64,0 +52,0 @@ }); |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "1.0.1-beta.5"; | ||
export declare const VERSION = "1.0.1-beta.6"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.VERSION = "1.0.1-beta.5"; | ||
exports.VERSION = "1.0.1-beta.6"; | ||
//# sourceMappingURL=version.js.map |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://edge-runtime.vercel.app/packages/runtime", | ||
"version": "1.0.1-beta.5", | ||
"version": "1.0.1-beta.6", | ||
"main": "dist/index.js", | ||
@@ -26,7 +26,7 @@ "bin": { | ||
"@edge-runtime/format": "^1.0.0", | ||
"@edge-runtime/vm": "^1.0.1-beta.5", | ||
"@edge-runtime/vm": "^1.0.1-beta.6", | ||
"event-target-shim": "6.0.2", | ||
"exit-hook": "2.2.1", | ||
"http-status": "~1.5.0", | ||
"meow": "9.0.0", | ||
"mri": "1.2.0", | ||
"picocolors": "1.0.0", | ||
@@ -66,3 +66,3 @@ "pretty-bytes": "5.6.0", | ||
"types": "dist/index.d.ts", | ||
"gitHead": "4bda69ccf3f585f873a4b8d3e2790d2668fb771e" | ||
"gitHead": "46c6248b5dd8bfe38ee22ac5e730b2c9c3030aa6" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found
Found 1 instance in 1 package
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found
Found 1 instance in 1 package
1
74961
649
+ Addedmri@1.2.0
+ Addedmri@1.2.0(transitive)
- Removedmeow@9.0.0
- Removed@babel/code-frame@7.24.7(transitive)
- Removed@babel/helper-validator-identifier@7.24.7(transitive)
- Removed@babel/highlight@7.24.7(transitive)
- Removed@types/minimist@1.2.5(transitive)
- Removed@types/normalize-package-data@2.4.4(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedarrify@1.0.1(transitive)
- Removedcamelcase@5.3.1(transitive)
- Removedcamelcase-keys@6.2.2(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removeddecamelize@1.2.0(transitive)
- Removeddecamelize-keys@1.1.1(transitive)
- Removederror-ex@1.3.2(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedfind-up@4.1.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedhard-rejection@2.1.0(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhosted-git-info@2.8.94.1.0(transitive)
- Removedindent-string@4.0.0(transitive)
- Removedis-arrayish@0.2.1(transitive)
- Removedis-core-module@2.14.0(transitive)
- Removedis-plain-obj@1.1.0(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjson-parse-even-better-errors@2.3.1(transitive)
- Removedkind-of@6.0.3(transitive)
- Removedlines-and-columns@1.2.4(transitive)
- Removedlocate-path@5.0.0(transitive)
- Removedlru-cache@6.0.0(transitive)
- Removedmap-obj@1.0.14.3.0(transitive)
- Removedmeow@9.0.0(transitive)
- Removedmin-indent@1.0.1(transitive)
- Removedminimist-options@4.1.0(transitive)
- Removednormalize-package-data@2.5.03.0.3(transitive)
- Removedp-limit@2.3.0(transitive)
- Removedp-locate@4.1.0(transitive)
- Removedp-try@2.2.0(transitive)
- Removedparse-json@5.2.0(transitive)
- Removedpath-exists@4.0.0(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedquick-lru@4.0.1(transitive)
- Removedread-pkg@5.2.0(transitive)
- Removedread-pkg-up@7.0.1(transitive)
- Removedredent@3.0.0(transitive)
- Removedresolve@1.22.8(transitive)
- Removedsemver@5.7.27.6.2(transitive)
- Removedspdx-correct@3.2.0(transitive)
- Removedspdx-exceptions@2.5.0(transitive)
- Removedspdx-expression-parse@3.0.1(transitive)
- Removedspdx-license-ids@3.0.18(transitive)
- Removedstrip-indent@3.0.0(transitive)
- Removedsupports-color@5.5.0(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedtrim-newlines@3.0.1(transitive)
- Removedtype-fest@0.18.10.6.00.8.1(transitive)
- Removedvalidate-npm-package-license@3.0.4(transitive)
- Removedyallist@4.0.0(transitive)
- Removedyargs-parser@20.2.9(transitive)