Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-cacheable

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-cacheable - npm Package Compare versions

Comparing version 1.4.0-beta.11 to 1.4.0-beta.12

6

cjs/promise.cacheable.decorator.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc