Socket
Book a DemoSign in
Socket

@bytecodealliance/componentize-js

Package Overview
Dependencies
Maintainers
3
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bytecodealliance/componentize-js - npm Package Compare versions

Comparing version
0.18.0
to
0.18.1
+5
-4
package.json
{
"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 @@ },

]
}
}

@@ -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);