Socket
Socket
Sign inDemoInstall

@file-services/types

Package Overview
Dependencies
Maintainers
4
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@file-services/types - npm Package Compare versions

Comparing version 7.0.1 to 7.2.0

4

dist/base-api-async.d.ts

@@ -181,3 +181,7 @@ import type { IFileSystemStats, BufferEncoding, CallbackFnVoid, CallbackFn, WriteFileOptions, ReadFileOptions, IDirectoryEntry, RmOptions } from './common-fs-types.js';

rm(path: string, options?: RmOptions): Promise<void>;
/**
* Changes the permissions of a file.
*/
chmod(path: string, mode: number | string): Promise<void>;
}
//# sourceMappingURL=base-api-async.d.ts.map

@@ -105,3 +105,6 @@ import type { IFileSystemStats, BufferEncoding, WriteFileOptions, ReadFileOptions, IDirectoryEntry, StatSyncOptions, RmOptions } from './common-fs-types.js';

*/
realpathSync(path: string): string;
realpathSync: {
(path: string): string;
native(path: string): string;
};
/**

@@ -123,3 +126,7 @@ * Rename (move) a file or a directory

rmSync(path: string, options?: RmOptions): void;
/**
* Changes the permissions of a file.
*/
chmodSync(path: string, mode: number | string): void;
}
//# sourceMappingURL=base-api-sync.d.ts.map

10

dist/common-fs-types.d.ts

@@ -1,2 +0,2 @@

export declare type BufferEncoding = 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'latin1' | 'binary' | 'hex';
export type BufferEncoding = 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'latin1' | 'binary' | 'hex';
declare global {

@@ -7,4 +7,4 @@ interface Buffer {

}
export declare type CallbackFn<T> = (error: Error | null, value: T) => void;
export declare type CallbackFnVoid = (error?: Error | null) => void;
export type CallbackFn<T> = (error: Error | null, value: T) => void;
export type CallbackFnVoid = (error?: Error | null) => void;
export interface StatSyncOptions {

@@ -17,3 +17,3 @@ /**

}
export declare type WriteFileOptions = {
export type WriteFileOptions = {
encoding?: BufferEncoding | null;

@@ -23,3 +23,3 @@ mode?: number | string;

} | BufferEncoding | null;
export declare type ReadFileOptions = {
export type ReadFileOptions = {
encoding?: BufferEncoding | null;

@@ -26,0 +26,0 @@ flag?: string;

@@ -48,3 +48,3 @@ import type { IFileSystemStats } from './common-fs-types.js';

*/
export declare type WatchEventListener = (watchEvent: IWatchEvent) => void;
export type WatchEventListener = (watchEvent: IWatchEvent) => void;
//# sourceMappingURL=watch-api.d.ts.map
{
"name": "@file-services/types",
"description": "Common file system interfaces",
"version": "7.0.1",
"version": "7.2.0",
"main": "dist/index.js",

@@ -6,0 +6,0 @@ "files": [

@@ -209,2 +209,7 @@ import type {

rm(path: string, options?: RmOptions): Promise<void>;
/**
* Changes the permissions of a file.
*/
chmod(path: string, mode: number | string): Promise<void>;
}

@@ -109,3 +109,6 @@ import type {

*/
realpathSync(path: string): string;
realpathSync: {
(path: string): string;
native(path: string): string;
};

@@ -131,2 +134,7 @@ /**

rmSync(path: string, options?: RmOptions): void;
/**
* Changes the permissions of a file.
*/
chmodSync(path: string, mode: number | string): void;
}

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

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