@lsby/net-core 0.0.18 → 0.0.19

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.
@@ -350,11 +350,12 @@ var \u670D\u52A1\u5668 = class {
350
350
  res.send("\u672A\u77E5\u9519\u8BEF");
351
351
  }
352
352
  });
353
- var server;
353
+ var server = null;
354
354
  await new Promise((res, _rej) => {
355
355
  server = app.listen(this.\u7AEF\u53E3, () => res());
356
356
  });
357
- throw new Error("\u542F\u52A8\u670D\u52A1\u5668\u5931\u8D25");
357
+ if (server == null)
358
+ throw new Error("\u542F\u52A8\u670D\u52A1\u5668\u5931\u8D25");
358
359
  return {
359
360
  ip: Object.values((0, import_node_os.networkInterfaces)()).flat().flatMap((address) => address !== void 0 ? [address] : []).map((wrappedAddress) => wrappedAddress.address).map((address) => `http://${address}:${this.\u7AEF\u53E3}`),
360
361
  server
@@ -171,11 +171,12 @@ var \u670D\u52A1\u5668 = class {
171
171
  res.send("\u672A\u77E5\u9519\u8BEF");
172
172
  }
173
173
  });
174
- var server;
174
+ var server = null;
175
175
  await new Promise((res, _rej) => {
176
176
  server = app.listen(this.\u7AEF\u53E3, () => res());
177
177
  });
178
- throw new Error("\u542F\u52A8\u670D\u52A1\u5668\u5931\u8D25");
178
+ if (server == null)
179
+ throw new Error("\u542F\u52A8\u670D\u52A1\u5668\u5931\u8D25");
179
180
  return {
180
181
  ip: Object.values((0, import_node_os.networkInterfaces)()).flat().flatMap((address) => address !== void 0 ? [address] : []).map((wrappedAddress) => wrappedAddress.address).map((address) => `http://${address}:${this.\u7AEF\u53E3}`),
181
182
  server
@@ -47,11 +47,12 @@ var \u670D\u52A1\u5668 = class {
47
47
  res.send("\u672A\u77E5\u9519\u8BEF");
48
48
  }
49
49
  });
50
- var server;
50
+ var server = null;
51
51
  await new Promise((res, _rej) => {
52
52
  server = app.listen(this.\u7AEF\u53E3, () => res());
53
53
  });
54
- throw new Error("\u542F\u52A8\u670D\u52A1\u5668\u5931\u8D25");
54
+ if (server == null)
55
+ throw new Error("\u542F\u52A8\u670D\u52A1\u5668\u5931\u8D25");
55
56
  return {
56
57
  ip: Object.values(networkInterfaces()).flat().flatMap((address) => address !== void 0 ? [address] : []).map((wrappedAddress) => wrappedAddress.address).map((address) => `http://${address}:${this.\u7AEF\u53E3}`),
57
58
  server
package/dist/esm/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-5UUMGDDD.js";
4
4
  import {
5
5
  服务器
6
- } from "./chunk-OFMQBHC7.js";
6
+ } from "./chunk-S3ITAYKY.js";
7
7
  import {
8
8
  正确JSON结果,
9
9
  正确结果,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  服务器
3
- } from "../chunk-OFMQBHC7.js";
3
+ } from "../chunk-S3ITAYKY.js";
4
4
  import "../chunk-ZSY7VBEW.js";
5
5
  import "../chunk-LVYVPQ5V.js";
6
6
  import "../chunk-BZOQHDXK.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lsby/net-core",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "require": "./dist/cjs/index.cjs",
@@ -37,16 +37,11 @@
37
37
  },
38
38
  "devDependencies": {
39
39
  "@ianvs/prettier-plugin-sort-imports": "^4.2.1",
40
+ "@lsby/eslint-config": "^0.0.2",
40
41
  "@types/debug": "^4.1.12",
41
42
  "@types/node": "^20.12.10",
42
- "@typescript-eslint/eslint-plugin": "^7.8.0",
43
- "@typescript-eslint/parser": "^7.8.0",
44
43
  "@vitest/coverage-v8": "^2.0.2",
45
44
  "bumpp": "^9.4.1",
46
- "eslint": "^8.56.0",
47
- "eslint-config-prettier": "^9.1.0",
48
- "eslint-plugin-sort-class-members": "^1.20.0",
49
- "eslint-plugin-unused-imports": "^3.2.0",
50
45
  "prettier": "3.2.5",
51
46
  "prettier-plugin-packagejson": "^2.5.0",
52
47
  "tsup": "^8.0.2",