Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bare-path

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bare-path - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

19

index.js

@@ -84,6 +84,17 @@ const os = require('bare-os')

path.extname = function extname (p) {
const i = p.lastIndexOf('.')
return i === -1 ? '' : p.slice(i)
}
path.extname = windows
? function extname (p) {
const i = p.lastIndexOf('.')
if (i === -1) return ''
const e = p.slice(i)
if (e.includes('/') || e.includes('\\')) return ''
return e
}
: function extname (p) {
const i = p.lastIndexOf('.')
if (i === -1) return ''
const e = p.slice(i)
if (e.includes('/')) return ''
return e
}

@@ -90,0 +101,0 @@ path.resolve = function resolve (...args) {

{
"name": "bare-path",
"version": "2.0.0",
"version": "2.0.1",
"description": "Path manipulation library for JavaScript",

@@ -14,3 +14,3 @@ "main": "index.js",

"type": "git",
"url": "https://github.com/holepunchto/bare-path.git"
"url": "git+https://github.com/holepunchto/bare-path.git"
},

@@ -17,0 +17,0 @@ "author": "Holepunch",

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