@codingame/monaco-vscode-rollup-vsix-plugin 22.1.8 → 23.0.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/package.json +2 -2
- package/rollup-vsix-plugin.js +44 -44
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-rollup-vsix-plugin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "23.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@rollup/pluginutils": "^5.3.0",
|
|
22
22
|
"css-url-parser": "^1.1.4",
|
|
23
|
-
"memfs": "^4.
|
|
23
|
+
"memfs": "^4.51.0",
|
|
24
24
|
"mime-types": "^3.0.1",
|
|
25
25
|
"thenby": "^1.3.4",
|
|
26
26
|
"yauzl": "^3.0.0"
|
package/rollup-vsix-plugin.js
CHANGED
|
@@ -1329,9 +1329,9 @@ var hasRequiredUtils$3;
|
|
|
1329
1329
|
function requireUtils$3 () {
|
|
1330
1330
|
if (hasRequiredUtils$3) return utils$2;
|
|
1331
1331
|
hasRequiredUtils$3 = 1;
|
|
1332
|
-
(function (exports) {
|
|
1332
|
+
(function (exports$1) {
|
|
1333
1333
|
|
|
1334
|
-
exports.isInteger = num => {
|
|
1334
|
+
exports$1.isInteger = num => {
|
|
1335
1335
|
if (typeof num === 'number') {
|
|
1336
1336
|
return Number.isInteger(num);
|
|
1337
1337
|
}
|
|
@@ -1345,15 +1345,15 @@ function requireUtils$3 () {
|
|
|
1345
1345
|
* Find a node of the given type
|
|
1346
1346
|
*/
|
|
1347
1347
|
|
|
1348
|
-
exports.find = (node, type) => node.nodes.find(node => node.type === type);
|
|
1348
|
+
exports$1.find = (node, type) => node.nodes.find(node => node.type === type);
|
|
1349
1349
|
|
|
1350
1350
|
/**
|
|
1351
1351
|
* Find a node of the given type
|
|
1352
1352
|
*/
|
|
1353
1353
|
|
|
1354
|
-
exports.exceedsLimit = (min, max, step = 1, limit) => {
|
|
1354
|
+
exports$1.exceedsLimit = (min, max, step = 1, limit) => {
|
|
1355
1355
|
if (limit === false) return false;
|
|
1356
|
-
if (!exports.isInteger(min) || !exports.isInteger(max)) return false;
|
|
1356
|
+
if (!exports$1.isInteger(min) || !exports$1.isInteger(max)) return false;
|
|
1357
1357
|
return ((Number(max) - Number(min)) / Number(step)) >= limit;
|
|
1358
1358
|
};
|
|
1359
1359
|
|
|
@@ -1361,7 +1361,7 @@ function requireUtils$3 () {
|
|
|
1361
1361
|
* Escape the given node with '\\' before node.value
|
|
1362
1362
|
*/
|
|
1363
1363
|
|
|
1364
|
-
exports.escapeNode = (block, n = 0, type) => {
|
|
1364
|
+
exports$1.escapeNode = (block, n = 0, type) => {
|
|
1365
1365
|
const node = block.nodes[n];
|
|
1366
1366
|
if (!node) return;
|
|
1367
1367
|
|
|
@@ -1377,7 +1377,7 @@ function requireUtils$3 () {
|
|
|
1377
1377
|
* Returns true if the given brace node should be enclosed in literal braces
|
|
1378
1378
|
*/
|
|
1379
1379
|
|
|
1380
|
-
exports.encloseBrace = node => {
|
|
1380
|
+
exports$1.encloseBrace = node => {
|
|
1381
1381
|
if (node.type !== 'brace') return false;
|
|
1382
1382
|
if ((node.commas >> 0 + node.ranges >> 0) === 0) {
|
|
1383
1383
|
node.invalid = true;
|
|
@@ -1390,7 +1390,7 @@ function requireUtils$3 () {
|
|
|
1390
1390
|
* Returns true if a brace node is invalid.
|
|
1391
1391
|
*/
|
|
1392
1392
|
|
|
1393
|
-
exports.isInvalidBrace = block => {
|
|
1393
|
+
exports$1.isInvalidBrace = block => {
|
|
1394
1394
|
if (block.type !== 'brace') return false;
|
|
1395
1395
|
if (block.invalid === true || block.dollar) return true;
|
|
1396
1396
|
if ((block.commas >> 0 + block.ranges >> 0) === 0) {
|
|
@@ -1408,7 +1408,7 @@ function requireUtils$3 () {
|
|
|
1408
1408
|
* Returns true if a node is an open or close node
|
|
1409
1409
|
*/
|
|
1410
1410
|
|
|
1411
|
-
exports.isOpenOrClose = node => {
|
|
1411
|
+
exports$1.isOpenOrClose = node => {
|
|
1412
1412
|
if (node.type === 'open' || node.type === 'close') {
|
|
1413
1413
|
return true;
|
|
1414
1414
|
}
|
|
@@ -1419,7 +1419,7 @@ function requireUtils$3 () {
|
|
|
1419
1419
|
* Reduce an array of text nodes.
|
|
1420
1420
|
*/
|
|
1421
1421
|
|
|
1422
|
-
exports.reduce = nodes => nodes.reduce((acc, node) => {
|
|
1422
|
+
exports$1.reduce = nodes => nodes.reduce((acc, node) => {
|
|
1423
1423
|
if (node.type === 'text') acc.push(node.value);
|
|
1424
1424
|
if (node.type === 'range') node.type = 'text';
|
|
1425
1425
|
return acc;
|
|
@@ -1429,7 +1429,7 @@ function requireUtils$3 () {
|
|
|
1429
1429
|
* Flatten an array
|
|
1430
1430
|
*/
|
|
1431
1431
|
|
|
1432
|
-
exports.flatten = (...args) => {
|
|
1432
|
+
exports$1.flatten = (...args) => {
|
|
1433
1433
|
const result = [];
|
|
1434
1434
|
|
|
1435
1435
|
const flat = arr => {
|
|
@@ -3037,7 +3037,7 @@ var hasRequiredUtils$2;
|
|
|
3037
3037
|
function requireUtils$2 () {
|
|
3038
3038
|
if (hasRequiredUtils$2) return utils$1;
|
|
3039
3039
|
hasRequiredUtils$2 = 1;
|
|
3040
|
-
(function (exports) {
|
|
3040
|
+
(function (exports$1) {
|
|
3041
3041
|
|
|
3042
3042
|
const path = require$$0$1;
|
|
3043
3043
|
const win32 = process.platform === 'win32';
|
|
@@ -3048,19 +3048,19 @@ function requireUtils$2 () {
|
|
|
3048
3048
|
REGEX_SPECIAL_CHARS_GLOBAL
|
|
3049
3049
|
} = requireConstants$1();
|
|
3050
3050
|
|
|
3051
|
-
exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
|
|
3052
|
-
exports.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str);
|
|
3053
|
-
exports.isRegexChar = str => str.length === 1 && exports.hasRegexChars(str);
|
|
3054
|
-
exports.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1');
|
|
3055
|
-
exports.toPosixSlashes = str => str.replace(REGEX_BACKSLASH, '/');
|
|
3051
|
+
exports$1.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
|
|
3052
|
+
exports$1.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str);
|
|
3053
|
+
exports$1.isRegexChar = str => str.length === 1 && exports$1.hasRegexChars(str);
|
|
3054
|
+
exports$1.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1');
|
|
3055
|
+
exports$1.toPosixSlashes = str => str.replace(REGEX_BACKSLASH, '/');
|
|
3056
3056
|
|
|
3057
|
-
exports.removeBackslashes = str => {
|
|
3057
|
+
exports$1.removeBackslashes = str => {
|
|
3058
3058
|
return str.replace(REGEX_REMOVE_BACKSLASH, match => {
|
|
3059
3059
|
return match === '\\' ? '' : match;
|
|
3060
3060
|
});
|
|
3061
3061
|
};
|
|
3062
3062
|
|
|
3063
|
-
exports.supportsLookbehinds = () => {
|
|
3063
|
+
exports$1.supportsLookbehinds = () => {
|
|
3064
3064
|
const segs = process.version.slice(1).split('.').map(Number);
|
|
3065
3065
|
if (segs.length === 3 && segs[0] >= 9 || (segs[0] === 8 && segs[1] >= 10)) {
|
|
3066
3066
|
return true;
|
|
@@ -3068,21 +3068,21 @@ function requireUtils$2 () {
|
|
|
3068
3068
|
return false;
|
|
3069
3069
|
};
|
|
3070
3070
|
|
|
3071
|
-
exports.isWindows = options => {
|
|
3071
|
+
exports$1.isWindows = options => {
|
|
3072
3072
|
if (options && typeof options.windows === 'boolean') {
|
|
3073
3073
|
return options.windows;
|
|
3074
3074
|
}
|
|
3075
3075
|
return win32 === true || path.sep === '\\';
|
|
3076
3076
|
};
|
|
3077
3077
|
|
|
3078
|
-
exports.escapeLast = (input, char, lastIdx) => {
|
|
3078
|
+
exports$1.escapeLast = (input, char, lastIdx) => {
|
|
3079
3079
|
const idx = input.lastIndexOf(char, lastIdx);
|
|
3080
3080
|
if (idx === -1) return input;
|
|
3081
|
-
if (input[idx - 1] === '\\') return exports.escapeLast(input, char, idx - 1);
|
|
3081
|
+
if (input[idx - 1] === '\\') return exports$1.escapeLast(input, char, idx - 1);
|
|
3082
3082
|
return `${input.slice(0, idx)}\\${input.slice(idx)}`;
|
|
3083
3083
|
};
|
|
3084
3084
|
|
|
3085
|
-
exports.removePrefix = (input, state = {}) => {
|
|
3085
|
+
exports$1.removePrefix = (input, state = {}) => {
|
|
3086
3086
|
let output = input;
|
|
3087
3087
|
if (output.startsWith('./')) {
|
|
3088
3088
|
output = output.slice(2);
|
|
@@ -3091,7 +3091,7 @@ function requireUtils$2 () {
|
|
|
3091
3091
|
return output;
|
|
3092
3092
|
};
|
|
3093
3093
|
|
|
3094
|
-
exports.wrapOutput = (input, state = {}, options = {}) => {
|
|
3094
|
+
exports$1.wrapOutput = (input, state = {}, options = {}) => {
|
|
3095
3095
|
const prepend = options.contains ? '' : '^';
|
|
3096
3096
|
const append = options.contains ? '' : '$';
|
|
3097
3097
|
|
|
@@ -6100,11 +6100,11 @@ var hasRequiredFs$2;
|
|
|
6100
6100
|
function requireFs$2 () {
|
|
6101
6101
|
if (hasRequiredFs$2) return fs$2;
|
|
6102
6102
|
hasRequiredFs$2 = 1;
|
|
6103
|
-
(function (exports) {
|
|
6104
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6105
|
-
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
6103
|
+
(function (exports$1) {
|
|
6104
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
6105
|
+
exports$1.createFileSystemAdapter = exports$1.FILE_SYSTEM_ADAPTER = void 0;
|
|
6106
6106
|
const fs = require$$0$4;
|
|
6107
|
-
exports.FILE_SYSTEM_ADAPTER = {
|
|
6107
|
+
exports$1.FILE_SYSTEM_ADAPTER = {
|
|
6108
6108
|
lstat: fs.lstat,
|
|
6109
6109
|
stat: fs.stat,
|
|
6110
6110
|
lstatSync: fs.lstatSync,
|
|
@@ -6112,11 +6112,11 @@ function requireFs$2 () {
|
|
|
6112
6112
|
};
|
|
6113
6113
|
function createFileSystemAdapter(fsMethods) {
|
|
6114
6114
|
if (fsMethods === undefined) {
|
|
6115
|
-
return exports.FILE_SYSTEM_ADAPTER;
|
|
6115
|
+
return exports$1.FILE_SYSTEM_ADAPTER;
|
|
6116
6116
|
}
|
|
6117
|
-
return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
|
|
6117
|
+
return Object.assign(Object.assign({}, exports$1.FILE_SYSTEM_ADAPTER), fsMethods);
|
|
6118
6118
|
}
|
|
6119
|
-
exports.createFileSystemAdapter = createFileSystemAdapter;
|
|
6119
|
+
exports$1.createFileSystemAdapter = createFileSystemAdapter;
|
|
6120
6120
|
} (fs$2));
|
|
6121
6121
|
return fs$2;
|
|
6122
6122
|
}
|
|
@@ -6530,11 +6530,11 @@ var hasRequiredFs;
|
|
|
6530
6530
|
function requireFs () {
|
|
6531
6531
|
if (hasRequiredFs) return fs;
|
|
6532
6532
|
hasRequiredFs = 1;
|
|
6533
|
-
(function (exports) {
|
|
6534
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6535
|
-
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
6533
|
+
(function (exports$1) {
|
|
6534
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
6535
|
+
exports$1.createFileSystemAdapter = exports$1.FILE_SYSTEM_ADAPTER = void 0;
|
|
6536
6536
|
const fs = require$$0$4;
|
|
6537
|
-
exports.FILE_SYSTEM_ADAPTER = {
|
|
6537
|
+
exports$1.FILE_SYSTEM_ADAPTER = {
|
|
6538
6538
|
lstat: fs.lstat,
|
|
6539
6539
|
stat: fs.stat,
|
|
6540
6540
|
lstatSync: fs.lstatSync,
|
|
@@ -6544,11 +6544,11 @@ function requireFs () {
|
|
|
6544
6544
|
};
|
|
6545
6545
|
function createFileSystemAdapter(fsMethods) {
|
|
6546
6546
|
if (fsMethods === undefined) {
|
|
6547
|
-
return exports.FILE_SYSTEM_ADAPTER;
|
|
6547
|
+
return exports$1.FILE_SYSTEM_ADAPTER;
|
|
6548
6548
|
}
|
|
6549
|
-
return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
|
|
6549
|
+
return Object.assign(Object.assign({}, exports$1.FILE_SYSTEM_ADAPTER), fsMethods);
|
|
6550
6550
|
}
|
|
6551
|
-
exports.createFileSystemAdapter = createFileSystemAdapter;
|
|
6551
|
+
exports$1.createFileSystemAdapter = createFileSystemAdapter;
|
|
6552
6552
|
} (fs));
|
|
6553
6553
|
return fs;
|
|
6554
6554
|
}
|
|
@@ -8080,9 +8080,9 @@ var hasRequiredSettings;
|
|
|
8080
8080
|
function requireSettings () {
|
|
8081
8081
|
if (hasRequiredSettings) return settings;
|
|
8082
8082
|
hasRequiredSettings = 1;
|
|
8083
|
-
(function (exports) {
|
|
8084
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8085
|
-
exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
8083
|
+
(function (exports$1) {
|
|
8084
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
8085
|
+
exports$1.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
8086
8086
|
const fs = require$$0$4;
|
|
8087
8087
|
const os = require$$0;
|
|
8088
8088
|
/**
|
|
@@ -8090,7 +8090,7 @@ function requireSettings () {
|
|
|
8090
8090
|
* https://github.com/nodejs/node/blob/7faeddf23a98c53896f8b574a6e66589e8fb1eb8/lib/os.js#L106-L107
|
|
8091
8091
|
*/
|
|
8092
8092
|
const CPU_COUNT = Math.max(os.cpus().length, 1);
|
|
8093
|
-
exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
|
|
8093
|
+
exports$1.DEFAULT_FILE_SYSTEM_ADAPTER = {
|
|
8094
8094
|
lstat: fs.lstat,
|
|
8095
8095
|
lstatSync: fs.lstatSync,
|
|
8096
8096
|
stat: fs.stat,
|
|
@@ -8135,10 +8135,10 @@ function requireSettings () {
|
|
|
8135
8135
|
return option === undefined ? value : option;
|
|
8136
8136
|
}
|
|
8137
8137
|
_getFileSystemMethods(methods = {}) {
|
|
8138
|
-
return Object.assign(Object.assign({}, exports.DEFAULT_FILE_SYSTEM_ADAPTER), methods);
|
|
8138
|
+
return Object.assign(Object.assign({}, exports$1.DEFAULT_FILE_SYSTEM_ADAPTER), methods);
|
|
8139
8139
|
}
|
|
8140
8140
|
}
|
|
8141
|
-
exports.default = Settings;
|
|
8141
|
+
exports$1.default = Settings;
|
|
8142
8142
|
} (settings));
|
|
8143
8143
|
return settings;
|
|
8144
8144
|
}
|