Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: first draft on improving error messages #66

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

TimeForANinja
Copy link
Collaborator

closes ##63

export type defaultOptions = Miniget.Options;
export type MinigetError = Error;
export type httpLibs = { [key: string]: HTTPLib };
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is exported for the tests right? look at https://github.com/fent/node-muk-require

it would work something like

const badMiniget = muk('../', {
  http: null,
  https: null,
});

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i know about mocking - have only used proxies for it though and that was just awful...
only problem is that library is not ts campatible😉

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'll ask the author if they wanna convert to ts

src/index.ts Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants