volos-cache-common
Advanced tools
Comparing version 0.10.6 to 0.10.7
@@ -116,5 +116,3 @@ /**************************************************************************** | ||
resp.on('finish', function() { | ||
doCache = true; | ||
headers = resp._headers; | ||
content = chunk; | ||
encoder.cache(resp.statusCode, resp._headers, chunk, cb); | ||
}); | ||
@@ -129,3 +127,3 @@ } | ||
return next(); | ||
return next(env); | ||
}; | ||
@@ -132,0 +130,0 @@ |
@@ -124,5 +124,3 @@ /**************************************************************************** | ||
resp.on('finish', function() { | ||
doCache = true; | ||
headers = resp._headers; | ||
content = chunk; | ||
encoder.cache(resp.statusCode, resp._headers, chunk, cb); | ||
}); | ||
@@ -129,0 +127,0 @@ } |
@@ -56,3 +56,3 @@ /**************************************************************************** | ||
buffer = new Buffer(size); | ||
buffer = new Buffer.allocUnsafe(size); | ||
var pos = 0; | ||
@@ -59,0 +59,0 @@ buffer.writeUInt16LE(statusCode, pos); pos+=2; |
@@ -191,3 +191,3 @@ /**************************************************************************** | ||
if (typeof value === 'string') { | ||
return new Buffer(value, encoding); | ||
return new Buffer.from(value, encoding); | ||
} else if (value instanceof Buffer) { | ||
@@ -194,0 +194,0 @@ return value; |
{ | ||
"name": "volos-cache-common", | ||
"version": "0.10.6", | ||
"version": "0.10.7", | ||
"main": "lib/cache.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
31531
7
529
2