kitchen-simulator 1.0.0-alin.31 → 1.0.0-alin.32
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/es/catalog/catalog.js +1 -4
- package/lib/catalog/catalog.js +1 -4
- package/package.json +1 -1
package/es/catalog/catalog.js
CHANGED
|
@@ -247,10 +247,7 @@ var Catalog = /*#__PURE__*/function () {
|
|
|
247
247
|
if (name === '') {
|
|
248
248
|
throw new Error('Category has empty name');
|
|
249
249
|
}
|
|
250
|
-
|
|
251
|
-
throw new Error('Category has already been registered');
|
|
252
|
-
}
|
|
253
|
-
return true;
|
|
250
|
+
return !this.hasCategory(name);
|
|
254
251
|
}
|
|
255
252
|
|
|
256
253
|
/**
|
package/lib/catalog/catalog.js
CHANGED
|
@@ -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
|
-
|
|
258
|
-
throw new Error('Category has already been registered');
|
|
259
|
-
}
|
|
260
|
-
return true;
|
|
257
|
+
return !this.hasCategory(name);
|
|
261
258
|
}
|
|
262
259
|
|
|
263
260
|
/**
|