v8-compile-cache
Advanced tools
Comparing version 2.3.0 to 2.4.0
{ | ||
"name": "v8-compile-cache", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "Require hook for automatic V8 compile cache persistence", | ||
@@ -5,0 +5,0 @@ "main": "v8-compile-cache.js", |
@@ -322,2 +322,4 @@ 'use strict'; | ||
: 'v8-compile-cache'; | ||
// Avoid cache incompatibility issues with Rosetta on Apple Silicon. | ||
const arch = process.arch; | ||
const version = typeof process.versions.v8 === 'string' | ||
@@ -328,3 +330,3 @@ ? process.versions.v8 | ||
: 'node-' + process.version; | ||
const cacheDir = path.join(os.tmpdir(), dirname, version); | ||
const cacheDir = path.join(os.tmpdir(), dirname, arch, version); | ||
return cacheDir; | ||
@@ -331,0 +333,0 @@ } |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
318
14909
4
1