@visulima/fs 5.0.0-alpha.7 → 5.0.0-alpha.9
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 +46 -0
- package/LICENSE.md +155 -126
- package/dist/eol.d.ts +6 -35
- package/dist/error.d.ts +43 -7
- package/dist/glob-parent.d.ts +5 -0
- package/dist/glob-parent.js +90 -0
- package/dist/glob.d.ts +5 -0
- package/dist/glob.js +2 -0
- package/dist/index.d.ts +81 -36
- package/dist/index.js +16 -11
- package/dist/ini.d.ts +10 -0
- package/dist/ini.js +4 -0
- package/dist/is-glob.d.ts +5 -0
- package/dist/is-glob.js +9 -0
- package/dist/json5.d.ts +12 -0
- package/dist/json5.js +4 -0
- package/dist/jsonc.d.ts +10 -0
- package/dist/jsonc.js +4 -0
- package/dist/match.d.ts +5 -0
- package/dist/match.js +15 -0
- package/dist/packem_shared/_commonjsHelpers-BqLXS_qQ.js +5 -0
- package/dist/packem_shared/build-rm-options-Cl3VDY4O.js +12 -0
- package/dist/packem_shared/{collect-BnUYRrRI.js → collect-CqQ3eVab.js} +1 -1
- package/dist/packem_shared/{collectSync-D5G2RGDI.js → collectSync-noE08NNv.js} +1 -1
- package/dist/packem_shared/{emptyDir-Df4Tfjtk.js → emptyDir-DnwENOaV.js} +3 -1
- package/dist/packem_shared/{emptyDirSync-BD8-1Ytl.js → emptyDirSync-6WiHBo8a.js} +3 -1
- package/dist/packem_shared/glob-DY8l7izD.js +5 -0
- package/dist/packem_shared/glob-sync.d-B83kqwUd.d.ts +4 -0
- package/dist/packem_shared/globSync-5P2KJf_g.js +5 -0
- package/dist/packem_shared/index-C8W8sfzP.js +830 -0
- package/dist/packem_shared/index-bhgnhm4u.js +167 -0
- package/dist/packem_shared/index-xe4o3cYi.js +1784 -0
- package/dist/packem_shared/{parseJson-BedVi91S.js → indexToLineColumn-BUb0GPKl-BF770uX7.js} +1 -62
- package/dist/packem_shared/ini-preserve-Dq_Q_Jgb.js +251 -0
- package/dist/packem_shared/{isFsCaseSensitive-D-ayleCy.js → isFsCaseSensitive-DunL7Iry.js} +6 -6
- package/dist/packem_shared/json-error.d-DgKaeuIf.d.ts +10 -0
- package/dist/packem_shared/jsonc-merge-C6jWcfWh.js +72 -0
- package/dist/packem_shared/parseJson-BIp89Xjo.js +63 -0
- package/dist/packem_shared/readIni-CJ2xfpjB.js +10 -0
- package/dist/packem_shared/readIniSync-9LUjaSSp.js +10 -0
- package/dist/packem_shared/{readJson-D0G0ndHL.js → readJson-C_rwm-wq.js} +1 -1
- package/dist/packem_shared/readJson5-mBoTZppy.js +15 -0
- package/dist/packem_shared/readJson5Sync-8WS2yUok.js +15 -0
- package/dist/packem_shared/{readJsonSync-B7oicPaL.js → readJsonSync-BMEmCcJ6.js} +1 -1
- package/dist/packem_shared/readJsonc-j-OS-APg.js +28 -0
- package/dist/packem_shared/readJsoncSync-Aw6EMlWO.js +16 -0
- package/dist/packem_shared/readToml-B2MHaSes.js +9 -0
- package/dist/packem_shared/readTomlSync-DNbK8NEb.js +9 -0
- package/dist/packem_shared/{remove-CNkjFFkQ.js → remove-C8_gl3jF.js} +2 -1
- package/dist/packem_shared/{removeSync-AnawYpPv.js → removeSync-BJR_wTwN.js} +2 -1
- package/dist/packem_shared/types.d-dP-lAGNn.d.ts +145 -0
- package/dist/packem_shared/{walk-D5yHruvk.js → walk-CSZgCuDx.js} +10 -3
- package/dist/packem_shared/{walkSync-09nKPVw4.js → walkSync-C4Cy28xb.js} +10 -3
- package/dist/packem_shared/writeIni-i55QrL8y.js +65 -0
- package/dist/packem_shared/writeIniSync-CLqJE5t3.js +64 -0
- package/dist/packem_shared/writeJson5-vVmHUQOd.js +53 -0
- package/dist/packem_shared/writeJson5Sync-oJ546h5k.js +53 -0
- package/dist/packem_shared/writeJsonc-BufH_oC5.js +60 -0
- package/dist/packem_shared/writeJsoncSync-DB9be1YL.js +59 -0
- package/dist/packem_shared/writeToml-DgTW_-7F.js +8 -0
- package/dist/packem_shared/writeTomlSync-DiBiE9ja.js +8 -0
- package/dist/size.d.ts +10 -254
- package/dist/toml.d.ts +9 -0
- package/dist/toml.js +4 -0
- package/dist/utils.d.ts +15 -6
- package/dist/utils.js +1 -1
- package/dist/yaml.d.ts +14 -5
- package/package.json +58 -4
- package/dist/constants.d.ts +0 -42
- package/dist/ensure/ensure-dir-sync.d.ts +0 -14
- package/dist/ensure/ensure-dir.d.ts +0 -14
- package/dist/ensure/ensure-file-sync.d.ts +0 -15
- package/dist/ensure/ensure-file.d.ts +0 -27
- package/dist/ensure/ensure-link-sync.d.ts +0 -16
- package/dist/ensure/ensure-link.d.ts +0 -16
- package/dist/ensure/ensure-symlink-sync.d.ts +0 -23
- package/dist/ensure/ensure-symlink.d.ts +0 -23
- package/dist/ensure/utils/get-file-info-type.d.ts +0 -7
- package/dist/ensure/utils/is-stats-identical.d.ts +0 -3
- package/dist/ensure/utils/resolve-symlink-target.d.ts +0 -2
- package/dist/error/already-exists-error.d.ts +0 -39
- package/dist/error/directory-error.d.ts +0 -47
- package/dist/error/json-error.d.ts +0 -52
- package/dist/error/not-empty-error.d.ts +0 -51
- package/dist/error/not-found-error.d.ts +0 -44
- package/dist/error/permission-error.d.ts +0 -45
- package/dist/error/walk-error.d.ts +0 -51
- package/dist/find/collect-sync.d.ts +0 -31
- package/dist/find/collect.d.ts +0 -35
- package/dist/find/find-up-sync.d.ts +0 -42
- package/dist/find/find-up.d.ts +0 -46
- package/dist/find/utils/glob-to-regexp.d.ts +0 -2
- package/dist/find/utils/walk-include.d.ts +0 -2
- package/dist/find/walk-sync.d.ts +0 -34
- package/dist/find/walk.d.ts +0 -37
- package/dist/is-accessible-sync.d.ts +0 -3
- package/dist/is-accessible.d.ts +0 -29
- package/dist/move/index.d.ts +0 -68
- package/dist/move/types.d.ts +0 -36
- package/dist/move/utils/internal-move-file-sync.d.ts +0 -3
- package/dist/move/utils/internal-move-file.d.ts +0 -3
- package/dist/move/utils/validate-same-directory.d.ts +0 -2
- package/dist/read/read-file-sync.d.ts +0 -37
- package/dist/read/read-file.d.ts +0 -41
- package/dist/read/read-json-sync.d.ts +0 -5
- package/dist/read/read-json.d.ts +0 -5
- package/dist/read/read-yaml-sync.d.ts +0 -4
- package/dist/read/read-yaml.d.ts +0 -4
- package/dist/remove/empty-dir-sync.d.ts +0 -23
- package/dist/remove/empty-dir.d.ts +0 -28
- package/dist/remove/remove-sync.d.ts +0 -27
- package/dist/remove/remove.d.ts +0 -32
- package/dist/sanitize.d.ts +0 -31
- package/dist/types.d.ts +0 -304
- package/dist/utils/assert-valid-file-contents.d.ts +0 -27
- package/dist/utils/assert-valid-file-or-directory-path.d.ts +0 -26
- package/dist/utils/parse-json.d.ts +0 -5
- package/dist/utils/strip-json-comments.d.ts +0 -44
- package/dist/write/utils/to-uint-8-array.d.ts +0 -2
- package/dist/write/write-file-sync.d.ts +0 -30
- package/dist/write/write-file.d.ts +0 -30
- package/dist/write/write-json-sync.d.ts +0 -29
- package/dist/write/write-json.d.ts +0 -30
- package/dist/write/write-yaml-sync.d.ts +0 -4
- package/dist/write/write-yaml.d.ts +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,49 @@
|
|
|
1
|
+
## @visulima/fs [5.0.0-alpha.9](https://github.com/visulima/visulima/compare/@visulima/fs@5.0.0-alpha.8...@visulima/fs@5.0.0-alpha.9) (2026-04-21)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* **fs:** add glob, isGlob, globParent, match helpers ([f0f0a2f](https://github.com/visulima/visulima/commit/f0f0a2f6f834015ba5d9915b8afb4318910225c4)), closes [micromatch/picomatch#150](https://github.com/micromatch/picomatch/issues/150) [#188](https://github.com/visulima/visulima/issues/188) [#143](https://github.com/visulima/visulima/issues/143)
|
|
6
|
+
* **fs:** add TOML, JSONC, JSON5, INI support with style preservation ([f07446c](https://github.com/visulima/visulima/commit/f07446c97c0b5c3a2bd05297abc7705379ad336f))
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **fs:** disable isolated declarations to unblock Windows CI ([e510ddf](https://github.com/visulima/visulima/commit/e510ddfd18759dff63e33badeffb7623dbe5d570))
|
|
11
|
+
* **fs:** drop undefined retry fields from rm options ([c937df3](https://github.com/visulima/visulima/commit/c937df37401f14a4b3a0fc8b26f4a779b3a1e26e))
|
|
12
|
+
|
|
13
|
+
### Miscellaneous Chores
|
|
14
|
+
|
|
15
|
+
* bump engines.node to ^22.14.0 || >=24.10.0 ([c3d0931](https://github.com/visulima/visulima/commit/c3d0931d1504e4f21ebf50ea680cfa7ce4ba15ce))
|
|
16
|
+
* fixed jsr.json ([5d85e51](https://github.com/visulima/visulima/commit/5d85e5179de38e284ec433b14d77c71a1619c8d6))
|
|
17
|
+
* **fs:** apply formatter and lint fixes ([6bd7a2d](https://github.com/visulima/visulima/commit/6bd7a2d6397e38caf12b2799c5f0cdd6933db64a))
|
|
18
|
+
* **fs:** apply formatter and lint fixes ([f59a388](https://github.com/visulima/visulima/commit/f59a38866c232e832de00777486ed4a8f24129a9))
|
|
19
|
+
* **fs:** apply pending changes ([91490a8](https://github.com/visulima/visulima/commit/91490a801d4821a97e3a45c44173090f7bc8b97f))
|
|
20
|
+
* **fs:** apply pending lint and source updates ([9d1cf79](https://github.com/visulima/visulima/commit/9d1cf793f5ea2baa5efdc55faae0ddb6772678ad))
|
|
21
|
+
* **fs:** enforce curly braces and apply lint fixes ([b77fb0b](https://github.com/visulima/visulima/commit/b77fb0b3915b05fc8e3937b2866a3e23c3e58f5b))
|
|
22
|
+
* lock update ([4c82df0](https://github.com/visulima/visulima/commit/4c82df0f7df233b9da14cb6c8543cf15870a9008))
|
|
23
|
+
|
|
24
|
+
### Continuous Integration
|
|
25
|
+
|
|
26
|
+
* disable isolatedDeclarationTransformer ([d5845d8](https://github.com/visulima/visulima/commit/d5845d888012fbe20a020cb2c02ec57269356e56))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Dependencies
|
|
30
|
+
|
|
31
|
+
* **@visulima/error:** upgraded to 6.0.0-alpha.10
|
|
32
|
+
|
|
33
|
+
## @visulima/fs [5.0.0-alpha.8](https://github.com/visulima/visulima/compare/@visulima/fs@5.0.0-alpha.7...@visulima/fs@5.0.0-alpha.8) (2026-04-15)
|
|
34
|
+
|
|
35
|
+
### Bug Fixes
|
|
36
|
+
|
|
37
|
+
* **filesystem:** resolve eslint issues in fs, path, and find-cache-dir ([59ad5e3](https://github.com/visulima/visulima/commit/59ad5e3051e92365eb8b1fdd73d4f4fd1f4bb547))
|
|
38
|
+
* **fs:** narrow walk directory type and drop unsupported parseJson generic ([2f709ba](https://github.com/visulima/visulima/commit/2f709ba9aab0ca24d56a9a1bb0d10c35bbd7505a))
|
|
39
|
+
* **fs:** relax no-unsafe-* rules and remove stale disable comments ([d49d900](https://github.com/visulima/visulima/commit/d49d9002bf0e07b420833531a22490c088384509))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Dependencies
|
|
43
|
+
|
|
44
|
+
* **@visulima/path:** upgraded to 3.0.0-alpha.9
|
|
45
|
+
* **@visulima/error:** upgraded to 6.0.0-alpha.9
|
|
46
|
+
|
|
1
47
|
## @visulima/fs [5.0.0-alpha.7](https://github.com/visulima/visulima/compare/@visulima/fs@5.0.0-alpha.6...@visulima/fs@5.0.0-alpha.7) (2026-04-08)
|
|
2
48
|
|
|
3
49
|
### Bug Fixes
|
package/LICENSE.md
CHANGED
|
@@ -24,7 +24,7 @@ SOFTWARE.
|
|
|
24
24
|
|
|
25
25
|
# Licenses of bundled dependencies
|
|
26
26
|
The published @visulima/fs artifact additionally contains code with the following licenses:
|
|
27
|
-
MIT
|
|
27
|
+
ISC, MIT
|
|
28
28
|
|
|
29
29
|
# Bundled dependencies:
|
|
30
30
|
## @visulima/error
|
|
@@ -61,131 +61,6 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
61
61
|
> MIT
|
|
62
62
|
>
|
|
63
63
|
> # Bundled dependencies:
|
|
64
|
-
> ## @visulima/path
|
|
65
|
-
> License: MIT
|
|
66
|
-
> By: Daniel Bannert
|
|
67
|
-
> Repository: git+https://github.com/visulima/visulima.git
|
|
68
|
-
>
|
|
69
|
-
> > MIT License
|
|
70
|
-
> >
|
|
71
|
-
> > Copyright (c) 2026 visulima
|
|
72
|
-
> >
|
|
73
|
-
> > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
74
|
-
> > of this software and associated documentation files (the "Software"), to deal
|
|
75
|
-
> > in the Software without restriction, including without limitation the rights
|
|
76
|
-
> > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
77
|
-
> > copies of the Software, and to permit persons to whom the Software is
|
|
78
|
-
> > furnished to do so, subject to the following conditions:
|
|
79
|
-
> >
|
|
80
|
-
> > The above copyright notice and this permission notice shall be included in all
|
|
81
|
-
> > copies or substantial portions of the Software.
|
|
82
|
-
> >
|
|
83
|
-
> > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
84
|
-
> > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
85
|
-
> > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
86
|
-
> > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
87
|
-
> > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
88
|
-
> > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
89
|
-
> > SOFTWARE.
|
|
90
|
-
> >
|
|
91
|
-
> > ---
|
|
92
|
-
> >
|
|
93
|
-
> > MIT License
|
|
94
|
-
> >
|
|
95
|
-
> > Copyright (c) Pooya Parsa <pooya@pi0.io> - Daniel Roe <daniel@roe.dev>
|
|
96
|
-
> >
|
|
97
|
-
> > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
98
|
-
> > of this software and associated documentation files (the "Software"), to deal
|
|
99
|
-
> > in the Software without restriction, including without limitation the rights
|
|
100
|
-
> > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
101
|
-
> > copies of the Software, and to permit persons to whom the Software is
|
|
102
|
-
> > furnished to do so, subject to the following conditions:
|
|
103
|
-
> >
|
|
104
|
-
> > The above copyright notice and this permission notice shall be included in all
|
|
105
|
-
> > copies or substantial portions of the Software.
|
|
106
|
-
> >
|
|
107
|
-
> > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
108
|
-
> > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
109
|
-
> > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
110
|
-
> > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
111
|
-
> > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
112
|
-
> > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
113
|
-
> > SOFTWARE.
|
|
114
|
-
> >
|
|
115
|
-
> > ---
|
|
116
|
-
> >
|
|
117
|
-
> > Copyright Joyent, Inc. and other Node contributors.
|
|
118
|
-
> >
|
|
119
|
-
> > Permission is hereby granted, free of charge, to any person obtaining a
|
|
120
|
-
> > copy of this software and associated documentation files (the
|
|
121
|
-
> > "Software"), to deal in the Software without restriction, including
|
|
122
|
-
> > without limitation the rights to use, copy, modify, merge, publish,
|
|
123
|
-
> > distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
124
|
-
> > persons to whom the Software is furnished to do so, subject to the
|
|
125
|
-
> > following conditions:
|
|
126
|
-
> >
|
|
127
|
-
> > The above copyright notice and this permission notice shall be included
|
|
128
|
-
> > in all copies or substantial portions of the Software.
|
|
129
|
-
> >
|
|
130
|
-
> > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
131
|
-
> > OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
132
|
-
> > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
133
|
-
> > NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
134
|
-
> > DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
135
|
-
> > OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
136
|
-
> > USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
137
|
-
> >
|
|
138
|
-
> > ---
|
|
139
|
-
> >
|
|
140
|
-
> > Bundled zeptomatch (https://github.com/fabiospampinato/zeptomatch)
|
|
141
|
-
> >
|
|
142
|
-
> > The MIT License (MIT)
|
|
143
|
-
> >
|
|
144
|
-
> > Copyright (c) 2023-present Fabio Spampinato
|
|
145
|
-
> >
|
|
146
|
-
> > Permission is hereby granted, free of charge, to any person obtaining a
|
|
147
|
-
> > copy of this software and associated documentation files (the "Software"),
|
|
148
|
-
> > to deal in the Software without restriction, including without limitation
|
|
149
|
-
> > the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
150
|
-
> > and/or sell copies of the Software, and to permit persons to whom the
|
|
151
|
-
> > Software is furnished to do so, subject to the following conditions:
|
|
152
|
-
> >
|
|
153
|
-
> > The above copyright notice and this permission notice shall be included in
|
|
154
|
-
> > all copies or substantial portions of the Software.
|
|
155
|
-
> >
|
|
156
|
-
> > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
157
|
-
> > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
158
|
-
> > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
159
|
-
> > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
160
|
-
> > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
161
|
-
> > FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
162
|
-
> > DEALINGS IN THE SOFTWARE.
|
|
163
|
-
> >
|
|
164
|
-
> >
|
|
165
|
-
> >
|
|
166
|
-
> > # Licenses of bundled dependencies
|
|
167
|
-
> > The published @visulima/path artifact additionally contains code with the following licenses:
|
|
168
|
-
> > MIT
|
|
169
|
-
> >
|
|
170
|
-
> > # Bundled dependencies:
|
|
171
|
-
> > ## binary-extensions
|
|
172
|
-
> > License: MIT
|
|
173
|
-
> > By: Sindre Sorhus
|
|
174
|
-
> > Repository: sindresorhus/binary-extensions
|
|
175
|
-
> >
|
|
176
|
-
> > > MIT License
|
|
177
|
-
> > >
|
|
178
|
-
> > > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
179
|
-
> > > Copyright (c) Paul Miller (https://paulmillr.com)
|
|
180
|
-
> > >
|
|
181
|
-
> > > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
182
|
-
> > >
|
|
183
|
-
> > > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
184
|
-
> > >
|
|
185
|
-
> > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
186
|
-
>
|
|
187
|
-
> ---------------------------------------
|
|
188
|
-
>
|
|
189
64
|
> ## is-plain-obj
|
|
190
65
|
> License: MIT
|
|
191
66
|
> By: Sindre Sorhus
|
|
@@ -220,6 +95,73 @@ Repository: sindresorhus/detect-indent
|
|
|
220
95
|
|
|
221
96
|
---------------------------------------
|
|
222
97
|
|
|
98
|
+
## fdir
|
|
99
|
+
License: MIT
|
|
100
|
+
By: thecodrr
|
|
101
|
+
Repository: git+https://github.com/thecodrr/fdir.git
|
|
102
|
+
|
|
103
|
+
> Copyright 2023 Abdullah Atta
|
|
104
|
+
>
|
|
105
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
106
|
+
>
|
|
107
|
+
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
108
|
+
>
|
|
109
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
110
|
+
|
|
111
|
+
---------------------------------------
|
|
112
|
+
|
|
113
|
+
## glob-parent
|
|
114
|
+
License: ISC
|
|
115
|
+
By: Gulp Team, Elan Shanker, Blaine Bublitz
|
|
116
|
+
Repository: gulpjs/glob-parent
|
|
117
|
+
|
|
118
|
+
> The ISC License
|
|
119
|
+
>
|
|
120
|
+
> Copyright (c) 2015, 2019 Elan Shanker, 2021 Blaine Bublitz <blaine.bublitz@gmail.com>, Eric Schoffstall <yo@contra.io> and other contributors
|
|
121
|
+
>
|
|
122
|
+
> Permission to use, copy, modify, and/or distribute this software for any
|
|
123
|
+
> purpose with or without fee is hereby granted, provided that the above
|
|
124
|
+
> copyright notice and this permission notice appear in all copies.
|
|
125
|
+
>
|
|
126
|
+
> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
127
|
+
> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
128
|
+
> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
129
|
+
> ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
130
|
+
> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
131
|
+
> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
132
|
+
> IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
133
|
+
|
|
134
|
+
---------------------------------------
|
|
135
|
+
|
|
136
|
+
## is-extglob
|
|
137
|
+
License: MIT
|
|
138
|
+
By: Jon Schlinkert
|
|
139
|
+
Repository: jonschlinkert/is-extglob
|
|
140
|
+
|
|
141
|
+
> The MIT License (MIT)
|
|
142
|
+
>
|
|
143
|
+
> Copyright (c) 2014-2016, Jon Schlinkert
|
|
144
|
+
>
|
|
145
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
146
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
147
|
+
> in the Software without restriction, including without limitation the rights
|
|
148
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
149
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
150
|
+
> furnished to do so, subject to the following conditions:
|
|
151
|
+
>
|
|
152
|
+
> The above copyright notice and this permission notice shall be included in
|
|
153
|
+
> all copies or substantial portions of the Software.
|
|
154
|
+
>
|
|
155
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
156
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
157
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
158
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
159
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
160
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
161
|
+
> THE SOFTWARE.
|
|
162
|
+
|
|
163
|
+
---------------------------------------
|
|
164
|
+
|
|
223
165
|
## is-fs-case-sensitive
|
|
224
166
|
License: MIT
|
|
225
167
|
By: Hiroki Osame
|
|
@@ -247,6 +189,93 @@ Repository: privatenumber/is-fs-case-sensitive
|
|
|
247
189
|
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
248
190
|
> SOFTWARE.
|
|
249
191
|
|
|
192
|
+
---------------------------------------
|
|
193
|
+
|
|
194
|
+
## is-glob
|
|
195
|
+
License: MIT
|
|
196
|
+
By: Jon Schlinkert, Brian Woodward, Daniel Perez
|
|
197
|
+
Repository: micromatch/is-glob
|
|
198
|
+
|
|
199
|
+
> The MIT License (MIT)
|
|
200
|
+
>
|
|
201
|
+
> Copyright (c) 2014-2017, Jon Schlinkert.
|
|
202
|
+
>
|
|
203
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
204
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
205
|
+
> in the Software without restriction, including without limitation the rights
|
|
206
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
207
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
208
|
+
> furnished to do so, subject to the following conditions:
|
|
209
|
+
>
|
|
210
|
+
> The above copyright notice and this permission notice shall be included in
|
|
211
|
+
> all copies or substantial portions of the Software.
|
|
212
|
+
>
|
|
213
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
214
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
215
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
216
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
217
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
218
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
219
|
+
> THE SOFTWARE.
|
|
220
|
+
|
|
221
|
+
---------------------------------------
|
|
222
|
+
|
|
223
|
+
## picomatch
|
|
224
|
+
License: MIT
|
|
225
|
+
By: Jon Schlinkert
|
|
226
|
+
Repository: micromatch/picomatch
|
|
227
|
+
|
|
228
|
+
> The MIT License (MIT)
|
|
229
|
+
>
|
|
230
|
+
> Copyright (c) 2017-present, Jon Schlinkert.
|
|
231
|
+
>
|
|
232
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
233
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
234
|
+
> in the Software without restriction, including without limitation the rights
|
|
235
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
236
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
237
|
+
> furnished to do so, subject to the following conditions:
|
|
238
|
+
>
|
|
239
|
+
> The above copyright notice and this permission notice shall be included in
|
|
240
|
+
> all copies or substantial portions of the Software.
|
|
241
|
+
>
|
|
242
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
243
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
244
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
245
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
246
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
247
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
248
|
+
> THE SOFTWARE.
|
|
249
|
+
|
|
250
|
+
---------------------------------------
|
|
251
|
+
|
|
252
|
+
## tinyglobby
|
|
253
|
+
License: MIT
|
|
254
|
+
By: Superchupu
|
|
255
|
+
Repository: git+https://github.com/SuperchupuDev/tinyglobby.git
|
|
256
|
+
|
|
257
|
+
> MIT License
|
|
258
|
+
>
|
|
259
|
+
> Copyright (c) 2024 Madeline Gurriarán
|
|
260
|
+
>
|
|
261
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
262
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
263
|
+
> in the Software without restriction, including without limitation the rights
|
|
264
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
265
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
266
|
+
> furnished to do so, subject to the following conditions:
|
|
267
|
+
>
|
|
268
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
269
|
+
> copies or substantial portions of the Software.
|
|
270
|
+
>
|
|
271
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
272
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
273
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
274
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
275
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
276
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
277
|
+
> SOFTWARE.
|
|
278
|
+
|
|
250
279
|
<!-- /DEPENDENCIES -->
|
|
251
280
|
|
|
252
281
|
<!-- TYPE_DEPENDENCIES -->
|
package/dist/eol.d.ts
CHANGED
|
@@ -1,35 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*/
|
|
8
|
-
export declare const EOL: "\n" | "\r\n";
|
|
9
|
-
/**
|
|
10
|
-
* Detect the EOL character for string input.
|
|
11
|
-
* Returns null if no newline.
|
|
12
|
-
* @param content The string content to detect the EOL from.
|
|
13
|
-
* @example
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { detect } from "@visulima/fs/eol";
|
|
16
|
-
*
|
|
17
|
-
* detect("Hello\r\nWorld"); // "\r\n"
|
|
18
|
-
* detect("Hello\nWorld"); // "\n"
|
|
19
|
-
* detect("HelloWorld"); // null
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare const detect: (content: string) => typeof EOL | null;
|
|
23
|
-
/**
|
|
24
|
-
* Format the file to the targeted EOL.
|
|
25
|
-
* @param content The string content to format.
|
|
26
|
-
* @param eol The target EOL character.
|
|
27
|
-
* @example
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { format, LF, CRLF } from "@visulima/fs/eol";
|
|
30
|
-
*
|
|
31
|
-
* format("Hello\r\nWorld\nUnix", LF); // "Hello\nWorld\nUnix"
|
|
32
|
-
* format("Hello\nWorld\r\nWindows", CRLF); // "Hello\r\nWorld\r\nWindows"
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
export declare const format: (content: string, eol: typeof EOL) => string;
|
|
1
|
+
declare const LF: "\n";
|
|
2
|
+
declare const CRLF: "\r\n";
|
|
3
|
+
declare const EOL: "\n" | "\r\n";
|
|
4
|
+
declare const detect: (content: string) => typeof EOL | null;
|
|
5
|
+
declare const format: (content: string, eol: typeof EOL) => string;
|
|
6
|
+
export { CRLF, EOL, LF, detect, format };
|
package/dist/error.d.ts
CHANGED
|
@@ -1,7 +1,43 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
export { J as JSONError } from "./packem_shared/json-error.d-DgKaeuIf.js";
|
|
2
|
+
declare class AlreadyExistsError extends Error {
|
|
3
|
+
constructor(message: string);
|
|
4
|
+
get code(): string;
|
|
5
|
+
set code(_name: string);
|
|
6
|
+
get name(): string;
|
|
7
|
+
set name(_name: string);
|
|
8
|
+
}
|
|
9
|
+
declare class DirectoryError extends Error {
|
|
10
|
+
constructor(message: string);
|
|
11
|
+
get code(): string;
|
|
12
|
+
set code(_name: string);
|
|
13
|
+
get name(): string;
|
|
14
|
+
set name(_name: string);
|
|
15
|
+
}
|
|
16
|
+
declare class NotEmptyError extends Error {
|
|
17
|
+
constructor(message: string);
|
|
18
|
+
get code(): string;
|
|
19
|
+
set code(_name: string);
|
|
20
|
+
get name(): string;
|
|
21
|
+
set name(_name: string);
|
|
22
|
+
}
|
|
23
|
+
declare class NotFoundError extends Error {
|
|
24
|
+
constructor(message: string);
|
|
25
|
+
get code(): string;
|
|
26
|
+
set code(_name: string);
|
|
27
|
+
get name(): string;
|
|
28
|
+
set name(_name: string);
|
|
29
|
+
}
|
|
30
|
+
declare class PermissionError extends Error {
|
|
31
|
+
constructor(message: string);
|
|
32
|
+
get code(): string;
|
|
33
|
+
set code(_name: string);
|
|
34
|
+
get name(): string;
|
|
35
|
+
set name(_name: string);
|
|
36
|
+
}
|
|
37
|
+
declare class WalkError extends Error {
|
|
38
|
+
root: string;
|
|
39
|
+
constructor(cause: unknown, root: string);
|
|
40
|
+
get name(): string;
|
|
41
|
+
set name(_name: string);
|
|
42
|
+
}
|
|
43
|
+
export { AlreadyExistsError, DirectoryError, NotEmptyError, NotFoundError, PermissionError, WalkError };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { createRequire as __cjs_createRequire } from "node:module";
|
|
2
|
+
|
|
3
|
+
const __cjs_require = __cjs_createRequire(import.meta.url);
|
|
4
|
+
|
|
5
|
+
const __cjs_getProcess = typeof globalThis !== "undefined" && typeof globalThis.process !== "undefined" ? globalThis.process : process;
|
|
6
|
+
|
|
7
|
+
const __cjs_getBuiltinModule = (module) => {
|
|
8
|
+
// Check if we're in Node.js and version supports getBuiltinModule
|
|
9
|
+
if (typeof __cjs_getProcess !== "undefined" && __cjs_getProcess.versions && __cjs_getProcess.versions.node) {
|
|
10
|
+
const [major, minor] = __cjs_getProcess.versions.node.split(".").map(Number);
|
|
11
|
+
// Node.js 20.16.0+ and 22.3.0+
|
|
12
|
+
if (major > 22 || (major === 22 && minor >= 3) || (major === 20 && minor >= 16)) {
|
|
13
|
+
return __cjs_getProcess.getBuiltinModule(module);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
// Fallback to createRequire
|
|
17
|
+
return __cjs_require(module);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
import { g as getDefaultExportFromCjs } from './packem_shared/_commonjsHelpers-BqLXS_qQ.js';
|
|
21
|
+
import { r as requireIsGlob } from './packem_shared/index-bhgnhm4u.js';
|
|
22
|
+
const require$$1 = __cjs_getBuiltinModule("path");
|
|
23
|
+
const require$$2 = __cjs_getBuiltinModule("os");
|
|
24
|
+
|
|
25
|
+
var globParent$1;
|
|
26
|
+
var hasRequiredGlobParent;
|
|
27
|
+
|
|
28
|
+
function requireGlobParent () {
|
|
29
|
+
if (hasRequiredGlobParent) return globParent$1;
|
|
30
|
+
hasRequiredGlobParent = 1;
|
|
31
|
+
var isGlob = requireIsGlob();
|
|
32
|
+
var pathPosixDirname = require$$1.posix.dirname;
|
|
33
|
+
var isWin32 = require$$2.platform() === "win32";
|
|
34
|
+
var slash = "/";
|
|
35
|
+
var backslash = /\\/g;
|
|
36
|
+
var escaped = /\\([!*?|[\](){}])/g;
|
|
37
|
+
globParent$1 = function globParent(str, opts) {
|
|
38
|
+
var options = Object.assign({ flipBackslashes: true }, opts);
|
|
39
|
+
if (options.flipBackslashes && isWin32 && str.indexOf(slash) < 0) {
|
|
40
|
+
str = str.replace(backslash, slash);
|
|
41
|
+
}
|
|
42
|
+
if (isEnclosure(str)) {
|
|
43
|
+
str += slash;
|
|
44
|
+
}
|
|
45
|
+
str += "a";
|
|
46
|
+
do {
|
|
47
|
+
str = pathPosixDirname(str);
|
|
48
|
+
} while (isGlobby(str));
|
|
49
|
+
return str.replace(escaped, "$1");
|
|
50
|
+
};
|
|
51
|
+
function isEnclosure(str) {
|
|
52
|
+
var lastChar = str.slice(-1);
|
|
53
|
+
var enclosureStart;
|
|
54
|
+
switch (lastChar) {
|
|
55
|
+
case "}":
|
|
56
|
+
enclosureStart = "{";
|
|
57
|
+
break;
|
|
58
|
+
case "]":
|
|
59
|
+
enclosureStart = "[";
|
|
60
|
+
break;
|
|
61
|
+
default:
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
var foundIndex = str.indexOf(enclosureStart);
|
|
65
|
+
if (foundIndex < 0) {
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
return str.slice(foundIndex + 1, -1).includes(slash);
|
|
69
|
+
}
|
|
70
|
+
function isGlobby(str) {
|
|
71
|
+
if (/\([^()]+$/.test(str)) {
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
if (str[0] === "{" || str[0] === "[") {
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
if (/[^\\][{[]/.test(str)) {
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
return isGlob(str);
|
|
81
|
+
}
|
|
82
|
+
return globParent$1;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
var globParentExports = requireGlobParent();
|
|
86
|
+
const globParentImpl = /*@__PURE__*/getDefaultExportFromCjs(globParentExports);
|
|
87
|
+
|
|
88
|
+
const globParent = (pattern, options) => globParentImpl(pattern, options);
|
|
89
|
+
|
|
90
|
+
export { globParent as default };
|
package/dist/glob.d.ts
ADDED
package/dist/glob.js
ADDED