wc-context
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -30,4 +30,4 @@ var contextProxyHandler = { | ||
updateContext(_this, propName, propValue); | ||
childContext[propName] = propValue; | ||
} | ||
childContext[propName] = propValue; | ||
}); | ||
@@ -34,0 +34,0 @@ } |
{ | ||
"name": "wc-context", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Simple context for HTML custom elements", | ||
@@ -5,0 +5,0 @@ "repository": "blikblum/wc-context", |
@@ -28,4 +28,4 @@ const contextProxyHandler = { | ||
updateContext(this, propName, propValue) | ||
childContext[propName] = propValue | ||
} | ||
childContext[propName] = propValue | ||
}) | ||
@@ -32,0 +32,0 @@ } |
@@ -87,2 +87,13 @@ /* eslint-env jest */ | ||
test('should update childContext', () => { | ||
grandfatherEl.childContext = { | ||
key: 'value', | ||
key2: undefined | ||
} | ||
expect(grandfatherEl.childContext).toMatchObject({ | ||
key: 'value', | ||
key2: undefined | ||
}) | ||
}) | ||
describe('and when added to a child node', () => { | ||
@@ -89,0 +100,0 @@ beforeEach(() => { |
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
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
201332
479
0