wc-context
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -9,3 +9,3 @@ var contextMap = Object.create(null); | ||
if (mapping.el.contains(el)) { | ||
return mapping.value; | ||
return typeof mapping.value === 'function' ? mapping.value.call(el) : mapping.value; | ||
} | ||
@@ -12,0 +12,0 @@ } |
@@ -15,3 +15,3 @@ (function (global, factory) { | ||
if (mapping.el.contains(el)) { | ||
return mapping.value; | ||
return typeof mapping.value === 'function' ? mapping.value.call(el) : mapping.value; | ||
} | ||
@@ -18,0 +18,0 @@ } |
{ | ||
"name": "wc-context", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Simple context for HTML custom elements", | ||
@@ -18,2 +18,3 @@ "repository": "blikblum/wc-context", | ||
"module": "index.esm.js", | ||
"jsnext:main": "index.esm.js", | ||
"jest": { | ||
@@ -20,0 +21,0 @@ "modulePathIgnorePatterns": [ |
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
17411