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

reactive-handlebars

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactive-handlebars - npm Package Compare versions

Comparing version 0.0.5 to 0.0.7

bower.json

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

8

package.json
{
"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 @@ });

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