c0per

Results 9 issues of c0per

When an npm package has multiple entry points (e.g. both `main` and `browser` entry in `package.json`), how am I supposed to specified witch entry point do I need. Currently I'm...

I try to use this on my newly installed Arch Linux but some errors occur. It turns out that the "which" command is missing in my system for some reason....

After validating the input data, I want to delete all the properties that are not defined in the validation rule from input. Or, to "strip" the input data according to...

### Link to the code that reproduces this issue https://github.com/c0per/307-loop-i18n-middleware ### To Reproduce 1. set `defaultLocale` to something different than `preferredLocale` (from header `accept-language`) 2. npm run dev 3. access...

template: bug
area: I18n

When using `sql.array()` immediately after connection is made, the inferred data type if wrong. ```js import { postgres } from './deps.ts'; const sql = postgres(Deno.env.get('DATABASE_URL')!, { debug: (conn, query, params,...

现在的代码在`sem_timedwait()`返回时,会: - success - time out - 根据errno进行throw `sem_timedwait()`函数会syscall被singal处理打断时,会返回`EINTR`错误,并不代表出现了问题,只是交由用户判断是否继续wait。 现在的版本在遇到`EINTR`时会当作错误处理,造成如下效果: 详情请见: https://linux.die.net/man/3/sem_timedwait https://stackoverflow.com/a/52332012 较为合适的做法是: ```c while ((s = sem_timedwait(&sem, &ts)) == -1 && errno == EINTR) continue; /* Restart if...

In current version, multipart form request will throw a parsing error. This is because `createMiddleware()` treat `req.body` as the raw body and pass it to `new Request()`. But `req.body` is...

Since `CompilerUniverse` only holds a `Arc`, we can't call `append_fonts` or `rebuild` on it. I changed the signature on `append_fonts` and added a new method `clone_and_build`, so it's possible to...