@d0paminedriven/fs 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-K45COKAJ.js → chunk-MZZJMVSV.js} +1 -1
- package/dist/fs/index.d.cts +2 -1
- package/dist/fs/index.d.ts +2 -1
- package/dist/fs/index.js +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/types/index.d.cts +2 -1
- package/dist/types/index.d.ts +2 -1
- package/package.json +8 -8
package/dist/fs/index.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import expand from 'dotenv-expand';
|
|
2
2
|
import { RemoveFields, Unenumerate, ReadDirOptions, ExecuteCommandProps, MkDirSyncOptions, WriteStreamDataShape, WriteStreamOptions, WriteFileAsyncDataUnion, WriteFileAsyncOptions, ParsedUrlInfo } from '../types/index.cjs';
|
|
3
3
|
import 'stream';
|
|
4
|
+
import 'buffer';
|
|
4
5
|
|
|
5
6
|
declare class Fs {
|
|
6
7
|
cwd: string;
|
|
@@ -44,7 +45,7 @@ declare class Fs {
|
|
|
44
45
|
generateDirIfDNE<const T extends string>(path: T, options?: MkDirSyncOptions): string | undefined;
|
|
45
46
|
withWs<const T extends string>(path: T, data: WriteStreamDataShape, options?: WriteStreamOptions): string | boolean | undefined;
|
|
46
47
|
writeFileAsync: <const T extends string>(path: T, data: WriteFileAsyncDataUnion, options?: WriteFileAsyncOptions) => Promise<string | void>;
|
|
47
|
-
fileToBuffer: <const T extends string>(path: T) => Buffer<
|
|
48
|
+
fileToBuffer: <const T extends string>(path: T) => Buffer<ArrayBuffer>;
|
|
48
49
|
dirContainsDir<const From extends string, const To extends string>(readDir: From, targetDir: To, options?: ReadDirOptions): boolean;
|
|
49
50
|
parseJsonBuffer(p: Buffer): unknown;
|
|
50
51
|
isServerSide(): boolean;
|
package/dist/fs/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import expand from 'dotenv-expand';
|
|
2
2
|
import { RemoveFields, Unenumerate, ReadDirOptions, ExecuteCommandProps, MkDirSyncOptions, WriteStreamDataShape, WriteStreamOptions, WriteFileAsyncDataUnion, WriteFileAsyncOptions, ParsedUrlInfo } from '../types/index.js';
|
|
3
3
|
import 'stream';
|
|
4
|
+
import 'buffer';
|
|
4
5
|
|
|
5
6
|
declare class Fs {
|
|
6
7
|
cwd: string;
|
|
@@ -44,7 +45,7 @@ declare class Fs {
|
|
|
44
45
|
generateDirIfDNE<const T extends string>(path: T, options?: MkDirSyncOptions): string | undefined;
|
|
45
46
|
withWs<const T extends string>(path: T, data: WriteStreamDataShape, options?: WriteStreamOptions): string | boolean | undefined;
|
|
46
47
|
writeFileAsync: <const T extends string>(path: T, data: WriteFileAsyncDataUnion, options?: WriteFileAsyncOptions) => Promise<string | void>;
|
|
47
|
-
fileToBuffer: <const T extends string>(path: T) => Buffer<
|
|
48
|
+
fileToBuffer: <const T extends string>(path: T) => Buffer<ArrayBuffer>;
|
|
48
49
|
dirContainsDir<const From extends string, const To extends string>(readDir: From, targetDir: To, options?: ReadDirOptions): boolean;
|
|
49
50
|
parseJsonBuffer(p: Buffer): unknown;
|
|
50
51
|
isServerSide(): boolean;
|
package/dist/fs/index.js
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -2,3 +2,4 @@ export { default as Fs } from './fs/index.cjs';
|
|
|
2
2
|
export { Abortable, ArrayBufferView, ArrayOrReadOnlyArray, BashEnv, BufferEncodingUnion, CoercionUnion, CommonExecOptions, CommonOptions, ConditionalPromise, ConditionalToRequired, Depth, Dict, Equal, ExcludeFieldEnumerable, ExecSyncOptions, ExecSyncOptionsWithBufferEncoding, ExecSyncOptionsWithStringEncoding, ExecuteCommandProps, Expect, Extends, FieldToConditionallyNever, IOType, InferDepth, InjectScriptsProps, MkDirOptions, MkDirSyncOptions, MkDirSyncProps, Mode, ObjEncodingOptions, OmitSrc, OpenMode, ParsedUrlInfo, ProcessEnv, ProcessEnvOptions, ReadDirOptions, ReadDirProps, RemoveFields, RequiredToConditional, Signals, StdioOptions, TypedArray, Unenumerate, UnwrapPromise, Without, WriteFileAsyncDataUnion, WriteFileAsyncOptions, WriteFileAsyncProps, WriteStreamDataShape, WriteStreamOptions, WriteStreamProps, XOR } from './types/index.cjs';
|
|
3
3
|
import 'dotenv-expand';
|
|
4
4
|
import 'stream';
|
|
5
|
+
import 'buffer';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export { default as Fs } from './fs/index.js';
|
|
|
2
2
|
export { Abortable, ArrayBufferView, ArrayOrReadOnlyArray, BashEnv, BufferEncodingUnion, CoercionUnion, CommonExecOptions, CommonOptions, ConditionalPromise, ConditionalToRequired, Depth, Dict, Equal, ExcludeFieldEnumerable, ExecSyncOptions, ExecSyncOptionsWithBufferEncoding, ExecSyncOptionsWithStringEncoding, ExecuteCommandProps, Expect, Extends, FieldToConditionallyNever, IOType, InferDepth, InjectScriptsProps, MkDirOptions, MkDirSyncOptions, MkDirSyncProps, Mode, ObjEncodingOptions, OmitSrc, OpenMode, ParsedUrlInfo, ProcessEnv, ProcessEnvOptions, ReadDirOptions, ReadDirProps, RemoveFields, RequiredToConditional, Signals, StdioOptions, TypedArray, Unenumerate, UnwrapPromise, Without, WriteFileAsyncDataUnion, WriteFileAsyncOptions, WriteFileAsyncProps, WriteStreamDataShape, WriteStreamOptions, WriteStreamProps, XOR } from './types/index.js';
|
|
3
3
|
import 'dotenv-expand';
|
|
4
4
|
import 'stream';
|
|
5
|
+
import 'buffer';
|
package/dist/index.js
CHANGED
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as stream from 'stream';
|
|
2
|
+
import { WithImplicitCoercion } from 'buffer';
|
|
2
3
|
|
|
3
4
|
type BufferEncodingUnion = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | "utf-16le";
|
|
4
5
|
interface Dict<T> {
|
|
@@ -83,7 +84,7 @@ interface MkDirOptions {
|
|
|
83
84
|
}
|
|
84
85
|
type BashEnv = "development" | "production" | "test" | undefined;
|
|
85
86
|
type CoercionUnion = string | Uint8Array | readonly number[];
|
|
86
|
-
type WriteStreamDataShape = WithImplicitCoercion<CoercionUnion
|
|
87
|
+
type WriteStreamDataShape = WithImplicitCoercion<CoercionUnion> | CoercionUnion;
|
|
87
88
|
type WriteStreamProps<T extends string = string> = {
|
|
88
89
|
data: WithImplicitCoercion<CoercionUnion>;
|
|
89
90
|
cwd: string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as stream from 'stream';
|
|
2
|
+
import { WithImplicitCoercion } from 'buffer';
|
|
2
3
|
|
|
3
4
|
type BufferEncodingUnion = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | "utf-16le";
|
|
4
5
|
interface Dict<T> {
|
|
@@ -83,7 +84,7 @@ interface MkDirOptions {
|
|
|
83
84
|
}
|
|
84
85
|
type BashEnv = "development" | "production" | "test" | undefined;
|
|
85
86
|
type CoercionUnion = string | Uint8Array | readonly number[];
|
|
86
|
-
type WriteStreamDataShape = WithImplicitCoercion<CoercionUnion
|
|
87
|
+
type WriteStreamDataShape = WithImplicitCoercion<CoercionUnion> | CoercionUnion;
|
|
87
88
|
type WriteStreamProps<T extends string = string> = {
|
|
88
89
|
data: WithImplicitCoercion<CoercionUnion>;
|
|
89
90
|
cwd: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d0paminedriven/fs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "convenient fs helpers",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"dotenv": "^16.4.7"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@microsoft/api-extractor": "^7.
|
|
42
|
-
"@swc/core": "^1.
|
|
43
|
-
"@swc/wasm": "^1.
|
|
44
|
-
"@types/node": "^22.10
|
|
41
|
+
"@microsoft/api-extractor": "^7.52.1",
|
|
42
|
+
"@swc/core": "^1.11.8",
|
|
43
|
+
"@swc/wasm": "^1.11.8",
|
|
44
|
+
"@types/node": "^22.13.10",
|
|
45
45
|
"chokidar": "^4.0.3",
|
|
46
46
|
"dotenv": "^16.4.7",
|
|
47
47
|
"dotenv-cli": "^8.0.0",
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
"eslint": "latest",
|
|
50
50
|
"jiti": "^2.4.2",
|
|
51
51
|
"prettier": "latest",
|
|
52
|
-
"terser": "^5.
|
|
52
|
+
"terser": "^5.39.0",
|
|
53
53
|
"tslib": "latest",
|
|
54
54
|
"tsup": "latest",
|
|
55
55
|
"tsx": "latest",
|
|
56
56
|
"typescript": "latest",
|
|
57
57
|
"typescript-eslint": "latest",
|
|
58
|
-
"@portfolio/eslint-config": "1.0.0",
|
|
59
58
|
"@portfolio/prettier-config": "0.1.0",
|
|
60
|
-
"@portfolio/tsconfig": "0.1.0"
|
|
59
|
+
"@portfolio/tsconfig": "0.1.0",
|
|
60
|
+
"@portfolio/eslint-config": "1.0.0"
|
|
61
61
|
},
|
|
62
62
|
"prettier": "@portfolio/prettier-config",
|
|
63
63
|
"scripts": {
|