Comparing version 1.3.1 to 1.3.2
{ | ||
"name": "extes", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "A tiny library that extends native js with some handy tools", | ||
@@ -5,0 +5,0 @@ "main": "index.mjs", |
@@ -73,7 +73,11 @@ /** | ||
function DecorateChainedPromise(next_promise, previous) { | ||
Object.assign(next_promise, previous); | ||
for( const prop of Object.keys(previous)) { | ||
if ( prop === "_prev" ) continue; | ||
next_promise[prop] = previous[prop]; | ||
} | ||
delete next_promise._prev; | ||
Object.defineProperty(next_promise, '_prev', {value:previous}); | ||
Object.defineProperty(next_promise, '_prev', { | ||
value:previous, configurable:true, enumerable:false, writable:true | ||
}); | ||
return next_promise; | ||
} |
20812
681