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

svelte-dev-helper

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-dev-helper - npm Package Compare versions

Comparing version 1.1.5 to 1.1.6

test/fixtures/mockComponentWithComputed.js

5

lib/proxy.js

@@ -197,2 +197,5 @@ import Registry from './registry';

//work around _checkReadOnly in svelte (for computed properties)
this.proxyTarget._updatingReadonlyProperty = true;
//preserve local state (unless noPreserveState is true)

@@ -210,2 +213,4 @@ if (

}
this.proxyTarget._updatingReadonlyProperty = false;
}

@@ -212,0 +217,0 @@ }

2

package.json
{
"name": "svelte-dev-helper",
"version": "1.1.5",
"version": "1.1.6",
"description": "Helper for svelte components to ease development",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -217,2 +217,29 @@ /* global describe, it */

it('rerenders components with computed properties (#6)', function() {
const Component = require('./fixtures/mockComponentWithComputed').default;
const id = 'computedComponent';
Registry.set(id, {
rollback: null,
component: Component,
instances: []
});
// eslint-disable-next-line no-undef
const target = document.body;
const WrappedComponent = createProxy(id);
const wrappedComponent = new WrappedComponent({ target });
// eslint-disable-next-line no-undef
wrappedComponent._mount(target);
configure({ noPreserveState: false });
wrappedComponent._rerender();
configure({ noPreserveState: true });
wrappedComponent._rerender();
});
});
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