kitchen-simulator 1.0.0-alin.45 → 1.0.0-alin.46

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.
@@ -247,10 +247,7 @@ var Catalog = /*#__PURE__*/function () {
247
247
  if (name === '') {
248
248
  throw new Error('Category has empty name');
249
249
  }
250
- if (this.hasCategory(name)) {
251
- throw new Error('Category has already been registered');
252
- }
253
- return true;
250
+ return !this.hasCategory(name);
254
251
  }
255
252
 
256
253
  /**
@@ -254,10 +254,7 @@ var Catalog = exports["default"] = /*#__PURE__*/function () {
254
254
  if (name === '') {
255
255
  throw new Error('Category has empty name');
256
256
  }
257
- if (this.hasCategory(name)) {
258
- throw new Error('Category has already been registered');
259
- }
260
- return true;
257
+ return !this.hasCategory(name);
261
258
  }
262
259
 
263
260
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitchen-simulator",
3
- "version": "1.0.0-alin.45",
3
+ "version": "1.0.0-alin.46",
4
4
  "description": "It is a kitchen simulator (self-contained micro-frontend).",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",