singleton-manager
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -12,3 +12,3 @@ # Tools >> Singleton Manager >> Overview ||10 | ||
⚠️ You need to make SURE that only ONE version of `singleton-manager` is installed. For how see [Non Goals](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/fundamentals/tools/singleton-manager/#non-goals). | ||
⚠️ You need to make SURE that only ONE version of `singleton-manager` is installed. For how see [Non Goals](https://github.com/ing-bank/lion/blob/3cc3d2960ff10dac5351f7f337b9c70cabdeb85b/docs/fundamentals/tools/singleton-manager/#non-goals). | ||
@@ -163,3 +163,3 @@ ### Example Singleton Users | ||
➡️ See [it on the example page](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/fundamentals/tools/singleton-manager/example-fail/index.md). <br> | ||
➡️ See [it on the example page](https://github.com/ing-bank/lion/blob/3cc3d2960ff10dac5351f7f337b9c70cabdeb85b/docs/fundamentals/tools/singleton-manager/example-fail/index.md). <br> | ||
➡️ See [the code](https://github.com/ing-bank/lion/tree/master/docs/fundamentals/tools/singleton-manager/example-fail/demo-app.js). | ||
@@ -207,3 +207,3 @@ | ||
➡️ See [it on the example page](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/fundamentals/tools/singleton-manager/example-success/index.md). <br> | ||
➡️ See [it on the example page](https://github.com/ing-bank/lion/blob/3cc3d2960ff10dac5351f7f337b9c70cabdeb85b/docs/fundamentals/tools/singleton-manager/example-success/index.md). <br> | ||
➡️ See [the code](https://github.com/ing-bank/lion/tree/master/docs/fundamentals/tools/singleton-manager/example-success/demo-app.js). | ||
@@ -249,3 +249,3 @@ | ||
➡️ See [it on the example page](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/fundamentals/tools/singleton-manager/example-complex/index.md). <br> | ||
➡️ See [it on the example page](https://github.com/ing-bank/lion/blob/3cc3d2960ff10dac5351f7f337b9c70cabdeb85b/docs/fundamentals/tools/singleton-manager/example-complex/index.md). <br> | ||
➡️ See [the code](https://github.com/ing-bank/lion/tree/master/docs/fundamentals/tools/singleton-manager/example-complex/demo-app.js). | ||
@@ -252,0 +252,0 @@ |
{ | ||
"name": "singleton-manager", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "Manage singletons across multiple major versions so they converge to a single instance", | ||
@@ -14,13 +14,14 @@ "license": "MIT", | ||
"type": "module", | ||
"main": "index.js", | ||
"module": "index.js", | ||
"exports": { | ||
".": { | ||
"types": "./dist-types/src/index.d.ts", | ||
"default": "./src/index.js" | ||
}, | ||
"./docs/*": "./docs/*" | ||
}, | ||
"files": [ | ||
"*.d.ts", | ||
"*.js", | ||
"dist-types", | ||
"docs", | ||
"src", | ||
"test", | ||
"test-helpers", | ||
"translations", | ||
"types" | ||
"test" | ||
], | ||
@@ -32,9 +33,9 @@ "scripts": { | ||
"publish-docs": "node ../../packages-node/publish-docs/src/cli.js --github-url https://github.com/ing-bank/lion/ --git-root-dir ../../", | ||
"prepublishOnly": "npm run publish-docs", | ||
"prepublishOnly": "npm run types && npm run publish-docs", | ||
"start:fail": "es-dev-server -c demo/fail/server.js", | ||
"start:singleton": "es-dev-server -c demo/singleton/server.js", | ||
"start:singleton-complex": "es-dev-server -c demo/singleton-complex/server.js", | ||
"test": "cd ../../ && npm run test:browser -- --group singleton-manager" | ||
"test": "cd ../../ && npm run test:browser -- --group singleton-manager", | ||
"types": "wireit" | ||
}, | ||
"sideEffects": false, | ||
"keywords": [ | ||
@@ -47,6 +48,16 @@ "lion", | ||
}, | ||
"exports": { | ||
".": "./index.js", | ||
"./docs/*": "./docs/*" | ||
"wireit": { | ||
"types": { | ||
"command": "tsc --build --pretty", | ||
"files": [ | ||
"src/**/*.js", | ||
"test/**/*.js", | ||
"types/**", | ||
"tsconfig.json" | ||
], | ||
"output": [ | ||
"dist-types/**" | ||
] | ||
} | ||
} | ||
} |
@@ -12,3 +12,3 @@ # Tools >> Singleton Manager >> Overview ||10 | ||
⚠️ You need to make SURE that only ONE version of `singleton-manager` is installed. For how see [Non Goals](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/fundamentals/tools/singleton-manager/#non-goals). | ||
⚠️ You need to make SURE that only ONE version of `singleton-manager` is installed. For how see [Non Goals](https://github.com/ing-bank/lion/blob/3cc3d2960ff10dac5351f7f337b9c70cabdeb85b/docs/fundamentals/tools/singleton-manager/#non-goals). | ||
@@ -163,3 +163,3 @@ ### Example Singleton Users | ||
➡️ See [it on the example page](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/fundamentals/tools/singleton-manager/example-fail/index.md). <br> | ||
➡️ See [it on the example page](https://github.com/ing-bank/lion/blob/3cc3d2960ff10dac5351f7f337b9c70cabdeb85b/docs/fundamentals/tools/singleton-manager/example-fail/index.md). <br> | ||
➡️ See [the code](https://github.com/ing-bank/lion/tree/master/docs/fundamentals/tools/singleton-manager/example-fail/demo-app.js). | ||
@@ -207,3 +207,3 @@ | ||
➡️ See [it on the example page](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/fundamentals/tools/singleton-manager/example-success/index.md). <br> | ||
➡️ See [it on the example page](https://github.com/ing-bank/lion/blob/3cc3d2960ff10dac5351f7f337b9c70cabdeb85b/docs/fundamentals/tools/singleton-manager/example-success/index.md). <br> | ||
➡️ See [the code](https://github.com/ing-bank/lion/tree/master/docs/fundamentals/tools/singleton-manager/example-success/demo-app.js). | ||
@@ -249,3 +249,3 @@ | ||
➡️ See [it on the example page](https://github.com/ing-bank/lion/blob/9ebc79431bfdcacfd0d9c9b6457c1a99686a6a47/docs/fundamentals/tools/singleton-manager/example-complex/index.md). <br> | ||
➡️ See [it on the example page](https://github.com/ing-bank/lion/blob/3cc3d2960ff10dac5351f7f337b9c70cabdeb85b/docs/fundamentals/tools/singleton-manager/example-complex/index.md). <br> | ||
➡️ See [the code](https://github.com/ing-bank/lion/tree/master/docs/fundamentals/tools/singleton-manager/example-complex/demo-app.js). | ||
@@ -252,0 +252,0 @@ |
@@ -5,3 +5,3 @@ const sym = Symbol.for('lion::SingletonManagerClassStorage'); | ||
constructor() { | ||
/** protected */ | ||
/** @protected */ | ||
this._map = window[sym] ? window[sym] : (window[sym] = new Map()); | ||
@@ -8,0 +8,0 @@ } |
@@ -22,3 +22,3 @@ import { expect } from '@open-wc/testing'; | ||
it('does not override existing keys (e.g. subsequentual calls for the same keys are ignored)', () => { | ||
it('does not override existing keys (e.g. subsequential calls for the same keys are ignored)', () => { | ||
const mngr = new SingletonManagerClass(); | ||
@@ -25,0 +25,0 @@ mngr.set('overlays/overlays.js::0.14.x', 'is-set'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40583
13
88