@hlw-uni-mp/request 1.0.10 → 1.0.11

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/index.js CHANGED
@@ -6933,7 +6933,7 @@ function buildHeader(cred, customHeader) {
6933
6933
  const headers = { ...customHeader };
6934
6934
  if (cred.type === "local") {
6935
6935
  if (appid) headers["X-Appid"] = String(appid);
6936
- if (token) headers["X-Token"] = String(token);
6936
+ if (token) headers["token"] = String(token);
6937
6937
  }
6938
6938
  return headers;
6939
6939
  }
@@ -7038,7 +7038,7 @@ function buildSecurityHeaders(config) {
7038
7038
  headers["x-appid"] = String(devInfo.appid);
7039
7039
  }
7040
7040
  if (token) {
7041
- headers["x-token"] = token;
7041
+ headers["token"] = token;
7042
7042
  }
7043
7043
  return headers;
7044
7044
  }
package/dist/index.mjs CHANGED
@@ -6907,7 +6907,7 @@ function buildHeader(cred, customHeader) {
6907
6907
  const headers = { ...customHeader };
6908
6908
  if (cred.type === "local") {
6909
6909
  if (appid) headers["X-Appid"] = String(appid);
6910
- if (token) headers["X-Token"] = String(token);
6910
+ if (token) headers["token"] = String(token);
6911
6911
  }
6912
6912
  return headers;
6913
6913
  }
@@ -7012,7 +7012,7 @@ function buildSecurityHeaders(config) {
7012
7012
  headers["x-appid"] = String(devInfo.appid);
7013
7013
  }
7014
7014
  if (token) {
7015
- headers["x-token"] = token;
7015
+ headers["token"] = token;
7016
7016
  }
7017
7017
  return headers;
7018
7018
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hlw-uni-mp/request",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Universal Uni-App HTTP and upload client with RSA encryption & sign verification",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",