npm package diff
Package: @forge/bundler
Versions: 6.0.0-next.13 - 6.0.0-next.14
File: package/out/stubs/http-sandbox.js
Index: package/out/stubs/http-sandbox.js
===================================================================
--- package/out/stubs/http-sandbox.js
+++ package/out/stubs/http-sandbox.js
@@ -1,27 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.Agent = exports.get = exports.request = void 0;
-const http_sandbox_impl_1 = require("./http-sandbox-impl");
-function request(options, callback) {
- return new http_sandbox_impl_1.Request(options, callback);
-}
-exports.request = request;
-function get(options, callback) {
- if ((0, http_sandbox_impl_1.isHttpRequestOptions)(options)) {
- options = { ...options, method: 'GET' };
- }
- const result = new http_sandbox_impl_1.Request(options, callback);
- result.end();
- return result;
-}
-exports.get = get;
-const NUM_SUPPORTED_AGENT_OPTIONS = 1;
-class Agent {
- constructor(options) {
- if (Object.keys(options).length > NUM_SUPPORTED_AGENT_OPTIONS) {
- console.warn("Forge only supports 'keepAlive' as an option to http.Agent");
- }
- return { keepAlive: options.keepAlive };
- }
-}
-exports.Agent = Agent;