express-sweet 1.0.37 → 1.0.39

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/docs/index.html CHANGED
@@ -81,7 +81,7 @@
81
81
  <!--begin::Title-->
82
82
  <h1 class="page-heading d-flex text-dark fw-bold fs-3 justify-content-center align-items-baseline my-0">
83
83
  <!-- <h1 class="page-heading d-flex text-dark fw-bold fs-3 flex-column justify-content-center my-0"> -->
84
- DevDocs<a href="#changelog" class="badge fw-semibold fs-7 px-2 ms-2 bg-body text-dark text-hover-primary shadow-sm">v1.0.36</a>
84
+ DevDocs<a href="#changelog" class="badge fw-semibold fs-7 px-2 ms-2 bg-body text-dark text-hover-primary shadow-sm">v1.0.39</a>
85
85
  </h1>
86
86
  <!--end::Title-->
87
87
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "express-sweet",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "description": "Express framework extension.",
5
5
  "main": "dist/build.common.js",
6
6
  "module": "dist/build.esm.js",
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Face collection creation failed.
3
+ */
4
+ export default class extends Error {
5
+ /**
6
+ * Error Name.
7
+ * @type {string}
8
+ */
9
+ name: string;
10
+ /**
11
+ * Collection ID.
12
+ * @type {string}
13
+ */
14
+ collectionId: string;
15
+ /**
16
+ * HTTP status code.
17
+ * @type {number}
18
+ */
19
+ httpStatusCode: number;
20
+ /**
21
+ * @param {string} collectionId Collection ID.
22
+ * @param {number} httpStatusCode HTTP status code.
23
+ */
24
+ constructor(collectionId: string, httpStatusCode: number);
25
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Collection deletion error.
3
+ */
4
+ export default class extends Error {
5
+ /**
6
+ * Error Name.
7
+ * @type {string}
8
+ */
9
+ name: string;
10
+ /**
11
+ * Collection ID.
12
+ * @type {string}
13
+ */
14
+ collectionId: string;
15
+ /**
16
+ * HTTP status code.
17
+ * @type {number}
18
+ */
19
+ httpStatusCode: number;
20
+ /**
21
+ * @param {string} collectionId Collection ID.
22
+ * @param {number} httpStatusCode HTTP status code.
23
+ */
24
+ constructor(collectionId: string, httpStatusCode: number);
25
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Face indexing failed.
3
+ */
4
+ export default class extends Error {
5
+ /**
6
+ * Error Name.
7
+ * @type {string}
8
+ */
9
+ name: string;
10
+ /**
11
+ * Collection ID.
12
+ * @type {string}
13
+ */
14
+ collectionId: string;
15
+ /**
16
+ * @param {string} collectionId Collection ID.
17
+ * @param {number} httpStatusCode HTTP status code.
18
+ */
19
+ constructor(collectionId: string);
20
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Missing face in photo.
3
+ */
4
+ export default class extends Error {
5
+ /**
6
+ * Error Name.
7
+ * @type {string}
8
+ */
9
+ name: string;
10
+ constructor();
11
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Faces are multiple in the photo.
3
+ */
4
+ export default class extends Error {
5
+ /**
6
+ * Error Name.
7
+ * @type {string}
8
+ */
9
+ name: string;
10
+ constructor();
11
+ }
@@ -1,6 +1,6 @@
1
- import CollectionCreationError from '~/exceptions/CollectionCreationError';
2
- import CollectionDeletionError from '~/exceptions/CollectionDeletionError';
3
- import FaceIndexError from '~/exceptions/FaceIndexError';
4
- import MissingFaceInImageError from '~/exceptions/MissingFaceInImageError';
5
- import MultipleFacesInImageError from '~/exceptions/MultipleFacesInImageError';
6
- export { CollectionCreationError, CollectionDeletionError, FaceIndexError, MissingFaceInImageError, MultipleFacesInImageError, };
1
+ import FaceCollectionCreateFailed from '~/exceptions/FaceCollectionCreateFailed';
2
+ import FaceCollectionDeleteFailed from '~/exceptions/FaceCollectionDeleteFailed';
3
+ import FaceIndexFailed from '~/exceptions/FaceIndexFailed';
4
+ import FaceMissingInPhoto from '~/exceptions/FaceMissingInPhoto';
5
+ import FacesMultipleInPhoto from '~/exceptions/FacesMultipleInPhoto';
6
+ export { FaceCollectionCreateFailed, FaceCollectionDeleteFailed, FaceIndexFailed, FaceMissingInPhoto, FacesMultipleInPhoto, };
@@ -9,5 +9,5 @@ export default class {
9
9
  /**
10
10
  * Mount on application.
11
11
  */
12
- static mount(app: express.Express): void;
12
+ static mount(app: express.Express): undefined;
13
13
  }
@@ -7,4 +7,8 @@ export default class {
7
7
  * Mount on application.
8
8
  */
9
9
  static mount(app: express.Express): void;
10
+ /**
11
+ * Mount middleware to be executed just before drawing the view.
12
+ */
13
+ static mountBeforeRender(app: express.Express): void;
10
14
  }
@@ -1,13 +0,0 @@
1
- /**
2
- * Collection creation error.
3
- */
4
- export default class extends Error {
5
- /**
6
- * @type {string}
7
- */
8
- name: string;
9
- /**
10
- * @param {string} message Error message.
11
- */
12
- constructor(message: string);
13
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * Collection deletion error.
3
- */
4
- export default class extends Error {
5
- /**
6
- * @type {string}
7
- */
8
- name: string;
9
- /**
10
- * @param {string} message Error message.
11
- */
12
- constructor(message: string);
13
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * Face index error.
3
- */
4
- export default class extends Error {
5
- /**
6
- * @type {string}
7
- */
8
- name: string;
9
- /**
10
- * @param {string} message Error message.
11
- */
12
- constructor(message: string);
13
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * Missing face in image error.
3
- */
4
- export default class extends Error {
5
- /**
6
- * @type {string}
7
- */
8
- name: string;
9
- /**
10
- * @param {string} message Error message.
11
- */
12
- constructor(message?: string);
13
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * Multiple faces in an image error.
3
- */
4
- export default class extends Error {
5
- /**
6
- * @type {string}
7
- */
8
- name: string;
9
- /**
10
- * @param {string} message Error message.
11
- */
12
- constructor(message?: string);
13
- }