@forzalabs/remora 0.0.52-nasco.3 → 0.0.53-nasco.3
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/Constants.js
CHANGED
|
@@ -65,17 +65,14 @@
|
|
|
65
65
|
},
|
|
66
66
|
"mask": {
|
|
67
67
|
"type": "string",
|
|
68
|
-
"
|
|
68
|
+
"description": "Masking type to apply to this dimension. Predefined values: 'hash' (replaces with a hashed value), 'mask' (replaces characters with a mask character), 'crypt' (encrypts the value), 'random' (replaces with a random value), 'seeded-random' (replaces with a random value generated from a seed), 'none' (no masking). You can also use environment variables by using the {your-env-var} notation or any custom string value.",
|
|
69
|
+
"examples": [
|
|
69
70
|
"hash",
|
|
70
71
|
"mask",
|
|
71
72
|
"crypt",
|
|
72
73
|
"random",
|
|
73
|
-
"seeded-random",
|
|
74
|
-
"none"
|
|
75
|
-
],
|
|
76
|
-
"description": "Masking type to apply to this dimension. 'hash' replaces with a hashed value. 'mask' replaces characters with a mask character. 'crypt' encrypts the value. 'random' replaces with a random value. 'seeded-random' replaces with a random value generated from a seed. You can use environment variables by using the {your-env-var} notation",
|
|
77
|
-
"examples": [
|
|
78
|
-
"hash",
|
|
74
|
+
"seeded-random",
|
|
75
|
+
"none",
|
|
79
76
|
"{REMORA_MASK_IN_DEV}"
|
|
80
77
|
]
|
|
81
78
|
}
|
|
@@ -129,7 +129,7 @@ class ConsumerManagerClass {
|
|
|
129
129
|
else if (consumer.producers.length === 1 && !field.from) {
|
|
130
130
|
column = columns.find(x => x.nameInProducer === field.key);
|
|
131
131
|
}
|
|
132
|
-
else {
|
|
132
|
+
else if (!field.fixed) {
|
|
133
133
|
const matches = columns.filter(x => x.nameInProducer === field.key);
|
|
134
134
|
(0, Affirm_1.default)(matches.length > 0, `Consumer "${consumer.name}" misconfiguration: the field "${field.key}" is not found in any of the included producers (${consumer.producers.map(x => x.name).join(', ')})`);
|
|
135
135
|
if (matches.length === 1) {
|