singleton-pattern 1.1.1 → 1.1.2

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 -0
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -4,6 +4,8 @@
4
4
 
5
5
  > **Note**: Your environment must support ES6 Proxies.
6
6
 
7
+ For more awesome packages, check out [my homepage💛](https://baendlorel.github.io/?repoType=npm)
8
+
7
9
  ## Overview
8
10
 
9
11
  `singleton-pattern` is a lightweight TypeScript/JavaScript utility that wraps a class constructor so that every `new` call returns the same instance. It uses Proxy to ensure singleton safety, and provides options for prototype and proxy reuse.
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "singleton-pattern",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "author": {
5
5
  "name": "Kasukabe Tsumugi",
6
6
  "email": "futami16237@gmail.com"
7
7
  },
8
8
  "description": "Wrap a class with proxy to make it a safe singleton constructor. Using new Class() will return the same instance.",
9
+ "description_zh": "使用代理包装类以使其成为安全的单例构造函数(原型的构造函数也将被修改)。使用 new Class() 将返回相同的实例",
9
10
  "type": "module",
10
11
  "exports": {
11
12
  "import": "./dist/index.mjs",