Comparing version 8.0.1 to 8.0.2
@@ -16,3 +16,3 @@ exports.setopts = setopts | ||
var minimatch = require("minimatch") | ||
var isAbsolute = require("path-is-absolute") | ||
var isAbsolute = require("path").isAbsolute | ||
var Minimatch = minimatch.Minimatch | ||
@@ -92,3 +92,3 @@ | ||
if (!ownProp(options, "cwd")) | ||
self.cwd = cwd | ||
self.cwd = path.resolve(cwd) | ||
else { | ||
@@ -101,4 +101,2 @@ self.cwd = path.resolve(options.cwd) | ||
self.root = path.resolve(self.root) | ||
if (process.platform === "win32") | ||
self.root = self.root.replace(/\\/g, "/") | ||
@@ -108,6 +106,10 @@ // TODO: is an absolute `cwd` supposed to be resolved against `root`? | ||
self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd) | ||
if (process.platform === "win32") | ||
self.cwdAbs = self.cwdAbs.replace(/\\/g, "/") | ||
self.nomount = !!options.nomount | ||
if (process.platform === "win32") { | ||
self.root = self.root.replace(/\\/g, "/") | ||
self.cwd = self.cwd.replace(/\\/g, "/") | ||
self.cwdAbs = self.cwdAbs.replace(/\\/g, "/") | ||
} | ||
// disable comments and negation in Minimatch. | ||
@@ -114,0 +116,0 @@ // Note that they are not supported in Glob itself anyway. |
@@ -50,3 +50,3 @@ // Approach: | ||
var assert = require('assert') | ||
var isAbsolute = require('path-is-absolute') | ||
var isAbsolute = require('path').isAbsolute | ||
var globSync = require('./sync.js') | ||
@@ -53,0 +53,0 @@ var common = require('./common.js') |
@@ -5,3 +5,3 @@ { | ||
"description": "a little globber", | ||
"version": "8.0.1", | ||
"version": "8.0.2", | ||
"repository": { | ||
@@ -25,4 +25,3 @@ "type": "git", | ||
"minimatch": "^5.0.1", | ||
"once": "^1.3.0", | ||
"path-is-absolute": "^1.0.0" | ||
"once": "^1.3.0" | ||
}, | ||
@@ -29,0 +28,0 @@ "devDependencies": { |
@@ -11,3 +11,3 @@ module.exports = globSync | ||
var assert = require('assert') | ||
var isAbsolute = require('path-is-absolute') | ||
var isAbsolute = require('path').isAbsolute | ||
var common = require('./common.js') | ||
@@ -14,0 +14,0 @@ var setopts = common.setopts |
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
5
1248
54882
- Removedpath-is-absolute@^1.0.0
- Removedpath-is-absolute@1.0.1(transitive)