aws4fetch-proxy
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -81,2 +81,3 @@ 'use strict'; | ||
this.method = method || (body ? 'POST' : 'GET'); | ||
// if `proxyTo` is present, sign with the destination URL | ||
@@ -88,2 +89,5 @@ if (proxyTo) { | ||
} | ||
// where the actual fetch request will be made | ||
this.fetchUrl = new URL(url); | ||
this.headers = new Headers(headers); | ||
@@ -177,3 +181,3 @@ this.body = body; | ||
method: this.method, | ||
url: this.url, | ||
url: this.fetchUrl, | ||
headers: this.headers, | ||
@@ -180,0 +184,0 @@ body: this.body, |
@@ -77,2 +77,3 @@ const encoder = new TextEncoder('utf-8'); | ||
this.method = method || (body ? 'POST' : 'GET'); | ||
// if `proxyTo` is present, sign with the destination URL | ||
@@ -84,2 +85,5 @@ if (proxyTo) { | ||
} | ||
// where the actual fetch request will be made | ||
this.fetchUrl = new URL(url); | ||
this.headers = new Headers(headers); | ||
@@ -173,3 +177,3 @@ this.body = body; | ||
method: this.method, | ||
url: this.url, | ||
url: this.fetchUrl, | ||
headers: this.headers, | ||
@@ -176,0 +180,0 @@ body: this.body, |
@@ -83,2 +83,3 @@ (function (global, factory) { | ||
this.method = method || (body ? 'POST' : 'GET'); | ||
// if `proxyTo` is present, sign with the destination URL | ||
@@ -90,2 +91,5 @@ if (proxyTo) { | ||
} | ||
// where the actual fetch request will be made | ||
this.fetchUrl = new URL(url); | ||
this.headers = new Headers(headers); | ||
@@ -179,3 +183,3 @@ this.body = body; | ||
method: this.method, | ||
url: this.url, | ||
url: this.fetchUrl, | ||
headers: this.headers, | ||
@@ -182,0 +186,0 @@ body: this.body, |
{ | ||
"name": "aws4fetch-proxy", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/aws4fetch.cjs.js", |
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
43674
782