@codingame/monaco-vscode-rollup-vsix-plugin 31.0.1 → 32.0.1
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/package.json +1 -1
- package/rollup-vsix-plugin.js +44 -44
package/package.json
CHANGED
package/rollup-vsix-plugin.js
CHANGED
|
@@ -1317,9 +1317,9 @@ var hasRequiredUtils$3;
|
|
|
1317
1317
|
function requireUtils$3 () {
|
|
1318
1318
|
if (hasRequiredUtils$3) return utils$2;
|
|
1319
1319
|
hasRequiredUtils$3 = 1;
|
|
1320
|
-
(function (exports
|
|
1320
|
+
(function (exports) {
|
|
1321
1321
|
|
|
1322
|
-
exports
|
|
1322
|
+
exports.isInteger = num => {
|
|
1323
1323
|
if (typeof num === 'number') {
|
|
1324
1324
|
return Number.isInteger(num);
|
|
1325
1325
|
}
|
|
@@ -1333,15 +1333,15 @@ function requireUtils$3 () {
|
|
|
1333
1333
|
* Find a node of the given type
|
|
1334
1334
|
*/
|
|
1335
1335
|
|
|
1336
|
-
exports
|
|
1336
|
+
exports.find = (node, type) => node.nodes.find(node => node.type === type);
|
|
1337
1337
|
|
|
1338
1338
|
/**
|
|
1339
1339
|
* Find a node of the given type
|
|
1340
1340
|
*/
|
|
1341
1341
|
|
|
1342
|
-
exports
|
|
1342
|
+
exports.exceedsLimit = (min, max, step = 1, limit) => {
|
|
1343
1343
|
if (limit === false) return false;
|
|
1344
|
-
if (!exports
|
|
1344
|
+
if (!exports.isInteger(min) || !exports.isInteger(max)) return false;
|
|
1345
1345
|
return ((Number(max) - Number(min)) / Number(step)) >= limit;
|
|
1346
1346
|
};
|
|
1347
1347
|
|
|
@@ -1349,7 +1349,7 @@ function requireUtils$3 () {
|
|
|
1349
1349
|
* Escape the given node with '\\' before node.value
|
|
1350
1350
|
*/
|
|
1351
1351
|
|
|
1352
|
-
exports
|
|
1352
|
+
exports.escapeNode = (block, n = 0, type) => {
|
|
1353
1353
|
const node = block.nodes[n];
|
|
1354
1354
|
if (!node) return;
|
|
1355
1355
|
|
|
@@ -1365,7 +1365,7 @@ function requireUtils$3 () {
|
|
|
1365
1365
|
* Returns true if the given brace node should be enclosed in literal braces
|
|
1366
1366
|
*/
|
|
1367
1367
|
|
|
1368
|
-
exports
|
|
1368
|
+
exports.encloseBrace = node => {
|
|
1369
1369
|
if (node.type !== 'brace') return false;
|
|
1370
1370
|
if ((node.commas >> 0 + node.ranges >> 0) === 0) {
|
|
1371
1371
|
node.invalid = true;
|
|
@@ -1378,7 +1378,7 @@ function requireUtils$3 () {
|
|
|
1378
1378
|
* Returns true if a brace node is invalid.
|
|
1379
1379
|
*/
|
|
1380
1380
|
|
|
1381
|
-
exports
|
|
1381
|
+
exports.isInvalidBrace = block => {
|
|
1382
1382
|
if (block.type !== 'brace') return false;
|
|
1383
1383
|
if (block.invalid === true || block.dollar) return true;
|
|
1384
1384
|
if ((block.commas >> 0 + block.ranges >> 0) === 0) {
|
|
@@ -1396,7 +1396,7 @@ function requireUtils$3 () {
|
|
|
1396
1396
|
* Returns true if a node is an open or close node
|
|
1397
1397
|
*/
|
|
1398
1398
|
|
|
1399
|
-
exports
|
|
1399
|
+
exports.isOpenOrClose = node => {
|
|
1400
1400
|
if (node.type === 'open' || node.type === 'close') {
|
|
1401
1401
|
return true;
|
|
1402
1402
|
}
|
|
@@ -1407,7 +1407,7 @@ function requireUtils$3 () {
|
|
|
1407
1407
|
* Reduce an array of text nodes.
|
|
1408
1408
|
*/
|
|
1409
1409
|
|
|
1410
|
-
exports
|
|
1410
|
+
exports.reduce = nodes => nodes.reduce((acc, node) => {
|
|
1411
1411
|
if (node.type === 'text') acc.push(node.value);
|
|
1412
1412
|
if (node.type === 'range') node.type = 'text';
|
|
1413
1413
|
return acc;
|
|
@@ -1417,7 +1417,7 @@ function requireUtils$3 () {
|
|
|
1417
1417
|
* Flatten an array
|
|
1418
1418
|
*/
|
|
1419
1419
|
|
|
1420
|
-
exports
|
|
1420
|
+
exports.flatten = (...args) => {
|
|
1421
1421
|
const result = [];
|
|
1422
1422
|
|
|
1423
1423
|
const flat = arr => {
|
|
@@ -3030,7 +3030,7 @@ var hasRequiredUtils$2;
|
|
|
3030
3030
|
function requireUtils$2 () {
|
|
3031
3031
|
if (hasRequiredUtils$2) return utils$1;
|
|
3032
3032
|
hasRequiredUtils$2 = 1;
|
|
3033
|
-
(function (exports
|
|
3033
|
+
(function (exports) {
|
|
3034
3034
|
|
|
3035
3035
|
const path = require$$0$1;
|
|
3036
3036
|
const win32 = process.platform === 'win32';
|
|
@@ -3041,19 +3041,19 @@ function requireUtils$2 () {
|
|
|
3041
3041
|
REGEX_SPECIAL_CHARS_GLOBAL
|
|
3042
3042
|
} = requireConstants$1();
|
|
3043
3043
|
|
|
3044
|
-
exports
|
|
3045
|
-
exports
|
|
3046
|
-
exports
|
|
3047
|
-
exports
|
|
3048
|
-
exports
|
|
3044
|
+
exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
|
|
3045
|
+
exports.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str);
|
|
3046
|
+
exports.isRegexChar = str => str.length === 1 && exports.hasRegexChars(str);
|
|
3047
|
+
exports.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1');
|
|
3048
|
+
exports.toPosixSlashes = str => str.replace(REGEX_BACKSLASH, '/');
|
|
3049
3049
|
|
|
3050
|
-
exports
|
|
3050
|
+
exports.removeBackslashes = str => {
|
|
3051
3051
|
return str.replace(REGEX_REMOVE_BACKSLASH, match => {
|
|
3052
3052
|
return match === '\\' ? '' : match;
|
|
3053
3053
|
});
|
|
3054
3054
|
};
|
|
3055
3055
|
|
|
3056
|
-
exports
|
|
3056
|
+
exports.supportsLookbehinds = () => {
|
|
3057
3057
|
const segs = process.version.slice(1).split('.').map(Number);
|
|
3058
3058
|
if (segs.length === 3 && segs[0] >= 9 || (segs[0] === 8 && segs[1] >= 10)) {
|
|
3059
3059
|
return true;
|
|
@@ -3061,21 +3061,21 @@ function requireUtils$2 () {
|
|
|
3061
3061
|
return false;
|
|
3062
3062
|
};
|
|
3063
3063
|
|
|
3064
|
-
exports
|
|
3064
|
+
exports.isWindows = options => {
|
|
3065
3065
|
if (options && typeof options.windows === 'boolean') {
|
|
3066
3066
|
return options.windows;
|
|
3067
3067
|
}
|
|
3068
3068
|
return win32 === true || path.sep === '\\';
|
|
3069
3069
|
};
|
|
3070
3070
|
|
|
3071
|
-
exports
|
|
3071
|
+
exports.escapeLast = (input, char, lastIdx) => {
|
|
3072
3072
|
const idx = input.lastIndexOf(char, lastIdx);
|
|
3073
3073
|
if (idx === -1) return input;
|
|
3074
|
-
if (input[idx - 1] === '\\') return exports
|
|
3074
|
+
if (input[idx - 1] === '\\') return exports.escapeLast(input, char, idx - 1);
|
|
3075
3075
|
return `${input.slice(0, idx)}\\${input.slice(idx)}`;
|
|
3076
3076
|
};
|
|
3077
3077
|
|
|
3078
|
-
exports
|
|
3078
|
+
exports.removePrefix = (input, state = {}) => {
|
|
3079
3079
|
let output = input;
|
|
3080
3080
|
if (output.startsWith('./')) {
|
|
3081
3081
|
output = output.slice(2);
|
|
@@ -3084,7 +3084,7 @@ function requireUtils$2 () {
|
|
|
3084
3084
|
return output;
|
|
3085
3085
|
};
|
|
3086
3086
|
|
|
3087
|
-
exports
|
|
3087
|
+
exports.wrapOutput = (input, state = {}, options = {}) => {
|
|
3088
3088
|
const prepend = options.contains ? '' : '^';
|
|
3089
3089
|
const append = options.contains ? '' : '$';
|
|
3090
3090
|
|
|
@@ -6394,11 +6394,11 @@ var hasRequiredFs$2;
|
|
|
6394
6394
|
function requireFs$2 () {
|
|
6395
6395
|
if (hasRequiredFs$2) return fs$2;
|
|
6396
6396
|
hasRequiredFs$2 = 1;
|
|
6397
|
-
(function (exports
|
|
6398
|
-
Object.defineProperty(exports
|
|
6399
|
-
exports
|
|
6397
|
+
(function (exports) {
|
|
6398
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6399
|
+
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
6400
6400
|
const fs = require$$0$4;
|
|
6401
|
-
exports
|
|
6401
|
+
exports.FILE_SYSTEM_ADAPTER = {
|
|
6402
6402
|
lstat: fs.lstat,
|
|
6403
6403
|
stat: fs.stat,
|
|
6404
6404
|
lstatSync: fs.lstatSync,
|
|
@@ -6406,11 +6406,11 @@ function requireFs$2 () {
|
|
|
6406
6406
|
};
|
|
6407
6407
|
function createFileSystemAdapter(fsMethods) {
|
|
6408
6408
|
if (fsMethods === undefined) {
|
|
6409
|
-
return exports
|
|
6409
|
+
return exports.FILE_SYSTEM_ADAPTER;
|
|
6410
6410
|
}
|
|
6411
|
-
return Object.assign(Object.assign({}, exports
|
|
6411
|
+
return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
|
|
6412
6412
|
}
|
|
6413
|
-
exports
|
|
6413
|
+
exports.createFileSystemAdapter = createFileSystemAdapter;
|
|
6414
6414
|
} (fs$2));
|
|
6415
6415
|
return fs$2;
|
|
6416
6416
|
}
|
|
@@ -6824,11 +6824,11 @@ var hasRequiredFs;
|
|
|
6824
6824
|
function requireFs () {
|
|
6825
6825
|
if (hasRequiredFs) return fs;
|
|
6826
6826
|
hasRequiredFs = 1;
|
|
6827
|
-
(function (exports
|
|
6828
|
-
Object.defineProperty(exports
|
|
6829
|
-
exports
|
|
6827
|
+
(function (exports) {
|
|
6828
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6829
|
+
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
6830
6830
|
const fs = require$$0$4;
|
|
6831
|
-
exports
|
|
6831
|
+
exports.FILE_SYSTEM_ADAPTER = {
|
|
6832
6832
|
lstat: fs.lstat,
|
|
6833
6833
|
stat: fs.stat,
|
|
6834
6834
|
lstatSync: fs.lstatSync,
|
|
@@ -6838,11 +6838,11 @@ function requireFs () {
|
|
|
6838
6838
|
};
|
|
6839
6839
|
function createFileSystemAdapter(fsMethods) {
|
|
6840
6840
|
if (fsMethods === undefined) {
|
|
6841
|
-
return exports
|
|
6841
|
+
return exports.FILE_SYSTEM_ADAPTER;
|
|
6842
6842
|
}
|
|
6843
|
-
return Object.assign(Object.assign({}, exports
|
|
6843
|
+
return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
|
|
6844
6844
|
}
|
|
6845
|
-
exports
|
|
6845
|
+
exports.createFileSystemAdapter = createFileSystemAdapter;
|
|
6846
6846
|
} (fs));
|
|
6847
6847
|
return fs;
|
|
6848
6848
|
}
|
|
@@ -8409,9 +8409,9 @@ var hasRequiredSettings;
|
|
|
8409
8409
|
function requireSettings () {
|
|
8410
8410
|
if (hasRequiredSettings) return settings;
|
|
8411
8411
|
hasRequiredSettings = 1;
|
|
8412
|
-
(function (exports
|
|
8413
|
-
Object.defineProperty(exports
|
|
8414
|
-
exports
|
|
8412
|
+
(function (exports) {
|
|
8413
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8414
|
+
exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
8415
8415
|
const fs = require$$0$4;
|
|
8416
8416
|
const os = require$$0;
|
|
8417
8417
|
/**
|
|
@@ -8419,7 +8419,7 @@ function requireSettings () {
|
|
|
8419
8419
|
* https://github.com/nodejs/node/blob/7faeddf23a98c53896f8b574a6e66589e8fb1eb8/lib/os.js#L106-L107
|
|
8420
8420
|
*/
|
|
8421
8421
|
const CPU_COUNT = Math.max(os.cpus().length, 1);
|
|
8422
|
-
exports
|
|
8422
|
+
exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
|
|
8423
8423
|
lstat: fs.lstat,
|
|
8424
8424
|
lstatSync: fs.lstatSync,
|
|
8425
8425
|
stat: fs.stat,
|
|
@@ -8464,10 +8464,10 @@ function requireSettings () {
|
|
|
8464
8464
|
return option === undefined ? value : option;
|
|
8465
8465
|
}
|
|
8466
8466
|
_getFileSystemMethods(methods = {}) {
|
|
8467
|
-
return Object.assign(Object.assign({}, exports
|
|
8467
|
+
return Object.assign(Object.assign({}, exports.DEFAULT_FILE_SYSTEM_ADAPTER), methods);
|
|
8468
8468
|
}
|
|
8469
8469
|
}
|
|
8470
|
-
exports
|
|
8470
|
+
exports.default = Settings;
|
|
8471
8471
|
} (settings));
|
|
8472
8472
|
return settings;
|
|
8473
8473
|
}
|