@bytecodealliance/componentize-js
Advanced tools
+5
-4
| { | ||
| "name": "@bytecodealliance/componentize-js", | ||
| "version": "0.18.0", | ||
| "version": "0.18.1", | ||
| "homepage": "https://github.com/bytecodealliance/componentize-js#readme", | ||
@@ -16,2 +16,3 @@ "description": "ESM -> WebAssembly Component creator, via a SpiderMonkey JS engine embedding", | ||
| "@bytecodealliance/preview2-shim": "^0.17.1", | ||
| "cross-env": "^7.0.3", | ||
| "mocha": "^11.1.0" | ||
@@ -35,4 +36,4 @@ }, | ||
| "test:release": "mocha -u tdd test/test.js --timeout 120000", | ||
| "test:weval": "WEVAL_TEST=1 mocha -u tdd test/test.js --timeout 120000", | ||
| "test:debug": "DEBUG_TEST=1 mocha -u tdd test/test.js --timeout 120000", | ||
| "test:weval": "cross-env WEVAL_TEST=1 mocha -u tdd test/test.js --timeout 120000", | ||
| "test:debug": "cross-env DEBUG_TEST=1 mocha -u tdd test/test.js --timeout 120000", | ||
| "prepublishOnly": "npm run build" | ||
@@ -53,2 +54,2 @@ }, | ||
| ] | ||
| } | ||
| } |
+13
-4
@@ -28,4 +28,13 @@ import { freemem } from "node:os"; | ||
| if (!path) return path; | ||
| if (!isWindows) return resolve(path); | ||
| return '//?/' + resolve(path).replace(/\\/g, '/'); | ||
| const resolvedPath = resolve(path); | ||
| if (!isWindows) return resolvedPath; | ||
| // Strip any existing UNC prefix check both the format we add as well as what | ||
| // the windows API returns when using path.resolve | ||
| let cleanPath = resolvedPath; | ||
| while (cleanPath.startsWith('\\\\?\\') || cleanPath.startsWith('//?/')) { | ||
| cleanPath = cleanPath.substring(4); | ||
| } | ||
| return '//?/' + cleanPath.replace(/\\/g, '/'); | ||
| } | ||
@@ -112,3 +121,3 @@ | ||
| await mkdir(tmpDir); | ||
| const sourceDir = join(tmpDir, 'sources'); | ||
| const sourceDir = maybeWindowsPath(join(tmpDir, 'sources')); | ||
| await mkdir(sourceDir); | ||
@@ -228,3 +237,3 @@ | ||
| let initializerPath = join(sourceDir, 'initializer.js'); | ||
| let initializerPath = maybeWindowsPath(join(sourceDir, 'initializer.js')); | ||
| sourcePath = maybeWindowsPath(sourcePath); | ||
@@ -231,0 +240,0 @@ let workspacePrefix = dirname(sourcePath); |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
43324902
04891
0.14%2
-33.33%3
50%