import { define } from "../scripts/class-definitions";
export default [
define({
name: "Request",
construct: true,
finalize: true,
klass: {},
JSType: "0b11101110",
estimatedSize: true,
configurable: false,
proto: {
text: { fn: "getText" },
json: { fn: "getJSON" },
body: { getter: "getBody", cache: true },
arrayBuffer: { fn: "getArrayBuffer" },
formData: { fn: "getFormData" },
blob: { fn: "getBlob" },
clone: { fn: "doClone", length: 1 },
cache: {
getter: "getCache",
},
credentials: {
getter: "getCredentials",
},
destination: {
getter: "getDestination",
},
headers: {
getter: "getHeaders",
cache: true,
},
integrity: {
getter: "getIntegrity",
},
method: {
getter: "getMethod",
},
mode: {
getter: "getMode",
},
redirect: {
getter: "getRedirect",
},
referrer: {
getter: "getReferrer",
},
referrerPolicy: {
getter: "getReferrerPolicy",
},
url: {
getter: "getUrl",
cache: true,
},
bodyUsed: {
getter: "getBodyUsed",
},
signal: {
getter: "getSignal",
cache: true,
},
},
}),
define({
name: "Response",
construct: true,
finalize: true,
JSType: "0b11101110",
configurable: false,
estimatedSize: true,
klass: {
json: {
fn: "constructJSON",
},
redirect: {
fn: "constructRedirect",
},
error: {
fn: "constructError",
},
},
proto: {
url: {
getter: "getURL",
cache: true,
},
body: { getter: "getBody", cache: true },
text: { fn: "getText" },
json: { fn: "getJSON" },
arrayBuffer: { fn: "getArrayBuffer" },
blob: { fn: "getBlob" },
clone: { fn: "doClone", length: 1 },
formData: { fn: "getFormData" },
type: {
getter: "getResponseType",
},
headers: {
getter: "getHeaders",
cache: true,
},
redirected: {
getter: "getRedirected",
},
statusText: {
getter: "getStatusText",
cache: true,
},
status: {
getter: "getStatus",
},
ok: {
getter: "getOK",
},
bodyUsed: {
getter: "getBodyUsed",
},
},
}),
define({
name: "Blob",
construct: true,
finalize: true,
JSType: "0b11101110",
klass: {},
configurable: false,
structuredClone: { transferable: false, tag: 254 },
proto: {
text: { fn: "getText" },
json: { fn: "getJSON" },
arrayBuffer: { fn: "getArrayBuffer" },
slice: { fn: "getSlice", length: 2 },
stream: { fn: "getStream", length: 1 },
formData: { fn: "getFormData" },
exists: { fn: "getExists", length: 0 },
type: {
getter: "getType",
},
// TODO: Move this to a separate `File` object or BunFile
// This is *not* spec-compliant.
name: {
getter: "getName",
cache: true,
},
// TODO: Move this to a separate `File` object or BunFile
// This is *not* spec-compliant.
lastModified: {
getter: "getLastModified",
},
size: {
getter: "getSize",
},
writer: {
fn: "getWriter",
length: 1,
},
},
}),
];
>derrick/test/add-ed25519-tests
detect-libc
doc/0.8
dylan/callback-fulfilled-after-rejection
dylan/change-pathname-assert
dylan/cli-fixes
dylan/encoding-fix
dylan/fix-bundling-lodash-es-is-buffer
dylan/fix-error-inlining
dylan/fix-module-field-in-exports
dylan/github-api-option
dylan/github-dependencies
dylan/import-file-path
dylan/non-enumerable-export-values
dylan/resolve-rope-in-string
dylan/set-exit-code
dylan/source-map-names-property
eventstream
feat/ecosystem
feat/npm
fix
fix-prepare-stack-trace
fix-websocket-upgrade
fs-watch-file
got
guides-3
improve-docker
insensitive-pkg-names
integration-tests
jarred/5859
jarred/actions
jarred/add-git
jarred/analytics
jarred/arenas
jarred/ast
jarred/ast-again
jarred/async_bio
jarred/bench
jarred/brotli
jarred/bump-uws
jarred/bundle-workspace-packages
jarred/bunfig
jarred/callable
jarred/canvas
jarred/ci-check
jarred/cjs2
jarred/cleanup-error
jarred/clipboard-objc
jarred/direct
jarred/dump
jarred/edgecase
jarred/esbuild-plugin-api
jarred/escapeHTML
jarred/esm-conditions
jarred/experiment-bsp
jarred/export-star-flat
jarred/exports-map
jarred/faster-error-capturestacktrace
jarred/faster-ordered-properties
jarred/fastmalloc
jarred/fetch-experiment
jarred/fetchheaders
jarred/fix-blob-slice-test
jarred/fix-bunbun-on-wsl
jarred/fix-crash
jarred/fix-http-compression
jarred/fix-issue-with-tsconfig-run
jarred/fix-proxy-regression
jarred/fixes-3129
jarred/gen
jarred/htmlrewriter
jarred/improve-testing
jarred/inquirer
jarred/isolation
jarred/jsc
jarred/land
jarred/landing
jarred/linux
jarred/live-bindings
jarred/make-strings-better
jarred/mdx-thrwawy
jarred/move
jarred/napi
jarred/new-bund
jarred/new-bund-ressurected-branch
jarred/new-http
jarred/no-more-npm
jarred/package-mapper
jarred/pg
jarred/port
jarred/possibly-2732
jarred/postgresql
jarred/precompile-linux-dependencies
jarred/prepare-for-libuv
jarred/profiled-call
jarred/read-tsconfig-jsx
jarred/redo-evaluation-order
jarred/redo-zigstring-for-utf16
jarred/relay
jarred/rename
jarred/repl
jarred/request-finalizer
jarred/rewrite-router
jarred/run
jarred/simdjson
jarred/simplify
jarred/some-fixes-for-eventsource
jarred/standalone-repro1
jarred/start
jarred/strong
jarred/subprocess
jarred/support-tee
jarred/tcc
jarred/throw-if
jarred/update-install-stuff
jarred/update-zig1
jarred/upgrade-zig-2
jarred/uws
jarred/webkit-upgrade-may-17
jarred/wip-more-reliable
jarred/workers
jarred/zlib
jarred/zls
lithdew/picohttp-mimalloc
main
move-templates
nestjs-guide
next-cleanup
origin/main
plugin/plugindata
plugin/resolvedir
postinstall_3
repl
request-body-stream
reserve-commands
revert-5167-dylan/decode-regex-if-needed
rfc/bun-bundler-api
rfc/bunfig-overhaul
save-in-update
sdl
test/action
types/mock
types/readable-stream-default
types/tty
u/vjpr/zig-0.10
xHyroM/types/expose-Bun-Env
Unnamed repository; edit this file 'description' to name the repository.
Age Commit message (Collapse ) Author Files Lines
* fix(node:buffer): fix the behavior of `totalLength` in `Buffer.concat`
Close: #6570
Close: #3639
* fix buffer totalLength type
---------
Co-authored-by: Ashcon Partovi <ashcon@partovi.net>
* Fix minimum kernel version in docs
* Update install.md
* Update install.md
* Update install.md
---------
Co-authored-by: Colin McDonnell <colinmcd94@gmail.com>
* aliased package in dependencies
* other buf
* make sure version works
* make sure overrides don't override alias
* tests
* update
* comments
Closes #6413, #5850
In this example there is no server variable in the context, and here it makes more sense to use ws.publish. It is explained below that once the serve is done, the server.publish can be used.
* make our debug assertions work
* install bun-webkit-debug
* more progress
* ok
* progress...
* more debug build stuff
* ok
* a
* asdfghjkl
* fix(runtime): fix bad assertion failure in JSBufferList
* ok
* stuff
* upgrade webkit
* Update src/bun.js/bindings/JSDOMWrapperCache.h
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
* fix message for colin's changes
* okay
* fix cjs prototype
* implement mainModule
* i think this fixes it all
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
* dfghj
* Handle messages that did not finish
* tidy
* ok
* a
* Merge remote-tracking branch 'origin/main' into dave/ipc-fixes
* test failures
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
Closes #5668
* fixing #5872
* removing useless comment
* fix-subprocess-argument-missing
* fix-tests
* nitpick, these should === not just be undefined
---------
Co-authored-by: dave caruso <me@paperdave.net>
worker_threads instance (#6521)
* fix: ensure threadId property is exposed on worker_threads instance
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* fix: rename lazy worker_threads module properties
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* fix: add getter for threadId
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* test: improve worker_threads UTs
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* test: fix lazy loading
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* test: fix worker_threads test
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
* fix: return the worker threadId
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* test: refine worker_threads expectation on threadId
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
---------
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Fixes #6481
Fixes #6492
Fixes #6527
Fixes #6443
Co-authored-by: Colin McDonnell <colin@KennyM1.local>
* fix pg hang on end + hanging on query
* remove dummy function
* fix node-stream
* add test
* fix test
* return error in test
* fix test use once instead of on
* fix OOM
* generated
* 💅
* 💅
* check if dependency matches workspace version
* test
* Update lockfile.zig
* set resolution to workspace package id
* integrity padding
* error message for bytes at end of struct