simple-bound
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -349,2 +349,3 @@ 'use strict'; | ||
var _this = this; | ||
if (twoWay === void 0) { twoWay = true; } | ||
var __bind = function (_obj, _twoWay, path) { | ||
@@ -351,0 +352,0 @@ if (_twoWay === void 0) { _twoWay = true; } |
@@ -300,3 +300,3 @@ class BoundError extends Error { | ||
*/ //TODO: rework this function. It's a mess. | ||
bind(obj, twoWay) { | ||
bind(obj, twoWay = true) { | ||
const __bind = (_obj, _twoWay = true, path = '') => { | ||
@@ -303,0 +303,0 @@ Object.defineProperty(_obj, '__bound__', { |
@@ -348,2 +348,3 @@ var bound = (function (exports) { | ||
var _this = this; | ||
if (twoWay === void 0) { twoWay = true; } | ||
var __bind = function (_obj, _twoWay, path) { | ||
@@ -350,0 +351,0 @@ if (_twoWay === void 0) { _twoWay = true; } |
@@ -351,2 +351,3 @@ (function (global, factory) { | ||
var _this = this; | ||
if (twoWay === void 0) { twoWay = true; } | ||
var __bind = function (_obj, _twoWay, path) { | ||
@@ -353,0 +354,0 @@ if (_twoWay === void 0) { _twoWay = true; } |
@@ -43,3 +43,3 @@ "use strict"; | ||
*/ //TODO: rework this function. It's a mess. | ||
bind(obj, twoWay) { | ||
bind(obj, twoWay = true) { | ||
const __bind = (_obj, _twoWay = true, path = '') => { | ||
@@ -46,0 +46,0 @@ Object.defineProperty(_obj, '__bound__', { |
@@ -20,2 +20,2 @@ /** | ||
export declare function assignToPath(obj: any, path: string | number, value: any): any; | ||
export declare const hasProxy: boolean; | ||
export declare const hasProxy = true; |
{ | ||
"name": "simple-bound", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A simple and customizable reactive data-binding library.", | ||
@@ -95,22 +95,22 @@ "keywords": [ | ||
"@types/jest": "^22.2.3", | ||
"@types/jsdom": "^11.0.6", | ||
"@types/node": "^10.0.3", | ||
"colors": "^1.1.2", | ||
"cross-env": "^5.0.1", | ||
"@types/jsdom": "^11.12.0", | ||
"@types/node": "^10.11.5", | ||
"colors": "^1.3.2", | ||
"cross-env": "^5.2.0", | ||
"jest": "^22.0.2", | ||
"jest-mock-console": "^0.4.0", | ||
"prompt": "^1.0.0", | ||
"replace-in-file": "^3.0.0-beta.2", | ||
"replace-in-file": "^3.4.2", | ||
"rimraf": "^2.6.1", | ||
"rollup": "^0.59.2", | ||
"rollup-plugin-commonjs": "^9.0.0", | ||
"rollup-plugin-json": "^3.0.0", | ||
"rollup-plugin-node-resolve": "^3.0.0", | ||
"rollup-plugin-commonjs": "^9.1.8", | ||
"rollup-plugin-json": "^3.1.0", | ||
"rollup-plugin-node-resolve": "^3.4.0", | ||
"rollup-plugin-sourcemaps": "^0.4.2", | ||
"rollup-plugin-typescript2": "^0.13.0", | ||
"ts-jest": "^22.0.0", | ||
"ts-node": "^6.0.0", | ||
"ts-node": "^6.2.0", | ||
"tslint": "^5.11.0", | ||
"typescript": "^3.0.1" | ||
"typescript": "^3.1.1" | ||
} | ||
} |
# simple-bound | ||
> A simple data binding library for node and browser with no dependencies. | ||
<p align="center"> | ||
[![Travis (.org) branch](https://img.shields.io/travis/KazanExpress/bound/master.svg?style=flat-square)](https://travis-ci.org/KazanExpress/bound) | ||
[![npm](https://img.shields.io/npm/v/simple-bound.svg?style=flat-square)](https://www.npmjs.com/package/simple-bound) | ||
[![](https://img.shields.io/badge/github-repo-lightgray.svg?style=flat-square)](https://github.com/KazanExpress/bound) | ||
[![](https://img.shields.io/badge/dependencies-none-blue.svg?style=flat-square)](https://www.npmjs.com/package/simple-bound?activeTab=dependencies) | ||
[![npm](https://img.shields.io/npm/dt/simple-bound.svg?style=flat-square)](https://www.npmjs.com/package/simple-bound) | ||
<big>A simple data binding library for node and browser with no dependencies.</big> | ||
<a href="https://travis-ci.org/KazanExpress/bound"> | ||
<img src="https://img.shields.io/travis/KazanExpress/bound/master.svg?style=flat-square" | ||
alt="Travis (.org) branch"> | ||
</a> | ||
<a href="https://www.npmjs.com/package/simple-bound"> | ||
<img src="https://img.shields.io/npm/v/simple-bound.svg?style=flat-square" | ||
alt="npm"> | ||
</a> | ||
<a href="https://github.com/KazanExpress/bound"> | ||
<img src="https://img.shields.io/badge/github-repo-lightgray.svg?style=flat-square" | ||
alt=""> | ||
</a> | ||
<a href="https://www.npmjs.com/package/simple-bound?activeTab=dependencies"> | ||
<img src="https://img.shields.io/badge/dependencies-none-blue.svg?style=flat-square" | ||
alt="Travis (.org) branch"> | ||
</a> | ||
<a href="https://www.npmjs.com/package/simple-bound"> | ||
<img src="https://img.shields.io/npm/dt/simple-bound.svg?style=flat-square" | ||
alt="npm"> | ||
</a> | ||
</p> | ||
<br/> | ||
```bash | ||
@@ -11,0 +30,0 @@ npm install --save simple-bound |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
217354
2251
476