@forge/bundler 1.0.21-next.3 → 1.1.0-next.4
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.
- package/CHANGELOG.md +6 -0
- package/out/http-impl.d.ts +4 -1
- package/out/http-impl.d.ts.map +1 -1
- package/out/http-impl.js +11 -1
- package/out/http.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/out/http-impl.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { IncomingMessage } from 'http';
|
|
3
|
-
import { RequestOptions } from 'https';
|
|
3
|
+
import { RequestOptions, AgentOptions } from 'https';
|
|
4
4
|
import { Writable } from 'readable-stream';
|
|
5
5
|
import { URL } from 'url';
|
|
6
6
|
import { FetchOptions } from '@forge/api';
|
|
@@ -24,4 +24,7 @@ export declare class Request extends Writable {
|
|
|
24
24
|
init: FetchOptions;
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
+
export declare class Agent {
|
|
28
|
+
constructor(options: AgentOptions);
|
|
29
|
+
}
|
|
27
30
|
//# sourceMappingURL=http-impl.d.ts.map
|
package/out/http-impl.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-impl.d.ts","sourceRoot":"","sources":["../src/http-impl.ts"],"names":[],"mappings":";AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"http-impl.d.ts","sourceRoot":"","sources":["../src/http-impl.ts"],"names":[],"mappings":";AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAAY,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,GAAG,EAAkC,MAAM,KAAK,CAAC;AAC1D,OAAO,EAAe,YAAY,EAAS,MAAM,YAAY,CAAC;AAsB9D,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE;QACP,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC;CACH;AAMD,qBAAa,OAAQ,SAAQ,QAAQ;IACnC,OAAO,CAAC,OAAO,CAAW;IAC1B,OAAO,CAAC,gBAAgB,CAAmB;gBAE/B,OAAO,EAAE,cAAc,GAAG,MAAM,GAAG,GAAG,EAAE,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,eAAe,KAAK,IAAI;IAatF,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO;IAM/C,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO;IAQhE,OAAO,CAAC,KAAK;IAsBN,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,KAAK,IAAI,GAAG,IAAI;IAe3F,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM;IAmCjD,MAAM,CAAC,uBAAuB,CAC5B,OAAO,EAAE,cAAc,GAAG,MAAM,GAAG,GAAG,EACtC,gBAAgB,EAAE,gBAAgB,GACjC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,YAAY,CAAA;KAAE;CA8BvC;AAID,qBAAa,KAAK;gBACJ,OAAO,EAAE,YAAY;CAOlC"}
|
package/out/http-impl.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Request = void 0;
|
|
3
|
+
exports.Agent = exports.Request = void 0;
|
|
4
4
|
const readable_stream_1 = require("readable-stream");
|
|
5
5
|
const url_1 = require("url");
|
|
6
6
|
const api_1 = require("@forge/api");
|
|
@@ -138,3 +138,13 @@ class Request extends readable_stream_1.Writable {
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
exports.Request = Request;
|
|
141
|
+
const NUM_SUPPORTED_AGENT_OPTIONS = 1;
|
|
142
|
+
class Agent {
|
|
143
|
+
constructor(options) {
|
|
144
|
+
if (Object.keys(options).length > NUM_SUPPORTED_AGENT_OPTIONS) {
|
|
145
|
+
console.warn("Forge only supports 'keepAlive' as an option to http.Agent");
|
|
146
|
+
}
|
|
147
|
+
return { keepAlive: options.keepAlive };
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
exports.Agent = Agent;
|
package/out/http.js
CHANGED