Comparing version 2.0.0 to 2.0.1
19
index.js
@@ -84,6 +84,17 @@ const os = require('bare-os') | ||
path.extname = function extname (p) { | ||
const i = p.lastIndexOf('.') | ||
return i === -1 ? '' : p.slice(i) | ||
} | ||
path.extname = windows | ||
? function extname (p) { | ||
const i = p.lastIndexOf('.') | ||
if (i === -1) return '' | ||
const e = p.slice(i) | ||
if (e.includes('/') || e.includes('\\')) return '' | ||
return e | ||
} | ||
: function extname (p) { | ||
const i = p.lastIndexOf('.') | ||
if (i === -1) return '' | ||
const e = p.slice(i) | ||
if (e.includes('/')) return '' | ||
return e | ||
} | ||
@@ -90,0 +101,0 @@ path.resolve = function resolve (...args) { |
{ | ||
"name": "bare-path", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Path manipulation library for JavaScript", | ||
@@ -14,3 +14,3 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "https://github.com/holepunchto/bare-path.git" | ||
"url": "git+https://github.com/holepunchto/bare-path.git" | ||
}, | ||
@@ -17,0 +17,0 @@ "author": "Holepunch", |
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
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
16277
139