Socket
Socket
Sign inDemoInstall

desm

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

desm - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

4

index.js

@@ -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'))
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc