Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[QUESTION] What should happen with empty or invalid bugs field?

Aperta
#16 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
tooling

Direzione di ricerca

Review the current behavior described in option 2 and compare it with the proposed handling for empty or invalid bugs fields. Determine which policy should apply to invalid email and url properties, including whether validation or coercion is wanted. Done means the project has an agreed behavior for each listed case.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

question
  1. Remove it always.

  2. Remove it if neither valid url or email were given, or could have been inferred. (current behavior)

  3. Set it to an empty object.

  4. Leave as much fields as is, but

    a. remove offending properties
    b. coerce offending properties to string

Properties are email and url, which must be strings. They could also be validated to be email addresses or http urls, respectively.

Lingua principale
JavaScript
Stelle
204
Fork
54
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di npm/normalize-package-data

Tutte le issue di npm/normalize-package-data

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.