@ark/fs 0.53.0 → 0.55.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/out/caller.js CHANGED
@@ -22,9 +22,8 @@ export const formatFilePath = (original, { relative, separator }) => {
22
22
  if (relative) {
23
23
  formatted = path.relative(typeof relative === "string" ? relative : process.cwd(), formatted);
24
24
  }
25
- if (separator) {
26
- formatted = formatted.replaceAll(new RegExp(`\\${path.sep}`, "g"), separator);
27
- }
25
+ if (separator)
26
+ formatted = formatted.replace(new RegExp(`\\${path.sep}`, "g"), separator);
28
27
  return formatted;
29
28
  };
30
29
  export const caller = (options = {}) => {
package/out/fs.js CHANGED
@@ -122,7 +122,7 @@ export const getSourceFileEntries = (dir = ".") => getSourceFilePaths(dir).map(p
122
122
  * Given a set of {@link Matchers} and an input string,
123
123
  * replace all will replace
124
124
  */
125
- const findReplace = matchers => input => matchers.reduce((acc, m) => acc.replaceAll(m.pattern, m.replacement), input);
125
+ const findReplace = matchers => input => matchers.reduce((acc, m) => acc.replace(m.pattern, m.replacement), input);
126
126
  /**
127
127
  * Applies a set of {@link Matchers} to a list of files and rewrites
128
128
  * each file's contents according to the provided `Matcher["find"]`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ark/fs",
3
- "version": "0.53.0",
3
+ "version": "0.55.0",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "David Blass",