@amritk/nish-x86_64-linux 0.38.0 → 0.40.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/INSTALL.md +74 -129
- package/bin/nish +0 -0
- package/docs/AI.md +455 -65
- package/package.json +1 -1
- package/runtime/core/host.d.ts +11 -0
- package/runtime/core/host.mjs +35 -0
- package/runtime/nish.d.ts +320 -33
- package/runtime/nish.h +84 -10
- package/runtime/nish.mjs +69 -6
- package/runtime/node.mjs +117 -0
- package/runtime/page-frame.d.ts +123 -0
- package/runtime/page-frame.mjs +736 -0
- package/runtime/page-game.d.ts +132 -0
- package/runtime/page-game.mjs +738 -0
- package/runtime/runtime-aes.c +97 -12
- package/runtime/runtime-async.c +43 -10
- package/runtime/runtime-bytes.c +88 -4
- package/runtime/runtime-checksum.c +207 -15
- package/runtime/runtime-net.c +64 -3
- package/runtime/runtime-os.c +174 -27
- package/runtime/runtime-region.c +94 -10
- package/runtime/runtime-sandbox.c +404 -17
- package/runtime/runtime-sha256.c +11 -4
- package/runtime/runtime-wasm.c +437 -0
- package/runtime/runtime.c +5 -0
- package/runtime/vite.mjs +1 -1
- package/scripts/build.sh +42 -8
- package/std/README.md +78 -91
- package/std/array.ts +36 -3
- package/std/collections.ts +51 -0
- package/std/compress/checksum.ts +13 -0
- package/std/compress/deflate.ts +0 -2
- package/std/crypto/hmac.ts +37 -10
- package/std/crypto/p256.ts +1629 -2732
- package/std/crypto/p384.ts +3 -1
- package/std/crypto/pki.ts +151 -13
- package/std/crypto/sha256.ts +34 -6
- package/std/crypto/x25519.ts +153 -64
- package/std/crypto/x509.ts +120 -10
- package/std/host/game.ts +273 -0
- package/std/input.ts +56 -0
- package/std/json-tokenizer.ts +344 -111
- package/std/json-typed.ts +256 -12
- package/std/json-value.ts +144 -3
- package/std/json.ts +63 -8
- package/std/net/fetch.ts +22 -4
- package/std/net/handler.ts +130 -16
- package/std/net/http-server.ts +3382 -0
- package/std/net/http1-client-codec.ts +6 -2
- package/std/net/http1-codec.ts +636 -162
- package/std/net/http1-server.ts +569 -42
- package/std/net/http2-cleartext.ts +526 -0
- package/std/net/http2-tls.ts +48 -0
- package/std/net/http2.ts +131 -14
- package/std/net/http3-server.ts +29 -3
- package/std/net/http3.ts +180 -7
- package/std/net/postgres-async.ts +1304 -86
- package/std/net/postgres-carrier.ts +343 -10
- package/std/net/postgres.ts +122 -7
- package/std/net/prefork.ts +195 -11
- package/std/net/quic-datagram.ts +30 -0
- package/std/net/quic-listener.ts +38 -12
- package/std/net/quic-packet.ts +19 -6
- package/std/net/quic-recovery.ts +373 -27
- package/std/net/quic-stream.ts +195 -37
- package/std/net/quic.ts +516 -22
- package/std/net/router.ts +407 -38
- package/std/net/serve.ts +1022 -110
- package/std/net/tls/codec.ts +110 -32
- package/std/net/tls/record-server.ts +37 -7
- package/std/net/tls/verify.ts +19 -1
- package/std/net/tls-tcp.ts +56 -1
- package/std/net/tls.ts +196 -50
- package/std/net/url.ts +83 -35
- package/std/net/websocket.ts +129 -19
- package/std/net/webtransport.ts +185 -1
- package/std/raster.ts +837 -0
- package/std/regex.ts +69 -47
- package/std/region.ts +62 -11
- package/std/release.ts +593 -0
- package/std/secret.ts +26 -59
- package/std/synth.ts +143 -0
- package/std/text.ts +233 -0
- package/std/threads.ts +298 -0
- package/std/yaml-json.ts +368 -28
- package/std/yaml.ts +122 -27
|
@@ -89,6 +89,7 @@ import {
|
|
|
89
89
|
HTTP1_REFUSED,
|
|
90
90
|
HTTP1_UPGRADE,
|
|
91
91
|
HTTP1_FIRST_INPUT,
|
|
92
|
+
http1ChunkExtValid,
|
|
92
93
|
http1HexValue,
|
|
93
94
|
http1IsFieldText,
|
|
94
95
|
http1IsOws,
|
|
@@ -1428,8 +1429,8 @@ const http1ClientEndOfHead = (p: Http1ResponseParser): i32 => {
|
|
|
1428
1429
|
}
|
|
1429
1430
|
|
|
1430
1431
|
/**
|
|
1431
|
-
* Reads a chunk-size line (RFC 9112 §7.1): 1*HEXDIG, then
|
|
1432
|
-
*
|
|
1432
|
+
* Reads a chunk-size line (RFC 9112 §7.1): 1*HEXDIG, then the chunk
|
|
1433
|
+
* extensions `http1ChunkExtValid` reads, parsed but not interpreted. Sets
|
|
1433
1434
|
* `left` and answers `HTTP1_NEED_MORE`, or the refusal.
|
|
1434
1435
|
*/
|
|
1435
1436
|
const http1ClientChunkSize = (p: Http1ResponseParser): i32 => {
|
|
@@ -1475,6 +1476,9 @@ const http1ClientChunkSize = (p: Http1ResponseParser): i32 => {
|
|
|
1475
1476
|
return http1ClientFail(p, HTTP1_E_CHUNK, "a control character in a chunk extension")
|
|
1476
1477
|
}
|
|
1477
1478
|
}
|
|
1479
|
+
if (!http1ChunkExtValid(buf, digitsEnd, b)) {
|
|
1480
|
+
return http1ClientFail(p, HTTP1_E_CHUNK, "a malformed chunk extension")
|
|
1481
|
+
}
|
|
1478
1482
|
}
|
|
1479
1483
|
if (over) {
|
|
1480
1484
|
return http1ClientFail(p, HTTP1_E_BODY_LIMIT, "a chunked body over the limit")
|