edge-runtime
Advanced tools
Comparing version 0.12.9 to 0.12.10
@@ -6,51 +6,13 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const format_1 = require("@edge-runtime/format"); | ||
const repl_1 = __importDefault(require("repl")); | ||
const edge_runtime_1 = require("../edge-runtime"); | ||
const repl_1 = __importDefault(require("repl")); | ||
const repl = repl_1.default.start({ prompt: 'ƒ => ' }); | ||
const format = (0, format_1.createFormat)(); | ||
const writer = (output) => { | ||
return typeof output === 'function' ? output.toString() : format(output); | ||
}; | ||
const repl = repl_1.default.start({ prompt: 'ƒ => ', writer }); | ||
Object.getOwnPropertyNames(repl.context).forEach((mod) => delete repl.context[mod]); | ||
const runtime = new edge_runtime_1.EdgeRuntime(); | ||
Object.assign(repl.context, runtime.context); | ||
[ | ||
'require', | ||
'assert', | ||
'async_hooks', | ||
'buffer', | ||
'child_process', | ||
'cluster', | ||
'console', | ||
'constants', | ||
'crypto', | ||
'dgram', | ||
'diagnostics_channel', | ||
'dns', | ||
'domain', | ||
'events', | ||
'fs', | ||
'http', | ||
'http2', | ||
'https', | ||
'inspector', | ||
'module', | ||
'net', | ||
'os', | ||
'path', | ||
'perf_hooks', | ||
'process', | ||
'punycode', | ||
'querystring', | ||
'readline', | ||
'repl', | ||
'stream', | ||
'string_decoder', | ||
'sys', | ||
'timers', | ||
'tls', | ||
'trace_events', | ||
'tty', | ||
'url', | ||
'util', | ||
'v8', | ||
'vm', | ||
'worker_threads', | ||
'zlib', | ||
].forEach((mod) => delete repl.context[mod]); | ||
//# sourceMappingURL=repl.js.map |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "0.12.9"; | ||
export declare const VERSION = "0.12.10"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.VERSION = "0.12.9"; | ||
exports.VERSION = "0.12.10"; | ||
//# sourceMappingURL=version.js.map |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://edge-runtime.vercel.app/packages/runtime", | ||
"version": "0.12.9", | ||
"version": "0.12.10", | ||
"main": "dist/index.js", | ||
@@ -25,3 +25,4 @@ "bin": { | ||
"dependencies": { | ||
"@edge-runtime/vm": "^0.12.9", | ||
"@edge-runtime/format": "^0.12.5", | ||
"@edge-runtime/vm": "^0.12.10", | ||
"event-target-shim": "6.0.2", | ||
@@ -65,3 +66,3 @@ "exit-hook": "2.2.1", | ||
"types": "dist/index.d.ts", | ||
"gitHead": "9e447a77e708f1a72b9e2d46960f1f0c0d3bdc22" | ||
"gitHead": "fc641f74863078229ecaa4c9998a2d93caa3d34a" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73950
10
648
+ Added@edge-runtime/format@^0.12.5
Updated@edge-runtime/vm@^0.12.10