Comparing version 2.0.0 to 2.1.0
{ | ||
"name": "mvcobject", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "An implementation of Google Maps' MVCObject for Node.js and browers", | ||
"main": "MVCObject.js", | ||
"main": "dist/mvcobject.js", | ||
"directories": { | ||
@@ -10,9 +10,11 @@ "test": "test" | ||
"scripts": { | ||
"test": "mocha", | ||
"build": "tsc -d -m umd MVCObject.ts && uglifyjs -m -c -o MVCObject.min.js -- MVCObject.js" | ||
"clean": "rm -rf dist", | ||
"dev": "rollup -c build/rollup.config.js --watch", | ||
"build": "npm run clean && NODE_ENV=production rollup -c build/rollup.config.js", | ||
"test": "mocha" | ||
}, | ||
"types": "MVCObject.d.ts", | ||
"types": "mvcobject.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Treri/MVCObject.git" | ||
"url": "https://github.com/Wyntau/MVCObject.git" | ||
}, | ||
@@ -22,5 +24,5 @@ "keywords": [ | ||
], | ||
"author": "Treri", | ||
"author": "Wyntau", | ||
"contributors": [ | ||
"Treri <treri.liu@gmail.com>", | ||
"Wyntau <wyntau@outlook.com>", | ||
"saidz <zyx.zhuyuxiang@gmail.com>" | ||
@@ -30,3 +32,3 @@ ], | ||
"bugs": { | ||
"url": "https://github.com/Treri/MVCObject/issues" | ||
"url": "https://github.com/Wyntau/MVCObject/issues" | ||
}, | ||
@@ -36,7 +38,14 @@ "devDependencies": { | ||
"mocha": "~2.2.3", | ||
"rollup": "^0.67.4", | ||
"rollup-plugin-commonjs": "^9.2.0", | ||
"rollup-plugin-node-resolve": "^4.0.0", | ||
"rollup-plugin-typescript": "^1.0.0", | ||
"rollup-plugin-uglify": "^6.0.0", | ||
"sinon": "~1.14.1", | ||
"sinon-chai": "~2.7.0", | ||
"typescript": "^2.0.3", | ||
"uglify-js": "^2.4.19" | ||
"typescript": "^3.2.2" | ||
}, | ||
"dependencies": { | ||
"tslib": "^1.9.3" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
## MVCObject [![NPM version](https://badge.fury.io/js/mvcobject.png)](http://badge.fury.io/js/mvcobject) [![Build Status](https://travis-ci.org/Treri/MVCObject.png)](https://travis-ci.org/Treri/MVCObject) [![Dependencies Status](https://david-dm.org/Treri/MVCObject.png)](https://david-dm.org/Treri/MVCObject) | ||
## MVCObject [![NPM version](https://badge.fury.io/js/mvcobject.png)](http://badge.fury.io/js/mvcobject) [![Build Status](https://travis-ci.org/Wyntau/MVCObject.png)](https://travis-ci.org/Wyntau/MVCObject) [![Dependencies Status](https://david-dm.org/Wyntau/MVCObject.png)](https://david-dm.org/Wyntau/MVCObject) | ||
@@ -13,10 +13,13 @@ An implementation of [Google Maps' MVCObject](https://web.archive.org/web/20140331075724/https://developers.google.com/maps/articles/mvcfun) for Node.js and browers. | ||
----- | ----- | ----- | ||
bindTo(key:string, target:MVCObject, targetKey?:string, noNotify?:boolean) | this | Binds a View to a Model. | ||
changed(key:string) | ? | Generic handler for state changes. Override this in derived classes to handle arbitrary state changes. | ||
get(key:string) | * | Gets a value. | ||
notify(key:string) | this | Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to. | ||
set(key:string, value:*) | this | Sets a value. | ||
setValues(values:Object) | this | Sets a collection of key-value pairs. | ||
unbind(key:string) | this | Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed. | ||
bindTo(key: string, target: MVCObject, targetKey?: string, noNotify?: boolean) | this | Binds a View to a Model. | ||
changed(key: string) | ? | Generic handler for state changes. Override this in derived classes to handle arbitrary state changes. | ||
get(key: string) | * | Gets a value. | ||
notify(key: string) | this | Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to. | ||
set(key: string, value: any) | this | Sets a value. | ||
setValues(values: object) | this | Sets a collection of key-value pairs. | ||
unbind(key: string) | this | Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed. | ||
unbindAll() | this | Removes all bindings. | ||
addListener(eventName: string, handler: Function) | EventListener | add listener for `${key}_changed` event | ||
addListenerOnce(eventName: string, handler: Function) | EventListener | add listener for `${key}_changed` event once | ||
removeListener(eventListener: EventListener) | void | remove event listener | ||
@@ -54,3 +57,3 @@ ### Usage | ||
Copyright (c) 2013 - present Treri treri.liu@gmail.com | ||
Copyright (c) 2013 - present Wyntau wyntau@outlook.com | ||
@@ -57,0 +60,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
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
Mixed license
License(Experimental) Package contains multiple licenses.
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
46912
75
1
10
1
295
1
+ Addedtslib@^1.9.3
+ Addedtslib@1.14.1(transitive)