@oclif/plugin-test-esbuild 0.5.50 → 0.5.52
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/README.md +1 -1
- package/dist/{chunk-6I4J323H.js → chunk-5LF545V4.js} +42 -26
- package/dist/{chunk-OC2FZC3J.js → chunk-6AJVZVTV.js} +1 -1
- package/dist/{chunk-OX4WZJ6B.js → chunk-7IYQQBC6.js} +1 -1
- package/dist/{chunk-TJ6ABSBA.js → chunk-JIWRUWYK.js} +1 -1
- package/dist/{chunk-MVMG5SOT.js → chunk-LSUXYPBX.js} +1 -1
- package/dist/commands/esbuild.js +2 -2
- package/dist/commands/hello/index.js +2 -2
- package/dist/commands/hello/world.js +2 -2
- package/dist/hooks/init/init.js +2 -2
- package/dist/index.js +5 -5
- package/oclif.manifest.json +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ $ npm install -g @oclif/plugin-test-esbuild
|
|
|
17
17
|
$ bundle COMMAND
|
|
18
18
|
running command...
|
|
19
19
|
$ bundle (--version)
|
|
20
|
-
@oclif/plugin-test-esbuild/0.5.
|
|
20
|
+
@oclif/plugin-test-esbuild/0.5.52 linux-x64 node-v22.12.0
|
|
21
21
|
$ bundle --help [COMMAND]
|
|
22
22
|
USAGE
|
|
23
23
|
$ bundle COMMAND
|
|
@@ -1308,50 +1308,64 @@ var require_common = __commonJS({
|
|
|
1308
1308
|
createDebug.namespaces = namespaces;
|
|
1309
1309
|
createDebug.names = [];
|
|
1310
1310
|
createDebug.skips = [];
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
}
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1311
|
+
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(" ", ",").split(",").filter(Boolean);
|
|
1312
|
+
for (const ns of split) {
|
|
1313
|
+
if (ns[0] === "-") {
|
|
1314
|
+
createDebug.skips.push(ns.slice(1));
|
|
1315
|
+
} else {
|
|
1316
|
+
createDebug.names.push(ns);
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
function matchesTemplate(search, template) {
|
|
1321
|
+
let searchIndex = 0;
|
|
1322
|
+
let templateIndex = 0;
|
|
1323
|
+
let starIndex = -1;
|
|
1324
|
+
let matchIndex = 0;
|
|
1325
|
+
while (searchIndex < search.length) {
|
|
1326
|
+
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
1327
|
+
if (template[templateIndex] === "*") {
|
|
1328
|
+
starIndex = templateIndex;
|
|
1329
|
+
matchIndex = searchIndex;
|
|
1330
|
+
templateIndex++;
|
|
1331
|
+
} else {
|
|
1332
|
+
searchIndex++;
|
|
1333
|
+
templateIndex++;
|
|
1334
|
+
}
|
|
1335
|
+
} else if (starIndex !== -1) {
|
|
1336
|
+
templateIndex = starIndex + 1;
|
|
1337
|
+
matchIndex++;
|
|
1338
|
+
searchIndex = matchIndex;
|
|
1321
1339
|
} else {
|
|
1322
|
-
|
|
1340
|
+
return false;
|
|
1323
1341
|
}
|
|
1324
1342
|
}
|
|
1343
|
+
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
1344
|
+
templateIndex++;
|
|
1345
|
+
}
|
|
1346
|
+
return templateIndex === template.length;
|
|
1325
1347
|
}
|
|
1326
1348
|
function disable() {
|
|
1327
1349
|
const namespaces = [
|
|
1328
|
-
...createDebug.names
|
|
1329
|
-
...createDebug.skips.map(
|
|
1350
|
+
...createDebug.names,
|
|
1351
|
+
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
1330
1352
|
].join(",");
|
|
1331
1353
|
createDebug.enable("");
|
|
1332
1354
|
return namespaces;
|
|
1333
1355
|
}
|
|
1334
1356
|
function enabled(name) {
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
}
|
|
1338
|
-
let i;
|
|
1339
|
-
let len;
|
|
1340
|
-
for (i = 0, len = createDebug.skips.length; i < len; i++) {
|
|
1341
|
-
if (createDebug.skips[i].test(name)) {
|
|
1357
|
+
for (const skip of createDebug.skips) {
|
|
1358
|
+
if (matchesTemplate(name, skip)) {
|
|
1342
1359
|
return false;
|
|
1343
1360
|
}
|
|
1344
1361
|
}
|
|
1345
|
-
for (
|
|
1346
|
-
if (
|
|
1362
|
+
for (const ns of createDebug.names) {
|
|
1363
|
+
if (matchesTemplate(name, ns)) {
|
|
1347
1364
|
return true;
|
|
1348
1365
|
}
|
|
1349
1366
|
}
|
|
1350
1367
|
return false;
|
|
1351
1368
|
}
|
|
1352
|
-
function toNamespace(regexp) {
|
|
1353
|
-
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
|
|
1354
|
-
}
|
|
1355
1369
|
function coerce(val) {
|
|
1356
1370
|
if (val instanceof Error) {
|
|
1357
1371
|
return val.stack || val.message;
|
|
@@ -225828,6 +225842,7 @@ var require_src2 = __commonJS({
|
|
|
225828
225842
|
var path = __require("path");
|
|
225829
225843
|
var fs = __require("fs");
|
|
225830
225844
|
var os = __require("os");
|
|
225845
|
+
var url = __require("url");
|
|
225831
225846
|
var fsReadFileAsync = fs.promises.readFile;
|
|
225832
225847
|
function getDefaultSearchPlaces(name, sync) {
|
|
225833
225848
|
return [
|
|
@@ -225860,9 +225875,10 @@ var require_src2 = __commonJS({
|
|
|
225860
225875
|
module.exports.defaultLoadersSync = defaultLoadersSync;
|
|
225861
225876
|
var dynamicImport = async (id) => {
|
|
225862
225877
|
try {
|
|
225878
|
+
const fileUrl = url.pathToFileURL(id).href;
|
|
225863
225879
|
const mod = await import(
|
|
225864
225880
|
/* webpackIgnore: true */
|
|
225865
|
-
|
|
225881
|
+
fileUrl
|
|
225866
225882
|
);
|
|
225867
225883
|
return mod.default;
|
|
225868
225884
|
} catch (e) {
|
package/dist/commands/esbuild.js
CHANGED
package/dist/hooks/init/init.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ESBuild
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JIWRUWYK.js";
|
|
4
4
|
import {
|
|
5
5
|
Hello
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LSUXYPBX.js";
|
|
7
7
|
import {
|
|
8
8
|
World
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7IYQQBC6.js";
|
|
10
10
|
import {
|
|
11
11
|
init_default
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6AJVZVTV.js";
|
|
13
13
|
import {
|
|
14
14
|
require_ansis,
|
|
15
15
|
require_lib,
|
|
16
16
|
require_src
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5LF545V4.js";
|
|
18
18
|
import {
|
|
19
19
|
require_lib as require_lib2
|
|
20
20
|
} from "./chunk-SO2G2ODZ.js";
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oclif/plugin-test-esbuild",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.52",
|
|
4
4
|
"description": "Bundled plugin for testing",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/oclif/plugin-test-esbuild/issues",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@oclif/core": "^4",
|
|
15
|
-
"@oclif/plugin-test-esm-1": "^0.8.
|
|
16
|
-
"@oclif/plugin-plugins": "^5.4.
|
|
15
|
+
"@oclif/plugin-test-esm-1": "^0.8.46",
|
|
16
|
+
"@oclif/plugin-plugins": "^5.4.22"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@oclif/prettier-config": "^0.2.1",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"eslint-config-oclif-typescript": "^3",
|
|
29
29
|
"eslint-config-prettier": "^9.1.0",
|
|
30
30
|
"mocha": "^10",
|
|
31
|
-
"oclif": "^4.
|
|
31
|
+
"oclif": "^4.16.0",
|
|
32
32
|
"shx": "^0.3.4",
|
|
33
33
|
"ts-node": "^10.9.2",
|
|
34
34
|
"typescript": "^5"
|