@donmahallem/lerna2codecov 0.2.2 → 0.2.3
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/cjs/_virtual/git-host-info.cjs +8 -0
- package/dist/cjs/_virtual/git-host-info.cjs.map +1 -0
- package/dist/cjs/_virtual/index3.cjs +2 -2
- package/dist/cjs/_virtual/index4.cjs +2 -2
- package/dist/cjs/node_modules/@lerna/package/index.cjs +3 -4
- package/dist/cjs/node_modules/@lerna/package/index.cjs.map +1 -1
- package/dist/cjs/node_modules/hosted-git-info/git-host-info.cjs +89 -183
- package/dist/cjs/node_modules/hosted-git-info/git-host-info.cjs.map +1 -1
- package/dist/cjs/node_modules/hosted-git-info/git-host.cjs +165 -109
- package/dist/cjs/node_modules/hosted-git-info/git-host.cjs.map +1 -1
- package/dist/cjs/node_modules/hosted-git-info/index.cjs +157 -238
- package/dist/cjs/node_modules/hosted-git-info/index.cjs.map +1 -1
- package/dist/cjs/node_modules/load-json-file/index.cjs +7 -7
- package/dist/cjs/node_modules/lru-cache/index.cjs +343 -332
- package/dist/cjs/node_modules/lru-cache/index.cjs.map +1 -1
- package/dist/cjs/node_modules/npm-package-arg/npa.cjs +95 -141
- package/dist/cjs/node_modules/npm-package-arg/npa.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/classes/comparator.cjs +6 -7
- package/dist/cjs/node_modules/semver/classes/comparator.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/classes/range.cjs +6 -7
- package/dist/cjs/node_modules/semver/classes/range.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/classes/semver.cjs +301 -292
- package/dist/cjs/node_modules/semver/classes/semver.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/functions/clean.cjs +18 -8
- package/dist/cjs/node_modules/semver/functions/clean.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/functions/cmp.cjs +60 -50
- package/dist/cjs/node_modules/semver/functions/cmp.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/functions/coerce.cjs +67 -58
- package/dist/cjs/node_modules/semver/functions/coerce.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/functions/compare-build.cjs +18 -8
- package/dist/cjs/node_modules/semver/functions/compare-build.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/functions/compare-loose.cjs +15 -5
- package/dist/cjs/node_modules/semver/functions/compare-loose.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/functions/compare.cjs +15 -5
- package/dist/cjs/node_modules/semver/functions/compare.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/functions/diff.cjs +35 -25
- package/dist/cjs/node_modules/semver/functions/diff.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/functions/eq.cjs +15 -5
- package/dist/cjs/node_modules/semver/functions/eq.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/functions/gt.cjs +15 -5
- package/dist/cjs/node_modules/semver/functions/gt.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/functions/gte.cjs +15 -5
- package/dist/cjs/node_modules/semver/functions/gte.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/functions/inc.cjs +27 -17
- package/dist/cjs/node_modules/semver/functions/inc.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/functions/lt.cjs +15 -5
- package/dist/cjs/node_modules/semver/functions/lt.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/functions/lte.cjs +15 -5
- package/dist/cjs/node_modules/semver/functions/lte.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/functions/major.cjs +14 -4
- package/dist/cjs/node_modules/semver/functions/major.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/functions/minor.cjs +14 -4
- package/dist/cjs/node_modules/semver/functions/minor.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/functions/neq.cjs +15 -5
- package/dist/cjs/node_modules/semver/functions/neq.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/functions/parse.cjs +48 -39
- package/dist/cjs/node_modules/semver/functions/parse.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/functions/patch.cjs +14 -4
- package/dist/cjs/node_modules/semver/functions/patch.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/functions/prerelease.cjs +18 -8
- package/dist/cjs/node_modules/semver/functions/prerelease.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/functions/rcompare.cjs +15 -5
- package/dist/cjs/node_modules/semver/functions/rcompare.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/functions/rsort.cjs +15 -5
- package/dist/cjs/node_modules/semver/functions/rsort.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/functions/satisfies.cjs +21 -11
- package/dist/cjs/node_modules/semver/functions/satisfies.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/functions/sort.cjs +15 -5
- package/dist/cjs/node_modules/semver/functions/sort.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/functions/valid.cjs +18 -8
- package/dist/cjs/node_modules/semver/functions/valid.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/index.cjs +60 -51
- package/dist/cjs/node_modules/semver/index.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/internal/constants.cjs +25 -15
- package/dist/cjs/node_modules/semver/internal/constants.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/internal/debug.cjs +19 -9
- package/dist/cjs/node_modules/semver/internal/debug.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/internal/identifiers.cjs +35 -25
- package/dist/cjs/node_modules/semver/internal/identifiers.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/internal/parse-options.cjs +22 -12
- package/dist/cjs/node_modules/semver/internal/parse-options.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/internal/re.cjs +172 -161
- package/dist/cjs/node_modules/semver/internal/re.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/ranges/gtr.cjs +16 -6
- package/dist/cjs/node_modules/semver/ranges/gtr.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/ranges/intersects.cjs +18 -8
- package/dist/cjs/node_modules/semver/ranges/intersects.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/ranges/ltr.cjs +16 -6
- package/dist/cjs/node_modules/semver/ranges/ltr.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/ranges/max-satisfying.cjs +35 -25
- package/dist/cjs/node_modules/semver/ranges/max-satisfying.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/ranges/min-satisfying.cjs +35 -25
- package/dist/cjs/node_modules/semver/ranges/min-satisfying.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/ranges/min-version.cjs +66 -56
- package/dist/cjs/node_modules/semver/ranges/min-version.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/ranges/outside.cjs +86 -76
- package/dist/cjs/node_modules/semver/ranges/outside.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/ranges/simplify.cjs +59 -49
- package/dist/cjs/node_modules/semver/ranges/simplify.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/ranges/subset.cjs +259 -249
- package/dist/cjs/node_modules/semver/ranges/subset.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/ranges/to-comparators.cjs +17 -7
- package/dist/cjs/node_modules/semver/ranges/to-comparators.cjs.map +1 -1
- package/dist/cjs/node_modules/semver/ranges/valid.cjs +22 -12
- package/dist/cjs/node_modules/semver/ranges/valid.cjs.map +1 -1
- package/dist/cjs/node_modules/supports-color/index.cjs +3 -3
- package/dist/cjs/node_modules/validate-npm-package-name/index.cjs +118 -108
- package/dist/cjs/node_modules/validate-npm-package-name/index.cjs.map +1 -1
- package/dist/cjs/node_modules/write-pkg/index.cjs +3 -3
- package/dist/cjs/node_modules/write-pkg/node_modules/make-dir/index.cjs +3 -3
- package/dist/cjs/node_modules/write-pkg/node_modules/make-dir/index.cjs.map +1 -1
- package/dist/cjs/node_modules/write-pkg/node_modules/write-file-atomic/index.cjs +3 -3
- package/dist/cjs/node_modules/write-pkg/node_modules/write-json-file/index.cjs +3 -3
- package/dist/cjs/node_modules/yallist/yallist.cjs +435 -425
- package/dist/cjs/node_modules/yallist/yallist.cjs.map +1 -1
- package/dist/cjs/update-config.cjs +2 -2
- package/dist/esm/_virtual/git-host-info.mjs +4 -0
- package/dist/esm/_virtual/git-host-info.mjs.map +1 -0
- package/dist/esm/_virtual/index3.mjs +2 -2
- package/dist/esm/_virtual/index4.mjs +2 -2
- package/dist/esm/node_modules/@lerna/package/index.mjs +2 -3
- package/dist/esm/node_modules/@lerna/package/index.mjs.map +1 -1
- package/dist/esm/node_modules/hosted-git-info/git-host-info.mjs +87 -183
- package/dist/esm/node_modules/hosted-git-info/git-host-info.mjs.map +1 -1
- package/dist/esm/node_modules/hosted-git-info/git-host.mjs +165 -111
- package/dist/esm/node_modules/hosted-git-info/git-host.mjs.map +1 -1
- package/dist/esm/node_modules/hosted-git-info/index.mjs +159 -242
- package/dist/esm/node_modules/hosted-git-info/index.mjs.map +1 -1
- package/dist/esm/node_modules/load-json-file/index.mjs +2 -2
- package/dist/esm/node_modules/load-json-file/index.mjs.map +1 -1
- package/dist/esm/node_modules/lru-cache/index.mjs +343 -334
- package/dist/esm/node_modules/lru-cache/index.mjs.map +1 -1
- package/dist/esm/node_modules/npm-package-arg/npa.mjs +93 -139
- package/dist/esm/node_modules/npm-package-arg/npa.mjs.map +1 -1
- package/dist/esm/node_modules/semver/classes/comparator.mjs +11 -12
- package/dist/esm/node_modules/semver/classes/comparator.mjs.map +1 -1
- package/dist/esm/node_modules/semver/classes/range.mjs +21 -22
- package/dist/esm/node_modules/semver/classes/range.mjs.map +1 -1
- package/dist/esm/node_modules/semver/classes/semver.mjs +301 -294
- package/dist/esm/node_modules/semver/classes/semver.mjs.map +1 -1
- package/dist/esm/node_modules/semver/functions/clean.mjs +16 -8
- package/dist/esm/node_modules/semver/functions/clean.mjs.map +1 -1
- package/dist/esm/node_modules/semver/functions/cmp.mjs +69 -61
- package/dist/esm/node_modules/semver/functions/cmp.mjs.map +1 -1
- package/dist/esm/node_modules/semver/functions/coerce.mjs +66 -59
- package/dist/esm/node_modules/semver/functions/coerce.mjs.map +1 -1
- package/dist/esm/node_modules/semver/functions/compare-build.mjs +17 -9
- package/dist/esm/node_modules/semver/functions/compare-build.mjs.map +1 -1
- package/dist/esm/node_modules/semver/functions/compare-loose.mjs +13 -5
- package/dist/esm/node_modules/semver/functions/compare-loose.mjs.map +1 -1
- package/dist/esm/node_modules/semver/functions/compare.mjs +14 -6
- package/dist/esm/node_modules/semver/functions/compare.mjs.map +1 -1
- package/dist/esm/node_modules/semver/functions/diff.mjs +33 -25
- package/dist/esm/node_modules/semver/functions/diff.mjs.map +1 -1
- package/dist/esm/node_modules/semver/functions/eq.mjs +13 -5
- package/dist/esm/node_modules/semver/functions/eq.mjs.map +1 -1
- package/dist/esm/node_modules/semver/functions/gt.mjs +13 -5
- package/dist/esm/node_modules/semver/functions/gt.mjs.map +1 -1
- package/dist/esm/node_modules/semver/functions/gte.mjs +13 -5
- package/dist/esm/node_modules/semver/functions/gte.mjs.map +1 -1
- package/dist/esm/node_modules/semver/functions/inc.mjs +26 -18
- package/dist/esm/node_modules/semver/functions/inc.mjs.map +1 -1
- package/dist/esm/node_modules/semver/functions/lt.mjs +13 -5
- package/dist/esm/node_modules/semver/functions/lt.mjs.map +1 -1
- package/dist/esm/node_modules/semver/functions/lte.mjs +13 -5
- package/dist/esm/node_modules/semver/functions/lte.mjs.map +1 -1
- package/dist/esm/node_modules/semver/functions/major.mjs +13 -5
- package/dist/esm/node_modules/semver/functions/major.mjs.map +1 -1
- package/dist/esm/node_modules/semver/functions/minor.mjs +13 -5
- package/dist/esm/node_modules/semver/functions/minor.mjs.map +1 -1
- package/dist/esm/node_modules/semver/functions/neq.mjs +13 -5
- package/dist/esm/node_modules/semver/functions/neq.mjs.map +1 -1
- package/dist/esm/node_modules/semver/functions/parse.mjs +48 -41
- package/dist/esm/node_modules/semver/functions/parse.mjs.map +1 -1
- package/dist/esm/node_modules/semver/functions/patch.mjs +13 -5
- package/dist/esm/node_modules/semver/functions/patch.mjs.map +1 -1
- package/dist/esm/node_modules/semver/functions/prerelease.mjs +16 -8
- package/dist/esm/node_modules/semver/functions/prerelease.mjs.map +1 -1
- package/dist/esm/node_modules/semver/functions/rcompare.mjs +13 -5
- package/dist/esm/node_modules/semver/functions/rcompare.mjs.map +1 -1
- package/dist/esm/node_modules/semver/functions/rsort.mjs +13 -5
- package/dist/esm/node_modules/semver/functions/rsort.mjs.map +1 -1
- package/dist/esm/node_modules/semver/functions/satisfies.mjs +19 -11
- package/dist/esm/node_modules/semver/functions/satisfies.mjs.map +1 -1
- package/dist/esm/node_modules/semver/functions/sort.mjs +13 -5
- package/dist/esm/node_modules/semver/functions/sort.mjs.map +1 -1
- package/dist/esm/node_modules/semver/functions/valid.mjs +16 -8
- package/dist/esm/node_modules/semver/functions/valid.mjs.map +1 -1
- package/dist/esm/node_modules/semver/index.mjs +96 -89
- package/dist/esm/node_modules/semver/index.mjs.map +1 -1
- package/dist/esm/node_modules/semver/internal/constants.mjs +23 -15
- package/dist/esm/node_modules/semver/internal/constants.mjs.map +1 -1
- package/dist/esm/node_modules/semver/internal/debug.mjs +17 -9
- package/dist/esm/node_modules/semver/internal/debug.mjs.map +1 -1
- package/dist/esm/node_modules/semver/internal/identifiers.mjs +28 -20
- package/dist/esm/node_modules/semver/internal/identifiers.mjs.map +1 -1
- package/dist/esm/node_modules/semver/internal/parse-options.mjs +20 -12
- package/dist/esm/node_modules/semver/internal/parse-options.mjs.map +1 -1
- package/dist/esm/node_modules/semver/internal/re.mjs +175 -166
- package/dist/esm/node_modules/semver/internal/re.mjs.map +1 -1
- package/dist/esm/node_modules/semver/ranges/gtr.mjs +14 -6
- package/dist/esm/node_modules/semver/ranges/gtr.mjs.map +1 -1
- package/dist/esm/node_modules/semver/ranges/intersects.mjs +16 -8
- package/dist/esm/node_modules/semver/ranges/intersects.mjs.map +1 -1
- package/dist/esm/node_modules/semver/ranges/ltr.mjs +14 -6
- package/dist/esm/node_modules/semver/ranges/ltr.mjs.map +1 -1
- package/dist/esm/node_modules/semver/ranges/max-satisfying.mjs +34 -26
- package/dist/esm/node_modules/semver/ranges/max-satisfying.mjs.map +1 -1
- package/dist/esm/node_modules/semver/ranges/min-satisfying.mjs +34 -26
- package/dist/esm/node_modules/semver/ranges/min-satisfying.mjs.map +1 -1
- package/dist/esm/node_modules/semver/ranges/min-version.mjs +65 -57
- package/dist/esm/node_modules/semver/ranges/min-version.mjs.map +1 -1
- package/dist/esm/node_modules/semver/ranges/outside.mjs +85 -77
- package/dist/esm/node_modules/semver/ranges/outside.mjs.map +1 -1
- package/dist/esm/node_modules/semver/ranges/simplify.mjs +57 -49
- package/dist/esm/node_modules/semver/ranges/simplify.mjs.map +1 -1
- package/dist/esm/node_modules/semver/ranges/subset.mjs +257 -249
- package/dist/esm/node_modules/semver/ranges/subset.mjs.map +1 -1
- package/dist/esm/node_modules/semver/ranges/to-comparators.mjs +15 -7
- package/dist/esm/node_modules/semver/ranges/to-comparators.mjs.map +1 -1
- package/dist/esm/node_modules/semver/ranges/valid.mjs +20 -12
- package/dist/esm/node_modules/semver/ranges/valid.mjs.map +1 -1
- package/dist/esm/node_modules/supports-color/index.mjs +2 -2
- package/dist/esm/node_modules/validate-npm-package-name/index.mjs +114 -107
- package/dist/esm/node_modules/validate-npm-package-name/index.mjs.map +1 -1
- package/dist/esm/node_modules/write-pkg/index.mjs +2 -2
- package/dist/esm/node_modules/write-pkg/index.mjs.map +1 -1
- package/dist/esm/node_modules/write-pkg/node_modules/make-dir/index.mjs +2 -2
- package/dist/esm/node_modules/write-pkg/node_modules/make-dir/index.mjs.map +1 -1
- package/dist/esm/node_modules/write-pkg/node_modules/write-file-atomic/index.mjs +2 -2
- package/dist/esm/node_modules/write-pkg/node_modules/write-file-atomic/index.mjs.map +1 -1
- package/dist/esm/node_modules/write-pkg/node_modules/write-json-file/index.mjs +2 -2
- package/dist/esm/node_modules/write-pkg/node_modules/write-json-file/index.mjs.map +1 -1
- package/dist/esm/node_modules/yallist/yallist.mjs +433 -425
- package/dist/esm/node_modules/yallist/yallist.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-comparators.cjs","sources":["../../../../../node_modules/semver/ranges/to-comparators.js"],"sourcesContent":["const Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n"],"names":["require$$0"],"mappings":"
|
|
1
|
+
{"version":3,"file":"to-comparators.cjs","sources":["../../../../../node_modules/semver/ranges/to-comparators.js"],"sourcesContent":["const Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n"],"names":["require$$0"],"mappings":";;;;;;;;;;;;CAAA,MAAM,KAAK,GAAGA,eAA2B,GAAA;AACzC;AACA;AACA,CAAA,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,OAAO;GACnC,IAAI,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,GAAG;MAC1B,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAC;AACpE;AACA,CAAA,eAAc,GAAG,cAAA;;;;;;"}
|
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
const range = require('../classes/range.cjs');
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
var valid;
|
|
8
|
+
var hasRequiredValid;
|
|
9
|
+
|
|
10
|
+
function requireValid () {
|
|
11
|
+
if (hasRequiredValid) return valid;
|
|
12
|
+
hasRequiredValid = 1;
|
|
13
|
+
const Range = range.__require();
|
|
14
|
+
const validRange = (range, options) => {
|
|
15
|
+
try {
|
|
16
|
+
// Return '*' instead of '' so that truthiness works.
|
|
17
|
+
// This will throw if it's invalid anyway
|
|
18
|
+
return new Range(range, options).range || '*'
|
|
19
|
+
} catch (er) {
|
|
20
|
+
return null
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
valid = validRange;
|
|
24
|
+
return valid;
|
|
25
|
+
}
|
|
16
26
|
|
|
17
|
-
|
|
27
|
+
exports.__require = requireValid;
|
|
18
28
|
//# sourceMappingURL=valid.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"valid.cjs","sources":["../../../../../node_modules/semver/ranges/valid.js"],"sourcesContent":["const Range = require('../classes/range')\nconst validRange = (range, options) => {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\nmodule.exports = validRange\n"],"names":["require$$0"],"mappings":"
|
|
1
|
+
{"version":3,"file":"valid.cjs","sources":["../../../../../node_modules/semver/ranges/valid.js"],"sourcesContent":["const Range = require('../classes/range')\nconst validRange = (range, options) => {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\nmodule.exports = validRange\n"],"names":["require$$0"],"mappings":";;;;;;;;;;;;CAAA,MAAM,KAAK,GAAGA,eAA2B,GAAA;AACzC,CAAA,MAAM,UAAU,GAAG,CAAC,KAAK,EAAE,OAAO,KAAK;AACvC,GAAE,IAAI;AACN;AACA;KACI,OAAO,IAAI,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,KAAK,IAAI,GAAG;IAC9C,CAAC,OAAO,EAAE,EAAE;AACf,KAAI,OAAO,IAAI;IACZ;GACF;AACD,CAAA,KAAc,GAAG,WAAA;;;;;;"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const require$$
|
|
3
|
+
const require$$3 = require('os');
|
|
4
4
|
const index = require('../has-flag/index.cjs');
|
|
5
5
|
|
|
6
6
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
7
7
|
|
|
8
|
-
const require$$
|
|
8
|
+
const require$$3__default = /*#__PURE__*/_interopDefaultLegacy(require$$3);
|
|
9
9
|
|
|
10
|
-
const os = require$$
|
|
10
|
+
const os = require$$3__default["default"];
|
|
11
11
|
const hasFlag = index;
|
|
12
12
|
|
|
13
13
|
const env = process.env;
|
|
@@ -1,111 +1,121 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('../../_virtual/index3.cjs');
|
|
6
|
+
const builtins = require('../builtins/builtins.cjs');
|
|
7
|
+
|
|
8
|
+
var hasRequiredValidateNpmPackageName;
|
|
9
|
+
|
|
10
|
+
function requireValidateNpmPackageName () {
|
|
11
|
+
if (hasRequiredValidateNpmPackageName) return index.validateNpmPackageName.exports;
|
|
12
|
+
hasRequiredValidateNpmPackageName = 1;
|
|
13
|
+
|
|
14
|
+
var scopedPackagePattern = new RegExp('^(?:@([^/]+?)[/])?([^/]+?)$');
|
|
15
|
+
var builtins$1 = builtins;
|
|
16
|
+
var blacklist = [
|
|
17
|
+
'node_modules',
|
|
18
|
+
'favicon.ico'
|
|
19
|
+
];
|
|
20
|
+
|
|
21
|
+
var validate = index.validateNpmPackageName.exports = function (name) {
|
|
22
|
+
var warnings = [];
|
|
23
|
+
var errors = [];
|
|
24
|
+
|
|
25
|
+
if (name === null) {
|
|
26
|
+
errors.push('name cannot be null');
|
|
27
|
+
return done(warnings, errors)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
if (name === undefined) {
|
|
31
|
+
errors.push('name cannot be undefined');
|
|
32
|
+
return done(warnings, errors)
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (typeof name !== 'string') {
|
|
36
|
+
errors.push('name must be a string');
|
|
37
|
+
return done(warnings, errors)
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if (!name.length) {
|
|
41
|
+
errors.push('name length must be greater than zero');
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (name.match(/^\./)) {
|
|
45
|
+
errors.push('name cannot start with a period');
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (name.match(/^_/)) {
|
|
49
|
+
errors.push('name cannot start with an underscore');
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
if (name.trim() !== name) {
|
|
53
|
+
errors.push('name cannot contain leading or trailing spaces');
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// No funny business
|
|
57
|
+
blacklist.forEach(function (blacklistedName) {
|
|
58
|
+
if (name.toLowerCase() === blacklistedName) {
|
|
59
|
+
errors.push(blacklistedName + ' is a blacklisted name');
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
// Generate warnings for stuff that used to be allowed
|
|
64
|
+
|
|
65
|
+
// core module names like http, events, util, etc
|
|
66
|
+
builtins$1.forEach(function (builtin) {
|
|
67
|
+
if (name.toLowerCase() === builtin) {
|
|
68
|
+
warnings.push(builtin + ' is a core module name');
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
// really-long-package-names-------------------------------such--length-----many---wow
|
|
73
|
+
// the thisisareallyreallylongpackagenameitshouldpublishdowenowhavealimittothelengthofpackagenames-poch.
|
|
74
|
+
if (name.length > 214) {
|
|
75
|
+
warnings.push('name can no longer contain more than 214 characters');
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// mIxeD CaSe nAMEs
|
|
79
|
+
if (name.toLowerCase() !== name) {
|
|
80
|
+
warnings.push('name can no longer contain capital letters');
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
if (/[~'!()*]/.test(name.split('/').slice(-1)[0])) {
|
|
84
|
+
warnings.push('name can no longer contain special characters ("~\'!()*")');
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if (encodeURIComponent(name) !== name) {
|
|
88
|
+
// Maybe it's a scoped package name, like @user/package
|
|
89
|
+
var nameMatch = name.match(scopedPackagePattern);
|
|
90
|
+
if (nameMatch) {
|
|
91
|
+
var user = nameMatch[1];
|
|
92
|
+
var pkg = nameMatch[2];
|
|
93
|
+
if (encodeURIComponent(user) === user && encodeURIComponent(pkg) === pkg) {
|
|
94
|
+
return done(warnings, errors)
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
errors.push('name can only contain URL-friendly characters');
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return done(warnings, errors)
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
validate.scopedPackagePattern = scopedPackagePattern;
|
|
105
|
+
|
|
106
|
+
var done = function (warnings, errors) {
|
|
107
|
+
var result = {
|
|
108
|
+
validForNewPackages: errors.length === 0 && warnings.length === 0,
|
|
109
|
+
validForOldPackages: errors.length === 0,
|
|
110
|
+
warnings: warnings,
|
|
111
|
+
errors: errors
|
|
112
|
+
};
|
|
113
|
+
if (!result.warnings.length) delete result.warnings;
|
|
114
|
+
if (!result.errors.length) delete result.errors;
|
|
115
|
+
return result
|
|
116
|
+
};
|
|
117
|
+
return index.validateNpmPackageName.exports;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
exports.__require = requireValidateNpmPackageName;
|
|
111
121
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../node_modules/validate-npm-package-name/index.js"],"sourcesContent":["'use strict'\n\nvar scopedPackagePattern = new RegExp('^(?:@([^/]+?)[/])?([^/]+?)$')\nvar builtins = require('builtins')\nvar blacklist = [\n 'node_modules',\n 'favicon.ico'\n]\n\nvar validate = module.exports = function (name) {\n var warnings = []\n var errors = []\n\n if (name === null) {\n errors.push('name cannot be null')\n return done(warnings, errors)\n }\n\n if (name === undefined) {\n errors.push('name cannot be undefined')\n return done(warnings, errors)\n }\n\n if (typeof name !== 'string') {\n errors.push('name must be a string')\n return done(warnings, errors)\n }\n\n if (!name.length) {\n errors.push('name length must be greater than zero')\n }\n\n if (name.match(/^\\./)) {\n errors.push('name cannot start with a period')\n }\n\n if (name.match(/^_/)) {\n errors.push('name cannot start with an underscore')\n }\n\n if (name.trim() !== name) {\n errors.push('name cannot contain leading or trailing spaces')\n }\n\n // No funny business\n blacklist.forEach(function (blacklistedName) {\n if (name.toLowerCase() === blacklistedName) {\n errors.push(blacklistedName + ' is a blacklisted name')\n }\n })\n\n // Generate warnings for stuff that used to be allowed\n\n // core module names like http, events, util, etc\n builtins.forEach(function (builtin) {\n if (name.toLowerCase() === builtin) {\n warnings.push(builtin + ' is a core module name')\n }\n })\n\n // really-long-package-names-------------------------------such--length-----many---wow\n // the thisisareallyreallylongpackagenameitshouldpublishdowenowhavealimittothelengthofpackagenames-poch.\n if (name.length > 214) {\n warnings.push('name can no longer contain more than 214 characters')\n }\n\n // mIxeD CaSe nAMEs\n if (name.toLowerCase() !== name) {\n warnings.push('name can no longer contain capital letters')\n }\n\n if (/[~'!()*]/.test(name.split('/').slice(-1)[0])) {\n warnings.push('name can no longer contain special characters (\"~\\'!()*\")')\n }\n\n if (encodeURIComponent(name) !== name) {\n // Maybe it's a scoped package name, like @user/package\n var nameMatch = name.match(scopedPackagePattern)\n if (nameMatch) {\n var user = nameMatch[1]\n var pkg = nameMatch[2]\n if (encodeURIComponent(user) === user && encodeURIComponent(pkg) === pkg) {\n return done(warnings, errors)\n }\n }\n\n errors.push('name can only contain URL-friendly characters')\n }\n\n return done(warnings, errors)\n}\n\nvalidate.scopedPackagePattern = scopedPackagePattern\n\nvar done = function (warnings, errors) {\n var result = {\n validForNewPackages: errors.length === 0 && warnings.length === 0,\n validForOldPackages: errors.length === 0,\n warnings: warnings,\n errors: errors\n }\n if (!result.warnings.length) delete result.warnings\n if (!result.errors.length) delete result.errors\n return result\n}\n"],"names":["require$$0","validateNpmPackageNameModule"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../node_modules/validate-npm-package-name/index.js"],"sourcesContent":["'use strict'\n\nvar scopedPackagePattern = new RegExp('^(?:@([^/]+?)[/])?([^/]+?)$')\nvar builtins = require('builtins')\nvar blacklist = [\n 'node_modules',\n 'favicon.ico'\n]\n\nvar validate = module.exports = function (name) {\n var warnings = []\n var errors = []\n\n if (name === null) {\n errors.push('name cannot be null')\n return done(warnings, errors)\n }\n\n if (name === undefined) {\n errors.push('name cannot be undefined')\n return done(warnings, errors)\n }\n\n if (typeof name !== 'string') {\n errors.push('name must be a string')\n return done(warnings, errors)\n }\n\n if (!name.length) {\n errors.push('name length must be greater than zero')\n }\n\n if (name.match(/^\\./)) {\n errors.push('name cannot start with a period')\n }\n\n if (name.match(/^_/)) {\n errors.push('name cannot start with an underscore')\n }\n\n if (name.trim() !== name) {\n errors.push('name cannot contain leading or trailing spaces')\n }\n\n // No funny business\n blacklist.forEach(function (blacklistedName) {\n if (name.toLowerCase() === blacklistedName) {\n errors.push(blacklistedName + ' is a blacklisted name')\n }\n })\n\n // Generate warnings for stuff that used to be allowed\n\n // core module names like http, events, util, etc\n builtins.forEach(function (builtin) {\n if (name.toLowerCase() === builtin) {\n warnings.push(builtin + ' is a core module name')\n }\n })\n\n // really-long-package-names-------------------------------such--length-----many---wow\n // the thisisareallyreallylongpackagenameitshouldpublishdowenowhavealimittothelengthofpackagenames-poch.\n if (name.length > 214) {\n warnings.push('name can no longer contain more than 214 characters')\n }\n\n // mIxeD CaSe nAMEs\n if (name.toLowerCase() !== name) {\n warnings.push('name can no longer contain capital letters')\n }\n\n if (/[~'!()*]/.test(name.split('/').slice(-1)[0])) {\n warnings.push('name can no longer contain special characters (\"~\\'!()*\")')\n }\n\n if (encodeURIComponent(name) !== name) {\n // Maybe it's a scoped package name, like @user/package\n var nameMatch = name.match(scopedPackagePattern)\n if (nameMatch) {\n var user = nameMatch[1]\n var pkg = nameMatch[2]\n if (encodeURIComponent(user) === user && encodeURIComponent(pkg) === pkg) {\n return done(warnings, errors)\n }\n }\n\n errors.push('name can only contain URL-friendly characters')\n }\n\n return done(warnings, errors)\n}\n\nvalidate.scopedPackagePattern = scopedPackagePattern\n\nvar done = function (warnings, errors) {\n var result = {\n validForNewPackages: errors.length === 0 && warnings.length === 0,\n validForOldPackages: errors.length === 0,\n warnings: warnings,\n errors: errors\n }\n if (!result.warnings.length) delete result.warnings\n if (!result.errors.length) delete result.errors\n return result\n}\n"],"names":["builtins","require$$0","validateNpmPackageNameModule"],"mappings":";;;;;;;;;;;;AACA;AACA,CAAA,IAAI,oBAAoB,GAAG,IAAI,MAAM,CAAC,6BAA6B,EAAC;CACpE,IAAIA,UAAQ,GAAGC,SAAmB;AAClC,CAAA,IAAI,SAAS,GAAG;AAChB,GAAE,cAAc;AAChB,GAAE,aAAa;GACd;AACD;AACA,CAAA,IAAI,QAAQ,GAAGC,4BAAA,CAAA,OAAc,GAAG,UAAU,IAAI,EAAE;GAC9C,IAAI,QAAQ,GAAG,GAAE;GACjB,IAAI,MAAM,GAAG,GAAE;AACjB;AACA,GAAE,IAAI,IAAI,KAAK,IAAI,EAAE;AACrB,KAAI,MAAM,CAAC,IAAI,CAAC,qBAAqB,EAAC;AACtC,KAAI,OAAO,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC9B;AACH;AACA,GAAE,IAAI,IAAI,KAAK,SAAS,EAAE;AAC1B,KAAI,MAAM,CAAC,IAAI,CAAC,0BAA0B,EAAC;AAC3C,KAAI,OAAO,IAAI,CAAC,QAAQ,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ACD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,MAAM,CAAC,SAAQ;GACnD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,MAAM,CAAC,OAAM;AACjD,GAAE,OAAO,MAAM;AACf,GAAA;;;;;;"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('../../_virtual/index2.cjs');
|
|
4
|
-
const require$$
|
|
4
|
+
const require$$0 = require('path');
|
|
5
5
|
require('./node_modules/write-json-file/index.cjs');
|
|
6
6
|
const index$2 = require('./node_modules/sort-keys/index.cjs');
|
|
7
7
|
const index$1 = require('../../_virtual/index5.cjs');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
10
|
|
|
11
|
-
const require$$
|
|
11
|
+
const require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0);
|
|
12
12
|
|
|
13
|
-
const path = require$$
|
|
13
|
+
const path = require$$0__default["default"];
|
|
14
14
|
const writeJsonFile = index$1.writeJsonFile.exports;
|
|
15
15
|
const sortKeys = index$2;
|
|
16
16
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const index = require('../../../../_virtual/index9.cjs');
|
|
4
4
|
const require$$0 = require('fs');
|
|
5
|
-
const require$$
|
|
5
|
+
const require$$0$1 = require('path');
|
|
6
6
|
const index$1 = require('../../../pify/index.cjs');
|
|
7
7
|
require('../semver/semver.cjs');
|
|
8
8
|
const semver$1 = require('../../../../_virtual/semver.cjs');
|
|
@@ -10,10 +10,10 @@ const semver$1 = require('../../../../_virtual/semver.cjs');
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
12
12
|
const require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0);
|
|
13
|
-
const require$$
|
|
13
|
+
const require$$0__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$0$1);
|
|
14
14
|
|
|
15
15
|
const fs = require$$0__default["default"];
|
|
16
|
-
const path = require$$
|
|
16
|
+
const path = require$$0__default$1["default"];
|
|
17
17
|
const pify = index$1;
|
|
18
18
|
const semver = semver$1.semver.exports;
|
|
19
19
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../../../node_modules/write-pkg/node_modules/make-dir/index.js"],"sourcesContent":["'use strict';\nconst fs = require('fs');\nconst path = require('path');\nconst pify = require('pify');\nconst semver = require('semver');\n\nconst defaults = {\n\tmode: 0o777 & (~process.umask()),\n\tfs\n};\n\nconst useNativeRecursiveOption = semver.satisfies(process.version, '>=10.12.0');\n\n// https://github.com/nodejs/node/issues/8987\n// https://github.com/libuv/libuv/pull/1088\nconst checkPath = pth => {\n\tif (process.platform === 'win32') {\n\t\tconst pathHasInvalidWinCharacters = /[<>:\"|?*]/.test(pth.replace(path.parse(pth).root, ''));\n\n\t\tif (pathHasInvalidWinCharacters) {\n\t\t\tconst error = new Error(`Path contains invalid characters: ${pth}`);\n\t\t\terror.code = 'EINVAL';\n\t\t\tthrow error;\n\t\t}\n\t}\n};\n\nconst permissionError = pth => {\n\t// This replicates the exception of `fs.mkdir` with native the\n\t// `recusive` option when run on an invalid drive under Windows.\n\tconst error = new Error(`operation not permitted, mkdir '${pth}'`);\n\terror.code = 'EPERM';\n\terror.errno = -4048;\n\terror.path = pth;\n\terror.syscall = 'mkdir';\n\treturn error;\n};\n\nconst makeDir = (input, options) => Promise.resolve().then(() => {\n\tcheckPath(input);\n\toptions = Object.assign({}, defaults, options);\n\n\t// TODO: Use util.promisify when targeting Node.js 8\n\tconst mkdir = pify(options.fs.mkdir);\n\tconst stat = pify(options.fs.stat);\n\n\tif (useNativeRecursiveOption && options.fs.mkdir === fs.mkdir) {\n\t\tconst pth = path.resolve(input);\n\n\t\treturn mkdir(pth, {\n\t\t\tmode: options.mode,\n\t\t\trecursive: true\n\t\t}).then(() => pth);\n\t}\n\n\tconst make = pth => {\n\t\treturn mkdir(pth, options.mode)\n\t\t\t.then(() => pth)\n\t\t\t.catch(error => {\n\t\t\t\tif (error.code === 'EPERM') {\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\n\t\t\t\tif (error.code === 'ENOENT') {\n\t\t\t\t\tif (path.dirname(pth) === pth) {\n\t\t\t\t\t\tthrow permissionError(pth);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (error.message.includes('null bytes')) {\n\t\t\t\t\t\tthrow error;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn make(path.dirname(pth)).then(() => make(pth));\n\t\t\t\t}\n\n\t\t\t\treturn stat(pth)\n\t\t\t\t\t.then(stats => stats.isDirectory() ? pth : Promise.reject())\n\t\t\t\t\t.catch(() => {\n\t\t\t\t\t\tthrow error;\n\t\t\t\t\t});\n\t\t\t});\n\t};\n\n\treturn make(path.resolve(input));\n});\n\nmodule.exports = makeDir;\nmodule.exports.default = makeDir;\n\nmodule.exports.sync = (input, options) => {\n\tcheckPath(input);\n\toptions = Object.assign({}, defaults, options);\n\n\tif (useNativeRecursiveOption && options.fs.mkdirSync === fs.mkdirSync) {\n\t\tconst pth = path.resolve(input);\n\n\t\tfs.mkdirSync(pth, {\n\t\t\tmode: options.mode,\n\t\t\trecursive: true\n\t\t});\n\n\t\treturn pth;\n\t}\n\n\tconst make = pth => {\n\t\ttry {\n\t\t\toptions.fs.mkdirSync(pth, options.mode);\n\t\t} catch (error) {\n\t\t\tif (error.code === 'EPERM') {\n\t\t\t\tthrow error;\n\t\t\t}\n\n\t\t\tif (error.code === 'ENOENT') {\n\t\t\t\tif (path.dirname(pth) === pth) {\n\t\t\t\t\tthrow permissionError(pth);\n\t\t\t\t}\n\n\t\t\t\tif (error.message.includes('null bytes')) {\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\n\t\t\t\tmake(path.dirname(pth));\n\t\t\t\treturn make(pth);\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tif (!options.fs.statSync(pth).isDirectory()) {\n\t\t\t\t\tthrow new Error('The path is not a directory');\n\t\t\t\t}\n\t\t\t} catch (_) {\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t}\n\n\t\treturn pth;\n\t};\n\n\treturn make(path.resolve(input));\n};\n"],"names":["require$$0","require$$1","require$$2","require$$3","makeDirModule","makeDir_1"],"mappings":";;;;;;;;;;;;;;AACA,MAAM,EAAE,GAAGA,8BAAa,CAAC;AACzB,MAAM,IAAI,GAAGC,
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../../node_modules/write-pkg/node_modules/make-dir/index.js"],"sourcesContent":["'use strict';\nconst fs = require('fs');\nconst path = require('path');\nconst pify = require('pify');\nconst semver = require('semver');\n\nconst defaults = {\n\tmode: 0o777 & (~process.umask()),\n\tfs\n};\n\nconst useNativeRecursiveOption = semver.satisfies(process.version, '>=10.12.0');\n\n// https://github.com/nodejs/node/issues/8987\n// https://github.com/libuv/libuv/pull/1088\nconst checkPath = pth => {\n\tif (process.platform === 'win32') {\n\t\tconst pathHasInvalidWinCharacters = /[<>:\"|?*]/.test(pth.replace(path.parse(pth).root, ''));\n\n\t\tif (pathHasInvalidWinCharacters) {\n\t\t\tconst error = new Error(`Path contains invalid characters: ${pth}`);\n\t\t\terror.code = 'EINVAL';\n\t\t\tthrow error;\n\t\t}\n\t}\n};\n\nconst permissionError = pth => {\n\t// This replicates the exception of `fs.mkdir` with native the\n\t// `recusive` option when run on an invalid drive under Windows.\n\tconst error = new Error(`operation not permitted, mkdir '${pth}'`);\n\terror.code = 'EPERM';\n\terror.errno = -4048;\n\terror.path = pth;\n\terror.syscall = 'mkdir';\n\treturn error;\n};\n\nconst makeDir = (input, options) => Promise.resolve().then(() => {\n\tcheckPath(input);\n\toptions = Object.assign({}, defaults, options);\n\n\t// TODO: Use util.promisify when targeting Node.js 8\n\tconst mkdir = pify(options.fs.mkdir);\n\tconst stat = pify(options.fs.stat);\n\n\tif (useNativeRecursiveOption && options.fs.mkdir === fs.mkdir) {\n\t\tconst pth = path.resolve(input);\n\n\t\treturn mkdir(pth, {\n\t\t\tmode: options.mode,\n\t\t\trecursive: true\n\t\t}).then(() => pth);\n\t}\n\n\tconst make = pth => {\n\t\treturn mkdir(pth, options.mode)\n\t\t\t.then(() => pth)\n\t\t\t.catch(error => {\n\t\t\t\tif (error.code === 'EPERM') {\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\n\t\t\t\tif (error.code === 'ENOENT') {\n\t\t\t\t\tif (path.dirname(pth) === pth) {\n\t\t\t\t\t\tthrow permissionError(pth);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (error.message.includes('null bytes')) {\n\t\t\t\t\t\tthrow error;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn make(path.dirname(pth)).then(() => make(pth));\n\t\t\t\t}\n\n\t\t\t\treturn stat(pth)\n\t\t\t\t\t.then(stats => stats.isDirectory() ? pth : Promise.reject())\n\t\t\t\t\t.catch(() => {\n\t\t\t\t\t\tthrow error;\n\t\t\t\t\t});\n\t\t\t});\n\t};\n\n\treturn make(path.resolve(input));\n});\n\nmodule.exports = makeDir;\nmodule.exports.default = makeDir;\n\nmodule.exports.sync = (input, options) => {\n\tcheckPath(input);\n\toptions = Object.assign({}, defaults, options);\n\n\tif (useNativeRecursiveOption && options.fs.mkdirSync === fs.mkdirSync) {\n\t\tconst pth = path.resolve(input);\n\n\t\tfs.mkdirSync(pth, {\n\t\t\tmode: options.mode,\n\t\t\trecursive: true\n\t\t});\n\n\t\treturn pth;\n\t}\n\n\tconst make = pth => {\n\t\ttry {\n\t\t\toptions.fs.mkdirSync(pth, options.mode);\n\t\t} catch (error) {\n\t\t\tif (error.code === 'EPERM') {\n\t\t\t\tthrow error;\n\t\t\t}\n\n\t\t\tif (error.code === 'ENOENT') {\n\t\t\t\tif (path.dirname(pth) === pth) {\n\t\t\t\t\tthrow permissionError(pth);\n\t\t\t\t}\n\n\t\t\t\tif (error.message.includes('null bytes')) {\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\n\t\t\t\tmake(path.dirname(pth));\n\t\t\t\treturn make(pth);\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tif (!options.fs.statSync(pth).isDirectory()) {\n\t\t\t\t\tthrow new Error('The path is not a directory');\n\t\t\t\t}\n\t\t\t} catch (_) {\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t}\n\n\t\treturn pth;\n\t};\n\n\treturn make(path.resolve(input));\n};\n"],"names":["require$$0","require$$1","require$$2","require$$3","makeDirModule","makeDir_1"],"mappings":";;;;;;;;;;;;;;AACA,MAAM,EAAE,GAAGA,8BAAa,CAAC;AACzB,MAAM,IAAI,GAAGC,gCAAe,CAAC;AAC7B,MAAM,IAAI,GAAGC,OAAe,CAAC;AAC7B,MAAM,MAAM,GAAGC,uBAAiB,CAAC;AACjC;AACA,MAAM,QAAQ,GAAG;AACjB,CAAC,IAAI,EAAE,KAAK,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;AACjC,CAAC,EAAE;AACH,CAAC,CAAC;AACF;AACA,MAAM,wBAAwB,GAAG,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;AAChF;AACA;AACA;AACA,MAAM,SAAS,GAAG,GAAG,IAAI;AACzB,CAAC,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE;AACnC,EAAE,MAAM,2BAA2B,GAAG,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;AAC9F;AACA,EAAE,IAAI,2BAA2B,EAAE;AACnC,GAAG,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,CAAC,kCAAkC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;AACvE,GAAG,KAAK,C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AAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;AAC5B,IAAI,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;AACrB,IAAI;AACJ;AACA,GAAG,IAAI;AACP,IAAI,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE;AACjD,KAAK,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;AACpD,KAAK;AACL,IAAI,CAAC,OAAO,CAAC,EAAE;AACf,IAAI,MAAM,KAAK,CAAC;AAChB,IAAI;AACJ,GAAG;AACH;AACA,EAAE,OAAO,GAAG,CAAC;AACb,EAAE,CAAC;AACH;AACA,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;AAClC;;;;"}
|
|
@@ -5,13 +5,13 @@ const index = require('../../../../_virtual/index8.cjs');
|
|
|
5
5
|
const gracefulFs = require('../../../graceful-fs/graceful-fs.cjs');
|
|
6
6
|
require('../../../imurmurhash/imurmurhash.cjs');
|
|
7
7
|
require('../../../signal-exit/index.cjs');
|
|
8
|
-
const require$$
|
|
8
|
+
const require$$0 = require('path');
|
|
9
9
|
const imurmurhash = require('../../../../_virtual/imurmurhash.cjs');
|
|
10
10
|
const index$1 = require('../../../../_virtual/index11.cjs');
|
|
11
11
|
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
13
|
|
|
14
|
-
const require$$
|
|
14
|
+
const require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0);
|
|
15
15
|
|
|
16
16
|
index.writeFileAtomic.exports = writeFile;
|
|
17
17
|
index.writeFileAtomic.exports.sync = writeFileSync;
|
|
@@ -21,7 +21,7 @@ index.writeFileAtomic.exports._cleanupOnExit = cleanupOnExit;
|
|
|
21
21
|
var fs = gracefulFs.gracefulFs;
|
|
22
22
|
var MurmurHash3 = imurmurhash.imurmurhash.exports;
|
|
23
23
|
var onExit = index$1.signalExit.exports;
|
|
24
|
-
var path = require$$
|
|
24
|
+
var path = require$$0__default["default"];
|
|
25
25
|
var activeFiles = {};
|
|
26
26
|
|
|
27
27
|
// if we run inside of a worker_thread, `process.pid` is not unique
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('../../../../_virtual/index5.cjs');
|
|
4
|
-
const require$$
|
|
4
|
+
const require$$0 = require('path');
|
|
5
5
|
const gracefulFs = require('../../../graceful-fs/graceful-fs.cjs');
|
|
6
6
|
require('../write-file-atomic/index.cjs');
|
|
7
7
|
const index$2 = require('../sort-keys/index.cjs');
|
|
@@ -13,9 +13,9 @@ const index$3 = require('../../../../_virtual/index8.cjs');
|
|
|
13
13
|
|
|
14
14
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
15
15
|
|
|
16
|
-
const require$$
|
|
16
|
+
const require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0);
|
|
17
17
|
|
|
18
|
-
const path = require$$
|
|
18
|
+
const path = require$$0__default["default"];
|
|
19
19
|
const fs = gracefulFs.gracefulFs;
|
|
20
20
|
const writeFileAtomic = index$3.writeFileAtomic.exports;
|
|
21
21
|
const sortKeys = index$2;
|