@theia/request 1.39.0-next.9 → 1.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@
11
11
  * with the GNU Classpath Exception which is available at
12
12
  * https://www.gnu.org/software/classpath/license.html.
13
13
  *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  ********************************************************************************/
16
16
  export interface Headers {
17
17
  [header: string]: string;
@@ -12,7 +12,7 @@
12
12
  * with the GNU Classpath Exception which is available at
13
13
  * https://www.gnu.org/software/classpath/license.html.
14
14
  *
15
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
16
  ********************************************************************************/
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.REQUEST_SERVICE_PATH = exports.BackendRequestService = exports.RequestService = exports.RequestContext = void 0;
package/lib/index.d.ts CHANGED
@@ -11,7 +11,7 @@
11
11
  * with the GNU Classpath Exception which is available at
12
12
  * https://www.gnu.org/software/classpath/license.html.
13
13
  *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  ********************************************************************************/
16
16
  export * from './common-request-service';
17
17
  //# sourceMappingURL=index.d.ts.map
package/lib/index.js CHANGED
@@ -12,7 +12,7 @@
12
12
  * with the GNU Classpath Exception which is available at
13
13
  * https://www.gnu.org/software/classpath/license.html.
14
14
  *
15
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
16
  ********************************************************************************/
17
17
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
18
  if (k2 === undefined) k2 = k;
@@ -11,7 +11,7 @@
11
11
  * with the GNU Classpath Exception which is available at
12
12
  * https://www.gnu.org/software/classpath/license.html.
13
13
  *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  ********************************************************************************/
16
16
  /// <reference types="node" />
17
17
  import * as http from 'http';
@@ -12,7 +12,7 @@
12
12
  * with the GNU Classpath Exception which is available at
13
13
  * https://www.gnu.org/software/classpath/license.html.
14
14
  *
15
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
16
  ********************************************************************************/
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.NodeRequestService = void 0;
@@ -52,9 +52,15 @@ class NodeRequestService {
52
52
  options.agent = agent;
53
53
  const authorization = options.proxyAuthorization || this.authorization;
54
54
  if (authorization) {
55
- options.headers = Object.assign(Object.assign({}, (options.headers || {})), { 'Proxy-Authorization': authorization });
55
+ options.headers = {
56
+ ...(options.headers || {}),
57
+ 'Proxy-Authorization': authorization
58
+ };
56
59
  }
57
- options.headers = Object.assign({ 'Accept-Encoding': 'gzip' }, (options.headers || {}));
60
+ options.headers = {
61
+ 'Accept-Encoding': 'gzip',
62
+ ...(options.headers || {}),
63
+ };
58
64
  return options;
59
65
  }
60
66
  request(options, token) {
@@ -81,7 +87,11 @@ class NodeRequestService {
81
87
  var _a;
82
88
  const followRedirects = (_a = options.followRedirects) !== null && _a !== void 0 ? _a : 3;
83
89
  if (res.statusCode && res.statusCode >= 300 && res.statusCode < 400 && followRedirects > 0 && res.headers.location) {
84
- this.request(Object.assign(Object.assign({}, options), { url: res.headers.location, followRedirects: followRedirects - 1 }), token).then(resolve, reject);
90
+ this.request({
91
+ ...options,
92
+ url: res.headers.location,
93
+ followRedirects: followRedirects - 1
94
+ }, token).then(resolve, reject);
85
95
  }
86
96
  else {
87
97
  const chunks = [];
@@ -1 +1 @@
1
- {"version":3,"file":"node-request-service.js","sourceRoot":"","sources":["../src/node-request-service.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,6BAA6B;AAC7B,+BAA+B;AAC/B,mCAAoD;AAEpD,+BAAoC;AAUnC,CAAC;AAEF,MAAa,kBAAkB;IAMjB,cAAc,CAAC,OAAuB;QAC5C,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACtC,MAAM,MAAM,GAAG,QAAQ,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;QAC7D,OAAO,MAAM,CAAC,OAAO,CAAC;IAC1B,CAAC;IAES,KAAK,CAAC,WAAW,CAAC,GAAW;QACnC,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,MAA4B;QACxC,IAAI,MAAM,CAAC,QAAQ,KAAK,SAAS,EAAE;YAC/B,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;SACnC;QACD,IAAI,MAAM,CAAC,SAAS,KAAK,SAAS,EAAE;YAChC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;SACrC;QACD,IAAI,MAAM,CAAC,kBAAkB,KAAK,SAAS,EAAE;YACzC,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,kBAAkB,CAAC;SAClD;IACL,CAAC;IAES,KAAK,CAAC,cAAc,CAAC,OAA2B;;QACtD,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;QAC3B,OAAO,CAAC,SAAS,GAAG,MAAA,OAAO,CAAC,SAAS,mCAAI,SA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6 @@
11
11
  * with the GNU Classpath Exception which is available at
12
12
  * https://www.gnu.org/software/classpath/license.html.
13
13
  *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  ********************************************************************************/
16
16
  //# sourceMappingURL=package.spec.d.ts.map
@@ -11,7 +11,7 @@
11
11
  * with the GNU Classpath Exception which is available at
12
12
  * https://www.gnu.org/software/classpath/license.html.
13
13
  *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  ********************************************************************************/
16
16
  /* note: this bogus test file is required so that
17
17
  we are able to run mocha unit tests on this
package/lib/proxy.d.ts CHANGED
@@ -11,7 +11,7 @@
11
11
  * with the GNU Classpath Exception which is available at
12
12
  * https://www.gnu.org/software/classpath/license.html.
13
13
  *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  ********************************************************************************/
16
16
  import * as httpAgent from 'http-proxy-agent';
17
17
  import * as httpsAgent from 'https-proxy-agent';
package/lib/proxy.js CHANGED
@@ -12,7 +12,7 @@
12
12
  * with the GNU Classpath Exception which is available at
13
13
  * https://www.gnu.org/software/classpath/license.html.
14
14
  *
15
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
16
  ********************************************************************************/
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.getProxyAgent = void 0;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@theia/request",
3
- "version": "1.39.0-next.9+0caea2c27",
3
+ "version": "1.40.0",
4
4
  "description": "Theia Proxy-Aware Request Service",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "license": "EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0",
8
+ "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0",
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "https://github.com/eclipse-theia/theia.git"
@@ -32,5 +32,5 @@
32
32
  "http-proxy-agent": "^5.0.0",
33
33
  "https-proxy-agent": "^5.0.0"
34
34
  },
35
- "gitHead": "0caea2c27ae5b033751ef7cc041ec9ae953b0bc7"
35
+ "gitHead": "b2c84f963c24bde22dbdecd8c506eccc0768f400"
36
36
  }
@@ -11,7 +11,7 @@
11
11
  * with the GNU Classpath Exception which is available at
12
12
  * https://www.gnu.org/software/classpath/license.html.
13
13
  *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  ********************************************************************************/
16
16
 
17
17
  const textDecoder = typeof TextDecoder !== 'undefined' ? new TextDecoder() : undefined;
package/src/index.ts CHANGED
@@ -11,7 +11,7 @@
11
11
  * with the GNU Classpath Exception which is available at
12
12
  * https://www.gnu.org/software/classpath/license.html.
13
13
  *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  ********************************************************************************/
16
16
 
17
17
  export * from './common-request-service';
@@ -11,7 +11,7 @@
11
11
  * with the GNU Classpath Exception which is available at
12
12
  * https://www.gnu.org/software/classpath/license.html.
13
13
  *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  ********************************************************************************/
16
16
 
17
17
  import * as http from 'http';
@@ -11,7 +11,7 @@
11
11
  * with the GNU Classpath Exception which is available at
12
12
  * https://www.gnu.org/software/classpath/license.html.
13
13
  *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  ********************************************************************************/
16
16
 
17
17
  /* note: this bogus test file is required so that
package/src/proxy.ts CHANGED
@@ -11,7 +11,7 @@
11
11
  * with the GNU Classpath Exception which is available at
12
12
  * https://www.gnu.org/software/classpath/license.html.
13
13
  *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  ********************************************************************************/
16
16
 
17
17
  import { parse as parseUrl, Url } from 'url';