@zenfs/core
Advanced tools
Comparing version
/// <reference types="node" resolution-mode="require"/> | ||
/// <reference types="node" resolution-mode="require"/> | ||
/** | ||
@@ -9,3 +8,2 @@ * Grab bag of utility functions used across the code. | ||
import type { BaseBackendConstructor } from './backends/backend.js'; | ||
import type { TextEncoder as TextEncoderType, TextDecoder as TextDecoderType } from 'node:util'; | ||
/** | ||
@@ -31,3 +29,3 @@ * Synchronous recursive makedir. | ||
*/ | ||
export declare const setImmediate: typeof globalThis.setImmediate | ((cb: any) => NodeJS.Timeout); | ||
export declare const setImmediate: (callback: () => unknown) => void; | ||
/** | ||
@@ -37,6 +35,2 @@ * @internal | ||
export declare const ROOT_NODE_ID: string; | ||
declare global { | ||
const TextEncoder: typeof TextEncoderType; | ||
const TextDecoder: typeof TextDecoderType; | ||
} | ||
export declare const encode: (input?: string) => Uint8Array; | ||
@@ -43,0 +37,0 @@ export declare const decode: (input?: ArrayBuffer | NodeJS.ArrayBufferView, options?: { |
@@ -215,4 +215,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
export const ROOT_NODE_ID = '/'; | ||
export const encode = new TextEncoder().encode; | ||
export const decode = new TextDecoder().decode; | ||
export const encode = new globalThis.TextEncoder().encode; | ||
export const decode = new globalThis.TextDecoder().decode; | ||
/** | ||
@@ -219,0 +219,0 @@ * Generates a random ID. |
{ | ||
"name": "@zenfs/core", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "A filesystem in your browser", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
859313
-0.02%10744
-0.06%