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

apollo-server-caching

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-server-caching - npm Package Compare versions

Comparing version 3.0.1 to 3.1.0-alpha.0

2

dist/InMemoryLRUCache.js

@@ -26,3 +26,3 @@ "use strict";

async set(key, value, options) {
const maxAge = options && options.ttl && options.ttl * 1000;
const maxAge = (options === null || options === void 0 ? void 0 : options.ttl) && options.ttl * 1000;
this.store.set(key, value, maxAge);

@@ -29,0 +29,0 @@ }

{
"name": "apollo-server-caching",
"version": "3.0.1",
"version": "3.1.0-alpha.0",
"author": "Apollo <opensource@apollographql.com>",

@@ -23,3 +23,3 @@ "license": "MIT",

},
"gitHead": "856f7fbc151ebef4d6ca8a9efe801ecca3d4f9c3"
"gitHead": "211cd84ce3d2c9be90248e6a69c8c26bf8d1cc17"
}

@@ -38,3 +38,3 @@ import LRUCache from 'lru-cache';

async set(key: string, value: V, options?: { ttl?: number }) {
const maxAge = options && options.ttl && options.ttl * 1000;
const maxAge = options?.ttl && options.ttl * 1000;
this.store.set(key, value, maxAge);

@@ -41,0 +41,0 @@ }

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