@nxtedition/lib 20.4.6 → 20.4.8
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/serializers.js +5 -5
- package/util/template/javascript.js +1 -2
package/package.json
CHANGED
package/serializers.js
CHANGED
|
@@ -207,11 +207,7 @@ function errSerializer(err) {
|
|
|
207
207
|
if (!Object.prototype.hasOwnProperty.call(val, seen)) {
|
|
208
208
|
_err[key] = errSerializer(val)
|
|
209
209
|
}
|
|
210
|
-
} else if (
|
|
211
|
-
val != null &&
|
|
212
|
-
key[0] !== key[0].toUpperCase() &&
|
|
213
|
-
(key !== 'emitter' || typeof val !== 'object')
|
|
214
|
-
) {
|
|
210
|
+
} else if (val != null && key[0] !== key[0].toUpperCase()) {
|
|
215
211
|
_err[key] = val
|
|
216
212
|
}
|
|
217
213
|
}
|
|
@@ -233,6 +229,10 @@ function errSerializer(err) {
|
|
|
233
229
|
_err.code = String(_err.code)
|
|
234
230
|
}
|
|
235
231
|
|
|
232
|
+
if (_err.emitter != null && typeof _err.emitter === 'object') {
|
|
233
|
+
_err.emitter = undefined
|
|
234
|
+
}
|
|
235
|
+
|
|
236
236
|
if (_err.statusCode == null && _err.status != null) {
|
|
237
237
|
_err.statusCode = Number(_err.status) || undefined
|
|
238
238
|
}
|
|
@@ -537,12 +537,11 @@ export default function ({ ds, proxify, compiler }) {
|
|
|
537
537
|
const timeout = dueTime - Date.now()
|
|
538
538
|
|
|
539
539
|
if (Number.isFinite(dueTime) && timeout > 0) {
|
|
540
|
-
this._suspended = true
|
|
541
540
|
this._getEntry(key, TimerEntry, timeout)
|
|
542
541
|
if (suspend ?? this._errored) {
|
|
543
542
|
throw kSuspend
|
|
544
543
|
} else {
|
|
545
|
-
return
|
|
544
|
+
return null
|
|
546
545
|
}
|
|
547
546
|
}
|
|
548
547
|
|