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

nodecaf-run

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodecaf-run - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

10

CHANGELOG.md

@@ -8,2 +8,10 @@ # Nodecaf Run Changelog

## [v0.0.3] - 2020-04-24
### Added
- log dump of erros when loading the app
### Fixed
- bug with reload flag that wouldn't reload app sub-modules
## [v0.0.2] - 2020-04-17

@@ -19,1 +27,3 @@

[v0.0.1]: https://gitlab.com/nodecaf/run/-/tags/v0.0.1
[v0.0.2]: https://gitlab.com/nodecaf/run/-/tags/v0.0.2
[v0.0.3]: https://gitlab.com/nodecaf/run/-/tags/v0.0.3

6

lib/main.js

@@ -49,4 +49,5 @@ const path = require('path');

function load(opts){
delete require.cache[opts.path];
let mainPath = module.children[module.children.length -1].id;
delete require.cache[mainPath];
try{

@@ -56,2 +57,3 @@ var app = require(opts.path)();

catch(e){
console.log(e);
throw new TypeError('App Path must be a valid nodecaf app path');

@@ -58,0 +60,0 @@ }

{
"name": "nodecaf-run",
"version": "0.0.2",
"version": "0.0.3",
"description": "A module to run standalone Nodecaf apps as opposed to requiring them.",

@@ -5,0 +5,0 @@ "main": "lib/main.js",

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