+5
-5
| { | ||
| "name": "poof", | ||
| "version": "2.0.0", | ||
| "version": "2.1.0", | ||
| "description": "Simple data processing with decorators", | ||
@@ -32,3 +32,3 @@ "main": "dist/index.js", | ||
| "dependencies": { | ||
| "poof-factory": "^2.0.0" | ||
| "poof-factory": "^2.1.0" | ||
| }, | ||
@@ -46,6 +46,6 @@ "devDependencies": { | ||
| "load-grunt-tasks": "^3.5.0", | ||
| "mocha": "^2.4.5", | ||
| "mockery": "^1.6.2", | ||
| "mocha": "^2.5.3", | ||
| "mockery": "^1.7.0", | ||
| "rollup-plugin-babel": "^1.0.0", | ||
| "should": "^8.3.1", | ||
| "should": "^8.4.0", | ||
| "should-sinon": "0.0.5", | ||
@@ -52,0 +52,0 @@ "sinon": "^2.0.0-pre" |
+20
-0
@@ -24,6 +24,10 @@ # Poof | ||
| - [decorators.assert.method and decorators.assert.not.method](#decoratorsassertmethod-and-decoratorsassertnotmethod) | ||
| - [decorators.assert.hasType and decorators.assert.not.hasType](#decoratorsasserthastype-and-decoratorsassertnothastype) | ||
| - [decorators.assert.isInstanceOf and decorators.assert.not.isInstanceOf](#decoratorsassertisinstanceof-and-decoratorsassertnotisinstanceof) | ||
| - [decorators.assign](#decoratorsassign) | ||
| - [decorators.filter(predicate)](#decoratorsfilterpredicate) | ||
| - [decorators.from(key)](#decoratorsfromkey) | ||
| - [decorators.ignoreIf(predicate)](#decoratorsignoreifpredicate) | ||
| - [decorators.ignoreIfUndefined](#decoratorsignoreifundefined) | ||
| - [decorators.map(mapper)](#decoratorsmapmapper) | ||
| - [decorators.set(value)](#decoratorssetvalue) | ||
@@ -228,2 +232,10 @@ - [decorators.transform(transformer)](#decoratorstransformtransformer) | ||
| #### decorators.assert.hasType and decorators.assert.not.hasType | ||
| An additional assertion function that performs the `typeof` check on the current value and the passed argument. | ||
| #### decorators.assert.isInstanceOf and decorators.assert.not.isInstanceOf | ||
| An additional assertion function that performs the `instanceof` check on the current value and the passed argument. | ||
| #### decorators.assign | ||
@@ -233,2 +245,6 @@ | ||
| #### decorators.filter(predicate) | ||
| Filters the current value using `predicate`. The current value is assumed to be an array. | ||
| #### decorators.from(key) | ||
@@ -246,2 +262,6 @@ | ||
| #### decorators.map(mapper) | ||
| Maps the current value using `mapper`. The current value is assumed to be an array. | ||
| #### decorators.set(value) | ||
@@ -248,0 +268,0 @@ |
15473
6.91%306
6.99%Updated