@teamix/pro 1.5.4 → 1.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pro.js +478 -7
- package/dist/pro.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/utils/useRealHistory.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/utils/useRealHistory.js +1 -1
- package/package.json +2 -1
package/dist/pro.js
CHANGED
@@ -1888,7 +1888,7 @@ exports.Z = {
|
|
1888
1888
|
|
1889
1889
|
/***/ }),
|
1890
1890
|
|
1891
|
-
/***/
|
1891
|
+
/***/ 25693:
|
1892
1892
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
1893
1893
|
|
1894
1894
|
"use strict";
|
@@ -2220,7 +2220,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
2220
2220
|
/* harmony export */ "useEffectForm": () => (/* reexport safe */ _shared_externals__WEBPACK_IMPORTED_MODULE_0__.eJ)
|
2221
2221
|
/* harmony export */ });
|
2222
2222
|
/* harmony import */ var _shared_externals__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67963);
|
2223
|
-
/* harmony import */ var _effects__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
2223
|
+
/* harmony import */ var _effects__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25693);
|
2224
2224
|
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(30255);
|
2225
2225
|
|
2226
2226
|
|
@@ -59147,6 +59147,477 @@ function pascalCase(input, options) {
|
|
59147
59147
|
|
59148
59148
|
/***/ }),
|
59149
59149
|
|
59150
|
+
/***/ 18041:
|
59151
|
+
/***/ ((module) => {
|
59152
|
+
|
59153
|
+
"use strict";
|
59154
|
+
// 'path' module extracted from Node.js v8.11.1 (only the posix part)
|
59155
|
+
// transplited with Babel
|
59156
|
+
|
59157
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
59158
|
+
//
|
59159
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
59160
|
+
// copy of this software and associated documentation files (the
|
59161
|
+
// "Software"), to deal in the Software without restriction, including
|
59162
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
59163
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
59164
|
+
// persons to whom the Software is furnished to do so, subject to the
|
59165
|
+
// following conditions:
|
59166
|
+
//
|
59167
|
+
// The above copyright notice and this permission notice shall be included
|
59168
|
+
// in all copies or substantial portions of the Software.
|
59169
|
+
//
|
59170
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
59171
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
59172
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
59173
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
59174
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
59175
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
59176
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
59177
|
+
|
59178
|
+
|
59179
|
+
|
59180
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
59181
|
+
function assertPath(path) {
|
59182
|
+
if (typeof path !== 'string') {
|
59183
|
+
throw new TypeError('Path must be a string. Received ' + JSON.stringify(path));
|
59184
|
+
}
|
59185
|
+
}
|
59186
|
+
|
59187
|
+
// Resolves . and .. elements in a path with directory names
|
59188
|
+
function normalizeStringPosix(path, allowAboveRoot) {
|
59189
|
+
var res = '';
|
59190
|
+
var lastSegmentLength = 0;
|
59191
|
+
var lastSlash = -1;
|
59192
|
+
var dots = 0;
|
59193
|
+
var code;
|
59194
|
+
for (var i = 0; i <= path.length; ++i) {
|
59195
|
+
if (i < path.length) code = path.charCodeAt(i);else if (code === 47 /*/*/) break;else code = 47 /*/*/;
|
59196
|
+
if (code === 47 /*/*/) {
|
59197
|
+
if (lastSlash === i - 1 || dots === 1) {
|
59198
|
+
// NOOP
|
59199
|
+
} else if (lastSlash !== i - 1 && dots === 2) {
|
59200
|
+
if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== 46 /*.*/ || res.charCodeAt(res.length - 2) !== 46 /*.*/) {
|
59201
|
+
if (res.length > 2) {
|
59202
|
+
var lastSlashIndex = res.lastIndexOf('/');
|
59203
|
+
if (lastSlashIndex !== res.length - 1) {
|
59204
|
+
if (lastSlashIndex === -1) {
|
59205
|
+
res = '';
|
59206
|
+
lastSegmentLength = 0;
|
59207
|
+
} else {
|
59208
|
+
res = res.slice(0, lastSlashIndex);
|
59209
|
+
lastSegmentLength = res.length - 1 - res.lastIndexOf('/');
|
59210
|
+
}
|
59211
|
+
lastSlash = i;
|
59212
|
+
dots = 0;
|
59213
|
+
continue;
|
59214
|
+
}
|
59215
|
+
} else if (res.length === 2 || res.length === 1) {
|
59216
|
+
res = '';
|
59217
|
+
lastSegmentLength = 0;
|
59218
|
+
lastSlash = i;
|
59219
|
+
dots = 0;
|
59220
|
+
continue;
|
59221
|
+
}
|
59222
|
+
}
|
59223
|
+
if (allowAboveRoot) {
|
59224
|
+
if (res.length > 0) res += '/..';else res = '..';
|
59225
|
+
lastSegmentLength = 2;
|
59226
|
+
}
|
59227
|
+
} else {
|
59228
|
+
if (res.length > 0) res += '/' + path.slice(lastSlash + 1, i);else res = path.slice(lastSlash + 1, i);
|
59229
|
+
lastSegmentLength = i - lastSlash - 1;
|
59230
|
+
}
|
59231
|
+
lastSlash = i;
|
59232
|
+
dots = 0;
|
59233
|
+
} else if (code === 46 /*.*/ && dots !== -1) {
|
59234
|
+
++dots;
|
59235
|
+
} else {
|
59236
|
+
dots = -1;
|
59237
|
+
}
|
59238
|
+
}
|
59239
|
+
return res;
|
59240
|
+
}
|
59241
|
+
function _format(sep, pathObject) {
|
59242
|
+
var dir = pathObject.dir || pathObject.root;
|
59243
|
+
var base = pathObject.base || (pathObject.name || '') + (pathObject.ext || '');
|
59244
|
+
if (!dir) {
|
59245
|
+
return base;
|
59246
|
+
}
|
59247
|
+
if (dir === pathObject.root) {
|
59248
|
+
return dir + base;
|
59249
|
+
}
|
59250
|
+
return dir + sep + base;
|
59251
|
+
}
|
59252
|
+
var posix = {
|
59253
|
+
// path.resolve([from ...], to)
|
59254
|
+
resolve: function resolve() {
|
59255
|
+
var resolvedPath = '';
|
59256
|
+
var resolvedAbsolute = false;
|
59257
|
+
var cwd;
|
59258
|
+
for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
|
59259
|
+
var path;
|
59260
|
+
if (i >= 0) path = arguments[i];else {
|
59261
|
+
if (cwd === undefined) cwd = process.cwd();
|
59262
|
+
path = cwd;
|
59263
|
+
}
|
59264
|
+
assertPath(path);
|
59265
|
+
|
59266
|
+
// Skip empty entries
|
59267
|
+
if (path.length === 0) {
|
59268
|
+
continue;
|
59269
|
+
}
|
59270
|
+
resolvedPath = path + '/' + resolvedPath;
|
59271
|
+
resolvedAbsolute = path.charCodeAt(0) === 47 /*/*/;
|
59272
|
+
}
|
59273
|
+
|
59274
|
+
// At this point the path should be resolved to a full absolute path, but
|
59275
|
+
// handle relative paths to be safe (might happen when process.cwd() fails)
|
59276
|
+
|
59277
|
+
// Normalize the path
|
59278
|
+
resolvedPath = normalizeStringPosix(resolvedPath, !resolvedAbsolute);
|
59279
|
+
if (resolvedAbsolute) {
|
59280
|
+
if (resolvedPath.length > 0) return '/' + resolvedPath;else return '/';
|
59281
|
+
} else if (resolvedPath.length > 0) {
|
59282
|
+
return resolvedPath;
|
59283
|
+
} else {
|
59284
|
+
return '.';
|
59285
|
+
}
|
59286
|
+
},
|
59287
|
+
normalize: function normalize(path) {
|
59288
|
+
assertPath(path);
|
59289
|
+
if (path.length === 0) return '.';
|
59290
|
+
var isAbsolute = path.charCodeAt(0) === 47 /*/*/;
|
59291
|
+
var trailingSeparator = path.charCodeAt(path.length - 1) === 47 /*/*/;
|
59292
|
+
|
59293
|
+
// Normalize the path
|
59294
|
+
path = normalizeStringPosix(path, !isAbsolute);
|
59295
|
+
if (path.length === 0 && !isAbsolute) path = '.';
|
59296
|
+
if (path.length > 0 && trailingSeparator) path += '/';
|
59297
|
+
if (isAbsolute) return '/' + path;
|
59298
|
+
return path;
|
59299
|
+
},
|
59300
|
+
isAbsolute: function isAbsolute(path) {
|
59301
|
+
assertPath(path);
|
59302
|
+
return path.length > 0 && path.charCodeAt(0) === 47 /*/*/;
|
59303
|
+
},
|
59304
|
+
|
59305
|
+
join: function join() {
|
59306
|
+
if (arguments.length === 0) return '.';
|
59307
|
+
var joined;
|
59308
|
+
for (var i = 0; i < arguments.length; ++i) {
|
59309
|
+
var arg = arguments[i];
|
59310
|
+
assertPath(arg);
|
59311
|
+
if (arg.length > 0) {
|
59312
|
+
if (joined === undefined) joined = arg;else joined += '/' + arg;
|
59313
|
+
}
|
59314
|
+
}
|
59315
|
+
if (joined === undefined) return '.';
|
59316
|
+
return posix.normalize(joined);
|
59317
|
+
},
|
59318
|
+
relative: function relative(from, to) {
|
59319
|
+
assertPath(from);
|
59320
|
+
assertPath(to);
|
59321
|
+
if (from === to) return '';
|
59322
|
+
from = posix.resolve(from);
|
59323
|
+
to = posix.resolve(to);
|
59324
|
+
if (from === to) return '';
|
59325
|
+
|
59326
|
+
// Trim any leading backslashes
|
59327
|
+
var fromStart = 1;
|
59328
|
+
for (; fromStart < from.length; ++fromStart) {
|
59329
|
+
if (from.charCodeAt(fromStart) !== 47 /*/*/) break;
|
59330
|
+
}
|
59331
|
+
var fromEnd = from.length;
|
59332
|
+
var fromLen = fromEnd - fromStart;
|
59333
|
+
|
59334
|
+
// Trim any leading backslashes
|
59335
|
+
var toStart = 1;
|
59336
|
+
for (; toStart < to.length; ++toStart) {
|
59337
|
+
if (to.charCodeAt(toStart) !== 47 /*/*/) break;
|
59338
|
+
}
|
59339
|
+
var toEnd = to.length;
|
59340
|
+
var toLen = toEnd - toStart;
|
59341
|
+
|
59342
|
+
// Compare paths to find the longest common path from root
|
59343
|
+
var length = fromLen < toLen ? fromLen : toLen;
|
59344
|
+
var lastCommonSep = -1;
|
59345
|
+
var i = 0;
|
59346
|
+
for (; i <= length; ++i) {
|
59347
|
+
if (i === length) {
|
59348
|
+
if (toLen > length) {
|
59349
|
+
if (to.charCodeAt(toStart + i) === 47 /*/*/) {
|
59350
|
+
// We get here if `from` is the exact base path for `to`.
|
59351
|
+
// For example: from='/foo/bar'; to='/foo/bar/baz'
|
59352
|
+
return to.slice(toStart + i + 1);
|
59353
|
+
} else if (i === 0) {
|
59354
|
+
// We get here if `from` is the root
|
59355
|
+
// For example: from='/'; to='/foo'
|
59356
|
+
return to.slice(toStart + i);
|
59357
|
+
}
|
59358
|
+
} else if (fromLen > length) {
|
59359
|
+
if (from.charCodeAt(fromStart + i) === 47 /*/*/) {
|
59360
|
+
// We get here if `to` is the exact base path for `from`.
|
59361
|
+
// For example: from='/foo/bar/baz'; to='/foo/bar'
|
59362
|
+
lastCommonSep = i;
|
59363
|
+
} else if (i === 0) {
|
59364
|
+
// We get here if `to` is the root.
|
59365
|
+
// For example: from='/foo'; to='/'
|
59366
|
+
lastCommonSep = 0;
|
59367
|
+
}
|
59368
|
+
}
|
59369
|
+
break;
|
59370
|
+
}
|
59371
|
+
var fromCode = from.charCodeAt(fromStart + i);
|
59372
|
+
var toCode = to.charCodeAt(toStart + i);
|
59373
|
+
if (fromCode !== toCode) break;else if (fromCode === 47 /*/*/) lastCommonSep = i;
|
59374
|
+
}
|
59375
|
+
var out = '';
|
59376
|
+
// Generate the relative path based on the path difference between `to`
|
59377
|
+
// and `from`
|
59378
|
+
for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {
|
59379
|
+
if (i === fromEnd || from.charCodeAt(i) === 47 /*/*/) {
|
59380
|
+
if (out.length === 0) out += '..';else out += '/..';
|
59381
|
+
}
|
59382
|
+
}
|
59383
|
+
|
59384
|
+
// Lastly, append the rest of the destination (`to`) path that comes after
|
59385
|
+
// the common path parts
|
59386
|
+
if (out.length > 0) return out + to.slice(toStart + lastCommonSep);else {
|
59387
|
+
toStart += lastCommonSep;
|
59388
|
+
if (to.charCodeAt(toStart) === 47 /*/*/) ++toStart;
|
59389
|
+
return to.slice(toStart);
|
59390
|
+
}
|
59391
|
+
},
|
59392
|
+
_makeLong: function _makeLong(path) {
|
59393
|
+
return path;
|
59394
|
+
},
|
59395
|
+
dirname: function dirname(path) {
|
59396
|
+
assertPath(path);
|
59397
|
+
if (path.length === 0) return '.';
|
59398
|
+
var code = path.charCodeAt(0);
|
59399
|
+
var hasRoot = code === 47 /*/*/;
|
59400
|
+
var end = -1;
|
59401
|
+
var matchedSlash = true;
|
59402
|
+
for (var i = path.length - 1; i >= 1; --i) {
|
59403
|
+
code = path.charCodeAt(i);
|
59404
|
+
if (code === 47 /*/*/) {
|
59405
|
+
if (!matchedSlash) {
|
59406
|
+
end = i;
|
59407
|
+
break;
|
59408
|
+
}
|
59409
|
+
} else {
|
59410
|
+
// We saw the first non-path separator
|
59411
|
+
matchedSlash = false;
|
59412
|
+
}
|
59413
|
+
}
|
59414
|
+
if (end === -1) return hasRoot ? '/' : '.';
|
59415
|
+
if (hasRoot && end === 1) return '//';
|
59416
|
+
return path.slice(0, end);
|
59417
|
+
},
|
59418
|
+
basename: function basename(path, ext) {
|
59419
|
+
if (ext !== undefined && typeof ext !== 'string') throw new TypeError('"ext" argument must be a string');
|
59420
|
+
assertPath(path);
|
59421
|
+
var start = 0;
|
59422
|
+
var end = -1;
|
59423
|
+
var matchedSlash = true;
|
59424
|
+
var i;
|
59425
|
+
if (ext !== undefined && ext.length > 0 && ext.length <= path.length) {
|
59426
|
+
if (ext.length === path.length && ext === path) return '';
|
59427
|
+
var extIdx = ext.length - 1;
|
59428
|
+
var firstNonSlashEnd = -1;
|
59429
|
+
for (i = path.length - 1; i >= 0; --i) {
|
59430
|
+
var code = path.charCodeAt(i);
|
59431
|
+
if (code === 47 /*/*/) {
|
59432
|
+
// If we reached a path separator that was not part of a set of path
|
59433
|
+
// separators at the end of the string, stop now
|
59434
|
+
if (!matchedSlash) {
|
59435
|
+
start = i + 1;
|
59436
|
+
break;
|
59437
|
+
}
|
59438
|
+
} else {
|
59439
|
+
if (firstNonSlashEnd === -1) {
|
59440
|
+
// We saw the first non-path separator, remember this index in case
|
59441
|
+
// we need it if the extension ends up not matching
|
59442
|
+
matchedSlash = false;
|
59443
|
+
firstNonSlashEnd = i + 1;
|
59444
|
+
}
|
59445
|
+
if (extIdx >= 0) {
|
59446
|
+
// Try to match the explicit extension
|
59447
|
+
if (code === ext.charCodeAt(extIdx)) {
|
59448
|
+
if (--extIdx === -1) {
|
59449
|
+
// We matched the extension, so mark this as the end of our path
|
59450
|
+
// component
|
59451
|
+
end = i;
|
59452
|
+
}
|
59453
|
+
} else {
|
59454
|
+
// Extension does not match, so our result is the entire path
|
59455
|
+
// component
|
59456
|
+
extIdx = -1;
|
59457
|
+
end = firstNonSlashEnd;
|
59458
|
+
}
|
59459
|
+
}
|
59460
|
+
}
|
59461
|
+
}
|
59462
|
+
if (start === end) end = firstNonSlashEnd;else if (end === -1) end = path.length;
|
59463
|
+
return path.slice(start, end);
|
59464
|
+
} else {
|
59465
|
+
for (i = path.length - 1; i >= 0; --i) {
|
59466
|
+
if (path.charCodeAt(i) === 47 /*/*/) {
|
59467
|
+
// If we reached a path separator that was not part of a set of path
|
59468
|
+
// separators at the end of the string, stop now
|
59469
|
+
if (!matchedSlash) {
|
59470
|
+
start = i + 1;
|
59471
|
+
break;
|
59472
|
+
}
|
59473
|
+
} else if (end === -1) {
|
59474
|
+
// We saw the first non-path separator, mark this as the end of our
|
59475
|
+
// path component
|
59476
|
+
matchedSlash = false;
|
59477
|
+
end = i + 1;
|
59478
|
+
}
|
59479
|
+
}
|
59480
|
+
if (end === -1) return '';
|
59481
|
+
return path.slice(start, end);
|
59482
|
+
}
|
59483
|
+
},
|
59484
|
+
extname: function extname(path) {
|
59485
|
+
assertPath(path);
|
59486
|
+
var startDot = -1;
|
59487
|
+
var startPart = 0;
|
59488
|
+
var end = -1;
|
59489
|
+
var matchedSlash = true;
|
59490
|
+
// Track the state of characters (if any) we see before our first dot and
|
59491
|
+
// after any path separator we find
|
59492
|
+
var preDotState = 0;
|
59493
|
+
for (var i = path.length - 1; i >= 0; --i) {
|
59494
|
+
var code = path.charCodeAt(i);
|
59495
|
+
if (code === 47 /*/*/) {
|
59496
|
+
// If we reached a path separator that was not part of a set of path
|
59497
|
+
// separators at the end of the string, stop now
|
59498
|
+
if (!matchedSlash) {
|
59499
|
+
startPart = i + 1;
|
59500
|
+
break;
|
59501
|
+
}
|
59502
|
+
continue;
|
59503
|
+
}
|
59504
|
+
if (end === -1) {
|
59505
|
+
// We saw the first non-path separator, mark this as the end of our
|
59506
|
+
// extension
|
59507
|
+
matchedSlash = false;
|
59508
|
+
end = i + 1;
|
59509
|
+
}
|
59510
|
+
if (code === 46 /*.*/) {
|
59511
|
+
// If this is our first dot, mark it as the start of our extension
|
59512
|
+
if (startDot === -1) startDot = i;else if (preDotState !== 1) preDotState = 1;
|
59513
|
+
} else if (startDot !== -1) {
|
59514
|
+
// We saw a non-dot and non-path separator before our dot, so we should
|
59515
|
+
// have a good chance at having a non-empty extension
|
59516
|
+
preDotState = -1;
|
59517
|
+
}
|
59518
|
+
}
|
59519
|
+
if (startDot === -1 || end === -1 ||
|
59520
|
+
// We saw a non-dot character immediately before the dot
|
59521
|
+
preDotState === 0 ||
|
59522
|
+
// The (right-most) trimmed path component is exactly '..'
|
59523
|
+
preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
|
59524
|
+
return '';
|
59525
|
+
}
|
59526
|
+
return path.slice(startDot, end);
|
59527
|
+
},
|
59528
|
+
format: function format(pathObject) {
|
59529
|
+
if (pathObject === null || _typeof(pathObject) !== 'object') {
|
59530
|
+
throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + _typeof(pathObject));
|
59531
|
+
}
|
59532
|
+
return _format('/', pathObject);
|
59533
|
+
},
|
59534
|
+
parse: function parse(path) {
|
59535
|
+
assertPath(path);
|
59536
|
+
var ret = {
|
59537
|
+
root: '',
|
59538
|
+
dir: '',
|
59539
|
+
base: '',
|
59540
|
+
ext: '',
|
59541
|
+
name: ''
|
59542
|
+
};
|
59543
|
+
if (path.length === 0) return ret;
|
59544
|
+
var code = path.charCodeAt(0);
|
59545
|
+
var isAbsolute = code === 47 /*/*/;
|
59546
|
+
var start;
|
59547
|
+
if (isAbsolute) {
|
59548
|
+
ret.root = '/';
|
59549
|
+
start = 1;
|
59550
|
+
} else {
|
59551
|
+
start = 0;
|
59552
|
+
}
|
59553
|
+
var startDot = -1;
|
59554
|
+
var startPart = 0;
|
59555
|
+
var end = -1;
|
59556
|
+
var matchedSlash = true;
|
59557
|
+
var i = path.length - 1;
|
59558
|
+
|
59559
|
+
// Track the state of characters (if any) we see before our first dot and
|
59560
|
+
// after any path separator we find
|
59561
|
+
var preDotState = 0;
|
59562
|
+
|
59563
|
+
// Get non-dir info
|
59564
|
+
for (; i >= start; --i) {
|
59565
|
+
code = path.charCodeAt(i);
|
59566
|
+
if (code === 47 /*/*/) {
|
59567
|
+
// If we reached a path separator that was not part of a set of path
|
59568
|
+
// separators at the end of the string, stop now
|
59569
|
+
if (!matchedSlash) {
|
59570
|
+
startPart = i + 1;
|
59571
|
+
break;
|
59572
|
+
}
|
59573
|
+
continue;
|
59574
|
+
}
|
59575
|
+
if (end === -1) {
|
59576
|
+
// We saw the first non-path separator, mark this as the end of our
|
59577
|
+
// extension
|
59578
|
+
matchedSlash = false;
|
59579
|
+
end = i + 1;
|
59580
|
+
}
|
59581
|
+
if (code === 46 /*.*/) {
|
59582
|
+
// If this is our first dot, mark it as the start of our extension
|
59583
|
+
if (startDot === -1) startDot = i;else if (preDotState !== 1) preDotState = 1;
|
59584
|
+
} else if (startDot !== -1) {
|
59585
|
+
// We saw a non-dot and non-path separator before our dot, so we should
|
59586
|
+
// have a good chance at having a non-empty extension
|
59587
|
+
preDotState = -1;
|
59588
|
+
}
|
59589
|
+
}
|
59590
|
+
if (startDot === -1 || end === -1 ||
|
59591
|
+
// We saw a non-dot character immediately before the dot
|
59592
|
+
preDotState === 0 ||
|
59593
|
+
// The (right-most) trimmed path component is exactly '..'
|
59594
|
+
preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
|
59595
|
+
if (end !== -1) {
|
59596
|
+
if (startPart === 0 && isAbsolute) ret.base = ret.name = path.slice(1, end);else ret.base = ret.name = path.slice(startPart, end);
|
59597
|
+
}
|
59598
|
+
} else {
|
59599
|
+
if (startPart === 0 && isAbsolute) {
|
59600
|
+
ret.name = path.slice(1, startDot);
|
59601
|
+
ret.base = path.slice(1, end);
|
59602
|
+
} else {
|
59603
|
+
ret.name = path.slice(startPart, startDot);
|
59604
|
+
ret.base = path.slice(startPart, end);
|
59605
|
+
}
|
59606
|
+
ret.ext = path.slice(startDot, end);
|
59607
|
+
}
|
59608
|
+
if (startPart > 0) ret.dir = path.slice(0, startPart - 1);else if (isAbsolute) ret.dir = '/';
|
59609
|
+
return ret;
|
59610
|
+
},
|
59611
|
+
sep: '/',
|
59612
|
+
delimiter: ':',
|
59613
|
+
win32: null,
|
59614
|
+
posix: null
|
59615
|
+
};
|
59616
|
+
posix.posix = posix;
|
59617
|
+
module.exports = posix;
|
59618
|
+
|
59619
|
+
/***/ }),
|
59620
|
+
|
59150
59621
|
/***/ 56947:
|
59151
59622
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
59152
59623
|
|
@@ -63224,7 +63695,7 @@ function useDeepCompareEffectNoCheck(callback, dependencies) {
|
|
63224
63695
|
|
63225
63696
|
/***/ }),
|
63226
63697
|
|
63227
|
-
/***/
|
63698
|
+
/***/ 29007:
|
63228
63699
|
/***/ ((module) => {
|
63229
63700
|
|
63230
63701
|
if (typeof Object.create === 'function') {
|
@@ -63752,7 +64223,7 @@ exports.log = function () {
|
|
63752
64223
|
* prototype.
|
63753
64224
|
* @param {function} superCtor Constructor function to inherit prototype from.
|
63754
64225
|
*/
|
63755
|
-
exports.inherits = __webpack_require__(
|
64226
|
+
exports.inherits = __webpack_require__(29007);
|
63756
64227
|
exports._extend = function (origin, add) {
|
63757
64228
|
// Don't do anything if add isn't an object
|
63758
64229
|
if (!add || !isObject(add)) return origin;
|
@@ -84618,7 +85089,7 @@ ProPageContainerTab.Item = _alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.T
|
|
84618
85089
|
|
84619
85090
|
// import path from 'path';
|
84620
85091
|
|
84621
|
-
var path = __webpack_require__(
|
85092
|
+
var path = __webpack_require__(18041);
|
84622
85093
|
var useRealHistory = function useRealHistory() {
|
84623
85094
|
var history;
|
84624
85095
|
if (react_router_dom__WEBPACK_IMPORTED_MODULE_1__.useHistory) {
|
@@ -92947,7 +93418,7 @@ if (!((_window = window) != null && _window.TEAMIXPRO_WITHOUT_ICON)) {
|
|
92947
93418
|
|
92948
93419
|
|
92949
93420
|
|
92950
|
-
var version = '1.5.
|
93421
|
+
var version = '1.5.5';
|
92951
93422
|
|
92952
93423
|
|
92953
93424
|
/***/ }),
|
@@ -102112,7 +102583,7 @@ var renderProMessage = function renderProMessage(message, defaultProps) {
|
|
102112
102583
|
|
102113
102584
|
// import path from 'path';
|
102114
102585
|
|
102115
|
-
var path = __webpack_require__(
|
102586
|
+
var path = __webpack_require__(18041);
|
102116
102587
|
var useRealHistory = function useRealHistory() {
|
102117
102588
|
var history;
|
102118
102589
|
if (react_router_dom__WEBPACK_IMPORTED_MODULE_1__.useHistory) {
|