@serwist/utils 9.5.0 → 9.5.2

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/dist/index.js CHANGED
@@ -26,8 +26,6 @@ const parallel = async (limit, array, func)=>{
26
26
  return results;
27
27
  };
28
28
 
29
- const toUnix = (p)=>{
30
- return p.replace(/\\/g, "/").replace(/(?<!^)\/+/g, "/");
31
- };
29
+ const toUnix = (p)=>p.replace(/\\/g, "/").replace(/(?<!^)\/+/g, "/");
32
30
 
33
31
  export { nonNullable, parallel, toUnix };
@@ -1 +1 @@
1
- {"version":3,"file":"toUnix.d.ts","sourceRoot":"","sources":["../src/toUnix.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,GAAI,GAAG,MAAM,WAE/B,CAAC"}
1
+ {"version":3,"file":"toUnix.d.ts","sourceRoot":"","sources":["../src/toUnix.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,GAAI,GAAG,MAAM,WAAqD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/utils",
3
- "version": "9.5.0",
3
+ "version": "9.5.2",
4
4
  "type": "module",
5
5
  "description": "This module contains utilities used by Serwist packages.",
6
6
  "files": [
@@ -29,9 +29,9 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/common-tags": "1.8.4",
32
- "rollup": "4.55.1",
32
+ "rollup": "4.57.0",
33
33
  "typescript": "5.9.3",
34
- "@serwist/configs": "9.5.0"
34
+ "@serwist/configs": "9.5.2"
35
35
  },
36
36
  "scripts": {
37
37
  "build": "rimraf dist && NODE_ENV=production rollup --config rollup.config.js",
package/src/toUnix.ts CHANGED
@@ -1,3 +1 @@
1
- export const toUnix = (p: string) => {
2
- return p.replace(/\\/g, "/").replace(/(?<!^)\/+/g, "/");
3
- };
1
+ export const toUnix = (p: string) => p.replace(/\\/g, "/").replace(/(?<!^)\/+/g, "/");