New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vue-storefront/middleware

Package Overview
Dependencies
Maintainers
9
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue-storefront/middleware - npm Package Compare versions

Comparing version 4.4.0-terminus.1 to 4.4.0-terminus.2

4

lib/index.cjs.js

@@ -356,5 +356,3 @@ 'use strict';

return async () => {
const memoryUtilization =
// limit is multiplied by 1000 because k8s reports limit in kilobytes, while rss in bytes
process.memoryUsage().rss / (parsedMemoryLimit * 1000);
const memoryUtilization = process.memoryUsage().rss / parsedMemoryLimit;
if (memoryUtilization > parsedMemoryLimitThreshold) {

@@ -361,0 +359,0 @@ throw new Error(`Process memory usage over threshold - current is ${memoryUtilization} where ALOKAI_MEMORY_LIMIT_THRESHOLD is ${parsedMemoryLimitThreshold}`);

@@ -343,5 +343,3 @@ import consola from 'consola';

return async () => {
const memoryUtilization =
// limit is multiplied by 1000 because k8s reports limit in kilobytes, while rss in bytes
process.memoryUsage().rss / (parsedMemoryLimit * 1000);
const memoryUtilization = process.memoryUsage().rss / parsedMemoryLimit;
if (memoryUtilization > parsedMemoryLimitThreshold) {

@@ -348,0 +346,0 @@ throw new Error(`Process memory usage over threshold - current is ${memoryUtilization} where ALOKAI_MEMORY_LIMIT_THRESHOLD is ${parsedMemoryLimitThreshold}`);

{
"name": "@vue-storefront/middleware",
"version": "4.4.0-terminus.1",
"version": "4.4.0-terminus.2",
"main": "lib/index.cjs.js",

@@ -5,0 +5,0 @@ "module": "lib/index.es.js",

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