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

stubborn-fs

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stubborn-fs - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

2

dist/index.d.ts

@@ -30,2 +30,3 @@ /// <reference types="node" />

write: (timeout: number) => typeof fs.write.__promisify__;
writeFile: (timeout: number) => typeof fs.writeFile.__promisify__;
closeSync: (timeout: number) => typeof fs.closeSync;

@@ -38,4 +39,5 @@ fsyncSync: (timeout: number) => typeof fs.fsyncSync;

writeSync: (timeout: number) => typeof fs.writeSync;
writeFileSync: (timeout: number) => typeof fs.writeFileSync;
};
};
export default FS;

4

dist/index.js

@@ -36,2 +36,3 @@ /* IMPORT */

write: retryifyAsync(promisify(fs.write), Handlers.isRetriableError),
writeFile: retryifyAsync(promisify(fs.writeFile), Handlers.isRetriableError),
closeSync: retryifySync(fs.closeSync, Handlers.isRetriableError),

@@ -43,3 +44,4 @@ fsyncSync: retryifySync(fs.fsyncSync, Handlers.isRetriableError),

statSync: retryifySync(fs.statSync, Handlers.isRetriableError),
writeSync: retryifySync(fs.writeSync, Handlers.isRetriableError)
writeSync: retryifySync(fs.writeSync, Handlers.isRetriableError),
writeFileSync: retryifySync(fs.writeFileSync, Handlers.isRetriableError)
}

@@ -46,0 +48,0 @@ };

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

"description": "Stubborn versions of Node's fs functions that try really hard to do their job.",
"version": "1.0.0",
"version": "1.1.0",
"type": "module",

@@ -8,0 +8,0 @@ "main": "dist/index.js",

@@ -52,2 +52,3 @@ # Stubborn FS

fs.retry.write;
fs.retry.writeFile;

@@ -63,2 +64,3 @@ // Retry functions (sync)

fs.retry.writeSync;
fs.retry.writeFileSync;
```

@@ -65,0 +67,0 @@

@@ -44,2 +44,3 @@

write: retryifyAsync ( promisify ( fs.write ), Handlers.isRetriableError ),
writeFile: retryifyAsync ( promisify ( fs.writeFile ), Handlers.isRetriableError ),

@@ -52,3 +53,4 @@ closeSync: retryifySync ( fs.closeSync, Handlers.isRetriableError ),

statSync: retryifySync ( fs.statSync, Handlers.isRetriableError ),
writeSync: retryifySync ( fs.writeSync, Handlers.isRetriableError )
writeSync: retryifySync ( fs.writeSync, Handlers.isRetriableError ),
writeFileSync: retryifySync ( fs.writeFileSync, Handlers.isRetriableError )

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