reactive-handlebars
Advanced tools
Comparing version 0.0.5 to 0.0.7
19
index.js
'use strict'; | ||
var lodash = require('lodash'), | ||
Handlebars = require('handlebars'); | ||
/** | ||
@@ -16,13 +12,2 @@ * [ReactiveHbs 'update UI changes on the data change, variable on change blocks and binds helpers and functions'] | ||
'use strict'; | ||
/** | ||
* [ReactiveHbs 'update UI changes on the data change, variable on change blocks and binds helpers and functions'] | ||
* @param {object} options { | ||
* container {string} 'id or class of container to mount the template on', | ||
* template {string} 'Handlebars template script id or class', | ||
* data {object} 'data context to pass to the template' | ||
* } | ||
*/ | ||
function ReactiveHbs(options) { | ||
@@ -180,3 +165,2 @@ this.setOptions(options); | ||
module.exports = ReactiveHbs; | ||
@@ -192,4 +176,1 @@ | ||
{ | ||
"name": "reactive-handlebars", | ||
"version": "0.0.5", | ||
"version": "0.0.7", | ||
"description": "A miniature library for updating DOM elements reactively and for providing observer methods to oberve objects passed to the handlears templates", | ||
@@ -16,5 +16,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"jquery": "^3.1.1", | ||
"handlebars": "^4.0.5", | ||
"lodash": "^4.16.4" | ||
"jquery": ">=2.0.0", | ||
"handlebars": ">=4.0.0", | ||
"lodash": ">=4.0.0" | ||
}, | ||
@@ -21,0 +21,0 @@ "repository": { |
@@ -58,3 +58,3 @@ # reactive-handlebars | ||
```js | ||
counter.reactOnChange('count', (tpl) => { | ||
counter.reactOnChange('count', { throttle: 100 }, (tpl) => { | ||
console.log('count have been changed ', tpl.get('count')); | ||
@@ -61,0 +61,0 @@ }); |
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
272009
15
1488
4
2
Updatedhandlebars@>=4.0.0
Updatedjquery@>=2.0.0
Updatedlodash@>=4.0.0