Comparing version 0.3.2 to 0.3.3
@@ -59,3 +59,3 @@ var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
if (result && isType("object", result) && isType("function", result.then)) { | ||
result = result.then((r) => resultTuple[1] = r).catch((e) => { | ||
const newPromise = result.then((r) => resultTuple[1] = r).catch((e) => { | ||
resultTuple[0] = "error"; | ||
@@ -65,2 +65,4 @@ resultTuple[1] = e; | ||
}); | ||
Object.assign(newPromise, result); | ||
result = newPromise; | ||
} | ||
@@ -67,0 +69,0 @@ fn.results.push(resultTuple); |
{ | ||
"name": "tinyspy", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7740
219