statebus 7.0.12 → 7.0.14
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/server-library.js +1 -1
- package/statebus.js +1 -1
package/package.json
CHANGED
package/server-library.js
CHANGED
|
@@ -166,7 +166,7 @@ function import_server (bus, make_statebus, options)
|
|
|
166
166
|
|
|
167
167
|
// Handle the GET or PUT request!
|
|
168
168
|
if (req.method === 'GET') {
|
|
169
|
-
var key = req.
|
|
169
|
+
var key = req.url.substr(1)
|
|
170
170
|
|
|
171
171
|
// Make a temporary client bus
|
|
172
172
|
var cbus = bus.bus_for_http_client(req, res)
|
package/statebus.js
CHANGED
|
@@ -1673,7 +1673,7 @@
|
|
|
1673
1673
|
}
|
|
1674
1674
|
|
|
1675
1675
|
// Recurse through each property on objects
|
|
1676
|
-
else if (typeof input === 'object') {
|
|
1676
|
+
else if (typeof input === 'object' && input !== null) {
|
|
1677
1677
|
var new_obj = {}
|
|
1678
1678
|
for (var k in input)
|
|
1679
1679
|
new_obj[f(k, input)] = translate_fields(input[k], f)
|