socket-function 0.48.0 → 0.50.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
|
@@ -225,7 +225,7 @@ class RequireControllerBase {
|
|
|
225
225
|
seqNum: module.requireControllerSeqNum,
|
|
226
226
|
size: module.size,
|
|
227
227
|
version: module.version,
|
|
228
|
-
asyncRequests: module.asyncRequires,
|
|
228
|
+
asyncRequests: module.asyncRequires || {},
|
|
229
229
|
flags: {},
|
|
230
230
|
};
|
|
231
231
|
for (let [flag, value] of Object.entries(module)) {
|
|
@@ -256,7 +256,7 @@ class RequireControllerBase {
|
|
|
256
256
|
if (requiredModule) {
|
|
257
257
|
// Only include synchronous modules. BUT, DO include the requests, so when/if the request is made
|
|
258
258
|
// it can be resolved correctly.
|
|
259
|
-
if (!module.asyncRequires[request]) {
|
|
259
|
+
if (!module.asyncRequires?.[request]) {
|
|
260
260
|
addModule(requiredModule);
|
|
261
261
|
}
|
|
262
262
|
moduleObj.requests[request] = requiredModule.filename;
|
package/src/callManager.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../hot/HotReloadController.ts" />
|
|
1
2
|
import { CallerContext, CallType, ClientHookContext, FullCallType, FunctionFlags, HookContext, SocketExposedInterface, SocketExposedInterfaceClass, SocketExposedShape, SocketFunctionClientHook, SocketFunctionHook, SocketRegistered } from "../SocketFunctionTypes";
|
|
2
3
|
import { _setSocketContext } from "../SocketFunction";
|
|
3
4
|
import { entries, isNode } from "./misc";
|