teamplay 0.4.0-alpha.25 → 0.4.0-alpha.26

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.
@@ -249,7 +249,15 @@ class SignalCompat extends Signal {
249
249
  object = path
250
250
  }
251
251
  const $target = resolveSignal(this, segments)
252
- return Signal.prototype.assign.call($target, object)
252
+ if (!object) return
253
+ if (typeof object !== 'object') {
254
+ throw Error('Signal.setEach() expects an object argument, got: ' + typeof object)
255
+ }
256
+ const promises = []
257
+ for (const key of Object.keys(object)) {
258
+ promises.push(SignalCompat.prototype.set.call($target[key], object[key]))
259
+ }
260
+ await Promise.all(promises)
253
261
  }
254
262
 
255
263
  async del (path) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teamplay",
3
- "version": "0.4.0-alpha.25",
3
+ "version": "0.4.0-alpha.26",
4
4
  "description": "Full-stack signals ORM with multiplayer",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -81,5 +81,5 @@
81
81
  ]
82
82
  },
83
83
  "license": "MIT",
84
- "gitHead": "4f833dccf5420e81a390dece06386f920256ca94"
84
+ "gitHead": "659791230881f0419bf28dc983f2624f6a05d076"
85
85
  }