verdaccio-aws-s3-storage
Advanced tools
Comparing version 10.3.3 to 10.4.0
@@ -12,2 +12,3 @@ import { Config } from '@verdaccio/legacy-types'; | ||
sessionToken?: string; | ||
proxy?: string; | ||
} |
@@ -32,2 +32,3 @@ "use strict"; | ||
this.config.sessionToken = (0, _setConfigValue.default)(this.config.sessionToken); | ||
this.config.proxy = (0, _setConfigValue.default)(this.config.proxy); | ||
const configKeyPrefix = this.config.keyPrefix; | ||
@@ -45,3 +46,6 @@ this._localData = null; | ||
secretAccessKey: this.config.secretAccessKey, | ||
sessionToken: this.config.sessionToken | ||
sessionToken: this.config.sessionToken, | ||
httpOptions: { | ||
proxy: this.config.proxy | ||
} | ||
}); | ||
@@ -48,0 +52,0 @@ } |
@@ -27,3 +27,4 @@ "use strict"; | ||
sessionToken, | ||
tarballACL | ||
tarballACL, | ||
proxy | ||
} = config; | ||
@@ -37,3 +38,6 @@ this.tarballACL = tarballACL || 'private'; | ||
secretAccessKey, | ||
sessionToken | ||
sessionToken, | ||
httpOptions: { | ||
proxy | ||
} | ||
}); | ||
@@ -64,2 +68,5 @@ this.logger.trace({ | ||
}, 's3: [S3PackageManager constructor] sessionToken @{sessionToken}'); | ||
this.logger.trace({ | ||
proxy | ||
}, 's3: [S3PackageManager constructor] proxy @{proxy}'); | ||
const packageAccess = this.config.getMatchedPackagesSpec(packageName); | ||
@@ -66,0 +73,0 @@ if (packageAccess) { |
{ | ||
"name": "verdaccio-aws-s3-storage", | ||
"version": "10.3.3", | ||
"version": "10.4.0", | ||
"description": "AWS S3 storage implementation for Verdaccio", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -61,2 +61,3 @@ # verdaccio-aws-s3-storage | ||
sessionToken: your-session-token # optional, aws sessionToken for private S3 bucket | ||
proxy: your-proxy # optional, HTTP or HTTPS proxies if you can't connect to internet directly | ||
``` | ||
@@ -73,2 +74,3 @@ | ||
- `sessionToken` | ||
- `proxy` | ||
@@ -87,2 +89,3 @@ > If an environment variable is not set then it is assumed the value is the literal value given. For example, if `S3_BUCKET` is not set, then this will use a bucket named exactly "S3_BUCKET". | ||
sessionToken: S3_SESSION_TOKEN | ||
proxy: HTTPS_PROXY | ||
``` | ||
@@ -89,0 +92,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
95584
857
145