@mingto/version-polling 1.0.31 → 1.0.32

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
@@ -1,6 +1,6 @@
1
- # @minto-ai/version-polling
1
+ # @mingto/version-polling
2
2
 
3
- `@minto-ai/version-polling` 是一个用于实时检测线上环境版本更新的轻量级工具。它支持通过 HTML 文件的 ETag/Last-Modified 或 JSON 文件的版本号字段来检测更新。
3
+ `@mingto/version-polling` 是一个用于实时检测线上环境版本更新的轻量级工具。它支持通过 HTML 文件的 ETag/Last-Modified 或 JSON 文件的版本号字段来检测更新。
4
4
 
5
5
  ## 特性
6
6
 
@@ -14,7 +14,7 @@
14
14
  ## 安装
15
15
 
16
16
  ```bash
17
- pnpm install @minto-ai/version-polling
17
+ pnpm install @mingto/version-polling
18
18
  ```
19
19
 
20
20
  ## 使用示例
@@ -24,7 +24,7 @@ pnpm install @minto-ai/version-polling
24
24
  默认情况下,工具会检测当前页面的 HTML 文件。
25
25
 
26
26
  ```typescript
27
- import { createVersionPolling } from '@minto-ai/version-polling'
27
+ import { createVersionPolling } from '@mingto/version-polling'
28
28
 
29
29
  const versionPolling = createVersionPolling({
30
30
  pollingInterval: 60, // 轮询间隔,单位秒
@@ -43,7 +43,7 @@ versionPolling.on('update', () => {
43
43
  如果你使用 `manifest.json` 或专门的版本文件来管理版本号。
44
44
 
45
45
  ```typescript
46
- import { createVersionPolling } from '@minto-ai/version-polling'
46
+ import { createVersionPolling } from '@mingto/version-polling'
47
47
 
48
48
  const versionPolling = createVersionPolling({
49
49
  // 指定检测的 JSON 文件路径