ornold-mcp 1.1.0 → 1.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.
Files changed (2) hide show
  1. package/dist/cli.js +3 -8
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1,12 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
5
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
6
- }) : x)(function(x) {
7
- if (typeof require !== "undefined") return require.apply(this, arguments);
8
- throw Error('Dynamic require of "' + x + '" is not supported');
9
- });
10
4
  var __esm = (fn, res) => function __init() {
11
5
  return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
12
6
  };
@@ -2096,9 +2090,10 @@ function connectServer() {
2096
2090
  return new Promise((resolve, reject) => {
2097
2091
  console.error(`[ornold] Connecting to ${SERVER_URL}...`);
2098
2092
  ws = new WebSocket(`${SERVER_URL}?token=${TOKEN}`);
2099
- ws.on("open", () => {
2093
+ ws.on("open", async () => {
2100
2094
  console.error("[ornold] Connected to server");
2101
- const hostname = __require("os").hostname();
2095
+ const { hostname: getHostname } = await import("os");
2096
+ const hostname = getHostname();
2102
2097
  const antidetects = {};
2103
2098
  if (LINKEN_PORT) antidetects.linken = { port: LINKEN_PORT };
2104
2099
  if (WADEX_PORT) antidetects.wadex = { port: WADEX_PORT };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ornold-mcp",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "type": "module",
5
5
  "main": "./dist/cli.js",
6
6
  "files": [