rsclick-log-sdk-web 0.1.1 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -150,8 +150,8 @@ SDK 默认上报以下字段:
150
150
 
151
151
  传输策略:
152
152
 
153
- 1. 优先调用 `navigator.sendBeacon`
154
- 2. 如果 `sendBeacon` 返回 `false` 或抛错,则回退到 `fetch(..., { keepalive: true })`
153
+ 1. 统一使用 `fetch(..., { mode: "cors", credentials: "omit", keepalive: true })`
154
+ 2. SDK 不再依赖 `navigator.sendBeacon`
155
155
 
156
156
  ## 发布说明
157
157
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsclick-log-sdk-web",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Lightweight Web tracking SDK for rs-click-log.",