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 3.3.0 to 3.3.1

72

api.json

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

"filename": "src/directory.coffee",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/directory.coffee#L14",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/directory.coffee#L14",
"sections": [

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

"sectionName": "Construction",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/directory.coffee#L29",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.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/v3.3.0/src/directory.coffee#L53",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.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/v3.3.0/src/directory.coffee#L81",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/directory.coffee#L81",
"visibility": "Public",

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

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

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

"sectionName": "Directory Metadata",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/directory.coffee#L87",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/directory.coffee#L87",
"visibility": "Public",

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

"sectionName": "Directory Metadata",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/directory.coffee#L92",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/directory.coffee#L92",
"visibility": "Public",

@@ -135,3 +135,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/v3.3.0/src/directory.coffee#L103",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/directory.coffee#L103",
"visibility": "Public",

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

"sectionName": "Managing Paths",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/directory.coffee#L109",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/directory.coffee#L109",
"visibility": "Public",

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

"sectionName": "Managing Paths",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/directory.coffee#L120",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/directory.coffee#L120",
"visibility": "Public",

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

"sectionName": "Managing Paths",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/directory.coffee#L125",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/directory.coffee#L125",
"visibility": "Public",

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

"sectionName": "Traversing",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/directory.coffee#L182",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/directory.coffee#L182",
"visibility": "Public",

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

"sectionName": "Traversing",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/directory.coffee#L191",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/directory.coffee#L191",
"visibility": "Public",

@@ -233,3 +233,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/v3.3.0/src/directory.coffee#L201",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/directory.coffee#L201",
"visibility": "Public",

@@ -256,3 +256,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/v3.3.0/src/directory.coffee#L207",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/directory.coffee#L207",
"visibility": "Public",

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

"sectionName": "Traversing",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/directory.coffee#L228",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/directory.coffee#L228",
"visibility": "Public",

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

"sectionName": "Traversing",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/directory.coffee#L255",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/directory.coffee#L255",
"visibility": "Public",

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

"filename": "src/file.coffee",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/file.coffee#L20",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/file.coffee#L20",
"sections": [

@@ -357,3 +357,3 @@ {

"sectionName": "Construction",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/file.coffee#L35",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/file.coffee#L35",
"visibility": "Public",

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

"sectionName": "Event Subscription",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/file.coffee#L74",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/file.coffee#L74",
"visibility": "Public",

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

"sectionName": "Event Subscription",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/file.coffee#L83",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/file.coffee#L83",
"visibility": "Public",

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

"sectionName": "Event Subscription",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/file.coffee#L92",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/file.coffee#L92",
"visibility": "Public",

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

"sectionName": "Event Subscription",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/file.coffee#L105",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/file.coffee#L105",
"visibility": "Public",

@@ -488,3 +488,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/v3.3.0/src/file.coffee#L126",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/file.coffee#L126",
"visibility": "Public",

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

"sectionName": "File Metadata",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/file.coffee#L129",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/file.coffee#L129",
"visibility": "Public",

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

"sectionName": "File Metadata",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/file.coffee#L132",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/file.coffee#L132",
"visibility": "Public",

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

"sectionName": "File Metadata",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/file.coffee#L137",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/file.coffee#L137",
"visibility": "Public",

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

"sectionName": "File Metadata",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/file.coffee#L143",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/file.coffee#L143",
"visibility": "Public",

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

"sectionName": "File Metadata",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/file.coffee#L152",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/file.coffee#L152",
"visibility": "Public",

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

"sectionName": "File Metadata",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/file.coffee#L155",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/file.coffee#L155",
"visibility": "Public",

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

"sectionName": "Managing Paths",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/file.coffee#L162",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/file.coffee#L162",
"visibility": "Public",

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

"sectionName": "Managing Paths",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/file.coffee#L169",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/file.coffee#L169",
"visibility": "Public",

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

"sectionName": "Managing Paths",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/file.coffee#L178",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/file.coffee#L178",
"visibility": "Public",

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

"sectionName": "Traversing",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/file.coffee#L186",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/file.coffee#L186",
"visibility": "Public",

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

"sectionName": "Reading and Writing",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/file.coffee#L222",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/file.coffee#L222",
"visibility": "Public",

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

"sectionName": "Reading and Writing",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.0/src/file.coffee#L262",
"srcUrl": "https://github.com/atom/node-pathwatcher/blob/v3.3.1/src/file.coffee#L262",
"visibility": "Public",

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

@@ -107,3 +107,3 @@ (function() {

File.prototype.willAddSubscription = function() {
if (this.exists() && this.subscriptionCount === 0) {
if (this.existsSync() && this.subscriptionCount === 0) {
this.subscribeToNativeChangeEvents();

@@ -145,3 +145,3 @@ }

Grim.deprecate("Use File::existsSync instead");
return fs.existsSync(this.getPath());
return this.existsSync();
};

@@ -220,3 +220,3 @@

var encoding;
if (!this.exists()) {
if (!this.existsSync()) {
this.cachedContents = null;

@@ -258,3 +258,3 @@ } else if ((this.cachedContents == null) || flushCache) {

}
if (!this.exists()) {
if (!this.existsSync()) {
promise = Q(null);

@@ -301,3 +301,3 @@ } else if ((this.cachedContents == null) || flushCache) {

var previouslyExisted;
previouslyExisted = this.exists();
previouslyExisted = this.existsSync();
this.writeFileWithPrivilegeEscalationSync(this.getPath(), text);

@@ -398,3 +398,3 @@ this.cachedContents = text;

File.prototype.detectResurrection = function() {
if (this.exists()) {
if (this.existsSync()) {
this.subscribeToNativeChangeEvents();

@@ -401,0 +401,0 @@ return this.handleNativeChangeEvent('resurrect', this.getPath());

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

"description": "Watch files and directories for changes",
"version": "3.3.0",
"version": "3.3.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