Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Jul 11, 2020
1 parent 3d7abfd commit f80a5db
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 29 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
[![Npm][BadgeNpm]][Npm]
[![Travis][BadgeTravis]][Travis]
[![Coveralls][BadgeCoveralls]][Coveralls]
[![Maintainability](https://api.codeclimate.com/v1/badges/fcf0b82a1fc420fe7c33/maintainability)](https://codeclimate.com/github/senecajs/seneca-entity-cache/maintainability)
[![DeepScan grade](https://deepscan.io/api/teams/5016/projects/12818/branches/203965/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=5016&pid=12818&bid=203965)
[![dependencies Status](https://david-dm.org/senecajs/seneca-entity-cache/status.svg)](https://david-dm.org/senecajs/seneca-entity-cache)
[![Gitter][gitter-badge]][gitter-url]



### Node.js Seneca Versioned Caching module
Expand Down Expand Up @@ -135,3 +140,5 @@ node n2.js --seneca.log=type:plugin
[Coveralls]: https://coveralls.io/github/senecajs/seneca-entity-cache?branch=master
[Npm]: https://www.npmjs.com/package/seneca-entity-cache
[Travis]: https://travis-ci.org/senecajs/seneca-entity-cache?branch=master
[gitter-badge]: https://badges.gitter.im/Join%20Chat.svg
[gitter-url]: https://gitter.im/senecajs/seneca
25 changes: 4 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@seneca/entity-cache",
"version": "1.0.0",
"version": "1.1.0",
"description": "Versioned caching plugin for seneca",
"main": "entity-cache.js",
"scripts": {
Expand Down Expand Up @@ -39,7 +39,7 @@
"devDependencies": {
"@hapi/code": "^8.0.1",
"@hapi/lab": "^22.0.4",
"@seneca/cache": "^4.2.0",
"@seneca/cache": "^4.2.1",
"@seneca/memcached-cache": "^2.0.0",
"@seneca/redis-cache": "^1.0.1",
"coveralls": "^3.1.0",
Expand Down
7 changes: 1 addition & 6 deletions test/broken.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ module.exports = function (options) {
orig.call(seneca, criteria, function (args, callback, meta) {
//console.log('BROKEN', control, criteria)

if (
criteria.role &&
criteria.role === 'cache' &&
control &&
control[criteria.cmd]
) {
if (criteria.role && criteria.role === 'cache' && control[criteria.cmd]) {
if (control[criteria.cmd] === true) {
return callback(new Error('Invalid implementation'))
}
Expand Down

0 comments on commit f80a5db

Please sign in to comment.