Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@bytecodealliance/jco-std

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bytecodealliance/jco-std - npm Package Compare versions

Comparing version
0.1.3
to
0.2.0
+2
-2
dist/0.2.x/http/types/response.js

@@ -16,3 +16,3 @@ const ENCODER = new TextEncoder();

const fields = [];
for (const [k, v] of [...resp.headers.entries()]) {
for (const [k, v] of [...Object.entries(resp.headers)]) {
fields.push([k.toString(), ENCODER.encode(v)]);

@@ -65,3 +65,3 @@ }

// Write a view of the chunk in
const view = new Uint8Array(chunk, Number(written), pendingAmt);
const view = new Uint8Array(chunk.buffer, Number(written), pendingAmt);
outputStream.write(view);

@@ -68,0 +68,0 @@ written += BigInt(pendingAmt);

/** Get the global `Request` */
export declare function ensureGlobalRequest(): typeof import("undici-types").Request;
export declare function ensureGlobalRequest(): {
new (input: RequestInfo | URL, init?: RequestInit): Request;
prototype: Request;
};
/** Get the global `ReadableStream` */
export declare function ensureGlobalReadableStream(): {
new (underlyingSource: import("stream/web").UnderlyingByteSource, strategy?: import("stream/web").QueuingStrategy<Uint8Array>): import("stream/web").ReadableStream<Uint8Array>;
new <R = any>(underlyingSource?: import("stream/web").UnderlyingSource<R>, strategy?: import("stream/web").QueuingStrategy<R>): import("stream/web").ReadableStream<R>;
prototype: import("stream/web").ReadableStream;
from<T>(iterable: Iterable<T> | AsyncIterable<T>): import("stream/web").ReadableStream<T>;
new (underlyingSource: UnderlyingByteSource, strategy?: {
highWaterMark?: number;
}): ReadableStream<Uint8Array<ArrayBuffer>>;
new <R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
new <R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
prototype: ReadableStream;
};

@@ -10,0 +15,0 @@ /** Get the global `AddEventListener` */

@@ -1,1 +0,1 @@

{"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../src/wasi/globals.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,wBAAgB,mBAAmB,0CAKlC;AAED,sCAAsC;AACtC,wBAAgB,0BAA0B;;;;;EAKzC;AAED,wCAAwC;AACxC,wBAAgB,4BAA4B,IAAI,WAAW,CAAC,kBAAkB,CAAC,CAK9E"}
{"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../src/wasi/globals.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,wBAAgB,mBAAmB;;;EAKlC;AAED,sCAAsC;AACtC,wBAAgB,0BAA0B;;qBAcml4oC,CAAC;;;;;EAT7n4oC;AAED,wCAAwC;AACxC,wBAAgB,4BAA4B,IAAI,WAAW,CAAC,kBAAkB,CAAC,CAK9E"}
{
"name": "@bytecodealliance/jco-std",
"version": "0.1.3",
"version": "0.2.0",
"description": "Library of shared functionality for use with the JS WebAssembly components",

@@ -76,18 +76,5 @@ "keywords": [

},
"scripts": {
"setup:jco-transpile:build": "npm run build -w @bytecodealliance/jco-transpile",
"fmt": "oxfmt",
"fmt:check": "oxfmt --check",
"lint": "oxlint",
"lint:fix": "npm run lint -- --fix",
"build:bindings:wasi:http:0.2.6": "WIT_PATH=wit/http-v0m2p6 OUTPUT_DIR_PATH=src/wasi/0.2.6/generated/types node scripts/generate-wasi-bindings.mjs",
"build:bindings:wasi:http:0.2.3": "WIT_PATH=wit/http-v0m2p3 OUTPUT_DIR_PATH=src/wasi/0.2.3/generated/types node scripts/generate-wasi-bindings.mjs",
"build:bindings": "npm run build:bindings:wasi:http:0.2.3 && npm run build:bindings:wasi:http:0.2.6",
"build:ts": "tsc",
"build": "npm run setup:jco-transpile:build && npm run build:bindings && npm run build:ts",
"test": "vitest run -c test/vitest.ts",
"prepack": "npm run build"
},
"devDependencies": {
"@bytecodealliance/componentize-js": "^0.19.3",
"@bytecodealliance/componentize-js": "^0.21.0",
"@bytecodealliance/componentize-js-0-19-3": "npm:@bytecodealliance/componentize-js@^0.19.3",
"@bytecodealliance/jco-transpile": "^0.1.1",

@@ -100,3 +87,16 @@ "@bytecodealliance/preview2-shim": "^0.17.5",

"which": "^5.0.0"
},
"scripts": {
"setup:jco-transpile:build": "pnpm run --filter '@bytecodealliance/jco-transpile' build",
"fmt": "oxfmt",
"fmt:check": "oxfmt --check",
"lint": "oxlint",
"lint:fix": "oxlint --fix",
"build:bindings:wasi:http:0.2.6": "WIT_PATH=wit/http-v0m2p6 OUTPUT_DIR_PATH=src/wasi/0.2.6/generated/types node scripts/generate-wasi-bindings.mjs",
"build:bindings:wasi:http:0.2.3": "WIT_PATH=wit/http-v0m2p3 OUTPUT_DIR_PATH=src/wasi/0.2.3/generated/types node scripts/generate-wasi-bindings.mjs",
"build:bindings": "pnpm run build:bindings:wasi:http:0.2.3 && pnpm run build:bindings:wasi:http:0.2.6",
"build:ts": "tsc",
"build": "pnpm run setup:jco-transpile:build && pnpm run build:bindings && pnpm run build:ts",
"test": "vitest run -c test/vitest.ts"
}
}
}