nox-validation 1.6.7 → 1.6.9
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/lib/helpers.js +3 -1
- package/lib/helpers.optimized.js +1936 -0
- package/lib/validate.js +6 -3
- package/lib/validate.optimized.js +1855 -0
- package/package.json +1 -1
package/lib/helpers.js
CHANGED
|
@@ -1599,7 +1599,9 @@ const rebuildFullPath = (nodePath, fullPath, modifierFn) => {
|
|
|
1599
1599
|
typeof modifierFn === "function" ? modifierFn(nodePath) : nodePath;
|
|
1600
1600
|
|
|
1601
1601
|
// 3. Rebuild final full path
|
|
1602
|
-
return
|
|
1602
|
+
return parentPath?.trim() !== ""
|
|
1603
|
+
? `${parentPath}.${modifiedNodePath}`.replace(/\.+/g, ".")
|
|
1604
|
+
: `${modifiedNodePath}`.replace(/\.+/g, ".");
|
|
1603
1605
|
};
|
|
1604
1606
|
|
|
1605
1607
|
module.exports = {
|