Comparing version 1.0.0 to 1.1.0
@@ -8,4 +8,4 @@ import { fileURLToPath } from 'url' | ||
function urlJoin (url, str) { | ||
return join(urlDirname(url), str) | ||
function urlJoin (url, ...str) { | ||
return join(urlDirname(url), ...str) | ||
} | ||
@@ -12,0 +12,0 @@ |
{ | ||
"name": "desm", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "get the file directory from import.meta.url", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -28,2 +28,3 @@ # desm | ||
console.log(join(import.meta.url, 'routes')) | ||
console.log(join(import.meta.url, '..', 'other')) | ||
``` | ||
@@ -30,0 +31,0 @@ |
@@ -24,1 +24,8 @@ import test from 'tape' | ||
}) | ||
test('join stuff (concat)', async ({ is }) => { | ||
const __filename = fileURLToPath(import.meta.url) | ||
const __dirname = dirname(__filename) | ||
is(urlJoin(import.meta.url, '..', 'routes'), join(__dirname, '..', 'routes')) | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3864
41
34