stubborn-fs
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -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; |
@@ -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 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22002
475
69