Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: verdaccio/verdaccio
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.3.2
Choose a base ref
...
head repository: verdaccio/verdaccio
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.3.3
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Oct 3, 2019

  1. fix: allow add to request agentOptions (#1506)

    Follow up of #1332
    Documented here verdaccio/website#126
    juanpicado authored Oct 3, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    65d6a93 View commit details
  2. chore(release): 4.3.3

    juanpicado committed Oct 3, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    b1b0c25 View commit details
Showing with 11 additions and 2 deletions.
  1. +7 −0 CHANGELOG.md
  2. +1 −1 package.json
  3. +3 −1 src/lib/up-storage.ts
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [4.3.3](https://github.com/verdaccio/verdaccio/compare/v4.3.2...v4.3.3) (2019-10-03)


### Bug Fixes

* allow add to request agentOptions ([#1506](https://github.com/verdaccio/verdaccio/issues/1506)) ([65d6a93](https://github.com/verdaccio/verdaccio/commit/65d6a93))

### [4.3.2](https://github.com/verdaccio/verdaccio/compare/v4.3.1...v4.3.2) (2019-10-02)


2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "verdaccio",
"version": "4.3.2",
"version": "4.3.3",
"description": "A lightweight private npm proxy registry",
"author": {
"name": "Verdaccio Maintainers",
4 changes: 3 additions & 1 deletion src/lib/up-storage.ts
Original file line number Diff line number Diff line change
@@ -41,6 +41,7 @@ class ProxyStorage implements IProxy {
public timeout: number;
public max_fails: number;
public fail_timeout: number;
public agent_options: any;
// FIXME: upname is assigned to each instance
// @ts-ignore
public upname: string;
@@ -87,6 +88,7 @@ class ProxyStorage implements IProxy {
this.max_fails = Number(setConfig(this.config, 'max_fails', 2));
this.fail_timeout = parseInterval(setConfig(this.config, 'fail_timeout', '5m'));
this.strict_ssl = Boolean(setConfig(this.config, 'strict_ssl', true));
this.agent_options = setConfig(this.config, 'agent_options', {});
}

/**
@@ -200,12 +202,12 @@ class ProxyStorage implements IProxy {
method: method,
headers: headers,
body: json,
// FIXME: ts complains ca cannot be undefined
proxy: this.proxy,
encoding: null,
gzip: true,
timeout: this.timeout,
strictSSL: this.strict_ssl,
agentOptions: this.agent_options,
};

if (this.ca) {