Comparing version 1.1.2 to 2.0.0
@@ -0,1 +1,3 @@ | ||
const os = require('bare-os') | ||
const posix = makePath(false) | ||
@@ -7,3 +9,3 @@ const win32 = makePath(true) | ||
module.exports = process.platform === 'win32' ? win32 : posix | ||
module.exports = os.platform() === 'win32' ? win32 : posix | ||
@@ -91,3 +93,3 @@ function makePath (windows) { | ||
for (let i = args.length - 1; i >= -1; i--) { | ||
const part = i === -1 ? process.cwd() : args[i] | ||
const part = i === -1 ? os.cwd() : args[i] | ||
if (part.length === 0) continue | ||
@@ -94,0 +96,0 @@ resolved = path.join(part, resolved) |
{ | ||
"name": "bare-path", | ||
"version": "1.1.2", | ||
"version": "2.0.0", | ||
"description": "Path manipulation library for JavaScript", | ||
@@ -22,2 +22,5 @@ "main": "index.js", | ||
"homepage": "https://github.com/holepunchto/bare-path#readme", | ||
"dependencies": { | ||
"bare-os": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
@@ -24,0 +27,0 @@ "brittle": "^3.3.2", |
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
15985
128
1
+ Addedbare-os@^2.0.0
+ Addedbare-os@2.4.4(transitive)