feima-shortcuts 1.0.3 → 1.0.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feima-shortcuts",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "快捷指令",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -143,16 +143,16 @@ export const request = <T>(
143
143
  ): CancelablePromise<T> => {
144
144
  return new CancelablePromise((resolve, reject, onCancel) => {
145
145
  const url = \`\${config.BASE}\${options.path}\`;
146
-
146
+
147
147
  const source = service.CancelToken.source();
148
148
 
149
149
  onCancel(() => source.cancel("The user aborted a request."));
150
150
 
151
151
  service
152
152
  .request({
153
+ ...options,
153
154
  url,
154
155
  data: options.body,
155
- ...options,
156
156
  cancelToken: source.token,
157
157
  })
158
158
  .then((data: any) => {