@livelybone/singleton 1.3.3 → 1.3.5

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/index.d.ts CHANGED
@@ -44,7 +44,7 @@ declare function singleton<T extends Record<string, unknown>>(
44
44
  ): {
45
45
  value: T
46
46
  delete(): void
47
- update(action: T | ((v: T) => T)): T
47
+ update(action: T | ((pre: T) => T)): T
48
48
  }
49
49
  /**
50
50
  * @desc 保证一个 id 对应的 promise 在同一时间只存在一个,
package/lib/es/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Bundle of @livelybone/singleton
3
3
  * Generated: 2023-08-10
4
- * Version: 1.3.3
4
+ * Version: 1.3.5
5
5
  * License: MIT
6
6
  * Author: 2631541504@qq.com
7
7
  */
package/lib/umd/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Bundle of @livelybone/singleton
3
3
  * Generated: 2023-08-10
4
- * Version: 1.3.3
4
+ * Version: 1.3.5
5
5
  * License: MIT
6
6
  * Author: 2631541504@qq.com
7
7
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livelybone/singleton",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "description": "A util of singleton wrapping",
5
5
  "main": "./lib/umd/index.js",
6
6
  "module": "./lib/es/index.js",