@zohodesk/client_build_tool 0.0.6-exp.49 → 0.0.6-exp.50
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.
|
@@ -36,7 +36,8 @@ const PostcssValueReplacer = (valueReplacer = []) => {
|
|
|
36
36
|
sortedKeys: valueKeys.sort(diffBasedOnStrLength),
|
|
37
37
|
values: obj.values
|
|
38
38
|
};
|
|
39
|
-
}
|
|
39
|
+
} // console.log(options);
|
|
40
|
+
|
|
40
41
|
});
|
|
41
42
|
}); // Work with options here
|
|
42
43
|
|
|
@@ -46,7 +47,7 @@ const PostcssValueReplacer = (valueReplacer = []) => {
|
|
|
46
47
|
const propOptions = options[decl.prop];
|
|
47
48
|
propOptions?.sortedKeys.forEach(k => {
|
|
48
49
|
// eslint-disable-next-line no-param-reassign
|
|
49
|
-
decl.value = decl.value.replaceAll(k, propOptions.values[k]);
|
|
50
|
+
decl.value = decl.value.replaceAll(new RegExp(k, 'g'), propOptions.values[k]);
|
|
50
51
|
});
|
|
51
52
|
}
|
|
52
53
|
};
|
package/npm-shrinkwrap.json
CHANGED