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

rollup-watch

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-watch - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

4

CHANGELOG.md
# rollup-watch changelog
## 3.2.1
* Fix missing `require-relative`
## 3.2.0

@@ -4,0 +8,0 @@

@@ -6,6 +6,37 @@ 'use strict';

var EventEmitter = _interopDefault(require('events'));
var relative = _interopDefault(require('require-relative'));
var path = require('path');
var path__default = path['default'];
var module$1 = _interopDefault(require('module'));
var fs = require('fs');
var path$1 = path__default;
var Module = module$1;
var modules = {};
var getModule = function(dir) {
var rootPath = dir ? path$1.resolve(dir) : process.cwd();
var rootName = path$1.join(rootPath, '@root');
var root = modules[rootName];
if (!root) {
root = new Module(rootName);
root.filename = rootName;
root.paths = Module._nodeModulePaths(rootPath);
modules[rootName] = root;
}
return root;
};
var requireRelative = function(requested, relativeTo) {
var root = getModule(relativeTo);
return root.require(requested);
};
requireRelative.resolve = function(requested, relativeTo) {
var root = getModule(relativeTo);
return Module._resolveFilename(requested, root);
};
var index$1 = requireRelative;
function sequence ( array, fn ) {

@@ -31,3 +62,3 @@ let results = [];

try {
chokidar = relative( 'chokidar', process.cwd() );
chokidar = index$1( 'chokidar', process.cwd() );
} catch (err) {

@@ -34,0 +65,0 @@ chokidar = null;

import EventEmitter from 'events';
import relative from 'require-relative';
import { resolve } from 'path';
import path__default from 'path';
import * as path from 'path';
import module$1 from 'module';
import { readFileSync, realpathSync, watch } from 'fs';
import * as fs from 'fs';
var path$1 = path__default;
var Module = module$1;
var modules = {};
var getModule = function(dir) {
var rootPath = dir ? path$1.resolve(dir) : process.cwd();
var rootName = path$1.join(rootPath, '@root');
var root = modules[rootName];
if (!root) {
root = new Module(rootName);
root.filename = rootName;
root.paths = Module._nodeModulePaths(rootPath);
modules[rootName] = root;
}
return root;
};
var requireRelative = function(requested, relativeTo) {
var root = getModule(relativeTo);
return root.require(requested);
};
requireRelative.resolve = function(requested, relativeTo) {
var root = getModule(relativeTo);
return Module._resolveFilename(requested, root);
};
var index$1 = requireRelative;
function sequence ( array, fn ) {

@@ -28,3 +59,3 @@ let results = [];

try {
chokidar = relative( 'chokidar', process.cwd() );
chokidar = index$1( 'chokidar', process.cwd() );
} catch (err) {

@@ -31,0 +62,0 @@ chokidar = null;

5

package.json
{
"name": "rollup-watch",
"version": "3.2.0",
"version": "3.2.1",
"description": "Watch files for changes and perform incremental rebuilds with Rollup",

@@ -31,2 +31,5 @@ "main": "dist/rollup-watch.cjs.js",

"homepage": "https://github.com/rollup/rollup-watch#readme",
"dependencies": {
},
"devDependencies": {

@@ -33,0 +36,0 @@ "eslint": "^3.12.2",

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