@nxtedition/lib 14.0.1 → 14.0.3

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": "@nxtedition/lib",
3
- "version": "14.0.1",
3
+ "version": "14.0.3",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "files": [
@@ -162,15 +162,16 @@ module.exports = ({ ds, ...options }) => {
162
162
  this._subscription = null
163
163
  this._args = null
164
164
  this._ready = false
165
- this._handler = {
166
- get: (target, prop) => proxyify(target[prop], this),
167
- }
168
- this._proxify = Boolean(options.proxyify)
165
+ this._handler = options.proxyify
166
+ ? {
167
+ get: (target, prop) => proxyify(target[prop], this),
168
+ }
169
+ : null
169
170
 
170
171
  if (rxjs.isObservable(args)) {
171
172
  this._subscription = args.subscribe({
172
173
  next: (args) => {
173
- this._args = this._proxify ? proxyify(args, this) : args
174
+ this._args = this._handler ? proxyify(args, this) : args
174
175
  this._ready = true
175
176
  this._refresh()
176
177
  },
@@ -183,7 +184,7 @@ module.exports = ({ ds, ...options }) => {
183
184
  },
184
185
  })
185
186
  } else {
186
- this._args = this._proxify ? proxyify(args, this) : args
187
+ this._args = this._handler ? proxyify(args, this) : args
187
188
  this._ready = true
188
189
  }
189
190
 
@@ -299,9 +300,10 @@ module.exports = ({ ds, ...options }) => {
299
300
  }
300
301
  }
301
302
 
302
- if (!self._entries) {
303
- self._args = null
304
- }
303
+ // TODO (perf): Make this work.
304
+ // if (!self._entries) {
305
+ // self._args = null
306
+ // }
305
307
 
306
308
  self._disposing = false
307
309
  }