link-parent-bin
Advanced tools
Comparing version 2.0.0 to 3.0.0
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
@@ -5,2 +5,3 @@ "use strict"; | ||
}; | ||
var _a; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -14,2 +15,3 @@ exports.FSUtils = void 0; | ||
exports.FSUtils = FSUtils; | ||
_a = FSUtils; | ||
FSUtils.mkdirp = mkdirp_1.default; | ||
@@ -16,0 +18,0 @@ /** |
@@ -24,3 +24,3 @@ "use strict"; | ||
async function link(from, to) { | ||
if (os_1.platform() === 'win32') { | ||
if ((0, os_1.platform)() === 'win32') { | ||
return cmdShimIfExists(from, to); | ||
@@ -41,12 +41,4 @@ } | ||
/* link doesn't exist */ | ||
return new Promise((res, rej) => { | ||
cmd_shim_1.default.ifExists(from, to, (err) => { | ||
if (err) { | ||
rej(err); | ||
} | ||
else { | ||
res({ status: 'success' }); | ||
} | ||
}); | ||
}); | ||
await cmd_shim_1.default.ifExists(from, to); | ||
return { status: 'success' }; | ||
} | ||
@@ -79,5 +71,5 @@ } | ||
function debug(message, ...args) { | ||
const log = log4js_1.getLogger('link'); | ||
const log = (0, log4js_1.getLogger)('link'); | ||
log.debug(message, ...args); | ||
} | ||
//# sourceMappingURL=link.js.map |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
{ | ||
"name": "link-parent-bin", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "", | ||
@@ -14,3 +14,3 @@ "main": "dist/src/ParentBinLinker.js", | ||
"engines": { | ||
"node": ">=10" | ||
"node": ">=14" | ||
}, | ||
@@ -38,37 +38,39 @@ "scripts": { | ||
"devDependencies": { | ||
"@stryker-mutator/core": "^4.0.0", | ||
"@stryker-mutator/mocha-runner": "^4.0.0", | ||
"@stryker-mutator/typescript-checker": "^4.0.0", | ||
"@types/chai": "^4.2.14", | ||
"@types/chai-as-promised": "7.1.3", | ||
"@types/cmd-shim": "^2.0.0", | ||
"@types/minimatch": "^3.0.3", | ||
"@types/mkdirp": "^1.0.1", | ||
"@types/mocha": "^8.0.3", | ||
"@types/mz": "2.7.1", | ||
"@types/rimraf": "3.0.0", | ||
"@types/sinon": "^9.0.8", | ||
"@types/sinon-chai": "^3.2.5", | ||
"@typescript-eslint/eslint-plugin": "^4.4.1", | ||
"@typescript-eslint/parser": "^4.4.1", | ||
"chai": "^4.2.0", | ||
"@stryker-mutator/core": "^6.0.2", | ||
"@stryker-mutator/mocha-runner": "^6.0.2", | ||
"@stryker-mutator/typescript-checker": "^6.0.2", | ||
"@types/chai": "^4.3.1", | ||
"@types/chai-as-promised": "7.1.5", | ||
"@types/cmd-shim": "^5.0.0", | ||
"@types/minimatch": "^3.0.5", | ||
"@types/mkdirp": "^1.0.2", | ||
"@types/mocha": "^9.1.1", | ||
"@types/mz": "2.7.4", | ||
"@types/rimraf": "3.0.2", | ||
"@types/semver": "^7.3.9", | ||
"@types/sinon": "^10.0.11", | ||
"@types/sinon-chai": "^3.2.8", | ||
"@typescript-eslint/eslint-plugin": "^5.26.0", | ||
"@typescript-eslint/parser": "^5.26.0", | ||
"chai": "^4.3.6", | ||
"chai-as-promised": "^7.1.1", | ||
"conventional-changelog-cli": "^2.1.0", | ||
"eslint": "^7.11.0", | ||
"eslint-config-prettier": "^6.13.0", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"conventional-changelog-cli": "^2.2.2", | ||
"eslint": "^8.16.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"install-local": "^3.0.1", | ||
"mocha": "^8.1.3", | ||
"prettier": "^2.1.2", | ||
"mocha": "^10.0.0", | ||
"prettier": "^2.6.2", | ||
"rimraf": "^3.0.2", | ||
"sinon": "^9.2.0", | ||
"sinon-chai": "^3.5.0", | ||
"source-map-support": "^0.5.19", | ||
"typescript": "^4.0.3" | ||
"semver": "^7.3.7", | ||
"sinon": "^14.0.0", | ||
"sinon-chai": "^3.7.0", | ||
"source-map-support": "^0.5.21", | ||
"typescript": "^4.7.2" | ||
}, | ||
"dependencies": { | ||
"cmd-shim": "^4.0.2", | ||
"commander": "^6.1.0", | ||
"log4js": "^6.3.0", | ||
"minimatch": "^3.0.4", | ||
"cmd-shim": "^5.0.0", | ||
"commander": "^9.2.0", | ||
"log4js": "^6.5.2", | ||
"minimatch": "^5.1.0", | ||
"mkdirp": "^1.0.4", | ||
@@ -75,0 +77,0 @@ "mz": "^2.7.0" |
@@ -8,2 +8,4 @@ [![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fnicojs%2Fnode-link-parent-bin%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/nicojs/node-link-parent-bin/master) | ||
**NOTE: This package is no longer needed and thus deprecated. Since recent NPM releases, any parent directory's "node_modules/.bin" is automatically added to the PATH when using `npm run`.** | ||
## About | ||
@@ -10,0 +12,0 @@ |
@@ -44,11 +44,4 @@ import { platform } from 'os'; | ||
/* link doesn't exist */ | ||
return new Promise<LinkResult>((res, rej) => { | ||
cmdShim.ifExists(from, to, (err: unknown) => { | ||
if (err) { | ||
rej(err); | ||
} else { | ||
res({ status: 'success' }); | ||
} | ||
}); | ||
}); | ||
await cmdShim.ifExists(from, to); | ||
return { status: 'success' }; | ||
} | ||
@@ -55,0 +48,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
133
0
40542
31
24
702
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedcmd-shim@5.0.0(transitive)
+ Addedcommander@9.5.0(transitive)
+ Addedminimatch@5.1.6(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedcmd-shim@4.1.0(transitive)
- Removedcommander@6.2.1(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedminimatch@3.1.2(transitive)
Updatedcmd-shim@^5.0.0
Updatedcommander@^9.2.0
Updatedlog4js@^6.5.2
Updatedminimatch@^5.1.0