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

pathwatcher

Package Overview
Dependencies
Maintainers
6
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pathwatcher - npm Package Compare versions

Comparing version 2.6.0 to 2.6.1

68

api.json

@@ -6,3 +6,3 @@ {

"filename": "src/directory.coffee",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/directory.coffee#L14",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/directory.coffee#L14",
"sections": [

@@ -35,3 +35,3 @@ {

"sectionName": "Construction",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/directory.coffee#L29",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/directory.coffee#L29",
"visibility": "Public",

@@ -58,3 +58,3 @@ "summary": "Configures a new Directory instance, no files are accessed.",

"sectionName": "Event Subscription",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/directory.coffee#L53",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/directory.coffee#L53",
"visibility": "Public",

@@ -81,3 +81,3 @@ "summary": "Invoke the given callback when the directory's contents change.",

"sectionName": "Directory Metadata",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/directory.coffee#L81",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/directory.coffee#L81",
"visibility": "Public",

@@ -96,3 +96,3 @@ "summary": "",

"sectionName": "Directory Metadata",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/directory.coffee#L84",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/directory.coffee#L84",
"visibility": "Public",

@@ -111,3 +111,3 @@ "summary": "",

"sectionName": "Directory Metadata",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/directory.coffee#L88",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/directory.coffee#L88",
"visibility": "Public",

@@ -120,3 +120,3 @@ "summary": "Return a {Boolean}, true if this {Directory} is the root directory\nof the filesystem, or false if it isn't. ",

"sectionName": "Managing Paths",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/directory.coffee#L99",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/directory.coffee#L99",
"visibility": "Public",

@@ -135,3 +135,3 @@ "summary": "",

"sectionName": "Managing Paths",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/directory.coffee#L105",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/directory.coffee#L105",
"visibility": "Public",

@@ -150,3 +150,3 @@ "summary": "",

"sectionName": "Managing Paths",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/directory.coffee#L116",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/directory.coffee#L116",
"visibility": "Public",

@@ -165,3 +165,3 @@ "summary": "",

"sectionName": "Managing Paths",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/directory.coffee#L121",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/directory.coffee#L121",
"visibility": "Public",

@@ -180,3 +180,3 @@ "summary": "",

"sectionName": "Traversing",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/directory.coffee#L178",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/directory.coffee#L178",
"visibility": "Public",

@@ -195,3 +195,3 @@ "summary": "Traverse to the parent directory.",

"sectionName": "Traversing",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/directory.coffee#L187",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/directory.coffee#L187",
"visibility": "Public",

@@ -218,3 +218,3 @@ "summary": "Traverse within this Directory to a child File. This method doesn't\nactually check to see if the File exists, it just creates the File object.",

"sectionName": "Traversing",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/directory.coffee#L197",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/directory.coffee#L197",
"visibility": "Public",

@@ -241,3 +241,3 @@ "summary": "Traverse within this a Directory to a child Directory. This method\ndoesn't actually check to see if the Directory exists, it just creates the\nDirectory object.",

"sectionName": "Traversing",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/directory.coffee#L203",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/directory.coffee#L203",
"visibility": "Public",

@@ -256,3 +256,3 @@ "summary": "Reads file entries in this directory from disk synchronously.",

"sectionName": "Traversing",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/directory.coffee#L224",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/directory.coffee#L224",
"visibility": "Public",

@@ -287,3 +287,3 @@ "summary": "Reads file entries in this directory from disk asynchronously.",

"sectionName": "Traversing",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/directory.coffee#L251",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/directory.coffee#L251",
"visibility": "Public",

@@ -309,3 +309,3 @@ "summary": "",

"filename": "src/file.coffee",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/file.coffee#L20",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/file.coffee#L20",
"sections": [

@@ -342,3 +342,3 @@ {

"sectionName": "Construction",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/file.coffee#L35",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/file.coffee#L35",
"visibility": "Public",

@@ -365,3 +365,3 @@ "summary": "Creates a new file.",

"sectionName": "Event Subscription",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/file.coffee#L71",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/file.coffee#L74",
"visibility": "Public",

@@ -388,3 +388,3 @@ "summary": "Invoke the given callback when the file's contents change.",

"sectionName": "Event Subscription",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/file.coffee#L80",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/file.coffee#L83",
"visibility": "Public",

@@ -411,3 +411,3 @@ "summary": "Invoke the given callback when the file's path changes.",

"sectionName": "Event Subscription",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/file.coffee#L89",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/file.coffee#L92",
"visibility": "Public",

@@ -434,3 +434,3 @@ "summary": "Invoke the given callback when the file is deleted.",

"sectionName": "Event Subscription",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/file.coffee#L102",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/file.coffee#L105",
"visibility": "Public",

@@ -473,3 +473,3 @@ "summary": "Invoke the given callback when there is an error with the watch.\nWhen your callback has been invoked, the file will have unsubscribed from\nthe file watches.",

"sectionName": "File Metadata",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/file.coffee#L123",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/file.coffee#L126",
"visibility": "Public",

@@ -488,3 +488,3 @@ "summary": "",

"sectionName": "File Metadata",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/file.coffee#L126",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/file.coffee#L129",
"visibility": "Public",

@@ -503,3 +503,3 @@ "summary": "",

"sectionName": "File Metadata",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/file.coffee#L129",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/file.coffee#L132",
"visibility": "Public",

@@ -518,3 +518,3 @@ "summary": "",

"sectionName": "File Metadata",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/file.coffee#L135",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/file.coffee#L138",
"visibility": "Public",

@@ -533,3 +533,3 @@ "summary": "Get the SHA-1 digest of this file",

"sectionName": "File Metadata",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/file.coffee#L144",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/file.coffee#L147",
"visibility": "Public",

@@ -550,3 +550,3 @@ "summary": "Sets the file's character set encoding name.",

"sectionName": "File Metadata",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/file.coffee#L147",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/file.coffee#L150",
"visibility": "Public",

@@ -565,3 +565,3 @@ "summary": "",

"sectionName": "Managing Paths",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/file.coffee#L154",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/file.coffee#L157",
"visibility": "Public",

@@ -580,3 +580,3 @@ "summary": "",

"sectionName": "Managing Paths",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/file.coffee#L161",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/file.coffee#L164",
"visibility": "Public",

@@ -595,3 +595,3 @@ "summary": "",

"sectionName": "Managing Paths",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/file.coffee#L170",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/file.coffee#L173",
"visibility": "Public",

@@ -604,3 +604,3 @@ "summary": "Return the {String} filename without any directory information. ",

"sectionName": "Traversing",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/file.coffee#L178",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/file.coffee#L181",
"visibility": "Public",

@@ -613,3 +613,3 @@ "summary": "Return the {Directory} that contains this file. ",

"sectionName": "Reading and Writing",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/file.coffee#L214",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/file.coffee#L217",
"visibility": "Public",

@@ -636,3 +636,3 @@ "summary": "Reads the contents of the file.",

"sectionName": "Reading and Writing",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.0/src/file.coffee#L254",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v2.6.1/src/file.coffee#L257",
"visibility": "Public",

@@ -639,0 +639,0 @@ "summary": "Overwrites the file with the given text.",

@@ -45,2 +45,3 @@ (function() {

function File(filePath, symlink) {
var error;
this.symlink = symlink != null ? symlink : false;

@@ -50,3 +51,5 @@ this.didRemoveSubscription = __bind(this.didRemoveSubscription, this);

if (fs.isDirectorySync(filePath)) {
throw new Error("" + filePath + " is a directory");
error = new Error("" + filePath + " is a directory");
error.code = 'EISDIR';
throw error;
}

@@ -53,0 +56,0 @@ if (filePath) {

@@ -5,3 +5,3 @@ {

"description": "Watch files and directories for changes",
"version": "2.6.0",
"version": "2.6.1",
"licenses": [

@@ -8,0 +8,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