Skip to content

Commit 6d560c4

Browse files
Release 1.1.13
1 parent 038e80c commit 6d560c4

File tree

1 file changed

+17
-38
lines changed

1 file changed

+17
-38
lines changed

dist/post/index.js

Lines changed: 17 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5063,7 +5063,7 @@ function ownProp (obj, field) {
50635063
var fs = __nccwpck_require__(7147)
50645064
var path = __nccwpck_require__(1017)
50655065
var minimatch = __nccwpck_require__(3973)
5066-
var isAbsolute = __nccwpck_require__(8714)
5066+
var isAbsolute = (__nccwpck_require__(1017).isAbsolute)
50675067
var Minimatch = minimatch.Minimatch
50685068

50695069
function alphasort (a, b) {
@@ -5138,24 +5138,26 @@ function setopts (self, pattern, options) {
51385138
self.changedCwd = false
51395139
var cwd = process.cwd()
51405140
if (!ownProp(options, "cwd"))
5141-
self.cwd = cwd
5141+
self.cwd = path.resolve(cwd)
51425142
else {
51435143
self.cwd = path.resolve(options.cwd)
51445144
self.changedCwd = self.cwd !== cwd
51455145
}
51465146

51475147
self.root = options.root || path.resolve(self.cwd, "/")
51485148
self.root = path.resolve(self.root)
5149-
if (process.platform === "win32")
5150-
self.root = self.root.replace(/\\/g, "/")
51515149

51525150
// TODO: is an absolute `cwd` supposed to be resolved against `root`?
51535151
// e.g. { cwd: '/test', root: __dirname } === path.join(__dirname, '/test')
51545152
self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd)
5155-
if (process.platform === "win32")
5156-
self.cwdAbs = self.cwdAbs.replace(/\\/g, "/")
51575153
self.nomount = !!options.nomount
51585154

5155+
if (process.platform === "win32") {
5156+
self.root = self.root.replace(/\\/g, "/")
5157+
self.cwd = self.cwd.replace(/\\/g, "/")
5158+
self.cwdAbs = self.cwdAbs.replace(/\\/g, "/")
5159+
}
5160+
51595161
// disable comments and negation in Minimatch.
51605162
// Note that they are not supported in Glob itself anyway.
51615163
options.nonegate = true
@@ -5342,7 +5344,7 @@ var inherits = __nccwpck_require__(4124)
53425344
var EE = (__nccwpck_require__(2361).EventEmitter)
53435345
var path = __nccwpck_require__(1017)
53445346
var assert = __nccwpck_require__(9491)
5345-
var isAbsolute = __nccwpck_require__(8714)
5347+
var isAbsolute = (__nccwpck_require__(1017).isAbsolute)
53465348
var globSync = __nccwpck_require__(9010)
53475349
var common = __nccwpck_require__(7625)
53485350
var setopts = common.setopts
@@ -6100,7 +6102,7 @@ var Glob = (__nccwpck_require__(1957).Glob)
61006102
var util = __nccwpck_require__(3837)
61016103
var path = __nccwpck_require__(1017)
61026104
var assert = __nccwpck_require__(9491)
6103-
var isAbsolute = __nccwpck_require__(8714)
6105+
var isAbsolute = (__nccwpck_require__(1017).isAbsolute)
61046106
var common = __nccwpck_require__(7625)
61056107
var setopts = common.setopts
61066108
var ownProp = common.ownProp
@@ -6140,7 +6142,7 @@ function GlobSync (pattern, options) {
61406142
}
61416143

61426144
GlobSync.prototype._finish = function () {
6143-
assert(this instanceof GlobSync)
6145+
assert.ok(this instanceof GlobSync)
61446146
if (this.realpath) {
61456147
var self = this
61466148
this.matches.forEach(function (matchset, index) {
@@ -6164,7 +6166,7 @@ GlobSync.prototype._finish = function () {
61646166

61656167

61666168
GlobSync.prototype._process = function (pattern, index, inGlobStar) {
6167-
assert(this instanceof GlobSync)
6169+
assert.ok(this instanceof GlobSync)
61686170

61696171
// Get the first [n] parts of pattern that are all strings.
61706172
var n = 0
@@ -9877,6 +9879,11 @@ class Minimatch {
98779879
this.options = options
98789880
this.set = []
98799881
this.pattern = pattern
9882+
this.windowsPathsNoEscape = !!options.windowsPathsNoEscape ||
9883+
options.allowWindowsEscape === false
9884+
if (this.windowsPathsNoEscape) {
9885+
this.pattern = this.pattern.replace(/\\/g, '/')
9886+
}
98809887
this.regexp = null
98819888
this.negate = false
98829889
this.comment = false
@@ -12364,34 +12371,6 @@ function onceStrict (fn) {
1236412371
}
1236512372

1236612373

12367-
/***/ }),
12368-
12369-
/***/ 8714:
12370-
/***/ ((module) => {
12371-
12372-
"use strict";
12373-
12374-
12375-
function posix(path) {
12376-
return path.charAt(0) === '/';
12377-
}
12378-
12379-
function win32(path) {
12380-
// https://github.com/nodejs/node/blob/b3fcc245fb25539909ef1d5eaa01dbf92e168633/lib/path.js#L56
12381-
var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
12382-
var result = splitDeviceRe.exec(path);
12383-
var device = result[1] || '';
12384-
var isUnc = Boolean(device && device.charAt(1) !== ':');
12385-
12386-
// UNC paths are always absolute
12387-
return Boolean(result[2] || isUnc);
12388-
}
12389-
12390-
module.exports = process.platform === 'win32' ? win32 : posix;
12391-
module.exports.posix = posix;
12392-
module.exports.win32 = win32;
12393-
12394-
1239512374
/***/ }),
1239612375

1239712376
/***/ 5118:

0 commit comments

Comments
 (0)