Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wc-context

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wc-context - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

2

dist/wc-context.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc