feat: presets
- Lingua principale
- TypeScript
- Stelle
- 107
- Fork
- 2
- Merge medio
- 16h 31m
- PR unite (30g)
- 1
Descrizione
maybe initialise defaults options like presets:
for example default keep same now:
```ts
stringify({ foo: [ { }, 2 ]}, { preset: 'default' })
// populate.author.fields.0=firstName&populate.author.fields.1=lastName
```
or with preset:
```ts
stringify('foo.bar=baz', { preset: 'qs' })
// populate%5Bauthor%5D%5Bfields%5D%5B0%5D=firstName&populate%5Bauthor%5D%5Bfields%5D%5B1%5D=lastName
```
https://github.com/ljharb/qs/blob/60b62546ad05d436b64b2e0feafc7a5cf4727aee/lib/stringify.js#L30
roughly similar merge with default:
```ts
{
nestingSyntax: 'index',
}
```
I think it has increased users, like for me strapi users who have to use qs but don't want to.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.