Socket
Socket
Sign inDemoInstall

edge-runtime

Package Overview
Dependencies
13
Maintainers
1
Versions
111
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1-beta.5 to 1.0.1-beta.6

34

dist/cli/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc