socket-function 0.12.14 → 0.12.15
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.12.
|
|
3
|
+
"version": "0.12.15",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"node-forge": "https://github.com/sliftist/forge#name",
|
|
14
14
|
"pako": "^2.1.0",
|
|
15
15
|
"preact": "^10.10.6",
|
|
16
|
-
"typenode": "^5.4.
|
|
16
|
+
"typenode": "^5.4.1",
|
|
17
17
|
"ws": "^8.8.0"
|
|
18
18
|
},
|
|
19
19
|
"optionalDependencies": {
|
|
@@ -218,11 +218,16 @@ class RequireControllerBase {
|
|
|
218
218
|
// - And now it increases the size by much less, as we ignore any subtree which are entirely
|
|
219
219
|
// not allowed on the client.
|
|
220
220
|
for (let request in module.requires) {
|
|
221
|
+
|
|
221
222
|
let requireResolvedPath = module.requires[request];
|
|
222
223
|
let requiredModule = require.cache[requireResolvedPath];
|
|
223
224
|
|
|
224
225
|
if (requiredModule) {
|
|
225
|
-
|
|
226
|
+
// Only include synchronous modules. BUT, DO include the requests, so when/if the request is made
|
|
227
|
+
// it can be resolved correctly.
|
|
228
|
+
if (!module.asyncRequires[request]) {
|
|
229
|
+
addModule(requiredModule);
|
|
230
|
+
}
|
|
226
231
|
moduleObj.requests[request] = requiredModule.filename;
|
|
227
232
|
} else {
|
|
228
233
|
moduleObj.requests[request] = "";
|