@wise/dynamic-flow-client 3.29.5 → 3.30.0
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/build/main.js +6 -4
- package/build/main.min.js +1 -1
- package/build/main.mjs +6 -4
- package/package.json +8 -8
package/build/main.js
CHANGED
|
@@ -7755,7 +7755,7 @@ var getBelowMinimumDateCheck = ({ minimum }, messageFunctions) => (value) => {
|
|
|
7755
7755
|
return null;
|
|
7756
7756
|
};
|
|
7757
7757
|
var getNotAdheringToPatternCheck = ({ pattern }, messageFunctions) => (value) => {
|
|
7758
|
-
if (isString(pattern) && isString(value) && !new RegExp(pattern).test(value)) {
|
|
7758
|
+
if (isString(pattern) && isString(value) && !new RegExp(pattern, "u").test(value)) {
|
|
7759
7759
|
return messageFunctions.pattern();
|
|
7760
7760
|
}
|
|
7761
7761
|
return null;
|
|
@@ -7926,7 +7926,7 @@ var getPerformPersistAsync = ({
|
|
|
7926
7926
|
if (json[idProperty] === void 0) {
|
|
7927
7927
|
logEvent(
|
|
7928
7928
|
"error",
|
|
7929
|
-
`Response from persist async did not contain expected property ${idProperty}
|
|
7929
|
+
`Response from persist async did not contain expected property ${idProperty}.`
|
|
7930
7930
|
);
|
|
7931
7931
|
throw new Error(genericErrorMessage);
|
|
7932
7932
|
}
|
|
@@ -11233,7 +11233,9 @@ function useDynamicFlowCore(props) {
|
|
|
11233
11233
|
etagRef.current = etag;
|
|
11234
11234
|
const validationResult = validateStep(newStep);
|
|
11235
11235
|
if (!validationResult.valid) {
|
|
11236
|
-
logEvent("
|
|
11236
|
+
logEvent("info", "The provided step does not conform to the specification.", {
|
|
11237
|
+
errors: validationResult.errors
|
|
11238
|
+
});
|
|
11237
11239
|
}
|
|
11238
11240
|
const updateComponent = (id, update) => {
|
|
11239
11241
|
const currentStepComponent = stepComponentRef.current;
|
|
@@ -14648,7 +14650,7 @@ function isValidPattern(value, pattern) {
|
|
|
14648
14650
|
if (value === void 0 || value === null) {
|
|
14649
14651
|
return false;
|
|
14650
14652
|
}
|
|
14651
|
-
const regex = new RegExp(pattern);
|
|
14653
|
+
const regex = new RegExp(pattern, "u");
|
|
14652
14654
|
return Boolean(regex.test(value));
|
|
14653
14655
|
}
|
|
14654
14656
|
function isValidMaximum(value, maximum) {
|