Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

path-is-same

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

path-is-same - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

11

CHANGELOG.md

@@ -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 @@

1

index.d.ts

@@ -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;
"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) {

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc