New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

is-inner-link

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-inner-link - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

5

index.js

@@ -9,3 +9,6 @@ 'use strict'

return getLinkTarget(linkPath)
.then(linkTarget => isSubdir(parent, linkTarget))
.then(target => ({
isInner: isSubdir(parent, target),
target
}))
}
{
"name": "is-inner-link",
"version": "1.0.0",
"version": "2.0.0",
"description": "Returns true if a link targets a directory inside its parent directory",

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

"pretest": "rimraf .tmp",
"test": "mos t && node test",
"test": "mos t && standard && node test",
"md": "mos"

@@ -51,2 +51,3 @@ },

"rimraf": "^2.6.1",
"standard": "^10.0.2",
"symlink-dir": "^1.0.2",

@@ -53,0 +54,0 @@ "tape": "^4.6.3"

4

README.md

@@ -22,5 +22,5 @@ # is-inner-link

isInnerLink('node_modules', 'foo')
.then(isInner => console.log(isInner))
.then(link => console.log(link))
.catch(err => console.error(err))
//> false
//> {isInner: false, target: '/zkochan/foo'}
```

@@ -27,0 +27,0 @@

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