@uni-helper/axios-adapter 1.16.1 → 1.16.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/README.md +2 -0
- package/dist/index.cjs +10 -6
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -1
- package/dist/{unplugin-B0XXJPh7.cjs → unplugin-Cgwh-Njz.cjs} +2 -2
- package/dist/vite.cjs +1 -1
- package/dist/vite.d.cts +2 -3
- package/dist/vite.d.ts +2 -3
- package/dist/vite.js +1 -1
- package/dist/webpack.cjs +1 -1
- package/dist/webpack.d.cts +1 -1
- package/dist/webpack.d.ts +1 -1
- package/dist/webpack.js +1 -1
- package/package.json +11 -12
- /package/dist/{chunk-CKQMccvm.cjs → rolldown-runtime-D6vf50IK.cjs} +0 -0
- /package/dist/{types-BSLo1MIA.d.cts → types-NHxcq8Qp.d.cts} +0 -0
- /package/dist/{types-C-Kh3_5J.d.ts → types-NHxcq8Qp.d.ts} +0 -0
- /package/dist/{unplugin-GFuC6tIl.js → unplugin-Br8JKdJO.js} +0 -0
package/README.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-D6vf50IK.cjs");
|
|
3
3
|
let axios = require("axios");
|
|
4
4
|
let axios_unsafe_core_buildFullPath = require("axios/unsafe/core/buildFullPath");
|
|
5
|
-
axios_unsafe_core_buildFullPath =
|
|
5
|
+
axios_unsafe_core_buildFullPath = require_rolldown_runtime.__toESM(axios_unsafe_core_buildFullPath, 1);
|
|
6
6
|
let axios_unsafe_helpers_buildURL = require("axios/unsafe/helpers/buildURL");
|
|
7
|
-
axios_unsafe_helpers_buildURL =
|
|
7
|
+
axios_unsafe_helpers_buildURL = require_rolldown_runtime.__toESM(axios_unsafe_helpers_buildURL, 1);
|
|
8
8
|
let axios_unsafe_helpers_speedometer = require("axios/unsafe/helpers/speedometer");
|
|
9
|
-
axios_unsafe_helpers_speedometer =
|
|
9
|
+
axios_unsafe_helpers_speedometer = require_rolldown_runtime.__toESM(axios_unsafe_helpers_speedometer, 1);
|
|
10
10
|
let axios_unsafe_core_settle = require("axios/unsafe/core/settle");
|
|
11
|
-
axios_unsafe_core_settle =
|
|
11
|
+
axios_unsafe_core_settle = require_rolldown_runtime.__toESM(axios_unsafe_core_settle, 1);
|
|
12
12
|
//#region src/utils.ts
|
|
13
13
|
function getMethodType(config) {
|
|
14
14
|
const { method: rawMethod = "GET" } = config;
|
|
@@ -232,7 +232,11 @@ const request = (config, options) => {
|
|
|
232
232
|
reject(new axios.AxiosError(errMsg, response.statusCode, responseConfig, task, response));
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
|
|
235
|
+
const failResponse = {
|
|
236
|
+
...error,
|
|
237
|
+
status: error?.statusCode
|
|
238
|
+
};
|
|
239
|
+
reject(new axios.AxiosError(errMsg, failResponse.status, responseConfig, task, failResponse));
|
|
236
240
|
task = null;
|
|
237
241
|
},
|
|
238
242
|
complete() {
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -226,7 +226,11 @@ const request = (config, options) => {
|
|
|
226
226
|
reject(new AxiosError(errMsg, response.statusCode, responseConfig, task, response));
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
|
|
229
|
+
const failResponse = {
|
|
230
|
+
...error,
|
|
231
|
+
status: error?.statusCode
|
|
232
|
+
};
|
|
233
|
+
reject(new AxiosError(errMsg, failResponse.status, responseConfig, task, failResponse));
|
|
230
234
|
task = null;
|
|
231
235
|
},
|
|
232
236
|
complete() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-D6vf50IK.cjs");
|
|
2
2
|
let node_process = require("node:process");
|
|
3
|
-
node_process =
|
|
3
|
+
node_process = require_rolldown_runtime.__toESM(node_process, 1);
|
|
4
4
|
let local_pkg = require("local-pkg");
|
|
5
5
|
//#region src/unplugin.ts
|
|
6
6
|
const unplugin$1 = (0, require("unplugin").createUnplugin)((_options = {}) => {
|
package/dist/vite.cjs
CHANGED
package/dist/vite.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { n as UserUnpluginOptions } from "./types-
|
|
2
|
-
import * as _$vite from "vite";
|
|
1
|
+
import { n as UserUnpluginOptions } from "./types-NHxcq8Qp.cjs";
|
|
3
2
|
|
|
4
3
|
//#region src/vite.d.ts
|
|
5
|
-
declare const _default: (options: UserUnpluginOptions) =>
|
|
4
|
+
declare const _default: (options: UserUnpluginOptions) => import("vite").Plugin<any> | import("vite").Plugin<any>[];
|
|
6
5
|
export = _default;
|
package/dist/vite.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { n as UserUnpluginOptions } from "./types-
|
|
2
|
-
import * as _$vite from "vite";
|
|
1
|
+
import { n as UserUnpluginOptions } from "./types-NHxcq8Qp.js";
|
|
3
2
|
|
|
4
3
|
//#region src/vite.d.ts
|
|
5
|
-
declare const _default: (options: UserUnpluginOptions) =>
|
|
4
|
+
declare const _default: (options: UserUnpluginOptions) => import("vite").Plugin<any> | import("vite").Plugin<any>[];
|
|
6
5
|
//#endregion
|
|
7
6
|
export { _default as default };
|
package/dist/vite.js
CHANGED
package/dist/webpack.cjs
CHANGED
package/dist/webpack.d.cts
CHANGED
package/dist/webpack.d.ts
CHANGED
package/dist/webpack.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uni-helper/axios-adapter",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.16.
|
|
4
|
+
"version": "1.16.2",
|
|
5
5
|
"description": "The Axios adapter for uniapp",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "kejunmao",
|
|
@@ -56,29 +56,28 @@
|
|
|
56
56
|
"module": "./dist/index.js",
|
|
57
57
|
"types": "./dist/index.d.ts",
|
|
58
58
|
"files": [
|
|
59
|
-
"./client.d.ts",
|
|
60
59
|
"dist"
|
|
61
60
|
],
|
|
62
61
|
"peerDependencies": {
|
|
63
|
-
"axios": "^1.
|
|
62
|
+
"axios": "^1.18.0",
|
|
64
63
|
"vite": "^5.0.0"
|
|
65
64
|
},
|
|
66
65
|
"dependencies": {
|
|
67
|
-
"local-pkg": "^1.1
|
|
66
|
+
"local-pkg": "^1.2.1",
|
|
68
67
|
"unplugin": "^2.3.11"
|
|
69
68
|
},
|
|
70
69
|
"devDependencies": {
|
|
71
|
-
"@antfu/eslint-config": "^
|
|
70
|
+
"@antfu/eslint-config": "^9.0.0",
|
|
72
71
|
"@dcloudio/types": "^3.4.31",
|
|
73
|
-
"@types/node": "^24.
|
|
74
|
-
"axios": "^1.
|
|
75
|
-
"bumpp": "^11.0
|
|
76
|
-
"eslint": "^10.
|
|
77
|
-
"msw": "^2.14.
|
|
78
|
-
"tsdown": "^0.22.
|
|
72
|
+
"@types/node": "^24.13.2",
|
|
73
|
+
"axios": "^1.18.0",
|
|
74
|
+
"bumpp": "^11.1.0",
|
|
75
|
+
"eslint": "^10.5.0",
|
|
76
|
+
"msw": "^2.14.6",
|
|
77
|
+
"tsdown": "^0.22.2",
|
|
79
78
|
"typescript": "^5.9.3",
|
|
80
79
|
"vite": "^5.4.21",
|
|
81
|
-
"vitest": "^3.2.
|
|
80
|
+
"vitest": "^3.2.6"
|
|
82
81
|
},
|
|
83
82
|
"scripts": {
|
|
84
83
|
"build": "tsdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|