@carbon/upgrade 11.16.0-rc.0 → 11.17.0
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/README.md +6 -0
- package/cli.js +79 -661
- package/package.json +3 -3
- package/transforms/__testfixtures__/icons-react-size-prop-rename.output.js +6 -6
- package/transforms/__testfixtures__/icons-react-size-prop-with-prop.input.js +0 -3
- package/transforms/__testfixtures__/icons-react-size-prop-with-prop.output.js +2 -5
- package/transforms/__testfixtures__/size-prop-update.output.js +20 -20
- package/transforms/__testfixtures__/small-to-size-prop.output.js +2 -3
package/README.md
CHANGED
|
@@ -67,6 +67,12 @@ the
|
|
|
67
67
|
Each is tested against a series of test fixtures to ensure transforms are
|
|
68
68
|
predictable and consistently provide the intended output.
|
|
69
69
|
|
|
70
|
+
#### Output formatting
|
|
71
|
+
|
|
72
|
+
The output of a codemod may not match your codebase's formatting style. It is
|
|
73
|
+
recommended to always run the result of a codemod through an autoformatter like
|
|
74
|
+
[Prettier](https://prettier.io/).
|
|
75
|
+
|
|
70
76
|
## 🙌 Contributing
|
|
71
77
|
|
|
72
78
|
If you have ideas on how we could make your migration experience easier, please
|
package/cli.js
CHANGED
|
@@ -35005,8 +35005,11 @@ var require_re = __commonJS({
|
|
|
35005
35005
|
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
35006
35006
|
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
35007
35007
|
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
35008
|
-
createToken("
|
|
35008
|
+
createToken("COERCEPLAIN", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
35009
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
35010
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
35009
35011
|
createToken("COERCERTL", src[t.COERCE], true);
|
|
35012
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
35010
35013
|
createToken("LONETILDE", "(?:~>?)");
|
|
35011
35014
|
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
35012
35015
|
exports2.tildeTrimReplace = "$1~";
|
|
@@ -35196,7 +35199,7 @@ var require_semver = __commonJS({
|
|
|
35196
35199
|
do {
|
|
35197
35200
|
const a = this.build[i];
|
|
35198
35201
|
const b = other.build[i];
|
|
35199
|
-
debug("
|
|
35202
|
+
debug("build compare", i, a, b);
|
|
35200
35203
|
if (a === void 0 && b === void 0) {
|
|
35201
35204
|
return 0;
|
|
35202
35205
|
} else if (b === void 0) {
|
|
@@ -35641,673 +35644,64 @@ var require_coerce = __commonJS({
|
|
|
35641
35644
|
options = options || {};
|
|
35642
35645
|
let match = null;
|
|
35643
35646
|
if (!options.rtl) {
|
|
35644
|
-
match = version.match(re[t.COERCE]);
|
|
35647
|
+
match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
35645
35648
|
} else {
|
|
35649
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
35646
35650
|
let next;
|
|
35647
|
-
while ((next =
|
|
35651
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
35648
35652
|
if (!match || next.index + next[0].length !== match.index + match[0].length) {
|
|
35649
35653
|
match = next;
|
|
35650
35654
|
}
|
|
35651
|
-
|
|
35655
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
35652
35656
|
}
|
|
35653
|
-
|
|
35657
|
+
coerceRtlRegex.lastIndex = -1;
|
|
35654
35658
|
}
|
|
35655
35659
|
if (match === null) {
|
|
35656
35660
|
return null;
|
|
35657
35661
|
}
|
|
35658
|
-
|
|
35662
|
+
const major = match[2];
|
|
35663
|
+
const minor = match[3] || "0";
|
|
35664
|
+
const patch = match[4] || "0";
|
|
35665
|
+
const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
|
|
35666
|
+
const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
35667
|
+
return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
35659
35668
|
};
|
|
35660
35669
|
module2.exports = coerce;
|
|
35661
35670
|
}
|
|
35662
35671
|
});
|
|
35663
35672
|
|
|
35664
|
-
// ../../node_modules/
|
|
35665
|
-
var
|
|
35666
|
-
"../../node_modules/
|
|
35667
|
-
"use strict";
|
|
35668
|
-
module2.exports = function(Yallist) {
|
|
35669
|
-
Yallist.prototype[Symbol.iterator] = function* () {
|
|
35670
|
-
for (let walker = this.head; walker; walker = walker.next) {
|
|
35671
|
-
yield walker.value;
|
|
35672
|
-
}
|
|
35673
|
-
};
|
|
35674
|
-
};
|
|
35675
|
-
}
|
|
35676
|
-
});
|
|
35677
|
-
|
|
35678
|
-
// ../../node_modules/yallist/yallist.js
|
|
35679
|
-
var require_yallist2 = __commonJS({
|
|
35680
|
-
"../../node_modules/yallist/yallist.js"(exports2, module2) {
|
|
35681
|
-
"use strict";
|
|
35682
|
-
module2.exports = Yallist;
|
|
35683
|
-
Yallist.Node = Node;
|
|
35684
|
-
Yallist.create = Yallist;
|
|
35685
|
-
function Yallist(list) {
|
|
35686
|
-
var self2 = this;
|
|
35687
|
-
if (!(self2 instanceof Yallist)) {
|
|
35688
|
-
self2 = new Yallist();
|
|
35689
|
-
}
|
|
35690
|
-
self2.tail = null;
|
|
35691
|
-
self2.head = null;
|
|
35692
|
-
self2.length = 0;
|
|
35693
|
-
if (list && typeof list.forEach === "function") {
|
|
35694
|
-
list.forEach(function(item) {
|
|
35695
|
-
self2.push(item);
|
|
35696
|
-
});
|
|
35697
|
-
} else if (arguments.length > 0) {
|
|
35698
|
-
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
35699
|
-
self2.push(arguments[i]);
|
|
35700
|
-
}
|
|
35701
|
-
}
|
|
35702
|
-
return self2;
|
|
35703
|
-
}
|
|
35704
|
-
Yallist.prototype.removeNode = function(node) {
|
|
35705
|
-
if (node.list !== this) {
|
|
35706
|
-
throw new Error("removing node which does not belong to this list");
|
|
35707
|
-
}
|
|
35708
|
-
var next = node.next;
|
|
35709
|
-
var prev = node.prev;
|
|
35710
|
-
if (next) {
|
|
35711
|
-
next.prev = prev;
|
|
35712
|
-
}
|
|
35713
|
-
if (prev) {
|
|
35714
|
-
prev.next = next;
|
|
35715
|
-
}
|
|
35716
|
-
if (node === this.head) {
|
|
35717
|
-
this.head = next;
|
|
35718
|
-
}
|
|
35719
|
-
if (node === this.tail) {
|
|
35720
|
-
this.tail = prev;
|
|
35721
|
-
}
|
|
35722
|
-
node.list.length--;
|
|
35723
|
-
node.next = null;
|
|
35724
|
-
node.prev = null;
|
|
35725
|
-
node.list = null;
|
|
35726
|
-
return next;
|
|
35727
|
-
};
|
|
35728
|
-
Yallist.prototype.unshiftNode = function(node) {
|
|
35729
|
-
if (node === this.head) {
|
|
35730
|
-
return;
|
|
35731
|
-
}
|
|
35732
|
-
if (node.list) {
|
|
35733
|
-
node.list.removeNode(node);
|
|
35734
|
-
}
|
|
35735
|
-
var head = this.head;
|
|
35736
|
-
node.list = this;
|
|
35737
|
-
node.next = head;
|
|
35738
|
-
if (head) {
|
|
35739
|
-
head.prev = node;
|
|
35740
|
-
}
|
|
35741
|
-
this.head = node;
|
|
35742
|
-
if (!this.tail) {
|
|
35743
|
-
this.tail = node;
|
|
35744
|
-
}
|
|
35745
|
-
this.length++;
|
|
35746
|
-
};
|
|
35747
|
-
Yallist.prototype.pushNode = function(node) {
|
|
35748
|
-
if (node === this.tail) {
|
|
35749
|
-
return;
|
|
35750
|
-
}
|
|
35751
|
-
if (node.list) {
|
|
35752
|
-
node.list.removeNode(node);
|
|
35753
|
-
}
|
|
35754
|
-
var tail = this.tail;
|
|
35755
|
-
node.list = this;
|
|
35756
|
-
node.prev = tail;
|
|
35757
|
-
if (tail) {
|
|
35758
|
-
tail.next = node;
|
|
35759
|
-
}
|
|
35760
|
-
this.tail = node;
|
|
35761
|
-
if (!this.head) {
|
|
35762
|
-
this.head = node;
|
|
35763
|
-
}
|
|
35764
|
-
this.length++;
|
|
35765
|
-
};
|
|
35766
|
-
Yallist.prototype.push = function() {
|
|
35767
|
-
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
35768
|
-
push(this, arguments[i]);
|
|
35769
|
-
}
|
|
35770
|
-
return this.length;
|
|
35771
|
-
};
|
|
35772
|
-
Yallist.prototype.unshift = function() {
|
|
35773
|
-
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
35774
|
-
unshift(this, arguments[i]);
|
|
35775
|
-
}
|
|
35776
|
-
return this.length;
|
|
35777
|
-
};
|
|
35778
|
-
Yallist.prototype.pop = function() {
|
|
35779
|
-
if (!this.tail) {
|
|
35780
|
-
return void 0;
|
|
35781
|
-
}
|
|
35782
|
-
var res = this.tail.value;
|
|
35783
|
-
this.tail = this.tail.prev;
|
|
35784
|
-
if (this.tail) {
|
|
35785
|
-
this.tail.next = null;
|
|
35786
|
-
} else {
|
|
35787
|
-
this.head = null;
|
|
35788
|
-
}
|
|
35789
|
-
this.length--;
|
|
35790
|
-
return res;
|
|
35791
|
-
};
|
|
35792
|
-
Yallist.prototype.shift = function() {
|
|
35793
|
-
if (!this.head) {
|
|
35794
|
-
return void 0;
|
|
35795
|
-
}
|
|
35796
|
-
var res = this.head.value;
|
|
35797
|
-
this.head = this.head.next;
|
|
35798
|
-
if (this.head) {
|
|
35799
|
-
this.head.prev = null;
|
|
35800
|
-
} else {
|
|
35801
|
-
this.tail = null;
|
|
35802
|
-
}
|
|
35803
|
-
this.length--;
|
|
35804
|
-
return res;
|
|
35805
|
-
};
|
|
35806
|
-
Yallist.prototype.forEach = function(fn, thisp) {
|
|
35807
|
-
thisp = thisp || this;
|
|
35808
|
-
for (var walker = this.head, i = 0; walker !== null; i++) {
|
|
35809
|
-
fn.call(thisp, walker.value, i, this);
|
|
35810
|
-
walker = walker.next;
|
|
35811
|
-
}
|
|
35812
|
-
};
|
|
35813
|
-
Yallist.prototype.forEachReverse = function(fn, thisp) {
|
|
35814
|
-
thisp = thisp || this;
|
|
35815
|
-
for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {
|
|
35816
|
-
fn.call(thisp, walker.value, i, this);
|
|
35817
|
-
walker = walker.prev;
|
|
35818
|
-
}
|
|
35819
|
-
};
|
|
35820
|
-
Yallist.prototype.get = function(n) {
|
|
35821
|
-
for (var i = 0, walker = this.head; walker !== null && i < n; i++) {
|
|
35822
|
-
walker = walker.next;
|
|
35823
|
-
}
|
|
35824
|
-
if (i === n && walker !== null) {
|
|
35825
|
-
return walker.value;
|
|
35826
|
-
}
|
|
35827
|
-
};
|
|
35828
|
-
Yallist.prototype.getReverse = function(n) {
|
|
35829
|
-
for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {
|
|
35830
|
-
walker = walker.prev;
|
|
35831
|
-
}
|
|
35832
|
-
if (i === n && walker !== null) {
|
|
35833
|
-
return walker.value;
|
|
35834
|
-
}
|
|
35835
|
-
};
|
|
35836
|
-
Yallist.prototype.map = function(fn, thisp) {
|
|
35837
|
-
thisp = thisp || this;
|
|
35838
|
-
var res = new Yallist();
|
|
35839
|
-
for (var walker = this.head; walker !== null; ) {
|
|
35840
|
-
res.push(fn.call(thisp, walker.value, this));
|
|
35841
|
-
walker = walker.next;
|
|
35842
|
-
}
|
|
35843
|
-
return res;
|
|
35844
|
-
};
|
|
35845
|
-
Yallist.prototype.mapReverse = function(fn, thisp) {
|
|
35846
|
-
thisp = thisp || this;
|
|
35847
|
-
var res = new Yallist();
|
|
35848
|
-
for (var walker = this.tail; walker !== null; ) {
|
|
35849
|
-
res.push(fn.call(thisp, walker.value, this));
|
|
35850
|
-
walker = walker.prev;
|
|
35851
|
-
}
|
|
35852
|
-
return res;
|
|
35853
|
-
};
|
|
35854
|
-
Yallist.prototype.reduce = function(fn, initial) {
|
|
35855
|
-
var acc;
|
|
35856
|
-
var walker = this.head;
|
|
35857
|
-
if (arguments.length > 1) {
|
|
35858
|
-
acc = initial;
|
|
35859
|
-
} else if (this.head) {
|
|
35860
|
-
walker = this.head.next;
|
|
35861
|
-
acc = this.head.value;
|
|
35862
|
-
} else {
|
|
35863
|
-
throw new TypeError("Reduce of empty list with no initial value");
|
|
35864
|
-
}
|
|
35865
|
-
for (var i = 0; walker !== null; i++) {
|
|
35866
|
-
acc = fn(acc, walker.value, i);
|
|
35867
|
-
walker = walker.next;
|
|
35868
|
-
}
|
|
35869
|
-
return acc;
|
|
35870
|
-
};
|
|
35871
|
-
Yallist.prototype.reduceReverse = function(fn, initial) {
|
|
35872
|
-
var acc;
|
|
35873
|
-
var walker = this.tail;
|
|
35874
|
-
if (arguments.length > 1) {
|
|
35875
|
-
acc = initial;
|
|
35876
|
-
} else if (this.tail) {
|
|
35877
|
-
walker = this.tail.prev;
|
|
35878
|
-
acc = this.tail.value;
|
|
35879
|
-
} else {
|
|
35880
|
-
throw new TypeError("Reduce of empty list with no initial value");
|
|
35881
|
-
}
|
|
35882
|
-
for (var i = this.length - 1; walker !== null; i--) {
|
|
35883
|
-
acc = fn(acc, walker.value, i);
|
|
35884
|
-
walker = walker.prev;
|
|
35885
|
-
}
|
|
35886
|
-
return acc;
|
|
35887
|
-
};
|
|
35888
|
-
Yallist.prototype.toArray = function() {
|
|
35889
|
-
var arr = new Array(this.length);
|
|
35890
|
-
for (var i = 0, walker = this.head; walker !== null; i++) {
|
|
35891
|
-
arr[i] = walker.value;
|
|
35892
|
-
walker = walker.next;
|
|
35893
|
-
}
|
|
35894
|
-
return arr;
|
|
35895
|
-
};
|
|
35896
|
-
Yallist.prototype.toArrayReverse = function() {
|
|
35897
|
-
var arr = new Array(this.length);
|
|
35898
|
-
for (var i = 0, walker = this.tail; walker !== null; i++) {
|
|
35899
|
-
arr[i] = walker.value;
|
|
35900
|
-
walker = walker.prev;
|
|
35901
|
-
}
|
|
35902
|
-
return arr;
|
|
35903
|
-
};
|
|
35904
|
-
Yallist.prototype.slice = function(from, to) {
|
|
35905
|
-
to = to || this.length;
|
|
35906
|
-
if (to < 0) {
|
|
35907
|
-
to += this.length;
|
|
35908
|
-
}
|
|
35909
|
-
from = from || 0;
|
|
35910
|
-
if (from < 0) {
|
|
35911
|
-
from += this.length;
|
|
35912
|
-
}
|
|
35913
|
-
var ret = new Yallist();
|
|
35914
|
-
if (to < from || to < 0) {
|
|
35915
|
-
return ret;
|
|
35916
|
-
}
|
|
35917
|
-
if (from < 0) {
|
|
35918
|
-
from = 0;
|
|
35919
|
-
}
|
|
35920
|
-
if (to > this.length) {
|
|
35921
|
-
to = this.length;
|
|
35922
|
-
}
|
|
35923
|
-
for (var i = 0, walker = this.head; walker !== null && i < from; i++) {
|
|
35924
|
-
walker = walker.next;
|
|
35925
|
-
}
|
|
35926
|
-
for (; walker !== null && i < to; i++, walker = walker.next) {
|
|
35927
|
-
ret.push(walker.value);
|
|
35928
|
-
}
|
|
35929
|
-
return ret;
|
|
35930
|
-
};
|
|
35931
|
-
Yallist.prototype.sliceReverse = function(from, to) {
|
|
35932
|
-
to = to || this.length;
|
|
35933
|
-
if (to < 0) {
|
|
35934
|
-
to += this.length;
|
|
35935
|
-
}
|
|
35936
|
-
from = from || 0;
|
|
35937
|
-
if (from < 0) {
|
|
35938
|
-
from += this.length;
|
|
35939
|
-
}
|
|
35940
|
-
var ret = new Yallist();
|
|
35941
|
-
if (to < from || to < 0) {
|
|
35942
|
-
return ret;
|
|
35943
|
-
}
|
|
35944
|
-
if (from < 0) {
|
|
35945
|
-
from = 0;
|
|
35946
|
-
}
|
|
35947
|
-
if (to > this.length) {
|
|
35948
|
-
to = this.length;
|
|
35949
|
-
}
|
|
35950
|
-
for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {
|
|
35951
|
-
walker = walker.prev;
|
|
35952
|
-
}
|
|
35953
|
-
for (; walker !== null && i > from; i--, walker = walker.prev) {
|
|
35954
|
-
ret.push(walker.value);
|
|
35955
|
-
}
|
|
35956
|
-
return ret;
|
|
35957
|
-
};
|
|
35958
|
-
Yallist.prototype.splice = function(start, deleteCount, ...nodes) {
|
|
35959
|
-
if (start > this.length) {
|
|
35960
|
-
start = this.length - 1;
|
|
35961
|
-
}
|
|
35962
|
-
if (start < 0) {
|
|
35963
|
-
start = this.length + start;
|
|
35964
|
-
}
|
|
35965
|
-
for (var i = 0, walker = this.head; walker !== null && i < start; i++) {
|
|
35966
|
-
walker = walker.next;
|
|
35967
|
-
}
|
|
35968
|
-
var ret = [];
|
|
35969
|
-
for (var i = 0; walker && i < deleteCount; i++) {
|
|
35970
|
-
ret.push(walker.value);
|
|
35971
|
-
walker = this.removeNode(walker);
|
|
35972
|
-
}
|
|
35973
|
-
if (walker === null) {
|
|
35974
|
-
walker = this.tail;
|
|
35975
|
-
}
|
|
35976
|
-
if (walker !== this.head && walker !== this.tail) {
|
|
35977
|
-
walker = walker.prev;
|
|
35978
|
-
}
|
|
35979
|
-
for (var i = 0; i < nodes.length; i++) {
|
|
35980
|
-
walker = insert(this, walker, nodes[i]);
|
|
35981
|
-
}
|
|
35982
|
-
return ret;
|
|
35983
|
-
};
|
|
35984
|
-
Yallist.prototype.reverse = function() {
|
|
35985
|
-
var head = this.head;
|
|
35986
|
-
var tail = this.tail;
|
|
35987
|
-
for (var walker = head; walker !== null; walker = walker.prev) {
|
|
35988
|
-
var p = walker.prev;
|
|
35989
|
-
walker.prev = walker.next;
|
|
35990
|
-
walker.next = p;
|
|
35991
|
-
}
|
|
35992
|
-
this.head = tail;
|
|
35993
|
-
this.tail = head;
|
|
35994
|
-
return this;
|
|
35995
|
-
};
|
|
35996
|
-
function insert(self2, node, value) {
|
|
35997
|
-
var inserted = node === self2.head ? new Node(value, null, node, self2) : new Node(value, node, node.next, self2);
|
|
35998
|
-
if (inserted.next === null) {
|
|
35999
|
-
self2.tail = inserted;
|
|
36000
|
-
}
|
|
36001
|
-
if (inserted.prev === null) {
|
|
36002
|
-
self2.head = inserted;
|
|
36003
|
-
}
|
|
36004
|
-
self2.length++;
|
|
36005
|
-
return inserted;
|
|
36006
|
-
}
|
|
36007
|
-
function push(self2, item) {
|
|
36008
|
-
self2.tail = new Node(item, self2.tail, null, self2);
|
|
36009
|
-
if (!self2.head) {
|
|
36010
|
-
self2.head = self2.tail;
|
|
36011
|
-
}
|
|
36012
|
-
self2.length++;
|
|
36013
|
-
}
|
|
36014
|
-
function unshift(self2, item) {
|
|
36015
|
-
self2.head = new Node(item, null, self2.head, self2);
|
|
36016
|
-
if (!self2.tail) {
|
|
36017
|
-
self2.tail = self2.head;
|
|
36018
|
-
}
|
|
36019
|
-
self2.length++;
|
|
36020
|
-
}
|
|
36021
|
-
function Node(value, prev, next, list) {
|
|
36022
|
-
if (!(this instanceof Node)) {
|
|
36023
|
-
return new Node(value, prev, next, list);
|
|
36024
|
-
}
|
|
36025
|
-
this.list = list;
|
|
36026
|
-
this.value = value;
|
|
36027
|
-
if (prev) {
|
|
36028
|
-
prev.next = this;
|
|
36029
|
-
this.prev = prev;
|
|
36030
|
-
} else {
|
|
36031
|
-
this.prev = null;
|
|
36032
|
-
}
|
|
36033
|
-
if (next) {
|
|
36034
|
-
next.prev = this;
|
|
36035
|
-
this.next = next;
|
|
36036
|
-
} else {
|
|
36037
|
-
this.next = null;
|
|
36038
|
-
}
|
|
36039
|
-
}
|
|
36040
|
-
try {
|
|
36041
|
-
require_iterator2()(Yallist);
|
|
36042
|
-
} catch (er) {
|
|
36043
|
-
}
|
|
36044
|
-
}
|
|
36045
|
-
});
|
|
36046
|
-
|
|
36047
|
-
// ../../node_modules/semver/node_modules/lru-cache/index.js
|
|
36048
|
-
var require_lru_cache2 = __commonJS({
|
|
36049
|
-
"../../node_modules/semver/node_modules/lru-cache/index.js"(exports2, module2) {
|
|
36050
|
-
"use strict";
|
|
36051
|
-
var Yallist = require_yallist2();
|
|
36052
|
-
var MAX = Symbol("max");
|
|
36053
|
-
var LENGTH = Symbol("length");
|
|
36054
|
-
var LENGTH_CALCULATOR = Symbol("lengthCalculator");
|
|
36055
|
-
var ALLOW_STALE = Symbol("allowStale");
|
|
36056
|
-
var MAX_AGE = Symbol("maxAge");
|
|
36057
|
-
var DISPOSE = Symbol("dispose");
|
|
36058
|
-
var NO_DISPOSE_ON_SET = Symbol("noDisposeOnSet");
|
|
36059
|
-
var LRU_LIST = Symbol("lruList");
|
|
36060
|
-
var CACHE = Symbol("cache");
|
|
36061
|
-
var UPDATE_AGE_ON_GET = Symbol("updateAgeOnGet");
|
|
36062
|
-
var naiveLength = () => 1;
|
|
35673
|
+
// ../../node_modules/semver/internal/lrucache.js
|
|
35674
|
+
var require_lrucache = __commonJS({
|
|
35675
|
+
"../../node_modules/semver/internal/lrucache.js"(exports2, module2) {
|
|
36063
35676
|
var LRUCache = class {
|
|
36064
|
-
constructor(
|
|
36065
|
-
|
|
36066
|
-
|
|
36067
|
-
if (!options)
|
|
36068
|
-
options = {};
|
|
36069
|
-
if (options.max && (typeof options.max !== "number" || options.max < 0))
|
|
36070
|
-
throw new TypeError("max must be a non-negative number");
|
|
36071
|
-
const max = this[MAX] = options.max || Infinity;
|
|
36072
|
-
const lc = options.length || naiveLength;
|
|
36073
|
-
this[LENGTH_CALCULATOR] = typeof lc !== "function" ? naiveLength : lc;
|
|
36074
|
-
this[ALLOW_STALE] = options.stale || false;
|
|
36075
|
-
if (options.maxAge && typeof options.maxAge !== "number")
|
|
36076
|
-
throw new TypeError("maxAge must be a number");
|
|
36077
|
-
this[MAX_AGE] = options.maxAge || 0;
|
|
36078
|
-
this[DISPOSE] = options.dispose;
|
|
36079
|
-
this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false;
|
|
36080
|
-
this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false;
|
|
36081
|
-
this.reset();
|
|
36082
|
-
}
|
|
36083
|
-
// resize the cache when the max changes.
|
|
36084
|
-
set max(mL) {
|
|
36085
|
-
if (typeof mL !== "number" || mL < 0)
|
|
36086
|
-
throw new TypeError("max must be a non-negative number");
|
|
36087
|
-
this[MAX] = mL || Infinity;
|
|
36088
|
-
trim(this);
|
|
36089
|
-
}
|
|
36090
|
-
get max() {
|
|
36091
|
-
return this[MAX];
|
|
36092
|
-
}
|
|
36093
|
-
set allowStale(allowStale) {
|
|
36094
|
-
this[ALLOW_STALE] = !!allowStale;
|
|
36095
|
-
}
|
|
36096
|
-
get allowStale() {
|
|
36097
|
-
return this[ALLOW_STALE];
|
|
36098
|
-
}
|
|
36099
|
-
set maxAge(mA) {
|
|
36100
|
-
if (typeof mA !== "number")
|
|
36101
|
-
throw new TypeError("maxAge must be a non-negative number");
|
|
36102
|
-
this[MAX_AGE] = mA;
|
|
36103
|
-
trim(this);
|
|
36104
|
-
}
|
|
36105
|
-
get maxAge() {
|
|
36106
|
-
return this[MAX_AGE];
|
|
36107
|
-
}
|
|
36108
|
-
// resize the cache when the lengthCalculator changes.
|
|
36109
|
-
set lengthCalculator(lC) {
|
|
36110
|
-
if (typeof lC !== "function")
|
|
36111
|
-
lC = naiveLength;
|
|
36112
|
-
if (lC !== this[LENGTH_CALCULATOR]) {
|
|
36113
|
-
this[LENGTH_CALCULATOR] = lC;
|
|
36114
|
-
this[LENGTH] = 0;
|
|
36115
|
-
this[LRU_LIST].forEach((hit) => {
|
|
36116
|
-
hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key);
|
|
36117
|
-
this[LENGTH] += hit.length;
|
|
36118
|
-
});
|
|
36119
|
-
}
|
|
36120
|
-
trim(this);
|
|
36121
|
-
}
|
|
36122
|
-
get lengthCalculator() {
|
|
36123
|
-
return this[LENGTH_CALCULATOR];
|
|
36124
|
-
}
|
|
36125
|
-
get length() {
|
|
36126
|
-
return this[LENGTH];
|
|
36127
|
-
}
|
|
36128
|
-
get itemCount() {
|
|
36129
|
-
return this[LRU_LIST].length;
|
|
36130
|
-
}
|
|
36131
|
-
rforEach(fn, thisp) {
|
|
36132
|
-
thisp = thisp || this;
|
|
36133
|
-
for (let walker = this[LRU_LIST].tail; walker !== null; ) {
|
|
36134
|
-
const prev = walker.prev;
|
|
36135
|
-
forEachStep(this, fn, walker, thisp);
|
|
36136
|
-
walker = prev;
|
|
36137
|
-
}
|
|
36138
|
-
}
|
|
36139
|
-
forEach(fn, thisp) {
|
|
36140
|
-
thisp = thisp || this;
|
|
36141
|
-
for (let walker = this[LRU_LIST].head; walker !== null; ) {
|
|
36142
|
-
const next = walker.next;
|
|
36143
|
-
forEachStep(this, fn, walker, thisp);
|
|
36144
|
-
walker = next;
|
|
36145
|
-
}
|
|
36146
|
-
}
|
|
36147
|
-
keys() {
|
|
36148
|
-
return this[LRU_LIST].toArray().map((k) => k.key);
|
|
36149
|
-
}
|
|
36150
|
-
values() {
|
|
36151
|
-
return this[LRU_LIST].toArray().map((k) => k.value);
|
|
36152
|
-
}
|
|
36153
|
-
reset() {
|
|
36154
|
-
if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) {
|
|
36155
|
-
this[LRU_LIST].forEach((hit) => this[DISPOSE](hit.key, hit.value));
|
|
36156
|
-
}
|
|
36157
|
-
this[CACHE] = /* @__PURE__ */ new Map();
|
|
36158
|
-
this[LRU_LIST] = new Yallist();
|
|
36159
|
-
this[LENGTH] = 0;
|
|
36160
|
-
}
|
|
36161
|
-
dump() {
|
|
36162
|
-
return this[LRU_LIST].map((hit) => isStale(this, hit) ? false : {
|
|
36163
|
-
k: hit.key,
|
|
36164
|
-
v: hit.value,
|
|
36165
|
-
e: hit.now + (hit.maxAge || 0)
|
|
36166
|
-
}).toArray().filter((h) => h);
|
|
36167
|
-
}
|
|
36168
|
-
dumpLru() {
|
|
36169
|
-
return this[LRU_LIST];
|
|
36170
|
-
}
|
|
36171
|
-
set(key, value, maxAge) {
|
|
36172
|
-
maxAge = maxAge || this[MAX_AGE];
|
|
36173
|
-
if (maxAge && typeof maxAge !== "number")
|
|
36174
|
-
throw new TypeError("maxAge must be a number");
|
|
36175
|
-
const now = maxAge ? Date.now() : 0;
|
|
36176
|
-
const len = this[LENGTH_CALCULATOR](value, key);
|
|
36177
|
-
if (this[CACHE].has(key)) {
|
|
36178
|
-
if (len > this[MAX]) {
|
|
36179
|
-
del(this, this[CACHE].get(key));
|
|
36180
|
-
return false;
|
|
36181
|
-
}
|
|
36182
|
-
const node = this[CACHE].get(key);
|
|
36183
|
-
const item = node.value;
|
|
36184
|
-
if (this[DISPOSE]) {
|
|
36185
|
-
if (!this[NO_DISPOSE_ON_SET])
|
|
36186
|
-
this[DISPOSE](key, item.value);
|
|
36187
|
-
}
|
|
36188
|
-
item.now = now;
|
|
36189
|
-
item.maxAge = maxAge;
|
|
36190
|
-
item.value = value;
|
|
36191
|
-
this[LENGTH] += len - item.length;
|
|
36192
|
-
item.length = len;
|
|
36193
|
-
this.get(key);
|
|
36194
|
-
trim(this);
|
|
36195
|
-
return true;
|
|
36196
|
-
}
|
|
36197
|
-
const hit = new Entry(key, value, len, now, maxAge);
|
|
36198
|
-
if (hit.length > this[MAX]) {
|
|
36199
|
-
if (this[DISPOSE])
|
|
36200
|
-
this[DISPOSE](key, value);
|
|
36201
|
-
return false;
|
|
36202
|
-
}
|
|
36203
|
-
this[LENGTH] += hit.length;
|
|
36204
|
-
this[LRU_LIST].unshift(hit);
|
|
36205
|
-
this[CACHE].set(key, this[LRU_LIST].head);
|
|
36206
|
-
trim(this);
|
|
36207
|
-
return true;
|
|
36208
|
-
}
|
|
36209
|
-
has(key) {
|
|
36210
|
-
if (!this[CACHE].has(key)) return false;
|
|
36211
|
-
const hit = this[CACHE].get(key).value;
|
|
36212
|
-
return !isStale(this, hit);
|
|
35677
|
+
constructor() {
|
|
35678
|
+
this.max = 1e3;
|
|
35679
|
+
this.map = /* @__PURE__ */ new Map();
|
|
36213
35680
|
}
|
|
36214
35681
|
get(key) {
|
|
36215
|
-
|
|
36216
|
-
|
|
36217
|
-
|
|
36218
|
-
|
|
36219
|
-
|
|
36220
|
-
|
|
36221
|
-
|
|
36222
|
-
if (!node)
|
|
36223
|
-
return null;
|
|
36224
|
-
del(this, node);
|
|
36225
|
-
return node.value;
|
|
36226
|
-
}
|
|
36227
|
-
del(key) {
|
|
36228
|
-
del(this, this[CACHE].get(key));
|
|
36229
|
-
}
|
|
36230
|
-
load(arr) {
|
|
36231
|
-
this.reset();
|
|
36232
|
-
const now = Date.now();
|
|
36233
|
-
for (let l = arr.length - 1; l >= 0; l--) {
|
|
36234
|
-
const hit = arr[l];
|
|
36235
|
-
const expiresAt = hit.e || 0;
|
|
36236
|
-
if (expiresAt === 0)
|
|
36237
|
-
this.set(hit.k, hit.v);
|
|
36238
|
-
else {
|
|
36239
|
-
const maxAge = expiresAt - now;
|
|
36240
|
-
if (maxAge > 0) {
|
|
36241
|
-
this.set(hit.k, hit.v, maxAge);
|
|
36242
|
-
}
|
|
36243
|
-
}
|
|
35682
|
+
const value = this.map.get(key);
|
|
35683
|
+
if (value === void 0) {
|
|
35684
|
+
return void 0;
|
|
35685
|
+
} else {
|
|
35686
|
+
this.map.delete(key);
|
|
35687
|
+
this.map.set(key, value);
|
|
35688
|
+
return value;
|
|
36244
35689
|
}
|
|
36245
35690
|
}
|
|
36246
|
-
|
|
36247
|
-
this
|
|
35691
|
+
delete(key) {
|
|
35692
|
+
return this.map.delete(key);
|
|
36248
35693
|
}
|
|
36249
|
-
|
|
36250
|
-
|
|
36251
|
-
|
|
36252
|
-
|
|
36253
|
-
|
|
36254
|
-
|
|
36255
|
-
del(self2, node);
|
|
36256
|
-
if (!self2[ALLOW_STALE])
|
|
36257
|
-
return void 0;
|
|
36258
|
-
} else {
|
|
36259
|
-
if (doUse) {
|
|
36260
|
-
if (self2[UPDATE_AGE_ON_GET])
|
|
36261
|
-
node.value.now = Date.now();
|
|
36262
|
-
self2[LRU_LIST].unshiftNode(node);
|
|
35694
|
+
set(key, value) {
|
|
35695
|
+
const deleted = this.delete(key);
|
|
35696
|
+
if (!deleted && value !== void 0) {
|
|
35697
|
+
if (this.map.size >= this.max) {
|
|
35698
|
+
const firstKey = this.map.keys().next().value;
|
|
35699
|
+
this.delete(firstKey);
|
|
36263
35700
|
}
|
|
35701
|
+
this.map.set(key, value);
|
|
36264
35702
|
}
|
|
36265
|
-
return
|
|
36266
|
-
}
|
|
36267
|
-
};
|
|
36268
|
-
var isStale = (self2, hit) => {
|
|
36269
|
-
if (!hit || !hit.maxAge && !self2[MAX_AGE])
|
|
36270
|
-
return false;
|
|
36271
|
-
const diff2 = Date.now() - hit.now;
|
|
36272
|
-
return hit.maxAge ? diff2 > hit.maxAge : self2[MAX_AGE] && diff2 > self2[MAX_AGE];
|
|
36273
|
-
};
|
|
36274
|
-
var trim = (self2) => {
|
|
36275
|
-
if (self2[LENGTH] > self2[MAX]) {
|
|
36276
|
-
for (let walker = self2[LRU_LIST].tail; self2[LENGTH] > self2[MAX] && walker !== null; ) {
|
|
36277
|
-
const prev = walker.prev;
|
|
36278
|
-
del(self2, walker);
|
|
36279
|
-
walker = prev;
|
|
36280
|
-
}
|
|
36281
|
-
}
|
|
36282
|
-
};
|
|
36283
|
-
var del = (self2, node) => {
|
|
36284
|
-
if (node) {
|
|
36285
|
-
const hit = node.value;
|
|
36286
|
-
if (self2[DISPOSE])
|
|
36287
|
-
self2[DISPOSE](hit.key, hit.value);
|
|
36288
|
-
self2[LENGTH] -= hit.length;
|
|
36289
|
-
self2[CACHE].delete(hit.key);
|
|
36290
|
-
self2[LRU_LIST].removeNode(node);
|
|
36291
|
-
}
|
|
36292
|
-
};
|
|
36293
|
-
var Entry = class {
|
|
36294
|
-
constructor(key, value, length, now, maxAge) {
|
|
36295
|
-
this.key = key;
|
|
36296
|
-
this.value = value;
|
|
36297
|
-
this.length = length;
|
|
36298
|
-
this.now = now;
|
|
36299
|
-
this.maxAge = maxAge || 0;
|
|
36300
|
-
}
|
|
36301
|
-
};
|
|
36302
|
-
var forEachStep = (self2, fn, node, thisp) => {
|
|
36303
|
-
let hit = node.value;
|
|
36304
|
-
if (isStale(self2, hit)) {
|
|
36305
|
-
del(self2, node);
|
|
36306
|
-
if (!self2[ALLOW_STALE])
|
|
36307
|
-
hit = void 0;
|
|
35703
|
+
return this;
|
|
36308
35704
|
}
|
|
36309
|
-
if (hit)
|
|
36310
|
-
fn.call(thisp, hit.value, hit.key, self2);
|
|
36311
35705
|
};
|
|
36312
35706
|
module2.exports = LRUCache;
|
|
36313
35707
|
}
|
|
@@ -36316,6 +35710,7 @@ var require_lru_cache2 = __commonJS({
|
|
|
36316
35710
|
// ../../node_modules/semver/classes/range.js
|
|
36317
35711
|
var require_range2 = __commonJS({
|
|
36318
35712
|
"../../node_modules/semver/classes/range.js"(exports2, module2) {
|
|
35713
|
+
var SPACE_CHARACTERS = /\s+/g;
|
|
36319
35714
|
var Range = class _Range {
|
|
36320
35715
|
constructor(range, options) {
|
|
36321
35716
|
options = parseOptions(options);
|
|
@@ -36329,13 +35724,13 @@ var require_range2 = __commonJS({
|
|
|
36329
35724
|
if (range instanceof Comparator) {
|
|
36330
35725
|
this.raw = range.value;
|
|
36331
35726
|
this.set = [[range]];
|
|
36332
|
-
this.
|
|
35727
|
+
this.formatted = void 0;
|
|
36333
35728
|
return this;
|
|
36334
35729
|
}
|
|
36335
35730
|
this.options = options;
|
|
36336
35731
|
this.loose = !!options.loose;
|
|
36337
35732
|
this.includePrerelease = !!options.includePrerelease;
|
|
36338
|
-
this.raw = range.trim().
|
|
35733
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
36339
35734
|
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
36340
35735
|
if (!this.set.length) {
|
|
36341
35736
|
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
@@ -36354,10 +35749,27 @@ var require_range2 = __commonJS({
|
|
|
36354
35749
|
}
|
|
36355
35750
|
}
|
|
36356
35751
|
}
|
|
36357
|
-
this.
|
|
35752
|
+
this.formatted = void 0;
|
|
35753
|
+
}
|
|
35754
|
+
get range() {
|
|
35755
|
+
if (this.formatted === void 0) {
|
|
35756
|
+
this.formatted = "";
|
|
35757
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
35758
|
+
if (i > 0) {
|
|
35759
|
+
this.formatted += "||";
|
|
35760
|
+
}
|
|
35761
|
+
const comps = this.set[i];
|
|
35762
|
+
for (let k = 0; k < comps.length; k++) {
|
|
35763
|
+
if (k > 0) {
|
|
35764
|
+
this.formatted += " ";
|
|
35765
|
+
}
|
|
35766
|
+
this.formatted += comps[k].toString().trim();
|
|
35767
|
+
}
|
|
35768
|
+
}
|
|
35769
|
+
}
|
|
35770
|
+
return this.formatted;
|
|
36358
35771
|
}
|
|
36359
35772
|
format() {
|
|
36360
|
-
this.range = this.set.map((comps) => comps.join(" ").trim()).join("||").trim();
|
|
36361
35773
|
return this.range;
|
|
36362
35774
|
}
|
|
36363
35775
|
toString() {
|
|
@@ -36438,8 +35850,8 @@ var require_range2 = __commonJS({
|
|
|
36438
35850
|
}
|
|
36439
35851
|
};
|
|
36440
35852
|
module2.exports = Range;
|
|
36441
|
-
var LRU =
|
|
36442
|
-
var cache = new LRU(
|
|
35853
|
+
var LRU = require_lrucache();
|
|
35854
|
+
var cache = new LRU();
|
|
36443
35855
|
var parseOptions = require_parse_options();
|
|
36444
35856
|
var Comparator = require_comparator();
|
|
36445
35857
|
var debug = require_debug();
|
|
@@ -36617,7 +36029,7 @@ var require_range2 = __commonJS({
|
|
|
36617
36029
|
debug("replaceGTE0", comp, options);
|
|
36618
36030
|
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
36619
36031
|
};
|
|
36620
|
-
var hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr
|
|
36032
|
+
var hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
36621
36033
|
if (isX(fM)) {
|
|
36622
36034
|
from = "";
|
|
36623
36035
|
} else if (isX(fm)) {
|
|
@@ -39679,9 +39091,9 @@ var require_path = __commonJS({
|
|
|
39679
39091
|
var IS_WINDOWS_PLATFORM = os.platform() === "win32";
|
|
39680
39092
|
var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
|
|
39681
39093
|
var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
|
|
39682
|
-
var WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([(){}]|^!|[!+@](?=\())/g;
|
|
39094
|
+
var WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g;
|
|
39683
39095
|
var DOS_DEVICE_PATH_RE = /^\\\\([.?])/;
|
|
39684
|
-
var WINDOWS_BACKSLASHES_RE = /\\(?![!()+@{}])/g;
|
|
39096
|
+
var WINDOWS_BACKSLASHES_RE = /\\(?![!()+@[\]{}])/g;
|
|
39685
39097
|
function unixify(filepath) {
|
|
39686
39098
|
return filepath.replace(/\\/g, "/");
|
|
39687
39099
|
}
|
|
@@ -42498,7 +41910,11 @@ var require_micromatch = __commonJS({
|
|
|
42498
41910
|
var braces = require_braces();
|
|
42499
41911
|
var picomatch = require_picomatch2();
|
|
42500
41912
|
var utils = require_utils5();
|
|
42501
|
-
var isEmptyString = (
|
|
41913
|
+
var isEmptyString = (v) => v === "" || v === "./";
|
|
41914
|
+
var hasBraces = (v) => {
|
|
41915
|
+
const index = v.indexOf("{");
|
|
41916
|
+
return index > -1 && v.indexOf("}", index) > -1;
|
|
41917
|
+
};
|
|
42502
41918
|
var micromatch = (list, patterns, options) => {
|
|
42503
41919
|
patterns = [].concat(patterns);
|
|
42504
41920
|
list = [].concat(list);
|
|
@@ -42633,7 +42049,7 @@ var require_micromatch = __commonJS({
|
|
|
42633
42049
|
};
|
|
42634
42050
|
micromatch.braces = (pattern, options) => {
|
|
42635
42051
|
if (typeof pattern !== "string") throw new TypeError("Expected a string");
|
|
42636
|
-
if (options && options.nobrace === true ||
|
|
42052
|
+
if (options && options.nobrace === true || !hasBraces(pattern)) {
|
|
42637
42053
|
return [pattern];
|
|
42638
42054
|
}
|
|
42639
42055
|
return braces(pattern, options);
|
|
@@ -42642,6 +42058,7 @@ var require_micromatch = __commonJS({
|
|
|
42642
42058
|
if (typeof pattern !== "string") throw new TypeError("Expected a string");
|
|
42643
42059
|
return micromatch.braces(pattern, { ...options, expand: true });
|
|
42644
42060
|
};
|
|
42061
|
+
micromatch.hasBraces = hasBraces;
|
|
42645
42062
|
module2.exports = micromatch;
|
|
42646
42063
|
}
|
|
42647
42064
|
});
|
|
@@ -42758,7 +42175,7 @@ var require_pattern = __commonJS({
|
|
|
42758
42175
|
}
|
|
42759
42176
|
exports2.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
|
|
42760
42177
|
function expandBraceExpansion(pattern) {
|
|
42761
|
-
const patterns = micromatch.braces(pattern, { expand: true, nodupes: true });
|
|
42178
|
+
const patterns = micromatch.braces(pattern, { expand: true, nodupes: true, keepEscaping: true });
|
|
42762
42179
|
patterns.sort((a, b) => a.length - b.length);
|
|
42763
42180
|
return patterns.filter((pattern2) => pattern2 !== "");
|
|
42764
42181
|
}
|
|
@@ -44816,6 +44233,7 @@ var require_settings4 = __commonJS({
|
|
|
44816
44233
|
if (this.stats) {
|
|
44817
44234
|
this.objectMode = true;
|
|
44818
44235
|
}
|
|
44236
|
+
this.ignore = [].concat(this.ignore);
|
|
44819
44237
|
}
|
|
44820
44238
|
_getValue(option, value) {
|
|
44821
44239
|
return option === void 0 ? value : option;
|
|
@@ -49206,9 +48624,9 @@ var require_build5 = __commonJS({
|
|
|
49206
48624
|
}
|
|
49207
48625
|
});
|
|
49208
48626
|
|
|
49209
|
-
// ../../node_modules/yargs
|
|
48627
|
+
// ../../node_modules/yargs-parser/build/index.cjs
|
|
49210
48628
|
var require_build6 = __commonJS({
|
|
49211
|
-
"../../node_modules/yargs
|
|
48629
|
+
"../../node_modules/yargs-parser/build/index.cjs"(exports2, module2) {
|
|
49212
48630
|
"use strict";
|
|
49213
48631
|
var util = require("util");
|
|
49214
48632
|
var path3 = require("path");
|
|
@@ -53123,7 +52541,7 @@ var upgrades = [
|
|
|
53123
52541
|
var package_default = {
|
|
53124
52542
|
name: "@carbon/upgrade",
|
|
53125
52543
|
description: "A tool for upgrading Carbon versions",
|
|
53126
|
-
version: "11.
|
|
52544
|
+
version: "11.17.0",
|
|
53127
52545
|
license: "Apache-2.0",
|
|
53128
52546
|
bin: {
|
|
53129
52547
|
"carbon-upgrade": "./bin/carbon-upgrade.js"
|
|
@@ -53181,7 +52599,7 @@ var package_default = {
|
|
|
53181
52599
|
},
|
|
53182
52600
|
dependencies: {
|
|
53183
52601
|
"@ibm/telemetry-js": "^1.5.0",
|
|
53184
|
-
jscodeshift: "^0.
|
|
52602
|
+
jscodeshift: "^17.0.0"
|
|
53185
52603
|
}
|
|
53186
52604
|
};
|
|
53187
52605
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/upgrade",
|
|
3
3
|
"description": "A tool for upgrading Carbon versions",
|
|
4
|
-
"version": "11.
|
|
4
|
+
"version": "11.17.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"bin": {
|
|
7
7
|
"carbon-upgrade": "./bin/carbon-upgrade.js"
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@ibm/telemetry-js": "^1.5.0",
|
|
62
|
-
"jscodeshift": "^0.
|
|
62
|
+
"jscodeshift": "^17.0.0"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "d706ffca254bad174fdfc88c05f620ba547cc369"
|
|
65
65
|
}
|
|
@@ -10,23 +10,23 @@ import { Search } from 'test';
|
|
|
10
10
|
|
|
11
11
|
function RendersIconDirectly() {
|
|
12
12
|
return (
|
|
13
|
-
<div>
|
|
13
|
+
(<div>
|
|
14
14
|
<Add size={32} />
|
|
15
15
|
<Bee size={24} />
|
|
16
16
|
<Caret size={20} />
|
|
17
17
|
<DownArrow />
|
|
18
|
-
</div>
|
|
18
|
+
</div>)
|
|
19
19
|
);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
function RendersIconWithProps(props) {
|
|
23
23
|
return (
|
|
24
|
-
<div>
|
|
24
|
+
(<div>
|
|
25
25
|
<Add size={32} aria-label="test" {...props} />
|
|
26
26
|
<Bee size={24} aria-label="test" {...props} />
|
|
27
27
|
<Caret size={20} aria-label="test" {...props} />
|
|
28
28
|
<DownArrow aria-label="test" {...props} />
|
|
29
|
-
</div>
|
|
29
|
+
</div>)
|
|
30
30
|
);
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -36,9 +36,9 @@ function AliasedIcon() {
|
|
|
36
36
|
|
|
37
37
|
function ExistingScope() {
|
|
38
38
|
return (
|
|
39
|
-
<div>
|
|
39
|
+
(<div>
|
|
40
40
|
<Search />
|
|
41
41
|
<SearchIcon size={24} />
|
|
42
|
-
</div>
|
|
42
|
+
</div>)
|
|
43
43
|
);
|
|
44
44
|
}
|
|
@@ -2,14 +2,11 @@ import { Add16, Bee24, Chevron24 as chevron } from '@carbon/icons-react';
|
|
|
2
2
|
|
|
3
3
|
const mapped = {
|
|
4
4
|
default: Add16,
|
|
5
|
-
// prettier-ignore
|
|
6
5
|
size: Bee24,
|
|
7
|
-
// prettier-ignore
|
|
8
6
|
lowercase: chevron,
|
|
9
7
|
};
|
|
10
8
|
|
|
11
9
|
function RenderIconProp() {
|
|
12
|
-
// prettier-ignore
|
|
13
10
|
return (
|
|
14
11
|
<div>
|
|
15
12
|
<DefaultSize renderIcon={Add16} />
|
|
@@ -2,9 +2,7 @@ import { Add, Bee, Chevron as chevron } from '@carbon/icons-react';
|
|
|
2
2
|
|
|
3
3
|
const mapped = {
|
|
4
4
|
default: Add,
|
|
5
|
-
// prettier-ignore
|
|
6
5
|
size: props => <Bee size={24} {...props} />,
|
|
7
|
-
// prettier-ignore
|
|
8
6
|
lowercase: props => React.createElement(chevron, {
|
|
9
7
|
size: 24,
|
|
10
8
|
...props
|
|
@@ -12,11 +10,10 @@ const mapped = {
|
|
|
12
10
|
};
|
|
13
11
|
|
|
14
12
|
function RenderIconProp() {
|
|
15
|
-
// prettier-ignore
|
|
16
13
|
return (
|
|
17
|
-
<div>
|
|
14
|
+
(<div>
|
|
18
15
|
<DefaultSize renderIcon={Add} />
|
|
19
16
|
<Size renderIcon={props => <Bee size={24} {...props} />} />
|
|
20
|
-
</div>
|
|
17
|
+
</div>)
|
|
21
18
|
);
|
|
22
19
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
function Accordion() {
|
|
2
2
|
return (
|
|
3
|
-
<div>
|
|
3
|
+
(<div>
|
|
4
4
|
<Accordion className="test" size="lg" />
|
|
5
5
|
<Accordion className="test" size="lg">
|
|
6
6
|
<AccordionItem>Test</AccordionItem>
|
|
7
7
|
</Accordion>
|
|
8
|
-
</div>
|
|
8
|
+
</div>)
|
|
9
9
|
);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
function Button() {
|
|
13
13
|
return (
|
|
14
|
-
<div>
|
|
14
|
+
(<div>
|
|
15
15
|
<Button className="test" size="sm" />
|
|
16
16
|
<Button className="test" size="md"></Button>
|
|
17
17
|
<Button className="test" size="lg"></Button>
|
|
18
18
|
<Button className="test" size="xl"></Button>
|
|
19
19
|
<Button className="test" size="2xl"></Button>
|
|
20
|
-
</div>
|
|
20
|
+
</div>)
|
|
21
21
|
);
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -27,11 +27,11 @@ function ComboBox() {
|
|
|
27
27
|
|
|
28
28
|
function ContentSwitcher() {
|
|
29
29
|
return (
|
|
30
|
-
<ContentSwitcher className="test" size="lg">
|
|
30
|
+
(<ContentSwitcher className="test" size="lg">
|
|
31
31
|
<Switch name="one" text="First section" />
|
|
32
32
|
<Switch name="two" text="Second section" />
|
|
33
33
|
<Switch name="three" text="Third section" />
|
|
34
|
-
</ContentSwitcher>
|
|
34
|
+
</ContentSwitcher>)
|
|
35
35
|
);
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -41,31 +41,31 @@ function Dropdown() {
|
|
|
41
41
|
|
|
42
42
|
function DataTable() {
|
|
43
43
|
return (
|
|
44
|
-
<div>
|
|
44
|
+
(<div>
|
|
45
45
|
<Table className="test" size="xs"></Table>
|
|
46
46
|
<Table className="test" size="sm"></Table>
|
|
47
47
|
<Table className="test" size="xl"></Table>
|
|
48
48
|
<DataTable className="test" size="xs"></DataTable>
|
|
49
49
|
<DataTable className="test" size="sm"></DataTable>
|
|
50
50
|
<DataTable className="test" size="xl"></DataTable>
|
|
51
|
-
</div>
|
|
51
|
+
</div>)
|
|
52
52
|
);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
function DatePicker() {
|
|
56
56
|
return (
|
|
57
|
-
<DatePicker datePickerType="single">
|
|
57
|
+
(<DatePicker datePickerType="single">
|
|
58
58
|
<DatePickerInput
|
|
59
59
|
size="lg"
|
|
60
60
|
id="datepicker"
|
|
61
61
|
labelText="Datepicker Test"></DatePickerInput>
|
|
62
|
-
</DatePicker>
|
|
62
|
+
</DatePicker>)
|
|
63
63
|
);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
function FileUploader() {
|
|
67
67
|
return (
|
|
68
|
-
<div>
|
|
68
|
+
(<div>
|
|
69
69
|
<FileUploader size="sm"></FileUploader>
|
|
70
70
|
<FileUploader size="md"></FileUploader>
|
|
71
71
|
<FileUploader size="lg"></FileUploader>
|
|
@@ -78,7 +78,7 @@ function FileUploader() {
|
|
|
78
78
|
<FileUploaderDropContainer size="sm"></FileUploaderDropContainer>
|
|
79
79
|
<FileUploaderDropContainer size="md"></FileUploaderDropContainer>
|
|
80
80
|
<FileUploaderDropContainer size="lg"></FileUploaderDropContainer>
|
|
81
|
-
</div>
|
|
81
|
+
</div>)
|
|
82
82
|
);
|
|
83
83
|
}
|
|
84
84
|
|
|
@@ -88,7 +88,7 @@ function Link() {
|
|
|
88
88
|
|
|
89
89
|
function MultiSelect() {
|
|
90
90
|
return (
|
|
91
|
-
<div>
|
|
91
|
+
(<div>
|
|
92
92
|
<MultiSelect
|
|
93
93
|
size="lg"
|
|
94
94
|
items={items}
|
|
@@ -99,7 +99,7 @@ function MultiSelect() {
|
|
|
99
99
|
items={items}
|
|
100
100
|
itemToString={(item) => (item ? item.text : '')}
|
|
101
101
|
/>
|
|
102
|
-
</div>
|
|
102
|
+
</div>)
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
105
|
|
|
@@ -113,28 +113,28 @@ function OverflowMenu() {
|
|
|
113
113
|
|
|
114
114
|
function Search() {
|
|
115
115
|
return (
|
|
116
|
-
<div>
|
|
116
|
+
(<div>
|
|
117
117
|
<Search className="test" size="md" />
|
|
118
118
|
<Search className="test" size="lg" />
|
|
119
|
-
</div>
|
|
119
|
+
</div>)
|
|
120
120
|
);
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
function Select() {
|
|
124
124
|
return (
|
|
125
|
-
<div>
|
|
125
|
+
(<div>
|
|
126
126
|
<Select className="test" size="md" />
|
|
127
127
|
<Select className="test" size="lg" />
|
|
128
|
-
</div>
|
|
128
|
+
</div>)
|
|
129
129
|
);
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
function TextInput() {
|
|
133
133
|
return (
|
|
134
|
-
<div>
|
|
134
|
+
(<div>
|
|
135
135
|
<TextInput size="md" id="textinput1" labelText="lg -> md"></TextInput>
|
|
136
136
|
<TextInput size="lg" id="textinput1" labelText="xl -> lg"></TextInput>
|
|
137
|
-
</div>
|
|
137
|
+
</div>)
|
|
138
138
|
);
|
|
139
139
|
}
|
|
140
140
|
|