New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.3 to 1.0.4

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [1.0.4](https://github.com/bluelovers/ws-iconv/compare/path-is-same@1.0.3...path-is-same@1.0.4) (2020-06-25)
### 🐛 Bug Fixes
* use `relative` for check ([e5b0b91](https://github.com/bluelovers/ws-iconv/commit/e5b0b9139ee34b48300c5ac8309e8f0e8366209e))
## [1.0.3](https://github.com/bluelovers/ws-iconv/compare/path-is-same@1.0.2...path-is-same@1.0.3) (2020-06-25)

@@ -8,0 +19,0 @@

5

index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pathIsSame = void 0;
const path_dir_normalize_1 = require("path-dir-normalize");
const path_1 = require("path");
function pathIsSame(p1, ...ps) {
p1 = path_dir_normalize_1.pathDirNormalize(p1);
if (ps.length <= 0) {
throw new TypeError(`p2 must be protected`);
}
return ps.every(p2 => path_dir_normalize_1.pathDirNormalize(p2) === p1);
return ps.every(p2 => path_1.relative(p1, p2) === '');
}

@@ -12,0 +11,0 @@ exports.pathIsSame = pathIsSame;

7

package.json
{
"name": "path-is-same",
"version": "1.0.3",
"version": "1.0.4",
"description": "",

@@ -32,6 +32,3 @@ "homepage": "https://github.com/bluelovers/ws-iconv/tree/master/packages/path-is-same#readme",

},
"dependencies": {
"path-dir-normalize": "^1.0.14"
},
"gitHead": "325f3241d8bbcd554e52523448ec21b99350ab14"
"gitHead": "97e13e0cfa2a7c5463a4d9ed557ea9a4fc83b52a"
}

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