biz-slide-core 1.2.16 → 1.2.18

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.
@@ -5,6 +5,7 @@ var mongoose_1 = require("mongoose");
5
5
  var PngSvgSchema = new mongoose_1.Schema({
6
6
  deletedAt: { type: Date, default: null },
7
7
  isLocked: { type: Boolean, default: false },
8
+ optionsDownloaded: mongoose_1.Schema.Types.Mixed,
8
9
  isDownloaded: { type: Boolean, default: false },
9
10
  isCompleted: { type: Boolean, default: false },
10
11
  userId: { type: String, default: null },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz-slide-core",
3
- "version": "1.2.16",
3
+ "version": "1.2.18",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -20,6 +20,7 @@ var BadRequestError = /** @class */ (function (_super) {
20
20
  __extends(BadRequestError, _super);
21
21
  function BadRequestError(message) {
22
22
  var _this = _super.call(this, message) || this;
23
+ Object.setPrototypeOf(_this, BadRequestError.prototype);
23
24
  _this.name = 'BadRequestError';
24
25
  return _this;
25
26
  }
@@ -30,6 +31,7 @@ var NotFoundRequestError = /** @class */ (function (_super) {
30
31
  __extends(NotFoundRequestError, _super);
31
32
  function NotFoundRequestError(message) {
32
33
  var _this = _super.call(this, message) || this;
34
+ Object.setPrototypeOf(_this, NotFoundRequestError.prototype);
33
35
  _this.name = 'NotFoundRequestError';
34
36
  return _this;
35
37
  }
@@ -38,7 +40,7 @@ var NotFoundRequestError = /** @class */ (function (_super) {
38
40
  exports.NotFoundRequestError = NotFoundRequestError;
39
41
  var CustomRequestError = /** @class */ (function () {
40
42
  function CustomRequestError(title, description) {
41
- this.name = 'NotFoundRequestError';
43
+ this.name = 'CustomRequestError';
42
44
  this.message = {
43
45
  title: title,
44
46
  description: description
@@ -7,7 +7,7 @@ function hasAbusiveWords(str, words) {
7
7
  // Check if any abusive word exists in the string
8
8
  for (var _i = 0, words_1 = words; _i < words_1.length; _i++) {
9
9
  var word = words_1[_i];
10
- if (lowerStr.includes(word)) {
10
+ if (lowerStr.includes(word.toLowerCase())) {
11
11
  return true;
12
12
  }
13
13
  }