@cardano-ogmios/client
Advanced tools
Comparing version 5.5.4 to 5.5.5
@@ -34,33 +34,32 @@ "use strict"; | ||
const { ScriptFailures } = EvaluationFailure; | ||
if (Array.isArray(ScriptFailures)) { | ||
return ScriptFailures.map(failure => { | ||
if (evaluationErrors_1.errors.ExtraRedeemers.assert(failure)) { | ||
return new evaluationErrors_1.errors.ExtraRedeemers.Error(failure); | ||
} | ||
else if (evaluationErrors_1.errors.IllFormedExecutionBudget.assert(failure)) { | ||
return new evaluationErrors_1.errors.IllFormedExecutionBudget.Error(failure); | ||
} | ||
else if (evaluationErrors_1.errors.MissingRequiredDatums.assert(failure)) { | ||
return new evaluationErrors_1.errors.MissingRequiredDatums.Error(failure); | ||
} | ||
else if (evaluationErrors_1.errors.MissingRequiredScripts.assert(failure)) { | ||
return new evaluationErrors_1.errors.MissingRequiredScripts.Error(failure); | ||
} | ||
else if (evaluationErrors_1.errors.NoCostModelForLanguage.assert(failure)) { | ||
return new evaluationErrors_1.errors.NoCostModelForLanguage.Error(failure); | ||
} | ||
else if (evaluationErrors_1.errors.NonScriptInputReferencedByRedeemer.assert(failure)) { | ||
return new evaluationErrors_1.errors.NonScriptInputReferencedByRedeemer.Error(failure); | ||
} | ||
else if (evaluationErrors_1.errors.UnknownInputReferencedByRedeemer.assert(failure)) { | ||
return new evaluationErrors_1.errors.UnknownInputReferencedByRedeemer.Error(failure); | ||
} | ||
else if (evaluationErrors_1.errors.ValidatorFailed.assert(failure)) { | ||
return new evaluationErrors_1.errors.ValidatorFailed.Error(failure); | ||
} | ||
else { | ||
return new Error(failure); | ||
} | ||
}); | ||
} | ||
return Object.keys(ScriptFailures).map(k => { | ||
const failure = Object.values(ScriptFailures[k])[0]; | ||
if (evaluationErrors_1.errors.ExtraRedeemers.assert(failure)) { | ||
return new evaluationErrors_1.errors.ExtraRedeemers.Error(failure); | ||
} | ||
else if (evaluationErrors_1.errors.IllFormedExecutionBudget.assert(failure)) { | ||
return new evaluationErrors_1.errors.IllFormedExecutionBudget.Error(failure); | ||
} | ||
else if (evaluationErrors_1.errors.MissingRequiredDatums.assert(failure)) { | ||
return new evaluationErrors_1.errors.MissingRequiredDatums.Error(failure); | ||
} | ||
else if (evaluationErrors_1.errors.MissingRequiredScripts.assert(failure)) { | ||
return new evaluationErrors_1.errors.MissingRequiredScripts.Error(failure); | ||
} | ||
else if (evaluationErrors_1.errors.NoCostModelForLanguage.assert(failure)) { | ||
return new evaluationErrors_1.errors.NoCostModelForLanguage.Error(failure); | ||
} | ||
else if (evaluationErrors_1.errors.NonScriptInputReferencedByRedeemer.assert(failure)) { | ||
return new evaluationErrors_1.errors.NonScriptInputReferencedByRedeemer.Error(failure); | ||
} | ||
else if (evaluationErrors_1.errors.UnknownInputReferencedByRedeemer.assert(failure)) { | ||
return new evaluationErrors_1.errors.UnknownInputReferencedByRedeemer.Error(failure); | ||
} | ||
else if (evaluationErrors_1.errors.ValidatorFailed.assert(failure)) { | ||
return new evaluationErrors_1.errors.ValidatorFailed.Error(failure); | ||
} | ||
else { | ||
return new errors_1.UnknownResultError(failure); | ||
} | ||
}); | ||
} | ||
@@ -67,0 +66,0 @@ else if (evaluationErrors_1.errors.IncompatibleEra.assert(EvaluationFailure)) { |
{ | ||
"name": "@cardano-ogmios/client", | ||
"version": "5.5.4", | ||
"version": "5.5.5", | ||
"description": "TypeScript client library for Cardano Ogmios", | ||
@@ -56,3 +56,3 @@ "engines": { | ||
"dependencies": { | ||
"@cardano-ogmios/schema": "5.5.4", | ||
"@cardano-ogmios/schema": "5.5.5", | ||
"@cardanosolutions/json-bigint": "^1.0.0", | ||
@@ -59,0 +59,0 @@ "@types/json-bigint": "^1.0.1", |
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
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
346037
4281
+ Added@cardano-ogmios/schema@5.5.5(transitive)
- Removed@cardano-ogmios/schema@5.5.4(transitive)
Updated@cardano-ogmios/schema@5.5.5