@ticatec/restful_service_api 0.1.5 → 0.1.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/README-CN.md +4 -1
- package/README.md +4 -1
- package/dist/RestService.d.ts +1 -1
- package/package.json +6 -1
- package/tsconfig.json +0 -15
package/README-CN.md
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
# @ticatec/restful_service_api
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@ticatec/restful_service_api)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
4
5
|
|
|
5
6
|
一个轻量级的 TypeScript RESTful API 浏览器客户端,具有完善的错误处理和拦截器支持。
|
|
6
7
|
|
|
8
|
+
中文版 | [English](README.md)
|
|
9
|
+
|
|
7
10
|
## 特性
|
|
8
11
|
|
|
9
12
|
- 🚀 **轻量级**: 零依赖,专为现代浏览器构建
|
package/README.md
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
# @ticatec/restful_service_api
|
|
2
2
|
|
|
3
|
-
[
|
|
3
|
+
[](https://www.npmjs.com/package/@ticatec/restful_service_api)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
4
5
|
|
|
5
6
|
A lightweight TypeScript RESTful API client for browsers with comprehensive error handling and interceptor support.
|
|
6
7
|
|
|
8
|
+
[中文版](README-CN.md) | English
|
|
9
|
+
|
|
7
10
|
## Features
|
|
8
11
|
|
|
9
12
|
- 🚀 **Lightweight**: Zero dependencies, built for modern browsers
|
package/dist/RestService.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export default interface RestService {
|
|
|
45
45
|
* @param dataProcessor 可选的数据处理函数,用于在返回前转换响应数据
|
|
46
46
|
* @returns 返回Promise,解析为服务器响应数据
|
|
47
47
|
*/
|
|
48
|
-
put(url: string, data
|
|
48
|
+
put(url: string, data?: any, params?: any, contentType?: string, dataProcessor?: DataProcessor): Promise<any>;
|
|
49
49
|
/**
|
|
50
50
|
* 执行HTTP DELETE请求删除资源
|
|
51
51
|
* @param url 请求的目标URL路径
|
package/package.json
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ticatec/restful_service_api",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "A lightweight TypeScript RESTful API client for browsers with error handling.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist/",
|
|
10
|
+
"README*.md",
|
|
11
|
+
"LICENSE"
|
|
12
|
+
],
|
|
8
13
|
"exports": {
|
|
9
14
|
".": {
|
|
10
15
|
"import": "./dist/index.js",
|
package/tsconfig.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2019",
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"lib": ["DOM", "ES2019"],
|
|
6
|
-
"moduleResolution": "bundler",
|
|
7
|
-
"esModuleInterop": true,
|
|
8
|
-
"declaration": true,
|
|
9
|
-
"outDir": "dist",
|
|
10
|
-
"rootDir": "src",
|
|
11
|
-
"strict": true,
|
|
12
|
-
"skipLibCheck": true
|
|
13
|
-
},
|
|
14
|
-
"include": ["src"]
|
|
15
|
-
}
|