socket-function 0.122.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 +1 -1
- package/require/require.ts +3 -0
package/package.json
CHANGED
package/require/require.ts
CHANGED
|
@@ -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
|