Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@now/node

Package Overview
Dependencies
Maintainers
16
Versions
300
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@now/node - npm Package Compare versions

Comparing version
1.8.2
to
1.8.3-canary.1
+7
-9
dist/dev-server.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var _a;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -14,6 +12,5 @@ exports.onDevRequest = exports.rawBody = void 0;

}
const fs_1 = __importDefault(require("fs"));
const ts_node_1 = require("ts-node");
// Use the project's version of TypeScript if available,
// otherwise fall back to using the copy that `@now/node` uses.
// otherwise fall back to using the copy that `@vercel/node` uses.
let compiler;

@@ -39,6 +36,7 @@ try {

try {
const tsconfigParsed = JSON.parse(fs_1.default.readFileSync(tsconfig, 'utf8'));
if (tsconfigParsed.compilerOptions &&
tsconfigParsed.compilerOptions.target) {
target = tsconfigParsed.compilerOptions.target;
// eslint-disable-next-line @typescript-eslint/no-var-requires
const ts = require(compiler);
const { config } = ts.readConfigFile(tsconfig, ts.sys.readFile);
if ((_a = config === null || config === void 0 ? void 0 : config.compilerOptions) === null || _a === void 0 ? void 0 : _a.target) {
target = config.compilerOptions.target;
}

@@ -45,0 +43,0 @@ }

{
"name": "@now/node",
"version": "1.8.2",
"version": "1.8.3-canary.1",
"license": "MIT",

@@ -41,3 +41,3 @@ "main": "./dist/index",

"mkdirp-promise": "5.0.1",
"node-fetch": "2.6.0",
"node-fetch": "2.6.1",
"source-map-support": "0.5.12",

@@ -44,0 +44,0 @@ "test-listen": "1.1.0"