@yysports/tools 0.0.2 → 0.0.3

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/README.md CHANGED
@@ -2,39 +2,3 @@
2
2
 
3
3
  [![NPM version](https://img.shields.io/npm/v/@yysports/tools.svg?style=flat)](https://npmjs.org/package/@yysports/tools)
4
4
  [![NPM downloads](http://img.shields.io/npm/dm/@yysports/tools.svg?style=flat)](https://npmjs.org/package/@yysports/tools)
5
-
6
-
7
-
8
- ## Usage
9
-
10
- TODO
11
-
12
- ## Options
13
-
14
- TODO
15
-
16
- ## Development
17
-
18
- ```bash
19
- # install dependencies
20
- $ npm install
21
-
22
- # develop library by docs demo
23
- $ npm start
24
-
25
- # build library source code
26
- $ npm run build
27
-
28
- # build library source code in watch mode
29
- $ npm run build:watch
30
-
31
- # build docs
32
- $ npm run docs:build
33
-
34
- # check your project for potential problems
35
- $ npm run doctor
36
- ```
37
-
38
- ## LICENSE
39
-
40
- MIT
@@ -56,7 +56,7 @@ var Track = /*#__PURE__*/function () {
56
56
  data = this.trackQueue.splice(0, this.trackQueue.length);
57
57
  compressed = pako.deflate(JSON.stringify(data));
58
58
  if (data.length) {
59
- navigator.sendBeacon("".concat(TrackServer, "/pousheng-guard/api/analysis/track"), compressed);
59
+ navigator.sendBeacon("https://track.yysports.com/pousheng-guard/api/analysis/track", compressed);
60
60
  }
61
61
  case 3:
62
62
  case "end":
@@ -56,7 +56,7 @@ var Track = class {
56
56
  const compressed = import_pako.default.deflate(JSON.stringify(data));
57
57
  if (data.length) {
58
58
  navigator.sendBeacon(
59
- `${TrackServer}/pousheng-guard/api/analysis/track`,
59
+ `https://track.yysports.com/pousheng-guard/api/analysis/track`,
60
60
  compressed
61
61
  );
62
62
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yysports/tools",
3
- "version": "0.0.2",
4
- "description": "[![NPM version](https://img.shields.io/npm/v/@yysports/tools.svg?style=flat)](https://npmjs.org/package/@yysports/tools) [![NPM downloads](http://img.shields.io/npm/dm/@yysports/tools.svg?style=flat)](https://npmjs.org/package/@yysports/tools)",
3
+ "version": "0.0.3",
4
+ "description": "常用工具函数库",
5
5
  "homepage": "https://git.pousheng.com/sport-service-department/pousheng-guard/yysports_tools#readme",
6
6
  "bugs": {
7
7
  "url": "https://git.pousheng.com/sport-service-department/pousheng-guard/yysports_tools/issues"