@pdg/api 1.0.26 → 1.0.27
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/Api/Api.d.ts +1 -0
- package/dist/index.esm.js +3 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
package/dist/Api/Api.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ declare class Api<T = any, D extends ApiRequestData = {}> {
|
|
|
8
8
|
constructor(option: ApiOption<T>);
|
|
9
9
|
get(path: string, data?: D, option?: ApiRequestOption): Promise<T>;
|
|
10
10
|
post(path: string, data?: D, option?: ApiRequestOption): Promise<T>;
|
|
11
|
+
put(path: string, data?: D, option?: ApiRequestOption): Promise<T>;
|
|
11
12
|
patch(path: string, data?: D, option?: ApiRequestOption): Promise<T>;
|
|
12
13
|
delete(path: string, data?: D, option?: ApiRequestOption): Promise<T>;
|
|
13
14
|
/********************************************************************************************************************
|
package/dist/index.esm.js
CHANGED
|
@@ -135,6 +135,9 @@ class Api {
|
|
|
135
135
|
post(path, data, option) {
|
|
136
136
|
return this.run('post', path, data, option);
|
|
137
137
|
}
|
|
138
|
+
put(path, data, option) {
|
|
139
|
+
return this.run('put', path, data, option);
|
|
140
|
+
}
|
|
138
141
|
patch(path, data, option) {
|
|
139
142
|
return this.run('patch', path, data, option);
|
|
140
143
|
}
|
package/dist/index.js
CHANGED
|
@@ -135,6 +135,9 @@ class Api {
|
|
|
135
135
|
post(path, data, option) {
|
|
136
136
|
return this.run('post', path, data, option);
|
|
137
137
|
}
|
|
138
|
+
put(path, data, option) {
|
|
139
|
+
return this.run('put', path, data, option);
|
|
140
|
+
}
|
|
138
141
|
patch(path, data, option) {
|
|
139
142
|
return this.run('patch', path, data, option);
|
|
140
143
|
}
|