@sera4/essentia 1.1.53 → 1.1.55
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/package.json +2 -2
- package/package.tar.gz +0 -0
- package/serializer/index.js +7 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sera4/essentia",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.55",
|
|
4
4
|
"description": "A library of utilities for Teleporte Web Services",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"amqplib": "^0.8.0",
|
|
31
31
|
"async": "^3.2.2",
|
|
32
|
-
"axios": "^
|
|
32
|
+
"axios": "^1.6.2",
|
|
33
33
|
"deep-diff": "^1.0.2",
|
|
34
34
|
"diff": "^5.0.0",
|
|
35
35
|
"fast-safe-stringify": "^2.0.7",
|
package/package.tar.gz
CHANGED
|
Binary file
|
package/serializer/index.js
CHANGED
|
@@ -28,13 +28,7 @@ export default {
|
|
|
28
28
|
|
|
29
29
|
const values = this.get();
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
// password salts and mfa tokens
|
|
33
|
-
remove.forEach((field) => {
|
|
34
|
-
delete values[field];
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
if (options && options.decorators) {
|
|
31
|
+
if (options?.decorators) {
|
|
38
32
|
options.decorators.forEach(dec => {
|
|
39
33
|
const k = dec.name;
|
|
40
34
|
const v = values[k];
|
|
@@ -57,6 +51,12 @@ export default {
|
|
|
57
51
|
return omitted;
|
|
58
52
|
});
|
|
59
53
|
|
|
54
|
+
// for security reasons, some fields may need to be removed, such as
|
|
55
|
+
// password salts and mfa tokens
|
|
56
|
+
remove.forEach((field) => {
|
|
57
|
+
delete values[field];
|
|
58
|
+
});
|
|
59
|
+
|
|
60
60
|
const s = eachOptions["serializer"];
|
|
61
61
|
if (s && customSerializers[s]) {
|
|
62
62
|
omitted = customSerializers[s](omitted);
|