@windwalker-io/fusion-next 0.1.1 → 0.1.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/LICENSE +19 -19
- package/dist/index.cjs +12 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +12 -8
- package/dist/index.js.map +1 -1
- package/jest.config.ts +214 -214
- package/package.json +54 -54
- package/resources/img/credit.txt +2 -2
- package/types/vue/global.d.ts +14 -14
- package/types/vue/shims-vue.d.ts +5 -5
- package/types/vue/vue-runtime.d.ts +16 -16
- package/vite.config.ts +71 -71
package/LICENSE
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
Copyright (c) 2018 Simon Asika
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
-
in the Software without restriction, including without limitation the rights
|
|
6
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
-
furnished to do so, subject to the following conditions:
|
|
9
|
-
|
|
10
|
-
The above copyright notice and this permission notice shall be included in all
|
|
11
|
-
copies or substantial portions of the Software.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
14
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
15
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
16
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
17
|
-
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
18
|
-
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
|
19
|
-
OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1
|
+
Copyright (c) 2018 Simon Asika
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
14
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
15
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
16
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
17
|
+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
18
|
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
|
19
|
+
OR OTHER DEALINGS IN THE SOFTWARE.
|
package/dist/index.cjs
CHANGED
|
@@ -2031,6 +2031,7 @@ class ConfigBuilder {
|
|
|
2031
2031
|
copyTasks = [];
|
|
2032
2032
|
linkTasks = [];
|
|
2033
2033
|
postBuildCallbacks = [];
|
|
2034
|
+
serverStopCallbacks = [];
|
|
2034
2035
|
resolveIdCallbacks = [];
|
|
2035
2036
|
loadCallbacks = [];
|
|
2036
2037
|
// fileNameMap: Record<string, string> = {};
|
|
@@ -2853,8 +2854,8 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
2853
2854
|
if (isFirstPacket) {
|
|
2854
2855
|
isFirstPacket = false;
|
|
2855
2856
|
let binaryVersion = String.fromCharCode(...bytes);
|
|
2856
|
-
if (binaryVersion !== "0.25.
|
|
2857
|
-
throw new Error(`Cannot start service: Host version "${"0.25.
|
|
2857
|
+
if (binaryVersion !== "0.25.10") {
|
|
2858
|
+
throw new Error(`Cannot start service: Host version "${"0.25.10"}" does not match binary version ${quote(binaryVersion)}`);
|
|
2858
2859
|
}
|
|
2859
2860
|
return;
|
|
2860
2861
|
}
|
|
@@ -3980,7 +3981,7 @@ for your current platform.`);
|
|
|
3980
3981
|
"node_modules",
|
|
3981
3982
|
".cache",
|
|
3982
3983
|
"esbuild",
|
|
3983
|
-
`pnpapi-${pkg.replace("/", "-")}-${"0.25.
|
|
3984
|
+
`pnpapi-${pkg.replace("/", "-")}-${"0.25.10"}-${path.basename(subpath)}`
|
|
3984
3985
|
);
|
|
3985
3986
|
if (!fs.existsSync(binTargetPath)) {
|
|
3986
3987
|
fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
|
|
@@ -4015,7 +4016,7 @@ for your current platform.`);
|
|
|
4015
4016
|
}
|
|
4016
4017
|
}
|
|
4017
4018
|
var _a;
|
|
4018
|
-
var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.25.
|
|
4019
|
+
var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.25.10";
|
|
4019
4020
|
var esbuildCommandAndArgs = () => {
|
|
4020
4021
|
if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
|
|
4021
4022
|
throw new Error(
|
|
@@ -4080,7 +4081,7 @@ for your current platform.`);
|
|
|
4080
4081
|
}
|
|
4081
4082
|
}
|
|
4082
4083
|
};
|
|
4083
|
-
var version = "0.25.
|
|
4084
|
+
var version = "0.25.10";
|
|
4084
4085
|
var build = (options) => ensureServiceIsRunning().build(options);
|
|
4085
4086
|
var context = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
|
|
4086
4087
|
var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
|
|
@@ -4183,7 +4184,7 @@ for your current platform.`);
|
|
|
4183
4184
|
var ensureServiceIsRunning = () => {
|
|
4184
4185
|
if (longLivedService) return longLivedService;
|
|
4185
4186
|
let [command, args] = esbuildCommandAndArgs();
|
|
4186
|
-
let child = child_process.spawn(command, args.concat(`--service=${"0.25.
|
|
4187
|
+
let child = child_process.spawn(command, args.concat(`--service=${"0.25.10"}`, "--ping"), {
|
|
4187
4188
|
windowsHide: true,
|
|
4188
4189
|
stdio: ["pipe", "pipe", "inherit"],
|
|
4189
4190
|
cwd: defaultWD
|
|
@@ -4287,7 +4288,7 @@ for your current platform.`);
|
|
|
4287
4288
|
esbuild: node_exports
|
|
4288
4289
|
});
|
|
4289
4290
|
callback(service);
|
|
4290
|
-
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.25.
|
|
4291
|
+
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.25.10"}`), {
|
|
4291
4292
|
cwd: defaultWD,
|
|
4292
4293
|
windowsHide: true,
|
|
4293
4294
|
input: stdin,
|
|
@@ -4307,7 +4308,7 @@ for your current platform.`);
|
|
|
4307
4308
|
var startWorkerThreadService = (worker_threads2) => {
|
|
4308
4309
|
let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
|
|
4309
4310
|
let worker = new worker_threads2.Worker(__filename, {
|
|
4310
|
-
workerData: { workerPort, defaultWD, esbuildVersion: "0.25.
|
|
4311
|
+
workerData: { workerPort, defaultWD, esbuildVersion: "0.25.10" },
|
|
4311
4312
|
transferList: [workerPort],
|
|
4312
4313
|
// From node's documentation: https://nodejs.org/api/worker_threads.html
|
|
4313
4314
|
//
|
|
@@ -8925,6 +8926,9 @@ function useFusion(fusionOptions = {}, tasks) {
|
|
|
8925
8926
|
fs$1.writeFileSync(node_path.resolve(server.config.root, serverFile), url);
|
|
8926
8927
|
if (!exitHandlersBound) {
|
|
8927
8928
|
process.on("exit", () => {
|
|
8929
|
+
for (const callback of exports.builder.serverStopCallbacks) {
|
|
8930
|
+
callback(resolvedConfig, server);
|
|
8931
|
+
}
|
|
8928
8932
|
if (fs$1.existsSync(serverFile)) {
|
|
8929
8933
|
fs$1.rmSync(serverFile);
|
|
8930
8934
|
}
|