@bytecodealliance/preview2-shim
Advanced tools
Comparing version 0.16.5 to 0.16.6
@@ -201,3 +201,3 @@ import { streams } from './io.js'; | ||
statAt(_pathFlags, path) { | ||
const entry = getChildEntry(this.#entry, path); | ||
const entry = getChildEntry(this.#entry, path, { create: false, directory: false }); | ||
let type = 'unknown', size = BigInt(0); | ||
@@ -204,0 +204,0 @@ if (entry.source) { |
@@ -170,2 +170,3 @@ import { fileURLToPath } from "node:url"; | ||
read(len) { | ||
process._rawDebug('read', len); | ||
return streamIoErrorCall( | ||
@@ -172,0 +173,0 @@ INPUT_STREAM_READ | this.#streamType, |
@@ -355,3 +355,3 @@ import { | ||
isSymlink = lstatSync(fullPath).isSymbolicLink(); | ||
} catch (e) { | ||
} catch { | ||
// | ||
@@ -365,3 +365,3 @@ } | ||
isFile = !statSync(fullPath).isDirectory(); | ||
} catch (e) { | ||
} catch { | ||
// | ||
@@ -435,3 +435,3 @@ } | ||
isDir = statSync(fullPath).isDirectory(); | ||
} catch (_) { | ||
} catch { | ||
// | ||
@@ -455,3 +455,3 @@ } | ||
isDir = statSync(fullPath).isDirectory(); | ||
} catch (e) { | ||
} catch { | ||
// | ||
@@ -458,0 +458,0 @@ } |
@@ -543,3 +543,3 @@ import { | ||
validateHeaderValue(name, new TextDecoder().decode(value)); | ||
} catch (e) { | ||
} catch { | ||
throw { tag: "invalid-syntax" }; | ||
@@ -546,0 +546,0 @@ } |
{ | ||
"name": "@bytecodealliance/preview2-shim", | ||
"version": "0.16.5", | ||
"version": "0.16.6", | ||
"description": "WASI Preview2 shim for JS environments", | ||
@@ -5,0 +5,0 @@ "author": "Guy Bedford, Eduardo Rodrigues<16357187+eduardomourar@users.noreply.github.com>", |
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
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
303711
8995