@yysports/tools 1.0.5 → 1.0.6

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.
@@ -62,7 +62,7 @@ var Track = /*#__PURE__*/function () {
62
62
  compressed = pako.deflate(JSON.stringify(data));
63
63
  if (data.length) {
64
64
  debug && console.debug('[track:debug] push data', data);
65
- navigator.sendBeacon("//".concat(this.config.domain, "/pousheng-guard/api/analysis/track"), compressed);
65
+ navigator.sendBeacon("".concat(this.config.domain, "/pousheng-guard/api/analysis/track"), compressed);
66
66
  }
67
67
  case 4:
68
68
  case "end":
@@ -295,7 +295,7 @@ var Track = /*#__PURE__*/function () {
295
295
  key: "registerAppInfo",
296
296
  value: function registerAppInfo() {
297
297
  var appId = this.config.appId;
298
- navigator.sendBeacon("//".concat(this.config.domain, "/pousheng-guard/api/conf/updateAppVersion"), pako.deflate(JSON.stringify({
298
+ navigator.sendBeacon("".concat(this.config.domain, "/pousheng-guard/api/conf/updateAppVersion"), pako.deflate(JSON.stringify({
299
299
  appId: appId,
300
300
  version: version
301
301
  })));
@@ -57,7 +57,7 @@ var Track = class {
57
57
  if (data.length) {
58
58
  debug && console.debug("[track:debug] push data", data);
59
59
  navigator.sendBeacon(
60
- `//${this.config.domain}/pousheng-guard/api/analysis/track`,
60
+ `${this.config.domain}/pousheng-guard/api/analysis/track`,
61
61
  compressed
62
62
  );
63
63
  }
@@ -221,7 +221,7 @@ var Track = class {
221
221
  static registerAppInfo() {
222
222
  const { appId } = this.config;
223
223
  navigator.sendBeacon(
224
- `//${this.config.domain}/pousheng-guard/api/conf/updateAppVersion`,
224
+ `${this.config.domain}/pousheng-guard/api/conf/updateAppVersion`,
225
225
  import_pako.default.deflate(
226
226
  JSON.stringify({
227
227
  appId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yysports/tools",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "常用工具函数库",
5
5
  "homepage": "https://git.pousheng.com/sport-service-department/pousheng-guard/yysports_tools#readme",
6
6
  "bugs": {