Socket
Socket
Sign inDemoInstall

@types/graceful-fs

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/graceful-fs - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

59

graceful-fs/index.d.ts

@@ -9,37 +9,34 @@ // Type definitions for graceful-fs 4.1

declare module 'graceful-fs' {
import * as fs from 'fs';
import * as fs from 'fs';
export * from 'fs';
export * from 'fs';
/**
* Use this method to patch the global fs module (or any other fs-like module).
* NOTE: This should only ever be done at the top-level application layer, in order to delay on
* EMFILE errors from any fs-using dependencies. You should **not** do this in a library, because
* it can cause unexpected delays in other parts of the program.
* @param fsModule The reference to the fs module or an fs-like module.
*/
export function gracefulify<T>(fsModule: T): T & Lutimes;
export interface Lutimes {
/**
* Use this method to patch the global fs module (or any other fs-like module).
* NOTE: This should only ever be done at the top-level application layer, in order to delay on
* EMFILE errors from any fs-using dependencies. You should **not** do this in a library, because
* it can cause unexpected delays in other parts of the program.
* @param fsModule The reference to the fs module or an fs-like module.
* Asynchronously change file timestamps of the file referenced by the supplied path.
* If path refers to a symbolic link, then the link is not dereferenced: instead, the timestamps
* of the symbolic link are changed.
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
* @param atime The last access time. If a string is provided, it will be coerced to number.
* @param mtime The last modified time. If a string is provided, it will be coerced to number.
*/
// tslint:disable-next-line strict-export-declare-modifiers
export function gracefulify<T>(fsModule: T): T & Lutimes;
interface Lutimes {
/**
* Asynchronously change file timestamps of the file referenced by the supplied path.
* If path refers to a symbolic link, then the link is not dereferenced: instead, the timestamps
* of the symbolic link are changed.
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
* @param atime The last access time. If a string is provided, it will be coerced to number.
* @param mtime The last modified time. If a string is provided, it will be coerced to number.
*/
lutimes: typeof fs.lutimes;
/**
* Synchronously change file timestamps of the file referenced by the supplied path.
* If path refers to a symbolic link, then the link is not dereferenced: instead, the timestamps
* of the symbolic link are changed.
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
* @param atime The last access time. If a string is provided, it will be coerced to number.
* @param mtime The last modified time. If a string is provided, it will be coerced to number.
*/
lutimesSync: typeof fs.lutimesSync;
}
lutimes: typeof fs.lutimes;
/**
* Synchronously change file timestamps of the file referenced by the supplied path.
* If path refers to a symbolic link, then the link is not dereferenced: instead, the timestamps
* of the symbolic link are changed.
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
* @param atime The last access time. If a string is provided, it will be coerced to number.
* @param mtime The last modified time. If a string is provided, it will be coerced to number.
*/
lutimesSync: typeof fs.lutimesSync;
}

@@ -46,0 +43,0 @@

{
"name": "@types/graceful-fs",
"version": "4.1.0",
"version": "4.1.1",
"description": "TypeScript definitions for graceful-fs",

@@ -9,7 +9,9 @@ "license": "MIT",

"name": "Bart van der Schoor",
"url": "https://github.com/Bartvds"
"url": "https://github.com/Bartvds",
"githubUsername": "Bartvds"
},
{
"name": "BendingBender",
"url": "https://github.com/BendingBender"
"url": "https://github.com/BendingBender",
"githubUsername": "BendingBender"
}

@@ -26,4 +28,4 @@ ],

},
"typesPublisherContentHash": "07143150a1d41510c84d5534603c9508a9fa0484bccfbf4fbf3485203f98cb3f",
"typesPublisherContentHash": "952797bbc14ecbc666a55dfbc1789a2d871b590b6c9f22ac8e19e1eefea0a49d",
"typeScriptVersion": "2.0"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Thu, 24 Aug 2017 17:15:34 GMT
* Last updated: Tue, 26 Sep 2017 18:35:24 GMT
* Dependencies: fs, node

@@ -14,0 +14,0 @@ * Global values: none

Sorry, the diff of this file is not supported yet

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