@m2c2kit/build-helpers 0.3.24 → 0.3.26
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/LICENSE +10 -18
- package/README.md +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +70 -14
- package/package.json +10 -10
package/LICENSE
CHANGED
|
@@ -1,21 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
Copyright 2023 Scott T. Yabiku
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
8
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
See the License for the specific language governing permissions and
|
|
13
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @m2c2kit/build-helpers
|
|
2
2
|
|
|
3
|
-
[](https://opensource.org/license/apache-2-0)
|
|
4
4
|
[](https://github.com/m2c2-project/m2c2kit/actions/workflows/ci.yml)
|
|
5
5
|
[](https://www.npmjs.com/package/@m2c2kit/build-helpers)
|
|
6
6
|
|
package/dist/index.d.ts
CHANGED
|
@@ -226,4 +226,5 @@ interface ResolveAsyncResult {
|
|
|
226
226
|
*/
|
|
227
227
|
declare function resolveAsync(id: string, options: AsyncOpts): Promise<ResolveAsyncResult>;
|
|
228
228
|
|
|
229
|
-
export {
|
|
229
|
+
export { addModuleMetadata, copyAssets, hashM2c2kitAssets, insertVersionString, makeM2c2kitServiceWorker, resolveAsync, restoreImportMeta };
|
|
230
|
+
export type { CopyAssetsOptions, ResolveAsyncResult };
|
package/dist/index.js
CHANGED
|
@@ -18251,17 +18251,26 @@ function requireIgnore () {
|
|
|
18251
18251
|
[
|
|
18252
18252
|
// (a\ ) -> (a )
|
|
18253
18253
|
// (a ) -> (a)
|
|
18254
|
+
// (a ) -> (a)
|
|
18254
18255
|
// (a \ ) -> (a )
|
|
18255
|
-
|
|
18256
|
-
|
|
18257
|
-
|
|
18258
|
-
|
|
18256
|
+
/((?:\\\\)*?)(\\?\s+)$/,
|
|
18257
|
+
(_, m1, m2) => m1 + (
|
|
18258
|
+
m2.indexOf('\\') === 0
|
|
18259
|
+
? SPACE
|
|
18260
|
+
: EMPTY
|
|
18261
|
+
)
|
|
18259
18262
|
],
|
|
18260
18263
|
|
|
18261
18264
|
// replace (\ ) with ' '
|
|
18265
|
+
// (\ ) -> ' '
|
|
18266
|
+
// (\\ ) -> '\\ '
|
|
18267
|
+
// (\\\ ) -> '\\ '
|
|
18262
18268
|
[
|
|
18263
|
-
|
|
18264
|
-
() =>
|
|
18269
|
+
/(\\+?)\s/g,
|
|
18270
|
+
(_, m1) => {
|
|
18271
|
+
const {length} = m1;
|
|
18272
|
+
return m1.slice(0, length - length % 2) + SPACE
|
|
18273
|
+
}
|
|
18265
18274
|
],
|
|
18266
18275
|
|
|
18267
18276
|
// Escape metacharacters
|
|
@@ -18489,7 +18498,8 @@ function requireIgnore () {
|
|
|
18489
18498
|
|
|
18490
18499
|
if (!source) {
|
|
18491
18500
|
source = REPLACERS.reduce(
|
|
18492
|
-
(prev,
|
|
18501
|
+
(prev, [matcher, replacer]) =>
|
|
18502
|
+
prev.replace(matcher, replacer.bind(pattern)),
|
|
18493
18503
|
pattern
|
|
18494
18504
|
);
|
|
18495
18505
|
regexCache[pattern] = source;
|
|
@@ -19703,6 +19713,7 @@ var hasRequiredConstants$1;
|
|
|
19703
19713
|
function requireConstants$1 () {
|
|
19704
19714
|
if (hasRequiredConstants$1) return constants$1;
|
|
19705
19715
|
hasRequiredConstants$1 = 1;
|
|
19716
|
+
|
|
19706
19717
|
// Note: this is the semver.org version of the spec that it implements
|
|
19707
19718
|
// Not necessarily the package version of this code.
|
|
19708
19719
|
const SEMVER_SPEC_VERSION = '2.0.0';
|
|
@@ -19747,6 +19758,7 @@ var hasRequiredDebug;
|
|
|
19747
19758
|
function requireDebug () {
|
|
19748
19759
|
if (hasRequiredDebug) return debug_1;
|
|
19749
19760
|
hasRequiredDebug = 1;
|
|
19761
|
+
|
|
19750
19762
|
const debug = (
|
|
19751
19763
|
typeof process === 'object' &&
|
|
19752
19764
|
process.env &&
|
|
@@ -19765,6 +19777,7 @@ function requireRe () {
|
|
|
19765
19777
|
if (hasRequiredRe) return re.exports;
|
|
19766
19778
|
hasRequiredRe = 1;
|
|
19767
19779
|
(function (module, exports) {
|
|
19780
|
+
|
|
19768
19781
|
const {
|
|
19769
19782
|
MAX_SAFE_COMPONENT_LENGTH,
|
|
19770
19783
|
MAX_SAFE_BUILD_LENGTH,
|
|
@@ -19843,12 +19856,14 @@ function requireRe () {
|
|
|
19843
19856
|
|
|
19844
19857
|
// ## Pre-release Version Identifier
|
|
19845
19858
|
// A numeric identifier, or a non-numeric identifier.
|
|
19859
|
+
// Non-numberic identifiers include numberic identifiers but can be longer.
|
|
19860
|
+
// Therefore non-numberic identifiers must go first.
|
|
19846
19861
|
|
|
19847
|
-
createToken('PRERELEASEIDENTIFIER', `(?:${src[t.
|
|
19848
|
-
}|${src[t.
|
|
19862
|
+
createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NONNUMERICIDENTIFIER]
|
|
19863
|
+
}|${src[t.NUMERICIDENTIFIER]})`);
|
|
19849
19864
|
|
|
19850
|
-
createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.
|
|
19851
|
-
}|${src[t.
|
|
19865
|
+
createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NONNUMERICIDENTIFIER]
|
|
19866
|
+
}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
19852
19867
|
|
|
19853
19868
|
// ## Pre-release Version
|
|
19854
19869
|
// Hyphen, followed by one or more dot-separated pre-release version
|
|
@@ -19994,6 +20009,7 @@ var hasRequiredParseOptions;
|
|
|
19994
20009
|
function requireParseOptions () {
|
|
19995
20010
|
if (hasRequiredParseOptions) return parseOptions_1;
|
|
19996
20011
|
hasRequiredParseOptions = 1;
|
|
20012
|
+
|
|
19997
20013
|
// parse out just the options we care about
|
|
19998
20014
|
const looseOption = Object.freeze({ loose: true });
|
|
19999
20015
|
const emptyOpts = Object.freeze({ });
|
|
@@ -20018,6 +20034,7 @@ var hasRequiredIdentifiers;
|
|
|
20018
20034
|
function requireIdentifiers () {
|
|
20019
20035
|
if (hasRequiredIdentifiers) return identifiers;
|
|
20020
20036
|
hasRequiredIdentifiers = 1;
|
|
20037
|
+
|
|
20021
20038
|
const numeric = /^[0-9]+$/;
|
|
20022
20039
|
const compareIdentifiers = (a, b) => {
|
|
20023
20040
|
const anum = numeric.test(a);
|
|
@@ -20050,9 +20067,10 @@ var hasRequiredSemver$1;
|
|
|
20050
20067
|
function requireSemver$1 () {
|
|
20051
20068
|
if (hasRequiredSemver$1) return semver$1;
|
|
20052
20069
|
hasRequiredSemver$1 = 1;
|
|
20070
|
+
|
|
20053
20071
|
const debug = requireDebug();
|
|
20054
20072
|
const { MAX_LENGTH, MAX_SAFE_INTEGER } = requireConstants$1();
|
|
20055
|
-
const { safeRe: re,
|
|
20073
|
+
const { safeRe: re, t } = requireRe();
|
|
20056
20074
|
|
|
20057
20075
|
const parseOptions = requireParseOptions();
|
|
20058
20076
|
const { compareIdentifiers } = requireIdentifiers();
|
|
@@ -20234,8 +20252,7 @@ function requireSemver$1 () {
|
|
|
20234
20252
|
}
|
|
20235
20253
|
// Avoid an invalid semver results
|
|
20236
20254
|
if (identifier) {
|
|
20237
|
-
const
|
|
20238
|
-
const match = `-${identifier}`.match(r);
|
|
20255
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
20239
20256
|
if (!match || match[1] !== identifier) {
|
|
20240
20257
|
throw new Error(`invalid identifier: ${identifier}`)
|
|
20241
20258
|
}
|
|
@@ -20377,6 +20394,7 @@ var hasRequiredParse$1;
|
|
|
20377
20394
|
function requireParse$1 () {
|
|
20378
20395
|
if (hasRequiredParse$1) return parse_1$1;
|
|
20379
20396
|
hasRequiredParse$1 = 1;
|
|
20397
|
+
|
|
20380
20398
|
const SemVer = requireSemver$1();
|
|
20381
20399
|
const parse = (version, options, throwErrors = false) => {
|
|
20382
20400
|
if (version instanceof SemVer) {
|
|
@@ -20402,6 +20420,7 @@ var hasRequiredValid$1;
|
|
|
20402
20420
|
function requireValid$1 () {
|
|
20403
20421
|
if (hasRequiredValid$1) return valid_1;
|
|
20404
20422
|
hasRequiredValid$1 = 1;
|
|
20423
|
+
|
|
20405
20424
|
const parse = requireParse$1();
|
|
20406
20425
|
const valid = (version, options) => {
|
|
20407
20426
|
const v = parse(version, options);
|
|
@@ -20417,6 +20436,7 @@ var hasRequiredClean;
|
|
|
20417
20436
|
function requireClean () {
|
|
20418
20437
|
if (hasRequiredClean) return clean_1;
|
|
20419
20438
|
hasRequiredClean = 1;
|
|
20439
|
+
|
|
20420
20440
|
const parse = requireParse$1();
|
|
20421
20441
|
const clean = (version, options) => {
|
|
20422
20442
|
const s = parse(version.trim().replace(/^[=v]+/, ''), options);
|
|
@@ -20432,6 +20452,7 @@ var hasRequiredInc;
|
|
|
20432
20452
|
function requireInc () {
|
|
20433
20453
|
if (hasRequiredInc) return inc_1;
|
|
20434
20454
|
hasRequiredInc = 1;
|
|
20455
|
+
|
|
20435
20456
|
const SemVer = requireSemver$1();
|
|
20436
20457
|
|
|
20437
20458
|
const inc = (version, release, options, identifier, identifierBase) => {
|
|
@@ -20460,6 +20481,7 @@ var hasRequiredDiff;
|
|
|
20460
20481
|
function requireDiff () {
|
|
20461
20482
|
if (hasRequiredDiff) return diff_1;
|
|
20462
20483
|
hasRequiredDiff = 1;
|
|
20484
|
+
|
|
20463
20485
|
const parse = requireParse$1();
|
|
20464
20486
|
|
|
20465
20487
|
const diff = (version1, version2) => {
|
|
@@ -20527,6 +20549,7 @@ var hasRequiredMajor;
|
|
|
20527
20549
|
function requireMajor () {
|
|
20528
20550
|
if (hasRequiredMajor) return major_1;
|
|
20529
20551
|
hasRequiredMajor = 1;
|
|
20552
|
+
|
|
20530
20553
|
const SemVer = requireSemver$1();
|
|
20531
20554
|
const major = (a, loose) => new SemVer(a, loose).major;
|
|
20532
20555
|
major_1 = major;
|
|
@@ -20539,6 +20562,7 @@ var hasRequiredMinor;
|
|
|
20539
20562
|
function requireMinor () {
|
|
20540
20563
|
if (hasRequiredMinor) return minor_1;
|
|
20541
20564
|
hasRequiredMinor = 1;
|
|
20565
|
+
|
|
20542
20566
|
const SemVer = requireSemver$1();
|
|
20543
20567
|
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
20544
20568
|
minor_1 = minor;
|
|
@@ -20551,6 +20575,7 @@ var hasRequiredPatch;
|
|
|
20551
20575
|
function requirePatch () {
|
|
20552
20576
|
if (hasRequiredPatch) return patch_1;
|
|
20553
20577
|
hasRequiredPatch = 1;
|
|
20578
|
+
|
|
20554
20579
|
const SemVer = requireSemver$1();
|
|
20555
20580
|
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
20556
20581
|
patch_1 = patch;
|
|
@@ -20563,6 +20588,7 @@ var hasRequiredPrerelease;
|
|
|
20563
20588
|
function requirePrerelease () {
|
|
20564
20589
|
if (hasRequiredPrerelease) return prerelease_1;
|
|
20565
20590
|
hasRequiredPrerelease = 1;
|
|
20591
|
+
|
|
20566
20592
|
const parse = requireParse$1();
|
|
20567
20593
|
const prerelease = (version, options) => {
|
|
20568
20594
|
const parsed = parse(version, options);
|
|
@@ -20578,6 +20604,7 @@ var hasRequiredCompare;
|
|
|
20578
20604
|
function requireCompare () {
|
|
20579
20605
|
if (hasRequiredCompare) return compare_1;
|
|
20580
20606
|
hasRequiredCompare = 1;
|
|
20607
|
+
|
|
20581
20608
|
const SemVer = requireSemver$1();
|
|
20582
20609
|
const compare = (a, b, loose) =>
|
|
20583
20610
|
new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
@@ -20592,6 +20619,7 @@ var hasRequiredRcompare;
|
|
|
20592
20619
|
function requireRcompare () {
|
|
20593
20620
|
if (hasRequiredRcompare) return rcompare_1;
|
|
20594
20621
|
hasRequiredRcompare = 1;
|
|
20622
|
+
|
|
20595
20623
|
const compare = requireCompare();
|
|
20596
20624
|
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
20597
20625
|
rcompare_1 = rcompare;
|
|
@@ -20604,6 +20632,7 @@ var hasRequiredCompareLoose;
|
|
|
20604
20632
|
function requireCompareLoose () {
|
|
20605
20633
|
if (hasRequiredCompareLoose) return compareLoose_1;
|
|
20606
20634
|
hasRequiredCompareLoose = 1;
|
|
20635
|
+
|
|
20607
20636
|
const compare = requireCompare();
|
|
20608
20637
|
const compareLoose = (a, b) => compare(a, b, true);
|
|
20609
20638
|
compareLoose_1 = compareLoose;
|
|
@@ -20616,6 +20645,7 @@ var hasRequiredCompareBuild;
|
|
|
20616
20645
|
function requireCompareBuild () {
|
|
20617
20646
|
if (hasRequiredCompareBuild) return compareBuild_1;
|
|
20618
20647
|
hasRequiredCompareBuild = 1;
|
|
20648
|
+
|
|
20619
20649
|
const SemVer = requireSemver$1();
|
|
20620
20650
|
const compareBuild = (a, b, loose) => {
|
|
20621
20651
|
const versionA = new SemVer(a, loose);
|
|
@@ -20632,6 +20662,7 @@ var hasRequiredSort;
|
|
|
20632
20662
|
function requireSort () {
|
|
20633
20663
|
if (hasRequiredSort) return sort_1;
|
|
20634
20664
|
hasRequiredSort = 1;
|
|
20665
|
+
|
|
20635
20666
|
const compareBuild = requireCompareBuild();
|
|
20636
20667
|
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
20637
20668
|
sort_1 = sort;
|
|
@@ -20644,6 +20675,7 @@ var hasRequiredRsort;
|
|
|
20644
20675
|
function requireRsort () {
|
|
20645
20676
|
if (hasRequiredRsort) return rsort_1;
|
|
20646
20677
|
hasRequiredRsort = 1;
|
|
20678
|
+
|
|
20647
20679
|
const compareBuild = requireCompareBuild();
|
|
20648
20680
|
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
20649
20681
|
rsort_1 = rsort;
|
|
@@ -20656,6 +20688,7 @@ var hasRequiredGt;
|
|
|
20656
20688
|
function requireGt () {
|
|
20657
20689
|
if (hasRequiredGt) return gt_1;
|
|
20658
20690
|
hasRequiredGt = 1;
|
|
20691
|
+
|
|
20659
20692
|
const compare = requireCompare();
|
|
20660
20693
|
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
20661
20694
|
gt_1 = gt;
|
|
@@ -20668,6 +20701,7 @@ var hasRequiredLt;
|
|
|
20668
20701
|
function requireLt () {
|
|
20669
20702
|
if (hasRequiredLt) return lt_1;
|
|
20670
20703
|
hasRequiredLt = 1;
|
|
20704
|
+
|
|
20671
20705
|
const compare = requireCompare();
|
|
20672
20706
|
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
20673
20707
|
lt_1 = lt;
|
|
@@ -20680,6 +20714,7 @@ var hasRequiredEq;
|
|
|
20680
20714
|
function requireEq () {
|
|
20681
20715
|
if (hasRequiredEq) return eq_1;
|
|
20682
20716
|
hasRequiredEq = 1;
|
|
20717
|
+
|
|
20683
20718
|
const compare = requireCompare();
|
|
20684
20719
|
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
20685
20720
|
eq_1 = eq;
|
|
@@ -20692,6 +20727,7 @@ var hasRequiredNeq;
|
|
|
20692
20727
|
function requireNeq () {
|
|
20693
20728
|
if (hasRequiredNeq) return neq_1;
|
|
20694
20729
|
hasRequiredNeq = 1;
|
|
20730
|
+
|
|
20695
20731
|
const compare = requireCompare();
|
|
20696
20732
|
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
20697
20733
|
neq_1 = neq;
|
|
@@ -20704,6 +20740,7 @@ var hasRequiredGte;
|
|
|
20704
20740
|
function requireGte () {
|
|
20705
20741
|
if (hasRequiredGte) return gte_1;
|
|
20706
20742
|
hasRequiredGte = 1;
|
|
20743
|
+
|
|
20707
20744
|
const compare = requireCompare();
|
|
20708
20745
|
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
20709
20746
|
gte_1 = gte;
|
|
@@ -20716,6 +20753,7 @@ var hasRequiredLte;
|
|
|
20716
20753
|
function requireLte () {
|
|
20717
20754
|
if (hasRequiredLte) return lte_1;
|
|
20718
20755
|
hasRequiredLte = 1;
|
|
20756
|
+
|
|
20719
20757
|
const compare = requireCompare();
|
|
20720
20758
|
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
20721
20759
|
lte_1 = lte;
|
|
@@ -20728,6 +20766,7 @@ var hasRequiredCmp;
|
|
|
20728
20766
|
function requireCmp () {
|
|
20729
20767
|
if (hasRequiredCmp) return cmp_1;
|
|
20730
20768
|
hasRequiredCmp = 1;
|
|
20769
|
+
|
|
20731
20770
|
const eq = requireEq();
|
|
20732
20771
|
const neq = requireNeq();
|
|
20733
20772
|
const gt = requireGt();
|
|
@@ -20789,6 +20828,7 @@ var hasRequiredCoerce;
|
|
|
20789
20828
|
function requireCoerce () {
|
|
20790
20829
|
if (hasRequiredCoerce) return coerce_1;
|
|
20791
20830
|
hasRequiredCoerce = 1;
|
|
20831
|
+
|
|
20792
20832
|
const SemVer = requireSemver$1();
|
|
20793
20833
|
const parse = requireParse$1();
|
|
20794
20834
|
const { safeRe: re, t } = requireRe();
|
|
@@ -20858,6 +20898,7 @@ var hasRequiredLrucache;
|
|
|
20858
20898
|
function requireLrucache () {
|
|
20859
20899
|
if (hasRequiredLrucache) return lrucache;
|
|
20860
20900
|
hasRequiredLrucache = 1;
|
|
20901
|
+
|
|
20861
20902
|
class LRUCache {
|
|
20862
20903
|
constructor () {
|
|
20863
20904
|
this.max = 1000;
|
|
@@ -20907,6 +20948,7 @@ var hasRequiredRange;
|
|
|
20907
20948
|
function requireRange () {
|
|
20908
20949
|
if (hasRequiredRange) return range;
|
|
20909
20950
|
hasRequiredRange = 1;
|
|
20951
|
+
|
|
20910
20952
|
const SPACE_CHARACTERS = /\s+/g;
|
|
20911
20953
|
|
|
20912
20954
|
// hoisted class for cyclic dependency
|
|
@@ -21470,6 +21512,7 @@ var hasRequiredComparator;
|
|
|
21470
21512
|
function requireComparator () {
|
|
21471
21513
|
if (hasRequiredComparator) return comparator;
|
|
21472
21514
|
hasRequiredComparator = 1;
|
|
21515
|
+
|
|
21473
21516
|
const ANY = Symbol('SemVer ANY');
|
|
21474
21517
|
// hoisted class for cyclic dependency
|
|
21475
21518
|
class Comparator {
|
|
@@ -21620,6 +21663,7 @@ var hasRequiredSatisfies;
|
|
|
21620
21663
|
function requireSatisfies () {
|
|
21621
21664
|
if (hasRequiredSatisfies) return satisfies_1;
|
|
21622
21665
|
hasRequiredSatisfies = 1;
|
|
21666
|
+
|
|
21623
21667
|
const Range = requireRange();
|
|
21624
21668
|
const satisfies = (version, range, options) => {
|
|
21625
21669
|
try {
|
|
@@ -21639,6 +21683,7 @@ var hasRequiredToComparators;
|
|
|
21639
21683
|
function requireToComparators () {
|
|
21640
21684
|
if (hasRequiredToComparators) return toComparators_1;
|
|
21641
21685
|
hasRequiredToComparators = 1;
|
|
21686
|
+
|
|
21642
21687
|
const Range = requireRange();
|
|
21643
21688
|
|
|
21644
21689
|
// Mostly just for testing and legacy API reasons
|
|
@@ -21656,6 +21701,7 @@ var hasRequiredMaxSatisfying;
|
|
|
21656
21701
|
function requireMaxSatisfying () {
|
|
21657
21702
|
if (hasRequiredMaxSatisfying) return maxSatisfying_1;
|
|
21658
21703
|
hasRequiredMaxSatisfying = 1;
|
|
21704
|
+
|
|
21659
21705
|
const SemVer = requireSemver$1();
|
|
21660
21706
|
const Range = requireRange();
|
|
21661
21707
|
|
|
@@ -21690,6 +21736,7 @@ var hasRequiredMinSatisfying;
|
|
|
21690
21736
|
function requireMinSatisfying () {
|
|
21691
21737
|
if (hasRequiredMinSatisfying) return minSatisfying_1;
|
|
21692
21738
|
hasRequiredMinSatisfying = 1;
|
|
21739
|
+
|
|
21693
21740
|
const SemVer = requireSemver$1();
|
|
21694
21741
|
const Range = requireRange();
|
|
21695
21742
|
const minSatisfying = (versions, range, options) => {
|
|
@@ -21723,6 +21770,7 @@ var hasRequiredMinVersion;
|
|
|
21723
21770
|
function requireMinVersion () {
|
|
21724
21771
|
if (hasRequiredMinVersion) return minVersion_1;
|
|
21725
21772
|
hasRequiredMinVersion = 1;
|
|
21773
|
+
|
|
21726
21774
|
const SemVer = requireSemver$1();
|
|
21727
21775
|
const Range = requireRange();
|
|
21728
21776
|
const gt = requireGt();
|
|
@@ -21793,6 +21841,7 @@ var hasRequiredValid;
|
|
|
21793
21841
|
function requireValid () {
|
|
21794
21842
|
if (hasRequiredValid) return valid;
|
|
21795
21843
|
hasRequiredValid = 1;
|
|
21844
|
+
|
|
21796
21845
|
const Range = requireRange();
|
|
21797
21846
|
const validRange = (range, options) => {
|
|
21798
21847
|
try {
|
|
@@ -21813,6 +21862,7 @@ var hasRequiredOutside;
|
|
|
21813
21862
|
function requireOutside () {
|
|
21814
21863
|
if (hasRequiredOutside) return outside_1;
|
|
21815
21864
|
hasRequiredOutside = 1;
|
|
21865
|
+
|
|
21816
21866
|
const SemVer = requireSemver$1();
|
|
21817
21867
|
const Comparator = requireComparator();
|
|
21818
21868
|
const { ANY } = Comparator;
|
|
@@ -21902,6 +21952,7 @@ var hasRequiredGtr;
|
|
|
21902
21952
|
function requireGtr () {
|
|
21903
21953
|
if (hasRequiredGtr) return gtr_1;
|
|
21904
21954
|
hasRequiredGtr = 1;
|
|
21955
|
+
|
|
21905
21956
|
// Determine if version is greater than all the versions possible in the range.
|
|
21906
21957
|
const outside = requireOutside();
|
|
21907
21958
|
const gtr = (version, range, options) => outside(version, range, '>', options);
|
|
@@ -21915,6 +21966,7 @@ var hasRequiredLtr;
|
|
|
21915
21966
|
function requireLtr () {
|
|
21916
21967
|
if (hasRequiredLtr) return ltr_1;
|
|
21917
21968
|
hasRequiredLtr = 1;
|
|
21969
|
+
|
|
21918
21970
|
const outside = requireOutside();
|
|
21919
21971
|
// Determine if version is less than all the versions possible in the range
|
|
21920
21972
|
const ltr = (version, range, options) => outside(version, range, '<', options);
|
|
@@ -21928,6 +21980,7 @@ var hasRequiredIntersects;
|
|
|
21928
21980
|
function requireIntersects () {
|
|
21929
21981
|
if (hasRequiredIntersects) return intersects_1;
|
|
21930
21982
|
hasRequiredIntersects = 1;
|
|
21983
|
+
|
|
21931
21984
|
const Range = requireRange();
|
|
21932
21985
|
const intersects = (r1, r2, options) => {
|
|
21933
21986
|
r1 = new Range(r1, options);
|
|
@@ -21944,6 +21997,7 @@ var hasRequiredSimplify;
|
|
|
21944
21997
|
function requireSimplify () {
|
|
21945
21998
|
if (hasRequiredSimplify) return simplify;
|
|
21946
21999
|
hasRequiredSimplify = 1;
|
|
22000
|
+
|
|
21947
22001
|
// given a set of versions and a range, create a "simplified" range
|
|
21948
22002
|
// that includes the same versions that the original range does
|
|
21949
22003
|
// If the original range is shorter than the simplified one, return that.
|
|
@@ -22000,6 +22054,7 @@ var hasRequiredSubset;
|
|
|
22000
22054
|
function requireSubset () {
|
|
22001
22055
|
if (hasRequiredSubset) return subset_1;
|
|
22002
22056
|
hasRequiredSubset = 1;
|
|
22057
|
+
|
|
22003
22058
|
const Range = requireRange();
|
|
22004
22059
|
const Comparator = requireComparator();
|
|
22005
22060
|
const { ANY } = Comparator;
|
|
@@ -22256,6 +22311,7 @@ var hasRequiredSemver;
|
|
|
22256
22311
|
function requireSemver () {
|
|
22257
22312
|
if (hasRequiredSemver) return semver;
|
|
22258
22313
|
hasRequiredSemver = 1;
|
|
22314
|
+
|
|
22259
22315
|
// just pre-load all the stuff that index.js lazily exports
|
|
22260
22316
|
const internalRe = requireRe();
|
|
22261
22317
|
const constants = requireConstants$1();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m2c2kit/build-helpers",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.26",
|
|
4
4
|
"description": "Utility functions for building m2c2kit apps",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -15,29 +15,29 @@
|
|
|
15
15
|
"dist/index.d.ts"
|
|
16
16
|
],
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@rollup/plugin-commonjs": "28.0.
|
|
18
|
+
"@rollup/plugin-commonjs": "28.0.3",
|
|
19
19
|
"@rollup/plugin-json": "6.1.0",
|
|
20
|
-
"@rollup/plugin-node-resolve": "16.0.
|
|
20
|
+
"@rollup/plugin-node-resolve": "16.0.1",
|
|
21
21
|
"@rollup/plugin-replace": "6.0.2",
|
|
22
22
|
"@types/findup-sync": "4.0.5",
|
|
23
|
-
"@types/semver": "7.
|
|
23
|
+
"@types/semver": "7.7.0",
|
|
24
24
|
"cpy": "10.1.0",
|
|
25
25
|
"findup-sync": "5.0.0",
|
|
26
26
|
"magic-string": "0.30.17",
|
|
27
27
|
"rimraf": "6.0.1",
|
|
28
|
-
"rollup": "4.
|
|
28
|
+
"rollup": "4.41.0",
|
|
29
29
|
"rollup-plugin-copy": "3.5.0",
|
|
30
|
-
"rollup-plugin-dts": "6.
|
|
31
|
-
"rollup-plugin-esbuild": "6.2.
|
|
32
|
-
"semver": "7.7.
|
|
33
|
-
"typescript": "5.
|
|
30
|
+
"rollup-plugin-dts": "6.2.1",
|
|
31
|
+
"rollup-plugin-esbuild": "6.2.1",
|
|
32
|
+
"semver": "7.7.2",
|
|
33
|
+
"typescript": "5.8.3"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "npm run clean && tsc && rollup -c",
|
|
37
37
|
"clean": "rimraf build dist .rollup.cache tsconfig.tsbuildinfo",
|
|
38
38
|
"test": "cd ../.. && npx env-cmd -f .env.jest jest --selectProjects @m2c2kit/build-helpers"
|
|
39
39
|
},
|
|
40
|
-
"license": "
|
|
40
|
+
"license": "Apache-2.0",
|
|
41
41
|
"author": {
|
|
42
42
|
"name": "Scott T. Yabiku",
|
|
43
43
|
"email": "syabiku@gmail.com"
|