Socket
Socket
Sign inDemoInstall

root-require

Package Overview
Dependencies
1
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.0 to 0.3.1

2

package.json
{
"name": "root-require",
"version": "0.3.0",
"version": "0.3.1",
"description": "For use in tests only! require() using a relative path from the root directory of the present module",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -7,6 +7,8 @@ root-require

> ## WARNING:
> THIS MODULE DOES NOT WORK ALL THE TIME.
> I REPEAT. IT DOES NOT WORK ALL THE TIME.
> IT WILL CAUSE YOU HEADACHES IF YOU USE IT IN TWO MODULES WHICH DEPEND ON ONE ANOTHER, BECAUSE NPM OPTIMIZES DEPENDENCIES. AS LONG AS YOU ARE ONLY USING IT ONLY FOR TESTS, YOU SHOULD BE OK.
> ### WARNING:
> THIS MODULE PROBABLY DOES NOT WORK IN THE WAY YOU EXPECT IT TO WORK ALL THE TIME.
> I REPEAT: IT HAS DIFFERENT BEHAVIOR BASED ON HOW IT'S BROUGHT IN AS A DEPENDENCY THAT WILL CAUSE YOU HEADACHES. ESPECIALLY IF YOU USE IT IN TWO MODULES WHICH DEPEND ON ONE ANOTHER. (this is because of the way npm optimizes dependencies, and this module doesn't address that, since it's for testing only.).
>
> That said, as long as you use this module as a **DEV DEPDENDENCY**, everything _should_ work as expected. Sorry for the capslock.
> ~Mike

@@ -13,0 +15,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc