@carbon/upgrade 11.39.0 → 11.40.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/cli.js +279 -9
- package/package.json +2 -2
package/cli.js
CHANGED
|
@@ -4910,8 +4910,8 @@ var require_color_convert = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
4910
4910
|
module.exports = convert;
|
|
4911
4911
|
}));
|
|
4912
4912
|
//#endregion
|
|
4913
|
-
//#region ../../node_modules/ansi-styles/index.js
|
|
4914
|
-
var require_ansi_styles$
|
|
4913
|
+
//#region ../../node_modules/@inquirer/core/node_modules/ansi-styles/index.js
|
|
4914
|
+
var require_ansi_styles$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4915
4915
|
const wrapAnsi16 = (fn, offset) => (...args) => {
|
|
4916
4916
|
return `\u001B[${fn(...args) + offset}m`;
|
|
4917
4917
|
};
|
|
@@ -5049,7 +5049,7 @@ var require_ansi_styles$1 = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
5049
5049
|
var require_wrap_ansi$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5050
5050
|
const stringWidth = require_string_width();
|
|
5051
5051
|
const stripAnsi = require_strip_ansi();
|
|
5052
|
-
const ansiStyles = require_ansi_styles$
|
|
5052
|
+
const ansiStyles = require_ansi_styles$3();
|
|
5053
5053
|
const ESCAPES = new Set(["\x1B", ""]);
|
|
5054
5054
|
const END_CODE = 39;
|
|
5055
5055
|
const wrapAnsi = (code) => `${ESCAPES.values().next().value}[${code}m`;
|
|
@@ -40767,6 +40767,141 @@ var require_build$7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
40767
40767
|
})();
|
|
40768
40768
|
}));
|
|
40769
40769
|
//#endregion
|
|
40770
|
+
//#region ../../node_modules/jest-diff/node_modules/ansi-styles/index.js
|
|
40771
|
+
var require_ansi_styles$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
40772
|
+
const wrapAnsi16 = (fn, offset) => (...args) => {
|
|
40773
|
+
return `\u001B[${fn(...args) + offset}m`;
|
|
40774
|
+
};
|
|
40775
|
+
const wrapAnsi256 = (fn, offset) => (...args) => {
|
|
40776
|
+
const code = fn(...args);
|
|
40777
|
+
return `\u001B[${38 + offset};5;${code}m`;
|
|
40778
|
+
};
|
|
40779
|
+
const wrapAnsi16m = (fn, offset) => (...args) => {
|
|
40780
|
+
const rgb = fn(...args);
|
|
40781
|
+
return `\u001B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
|
|
40782
|
+
};
|
|
40783
|
+
const ansi2ansi = (n) => n;
|
|
40784
|
+
const rgb2rgb = (r, g, b) => [
|
|
40785
|
+
r,
|
|
40786
|
+
g,
|
|
40787
|
+
b
|
|
40788
|
+
];
|
|
40789
|
+
const setLazyProperty = (object, property, get) => {
|
|
40790
|
+
Object.defineProperty(object, property, {
|
|
40791
|
+
get: () => {
|
|
40792
|
+
const value = get();
|
|
40793
|
+
Object.defineProperty(object, property, {
|
|
40794
|
+
value,
|
|
40795
|
+
enumerable: true,
|
|
40796
|
+
configurable: true
|
|
40797
|
+
});
|
|
40798
|
+
return value;
|
|
40799
|
+
},
|
|
40800
|
+
enumerable: true,
|
|
40801
|
+
configurable: true
|
|
40802
|
+
});
|
|
40803
|
+
};
|
|
40804
|
+
/** @type {typeof import('color-convert')} */
|
|
40805
|
+
let colorConvert;
|
|
40806
|
+
const makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
|
|
40807
|
+
if (colorConvert === void 0) colorConvert = require_color_convert();
|
|
40808
|
+
const offset = isBackground ? 10 : 0;
|
|
40809
|
+
const styles = {};
|
|
40810
|
+
for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
|
|
40811
|
+
const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
|
|
40812
|
+
if (sourceSpace === targetSpace) styles[name] = wrap(identity, offset);
|
|
40813
|
+
else if (typeof suite === "object") styles[name] = wrap(suite[targetSpace], offset);
|
|
40814
|
+
}
|
|
40815
|
+
return styles;
|
|
40816
|
+
};
|
|
40817
|
+
function assembleStyles() {
|
|
40818
|
+
const codes = /* @__PURE__ */ new Map();
|
|
40819
|
+
const styles = {
|
|
40820
|
+
modifier: {
|
|
40821
|
+
reset: [0, 0],
|
|
40822
|
+
bold: [1, 22],
|
|
40823
|
+
dim: [2, 22],
|
|
40824
|
+
italic: [3, 23],
|
|
40825
|
+
underline: [4, 24],
|
|
40826
|
+
inverse: [7, 27],
|
|
40827
|
+
hidden: [8, 28],
|
|
40828
|
+
strikethrough: [9, 29]
|
|
40829
|
+
},
|
|
40830
|
+
color: {
|
|
40831
|
+
black: [30, 39],
|
|
40832
|
+
red: [31, 39],
|
|
40833
|
+
green: [32, 39],
|
|
40834
|
+
yellow: [33, 39],
|
|
40835
|
+
blue: [34, 39],
|
|
40836
|
+
magenta: [35, 39],
|
|
40837
|
+
cyan: [36, 39],
|
|
40838
|
+
white: [37, 39],
|
|
40839
|
+
blackBright: [90, 39],
|
|
40840
|
+
redBright: [91, 39],
|
|
40841
|
+
greenBright: [92, 39],
|
|
40842
|
+
yellowBright: [93, 39],
|
|
40843
|
+
blueBright: [94, 39],
|
|
40844
|
+
magentaBright: [95, 39],
|
|
40845
|
+
cyanBright: [96, 39],
|
|
40846
|
+
whiteBright: [97, 39]
|
|
40847
|
+
},
|
|
40848
|
+
bgColor: {
|
|
40849
|
+
bgBlack: [40, 49],
|
|
40850
|
+
bgRed: [41, 49],
|
|
40851
|
+
bgGreen: [42, 49],
|
|
40852
|
+
bgYellow: [43, 49],
|
|
40853
|
+
bgBlue: [44, 49],
|
|
40854
|
+
bgMagenta: [45, 49],
|
|
40855
|
+
bgCyan: [46, 49],
|
|
40856
|
+
bgWhite: [47, 49],
|
|
40857
|
+
bgBlackBright: [100, 49],
|
|
40858
|
+
bgRedBright: [101, 49],
|
|
40859
|
+
bgGreenBright: [102, 49],
|
|
40860
|
+
bgYellowBright: [103, 49],
|
|
40861
|
+
bgBlueBright: [104, 49],
|
|
40862
|
+
bgMagentaBright: [105, 49],
|
|
40863
|
+
bgCyanBright: [106, 49],
|
|
40864
|
+
bgWhiteBright: [107, 49]
|
|
40865
|
+
}
|
|
40866
|
+
};
|
|
40867
|
+
styles.color.gray = styles.color.blackBright;
|
|
40868
|
+
styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
|
|
40869
|
+
styles.color.grey = styles.color.blackBright;
|
|
40870
|
+
styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
|
|
40871
|
+
for (const [groupName, group] of Object.entries(styles)) {
|
|
40872
|
+
for (const [styleName, style] of Object.entries(group)) {
|
|
40873
|
+
styles[styleName] = {
|
|
40874
|
+
open: `\u001B[${style[0]}m`,
|
|
40875
|
+
close: `\u001B[${style[1]}m`
|
|
40876
|
+
};
|
|
40877
|
+
group[styleName] = styles[styleName];
|
|
40878
|
+
codes.set(style[0], style[1]);
|
|
40879
|
+
}
|
|
40880
|
+
Object.defineProperty(styles, groupName, {
|
|
40881
|
+
value: group,
|
|
40882
|
+
enumerable: false
|
|
40883
|
+
});
|
|
40884
|
+
}
|
|
40885
|
+
Object.defineProperty(styles, "codes", {
|
|
40886
|
+
value: codes,
|
|
40887
|
+
enumerable: false
|
|
40888
|
+
});
|
|
40889
|
+
styles.color.close = "\x1B[39m";
|
|
40890
|
+
styles.bgColor.close = "\x1B[49m";
|
|
40891
|
+
setLazyProperty(styles.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
|
|
40892
|
+
setLazyProperty(styles.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
|
|
40893
|
+
setLazyProperty(styles.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
|
|
40894
|
+
setLazyProperty(styles.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
|
|
40895
|
+
setLazyProperty(styles.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
|
|
40896
|
+
setLazyProperty(styles.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
|
|
40897
|
+
return styles;
|
|
40898
|
+
}
|
|
40899
|
+
Object.defineProperty(module, "exports", {
|
|
40900
|
+
enumerable: true,
|
|
40901
|
+
get: assembleStyles
|
|
40902
|
+
});
|
|
40903
|
+
}));
|
|
40904
|
+
//#endregion
|
|
40770
40905
|
//#region ../../node_modules/has-flag/index.js
|
|
40771
40906
|
var require_has_flag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
40772
40907
|
module.exports = (flag, argv = process.argv) => {
|
|
@@ -40971,7 +41106,7 @@ var require_templates = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
40971
41106
|
//#endregion
|
|
40972
41107
|
//#region ../../node_modules/jest-diff/node_modules/chalk/source/index.js
|
|
40973
41108
|
var require_source = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
40974
|
-
const ansiStyles = require_ansi_styles$
|
|
41109
|
+
const ansiStyles = require_ansi_styles$2();
|
|
40975
41110
|
const { stdout: stdoutColor, stderr: stderrColor } = require_supports_color();
|
|
40976
41111
|
const { stringReplaceAll, stringEncaseCRLFWithFirstIndex } = require_util();
|
|
40977
41112
|
const { isArray } = Array;
|
|
@@ -41354,7 +41489,7 @@ var require_react_is = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
41354
41489
|
}));
|
|
41355
41490
|
//#endregion
|
|
41356
41491
|
//#region ../../node_modules/jest-diff/node_modules/pretty-format/node_modules/ansi-styles/index.js
|
|
41357
|
-
var require_ansi_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
41492
|
+
var require_ansi_styles$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
41358
41493
|
const ANSI_BACKGROUND_OFFSET = 10;
|
|
41359
41494
|
const wrapAnsi256 = (offset = 0) => (code) => `\u001B[${38 + offset};5;${code}m`;
|
|
41360
41495
|
const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`;
|
|
@@ -41992,7 +42127,7 @@ var require_build$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
41992
42127
|
exports$20["default"] = exports$20.DEFAULT_OPTIONS = void 0;
|
|
41993
42128
|
exports$20.format = format;
|
|
41994
42129
|
exports$20.plugins = void 0;
|
|
41995
|
-
var _ansiStyles = _interopRequireDefault(require_ansi_styles());
|
|
42130
|
+
var _ansiStyles = _interopRequireDefault(require_ansi_styles$1());
|
|
41996
42131
|
var _collections = __webpack_require__("./src/collections.ts");
|
|
41997
42132
|
var _AsymmetricMatcher = _interopRequireDefault(__webpack_require__("./src/plugins/AsymmetricMatcher.ts"));
|
|
41998
42133
|
var _DOMCollection = _interopRequireDefault(__webpack_require__("./src/plugins/DOMCollection.ts"));
|
|
@@ -44658,7 +44793,7 @@ const upgrades = [
|
|
|
44658
44793
|
//#endregion
|
|
44659
44794
|
//#region package.json
|
|
44660
44795
|
var name = "@carbon/upgrade";
|
|
44661
|
-
var version = "11.
|
|
44796
|
+
var version = "11.40.0";
|
|
44662
44797
|
//#endregion
|
|
44663
44798
|
//#region ../../node_modules/y18n/build/index.cjs
|
|
44664
44799
|
var require_build$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -45575,11 +45710,146 @@ var require_build$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
45575
45710
|
module.exports = yargsParser;
|
|
45576
45711
|
}));
|
|
45577
45712
|
//#endregion
|
|
45578
|
-
//#region ../../node_modules/
|
|
45713
|
+
//#region ../../node_modules/wrap-ansi/node_modules/ansi-styles/index.js
|
|
45714
|
+
var require_ansi_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45715
|
+
const wrapAnsi16 = (fn, offset) => (...args) => {
|
|
45716
|
+
return `\u001B[${fn(...args) + offset}m`;
|
|
45717
|
+
};
|
|
45718
|
+
const wrapAnsi256 = (fn, offset) => (...args) => {
|
|
45719
|
+
const code = fn(...args);
|
|
45720
|
+
return `\u001B[${38 + offset};5;${code}m`;
|
|
45721
|
+
};
|
|
45722
|
+
const wrapAnsi16m = (fn, offset) => (...args) => {
|
|
45723
|
+
const rgb = fn(...args);
|
|
45724
|
+
return `\u001B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
|
|
45725
|
+
};
|
|
45726
|
+
const ansi2ansi = (n) => n;
|
|
45727
|
+
const rgb2rgb = (r, g, b) => [
|
|
45728
|
+
r,
|
|
45729
|
+
g,
|
|
45730
|
+
b
|
|
45731
|
+
];
|
|
45732
|
+
const setLazyProperty = (object, property, get) => {
|
|
45733
|
+
Object.defineProperty(object, property, {
|
|
45734
|
+
get: () => {
|
|
45735
|
+
const value = get();
|
|
45736
|
+
Object.defineProperty(object, property, {
|
|
45737
|
+
value,
|
|
45738
|
+
enumerable: true,
|
|
45739
|
+
configurable: true
|
|
45740
|
+
});
|
|
45741
|
+
return value;
|
|
45742
|
+
},
|
|
45743
|
+
enumerable: true,
|
|
45744
|
+
configurable: true
|
|
45745
|
+
});
|
|
45746
|
+
};
|
|
45747
|
+
/** @type {typeof import('color-convert')} */
|
|
45748
|
+
let colorConvert;
|
|
45749
|
+
const makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
|
|
45750
|
+
if (colorConvert === void 0) colorConvert = require_color_convert();
|
|
45751
|
+
const offset = isBackground ? 10 : 0;
|
|
45752
|
+
const styles = {};
|
|
45753
|
+
for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
|
|
45754
|
+
const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
|
|
45755
|
+
if (sourceSpace === targetSpace) styles[name] = wrap(identity, offset);
|
|
45756
|
+
else if (typeof suite === "object") styles[name] = wrap(suite[targetSpace], offset);
|
|
45757
|
+
}
|
|
45758
|
+
return styles;
|
|
45759
|
+
};
|
|
45760
|
+
function assembleStyles() {
|
|
45761
|
+
const codes = /* @__PURE__ */ new Map();
|
|
45762
|
+
const styles = {
|
|
45763
|
+
modifier: {
|
|
45764
|
+
reset: [0, 0],
|
|
45765
|
+
bold: [1, 22],
|
|
45766
|
+
dim: [2, 22],
|
|
45767
|
+
italic: [3, 23],
|
|
45768
|
+
underline: [4, 24],
|
|
45769
|
+
inverse: [7, 27],
|
|
45770
|
+
hidden: [8, 28],
|
|
45771
|
+
strikethrough: [9, 29]
|
|
45772
|
+
},
|
|
45773
|
+
color: {
|
|
45774
|
+
black: [30, 39],
|
|
45775
|
+
red: [31, 39],
|
|
45776
|
+
green: [32, 39],
|
|
45777
|
+
yellow: [33, 39],
|
|
45778
|
+
blue: [34, 39],
|
|
45779
|
+
magenta: [35, 39],
|
|
45780
|
+
cyan: [36, 39],
|
|
45781
|
+
white: [37, 39],
|
|
45782
|
+
blackBright: [90, 39],
|
|
45783
|
+
redBright: [91, 39],
|
|
45784
|
+
greenBright: [92, 39],
|
|
45785
|
+
yellowBright: [93, 39],
|
|
45786
|
+
blueBright: [94, 39],
|
|
45787
|
+
magentaBright: [95, 39],
|
|
45788
|
+
cyanBright: [96, 39],
|
|
45789
|
+
whiteBright: [97, 39]
|
|
45790
|
+
},
|
|
45791
|
+
bgColor: {
|
|
45792
|
+
bgBlack: [40, 49],
|
|
45793
|
+
bgRed: [41, 49],
|
|
45794
|
+
bgGreen: [42, 49],
|
|
45795
|
+
bgYellow: [43, 49],
|
|
45796
|
+
bgBlue: [44, 49],
|
|
45797
|
+
bgMagenta: [45, 49],
|
|
45798
|
+
bgCyan: [46, 49],
|
|
45799
|
+
bgWhite: [47, 49],
|
|
45800
|
+
bgBlackBright: [100, 49],
|
|
45801
|
+
bgRedBright: [101, 49],
|
|
45802
|
+
bgGreenBright: [102, 49],
|
|
45803
|
+
bgYellowBright: [103, 49],
|
|
45804
|
+
bgBlueBright: [104, 49],
|
|
45805
|
+
bgMagentaBright: [105, 49],
|
|
45806
|
+
bgCyanBright: [106, 49],
|
|
45807
|
+
bgWhiteBright: [107, 49]
|
|
45808
|
+
}
|
|
45809
|
+
};
|
|
45810
|
+
styles.color.gray = styles.color.blackBright;
|
|
45811
|
+
styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
|
|
45812
|
+
styles.color.grey = styles.color.blackBright;
|
|
45813
|
+
styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
|
|
45814
|
+
for (const [groupName, group] of Object.entries(styles)) {
|
|
45815
|
+
for (const [styleName, style] of Object.entries(group)) {
|
|
45816
|
+
styles[styleName] = {
|
|
45817
|
+
open: `\u001B[${style[0]}m`,
|
|
45818
|
+
close: `\u001B[${style[1]}m`
|
|
45819
|
+
};
|
|
45820
|
+
group[styleName] = styles[styleName];
|
|
45821
|
+
codes.set(style[0], style[1]);
|
|
45822
|
+
}
|
|
45823
|
+
Object.defineProperty(styles, groupName, {
|
|
45824
|
+
value: group,
|
|
45825
|
+
enumerable: false
|
|
45826
|
+
});
|
|
45827
|
+
}
|
|
45828
|
+
Object.defineProperty(styles, "codes", {
|
|
45829
|
+
value: codes,
|
|
45830
|
+
enumerable: false
|
|
45831
|
+
});
|
|
45832
|
+
styles.color.close = "\x1B[39m";
|
|
45833
|
+
styles.bgColor.close = "\x1B[49m";
|
|
45834
|
+
setLazyProperty(styles.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
|
|
45835
|
+
setLazyProperty(styles.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
|
|
45836
|
+
setLazyProperty(styles.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
|
|
45837
|
+
setLazyProperty(styles.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
|
|
45838
|
+
setLazyProperty(styles.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
|
|
45839
|
+
setLazyProperty(styles.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
|
|
45840
|
+
return styles;
|
|
45841
|
+
}
|
|
45842
|
+
Object.defineProperty(module, "exports", {
|
|
45843
|
+
enumerable: true,
|
|
45844
|
+
get: assembleStyles
|
|
45845
|
+
});
|
|
45846
|
+
}));
|
|
45847
|
+
//#endregion
|
|
45848
|
+
//#region ../../node_modules/wrap-ansi/index.js
|
|
45579
45849
|
var require_wrap_ansi = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45580
45850
|
const stringWidth = require_string_width();
|
|
45581
45851
|
const stripAnsi = require_strip_ansi();
|
|
45582
|
-
const ansiStyles = require_ansi_styles
|
|
45852
|
+
const ansiStyles = require_ansi_styles();
|
|
45583
45853
|
const ESCAPES = new Set(["\x1B", ""]);
|
|
45584
45854
|
const END_CODE = 39;
|
|
45585
45855
|
const ANSI_ESCAPE_BELL = "\x07";
|
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.40.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"bin": {
|
|
7
7
|
"carbon-upgrade": "./bin/carbon-upgrade.js"
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"@ibm/telemetry-js": "^1.5.0",
|
|
61
61
|
"jscodeshift": "^17.0.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "5bb41d341768785b898851fde30731cb31b981c2"
|
|
64
64
|
}
|