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

smart-restart

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smart-restart - npm Package Compare versions

Comparing version 2.6.0 to 2.6.1

26

launcher.js

@@ -55,15 +55,17 @@ 'use strict';

Module._load = function (name, parent, isMain) {
// @ts-expect-error not typed
const file = Module._resolveFilename(name, parent);
(0, _hotModuleReplacement.registerModuleParent)(file, parent.id);
if (parent && (options.includeModules || file.indexOf('node_modules') < 0) && !natives[file] && file !== main) {
if (!origDeleteRequireCache.has(file)) {
deleteRequireCache[file] = deleteRequireCache[parent.id] || false;
if (parent && parent.id) {
// @ts-expect-error not typed
const file = Module._resolveFilename(name, parent);
(0, _hotModuleReplacement.registerModuleParent)(file, parent.id);
if (parent && (options.includeModules || file.indexOf('node_modules') < 0) && !natives[file] && file !== main) {
if (!origDeleteRequireCache.has(file)) {
deleteRequireCache[file] = deleteRequireCache[parent.id] || false;
}
sendMessageToParent({
file,
parent: parent.id
});
} else {
debug('ignoring module: ', name);
}
sendMessageToParent({
file,
parent: parent.id
});
} else {
debug('ignoring module: ', name);
}

@@ -70,0 +72,0 @@ return _load_orig(name, parent, isMain);

{
"name": "smart-restart",
"version": "2.6.0",
"version": "2.6.1",
"description": "Like nodemon but only watches require()d files. Like piping but easy to use with node-inspector.",

@@ -18,3 +18,9 @@ "engines": {

"reload",
"hot"
"hot",
"hot-reloading",
"hot-module-replacement",
"hmr",
"commonjs",
"file-watcher",
"file-watching"
],

@@ -21,0 +27,0 @@ "bugs": {

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