@bscotch/pathy
Advanced tools
Comparing version 2.10.0 to 2.10.1
@@ -21,2 +21,3 @@ import fsp from 'node:fs/promises'; | ||
tries++; | ||
error.tries = tries; | ||
await new Promise((resolve) => setTimeout(resolve, retryDelayMillis)); | ||
@@ -41,2 +42,3 @@ continue; | ||
tries++; | ||
error.tries = tries; | ||
await new Promise((resolve) => setTimeout(resolve, retryDelayMillis)); | ||
@@ -75,2 +77,3 @@ continue; | ||
tries++; | ||
error.tries = tries; | ||
await new Promise((resolve) => setTimeout(resolve, retryDelayMillis)); | ||
@@ -101,2 +104,3 @@ continue; | ||
tries++; | ||
error.tries = tries; | ||
await new Promise((resolve) => setTimeout(resolve, retryDelayMillis)); | ||
@@ -103,0 +107,0 @@ continue; |
@@ -27,3 +27,3 @@ /// <reference types="node" resolution-mode="require"/> | ||
*/ | ||
static replaceSeparator(path: string, separator?: "/" | "\\"): string; | ||
static replaceSeparator(path: string, separator?: "\\" | "/"): string; | ||
static basename(path: PathyOrString): string; | ||
@@ -30,0 +30,0 @@ /** |
@@ -80,3 +80,3 @@ /// <reference types="node" resolution-mode="require"/> | ||
} | ||
export interface PathyWriteOptions { | ||
export interface PathyWriteOptions extends FileRetryOptions { | ||
/** | ||
@@ -83,0 +83,0 @@ * {@link Pathy} will attempt to serialize the file, |
@@ -9,2 +9,3 @@ export type ArrayWrapped<T> = T extends any[] ? T : [T]; | ||
export declare class PathyError extends Error { | ||
tries?: number; | ||
constructor(message: string, cause?: any, asserter?: Function); | ||
@@ -11,0 +12,0 @@ } |
@@ -15,2 +15,3 @@ /** | ||
export class PathyError extends Error { | ||
tries; | ||
constructor(message, cause, asserter) { | ||
@@ -17,0 +18,0 @@ super(message); |
{ | ||
"name": "@bscotch/pathy", | ||
"version": "2.10.0", | ||
"version": "2.10.1", | ||
"description": "A toolkit for simplifying working with paths and files.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
127629
2015