@utcp/http 1.0.6 → 1.0.7
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/dist/index.cjs +1 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -6
- package/dist/index.d.ts +4 -6
- package/dist/index.js +1 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4383,7 +4383,7 @@ var OpenApiConverter = class {
|
|
|
4383
4383
|
const { inputs, headerFields, bodyField } = this._extractInputs(path, operation);
|
|
4384
4384
|
const outputs = this._extractOutputs(operation);
|
|
4385
4385
|
const auth = this._extractAuth(operation);
|
|
4386
|
-
const fullUrl = `${baseUrl.replace(/\/$/, "")}/${path.
|
|
4386
|
+
const fullUrl = `${baseUrl.replace(/\/$/, "")}/${path.replace(/^\/+/, "")}`;
|
|
4387
4387
|
const callTemplate = {
|
|
4388
4388
|
name: this.call_template_name,
|
|
4389
4389
|
call_template_type: "http",
|
|
@@ -4678,15 +4678,6 @@ var OpenApiConverter = class {
|
|
|
4678
4678
|
return void 0;
|
|
4679
4679
|
}
|
|
4680
4680
|
};
|
|
4681
|
-
if (!String.prototype.lstrip) {
|
|
4682
|
-
String.prototype.lstrip = function(chars) {
|
|
4683
|
-
let result = this;
|
|
4684
|
-
while (result.startsWith(chars)) {
|
|
4685
|
-
result = result.substring(chars.length);
|
|
4686
|
-
}
|
|
4687
|
-
return result;
|
|
4688
|
-
};
|
|
4689
|
-
}
|
|
4690
4681
|
|
|
4691
4682
|
// src/http_communication_protocol.ts
|
|
4692
4683
|
var HttpCommunicationProtocol = class {
|