@quantcdn/quant-client 4.21.1 → 4.21.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.
@@ -144,6 +144,8 @@ export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH
144
144
  return (axios = globalAxios, basePath = BASE_PATH) => {
145
145
  var _a;
146
146
  const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: (axios.defaults.baseURL ? '' : (_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath) + axiosArgs.url });
147
+ // axios >=1.20 widens request()'s return type (AxiosResponseResult); the
148
+ // SDK contract is still Promise<R>, so bridge the typing here. Runtime is unchanged.
147
149
  return axios.request(axiosRequestArgs);
148
150
  };
149
151
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantcdn/quant-client",
3
- "version": "4.21.1",
3
+ "version": "4.21.2",
4
4
  "description": "OpenAPI client for @quantcdn/quant-client",
5
5
  "author": "QuantCDN",
6
6
  "repository": {
@@ -32,14 +32,14 @@
32
32
  "prepare": "npm run build",
33
33
  "clean": "rm -Rf dist/",
34
34
  "test": "npm run test:smoke",
35
- "test:smoke": "node -e \"const api = require('./dist/index.js'); console.log('\u2713 SDK loads successfully'); console.log('\u2713 Exports:', Object.keys(api).length, 'items'); console.log('\u2713 Configuration available:', typeof api.Configuration); process.exit(0);\"",
35
+ "test:smoke": "node -e \"const api = require('./dist/index.js'); console.log('✓ SDK loads successfully'); console.log('✓ Exports:', Object.keys(api).length, 'items'); console.log('✓ Configuration available:', typeof api.Configuration); process.exit(0);\"",
36
36
  "test:unit": "jest --testMatch=\"**/tests/**/*.test.js\"",
37
37
  "test:all": "npm run build && npm run test:smoke && npm run test:unit",
38
38
  "validate": "scripts/validate-sdk.sh",
39
39
  "prepublishOnly": "npm run clean && npm run build && npm test"
40
40
  },
41
41
  "dependencies": {
42
- "axios": "^1.16.0"
42
+ "axios": "^1.20.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/node": "12.11.5 - 25.3.3",