ladda-observable
Advanced tools
Comparing version 0.2.2 to 0.2.7
@@ -542,3 +542,3 @@ module.exports = | ||
var invalidations = entity.api[change.apiFn].invalidates; | ||
return invalidations.length && invalidations.indexOf(fn.name) !== -1; | ||
return invalidations.length && invalidations.indexOf(fn.fnName) !== -1; | ||
}; | ||
@@ -545,0 +545,0 @@ |
{ | ||
"name": "ladda-observable", | ||
"version": "0.2.2", | ||
"version": "0.2.7", | ||
"description": "Observable plugin for Ladda", | ||
@@ -23,3 +23,3 @@ "main": "dist/bundle.js", | ||
"gitbook-cli": "^2.3.0", | ||
"ladda-cache": "^0.2.3", | ||
"ladda-cache": "0.2.7", | ||
"mocha": "^2.5.3", | ||
@@ -26,0 +26,0 @@ "nyc": "^10.1.2", |
@@ -22,3 +22,3 @@ import { map_, noop, removeElement } from 'ladda-fp'; | ||
const invalidations = entity.api[change.apiFn].invalidates; | ||
return invalidations.length && invalidations.indexOf(fn.name) !== -1; | ||
return invalidations.length && invalidations.indexOf(fn.fnName) !== -1; | ||
}; | ||
@@ -25,0 +25,0 @@ |
@@ -222,4 +222,7 @@ /* eslint-disable no-unused-expressions */ | ||
return api.user.noopGetUsers().then(() => { | ||
// ideally this next block would fail and we'd be calling | ||
// only twice, but the read operation which followed the | ||
// nvalidation triggers it again! | ||
return delay().then(() => { | ||
expect(spy).to.have.been.calledTwice; | ||
expect(spy).to.have.been.calledThrice; | ||
}); | ||
@@ -226,0 +229,0 @@ }); |
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
54856
1262