socket-function 0.121.0 → 0.123.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "socket-function",
3
- "version": "0.121.0",
3
+ "version": "0.123.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
@@ -11,7 +11,7 @@
11
11
  "pako": "^2.1.0",
12
12
  "preact": "10.24.3",
13
13
  "typedev": "^0.4.0",
14
- "typenode": "^5.10.0",
14
+ "typenode": "^5.12.0",
15
15
  "ws": "^8.17.1"
16
16
  },
17
17
  "scripts": {
@@ -186,6 +186,7 @@ export function requireMain() {
186
186
  source: string;
187
187
  allowclient: boolean;
188
188
  size: number;
189
+ original: SerializedModule;
189
190
  import: (request: string, asyncIsFine?: boolean) => unknown;
190
191
  };
191
192
 
@@ -736,6 +737,8 @@ export function requireMain() {
736
737
  // Skip double loads
737
738
  if (module.evaluateStarted) return;
738
739
 
740
+ module.original = serializedModule;
741
+
739
742
  module.requires = serializedModule.requests;
740
743
  module.require = createRequire(module, serializedModule) as any;
741
744
  // TODO: Once typescript supports dynamic import, map import() to importDynamic, so it