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.3 to 4.1.4

63

graceful-fs/index.d.ts

@@ -10,4 +10,2 @@ // Type definitions for graceful-fs 4.1

import * as fs from 'fs';
export * from 'fs';

@@ -22,61 +20,2 @@

*/
export function gracefulify<T>(fsModule: T): T & Lutimes;
export 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;
}
declare module 'fs' {
/**
* 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.
*/
function lutimes(path: PathLike,
atime: string | number | Date,
mtime: string | number | Date,
callback?: (err: NodeJS.ErrnoException | null) => void): void;
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
namespace 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.
*/
function __promisify__(path: PathLike, atime: string | number | Date, mtime: string | number | Date): Promise<void>;
}
/**
* 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.
*/
function lutimesSync(path: PathLike, atime: string | number | Date, mtime: string | number | Date): void;
}
export function gracefulify<T>(fsModule: T): T;

11

graceful-fs/package.json
{
"name": "@types/graceful-fs",
"version": "4.1.3",
"version": "4.1.4",
"description": "TypeScript definitions for graceful-fs",

@@ -19,6 +19,7 @@ "license": "MIT",

"main": "",
"types": "index",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/graceful-fs"
},

@@ -29,4 +30,4 @@ "scripts": {},

},
"typesPublisherContentHash": "7e459d70acc49c2972a15118724b3a8c901016e65a92fdb945c73b657dfcaf2d",
"typeScriptVersion": "2.2"
"typesPublisherContentHash": "056a1225be9e1e75f3159d214868c57eeb9f4c81385dcac88a3c56971b088b9d",
"typeScriptVersion": "3.2"
}

@@ -5,13 +5,13 @@ # Installation

# Summary
This package contains type definitions for graceful-fs ( https://github.com/isaacs/node-graceful-fs ).
This package contains type definitions for graceful-fs (https://github.com/isaacs/node-graceful-fs).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/graceful-fs
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/graceful-fs.
Additional Details
* Last updated: Wed, 13 Feb 2019 18:42:10 GMT
* Dependencies: @types/node
### Additional Details
* Last updated: Wed, 21 Oct 2020 21:01:39 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
* Global values: none
# Credits
These definitions were written by Bart van der Schoor <https://github.com/Bartvds>, BendingBender <https://github.com/BendingBender>.
These definitions were written by [Bart van der Schoor](https://github.com/Bartvds), and [BendingBender](https://github.com/BendingBender).

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