swagger-client 3.38.0 → 3.38.2

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/es/interfaces.js CHANGED
@@ -9,7 +9,7 @@ export const self = {
9
9
  };
10
10
 
11
11
  // Make an execute, bound to arguments defined in mapTagOperation's callback (cb)
12
- export function makeExecute(swaggerJs = {}) {
12
+ export function makeExecute(swaggerClient = {}) {
13
13
  return ({
14
14
  pathName,
15
15
  method,
@@ -19,9 +19,9 @@ export function makeExecute(swaggerJs = {}) {
19
19
  requestInterceptor,
20
20
  responseInterceptor,
21
21
  userFetch
22
- } = swaggerJs;
23
- return swaggerJs.execute({
24
- spec: swaggerJs.spec,
22
+ } = swaggerClient;
23
+ return swaggerClient.execute({
24
+ spec: swaggerClient.spec,
25
25
  requestInterceptor,
26
26
  responseInterceptor,
27
27
  userFetch,
@@ -38,12 +38,12 @@ export function makeExecute(swaggerJs = {}) {
38
38
  // The shape
39
39
  // { apis: { [tag]: { operations: [operation]: { execute }}}}
40
40
  // NOTE: this is mostly for compatibility
41
- export function makeApisTagOperationsOperationExecute(swaggerJs = {}) {
41
+ export function makeApisTagOperationsOperationExecute(swaggerClient = {}) {
42
42
  // { apis: tag: operations: execute }
43
- const cb = self.makeExecute(swaggerJs);
43
+ const cb = self.makeExecute(swaggerClient);
44
44
  const tagOperations = self.mapTagOperations({
45
- v2OperationIdCompatibilityMode: swaggerJs.v2OperationIdCompatibilityMode,
46
- spec: swaggerJs.spec,
45
+ v2OperationIdCompatibilityMode: swaggerClient.v2OperationIdCompatibilityMode,
46
+ spec: swaggerClient.spec,
47
47
  cb
48
48
  });
49
49
  const apis = {};
@@ -65,12 +65,12 @@ export function makeApisTagOperationsOperationExecute(swaggerJs = {}) {
65
65
  }
66
66
 
67
67
  // .apis[tag][operationId]:ExecuteFunction interface
68
- export function makeApisTagOperation(swaggerJs = {}) {
69
- const cb = self.makeExecute(swaggerJs);
68
+ export function makeApisTagOperation(swaggerClient = {}) {
69
+ const cb = self.makeExecute(swaggerClient);
70
70
  return {
71
71
  apis: self.mapTagOperations({
72
- v2OperationIdCompatibilityMode: swaggerJs.v2OperationIdCompatibilityMode,
73
- spec: swaggerJs.spec,
72
+ v2OperationIdCompatibilityMode: swaggerClient.v2OperationIdCompatibilityMode,
73
+ spec: swaggerClient.spec,
74
74
  cb
75
75
  })
76
76
  };
package/lib/interfaces.js CHANGED
@@ -17,7 +17,7 @@ const self = exports.self = {
17
17
  };
18
18
 
19
19
  // Make an execute, bound to arguments defined in mapTagOperation's callback (cb)
20
- function makeExecute(swaggerJs = {}) {
20
+ function makeExecute(swaggerClient = {}) {
21
21
  return ({
22
22
  pathName,
23
23
  method,
@@ -27,9 +27,9 @@ function makeExecute(swaggerJs = {}) {
27
27
  requestInterceptor,
28
28
  responseInterceptor,
29
29
  userFetch
30
- } = swaggerJs;
31
- return swaggerJs.execute({
32
- spec: swaggerJs.spec,
30
+ } = swaggerClient;
31
+ return swaggerClient.execute({
32
+ spec: swaggerClient.spec,
33
33
  requestInterceptor,
34
34
  responseInterceptor,
35
35
  userFetch,
@@ -46,12 +46,12 @@ function makeExecute(swaggerJs = {}) {
46
46
  // The shape
47
47
  // { apis: { [tag]: { operations: [operation]: { execute }}}}
48
48
  // NOTE: this is mostly for compatibility
49
- function makeApisTagOperationsOperationExecute(swaggerJs = {}) {
49
+ function makeApisTagOperationsOperationExecute(swaggerClient = {}) {
50
50
  // { apis: tag: operations: execute }
51
- const cb = self.makeExecute(swaggerJs);
51
+ const cb = self.makeExecute(swaggerClient);
52
52
  const tagOperations = self.mapTagOperations({
53
- v2OperationIdCompatibilityMode: swaggerJs.v2OperationIdCompatibilityMode,
54
- spec: swaggerJs.spec,
53
+ v2OperationIdCompatibilityMode: swaggerClient.v2OperationIdCompatibilityMode,
54
+ spec: swaggerClient.spec,
55
55
  cb
56
56
  });
57
57
  const apis = {};
@@ -73,12 +73,12 @@ function makeApisTagOperationsOperationExecute(swaggerJs = {}) {
73
73
  }
74
74
 
75
75
  // .apis[tag][operationId]:ExecuteFunction interface
76
- function makeApisTagOperation(swaggerJs = {}) {
77
- const cb = self.makeExecute(swaggerJs);
76
+ function makeApisTagOperation(swaggerClient = {}) {
77
+ const cb = self.makeExecute(swaggerClient);
78
78
  return {
79
79
  apis: self.mapTagOperations({
80
- v2OperationIdCompatibilityMode: swaggerJs.v2OperationIdCompatibilityMode,
81
- spec: swaggerJs.spec,
80
+ v2OperationIdCompatibilityMode: swaggerClient.v2OperationIdCompatibilityMode,
81
+ spec: swaggerClient.spec,
82
82
  cb
83
83
  })
84
84
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "swagger-client",
3
- "version": "3.38.0",
4
- "description": "SwaggerJS - a collection of interfaces for OAI specs",
3
+ "version": "3.38.2",
4
+ "description": "Swagger Client - a collection of interfaces for OAI specs",
5
5
  "browser": {
6
6
  "./src/helpers/btoa.node.js": "./src/helpers/btoa.browser.js",
7
7
  "./lib/helpers/btoa.node.js": "./lib/helpers/btoa.browser.js",
@@ -14,7 +14,7 @@
14
14
  "module": "es/index.js",
15
15
  "jsnext:main": "es/index.js",
16
16
  "unpkg": "dist/swagger-client.browser.min.js",
17
- "repository": "git@github.com:swagger-api/swagger-js.git",
17
+ "repository": "git@github.com:swagger-api/swagger-client.git",
18
18
  "contributors": [
19
19
  "(in alphabetical order)",
20
20
  "Anna Bodnia <anna.bodnia@gmail.com>",
@@ -74,16 +74,16 @@
74
74
  "dependencies": {
75
75
  "@babel/runtime-corejs3": "^7.22.15",
76
76
  "@scarf/scarf": "=1.4.0",
77
- "@swagger-api/apidom-core": "^1.12.0",
78
- "@swagger-api/apidom-error": "^1.12.0",
79
- "@swagger-api/apidom-json-pointer": "^1.12.0",
80
- "@swagger-api/apidom-ns-openapi-3-1": "^1.12.0",
81
- "@swagger-api/apidom-ns-openapi-3-2": "^1.12.0",
82
- "@swagger-api/apidom-reference": "^1.12.0",
77
+ "@swagger-api/apidom-core": "1.11.6",
78
+ "@swagger-api/apidom-error": "1.11.6",
79
+ "@swagger-api/apidom-json-pointer": "1.11.6",
80
+ "@swagger-api/apidom-ns-openapi-3-1": "1.11.6",
81
+ "@swagger-api/apidom-ns-openapi-3-2": "1.11.6",
82
+ "@swagger-api/apidom-reference": "1.11.6",
83
83
  "@swaggerexpert/cookie": "^2.0.2",
84
84
  "deepmerge": "~4.3.0",
85
85
  "fast-json-patch": "^3.0.0-1",
86
- "js-yaml": "^4.2.0",
86
+ "js-yaml": "^4.3.2",
87
87
  "neotraverse": "=1.0.1",
88
88
  "node-abort-controller": "^3.1.1",
89
89
  "openapi-path-templating": "^2.2.1",
@@ -119,38 +119,38 @@
119
119
  "lint-staged": "=17.3.0",
120
120
  "lodash": "^4.17.21",
121
121
  "npm-run-all": "=4.1.5",
122
- "prettier": "^3.1.1",
122
+ "prettier": "^3.9.6",
123
123
  "rimraf": "=6.1.3",
124
124
  "source-map-explorer": "^2.5.3",
125
125
  "terser-webpack-plugin": "^5.0.3",
126
126
  "undici": "^6.27.0",
127
127
  "webpack": "=5.106.2",
128
128
  "webpack-bundle-size-analyzer": "=3.1.0",
129
- "webpack-cli": "=7.0.2",
129
+ "webpack-cli": "=7.2.2",
130
130
  "webpack-stats-plugin": "=1.1.3"
131
131
  },
132
132
  "optionalDependencies": {
133
- "@swagger-api/apidom-ns-asyncapi-2": "^1.12.0",
134
- "@swagger-api/apidom-ns-asyncapi-3": "^1.12.0",
135
- "@swagger-api/apidom-ns-openapi-2": "^1.12.0",
136
- "@swagger-api/apidom-parser-adapter-api-design-systems-json": "^1.12.0",
137
- "@swagger-api/apidom-parser-adapter-api-design-systems-yaml": "^1.12.0",
138
- "@swagger-api/apidom-parser-adapter-asyncapi-json-2": "^1.12.0",
139
- "@swagger-api/apidom-parser-adapter-asyncapi-json-3": "^1.12.0",
140
- "@swagger-api/apidom-parser-adapter-asyncapi-yaml-2": "^1.12.0",
141
- "@swagger-api/apidom-parser-adapter-asyncapi-yaml-3": "^1.12.0",
142
- "@swagger-api/apidom-parser-adapter-json": "^1.12.0",
143
- "@swagger-api/apidom-parser-adapter-openapi-json-2": "^1.12.0",
144
- "@swagger-api/apidom-parser-adapter-openapi-yaml-2": "^1.12.0",
145
- "@swagger-api/apidom-parser-adapter-openapi-json-3-0": "^1.12.0",
146
- "@swagger-api/apidom-parser-adapter-openapi-json-3-1": "^1.12.0",
147
- "@swagger-api/apidom-parser-adapter-openapi-json-3-2": "^1.12.0",
148
- "@swagger-api/apidom-parser-adapter-openapi-yaml-3-0": "^1.12.0",
149
- "@swagger-api/apidom-parser-adapter-openapi-yaml-3-1": "^1.12.0",
150
- "@swagger-api/apidom-parser-adapter-openapi-yaml-3-2": "^1.12.0",
151
- "@swagger-api/apidom-parser-adapter-arazzo-json-1": "^1.12.0",
152
- "@swagger-api/apidom-parser-adapter-arazzo-yaml-1": "^1.12.0",
153
- "@swagger-api/apidom-parser-adapter-yaml-1-2": "^1.12.0"
133
+ "@swagger-api/apidom-ns-asyncapi-2": "1.11.6",
134
+ "@swagger-api/apidom-ns-asyncapi-3": "1.11.6",
135
+ "@swagger-api/apidom-ns-openapi-2": "1.11.6",
136
+ "@swagger-api/apidom-parser-adapter-api-design-systems-json": "1.11.6",
137
+ "@swagger-api/apidom-parser-adapter-api-design-systems-yaml": "1.11.6",
138
+ "@swagger-api/apidom-parser-adapter-asyncapi-json-2": "1.11.6",
139
+ "@swagger-api/apidom-parser-adapter-asyncapi-json-3": "1.11.6",
140
+ "@swagger-api/apidom-parser-adapter-asyncapi-yaml-2": "1.11.6",
141
+ "@swagger-api/apidom-parser-adapter-asyncapi-yaml-3": "1.11.6",
142
+ "@swagger-api/apidom-parser-adapter-json": "1.11.6",
143
+ "@swagger-api/apidom-parser-adapter-openapi-json-2": "1.11.6",
144
+ "@swagger-api/apidom-parser-adapter-openapi-yaml-2": "1.11.6",
145
+ "@swagger-api/apidom-parser-adapter-openapi-json-3-0": "1.11.6",
146
+ "@swagger-api/apidom-parser-adapter-openapi-json-3-1": "1.11.6",
147
+ "@swagger-api/apidom-parser-adapter-openapi-json-3-2": "1.11.6",
148
+ "@swagger-api/apidom-parser-adapter-openapi-yaml-3-0": "1.11.6",
149
+ "@swagger-api/apidom-parser-adapter-openapi-yaml-3-1": "1.11.6",
150
+ "@swagger-api/apidom-parser-adapter-openapi-yaml-3-2": "1.11.6",
151
+ "@swagger-api/apidom-parser-adapter-arazzo-json-1": "1.11.6",
152
+ "@swagger-api/apidom-parser-adapter-arazzo-yaml-1": "1.11.6",
153
+ "@swagger-api/apidom-parser-adapter-yaml-1-2": "1.11.6"
154
154
  },
155
155
  "allowScripts": {
156
156
  "tree-sitter@0.22.4": true,