Socket
Socket
Sign inDemoInstall

svelte-dev-helper

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.1.0

.eslintrc

14

lib/proxy.js

@@ -26,2 +26,6 @@ import Registry from './registry';

export function getConfig() {
return proxyOptions;
}
/*

@@ -50,6 +54,6 @@ creates a proxy object that

'get,fire,observe,on,set,teardown,_recompute,_set'.split(',')
.forEach(function (method) {
return self[method] = function () {
return self.proxyTarget[method].apply(self.proxyTarget, arguments)
}
.forEach(function(method) {
return self[method] = function() {
return self.proxyTarget[method].apply(self.proxyTarget, arguments);
};
});

@@ -69,2 +73,3 @@ // ---- END forwarded methods ----

} else {
// eslint-disable-next-line no-undef
this.__insertionPoint = document.createComment(this._debugName);

@@ -164,3 +169,2 @@ target.insertBefore(this.__insertionPoint, anchor);

options = this.proxyTarget.options,
id = this.id,
oldstate = this.get(),

@@ -167,0 +171,0 @@ isMounted = this.__mounted,

@@ -26,3 +26,3 @@

const id = instance.id;
this._items[id] && this._items[id].instances.forEach(function (comp, idx, instances) {
this._items[id] && this._items[id].instances.forEach(function(comp, idx, instances) {
if (comp == instance) {

@@ -36,4 +36,6 @@ instances.splice(idx, 1);

// eslint-disable-next-line no-undef
const componentRegistry = (window.__SVELTE_REGISTRY__ = new registry);
export default componentRegistry;
{
"name": "svelte-dev-helper",
"version": "1.0.0",
"version": "1.1.0",
"description": "Helper for svelte components to ease development",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"all": "npm run lint && npm run test",
"lint": "eslint index.js lib/ test/*.spec.js",
"test": "mocha --require buble/register --require reify --require jsdom-global/register --full-trace --check-leaks test/*.spec.js"
},

@@ -23,3 +25,15 @@ "repository": {

},
"homepage": "https://github.com/ekhaled/svelte-dev-helper#readme"
"homepage": "https://github.com/ekhaled/svelte-dev-helper#readme",
"devDependencies": {
"buble": "^0.18.0",
"chai": "^4.1.2",
"eslint": "^4.15.0",
"eslint-plugin-mocha": "^4.11.0",
"jsdom": "11.5.1",
"jsdom-global": "3.0.2",
"mocha": "^4.1.0",
"reify": "^0.13.6",
"sinon": "^4.1.4",
"sinon-chai": "^2.14.0"
}
}
# svelte-dev-helper
[![Build Status](https://travis-ci.org/ekhaled/svelte-dev-helper.svg?branch=master)](https://travis-ci.org/ekhaled/svelte-dev-helper)
Helper for svelte components to ease development.
Used under the hood by [svelte-hot-loader](https://github.com/ekhaled/svelte-hot-loader)
Used under the hood by [svelte-hot-loader](https://github.com/ekhaled/svelte-hot-loader).
##Usage
## Usage
This is meant to be used under the hood for creating a build toolchain, or a dev helper based on [Svelte](https://svelte.technology/) components.

@@ -8,0 +12,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc