Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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 5.7.1 to 6.0.0

6

dist/base-api-async.d.ts

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

import type { IFileSystemStats, BufferEncoding, CallbackFnVoid, CallbackFn, WriteFileOptions, ReadFileOptions, IDirectoryEntry } from './common-fs-types.js';
import type { IFileSystemStats, BufferEncoding, CallbackFnVoid, CallbackFn, WriteFileOptions, ReadFileOptions, IDirectoryEntry, RmOptions } from './common-fs-types.js';
import type { IFileSystemPath } from './path.js';

@@ -177,3 +177,7 @@ import type { IWatchService } from './watch-api.js';

symlink(target: string, path: string, type?: 'dir' | 'file' | 'junction'): Promise<void>;
/**
* Removes files and directories.
*/
rm(path: string, options?: RmOptions): Promise<void>;
}
//# sourceMappingURL=base-api-async.d.ts.map

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

import type { IFileSystemStats, BufferEncoding, WriteFileOptions, ReadFileOptions, IDirectoryEntry, StatSyncOptions } from './common-fs-types.js';
import type { IFileSystemStats, BufferEncoding, WriteFileOptions, ReadFileOptions, IDirectoryEntry, StatSyncOptions, RmOptions } from './common-fs-types.js';
import type { IFileSystemPath } from './path.js';

@@ -118,3 +118,7 @@ import type { IWatchService } from './watch-api.js';

symlinkSync(target: string, path: string, type?: 'dir' | 'file' | 'junction'): void;
/**
* Removes files and directories.
*/
rmSync(path: string, options?: RmOptions): void;
}
//# sourceMappingURL=base-api-sync.d.ts.map
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

@@ -120,2 +120,14 @@ export declare type BufferEncoding = 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'latin1' | 'binary' | 'hex';

}
export interface RmOptions {
/**
* When `true`, exceptions will be ignored if `path` does not exist.
* @default false
*/
force?: boolean | undefined;
/**
* If `true`, perform a recursive directory removal.
* @default false
*/
recursive?: boolean | undefined;
}
//# sourceMappingURL=common-fs-types.d.ts.map

4

dist/extended-api-async.d.ts

@@ -58,6 +58,2 @@ import type { IDirectoryContents, IWalkOptions, BufferEncoding } from './common-fs-types.js';

/**
* Recursively remove a path.
*/
remove(path: string): Promise<void>;
/**
* Read a file and parse it using `JSON.parse`.

@@ -64,0 +60,0 @@ *

@@ -55,6 +55,2 @@ import type { IWalkOptions, IDirectoryContents, BufferEncoding } from './common-fs-types.js';

/**
* Recursively remove a path.
*/
removeSync(path: string): void;
/**
* Read a file and parse it using `JSON.parse`.

@@ -61,0 +57,0 @@ *

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

{
"name": "@file-services/types",
"description": "Common file system interfaces",
"version": "5.7.1",
"version": "6.0.0",
"main": "dist/index.js",

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

@@ -9,2 +9,3 @@ import type {

IDirectoryEntry,
RmOptions,
} from './common-fs-types.js';

@@ -204,2 +205,7 @@ import type { IFileSystemPath } from './path.js';

symlink(target: string, path: string, type?: 'dir' | 'file' | 'junction'): Promise<void>;
/**
* Removes files and directories.
*/
rm(path: string, options?: RmOptions): Promise<void>;
}

@@ -8,2 +8,3 @@ import type {

StatSyncOptions,
RmOptions,
} from './common-fs-types.js';

@@ -125,2 +126,7 @@ import type { IFileSystemPath } from './path.js';

symlinkSync(target: string, path: string, type?: 'dir' | 'file' | 'junction'): void;
/**
* Removes files and directories.
*/
rmSync(path: string, options?: RmOptions): void;
}

@@ -158,1 +158,15 @@ export type BufferEncoding =

}
export interface RmOptions {
/**
* When `true`, exceptions will be ignored if `path` does not exist.
* @default false
*/
force?: boolean | undefined;
/**
* If `true`, perform a recursive directory removal.
* @default false
*/
recursive?: boolean | undefined;
}

@@ -67,7 +67,2 @@ import type { IDirectoryContents, IWalkOptions, BufferEncoding } from './common-fs-types.js';

/**
* Recursively remove a path.
*/
remove(path: string): Promise<void>;
/**
* Read a file and parse it using `JSON.parse`.

@@ -74,0 +69,0 @@ *

@@ -63,7 +63,2 @@ import type { IWalkOptions, IDirectoryContents, BufferEncoding } from './common-fs-types.js';

/**
* Recursively remove a path.
*/
removeSync(path: string): void;
/**
* Read a file and parse it using `JSON.parse`.

@@ -70,0 +65,0 @@ *

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

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