@moneko/core 4.10.3 → 4.10.4
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/lib/dev/config.d.mts +0 -5
- package/lib/dev/config.mjs +2 -2
- package/package.json +2 -2
package/lib/dev/config.d.mts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import webpack from 'webpack';
|
|
2
2
|
export declare const PORT: number;
|
|
3
3
|
export declare function getServerAddress(type: 'local' | 'net'): string;
|
|
4
|
-
// const serverSuccessMsg: string = `${ink(' Local ', '231', { bg: 'blue' })} ${ink(
|
|
5
|
-
// getServerAddress('local'),
|
|
6
|
-
// '75',
|
|
7
|
-
// )}
|
|
8
|
-
// ${ink(' Network ', '231', { bg: '29' })} ${ink(getServerAddress('net'), 'green')}`;
|
|
9
4
|
export declare function devLog(err?: Error | null, stats?: webpack.Stats): void;
|
package/lib/dev/config.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{ink as e,println as o,termClear as r}from"@moneko/utils";import{hostHelp as m}from"../commom/host.mjs";import
|
|
2
|
-
`,"245");export function getServerAddress(e){return`${a.devServer.https?"https":"http"}://${"local"===e?a.devServer.host:
|
|
1
|
+
import{ink as e,println as o,termClear as r}from"@moneko/utils";import{hostHelp as m}from"../commom/host.mjs";import s from"../commom/log.mjs";import{getIPv4 as t,getPort as n}from"../commom/net.mjs";import i from"../commom/print-log.mjs";import{releasePortExclusion as l}from"../commom/release-port-exclusion.mjs";import{CONFIG as a}from"../config.mjs";import{packageJson as c}from"../process-env.mjs";let p=a.devServer.port||3e3;export const PORT=await n(p);l(PORT),a.devServer.port=PORT;let d="/"===a.basename?"":a.basename,g=p!==PORT&&e(`Port ${e(`${p}`,"yellow")} is in use, trying ${e(`${PORT}`,"green")} instead.
|
|
2
|
+
`,"245");export function getServerAddress(e){return`${a.devServer.https?"https":"http"}://${"local"===e?a.devServer.host:t()}:${PORT}${d}`}let u=e("Your application is running here:","245"),v=[e(` ${c.name} `,"253",{bg:"130"}),e(` v${c.version} `,"130",{bg:"255"}),e(" • [","245"),e(c.description,"130"),e("]","245")].join("");export function devLog(t,n){r(3);let l=(n?.endTime??0)-(n?.startTime??0);if(o(v,!0),o("",!0),o(u,!0),o("",!0),i("Local",getServerAddress("local"),{timestamp:!1,labelBackgroundColor:"blue",labelLen:9}),i("Network",getServerAddress("net"),{timestamp:!1,labelBackgroundColor:"29"}),o("",!0),o(e(`Compiled successfully in ${e(`${l}ms`,"green")}`,"245"),!0),o("",!0),g&&o(g),m(a.devServer.host),n){let e=[];n.compilation.warnings.forEach(r=>{r.message.includes("Conflicting order between css ./node_modules/")&&r.message.includes("monaco-editor")?e.push(r.message):o(r.message)}),n.compilation.errors.forEach(e=>{o(e.message)}),e.length&&s(e.join("\n"))}t&&o(t.message)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moneko/core",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.4",
|
|
4
4
|
"description": "@moneko/core",
|
|
5
5
|
"main": "lib/index.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"@moneko/stylelint": "1.8.3",
|
|
140
140
|
"@moneko/transform-imports": "1.5.0",
|
|
141
141
|
"@moneko/utils": "0.3.3",
|
|
142
|
-
"@swc/core": "1.16.
|
|
142
|
+
"@swc/core": "1.16.1",
|
|
143
143
|
"browserslist": "4.28.8",
|
|
144
144
|
"core-js": "3.50.0",
|
|
145
145
|
"core-js-compat": "3.50.0",
|