@carbon/upgrade 11.6.0 → 11.7.0-rc.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/bin/carbon-upgrade.js +1 -1
- package/cli.js +126 -62
- package/package.json +2 -2
- package/transforms/__tests__/icons-react-size-prop.js +1 -1
- package/transforms/__tests__/size-prop-update-test.js +1 -1
- package/transforms/__tests__/small-to-size-test.js +1 -1
- package/transforms/__tests__/sort-prop-types-test.js +1 -1
- package/transforms/__tests__/update-carbon-components-react-import-to-scoped.js +1 -1
- package/transforms/icons-react-size-prop.js +1 -1
- package/transforms/size-prop-update.js +1 -1
- package/transforms/small-to-size-prop.js +1 -1
- package/transforms/sort-prop-types.js +1 -1
- package/transforms/update-carbon-components-react-import-to-scoped.js +1 -1
package/bin/carbon-upgrade.js
CHANGED
package/cli.js
CHANGED
|
@@ -43892,20 +43892,25 @@ var require_async2 = __commonJS({
|
|
|
43892
43892
|
"../../node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) {
|
|
43893
43893
|
"use strict";
|
|
43894
43894
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43895
|
+
exports.read = void 0;
|
|
43895
43896
|
function read(path3, settings, callback) {
|
|
43896
43897
|
settings.fs.lstat(path3, (lstatError, lstat) => {
|
|
43897
43898
|
if (lstatError !== null) {
|
|
43898
|
-
|
|
43899
|
+
callFailureCallback(callback, lstatError);
|
|
43900
|
+
return;
|
|
43899
43901
|
}
|
|
43900
43902
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
|
|
43901
|
-
|
|
43903
|
+
callSuccessCallback(callback, lstat);
|
|
43904
|
+
return;
|
|
43902
43905
|
}
|
|
43903
43906
|
settings.fs.stat(path3, (statError, stat) => {
|
|
43904
43907
|
if (statError !== null) {
|
|
43905
43908
|
if (settings.throwErrorOnBrokenSymbolicLink) {
|
|
43906
|
-
|
|
43909
|
+
callFailureCallback(callback, statError);
|
|
43910
|
+
return;
|
|
43907
43911
|
}
|
|
43908
|
-
|
|
43912
|
+
callSuccessCallback(callback, lstat);
|
|
43913
|
+
return;
|
|
43909
43914
|
}
|
|
43910
43915
|
if (settings.markSymbolicLink) {
|
|
43911
43916
|
stat.isSymbolicLink = () => true;
|
|
@@ -43929,6 +43934,7 @@ var require_sync = __commonJS({
|
|
|
43929
43934
|
"../../node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports) {
|
|
43930
43935
|
"use strict";
|
|
43931
43936
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43937
|
+
exports.read = void 0;
|
|
43932
43938
|
function read(path3, settings) {
|
|
43933
43939
|
const lstat = settings.fs.lstatSync(path3);
|
|
43934
43940
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
|
|
@@ -43956,6 +43962,7 @@ var require_fs3 = __commonJS({
|
|
|
43956
43962
|
"../../node_modules/@nodelib/fs.stat/out/adapters/fs.js"(exports) {
|
|
43957
43963
|
"use strict";
|
|
43958
43964
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43965
|
+
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
43959
43966
|
var fs2 = require("fs");
|
|
43960
43967
|
exports.FILE_SYSTEM_ADAPTER = {
|
|
43961
43968
|
lstat: fs2.lstat,
|
|
@@ -43988,7 +43995,7 @@ var require_settings = __commonJS({
|
|
|
43988
43995
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
43989
43996
|
}
|
|
43990
43997
|
_getValue(option, value) {
|
|
43991
|
-
return option
|
|
43998
|
+
return option !== null && option !== void 0 ? option : value;
|
|
43992
43999
|
}
|
|
43993
44000
|
};
|
|
43994
44001
|
exports.default = Settings;
|
|
@@ -44000,13 +44007,15 @@ var require_out = __commonJS({
|
|
|
44000
44007
|
"../../node_modules/@nodelib/fs.stat/out/index.js"(exports) {
|
|
44001
44008
|
"use strict";
|
|
44002
44009
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44010
|
+
exports.statSync = exports.stat = exports.Settings = void 0;
|
|
44003
44011
|
var async = require_async2();
|
|
44004
44012
|
var sync = require_sync();
|
|
44005
44013
|
var settings_1 = require_settings();
|
|
44006
44014
|
exports.Settings = settings_1.default;
|
|
44007
44015
|
function stat(path3, optionsOrSettingsOrCallback, callback) {
|
|
44008
44016
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
44009
|
-
|
|
44017
|
+
async.read(path3, getSettings(), optionsOrSettingsOrCallback);
|
|
44018
|
+
return;
|
|
44010
44019
|
}
|
|
44011
44020
|
async.read(path3, getSettings(optionsOrSettingsOrCallback), callback);
|
|
44012
44021
|
}
|
|
@@ -44082,9 +44091,13 @@ var require_constants4 = __commonJS({
|
|
|
44082
44091
|
"../../node_modules/@nodelib/fs.scandir/out/constants.js"(exports) {
|
|
44083
44092
|
"use strict";
|
|
44084
44093
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44094
|
+
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
|
|
44085
44095
|
var NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
|
|
44086
|
-
|
|
44087
|
-
|
|
44096
|
+
if (NODE_PROCESS_VERSION_PARTS[0] === void 0 || NODE_PROCESS_VERSION_PARTS[1] === void 0) {
|
|
44097
|
+
throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);
|
|
44098
|
+
}
|
|
44099
|
+
var MAJOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[0], 10);
|
|
44100
|
+
var MINOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[1], 10);
|
|
44088
44101
|
var SUPPORTED_MAJOR_VERSION = 10;
|
|
44089
44102
|
var SUPPORTED_MINOR_VERSION = 10;
|
|
44090
44103
|
var IS_MATCHED_BY_MAJOR = MAJOR_VERSION > SUPPORTED_MAJOR_VERSION;
|
|
@@ -44098,6 +44111,7 @@ var require_fs4 = __commonJS({
|
|
|
44098
44111
|
"../../node_modules/@nodelib/fs.scandir/out/utils/fs.js"(exports) {
|
|
44099
44112
|
"use strict";
|
|
44100
44113
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44114
|
+
exports.createDirentFromStats = void 0;
|
|
44101
44115
|
var DirentFromStats = class {
|
|
44102
44116
|
constructor(name, stats) {
|
|
44103
44117
|
this.name = name;
|
|
@@ -44122,44 +44136,67 @@ var require_utils7 = __commonJS({
|
|
|
44122
44136
|
"../../node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
|
|
44123
44137
|
"use strict";
|
|
44124
44138
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44139
|
+
exports.fs = void 0;
|
|
44125
44140
|
var fs2 = require_fs4();
|
|
44126
44141
|
exports.fs = fs2;
|
|
44127
44142
|
}
|
|
44128
44143
|
});
|
|
44129
44144
|
|
|
44145
|
+
// ../../node_modules/@nodelib/fs.scandir/out/providers/common.js
|
|
44146
|
+
var require_common = __commonJS({
|
|
44147
|
+
"../../node_modules/@nodelib/fs.scandir/out/providers/common.js"(exports) {
|
|
44148
|
+
"use strict";
|
|
44149
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44150
|
+
exports.joinPathSegments = void 0;
|
|
44151
|
+
function joinPathSegments(a, b, separator) {
|
|
44152
|
+
if (a.endsWith(separator)) {
|
|
44153
|
+
return a + b;
|
|
44154
|
+
}
|
|
44155
|
+
return a + separator + b;
|
|
44156
|
+
}
|
|
44157
|
+
exports.joinPathSegments = joinPathSegments;
|
|
44158
|
+
}
|
|
44159
|
+
});
|
|
44160
|
+
|
|
44130
44161
|
// ../../node_modules/@nodelib/fs.scandir/out/providers/async.js
|
|
44131
44162
|
var require_async3 = __commonJS({
|
|
44132
44163
|
"../../node_modules/@nodelib/fs.scandir/out/providers/async.js"(exports) {
|
|
44133
44164
|
"use strict";
|
|
44134
44165
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44166
|
+
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
44135
44167
|
var fsStat = require_out();
|
|
44136
44168
|
var rpl = require_run_parallel();
|
|
44137
44169
|
var constants_1 = require_constants4();
|
|
44138
44170
|
var utils = require_utils7();
|
|
44171
|
+
var common = require_common();
|
|
44139
44172
|
function read(directory, settings, callback) {
|
|
44140
44173
|
if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
|
44141
|
-
|
|
44174
|
+
readdirWithFileTypes(directory, settings, callback);
|
|
44175
|
+
return;
|
|
44142
44176
|
}
|
|
44143
|
-
|
|
44177
|
+
readdir(directory, settings, callback);
|
|
44144
44178
|
}
|
|
44145
44179
|
exports.read = read;
|
|
44146
44180
|
function readdirWithFileTypes(directory, settings, callback) {
|
|
44147
44181
|
settings.fs.readdir(directory, { withFileTypes: true }, (readdirError, dirents) => {
|
|
44148
44182
|
if (readdirError !== null) {
|
|
44149
|
-
|
|
44183
|
+
callFailureCallback(callback, readdirError);
|
|
44184
|
+
return;
|
|
44150
44185
|
}
|
|
44151
44186
|
const entries = dirents.map((dirent) => ({
|
|
44152
44187
|
dirent,
|
|
44153
44188
|
name: dirent.name,
|
|
44154
|
-
path:
|
|
44189
|
+
path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator)
|
|
44155
44190
|
}));
|
|
44156
44191
|
if (!settings.followSymbolicLinks) {
|
|
44157
|
-
|
|
44192
|
+
callSuccessCallback(callback, entries);
|
|
44193
|
+
return;
|
|
44158
44194
|
}
|
|
44159
44195
|
const tasks = entries.map((entry) => makeRplTaskEntry(entry, settings));
|
|
44160
44196
|
rpl(tasks, (rplError, rplEntries) => {
|
|
44161
44197
|
if (rplError !== null) {
|
|
44162
|
-
|
|
44198
|
+
callFailureCallback(callback, rplError);
|
|
44199
|
+
return;
|
|
44163
44200
|
}
|
|
44164
44201
|
callSuccessCallback(callback, rplEntries);
|
|
44165
44202
|
});
|
|
@@ -44169,46 +44206,54 @@ var require_async3 = __commonJS({
|
|
|
44169
44206
|
function makeRplTaskEntry(entry, settings) {
|
|
44170
44207
|
return (done) => {
|
|
44171
44208
|
if (!entry.dirent.isSymbolicLink()) {
|
|
44172
|
-
|
|
44209
|
+
done(null, entry);
|
|
44210
|
+
return;
|
|
44173
44211
|
}
|
|
44174
44212
|
settings.fs.stat(entry.path, (statError, stats) => {
|
|
44175
44213
|
if (statError !== null) {
|
|
44176
44214
|
if (settings.throwErrorOnBrokenSymbolicLink) {
|
|
44177
|
-
|
|
44215
|
+
done(statError);
|
|
44216
|
+
return;
|
|
44178
44217
|
}
|
|
44179
|
-
|
|
44218
|
+
done(null, entry);
|
|
44219
|
+
return;
|
|
44180
44220
|
}
|
|
44181
44221
|
entry.dirent = utils.fs.createDirentFromStats(entry.name, stats);
|
|
44182
|
-
|
|
44222
|
+
done(null, entry);
|
|
44183
44223
|
});
|
|
44184
44224
|
};
|
|
44185
44225
|
}
|
|
44186
44226
|
function readdir(directory, settings, callback) {
|
|
44187
44227
|
settings.fs.readdir(directory, (readdirError, names) => {
|
|
44188
44228
|
if (readdirError !== null) {
|
|
44189
|
-
|
|
44229
|
+
callFailureCallback(callback, readdirError);
|
|
44230
|
+
return;
|
|
44190
44231
|
}
|
|
44191
|
-
const
|
|
44192
|
-
|
|
44193
|
-
return (done) =>
|
|
44232
|
+
const tasks = names.map((name) => {
|
|
44233
|
+
const path3 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
44234
|
+
return (done) => {
|
|
44235
|
+
fsStat.stat(path3, settings.fsStatSettings, (error, stats) => {
|
|
44236
|
+
if (error !== null) {
|
|
44237
|
+
done(error);
|
|
44238
|
+
return;
|
|
44239
|
+
}
|
|
44240
|
+
const entry = {
|
|
44241
|
+
name,
|
|
44242
|
+
path: path3,
|
|
44243
|
+
dirent: utils.fs.createDirentFromStats(name, stats)
|
|
44244
|
+
};
|
|
44245
|
+
if (settings.stats) {
|
|
44246
|
+
entry.stats = stats;
|
|
44247
|
+
}
|
|
44248
|
+
done(null, entry);
|
|
44249
|
+
});
|
|
44250
|
+
};
|
|
44194
44251
|
});
|
|
44195
|
-
rpl(tasks, (rplError,
|
|
44252
|
+
rpl(tasks, (rplError, entries) => {
|
|
44196
44253
|
if (rplError !== null) {
|
|
44197
|
-
|
|
44198
|
-
|
|
44199
|
-
|
|
44200
|
-
names.forEach((name, index) => {
|
|
44201
|
-
const stats = results[index];
|
|
44202
|
-
const entry = {
|
|
44203
|
-
name,
|
|
44204
|
-
path: filepaths[index],
|
|
44205
|
-
dirent: utils.fs.createDirentFromStats(name, stats)
|
|
44206
|
-
};
|
|
44207
|
-
if (settings.stats) {
|
|
44208
|
-
entry.stats = stats;
|
|
44209
|
-
}
|
|
44210
|
-
entries.push(entry);
|
|
44211
|
-
});
|
|
44254
|
+
callFailureCallback(callback, rplError);
|
|
44255
|
+
return;
|
|
44256
|
+
}
|
|
44212
44257
|
callSuccessCallback(callback, entries);
|
|
44213
44258
|
});
|
|
44214
44259
|
});
|
|
@@ -44228,9 +44273,11 @@ var require_sync2 = __commonJS({
|
|
|
44228
44273
|
"../../node_modules/@nodelib/fs.scandir/out/providers/sync.js"(exports) {
|
|
44229
44274
|
"use strict";
|
|
44230
44275
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44276
|
+
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
44231
44277
|
var fsStat = require_out();
|
|
44232
44278
|
var constants_1 = require_constants4();
|
|
44233
44279
|
var utils = require_utils7();
|
|
44280
|
+
var common = require_common();
|
|
44234
44281
|
function read(directory, settings) {
|
|
44235
44282
|
if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
|
44236
44283
|
return readdirWithFileTypes(directory, settings);
|
|
@@ -44244,7 +44291,7 @@ var require_sync2 = __commonJS({
|
|
|
44244
44291
|
const entry = {
|
|
44245
44292
|
dirent,
|
|
44246
44293
|
name: dirent.name,
|
|
44247
|
-
path:
|
|
44294
|
+
path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator)
|
|
44248
44295
|
};
|
|
44249
44296
|
if (entry.dirent.isSymbolicLink() && settings.followSymbolicLinks) {
|
|
44250
44297
|
try {
|
|
@@ -44263,7 +44310,7 @@ var require_sync2 = __commonJS({
|
|
|
44263
44310
|
function readdir(directory, settings) {
|
|
44264
44311
|
const names = settings.fs.readdirSync(directory);
|
|
44265
44312
|
return names.map((name) => {
|
|
44266
|
-
const entryPath =
|
|
44313
|
+
const entryPath = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
44267
44314
|
const stats = fsStat.statSync(entryPath, settings.fsStatSettings);
|
|
44268
44315
|
const entry = {
|
|
44269
44316
|
name,
|
|
@@ -44285,6 +44332,7 @@ var require_fs5 = __commonJS({
|
|
|
44285
44332
|
"../../node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports) {
|
|
44286
44333
|
"use strict";
|
|
44287
44334
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44335
|
+
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
44288
44336
|
var fs2 = require("fs");
|
|
44289
44337
|
exports.FILE_SYSTEM_ADAPTER = {
|
|
44290
44338
|
lstat: fs2.lstat,
|
|
@@ -44327,7 +44375,7 @@ var require_settings2 = __commonJS({
|
|
|
44327
44375
|
});
|
|
44328
44376
|
}
|
|
44329
44377
|
_getValue(option, value) {
|
|
44330
|
-
return option
|
|
44378
|
+
return option !== null && option !== void 0 ? option : value;
|
|
44331
44379
|
}
|
|
44332
44380
|
};
|
|
44333
44381
|
exports.default = Settings;
|
|
@@ -44339,13 +44387,15 @@ var require_out2 = __commonJS({
|
|
|
44339
44387
|
"../../node_modules/@nodelib/fs.scandir/out/index.js"(exports) {
|
|
44340
44388
|
"use strict";
|
|
44341
44389
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44390
|
+
exports.Settings = exports.scandirSync = exports.scandir = void 0;
|
|
44342
44391
|
var async = require_async3();
|
|
44343
44392
|
var sync = require_sync2();
|
|
44344
44393
|
var settings_1 = require_settings2();
|
|
44345
44394
|
exports.Settings = settings_1.default;
|
|
44346
44395
|
function scandir(path3, optionsOrSettingsOrCallback, callback) {
|
|
44347
44396
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
44348
|
-
|
|
44397
|
+
async.read(path3, getSettings(), optionsOrSettingsOrCallback);
|
|
44398
|
+
return;
|
|
44349
44399
|
}
|
|
44350
44400
|
async.read(path3, getSettings(optionsOrSettingsOrCallback), callback);
|
|
44351
44401
|
}
|
|
@@ -44551,10 +44601,11 @@ var require_queue2 = __commonJS({
|
|
|
44551
44601
|
});
|
|
44552
44602
|
|
|
44553
44603
|
// ../../node_modules/@nodelib/fs.walk/out/readers/common.js
|
|
44554
|
-
var
|
|
44604
|
+
var require_common2 = __commonJS({
|
|
44555
44605
|
"../../node_modules/@nodelib/fs.walk/out/readers/common.js"(exports) {
|
|
44556
44606
|
"use strict";
|
|
44557
44607
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44608
|
+
exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;
|
|
44558
44609
|
function isFatalError(settings, error) {
|
|
44559
44610
|
if (settings.errorFilter === null) {
|
|
44560
44611
|
return true;
|
|
@@ -44567,13 +44618,16 @@ var require_common = __commonJS({
|
|
|
44567
44618
|
}
|
|
44568
44619
|
exports.isAppliedFilter = isAppliedFilter;
|
|
44569
44620
|
function replacePathSegmentSeparator(filepath, separator) {
|
|
44570
|
-
return filepath.split(/[
|
|
44621
|
+
return filepath.split(/[/\\]/).join(separator);
|
|
44571
44622
|
}
|
|
44572
44623
|
exports.replacePathSegmentSeparator = replacePathSegmentSeparator;
|
|
44573
44624
|
function joinPathSegments(a, b, separator) {
|
|
44574
44625
|
if (a === "") {
|
|
44575
44626
|
return b;
|
|
44576
44627
|
}
|
|
44628
|
+
if (a.endsWith(separator)) {
|
|
44629
|
+
return a + b;
|
|
44630
|
+
}
|
|
44577
44631
|
return a + separator + b;
|
|
44578
44632
|
}
|
|
44579
44633
|
exports.joinPathSegments = joinPathSegments;
|
|
@@ -44585,7 +44639,7 @@ var require_reader = __commonJS({
|
|
|
44585
44639
|
"../../node_modules/@nodelib/fs.walk/out/readers/reader.js"(exports) {
|
|
44586
44640
|
"use strict";
|
|
44587
44641
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44588
|
-
var common =
|
|
44642
|
+
var common = require_common2();
|
|
44589
44643
|
var Reader = class {
|
|
44590
44644
|
constructor(_root, _settings) {
|
|
44591
44645
|
this._root = _root;
|
|
@@ -44605,7 +44659,7 @@ var require_async4 = __commonJS({
|
|
|
44605
44659
|
var events_1 = require("events");
|
|
44606
44660
|
var fsScandir = require_out2();
|
|
44607
44661
|
var fastq = require_queue2();
|
|
44608
|
-
var common =
|
|
44662
|
+
var common = require_common2();
|
|
44609
44663
|
var reader_1 = require_reader();
|
|
44610
44664
|
var AsyncReader = class extends reader_1.default {
|
|
44611
44665
|
constructor(_root, _settings) {
|
|
@@ -44630,6 +44684,9 @@ var require_async4 = __commonJS({
|
|
|
44630
44684
|
});
|
|
44631
44685
|
return this._emitter;
|
|
44632
44686
|
}
|
|
44687
|
+
get isDestroyed() {
|
|
44688
|
+
return this._isDestroyed;
|
|
44689
|
+
}
|
|
44633
44690
|
destroy() {
|
|
44634
44691
|
if (this._isDestroyed) {
|
|
44635
44692
|
throw new Error("The reader is already destroyed");
|
|
@@ -44657,7 +44714,8 @@ var require_async4 = __commonJS({
|
|
|
44657
44714
|
_worker(item, done) {
|
|
44658
44715
|
this._scandir(item.directory, this._settings.fsScandirSettings, (error, entries) => {
|
|
44659
44716
|
if (error !== null) {
|
|
44660
|
-
|
|
44717
|
+
done(error, void 0);
|
|
44718
|
+
return;
|
|
44661
44719
|
}
|
|
44662
44720
|
for (const entry of entries) {
|
|
44663
44721
|
this._handleEntry(entry, item.base);
|
|
@@ -44666,7 +44724,7 @@ var require_async4 = __commonJS({
|
|
|
44666
44724
|
});
|
|
44667
44725
|
}
|
|
44668
44726
|
_handleError(error) {
|
|
44669
|
-
if (!common.isFatalError(this._settings, error)) {
|
|
44727
|
+
if (this._isDestroyed || !common.isFatalError(this._settings, error)) {
|
|
44670
44728
|
return;
|
|
44671
44729
|
}
|
|
44672
44730
|
this._isFatalError = true;
|
|
@@ -44685,7 +44743,7 @@ var require_async4 = __commonJS({
|
|
|
44685
44743
|
this._emitEntry(entry);
|
|
44686
44744
|
}
|
|
44687
44745
|
if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) {
|
|
44688
|
-
this._pushToQueue(fullpath, entry.path);
|
|
44746
|
+
this._pushToQueue(fullpath, base === void 0 ? void 0 : entry.path);
|
|
44689
44747
|
}
|
|
44690
44748
|
}
|
|
44691
44749
|
_emitEntry(entry) {
|
|
@@ -44707,17 +44765,17 @@ var require_async5 = __commonJS({
|
|
|
44707
44765
|
this._root = _root;
|
|
44708
44766
|
this._settings = _settings;
|
|
44709
44767
|
this._reader = new async_1.default(this._root, this._settings);
|
|
44710
|
-
this._storage =
|
|
44768
|
+
this._storage = [];
|
|
44711
44769
|
}
|
|
44712
44770
|
read(callback) {
|
|
44713
44771
|
this._reader.onError((error) => {
|
|
44714
44772
|
callFailureCallback(callback, error);
|
|
44715
44773
|
});
|
|
44716
44774
|
this._reader.onEntry((entry) => {
|
|
44717
|
-
this._storage.
|
|
44775
|
+
this._storage.push(entry);
|
|
44718
44776
|
});
|
|
44719
44777
|
this._reader.onEnd(() => {
|
|
44720
|
-
callSuccessCallback(callback,
|
|
44778
|
+
callSuccessCallback(callback, this._storage);
|
|
44721
44779
|
});
|
|
44722
44780
|
this._reader.read();
|
|
44723
44781
|
}
|
|
@@ -44748,7 +44806,11 @@ var require_stream3 = __commonJS({
|
|
|
44748
44806
|
objectMode: true,
|
|
44749
44807
|
read: () => {
|
|
44750
44808
|
},
|
|
44751
|
-
destroy:
|
|
44809
|
+
destroy: () => {
|
|
44810
|
+
if (!this._reader.isDestroyed) {
|
|
44811
|
+
this._reader.destroy();
|
|
44812
|
+
}
|
|
44813
|
+
}
|
|
44752
44814
|
});
|
|
44753
44815
|
}
|
|
44754
44816
|
read() {
|
|
@@ -44775,19 +44837,19 @@ var require_sync3 = __commonJS({
|
|
|
44775
44837
|
"use strict";
|
|
44776
44838
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44777
44839
|
var fsScandir = require_out2();
|
|
44778
|
-
var common =
|
|
44840
|
+
var common = require_common2();
|
|
44779
44841
|
var reader_1 = require_reader();
|
|
44780
44842
|
var SyncReader = class extends reader_1.default {
|
|
44781
44843
|
constructor() {
|
|
44782
44844
|
super(...arguments);
|
|
44783
44845
|
this._scandir = fsScandir.scandirSync;
|
|
44784
|
-
this._storage =
|
|
44846
|
+
this._storage = [];
|
|
44785
44847
|
this._queue = /* @__PURE__ */ new Set();
|
|
44786
44848
|
}
|
|
44787
44849
|
read() {
|
|
44788
44850
|
this._pushToQueue(this._root, this._settings.basePath);
|
|
44789
44851
|
this._handleQueue();
|
|
44790
|
-
return
|
|
44852
|
+
return this._storage;
|
|
44791
44853
|
}
|
|
44792
44854
|
_pushToQueue(directory, base) {
|
|
44793
44855
|
this._queue.add({ directory, base });
|
|
@@ -44822,11 +44884,11 @@ var require_sync3 = __commonJS({
|
|
|
44822
44884
|
this._pushToStorage(entry);
|
|
44823
44885
|
}
|
|
44824
44886
|
if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) {
|
|
44825
|
-
this._pushToQueue(fullpath, entry.path);
|
|
44887
|
+
this._pushToQueue(fullpath, base === void 0 ? void 0 : entry.path);
|
|
44826
44888
|
}
|
|
44827
44889
|
}
|
|
44828
44890
|
_pushToStorage(entry) {
|
|
44829
|
-
this._storage.
|
|
44891
|
+
this._storage.push(entry);
|
|
44830
44892
|
}
|
|
44831
44893
|
};
|
|
44832
44894
|
exports.default = SyncReader;
|
|
@@ -44864,7 +44926,7 @@ var require_settings3 = __commonJS({
|
|
|
44864
44926
|
constructor(_options = {}) {
|
|
44865
44927
|
this._options = _options;
|
|
44866
44928
|
this.basePath = this._getValue(this._options.basePath, void 0);
|
|
44867
|
-
this.concurrency = this._getValue(this._options.concurrency,
|
|
44929
|
+
this.concurrency = this._getValue(this._options.concurrency, Number.POSITIVE_INFINITY);
|
|
44868
44930
|
this.deepFilter = this._getValue(this._options.deepFilter, null);
|
|
44869
44931
|
this.entryFilter = this._getValue(this._options.entryFilter, null);
|
|
44870
44932
|
this.errorFilter = this._getValue(this._options.errorFilter, null);
|
|
@@ -44878,7 +44940,7 @@ var require_settings3 = __commonJS({
|
|
|
44878
44940
|
});
|
|
44879
44941
|
}
|
|
44880
44942
|
_getValue(option, value) {
|
|
44881
|
-
return option
|
|
44943
|
+
return option !== null && option !== void 0 ? option : value;
|
|
44882
44944
|
}
|
|
44883
44945
|
};
|
|
44884
44946
|
exports.default = Settings;
|
|
@@ -44890,6 +44952,7 @@ var require_out3 = __commonJS({
|
|
|
44890
44952
|
"../../node_modules/@nodelib/fs.walk/out/index.js"(exports) {
|
|
44891
44953
|
"use strict";
|
|
44892
44954
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44955
|
+
exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0;
|
|
44893
44956
|
var async_1 = require_async5();
|
|
44894
44957
|
var stream_1 = require_stream3();
|
|
44895
44958
|
var sync_1 = require_sync4();
|
|
@@ -44897,7 +44960,8 @@ var require_out3 = __commonJS({
|
|
|
44897
44960
|
exports.Settings = settings_1.default;
|
|
44898
44961
|
function walk(directory, optionsOrSettingsOrCallback, callback) {
|
|
44899
44962
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
44900
|
-
|
|
44963
|
+
new async_1.default(directory, getSettings()).read(optionsOrSettingsOrCallback);
|
|
44964
|
+
return;
|
|
44901
44965
|
}
|
|
44902
44966
|
new async_1.default(directory, getSettings(optionsOrSettingsOrCallback)).read(callback);
|
|
44903
44967
|
}
|
|
@@ -53876,7 +53940,7 @@ var upgrades = [
|
|
|
53876
53940
|
var package_default = {
|
|
53877
53941
|
name: "@carbon/upgrade",
|
|
53878
53942
|
description: "A tool for upgrading Carbon versions",
|
|
53879
|
-
version: "11.
|
|
53943
|
+
version: "11.7.0-rc.0",
|
|
53880
53944
|
license: "Apache-2.0",
|
|
53881
53945
|
bin: {
|
|
53882
53946
|
"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.
|
|
4
|
+
"version": "11.7.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"bin": {
|
|
7
7
|
"carbon-upgrade": "./bin/carbon-upgrade.js"
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"jscodeshift": "^0.13.1"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "0554718f48299a56a0525c4fb3e2b0271f13440b"
|
|
61
61
|
}
|