Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

refactor(@schematics/update): use npm-registry-client to get data#692

Merged
clydin merged 1 commit intoangular:masterfrom
clydin:npm-registry
Apr 19, 2018
Merged

refactor(@schematics/update): use npm-registry-client to get data#692
clydin merged 1 commit intoangular:masterfrom
clydin:npm-registry

Conversation

@clydin
Copy link
Copy Markdown
Member

@clydin clydin commented Apr 12, 2018

Current npm settings for registry, proxy, and https-proxy will also be automatically used if present.

Brocco
Brocco previously approved these changes Apr 12, 2018
Copy link
Copy Markdown
Contributor

@Brocco Brocco left a comment

Choose a reason for hiding this comment

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

lgtm

});
client.log.level = 'silent';
const params = {
timeout: 1000,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Timeout needs to be larger.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd say 30 seconds is fine. All requests are executed in parallel aynway.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done.

}
});
response.on('error', err => subject.error(err));
const client = new RegistryClient({
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are there any proxy information to be passed in?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

not added yet. wanted to make sure it was an adequate replacement first.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants