Comparing version 3.0.1 to 3.0.2
@@ -226,9 +226,11 @@ "use strict"; | ||
const provider = staack2[PROVIDER]; | ||
let ctxId = idMap.get(provider[INTERNAL].consumer); | ||
const consumer = provider[INTERNAL].consumer; | ||
let ctxId = idMap.get(consumer); | ||
if (ctxId === void 0) { | ||
ctxId = Math.random().toString(36).substring(7); | ||
idMap.set(provider[INTERNAL].consumer, ctxId); | ||
idMap.set(consumer, ctxId); | ||
} | ||
result.push({ | ||
ctxId, | ||
ctxName: consumer.name, | ||
value: provider[INTERNAL].value | ||
@@ -235,0 +237,0 @@ }); |
{ | ||
"name": "staack", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "A library to create type-safe opaque stacks", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
23555
655