@dws-std/registry 1.0.1 → 1.1.1

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/dist/index.js +3 -3
  2. package/package.json +11 -9
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ class Registry {
11
11
  static register(name, instance) {
12
12
  if (this._registry.has(name))
13
13
  throw new Exception(`Instance already registered: ${name}`, {
14
- code: REGISTRY_ERROR_KEYS.CLASS_INSTANCE_ALREADY_REGISTERED,
14
+ key: REGISTRY_ERROR_KEYS.CLASS_INSTANCE_ALREADY_REGISTERED,
15
15
  cause: name
16
16
  });
17
17
  this._registry.set(name, instance);
@@ -19,7 +19,7 @@ class Registry {
19
19
  static unregister(name) {
20
20
  if (!this._registry.delete(name))
21
21
  throw new Exception(`Instance not registered: ${name}`, {
22
- code: REGISTRY_ERROR_KEYS.CLASS_INSTANCE_NOT_REGISTERED,
22
+ key: REGISTRY_ERROR_KEYS.CLASS_INSTANCE_NOT_REGISTERED,
23
23
  cause: name
24
24
  });
25
25
  }
@@ -27,7 +27,7 @@ class Registry {
27
27
  const instance = this._registry.get(name);
28
28
  if (!instance)
29
29
  throw new Exception(`Instance not registered: ${name}`, {
30
- code: REGISTRY_ERROR_KEYS.CLASS_INSTANCE_NOT_REGISTERED,
30
+ key: REGISTRY_ERROR_KEYS.CLASS_INSTANCE_NOT_REGISTERED,
31
31
  cause: name
32
32
  });
33
33
  return instance;
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "@dws-std/registry",
3
- "version": "1.0.1",
3
+ "version": "1.1.1",
4
4
  "description": "Centralized, type-safe registry for managing named instances.",
5
5
  "keywords": [
6
6
  "bun",
7
7
  "dws",
8
+ "open-source",
8
9
  "registry",
9
- "type-safe"
10
+ "types",
11
+ "typescript"
10
12
  ],
11
13
  "license": "MIT",
12
14
  "author": "Dominus Web Services (DWS)",
@@ -36,16 +38,16 @@
36
38
  "test": "bun test --pass-with-no-tests --coverage"
37
39
  },
38
40
  "dependencies": {
39
- "@dws-std/error": "^2.0.0"
41
+ "@dws-std/error": "^2.1.1"
40
42
  },
41
43
  "devDependencies": {
42
- "@types/bun": "^1.3.10",
43
- "oxfmt": "^0.40.0",
44
- "oxlint": "^1.55.0",
45
- "oxlint-tsgolint": "^0.16.0",
46
- "typescript": "^5.9.3"
44
+ "@types/bun": "^1.3.11",
45
+ "oxfmt": "0.44.0",
46
+ "oxlint": "1.59.0",
47
+ "oxlint-tsgolint": "0.20.0",
48
+ "typescript": "^6.0.2"
47
49
  },
48
50
  "peerDependencies": {
49
- "@dws-std/error": "^2.0.0"
51
+ "@dws-std/error": "^2.1.1"
50
52
  }
51
53
  }