[QUESTION] Have a way to just check for correctness (i.e. whether there are warnings) ?
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- javascript
- Ambito
- tooling
Direzione di ricerca
Start by reading the normalize API and the warning-callback approach described in the issue. The scope is not yet settled: define how callers should check package.json correctness, including possible levels of warnings, without changing the package data; done should include an agreed interface and behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Originally, I thought that it would be best to separate the code for generating warnings from the code that make changes to data. But that was before I thought of the (quite elegant) solution of passing a warn function along.
However, it may be interesting to check for package.json validity (perhaps on several levels of correctness) while leaving the package data alone.
The consumer of this function could also do it by himself, by calling normalize on a cloned object, and pass a "warn" function that (for example) sets a "hasWarned" to true, then check this hasWarnings value afterwards.
- Lingua principale
- JavaScript
- Stelle
- 204
- Fork
- 53
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
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 npm/normalize-package-data
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
npm/normalize-package-data#105 ·
-
feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 32/100
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
-
feature
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
npm/normalize-package-data#83 · 1 commento ·
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
npm/normalize-package-data#75 · 2 reazioni ·
Tutte le issue di npm/normalize-package-data
Issue simili
-
[Bug] @deck.gl/arcgis dist import resolves to unpublished @deck.gl/core source path (9.3.11, 9.4.0)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
stac-utils/stac-fields#42 ·
-
[sec-check] SVG remote-reference gate misses src attributes, link hrefs and bare-string @importApertaagent/security hive/hosted-available-lke648397-260827-5n31 security
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
Fix #3381 does not fix #3343: watch() returns the ref, not the value, so setup() never re-runsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno
-
Add: Eurosport 1 PolskaApertachannels:add check:passed
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
I maintainer di solito rispondono entro 2 giorni