@carbon/upgrade 11.16.0-rc.0 → 11.16.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.
Files changed (2) hide show
  1. package/cli.js +65 -653
  2. package/package.json +2 -2
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("COERCE", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:$|[^\\d])`);
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("prerelease compare", i, a, b);
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 = re[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)) {
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
- re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
35655
+ coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
35652
35656
  }
35653
- re[t.COERCERTL].lastIndex = -1;
35657
+ coerceRtlRegex.lastIndex = -1;
35654
35658
  }
35655
35659
  if (match === null) {
35656
35660
  return null;
35657
35661
  }
35658
- return parse(`${match[2]}.${match[3] || "0"}.${match[4] || "0"}`, options);
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/yallist/iterator.js
35665
- var require_iterator2 = __commonJS({
35666
- "../../node_modules/yallist/iterator.js"(exports2, module2) {
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(options) {
36065
- if (typeof options === "number")
36066
- options = { max: options };
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
- return get(this, key, true);
36216
- }
36217
- peek(key) {
36218
- return get(this, key, false);
36219
- }
36220
- pop() {
36221
- const node = this[LRU_LIST].tail;
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
- prune() {
36247
- this[CACHE].forEach((value, key) => get(this, key, false));
35691
+ delete(key) {
35692
+ return this.map.delete(key);
36248
35693
  }
36249
- };
36250
- var get = (self2, key, doUse) => {
36251
- const node = self2[CACHE].get(key);
36252
- if (node) {
36253
- const hit = node.value;
36254
- if (isStale(self2, hit)) {
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 hit.value;
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.format();
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().split(/\s+/).join(" ");
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.format();
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 = require_lru_cache2();
36442
- var cache = new LRU({ max: 1e3 });
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, tb) => {
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)) {
@@ -53123,7 +52535,7 @@ var upgrades = [
53123
52535
  var package_default = {
53124
52536
  name: "@carbon/upgrade",
53125
52537
  description: "A tool for upgrading Carbon versions",
53126
- version: "11.16.0-rc.0",
52538
+ version: "11.16.0",
53127
52539
  license: "Apache-2.0",
53128
52540
  bin: {
53129
52541
  "carbon-upgrade": "./bin/carbon-upgrade.js"
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.16.0-rc.0",
4
+ "version": "11.16.0",
5
5
  "license": "Apache-2.0",
6
6
  "bin": {
7
7
  "carbon-upgrade": "./bin/carbon-upgrade.js"
@@ -61,5 +61,5 @@
61
61
  "@ibm/telemetry-js": "^1.5.0",
62
62
  "jscodeshift": "^0.13.1"
63
63
  },
64
- "gitHead": "5e14bf5949724bee568601e514b5ce18e50d4525"
64
+ "gitHead": "2e82ab9625d65b607a7510b70d2cb4bacf209378"
65
65
  }