express-sweet 1.0.26 → 1.0.28
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 +48 -1
- package/dist/build.common.js +6 -6
- package/dist/build.esm.js +6 -6
- package/docs/index.html +14 -6
- package/package.json +4 -3
- package/types/exceptions/CollectionCreationError.d.ts +13 -0
- package/types/exceptions/CollectionDeletionError.d.ts +13 -0
- package/types/exceptions/FaceIndexError.d.ts +13 -0
- package/types/exceptions/MissingFaceInImageError.d.ts +13 -0
- package/types/exceptions/MultipleFacesInImageError.d.ts +13 -0
- package/types/exceptions/index.d.ts +6 -2
- package/types/interfaces/ViewOptions.d.ts +2 -2
- package/types/services/AWSRekognitionClient.d.ts +8 -9
- package/types/exceptions/ApiError.d.ts +0 -29
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,51 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
+
## [1.0.28] - 2023/6/16
|
|
5
|
+
### Changed
|
|
6
|
+
- Updated AWS SDK version from 2 to 3.
|
|
7
|
+
Unit test results:
|
|
8
|
+
```sh
|
|
9
|
+
npm run test
|
|
10
|
+
|
|
11
|
+
> express-sweet@1.0.25 test
|
|
12
|
+
> jest
|
|
13
|
+
|
|
14
|
+
PASS __tests__/AWSRekognitionClient.test.js (8.773 s)
|
|
15
|
+
? Should detect one person from the image (448 ms)
|
|
16
|
+
? Should be able to get facial details (532 ms)
|
|
17
|
+
? Should detect three persons from the image (589 ms)
|
|
18
|
+
? The two faces should be the same person (131 ms)
|
|
19
|
+
? The two faces should be different people (213 ms)
|
|
20
|
+
? Should be able to create collections (98 ms)
|
|
21
|
+
? Should index faces in the collection (242 ms)
|
|
22
|
+
? Should return the details of the indexed face (346 ms)
|
|
23
|
+
? Should be able to find faces from the collection (153 ms)
|
|
24
|
+
? Should be able to find faces from the collection (132 ms)
|
|
25
|
+
? Should list indexed faces (27 ms)
|
|
26
|
+
? Should delete the face from the collection (53 ms)
|
|
27
|
+
? Collection should be deleted (62 ms)
|
|
28
|
+
|
|
29
|
+
Test Suites: 1 passed, 1 total
|
|
30
|
+
Tests: 13 passed, 13 total
|
|
31
|
+
Snapshots: 0 total
|
|
32
|
+
Time: 9.323 s
|
|
33
|
+
Ran all test suites.
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## [1.0.27] - 2023/6/12
|
|
37
|
+
### Changed
|
|
38
|
+
- Request object has been added to the arguments of the beforeRender function in the view configuration (config/view.js).
|
|
39
|
+
express-sweet v1.0.27 or later (current):
|
|
40
|
+
```js
|
|
41
|
+
beforeRender: (req, res) => {}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
express-sweet v1.0.26 or earlier:
|
|
45
|
+
```js
|
|
46
|
+
beforeRender: res => {}
|
|
47
|
+
```
|
|
48
|
+
|
|
4
49
|
## [1.0.26] - 2023/6/11
|
|
5
50
|
### Changed
|
|
6
51
|
- Update Sequelize from v5 to v6.
|
|
@@ -431,4 +476,6 @@ All notable changes to this project will be documented in this file.
|
|
|
431
476
|
[1.0.23]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.22...v1.0.23
|
|
432
477
|
[1.0.24]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.23...v1.0.24
|
|
433
478
|
[1.0.25]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.24...v1.0.25
|
|
434
|
-
[1.0.26]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.25...v1.0.26
|
|
479
|
+
[1.0.26]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.25...v1.0.26
|
|
480
|
+
[1.0.27]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.26...v1.0.27
|
|
481
|
+
[1.0.28]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.27...v1.0.28
|