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

@trieb.work/server-utils

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trieb.work/server-utils - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

12

caching/redis.ts

@@ -97,11 +97,11 @@ import Redis from "ioredis";

}
console.debug(
`CACHE-HIT: Could retrieve value from cache. Key: ${parametrizedKey}`,
);
// console.debug(
// `CACHE-HIT: Could retrieve value from cache. Key: ${parametrizedKey}`,
// );
return cached.value;
} catch (err) {
if (REDIS_CACHE_ENABLE) {
console.error(
`CACHE-MISS: Could not retrieve value from cache. Calculate and store new function result now. Key: ${parametrizedKey}`,
);
// console.error(
// `CACHE-MISS: Could not retrieve value from cache. Calculate and store new function result now. Key: ${parametrizedKey}`,
// );
} else {

@@ -108,0 +108,0 @@ console.debug(

@@ -71,3 +71,5 @@ "use strict";

}
console.debug(`CACHE-HIT: Could retrieve value from cache. Key: ${parametrizedKey}`);
// console.debug(
// `CACHE-HIT: Could retrieve value from cache. Key: ${parametrizedKey}`,
// );
return cached.value;

@@ -77,3 +79,5 @@ }

if (REDIS_CACHE_ENABLE) {
console.error(`CACHE-MISS: Could not retrieve value from cache. Calculate and store new function result now. Key: ${parametrizedKey}`);
// console.error(
// `CACHE-MISS: Could not retrieve value from cache. Calculate and store new function result now. Key: ${parametrizedKey}`,
// );
}

@@ -80,0 +84,0 @@ else {

{
"name": "@trieb.work/server-utils",
"description": "Internal trieb.work utils for server apps",
"version": "0.1.7",
"version": "0.1.8",
"main": "dist/index.js",

@@ -6,0 +6,0 @@ "license": "Apache License 2.0",

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