singapore / gl-got Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Because this is a library that is consumed by others, should we "unpin" its dependencies and revert to ranges? And if so, then which ranges? And keep devDependencies pinned or also ranges?
While exploring gl-got
, I realized that the unit tests have an online requirement. They require that a GitLab token be set so that the unit tests can access GitLab.com.
I would like to modify the unit tests by extending the use of nock
to make all unit tests offline.
Using this new API could potentially simplify the code considerably. See: sindresorhus/gh-got#29 and the docs https://github.com/sindresorhus/got/blob/master/advanced-creation.md
I think the last major version update changed how tokens are handled.
Previously, we were supporting only Personal Access Tokens with this code:
Lines 22 to 24 in 15367eb
Since v9.0.0, opts.token is passed through to got
and I'm not sure if it's actually used there or not, based on the lack of hits for "token" here: https://github.com/sindresorhus/got/search?utf8=%E2%9C%93&q=token&type=
I was researching this code in the context of adding OAuth token support to this library in addition to Personal Access Token support, when I realised this unanticipated change in v9.
Cc @itaisteinherz @hbetts
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.