@make-mjs/utils
Advanced tools
+2
-0
@@ -54,2 +54,4 @@ "use strict"; | ||
| function convertUrlToPath(url) { | ||
| if (url === '') | ||
| return ''; | ||
| const [first, ...rest] = url.split('/'); | ||
@@ -56,0 +58,0 @@ return first === '' |
+1
-0
@@ -54,2 +54,3 @@ import path from 'path'; | ||
| export function convertUrlToPath(url) { | ||
| if (url === '') return ''; | ||
| const [first, ...rest] = url.split('/'); | ||
@@ -56,0 +57,0 @@ return first === '' ? path.sep + path.join(...rest) : path.join(first, ...rest); |
+2
-1
| { | ||
| "name": "@make-mjs/utils", | ||
| "version": "0.0.2", | ||
| "version": "0.0.3", | ||
| "description": "Utilities used by other packages", | ||
@@ -15,2 +15,3 @@ "author": "Hoàng Văn Khải <hvksmr1996@gmail.com>", | ||
| }, | ||
| "sideEffects": false, | ||
| "dependencies": { | ||
@@ -17,0 +18,0 @@ "tslib": "^1.10.0", |
9194
1.01%285
1.06%