bookshelf-processor-plugin
Advanced tools
Comparing version 0.1.0 to 1.0.0
# Changelog | ||
**1.0.0** <small>_Sep 21, 2019_</small> | ||
- Pass model context as 'this' in processors: [#1](https://github.com/bookshelf/processor-plugin/pull/1) | ||
- Update all dev dependencies to their latest versions. | ||
**0.1.0** <small>_Aug 9, 2019_</small> | ||
- Initial version of the plugin as a standalone package. This code is the same that was in Bookshelf core at this point. |
@@ -65,3 +65,3 @@ /** | ||
processes.forEach(process => { | ||
value = process(value) | ||
value = process.call(this, value) | ||
}) | ||
@@ -68,0 +68,0 @@ |
{ | ||
"name": "bookshelf-processor-plugin", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"description": "A plugin for Bookshelf that allows defining custom processor functions that transform model attributes.", | ||
@@ -44,14 +44,14 @@ "main": "index.js", | ||
"devDependencies": { | ||
"bookshelf": "^0.15.1", | ||
"eslint": "^6.1.0", | ||
"eslint-config-prettier": "^6.0.0", | ||
"eslint-plugin-prettier": "^3.1.0", | ||
"husky": "^3.0.2", | ||
"knex": "^0.19.1", | ||
"lint-staged": "^9.2.1", | ||
"bookshelf": "^1.0.0", | ||
"eslint": "^6.4.0", | ||
"eslint-config-prettier": "^6.3.0", | ||
"eslint-plugin-prettier": "^3.1.1", | ||
"husky": "^3.0.5", | ||
"knex": "^0.19.4", | ||
"lint-staged": "^9.2.5", | ||
"mocha": "^6.2.0", | ||
"nyc": "^14.1.1", | ||
"prettier": "^1.18.2", | ||
"sinon": "^7.4.0", | ||
"sqlite3": "^4.0.9" | ||
"sinon": "^7.4.2", | ||
"sqlite3": "^4.1.0" | ||
}, | ||
@@ -58,0 +58,0 @@ "author": { |
@@ -14,3 +14,3 @@ # Bookshelf Processor Plugin | ||
Then load the plugin using `bookshelf.plugin('bookshelf-processor-plugin')`. Now you are all set to start definining | ||
Then load the plugin using `bookshelf.plugin('bookshelf-processor-plugin')`. Now you are all set to start defining | ||
custom attribute processors on your models. | ||
@@ -17,0 +17,0 @@ |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
6722
6
0