svelte-dev-helper
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -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
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
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
18545
13
380
0
41
10