@autifyhq/autify-sdk 0.24.0 → 0.25.0
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/generated/mobile/client.js +1 -1
- package/dist/generated/mobile/openapi/api.d.ts +6 -0
- package/dist/generated/mobile/openapi/common.d.ts +1 -1
- package/dist/generated/mobile/openapi/configuration.js +1 -1
- package/dist/generated/mobile/openapi/index.js +0 -1
- package/dist/generated/web/openapi/common.d.ts +1 -1
- package/package.json +16 -16
|
@@ -19,7 +19,7 @@ class MobileClient {
|
|
|
19
19
|
if (!accessToken) {
|
|
20
20
|
throw new Error("accessToken is required.");
|
|
21
21
|
}
|
|
22
|
-
// eslint-disable-next-line @typescript-eslint/no-
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
23
23
|
this.version = require("../../../package.json").version;
|
|
24
24
|
const baseOptions = {
|
|
25
25
|
...(userAgent && {
|
|
@@ -63,4 +63,4 @@ export declare const toPathString: (url: URL) => string;
|
|
|
63
63
|
*
|
|
64
64
|
* @export
|
|
65
65
|
*/
|
|
66
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T
|
|
66
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
@@ -35,7 +35,7 @@ class Configuration {
|
|
|
35
35
|
* @return True if the given MIME is JSON, false otherwise.
|
|
36
36
|
*/
|
|
37
37
|
isJsonMime(mime) {
|
|
38
|
-
const jsonMime = new RegExp("^(application
|
|
38
|
+
const jsonMime = new RegExp("^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$", "i");
|
|
39
39
|
return (mime !== null &&
|
|
40
40
|
(jsonMime.test(mime) ||
|
|
41
41
|
mime.toLowerCase() === "application/json-patch+json"));
|
|
@@ -63,4 +63,4 @@ export declare const toPathString: (url: URL) => string;
|
|
|
63
63
|
*
|
|
64
64
|
* @export
|
|
65
65
|
*/
|
|
66
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T
|
|
66
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autifyhq/autify-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0",
|
|
4
4
|
"description": "Autify SDK for JavaScript",
|
|
5
5
|
"author": "Autify",
|
|
6
6
|
"homepage": "https://github.com/autifyhq/autify-sdk-js",
|
|
@@ -13,37 +13,37 @@
|
|
|
13
13
|
"/dist"
|
|
14
14
|
],
|
|
15
15
|
"engines": {
|
|
16
|
-
"node": ">=
|
|
16
|
+
"node": ">=22.14.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"axios": "^1.
|
|
19
|
+
"axios": "^1.8.3",
|
|
20
20
|
"axios-logger": "^2.8.1",
|
|
21
21
|
"debug": "^4.4.0",
|
|
22
22
|
"form-data": "^4.0.2",
|
|
23
23
|
"tslib": "^2.8.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@eslint/eslintrc": "^3.
|
|
27
|
-
"@eslint/js": "^9.
|
|
28
|
-
"@openapitools/openapi-generator-cli": "^2.
|
|
26
|
+
"@eslint/eslintrc": "^3.3.0",
|
|
27
|
+
"@eslint/js": "^9.22.0",
|
|
28
|
+
"@openapitools/openapi-generator-cli": "^2.18.4",
|
|
29
29
|
"@types/debug": "^4.1.12",
|
|
30
30
|
"@types/jest": "^29.5.14",
|
|
31
|
-
"@types/node": "^
|
|
32
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
33
|
-
"@typescript-eslint/parser": "^8.
|
|
31
|
+
"@types/node": "^22.13.10",
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "^8.26.1",
|
|
33
|
+
"@typescript-eslint/parser": "^8.26.1",
|
|
34
34
|
"axios-mock-adapter": "^2.1.0",
|
|
35
|
-
"eslint": "^9.
|
|
36
|
-
"eslint-config-prettier": "^10.
|
|
35
|
+
"eslint": "^9.22.0",
|
|
36
|
+
"eslint-config-prettier": "^10.1.1",
|
|
37
37
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
38
38
|
"husky": "^9.1.7",
|
|
39
39
|
"jest": "^29.7.0",
|
|
40
|
-
"lint-staged": "^15.
|
|
41
|
-
"prettier": "^3.5.
|
|
42
|
-
"shx": "^0.
|
|
43
|
-
"ts-jest": "^29.2.
|
|
40
|
+
"lint-staged": "^15.5.0",
|
|
41
|
+
"prettier": "^3.5.3",
|
|
42
|
+
"shx": "^0.4.0",
|
|
43
|
+
"ts-jest": "^29.2.6",
|
|
44
44
|
"ts-morph": "^25.0.1",
|
|
45
45
|
"ts-node": "^10.9.2",
|
|
46
|
-
"typescript": "^5.
|
|
46
|
+
"typescript": "^5.8.2"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"update-swagger-web": "curl -o swagger-web.yml https://autifyhq.github.io/autify-api/swagger.yml",
|