Regression v1.3.0+ in Safari
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript
- Ambito
- tooling
Direzione di ricerca
Riproduci il problema nell’esempio docusaurus-openapi con yarn install, yarn build-packages e yarn start, quindi confronta il risultato del lockfile di v1.1.5 con v1.3.0–v1.5.0. Esamina le modifiche alle espressioni regolari associate alla PR 651 di postman-code-generators e il percorso seguito dalla funzione convert. Il lavoro è completato quando Safari si carica senza l’eccezione, mentre il comportamento di Chrome rimane invariato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
Using this package at ^1.3.0 results in the following exception in Safari:
Unhandled Promise Rejection: SyntaxError: Invalid regular expression: invalid group specifier named
This will crash any implementation that is not try/catching their usage around this library (e.g. when using the convert function).
To Reproduce
Steps to reproduce the behavior:
You can reproduce this issue by cloning this repository: https://github.com/cloud-annotations/docusaurus-openapi
yarn install(note: the lock file is currently resolving1.1.5)yarn build-packagesyarn start- In Safari, navigate to: http://localhost:3000/petstore
- Observe: The page loads, no errors in the console
- In Chrome, navigate to: http://localhost:3000/petstore
- Observe: The page loads, no errors in the console
Now, delete the yarn.lock file at the root of the repository and repeat the steps. (this will resolve 1.5.0)
- In Safari, the page will not load and the following error will be displayed in the console:
Unhandled Promise Rejection: SyntaxError: Invalid regular expression: invalid group specifier named
- In Chrome, the page will load and there is no error in the console.
Expected code snippet and corresponding request
N/A
Screenshots
N/A
Additional context
I tried to narrow which version was causing this issue and it appears to be in the v1.3.0 release era (happens in v1.4.0 and v1.5.0 as well).
It could be from this PR: https://github.com/postmanlabs/postman-code-generators/pull/651, however the changelog doesn't currently link to commits and is somewhat hard to narrow changes per release.
Safari does not support look behind with regular expression matching, so whatever change in v1.3.0 introduces that usage, is likely the culprit.
- Lingua principale
- JavaScript
- Stelle
- 1k
- Fork
- 382
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di postmanlabs/postman-code-generators
-
postinstall runs 35 nested installs when used as a dependency, which consumers don't needForse già presa @aelmanaa l’ha presa 7 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
cURL snippet with double quotes adds a backslash before every # characterForse già presa @sebxt l’ha presa 19 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
postmanlabs/postman-code-generators#822 · 1 commento ·
-
curl codegen: file-type FormParam contentType ignored — ';type=' not emitted for multipart file partsForse già presa @CrypticCortex l’ha presa 183 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
postmanlabs/postman-code-generators#815 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
Tutte le issue di postmanlabs/postman-code-generators
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
scratchfoundation/scratch-editor#754 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 96/100
google/site-kit-wp#14102 ·
I maintainer di solito rispondono entro 2 giorni
-
area:growth priority:P1 type:docs
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
tecnologiasantos/bogoboom#66 ·
I maintainer di solito rispondono entro 1 giorno
-
desktop docs good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
npm/write-file-atomic#245 ·