@d0paminedriven/fs 6.0.0 → 6.1.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-4X5DVWVM.js +14 -0
- package/dist/{chunk-KZWE4E4I.js → chunk-XIAKCF2X.js} +154 -23
- package/dist/fs/index.cjs +160 -22
- package/dist/fs/index.d.cts +80 -3
- package/dist/fs/index.d.ts +80 -3
- package/dist/fs/index.js +2 -1
- package/dist/index.cjs +164 -24
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -2
- package/dist/mime/index.d.cts +2 -2
- package/dist/mime/index.d.ts +2 -2
- package/dist/types/index.cjs +19 -0
- package/dist/types/index.d.cts +19 -3
- package/dist/types/index.d.ts +19 -3
- package/dist/types/index.js +7 -0
- package/package.json +10 -13
package/dist/types/index.d.ts
CHANGED
|
@@ -101,10 +101,13 @@ type WriteStreamOptions = BufferEncodingUnion | {
|
|
|
101
101
|
type WriteFileAsyncDataUnion = WithImplicitCoercion<string> | {
|
|
102
102
|
[Symbol.toPrimitive](hint: "string"): string;
|
|
103
103
|
};
|
|
104
|
-
|
|
104
|
+
interface ReadDirOptionsEntity extends ObjEncodingOptions {
|
|
105
105
|
withFileTypes?: false | undefined;
|
|
106
106
|
recursive?: boolean | undefined;
|
|
107
|
-
}
|
|
107
|
+
}
|
|
108
|
+
type ReadDirOptions = {
|
|
109
|
+
[P in keyof ReadDirOptionsEntity]: ReadDirOptionsEntity[P];
|
|
110
|
+
};
|
|
108
111
|
type WriteFileAsyncOptions = (ObjEncodingOptions & {
|
|
109
112
|
mode?: Mode | undefined;
|
|
110
113
|
flag?: OpenMode | undefined;
|
|
@@ -243,5 +246,18 @@ type ParsedUrlInfo = {
|
|
|
243
246
|
search: string;
|
|
244
247
|
hash: string;
|
|
245
248
|
};
|
|
249
|
+
declare const unitsObj: {
|
|
250
|
+
readonly PB: 5;
|
|
251
|
+
readonly TB: 4;
|
|
252
|
+
readonly GB: 3;
|
|
253
|
+
readonly MB: 2;
|
|
254
|
+
readonly KB: 1;
|
|
255
|
+
readonly B: 0;
|
|
256
|
+
};
|
|
257
|
+
type Unit = keyof typeof unitsObj;
|
|
258
|
+
type SizeOpts = {
|
|
259
|
+
decimals?: number;
|
|
260
|
+
includeUnits?: boolean;
|
|
261
|
+
};
|
|
246
262
|
|
|
247
|
-
export type
|
|
263
|
+
export { type Abortable, type ArrayBufferView, type ArrayOrReadOnlyArray, type BashEnv, type BufferEncodingUnion, type CoercionUnion, type CommonExecOptions, type CommonOptions, type ConditionalPromise, type ConditionalToRequired, type Depth, type Dict, type Equal, type ExcludeFieldEnumerable, type ExecSyncOptions, type ExecSyncOptionsWithBufferEncoding, type ExecSyncOptionsWithStringEncoding, type ExecuteCommandProps, type Expect, type Extends, type FieldToConditionallyNever, type IOType, type InferDepth, type InjectScriptsProps, type MkDirOptions, type MkDirSyncOptions, type MkDirSyncProps, type Mode, type ObjEncodingOptions, type OmitSrc, type OpenMode, type ParsedUrlInfo, type ProcessEnv, type ProcessEnvOptions, type ReadDirOptions, type ReadDirOptionsEntity, type ReadDirProps, type RemoveFields, type RequiredToConditional, type RmDirOptions, type RmDirProps, type Signals, type SizeOpts, type StdioOptions, type TypedArray, type Unenumerate, type Unit, type UnwrapPromise, type Without, type WriteFileAsyncDataUnion, type WriteFileAsyncOptions, type WriteFileAsyncProps, type WriteStreamDataShape, type WriteStreamOptions, type WriteStreamProps, type XOR, unitsObj };
|
package/dist/types/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d0paminedriven/fs",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "convenient fs helpers",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -52,24 +52,21 @@
|
|
|
52
52
|
"sharp": "^0.34.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@
|
|
56
|
-
"@swc/core": "^1.11.31",
|
|
57
|
-
"@swc/wasm": "^1.11.31",
|
|
58
|
-
"@types/node": "^22.15.30",
|
|
55
|
+
"@types/node": "^24.0.0",
|
|
59
56
|
"chokidar": "^4.0.3",
|
|
60
57
|
"dotenv-cli": "^8.0.0",
|
|
61
58
|
"eslint": "^9.28.0",
|
|
62
59
|
"jiti": "^2.4.2",
|
|
63
60
|
"prettier": "^3.5.3",
|
|
64
|
-
"terser": "^5.
|
|
65
|
-
"tslib": "
|
|
66
|
-
"tsup": "
|
|
67
|
-
"tsx": "
|
|
68
|
-
"typescript": "
|
|
69
|
-
"typescript-eslint": "
|
|
70
|
-
"@d0paminedriven/eslint-config": "0.1.0",
|
|
61
|
+
"terser": "^5.42.0",
|
|
62
|
+
"tslib": "^2.8.1",
|
|
63
|
+
"tsup": "^8.5.0",
|
|
64
|
+
"tsx": "^4.19.4",
|
|
65
|
+
"typescript": "^5.8.3",
|
|
66
|
+
"typescript-eslint": "^8.34.0",
|
|
71
67
|
"@d0paminedriven/tsconfig": "0.1.0",
|
|
72
|
-
"@d0paminedriven/prettier-config": "0.1.0"
|
|
68
|
+
"@d0paminedriven/prettier-config": "0.1.0",
|
|
69
|
+
"@d0paminedriven/eslint-config": "0.1.0"
|
|
73
70
|
},
|
|
74
71
|
"prettier": "@d0paminedriven/prettier-config",
|
|
75
72
|
"scripts": {
|