@now/node
Advanced tools
| "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 @@ } |
+2
-2
| { | ||
| "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" |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3163806
088858
01
Infinity%