@atlaspack/utils 2.14.1-dev.40 → 2.14.1-dev.41
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/CHANGELOG.md +18 -0
- package/lib/index.js +15 -15
- package/lib/index.js.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaspack/utils
|
|
2
2
|
|
|
3
|
+
## 2.14.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#474](https://github.com/atlassian-labs/atlaspack/pull/474) [`ce13d5e`](https://github.com/atlassian-labs/atlaspack/commit/ce13d5e885d55518ee6318e7a72e3a6e4e5126f2) Thanks [@benjervis](https://github.com/benjervis)! - No longer bundles `@atlaspack/feature-flags` into the source, so it will work from the same feature flag state as the rest of the repo.
|
|
8
|
+
|
|
9
|
+
Previously, this was preventing us from using feature flags inside the utils package, as it was impossible to set them.
|
|
10
|
+
|
|
11
|
+
- [#478](https://github.com/atlassian-labs/atlaspack/pull/478) [`570493b`](https://github.com/atlassian-labs/atlaspack/commit/570493beaf754e7985aebc7daaaf6dfcfa8fe56b) Thanks [@yamadapc](https://github.com/yamadapc)! - The first attempt at Version Packages didn't include the built artifacts.
|
|
12
|
+
This has hopefully been fixed, so this change will force those packages to re-release.
|
|
13
|
+
- Updated dependencies [[`80bd57b`](https://github.com/atlassian-labs/atlaspack/commit/80bd57b9f9e966563957dee0780d956a682eb2d4), [`ae70b81`](https://github.com/atlassian-labs/atlaspack/commit/ae70b810384cf58f9c57d341ab4c925c7bb2060c), [`4aab060`](https://github.com/atlassian-labs/atlaspack/commit/4aab0605c0d4ee8e0dcc3ffa1162eae5b360b677), [`c0a61a9`](https://github.com/atlassian-labs/atlaspack/commit/c0a61a92405b6830fe39cc17622cc2e97bf02dd7), [`cb35e7d`](https://github.com/atlassian-labs/atlaspack/commit/cb35e7d2b90b372de8401792915f12f410508d24), [`e1422ad`](https://github.com/atlassian-labs/atlaspack/commit/e1422ad0a801faaa4bc4f1023bed042ffe236e9b), [`6ec11f1`](https://github.com/atlassian-labs/atlaspack/commit/6ec11f10a9366fb8a9fc0475c7678235056bd80e), [`570493b`](https://github.com/atlassian-labs/atlaspack/commit/570493beaf754e7985aebc7daaaf6dfcfa8fe56b)]:
|
|
14
|
+
- @atlaspack/rust@3.0.1
|
|
15
|
+
- @atlaspack/feature-flags@2.14.1
|
|
16
|
+
- @atlaspack/diagnostic@2.14.1
|
|
17
|
+
- @atlaspack/logger@2.14.1
|
|
18
|
+
- @atlaspack/markdown-ansi@2.14.1
|
|
19
|
+
- @atlaspack/codeframe@2.13.3
|
|
20
|
+
|
|
3
21
|
## 2.14.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/lib/index.js
CHANGED
|
@@ -29876,38 +29876,38 @@ Object.defineProperty($004d92fd15190f61$exports, "__esModule", {
|
|
|
29876
29876
|
});
|
|
29877
29877
|
$004d92fd15190f61$exports.matchAny = $004d92fd15190f61$exports.convertPatternsToRe = $004d92fd15190f61$exports.makeRe = $004d92fd15190f61$exports.getPatternParts = $004d92fd15190f61$exports.expandBraceExpansion = $004d92fd15190f61$exports.expandPatternsWithBraceExpansion = $004d92fd15190f61$exports.isAffectDepthOfReadingPattern = $004d92fd15190f61$exports.endsWithSlashGlobStar = $004d92fd15190f61$exports.hasGlobStar = $004d92fd15190f61$exports.getBaseDirectory = $004d92fd15190f61$exports.isPatternRelatedToParentDirectory = $004d92fd15190f61$exports.getPatternsOutsideCurrentDirectory = $004d92fd15190f61$exports.getPatternsInsideCurrentDirectory = $004d92fd15190f61$exports.getPositivePatterns = $004d92fd15190f61$exports.getNegativePatterns = $004d92fd15190f61$exports.isPositivePattern = $004d92fd15190f61$exports.isNegativePattern = $004d92fd15190f61$exports.convertToNegativePattern = $004d92fd15190f61$exports.convertToPositivePattern = $004d92fd15190f61$exports.isDynamicPattern = $004d92fd15190f61$exports.isStaticPattern = void 0;
|
|
29878
29878
|
|
|
29879
|
-
var $
|
|
29879
|
+
var $4f5c522554f0e67c$exports = {};
|
|
29880
29880
|
'use strict';
|
|
29881
29881
|
|
|
29882
29882
|
|
|
29883
|
-
var $
|
|
29883
|
+
var $4f5c522554f0e67c$var$pathPosixDirname = $iBiQ5$path.posix.dirname;
|
|
29884
29884
|
|
|
29885
|
-
var $
|
|
29886
|
-
var $
|
|
29887
|
-
var $
|
|
29888
|
-
var $
|
|
29889
|
-
var $
|
|
29890
|
-
var $
|
|
29885
|
+
var $4f5c522554f0e67c$var$isWin32 = $iBiQ5$os.platform() === 'win32';
|
|
29886
|
+
var $4f5c522554f0e67c$var$slash = '/';
|
|
29887
|
+
var $4f5c522554f0e67c$var$backslash = /\\/g;
|
|
29888
|
+
var $4f5c522554f0e67c$var$enclosure = /[\{\[].*[\}\]]$/;
|
|
29889
|
+
var $4f5c522554f0e67c$var$globby = /(^|[^\\])([\{\[]|\([^\)]+$)/;
|
|
29890
|
+
var $4f5c522554f0e67c$var$escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g;
|
|
29891
29891
|
/**
|
|
29892
29892
|
* @param {string} str
|
|
29893
29893
|
* @param {Object} opts
|
|
29894
29894
|
* @param {boolean} [opts.flipBackslashes=true]
|
|
29895
29895
|
* @returns {string}
|
|
29896
|
-
*/ $
|
|
29896
|
+
*/ $4f5c522554f0e67c$exports = function globParent(str, opts) {
|
|
29897
29897
|
var options = Object.assign({
|
|
29898
29898
|
flipBackslashes: true
|
|
29899
29899
|
}, opts);
|
|
29900
29900
|
// flip windows path separators
|
|
29901
|
-
if (options.flipBackslashes && $
|
|
29901
|
+
if (options.flipBackslashes && $4f5c522554f0e67c$var$isWin32 && str.indexOf($4f5c522554f0e67c$var$slash) < 0) str = str.replace($4f5c522554f0e67c$var$backslash, $4f5c522554f0e67c$var$slash);
|
|
29902
29902
|
// special case for strings ending in enclosure containing path separator
|
|
29903
|
-
if ($
|
|
29903
|
+
if ($4f5c522554f0e67c$var$enclosure.test(str)) str += $4f5c522554f0e67c$var$slash;
|
|
29904
29904
|
// preserves full path in case of trailing path separator
|
|
29905
29905
|
str += 'a';
|
|
29906
29906
|
// remove path parts that are globby
|
|
29907
|
-
do str = $
|
|
29908
|
-
while ($eae84280c12d54e5$exports(str) || $
|
|
29907
|
+
do str = $4f5c522554f0e67c$var$pathPosixDirname(str);
|
|
29908
|
+
while ($eae84280c12d54e5$exports(str) || $4f5c522554f0e67c$var$globby.test(str));
|
|
29909
29909
|
// remove escape chars and return result
|
|
29910
|
-
return str.replace($
|
|
29910
|
+
return str.replace($4f5c522554f0e67c$var$escaped, '$1');
|
|
29911
29911
|
};
|
|
29912
29912
|
|
|
29913
29913
|
|
|
@@ -31494,7 +31494,7 @@ function $004d92fd15190f61$var$isPatternRelatedToParentDirectory(pattern) {
|
|
|
31494
31494
|
}
|
|
31495
31495
|
$004d92fd15190f61$exports.isPatternRelatedToParentDirectory = $004d92fd15190f61$var$isPatternRelatedToParentDirectory;
|
|
31496
31496
|
function $004d92fd15190f61$var$getBaseDirectory(pattern) {
|
|
31497
|
-
return $
|
|
31497
|
+
return $4f5c522554f0e67c$exports(pattern, {
|
|
31498
31498
|
flipBackslashes: false
|
|
31499
31499
|
});
|
|
31500
31500
|
}
|