@tmsfe/tms-core 0.0.118 → 0.0.119

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/request.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmsfe/tms-core",
3
- "version": "0.0.118",
3
+ "version": "0.0.119",
4
4
  "description": "tms运行时框架",
5
5
  "repository": {
6
6
  "type": "git",
package/src/request.js CHANGED
@@ -256,7 +256,7 @@ export default class Request {
256
256
  name: 'content',
257
257
  url: this.makeUrl(path),
258
258
  filePath,
259
- formData: sign(requestParam),
259
+ formData: sign(requestParam, this.secretKey),
260
260
  header,
261
261
  success: resolve,
262
262
  fail: reject,
@@ -297,7 +297,7 @@ export default class Request {
297
297
  async serialize(path, data = {}) {
298
298
  let url = this.makeUrl(path);
299
299
  const signData = await composeParam(data, this.withAuth, this.baseParam);
300
- const signature = sign(signData);
300
+ const signature = sign(signData, this.secretKey);
301
301
  const params = [];
302
302
  Object.keys(signature).forEach((key) => {
303
303
  const val = encodeURIComponent(signature[key]);