@visulima/fs 5.1.0 → 6.0.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/CHANGELOG.md +8 -0
- package/LICENSE.md +33 -22
- package/README.md +6 -6
- package/dist/glob.d.ts +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/ini.d.ts +2 -2
- package/dist/json5.d.ts +2 -2
- package/dist/jsonc.d.ts +2 -2
- package/dist/packem_shared/{glob-sync.d-0UK6O_wZ.d.ts → glob-sync.d-SlQXhcIG.d.ts} +1 -1
- package/dist/packem_shared/readYaml-BT3HBFQv.js +1 -0
- package/dist/packem_shared/readYamlSync-Cx-zy2cS.js +1 -0
- package/dist/packem_shared/types.d-CgCO6qUp.d.ts +958 -0
- package/dist/packem_shared/writeYaml-CpWDXOUF.js +1 -0
- package/dist/packem_shared/writeYamlSync-9MG5_lNI.js +1 -0
- package/dist/toml.d.ts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/yaml.d.ts +2 -2
- package/dist/yaml.js +1 -1
- package/package.json +28 -28
- package/dist/packem_shared/readYaml-DcpUq11D.js +0 -1
- package/dist/packem_shared/readYamlSync-D5RVZwco.js +0 -1
- package/dist/packem_shared/types.d-C-RhhzcS.d.ts +0 -1753
- package/dist/packem_shared/writeYaml-BbiKaW3J.js +0 -1
- package/dist/packem_shared/writeYamlSync-dI80QfIA.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{stringify as n}from"@visulima/yaml";import t from"./writeFile-Dnba9aVe.js";async function l(p,c,e,f){let r,a,o;typeof e=="object"&&e!==null&&!Array.isArray(e)&&typeof e!="function"?(r=e,a=r.replacer,o=r.space):typeof f=="object"?(r=f,a=e,o=r.space):(a=e,o=f);const i=n(c,a,o??r);await t(p,i,r)}export{l as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{stringify as n}from"@visulima/yaml";import t from"./writeFileSync-pW8o2DG1.js";function y(a,c,e,f){let r,o,p;typeof e=="object"&&e!==null&&!Array.isArray(e)&&typeof e!="function"?(r=e,o=r.replacer,p=r.space):typeof f=="object"?(r=f,o=e,p=r.space):(o=e,p=f);const i=n(c,o,p??r);t(a,i,r)}export{y as default};
|
package/dist/toml.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CompressionType, i as ReadTomlOptions, j as WriteTomlOptions } from "./packem_shared/types.d-
|
|
1
|
+
import { C as CompressionType, i as ReadTomlOptions, j as WriteTomlOptions } from "./packem_shared/types.d-CgCO6qUp.js";
|
|
2
2
|
import 'node:fs';
|
|
3
3
|
import 'fdir';
|
|
4
4
|
/**
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { J as JSONError } from "./packem_shared/json-error.d-COL8oxF_.js";
|
|
2
2
|
import { JsonValue } from 'type-fest';
|
|
3
|
-
import { k as CodeFrameOptions, l as JsonReviver } from "./packem_shared/types.d-
|
|
3
|
+
import { k as CodeFrameOptions, l as JsonReviver } from "./packem_shared/types.d-CgCO6qUp.js";
|
|
4
4
|
export { toPath } from '@visulima/path/utils';
|
|
5
5
|
import 'node:fs';
|
|
6
6
|
import 'fdir';
|
package/dist/yaml.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CompressionType, m as ReadYamlOptions, Y as YamlReviver, n as WriteYamlOptions, o as JsonReplacer } from "./packem_shared/types.d-
|
|
2
|
-
export type { p as YamlReplacer } from "./packem_shared/types.d-
|
|
1
|
+
import { C as CompressionType, m as ReadYamlOptions, Y as YamlReviver, n as WriteYamlOptions, o as JsonReplacer } from "./packem_shared/types.d-CgCO6qUp.js";
|
|
2
|
+
export type { p as YamlReplacer } from "./packem_shared/types.d-CgCO6qUp.js";
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'fdir';
|
|
5
5
|
declare function readYaml<R = Record<string, unknown>>(path: URL | string, options?: ReadYamlOptions<CompressionType>): Promise<R>;
|
package/dist/yaml.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as r}from"./packem_shared/readYaml-
|
|
1
|
+
import{default as r}from"./packem_shared/readYaml-BT3HBFQv.js";import{default as f}from"./packem_shared/readYamlSync-Cx-zy2cS.js";import{default as m}from"./packem_shared/writeYaml-CpWDXOUF.js";import{default as d}from"./packem_shared/writeYamlSync-9MG5_lNI.js";export{r as readYaml,f as readYamlSync,m as writeYaml,d as writeYamlSync};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/fs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Human friendly file system utilities for Node.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -61,11 +61,6 @@
|
|
|
61
61
|
],
|
|
62
62
|
"homepage": "https://visulima.com/packages/fs/",
|
|
63
63
|
"bugs": "https://github.com/visulima/visulima/issues",
|
|
64
|
-
"license": "MIT",
|
|
65
|
-
"author": {
|
|
66
|
-
"name": "Daniel Bannert",
|
|
67
|
-
"email": "d.bannert@anolilab.de"
|
|
68
|
-
},
|
|
69
64
|
"repository": {
|
|
70
65
|
"type": "git",
|
|
71
66
|
"url": "git+https://github.com/visulima/visulima.git",
|
|
@@ -81,19 +76,13 @@
|
|
|
81
76
|
"url": "https://anolilab.com/support"
|
|
82
77
|
}
|
|
83
78
|
],
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
|
|
89
|
-
],
|
|
90
|
-
"os": [
|
|
91
|
-
"darwin",
|
|
92
|
-
"linux",
|
|
93
|
-
"win32"
|
|
94
|
-
],
|
|
95
|
-
"type": "module",
|
|
79
|
+
"license": "MIT",
|
|
80
|
+
"author": {
|
|
81
|
+
"name": "Daniel Bannert",
|
|
82
|
+
"email": "d.bannert@anolilab.de"
|
|
83
|
+
},
|
|
96
84
|
"sideEffects": false,
|
|
85
|
+
"type": "module",
|
|
97
86
|
"exports": {
|
|
98
87
|
".": {
|
|
99
88
|
"types": "./dist/index.d.ts",
|
|
@@ -153,21 +142,26 @@
|
|
|
153
142
|
},
|
|
154
143
|
"./package.json": "./package.json"
|
|
155
144
|
},
|
|
156
|
-
"
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
|
|
145
|
+
"files": [
|
|
146
|
+
"dist/**",
|
|
147
|
+
"README.md",
|
|
148
|
+
"CHANGELOG.md",
|
|
149
|
+
"LICENSE.md"
|
|
150
|
+
],
|
|
160
151
|
"dependencies": {
|
|
161
|
-
"@visulima/path": "
|
|
152
|
+
"@visulima/path": "4.0.0"
|
|
162
153
|
},
|
|
163
154
|
"peerDependencies": {
|
|
155
|
+
"@visulima/yaml": "1.0.0",
|
|
164
156
|
"ini": "^7.0.0",
|
|
165
157
|
"json5": "^2.2.3",
|
|
166
158
|
"jsonc-parser": "^3.3.1",
|
|
167
|
-
"smol-toml": "^1.7.0"
|
|
168
|
-
"yaml": ">=2.9.0"
|
|
159
|
+
"smol-toml": "^1.7.0"
|
|
169
160
|
},
|
|
170
161
|
"peerDependenciesMeta": {
|
|
162
|
+
"@visulima/yaml": {
|
|
163
|
+
"optional": true
|
|
164
|
+
},
|
|
171
165
|
"ini": {
|
|
172
166
|
"optional": true
|
|
173
167
|
},
|
|
@@ -179,12 +173,18 @@
|
|
|
179
173
|
},
|
|
180
174
|
"smol-toml": {
|
|
181
175
|
"optional": true
|
|
182
|
-
},
|
|
183
|
-
"yaml": {
|
|
184
|
-
"optional": true
|
|
185
176
|
}
|
|
186
177
|
},
|
|
187
178
|
"engines": {
|
|
188
179
|
"node": "^22.14.0 || >=24.10.0"
|
|
180
|
+
},
|
|
181
|
+
"os": [
|
|
182
|
+
"darwin",
|
|
183
|
+
"linux",
|
|
184
|
+
"win32"
|
|
185
|
+
],
|
|
186
|
+
"publishConfig": {
|
|
187
|
+
"access": "public",
|
|
188
|
+
"provenance": true
|
|
189
189
|
}
|
|
190
190
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{parse as n}from"yaml";import s from"./readFile-VgxUDrNH.js";async function g(r,o,t){const{buffer:a,compression:c,encoding:i="utf8",flag:p,...f}=t??{},e=await s(r,{buffer:a,compression:c,encoding:i,flag:p});return typeof o=="function"?n(e,o,f):n(e,f)}export{g as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{parse as r}from"yaml";import m from"./readFileSync-CloFeQw8.js";function g(n,o,t){const{buffer:c,compression:i,encoding:p="utf8",flag:s,...f}=t??{},e=m(n,{buffer:c,compression:i,encoding:p,flag:s});return typeof o=="function"?r(e,o,f):r(e,f)}export{g as default};
|