@eik/core 1.3.43 → 1.3.45

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.3.45](https://github.com/eik-lib/core/compare/v1.3.44...v1.3.45) (2024-05-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * change response code to bad request for unconfigured hostname ([#401](https://github.com/eik-lib/core/issues/401)) ([babc560](https://github.com/eik-lib/core/commit/babc560beddb580b1b9828021aa761b32fa0bc32))
7
+
8
+ ## [1.3.44](https://github.com/eik-lib/core/compare/v1.3.43...v1.3.44) (2024-05-12)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update dependency rimraf to v5.0.7 ([b9fe26a](https://github.com/eik-lib/core/commit/b9fe26ac1c6744518a668c6e9361ee03e7c4e0db))
14
+
1
15
  ## [1.3.43](https://github.com/eik-lib/core/compare/v1.3.42...v1.3.43) (2024-05-10)
2
16
 
3
17
 
@@ -78,7 +78,7 @@ const AliasDel = class AliasDel {
78
78
 
79
79
  if (!org) {
80
80
  this._log.info(`alias:del - Hostname does not match a configured organization - ${url.hostname}`);
81
- const e = new HttpError.InternalServerError();
81
+ const e = new HttpError.BadRequest();
82
82
  end({ labels: { success: false, status: e.status, type } });
83
83
  throw e;
84
84
  }
@@ -72,7 +72,7 @@ const AliasGet = class AliasGet {
72
72
 
73
73
  if (!org) {
74
74
  this._log.info(`alias:get - Hostname does not match a configured organization - ${url.hostname}`);
75
- const e = new HttpError.InternalServerError();
75
+ const e = new HttpError.BadRequest();
76
76
  end({ labels: { success: false, status: e.status, type } });
77
77
  throw e;
78
78
  }
@@ -169,7 +169,7 @@ const AliasPost = class AliasPost {
169
169
 
170
170
  if (!org) {
171
171
  this._log.info(`alias:post - Hostname does not match a configured organization - ${url.hostname}`);
172
- const e = new HttpError.InternalServerError();
172
+ const e = new HttpError.BadRequest();
173
173
  end({ labels: { success: false, status: e.status, type } });
174
174
  throw e;
175
175
  }
@@ -168,7 +168,7 @@ const AliasPut = class AliasPut {
168
168
 
169
169
  if (!org) {
170
170
  this._log.info(`alias:put - Hostname does not match a configured organization - ${url.hostname}`);
171
- const e = new HttpError.InternalServerError();
171
+ const e = new HttpError.BadRequest();
172
172
  end({ labels: { success: false, status: e.status, type } });
173
173
  throw e;
174
174
  }
@@ -84,7 +84,7 @@ const AuthPost = class AuthPost {
84
84
 
85
85
  if (!org) {
86
86
  this._log.info(`auth:post - Hostname does not match a configured organization - ${url.hostname}`);
87
- const e = new HttpError.InternalServerError();
87
+ const e = new HttpError.BadRequest();
88
88
  end({ labels: { success: false, status: e.status, type: 'auth' } });
89
89
  throw e;
90
90
  }
@@ -70,7 +70,7 @@ const MapGet = class MapGet {
70
70
 
71
71
  if (!org) {
72
72
  this._log.info(`map:get - Hostname does not match a configured organization - ${url.hostname}`);
73
- const e = new HttpError.InternalServerError();
73
+ const e = new HttpError.BadRequest();
74
74
  end({ labels: { success: false, status: e.status, type: 'map' } });
75
75
  throw e;
76
76
  }
@@ -187,7 +187,7 @@ const MapPut = class MapPut {
187
187
 
188
188
  if (!org) {
189
189
  this._log.info(`map:put - Hostname does not match a configured organization - ${url.hostname}`);
190
- const e = new HttpError.InternalServerError();
190
+ const e = new HttpError.BadRequest();
191
191
  end({ labels: { success: false, status: e.status, type: 'map' } });
192
192
  throw e;
193
193
  }
@@ -74,7 +74,7 @@ const PkgGet = class PkgGet {
74
74
 
75
75
  if (!org) {
76
76
  this._log.info(`pkg:get - Hostname does not match a configured organization - ${url.hostname}`);
77
- const e = new HttpError.InternalServerError();
77
+ const e = new HttpError.BadRequest();
78
78
  end({ labels: { success: false, status: e.status, type } });
79
79
  throw e;
80
80
  }
@@ -71,7 +71,7 @@ const PkgLog = class PkgLog {
71
71
 
72
72
  if (!org) {
73
73
  this._log.info(`pkg:log - Hostname does not match a configured organization - ${url.hostname}`);
74
- const e = new HttpError.InternalServerError();
74
+ const e = new HttpError.BadRequest();
75
75
  end({ labels: { success: false, status: e.status, type } });
76
76
  throw e;
77
77
  }
@@ -168,7 +168,7 @@ const PkgPut = class PkgPut {
168
168
 
169
169
  if (!org) {
170
170
  this._log.info(`pkg:put - Hostname does not match a configured organization - ${url.hostname}`);
171
- const e = new HttpError.InternalServerError();
171
+ const e = new HttpError.BadRequest();
172
172
  end({ labels: { success: false, status: e.status, type } });
173
173
  throw e;
174
174
  }
@@ -71,7 +71,7 @@ const VersionsGet = class VersionsGet {
71
71
 
72
72
  if (!org) {
73
73
  this._log.info(`pkg:latest - Hostname does not match a configured organization - ${url.hostname}`);
74
- const e = new HttpError.InternalServerError();
74
+ const e = new HttpError.BadRequest();
75
75
  end({ labels: { success: false, status: e.status, type } });
76
76
  throw e;
77
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eik/core",
3
- "version": "1.3.43",
3
+ "version": "1.3.45",
4
4
  "description": "Core server package",
5
5
  "main": "lib/main.js",
6
6
  "type": "module",
@@ -27,7 +27,7 @@
27
27
  "http-errors": "2.0.0",
28
28
  "mime": "3.0.0",
29
29
  "original-url": "1.2.3",
30
- "rimraf": "5.0.6",
30
+ "rimraf": "5.0.7",
31
31
  "semver": "7.6.2",
32
32
  "ssri": "10.0.6",
33
33
  "tar": "6.2.1",