@baemingo/tscpaths-async
Advanced tools
Comparing version 0.0.12 to 0.0.13-alpha.4
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const fs_1 = require("fs"); | ||
const path_1 = require("path"); | ||
const typescript_1 = require("typescript"); | ||
exports.mapPaths = (paths, mapper) => { | ||
@@ -16,3 +18,3 @@ const dest = {}; | ||
paths: undefined, | ||
}, } = require(file); | ||
}, } = typescript_1.parseConfigFileTextToJson(file, fs_1.readFileSync(file, 'utf-8')); | ||
const config = {}; | ||
@@ -19,0 +21,0 @@ if (baseUrl) { |
{ | ||
"name": "@baemingo/tscpaths-async", | ||
"version": "0.0.12", | ||
"version": "0.0.13-alpha.4", | ||
"description": "Replace absolute paths to relative paths after typescript compilation", | ||
@@ -10,3 +10,5 @@ "main": "cjs/index.js", | ||
}, | ||
"engines" : { "node" : "^10.0.0" }, | ||
"engines": { | ||
"node": "^10.0.0" | ||
}, | ||
"scripts": { | ||
@@ -58,4 +60,3 @@ "build": "yarn build:esm && yarn build:cjs", | ||
"tslint-config-airbnb": "^5.11.1", | ||
"tslint-config-prettier": "^1.18.0", | ||
"typescript": "^3.4.5" | ||
"tslint-config-prettier": "^1.18.0" | ||
}, | ||
@@ -65,4 +66,5 @@ "dependencies": { | ||
"fs-extra": "^8.1.0", | ||
"globby": "^10.0.0" | ||
"globby": "^10.0.0", | ||
"typescript": "^3.4.5" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
21888
9
234
4
+ Addedtypescript@^3.4.5
+ Addedtypescript@3.9.10(transitive)