@effect/io
Advanced tools
Comparing version 0.0.20 to 0.0.21
@@ -57,2 +57,6 @@ /** | ||
export declare const getCallTrace: () => string | undefined; | ||
/** | ||
* @since 1.0.0 | ||
*/ | ||
export declare const debugAs: <F, G>(f: F, g: G) => G; | ||
//# sourceMappingURL=Debug.d.ts.map |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.withCallTrace = exports.runtimeDebug = exports.isTraceEnabled = exports.getCallTraceFromNewError = exports.getCallTrace = void 0; | ||
exports.withCallTrace = exports.runtimeDebug = exports.isTraceEnabled = exports.getCallTraceFromNewError = exports.getCallTrace = exports.debugAs = void 0; | ||
var _Function = /*#__PURE__*/require("@fp-ts/data/Function"); | ||
@@ -87,3 +87,10 @@ /** | ||
}; | ||
/** | ||
* @since 1.0.0 | ||
*/ | ||
exports.getCallTrace = getCallTrace; | ||
const debugAs = (f, g) => Object.assign(g, { | ||
debugAs: "debugAs" in f ? f["debugAs"] : f | ||
}); | ||
exports.debugAs = debugAs; | ||
//# sourceMappingURL=Debug.js.map |
@@ -326,3 +326,3 @@ "use strict"; | ||
return self => { | ||
return foldCauseEffect(cause => { | ||
return foldCauseEffect((0, _Debug.debugAs)(onFailure, cause => { | ||
const either = Cause.failureOrCause(cause); | ||
@@ -339,3 +339,3 @@ switch (either._tag) { | ||
} | ||
}, onSuccess)(self).traced(trace); | ||
}), onSuccess)(self).traced(trace); | ||
}; | ||
@@ -342,0 +342,0 @@ }; |
@@ -583,3 +583,3 @@ "use strict"; | ||
return self => { | ||
return core.foldEffect(e => core.succeed(onFailure(e)), a => core.succeed(onSuccess(a)))(self).traced(trace); | ||
return core.foldEffect((0, _Debug.debugAs)(onFailure, e => core.succeed(onFailure(e))), (0, _Debug.debugAs)(onSuccess, a => core.succeed(onSuccess(a))))(self).traced(trace); | ||
}; | ||
@@ -586,0 +586,0 @@ }; |
{ | ||
"name": "@effect/io", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -118,1 +118,7 @@ /** | ||
} | ||
/** | ||
* @since 1.0.0 | ||
*/ | ||
export const debugAs = <F, G>(f: F, g: G): G => | ||
Object.assign(g as any, { debugAs: "debugAs" in (f as any) ? f["debugAs"] : f }) as any |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
5412972
107078
0