@tinkoff/dippy
Advanced tools
Comparing version 0.10.2 to 0.10.3
@@ -256,4 +256,12 @@ import { Errors, Scope } from './constant.es.js'; | ||
this.recordValues.set(record, CIRCULAR); | ||
// мульти провайдеры не могут быть optional | ||
value = record.multi.map((rec) => this.hydrate(rec, token, false)); | ||
try { | ||
// мульти провайдеры не могут быть optional | ||
value = record.multi.map((rec) => this.hydrate(rec, token, false)); | ||
} | ||
catch (e) { | ||
// reset circular mark for broken multi provider, | ||
// otherwise it will be cached and in subsequent calls we will get circular dependency error | ||
this.recordValues.set(record, NOT_YET); | ||
throw e; | ||
} | ||
} | ||
@@ -260,0 +268,0 @@ else { |
@@ -260,4 +260,12 @@ 'use strict'; | ||
this.recordValues.set(record, CIRCULAR); | ||
// мульти провайдеры не могут быть optional | ||
value = record.multi.map((rec) => this.hydrate(rec, token, false)); | ||
try { | ||
// мульти провайдеры не могут быть optional | ||
value = record.multi.map((rec) => this.hydrate(rec, token, false)); | ||
} | ||
catch (e) { | ||
// reset circular mark for broken multi provider, | ||
// otherwise it will be cached and in subsequent calls we will get circular dependency error | ||
this.recordValues.set(record, NOT_YET); | ||
throw e; | ||
} | ||
} | ||
@@ -264,0 +272,0 @@ else { |
{ | ||
"name": "@tinkoff/dippy", | ||
"version": "0.10.2", | ||
"version": "0.10.3", | ||
"initialVersion": "0.7.27", | ||
@@ -5,0 +5,0 @@ "description": "", |
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
75855
1605