ngx-cacheable
Advanced tools
Comparing version 1.4.0-beta.11 to 1.4.0-beta.12
@@ -131,7 +131,5 @@ "use strict"; | ||
if (!(cachePairs instanceof promiseImplementation)) { | ||
return getResponse(oldMethod, cacheKey, cacheConfig, this, cachePairs, parameters, pendingCachePairs_1, storageStrategy_1, promiseImplementation); | ||
cachePairs = promiseImplementation.resolve(cachePairs); | ||
} | ||
else { | ||
return cachePairs.then(function (cachePairs) { return getResponse(oldMethod, cacheKey, cacheConfig, _this, cachePairs, parameters, pendingCachePairs_1, storageStrategy_1, promiseImplementation); }); | ||
} | ||
return cachePairs.then(function (cachePairs) { return getResponse(oldMethod, cacheKey, cacheConfig, _this, cachePairs, parameters, pendingCachePairs_1, storageStrategy_1, promiseImplementation); }); | ||
}; | ||
@@ -138,0 +136,0 @@ } |
@@ -117,7 +117,5 @@ import { empty, merge, Subject } from 'rxjs'; | ||
if (!(cachePairs instanceof promiseImplementation)) { | ||
return getResponse(oldMethod, cacheKey, cacheConfig, this, cachePairs, parameters, pendingCachePairs, storageStrategy, promiseImplementation); | ||
cachePairs = promiseImplementation.resolve(cachePairs); | ||
} | ||
else { | ||
return cachePairs.then(cachePairs => getResponse(oldMethod, cacheKey, cacheConfig, this, cachePairs, parameters, pendingCachePairs, storageStrategy, promiseImplementation)); | ||
} | ||
return cachePairs.then(cachePairs => getResponse(oldMethod, cacheKey, cacheConfig, this, cachePairs, parameters, pendingCachePairs, storageStrategy, promiseImplementation)); | ||
}; | ||
@@ -124,0 +122,0 @@ } |
@@ -129,7 +129,5 @@ import { empty, merge, Subject } from 'rxjs'; | ||
if (!(cachePairs instanceof promiseImplementation)) { | ||
return getResponse(oldMethod, cacheKey, cacheConfig, this, cachePairs, parameters, pendingCachePairs_1, storageStrategy_1, promiseImplementation); | ||
cachePairs = promiseImplementation.resolve(cachePairs); | ||
} | ||
else { | ||
return cachePairs.then(function (cachePairs) { return getResponse(oldMethod, cacheKey, cacheConfig, _this, cachePairs, parameters, pendingCachePairs_1, storageStrategy_1, promiseImplementation); }); | ||
} | ||
return cachePairs.then(function (cachePairs) { return getResponse(oldMethod, cacheKey, cacheConfig, _this, cachePairs, parameters, pendingCachePairs_1, storageStrategy_1, promiseImplementation); }); | ||
}; | ||
@@ -136,0 +134,0 @@ } |
{ | ||
"name": "ngx-cacheable", | ||
"version": "1.4.0-beta.11", | ||
"version": "1.4.0-beta.12", | ||
"description": "Promise/Observable cache decorators", | ||
@@ -5,0 +5,0 @@ "main": "./cjs/index.js", |
@@ -161,3 +161,3 @@ [![Build Status](https://travis-ci.org/angelnikolov/ngx-cacheable.svg?branch=master)](https://travis-ci.org/angelnikolov/ngx-cacheable) | ||
import { GlobalCacheConfig } from 'ngx-cacheable'; | ||
import { DOMStorageStrategy } from 'ngx-cacheable/common/DOMStorageStrategy'; | ||
import { DOMStorageStrategy } from 'ngx-cacheable'; | ||
GlobalCacheConfig.storageStrategy = DOMStorageStrategy; | ||
@@ -164,0 +164,0 @@ ``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
318016
4010