statebus 6.1.25 → 6.1.27

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "statebus",
3
- "version": "6.1.25",
3
+ "version": "6.1.27",
4
4
  "description": "Synchronize state.",
5
5
  "main": "statebus.js",
6
6
  "scripts": {
package/server.js CHANGED
@@ -2021,12 +2021,12 @@ function import_server (bus, options)
2021
2021
  // }
2022
2022
 
2023
2023
  // For anything else, go ahead and add it to the user object
2024
- var protected = {key:1, name:1, /*pic:1,*/ pass:1}
2024
+ var protected_fields = {key:1, name:1, /*pic:1,*/ pass:1}
2025
2025
  for (var k in o)
2026
- if (!protected.hasOwnProperty(k))
2026
+ if (!protected_fields.hasOwnProperty(k))
2027
2027
  u[k] = o[k]
2028
2028
  for (var k in u)
2029
- if (!protected.hasOwnProperty(k) && !o.hasOwnProperty(k))
2029
+ if (!protected_fields.hasOwnProperty(k) && !o.hasOwnProperty(k))
2030
2030
  delete u[k]
2031
2031
 
2032
2032
  master.save(u)