pfg
pfg
Here's a workaround until this is fixed in the library: ```ts const styl = (a: string) => { const stylres = document.createElement("style"); stylres.appendChild(document.createTextNode(a)); return stylres; } ninja.shadowRoot!.appendChild(styl("* {will-change: unset !important}"));...
The one reason I've wanted it in the past is for safety on `*anyopaque`. Assuming `@typeName` is guaranteed to be unique, it can be used instead. ```zig const AnyPtr =...
Right now this is especially a problem for `.text()` ```ts import {$} from "bun"; await $`ls abc`.text(); ``` This just returns `""` with no indication that the command failed and...
`@bun` files must be ascii-only to reduce memory usage. If the file was generated by a bun command, then this is a bug. Bun should escape non-ascii strings when generating...
Reproduction: ```js // a.js import obj from "./a.json"; console.log(obj); // a.json {"a": "测试"} ``` `bun build a.js --target=bun` ```js // @bun // a.json var a_default = { a: "测试" };...
If you want a complete preview of all the actions in a shortcut, I'm working on [icloud-shortcut-preview](https://github.com/pfgithub/icloud-shortcut-preview) using the [shortcut-preview](https://github.com/xAlien95/shortcut-preview) react component, it shows all the actions of a shortcut...
> there are security concerns to allowing any origin What are the security concerns? Reddit and twitch allow cross-origin, and mastodon defaults to allowing it. The main thing to watch...
@mollthecoder I'll test it when I'm back at a computer. It may be wanted to disable cors on the /user/register endpoint (so a random website can't register a new account...
I'm marking this as a draft until I can test it properly and disable access to /auth/signup. I don't believe lemmy is vulnerable to csrf attacks right now, so allowing...
For allocation, you're not supposed to call `.vtable` methods. Instead, you should call `thing.allocator()` which returns a struct of type `std.mem.Allocator` and then use `.create()` / `.destroy()` / `.alloc()` /...