path-is-same
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -6,2 +6,13 @@ # Change Log | ||
## [1.0.11](https://github.com/bluelovers/ws-iconv/compare/path-is-same@1.0.10...path-is-same@1.0.11) (2021-07-23) | ||
### ✨ Features | ||
* fsSameRealpath ([500ffab](https://github.com/bluelovers/ws-iconv/commit/500ffabe9498699f8943719617f8dfe99f7235b3)) | ||
## [1.0.10](https://github.com/bluelovers/ws-iconv/compare/path-is-same@1.0.9...path-is-same@1.0.10) (2021-07-08) | ||
@@ -8,0 +19,0 @@ |
@@ -0,2 +1,3 @@ | ||
export declare function fsSameRealpath(dir0: string, dir1: string): boolean; | ||
export declare function pathIsSame(p1: string, p2: string, ...ps: string[]): boolean; | ||
export default pathIsSame; |
13
index.js
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.pathIsSame = void 0; | ||
exports.pathIsSame = exports.fsSameRealpath = void 0; | ||
const path_1 = require("path"); | ||
const fs_1 = require("fs"); | ||
function fsSameRealpath(dir0, dir1) { | ||
try { | ||
let real01 = (0, fs_1.realpathSync)(dir0); | ||
let real02 = (0, fs_1.realpathSync)(dir1); | ||
return pathIsSame(real01, real02); | ||
} | ||
catch (e) { | ||
} | ||
} | ||
exports.fsSameRealpath = fsSameRealpath; | ||
function pathIsSame(p1, ...ps) { | ||
@@ -6,0 +17,0 @@ if (ps.length <= 0) { |
{ | ||
"name": "path-is-same", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "", | ||
@@ -35,3 +35,3 @@ "homepage": "https://github.com/bluelovers/ws-iconv/tree/master/packages/path-is-same#readme", | ||
}, | ||
"gitHead": "38ff6d5aacf54ae6e9ccf502e0990ad0341b3ac6" | ||
"gitHead": "cff5b85bc0fa0d4f592c3ef98b7da964f4770b61" | ||
} |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
7322
26
1