@nekosu/maa-checker 1.0.1 → 1.0.2
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/dist/main.js +12 -12
- package/dist/main.js.map +2 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1043,8 +1043,8 @@ var ContentJson = class {
|
|
|
1043
1043
|
}
|
|
1044
1044
|
async flush() {
|
|
1045
1045
|
if (this.duringFlush) {
|
|
1046
|
-
return new Promise((
|
|
1047
|
-
this.flushResolve.push(
|
|
1046
|
+
return new Promise((resolve4) => {
|
|
1047
|
+
this.flushResolve.push(resolve4);
|
|
1048
1048
|
});
|
|
1049
1049
|
}
|
|
1050
1050
|
this.duringFlush = true;
|
|
@@ -2718,8 +2718,8 @@ var BundleManager = class {
|
|
|
2718
2718
|
}
|
|
2719
2719
|
async flush() {
|
|
2720
2720
|
if (this.duringFlush) {
|
|
2721
|
-
return new Promise((
|
|
2722
|
-
this.flushResolve.push(
|
|
2721
|
+
return new Promise((resolve4) => {
|
|
2722
|
+
this.flushResolve.push(resolve4);
|
|
2723
2723
|
});
|
|
2724
2724
|
}
|
|
2725
2725
|
this.duringFlush = true;
|
|
@@ -3795,7 +3795,7 @@ var NodeFsHandler = class {
|
|
|
3795
3795
|
this._addToNodeFs(path6, initialAdd, wh, depth + 1);
|
|
3796
3796
|
}
|
|
3797
3797
|
}).on(EV.ERROR, this._boundHandleError);
|
|
3798
|
-
return new Promise((
|
|
3798
|
+
return new Promise((resolve4, reject) => {
|
|
3799
3799
|
if (!stream)
|
|
3800
3800
|
return reject();
|
|
3801
3801
|
stream.once(STR_END, () => {
|
|
@@ -3804,7 +3804,7 @@ var NodeFsHandler = class {
|
|
|
3804
3804
|
return;
|
|
3805
3805
|
}
|
|
3806
3806
|
const wasThrottled = throttler ? throttler.clear() : false;
|
|
3807
|
-
|
|
3807
|
+
resolve4(void 0);
|
|
3808
3808
|
previous.getChildren().filter((item) => {
|
|
3809
3809
|
return item !== directory && !current.has(item);
|
|
3810
3810
|
}).forEach((item) => {
|
|
@@ -4677,9 +4677,9 @@ var FsContentWatcher = class {
|
|
|
4677
4677
|
watcher.on("unlink", (file) => {
|
|
4678
4678
|
delegate.fileDeleted(file);
|
|
4679
4679
|
});
|
|
4680
|
-
await new Promise((
|
|
4680
|
+
await new Promise((resolve4) => {
|
|
4681
4681
|
watcher.on("ready", () => {
|
|
4682
|
-
|
|
4682
|
+
resolve4();
|
|
4683
4683
|
});
|
|
4684
4684
|
});
|
|
4685
4685
|
return {
|
|
@@ -5664,7 +5664,7 @@ var InterfaceBundle = class extends import_node_events3.default {
|
|
|
5664
5664
|
// pkgs/maa-checker/package.json
|
|
5665
5665
|
var package_default = {
|
|
5666
5666
|
name: "@nekosu/maa-checker",
|
|
5667
|
-
version: "1.0.
|
|
5667
|
+
version: "1.0.2",
|
|
5668
5668
|
bin: {
|
|
5669
5669
|
"maa-checker": "bin/maa-checker"
|
|
5670
5670
|
},
|
|
@@ -5702,7 +5702,7 @@ async function main() {
|
|
|
5702
5702
|
console.log(`Usage: npx ${package_default.name} <interface path> [--raw]`);
|
|
5703
5703
|
process.exit(1);
|
|
5704
5704
|
}
|
|
5705
|
-
const interfacePath = process.argv[2];
|
|
5705
|
+
const interfacePath = path5.resolve(process.argv[2]);
|
|
5706
5706
|
const rawMode = process.argv[3] === "--raw";
|
|
5707
5707
|
const bundle = new InterfaceBundle(
|
|
5708
5708
|
new FsContentLoader(),
|
|
@@ -5724,8 +5724,8 @@ async function main() {
|
|
|
5724
5724
|
console.log(`Checking ${resourceName}`);
|
|
5725
5725
|
}
|
|
5726
5726
|
bundle.switchActive(resourceName);
|
|
5727
|
-
await new Promise((
|
|
5728
|
-
bundle.once("bundleReloaded",
|
|
5727
|
+
await new Promise((resolve4) => {
|
|
5728
|
+
bundle.once("bundleReloaded", resolve4);
|
|
5729
5729
|
});
|
|
5730
5730
|
const diags = performDiagnostic(bundle);
|
|
5731
5731
|
outputs.push(...diags);
|