You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

cspell-io

Package Overview
Dependencies
Maintainers
1
Versions
314
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cspell-io - npm Package Compare versions

Comparing version
9.6.4
to
9.7.0
+47
-43
dist/index.d.ts

@@ -174,3 +174,4 @@ import { isFileURL, isUrlLike, toFileURL, toURL, urlBasename, urlParent as urlDirname } from "@cspell/url";

//#region src/models/disposable.d.ts
interface Disposable {
type DisposableEx = LegacyDisposable & Disposable;
interface LegacyDisposable {
dispose(): void;

@@ -295,3 +296,37 @@ }

//#endregion
//#region src/VFileSystem.d.ts
//#region src/common/BufferEncoding.d.ts
type TextEncodingExtra = "utf-16be" | "utf-16le" | "utf16be" | "utf16le";
type BufferEncodingExt = BufferEncoding | TextEncodingExtra;
//#endregion
//#region src/node/file/fileWriter.d.ts
declare function writeToFile(filename: string, data: string | Iterable<string> | AsyncIterable<string>, encoding?: BufferEncoding): Promise<void>;
declare function writeToFileIterable(filename: string, data: Iterable<string> | AsyncIterable<string>, encoding?: BufferEncodingExt): Promise<void>;
//#endregion
//#region src/file/file.d.ts
declare function readFileText(filename: string | URL, encoding?: BufferEncoding): Promise<string>;
declare function readFileTextSync(filename: string | URL, encoding?: BufferEncoding): string;
declare function getStat(filenameOrUri: string): Promise<Stats | Error>;
declare function getStatSync(filenameOrUri: string): Stats | Error;
//#endregion
//#region src/types.d.ts
type TArrayBufferView<T extends ArrayBuffer = ArrayBuffer> = ArrayBufferView<T>;
//#endregion
//#region src/node/dataUrl.d.ts
/**
* Generates a string of the following format:
*
* `data:[mediaType][;charset=<encoding>[;base64],<data>`
*
* - `encoding` - defaults to `utf8` for text data
* @param data
* @param mediaType - The mediaType is a [MIME](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) type string
* @param attributes - Additional attributes
*/
declare function encodeDataUrl(data: string | TArrayBufferView | Uint8Array<ArrayBuffer>, mediaType: string, attributes?: Iterable<readonly [string, string]> | undefined): string;
declare function toDataUrl(data: string | TArrayBufferView, mediaType: string, attributes?: Iterable<[string, string]> | undefined): URL;
//#endregion
//#region src/VirtualFS/constants.d.ts
declare const CSPELL_VFS_PROTOCOL: "cspell-vfs:";
//#endregion
//#region src/VirtualFS/VFileSystem.d.ts
type UrlOrReference = URL | FileReference;

@@ -351,3 +386,3 @@ declare enum FSCapabilityFlags {

*/
getCapabilities(url: URL): FSCapabilities;
getCapabilities(url: URL): Readonly<FSCapabilities>;
/**

@@ -357,3 +392,3 @@ * Information about the provider.

*/
providerInfo: FileSystemProviderInfo;
providerInfo: Readonly<FileSystemProviderInfo>;
/**

@@ -394,6 +429,6 @@ * Indicates that a provider was found for the url.

//#endregion
//#region src/VirtualFS.d.ts
//#region src/VirtualFS/VirtualFS.d.ts
type NextProvider = (url: URL) => VProviderFileSystem | undefined;
interface VirtualFS extends Disposable {
registerFileSystemProvider(provider: VFileSystemProvider, ...providers: VFileSystemProvider[]): Disposable;
interface VirtualFS extends DisposableEx {
registerFileSystemProvider(provider: VFileSystemProvider, ...providers: VFileSystemProvider[]): DisposableEx;
/**

@@ -425,3 +460,3 @@ * Get the fs for a given url.

type VProviderFileSystemReadFileOptions = OptionAbort;
interface VProviderFileSystem extends Disposable {
interface VProviderFileSystem extends DisposableEx {
readFile(url: UrlOrReference, options?: VProviderFileSystemReadFileOptions): Promise<FileResource>;

@@ -442,3 +477,3 @@ writeFile(file: FileResource): Promise<FileReference>;

/**
* Get the capabilities for a URL. Make it possible for a provider to support more capabilities for a given url.
* Get the capabilities for a URL. Makes it possible for a provider to support more capabilities for a given url.
* These capabilities should be more restrictive than the general capabilities.

@@ -450,3 +485,3 @@ * @param url - the url to try

}
interface VFileSystemProvider extends Partial<Disposable> {
interface VFileSystemProvider extends Partial<DisposableEx> {
/** Name of the Provider */

@@ -462,37 +497,6 @@ name: string;

//#endregion
//#region src/CVirtualFS.d.ts
//#region src/VirtualFS/CVirtualFS.d.ts
declare function createVirtualFS(cspellIO?: CSpellIO): VirtualFS;
declare function getDefaultVirtualFs(): VirtualFS;
//#endregion
//#region src/common/BufferEncoding.d.ts
type TextEncodingExtra = "utf-16be" | "utf-16le" | "utf16be" | "utf16le";
type BufferEncodingExt = BufferEncoding | TextEncodingExtra;
//#endregion
//#region src/node/file/fileWriter.d.ts
declare function writeToFile(filename: string, data: string | Iterable<string> | AsyncIterable<string>, encoding?: BufferEncoding): Promise<void>;
declare function writeToFileIterable(filename: string, data: Iterable<string> | AsyncIterable<string>, encoding?: BufferEncodingExt): Promise<void>;
//#endregion
//#region src/file/file.d.ts
declare function readFileText(filename: string | URL, encoding?: BufferEncoding): Promise<string>;
declare function readFileTextSync(filename: string | URL, encoding?: BufferEncoding): string;
declare function getStat(filenameOrUri: string): Promise<Stats | Error>;
declare function getStatSync(filenameOrUri: string): Stats | Error;
//#endregion
//#region src/types.d.ts
type TArrayBufferView<T extends ArrayBuffer = ArrayBuffer> = ArrayBufferView<T>;
//#endregion
//#region src/node/dataUrl.d.ts
/**
* Generates a string of the following format:
*
* `data:[mediaType][;charset=<encoding>[;base64],<data>`
*
* - `encoding` - defaults to `utf8` for text data
* @param data
* @param mediaType - The mediaType is a [MIME](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) type string
* @param attributes - Additional attributes
*/
declare function encodeDataUrl(data: string | TArrayBufferView | Uint8Array<ArrayBuffer>, mediaType: string, attributes?: Iterable<readonly [string, string]> | undefined): string;
declare function toDataUrl(data: string | TArrayBufferView, mediaType: string, attributes?: Iterable<[string, string]> | undefined): URL;
//#endregion
//#region src/VirtualFS/redirectProvider.d.ts

@@ -528,3 +532,3 @@ interface RedirectOptions {

//#endregion
export { type BufferEncoding, CFileReference, CFileResource, type CSpellIO, CSpellIONode, FSCapabilityFlags, type FileReference, type FileResource, type Stats, type TextEncoding, type TextFileResource, type VFileSystem, type VFileSystemCore, type VFileSystemProvider, FileType as VFileType, type VFindEntryType, type VFindUpPredicate, type VFindUpURLOptions, type VProviderFileSystem, type VfsDirEntry, type VfsStat, type VirtualFS, toArray as asyncIterableToArray, compareStats, createRedirectProvider, fromFileResource as createTextFileResource, createVirtualFS, encodeDataUrl, getDefaultCSpellIO, getDefaultVirtualFs, getStat, getStatSync, isFileURL, isUrlLike, readFileText, readFileTextSync, renameFileReference, renameFileResource, toDataUrl, toFileURL, toURL, urlBasename, urlDirname, urlOrReferenceToUrl, writeToFile, writeToFileIterable, writeToFileIterable as writeToFileIterableP };
export { type BufferEncoding, CFileReference, CFileResource, CSPELL_VFS_PROTOCOL, type CSpellIO, CSpellIONode, FSCapabilityFlags, type FileReference, type FileResource, type Stats, type TextEncoding, type TextFileResource, type VFileSystem, type VFileSystemCore, type VFileSystemProvider, FileType as VFileType, type VFindEntryType, type VFindUpPredicate, type VFindUpURLOptions, type VProviderFileSystem, type VfsDirEntry, type VfsStat, type VirtualFS, toArray as asyncIterableToArray, compareStats, createRedirectProvider, fromFileResource as createTextFileResource, createVirtualFS, encodeDataUrl, getDefaultCSpellIO, getDefaultVirtualFs, getStat, getStatSync, isFileURL, isUrlLike, readFileText, readFileTextSync, renameFileReference, renameFileResource, toDataUrl, toFileURL, toURL, urlBasename, urlDirname, urlOrReferenceToUrl, writeToFile, writeToFileIterable, writeToFileIterable as writeToFileIterableP };
//# sourceMappingURL=index.d.ts.map

@@ -863,6 +863,62 @@ import { isFileURL, isUrlLike, toFileURL, toURL, urlBasename, urlParent as urlDirname } from "@cspell/url";

//#endregion
//#region src/VirtualFS.ts
const debug = false;
//#region src/common/transformers.ts
function encoderTransformer(iterable, encoding) {
return isAsyncIterable(iterable) ? encoderAsyncIterable(iterable, encoding) : encoderIterable(iterable, encoding);
}
function* encoderIterable(iterable, encoding) {
let useBom = true;
for (const chunk of iterable) {
yield encodeString$1(chunk, encoding, useBom);
useBom = false;
}
}
async function* encoderAsyncIterable(iterable, encoding) {
let useBom = true;
for await (const chunk of iterable) {
yield encodeString$1(chunk, encoding, useBom);
useBom = false;
}
}
function isAsyncIterable(v) {
return v && typeof v === "object" && !!v[Symbol.asyncIterator];
}
//#endregion
//#region src/node/file/fileWriter.ts
const pipeline = promisify(Stream.pipeline);
function writeToFile(filename, data, encoding) {
return writeToFileIterable(filename, typeof data === "string" ? [data] : data, encoding);
}
function writeToFileIterable(filename, data, encoding) {
return pipeline(Stream.Readable.from(encoderTransformer(data, encoding)), /\.gz$/.test(filename) ? zlib.createGzip() : new Stream.PassThrough(), fs.createWriteStream(filename));
}
//#endregion
//#region src/file/file.ts
async function readFileText(filename, encoding) {
return (await getDefaultCSpellIO().readFile(filename, encoding)).getText();
}
function readFileTextSync(filename, encoding) {
return getDefaultCSpellIO().readFileSync(filename, encoding).getText();
}
async function getStat(filenameOrUri) {
try {
return await getDefaultCSpellIO().getStat(filenameOrUri);
} catch (e) {
return toError$1(e);
}
}
function getStatSync(filenameOrUri) {
try {
return getDefaultCSpellIO().getStatSync(filenameOrUri);
} catch (e) {
return toError$1(e);
}
}
//#endregion
//#region src/VirtualFS/constants.ts
const CSPELL_VFS_PROTOCOL = "cspell-vfs:";
//#endregion
//#region src/VirtualFS/findUpFromUrl.ts

@@ -934,3 +990,37 @@ async function findUpFromUrl(name, from, options) {

//#endregion
//#region src/VFileSystem.ts
//#region src/VirtualFS/errors.ts
var VFSError = class extends Error {
url;
code;
constructor(message, options) {
super(message, { cause: options?.cause });
this.name = "VFSError";
this.url = options?.url instanceof URL ? options.url.href : options?.url;
this.code = options?.code;
}
};
var VFSNotSupported = class extends VFSError {
constructor(methodName, url) {
super(`Method ${methodName} is not supported for ${url.href}`, { url });
}
};
var VFSNotFoundError = class extends VFSError {
constructor(url, options) {
super(`Not found: ${url.href}`, {
...options,
url,
code: options?.code ?? "ENOENT"
});
}
};
var VFSErrorUnsupportedRequest = class extends VFSError {
constructor(request, url, parameters) {
super(`Unsupported request: ${request}`, { url });
this.request = request;
this.parameters = parameters;
}
};
//#endregion
//#region src/VirtualFS/VFileSystem.ts
let FSCapabilityFlags = /* @__PURE__ */ function(FSCapabilityFlags) {

@@ -949,2 +1039,170 @@ FSCapabilityFlags[FSCapabilityFlags["None"] = 0] = "None";

//#endregion
//#region src/VirtualFS/MemVfsProvider.ts
var MemFileSystemProvider = class {
name;
protocol;
#vfs;
/**
* @param name - the name of the provider, used for debugging and logging.
* @param protocol - the protocol (end with a :), examples: `vfs:`, `cspell-vfs:`
*/
constructor(name, protocol) {
this.name = name;
this.protocol = protocol;
this.#vfs = new MemVFileSystem(name, protocol);
}
getFileSystem(url) {
if (url.protocol !== this.protocol) return;
return this.#vfs;
}
get memFS() {
return this.#vfs;
}
dispose() {
this.#vfs.dispose();
}
[Symbol.dispose]() {
this.dispose();
}
};
var MemVFileSystem = class {
name;
protocol;
capabilities = FSCapabilityFlags.ReadWrite | FSCapabilityFlags.Stat;
#files = /* @__PURE__ */ new Map();
constructor(name, protocol) {
this.name = name;
this.protocol = protocol;
this.providerInfo = { name };
this.#files = /* @__PURE__ */ new Map();
}
/**
* Read a file.
* @param url - URL to read
* @param options - options for reading the file.
* @returns A FileResource, the content will not be decoded. Use `.getText()` to get the decoded text.
*/
async readFile(url, _options) {
return this.#getEntryOrThrow(url).file;
}
/**
* Write a file
* @param file - the file to write
*/
async writeFile(file) {
const stats = {
size: file.content.length,
mtimeMs: performance.now(),
fileType: FileType.File
};
const u = urlOrReferenceToUrl(file);
this.#files.set(u.href, {
file,
stats
});
return { url: file.url };
}
/**
* Get the stats for a url.
* @param url - Url to fetch stats for.
*/
stat(url) {
return this.#getEntryOrThrow(url).stats;
}
#getEntryOrThrow(url) {
const u = urlOrReferenceToUrl(url);
const found = this.#files.get(u.href);
if (!found) throw new VFSNotFoundError(u);
return found;
}
/**
* Read the directory entries for a url.
* The url should end with `/` to indicate a directory.
* @param url - the url to read the directory entries for.
*/
async readDirectory(url) {
throw new VFSNotSupported("readDirectory", url);
}
/**
* Information about the provider.
* It is up to the provider to define what information is available.
*/
providerInfo;
dispose() {
this.#files.clear();
}
[Symbol.dispose]() {
this.dispose();
}
};
//#endregion
//#region src/VirtualFS/VirtualFS.ts
const debug = false;
//#endregion
//#region src/VirtualFS/capabilities.ts
var CFsCapabilities = class {
constructor(flags) {
this.flags = flags;
}
get readFile() {
return !!(this.flags & FSCapabilityFlags.Read);
}
get writeFile() {
return !!(this.flags & FSCapabilityFlags.Write);
}
get readDirectory() {
return !!(this.flags & FSCapabilityFlags.ReadDir);
}
get writeDirectory() {
return !!(this.flags & FSCapabilityFlags.WriteDir);
}
get stat() {
return !!(this.flags & FSCapabilityFlags.Stat);
}
};
function fsCapabilities(flags) {
return new CFsCapabilities(flags);
}
//#endregion
//#region src/VirtualFS/CFileType.ts
var CFileType = class {
constructor(fileType) {
this.fileType = fileType;
}
isFile() {
return this.fileType === FileType.File;
}
isDirectory() {
return this.fileType === FileType.Directory;
}
isUnknown() {
return !this.fileType;
}
isSymbolicLink() {
return !!(this.fileType & FileType.SymbolicLink);
}
};
//#endregion
//#region src/VirtualFS/CVfsStat.ts
var CVfsStat = class extends CFileType {
constructor(stat) {
super(stat.fileType || FileType.Unknown);
this.stat = stat;
}
get size() {
return this.stat.size;
}
get mtimeMs() {
return this.stat.mtimeMs;
}
get eTag() {
return this.stat.eTag;
}
};
//#endregion
//#region src/VirtualFS/WrappedProviderFs.ts

@@ -965,2 +1223,3 @@ function cspellIOToFsProvider(cspellIO) {

]);
const dispose = () => void 0;
const fs = {

@@ -972,7 +1231,8 @@ providerInfo: { name },

writeFile: (file) => cspellIO.writeFile(file.url, file.content),
dispose: () => void 0,
dispose,
capabilities,
getCapabilities(url) {
return fsCapabilities(capMap[url.protocol] || FSCapabilityFlags.None);
}
},
[Symbol.dispose]: dispose
};

@@ -990,39 +1250,2 @@ return {

}
var VFSError = class extends Error {
constructor(message, options) {
super(message, options);
}
};
var VFSErrorUnsupportedRequest = class extends VFSError {
url;
constructor(request, url, parameters) {
super(`Unsupported request: ${request}`);
this.request = request;
this.parameters = parameters;
this.url = url?.toString();
}
};
var CFsCapabilities = class {
constructor(flags) {
this.flags = flags;
}
get readFile() {
return !!(this.flags & FSCapabilityFlags.Read);
}
get writeFile() {
return !!(this.flags & FSCapabilityFlags.Write);
}
get readDirectory() {
return !!(this.flags & FSCapabilityFlags.ReadDir);
}
get writeDirectory() {
return !!(this.flags & FSCapabilityFlags.WriteDir);
}
get stat() {
return !!(this.flags & FSCapabilityFlags.Stat);
}
};
function fsCapabilities(flags) {
return new CFsCapabilities(flags);
}
var WrappedProviderFs = class WrappedProviderFs {

@@ -1118,34 +1341,2 @@ hasProvider;

}
var CFileType = class {
constructor(fileType) {
this.fileType = fileType;
}
isFile() {
return this.fileType === FileType.File;
}
isDirectory() {
return this.fileType === FileType.Directory;
}
isUnknown() {
return !this.fileType;
}
isSymbolicLink() {
return !!(this.fileType & FileType.SymbolicLink);
}
};
var CVfsStat = class extends CFileType {
constructor(stat) {
super(stat.fileType || FileType.Unknown);
this.stat = stat;
}
get size() {
return this.stat.size;
}
get mtimeMs() {
return this.stat.mtimeMs;
}
get eTag() {
return this.stat.eTag;
}
};
var CVfsDirEntry = class extends CFileType {

@@ -1176,3 +1367,10 @@ _url;

};
function chopUrl(url) {
/**
* Chop URL at node_modules to make it more readable in logs. If the URL contains `node_modules`, the
* chopped URL will include the part before `node_modules`, followed by `…`, and then the last 3 parts
* of the URL. If the URL does not contain `node_modules`, the original URL href will be returned.
* @param url - the URL to chop.
* @returns string - the chopped URL, if the URL contains node_modules, otherwise the original URL href.
*/
function chopUrlAtNodeModules(url) {
if (!url) return "";

@@ -1183,4 +1381,5 @@ const href = url.href;

if (n > 0) {
const tail = parts.slice(Math.max(parts.length - 3, n + 1));
return parts.slice(0, n + 1).join("/") + "/…/" + tail.join("/");
const tail = parts.slice(n + 1);
if (tail.length <= 3) return href;
return parts.slice(0, n + 1).join("/") + "/…/" + tail.slice(-3).join("/");
}

@@ -1197,3 +1396,3 @@ return href;

//#endregion
//#region src/CVirtualFS.ts
//#region src/VirtualFS/CVirtualFS.ts
var CVirtualFS = class {

@@ -1219,3 +1418,3 @@ providers = /* @__PURE__ */ new Set();

const method = rPad(`${event.method}-${event.event}`, 16);
this.log(`${method} ID:${id} ts:${event.ts.toFixed(13)} ${chopUrl(event.url)}${msg}`);
this.log(`${method} ID:${id} ts:${event.ts.toFixed(13)} ${chopUrlAtNodeModules(event.url)}${msg}`);
}

@@ -1226,3 +1425,3 @@ };

this.reset();
return { dispose: () => {
const dispose = () => {
for (const provider of providers) {

@@ -1233,3 +1432,7 @@ for (const key of this.revCacheFs.get(provider) || []) this.cachedFs.delete(key);

this.reset();
} };
};
return {
dispose,
[Symbol.dispose]: dispose
};
}

@@ -1285,2 +1488,5 @@ getFS(url) {

}
[Symbol.dispose]() {
this.dispose();
}
};

@@ -1311,2 +1517,3 @@ function fsPassThroughCore(fs) {

vfs.registerFileSystemProvider(cspellIOToFsProvider(cspell));
vfs.registerFileSystemProvider(new MemFileSystemProvider(CSPELL_VFS_PROTOCOL + "default", CSPELL_VFS_PROTOCOL));
return vfs;

@@ -1321,58 +1528,2 @@ }

//#endregion
//#region src/common/transformers.ts
function encoderTransformer(iterable, encoding) {
return isAsyncIterable(iterable) ? encoderAsyncIterable(iterable, encoding) : encoderIterable(iterable, encoding);
}
function* encoderIterable(iterable, encoding) {
let useBom = true;
for (const chunk of iterable) {
yield encodeString$1(chunk, encoding, useBom);
useBom = false;
}
}
async function* encoderAsyncIterable(iterable, encoding) {
let useBom = true;
for await (const chunk of iterable) {
yield encodeString$1(chunk, encoding, useBom);
useBom = false;
}
}
function isAsyncIterable(v) {
return v && typeof v === "object" && !!v[Symbol.asyncIterator];
}
//#endregion
//#region src/node/file/fileWriter.ts
const pipeline = promisify(Stream.pipeline);
function writeToFile(filename, data, encoding) {
return writeToFileIterable(filename, typeof data === "string" ? [data] : data, encoding);
}
function writeToFileIterable(filename, data, encoding) {
return pipeline(Stream.Readable.from(encoderTransformer(data, encoding)), /\.gz$/.test(filename) ? zlib.createGzip() : new Stream.PassThrough(), fs.createWriteStream(filename));
}
//#endregion
//#region src/file/file.ts
async function readFileText(filename, encoding) {
return (await getDefaultCSpellIO().readFile(filename, encoding)).getText();
}
function readFileTextSync(filename, encoding) {
return getDefaultCSpellIO().readFileSync(filename, encoding).getText();
}
async function getStat(filenameOrUri) {
try {
return await getDefaultCSpellIO().getStat(filenameOrUri);
} catch (e) {
return toError$1(e);
}
}
function getStatSync(filenameOrUri) {
try {
return getDefaultCSpellIO().getStatSync(filenameOrUri);
} catch (e) {
return toError$1(e);
}
}
//#endregion
//#region src/VirtualFS/redirectProvider.ts

@@ -1460,2 +1611,3 @@ var RedirectProvider = class {

};
const dispose = () => fs.dispose();
return fsPassThrough({

@@ -1483,3 +1635,4 @@ stat: async (url) => {

capabilities: capabilities ?? fs.capabilities & capabilitiesMask,
dispose: () => fs.dispose()
dispose,
[Symbol.dispose]: dispose
}, shadowFs, publicRoot);

@@ -1515,2 +1668,5 @@ }

shadowFs?.dispose();
},
[Symbol.dispose]() {
this.dispose();
}

@@ -1521,3 +1677,3 @@ };

//#endregion
export { CFileReference, CFileResource, CSpellIONode, FSCapabilityFlags, FileType as VFileType, toArray as asyncIterableToArray, compareStats, createRedirectProvider, fromFileResource as createTextFileResource, createVirtualFS, encodeDataUrl, getDefaultCSpellIO, getDefaultVirtualFs, getStat, getStatSync, isFileURL, isUrlLike, readFileText, readFileTextSync, renameFileReference, renameFileResource, toDataUrl, toFileURL, toURL, urlBasename, urlDirname, urlOrReferenceToUrl, writeToFile, writeToFileIterable, writeToFileIterable as writeToFileIterableP };
export { CFileReference, CFileResource, CSPELL_VFS_PROTOCOL, CSpellIONode, FSCapabilityFlags, FileType as VFileType, toArray as asyncIterableToArray, compareStats, createRedirectProvider, fromFileResource as createTextFileResource, createVirtualFS, encodeDataUrl, getDefaultCSpellIO, getDefaultVirtualFs, getStat, getStatSync, isFileURL, isUrlLike, readFileText, readFileTextSync, renameFileReference, renameFileResource, toDataUrl, toFileURL, toURL, urlBasename, urlDirname, urlOrReferenceToUrl, writeToFile, writeToFileIterable, writeToFileIterable as writeToFileIterableP };
//# sourceMappingURL=index.js.map

@@ -7,3 +7,3 @@ {

},
"version": "9.6.4",
"version": "9.7.0",
"description": "A library of useful I/O functions used across various cspell tools.",

@@ -60,6 +60,6 @@ "type": "module",

"dependencies": {
"@cspell/cspell-service-bus": "9.6.4",
"@cspell/url": "9.6.4"
"@cspell/cspell-service-bus": "9.7.0",
"@cspell/url": "9.7.0"
},
"gitHead": "e126c7f5708d4258ada35ba1d29d18952d7f0886"
"gitHead": "48f64e0bd95b39011af6dc80cd8ae4d519511f73"
}