promised-models
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"description": "promise based, typed attributes, nested models and collections", | ||
"name": "promised-models", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"repository": "git@github.com:delfrrr/promised-models.git", | ||
@@ -6,0 +6,0 @@ "engines": { |
@@ -12,3 +12,3 @@ # Promised Models (in progress) | ||
$npm install --save promises-models | ||
$npm install --save promised-models | ||
@@ -33,3 +33,3 @@ ## Usage | ||
####inherit `Model.inherit(properties, [classPorperties])` | ||
#### inherit `Model.inherit(properties, [classPorperties])` | ||
@@ -56,3 +56,3 @@ Creates you own model class by extending `Model`. You can define fields, instance/class method and properties. Inheritance is build over [inherit](https://www.npmjs.com/package/inherit). | ||
####fields `Model.fields` | ||
#### fields `Model.fields` | ||
@@ -89,3 +89,3 @@ Namespace for predefined types of fields. Supported types: | ||
####set `model.set(fieldName, value)` | ||
#### set `model.set(fieldName, value)` | ||
@@ -104,3 +104,3 @@ Set current value of field. | ||
####get `model.get(fieldName)` | ||
#### get `model.get(fieldName)` | ||
@@ -119,3 +119,3 @@ Get current value of field. | ||
####toJSON `model.toJSON()` | ||
#### toJSON `model.toJSON()` | ||
@@ -147,3 +147,3 @@ Return shallow copy of model data. | ||
####isChanged `model.isChanged([branch])` | ||
#### isChanged `model.isChanged([branch])` | ||
@@ -170,3 +170,3 @@ Has model changed since init or last commit/save/fetch. | ||
####commit `model.commit([branch])` | ||
#### commit `model.commit([branch])` | ||
@@ -186,3 +186,3 @@ Cache current model state | ||
####revert `model.revert([branch])` | ||
#### revert `model.revert([branch])` | ||
@@ -214,3 +214,3 @@ Revert model state to last cashed one | ||
####on `model.on(events, cb, [ctx])` | ||
#### on `model.on(events, cb, [ctx])` | ||
@@ -231,3 +231,3 @@ Add event handler for one or multiple model events. | ||
####un `model.un(events, cb, [ctx])` | ||
#### un `model.un(events, cb, [ctx])` | ||
@@ -244,3 +244,3 @@ Unsubscribe event handler from events. | ||
####destruct `model.destruct()` | ||
#### destruct `model.destruct()` | ||
@@ -251,3 +251,3 @@ Remove all events handlers from model and removes model from collections | ||
####validate `model.validate()` | ||
#### validate `model.validate()` | ||
@@ -283,3 +283,3 @@ Validate model fields. | ||
####ready `model.ready()` | ||
#### ready `model.ready()` | ||
@@ -311,3 +311,3 @@ Fullfils when all calculations over model finished. | ||
####fetch `model.fetch()` | ||
#### fetch `model.fetch()` | ||
@@ -336,3 +336,3 @@ Fetch data associlated with model from storage. | ||
####save `model.save()` | ||
#### save `model.save()` | ||
@@ -369,7 +369,7 @@ ``` | ||
####remove `model.remove()` | ||
#### remove `model.remove()` | ||
Removes model from storage. | ||
###Model additional methods and properties | ||
### Model additional methods and properties | ||
@@ -385,5 +385,5 @@ * `model.isNew()` | ||
###Model static methods and properties | ||
### Model static methods and properties | ||
####Storage `Model.Storage` | ||
#### Storage `Model.Storage` | ||
@@ -403,3 +403,3 @@ Abstract class for model storage | ||
####Field `Model.Field` | ||
#### Field `Model.Field` | ||
@@ -414,3 +414,3 @@ Base class for model field | ||
####ValidationError `Model.ValidationError` | ||
#### ValidationError `Model.ValidationError` | ||
@@ -417,0 +417,0 @@ Error class for validation fail report |
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
81478