Wykres commitów

2 Commity (0f7999f0f611133b28c8a68446ffc16ed99cd07f)

Autor SHA1 Wiadomość Data
Kyle Brown 370a4a87b6
feat: allow customn npm and github endpoints (#412)
* feat: allow customnpm and github endpoints

Allow specifying of custom endpoints for NPM
and Github. This is to allow usage in a
self-hosted enterprise environment.

These are configured by an override environment variable.

`NPM_URL="https://registry.npm.compnay.com"` - NPM

`GITHUB_URL="https://github.company.com/api/v3"` - Github v3

`GITHUB_URL_GRAPHQL="https://github.company.com/api/graphql" - Github
Graphql

* feat(npm): support all pkg data through npm reg

- Add option to disable use of unpkg for npm "info"
- Add ability to query scoped packages and tags through npm
- Update env var names

Note, this keeps existing logic unless DISABLE_UNPKG == true

* fix(npm): fix if logic, remove elses

* fix: address review comments

- Address review comments
- Query NPM with abbreviated metadata header support
- Support GITHUB_TOKENS
- Environment variable info in readme
- Only skip unpkg use if a custom registry is used.
2020-07-15 14:37:18 +08:00
Dario Vladović 55926c5fb3
badge: add winget support (#392)
* badge: add winget support

* refactor: introduce github rest/graphql client lib
2020-05-20 23:49:46 +08:00