@stryke/prisma-better-auth-generator 0.12.1 → 0.12.2
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/README.md +229 -0
- package/dist/generator.cjs +17 -14
- package/dist/generator.js +17 -14
- package/dist/index.cjs +17 -14
- package/dist/index.js +17 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,47 @@
|
|
|
1
1
|
<!-- START header -->
|
|
2
|
+
<!-- prettier-ignore-start -->
|
|
3
|
+
<!-- markdownlint-disable -->
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<div align="center"><img src="https://public.storm-cdn.com/storm-banner.gif" width="100%" alt="Storm Software" /></div>
|
|
7
|
+
<br />
|
|
8
|
+
|
|
9
|
+
<div align="center">
|
|
10
|
+
<b>
|
|
11
|
+
<a href="https://stormsoftware.com" target="_blank">Website</a> •
|
|
12
|
+
<a href="https://github.com/storm-software/stryke" target="_blank">GitHub</a> •
|
|
13
|
+
<a href="https://discord.gg/MQ6YVzakM5">Discord</a> • <a href="https://stormsoftware.com/projects/stryke/docs" target="_blank">Docs</a> • <a href="https://stormsoftware.com/contact" target="_blank">Contact</a> •
|
|
14
|
+
<a href="https://github.com/storm-software/stryke/issues/new?assignees=&labels=bug&template=bug-report.yml&title=Bug Report%3A+">Report a Bug</a>
|
|
15
|
+
</b>
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
<br />
|
|
19
|
+
This package is part of Storm Software's **🌩️ Stryke** monorepo. Stryke packages TypeScript utility packages with shared functionality common to many Storm Software applications.
|
|
20
|
+
|
|
21
|
+
<br />
|
|
22
|
+
|
|
23
|
+
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
24
|
+
|
|
25
|
+
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
26
|
+
|
|
27
|
+
> [!IMPORTANT] This repository, and the apps, libraries, and tools contained
|
|
28
|
+
> within, is still in it's initial development phase. As a result, bugs and
|
|
29
|
+
> issues are expected with it's usage. When the main development phase
|
|
30
|
+
> completes, a proper release will be performed, the packages will be availible
|
|
31
|
+
> through NPM (and other distributions), and this message will be removed.
|
|
32
|
+
> However, in the meantime, please feel free to report any issues you may come
|
|
33
|
+
> across.
|
|
34
|
+
|
|
35
|
+
<div align="center">
|
|
36
|
+
<b>Be sure to ⭐ this repository on <a href="https://github.com/storm-software/stryke" target="_blank">GitHub</a> so you can keep up to date on any daily progress!</b>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<br />
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
<!-- markdownlint-restore -->
|
|
43
|
+
<!-- prettier-ignore-end -->
|
|
44
|
+
|
|
2
45
|
<!-- END header -->
|
|
3
46
|
|
|
4
47
|
# prisma-better-auth-generator
|
|
@@ -6,6 +49,23 @@
|
|
|
6
49
|
A package containing a Prisma v6 generator for Better-Auth authentication
|
|
7
50
|
|
|
8
51
|
<!-- START doctoc -->
|
|
52
|
+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
53
|
+
## Table of Contents
|
|
54
|
+
|
|
55
|
+
- [Installing](#installing)
|
|
56
|
+
- [Reduced Package Size](#reduced-package-size)
|
|
57
|
+
- [Development](#development)
|
|
58
|
+
- [Building](#building)
|
|
59
|
+
- [Running unit tests](#running-unit-tests)
|
|
60
|
+
- [Linting](#linting)
|
|
61
|
+
- [Storm Workspaces](#storm-workspaces)
|
|
62
|
+
- [Roadmap](#roadmap)
|
|
63
|
+
- [Support](#support)
|
|
64
|
+
- [License](#license)
|
|
65
|
+
- [Changelog](#changelog)
|
|
66
|
+
- [Contributing](#contributing)
|
|
67
|
+
- [Contributors](#contributors)
|
|
68
|
+
|
|
9
69
|
<!-- END doctoc -->
|
|
10
70
|
|
|
11
71
|
## Installing
|
|
@@ -61,4 +121,173 @@ Run `nx lint prisma-better-auth-generator` to run [ESLint](https://eslint.org/)
|
|
|
61
121
|
on the package.
|
|
62
122
|
|
|
63
123
|
<!-- START footer -->
|
|
124
|
+
<!-- prettier-ignore-start -->
|
|
125
|
+
<!-- markdownlint-disable -->
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
## Storm Workspaces
|
|
129
|
+
|
|
130
|
+
Storm workspaces are built using
|
|
131
|
+
<a href="https://nx.dev/" target="_blank">Nx</a>, a set of extensible dev tools
|
|
132
|
+
for monorepos, which helps you develop like Google, Facebook, and Microsoft.
|
|
133
|
+
Building on top of Nx, the Open System provides a set of tools and patterns that
|
|
134
|
+
help you scale your monorepo to many teams while keeping the codebase
|
|
135
|
+
maintainable.
|
|
136
|
+
|
|
137
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
138
|
+
<br />
|
|
139
|
+
|
|
140
|
+
## Roadmap
|
|
141
|
+
|
|
142
|
+
See the [open issues](https://github.com/storm-software/stryke/issues) for a
|
|
143
|
+
list of proposed features (and known issues).
|
|
144
|
+
|
|
145
|
+
- [Top Feature Requests](https://github.com/storm-software/stryke/issues?q=label%3Aenhancement+is%3Aopen+sort%3Areactions-%2B1-desc)
|
|
146
|
+
(Add your votes using the 👍 reaction)
|
|
147
|
+
- [Top Bugs](https://github.com/storm-software/stryke/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Areactions-%2B1-desc)
|
|
148
|
+
(Add your votes using the 👍 reaction)
|
|
149
|
+
- [Newest Bugs](https://github.com/storm-software/stryke/issues?q=is%3Aopen+is%3Aissue+label%3Abug)
|
|
150
|
+
|
|
151
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
152
|
+
<br />
|
|
153
|
+
|
|
154
|
+
## Support
|
|
155
|
+
|
|
156
|
+
Reach out to the maintainer at one of the following places:
|
|
157
|
+
|
|
158
|
+
- [Contact](https://stormsoftware.com/contact)
|
|
159
|
+
- [GitHub discussions](https://github.com/storm-software/stryke/discussions)
|
|
160
|
+
- <support@stormsoftware.com>
|
|
161
|
+
|
|
162
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
163
|
+
<br />
|
|
164
|
+
|
|
165
|
+
## License
|
|
166
|
+
|
|
167
|
+
This project is licensed under the **Apache License 2.0**. Feel free to edit and
|
|
168
|
+
distribute this template as you like.
|
|
169
|
+
|
|
170
|
+
See [LICENSE](LICENSE) for more information.
|
|
171
|
+
|
|
172
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
173
|
+
<br />
|
|
174
|
+
|
|
175
|
+
## Changelog
|
|
176
|
+
|
|
177
|
+
This project adheres to
|
|
178
|
+
[Semantic Versioning](https://semver.org/spec/v2.0.0.html). Every release, along
|
|
179
|
+
with the migration instructions, is documented in the [CHANGELOG](CHANGELOG.md)
|
|
180
|
+
file
|
|
181
|
+
|
|
182
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
183
|
+
<br />
|
|
184
|
+
|
|
185
|
+
## Contributing
|
|
186
|
+
|
|
187
|
+
First off, thanks for taking the time to contribute! Contributions are what
|
|
188
|
+
makes the open-source community such an amazing place to learn, inspire, and
|
|
189
|
+
create. Any contributions you make will benefit everybody else and are **greatly
|
|
190
|
+
appreciated**.
|
|
191
|
+
|
|
192
|
+
Please try to create bug reports that are:
|
|
193
|
+
|
|
194
|
+
- _Reproducible._ Include steps to reproduce the problem.
|
|
195
|
+
- _Specific._ Include as much detail as possible: which version, what
|
|
196
|
+
environment, etc.
|
|
197
|
+
- _Unique._ Do not duplicate existing opened issues.
|
|
198
|
+
- _Scoped to a Single Bug._ One bug per report.
|
|
199
|
+
|
|
200
|
+
Please adhere to this project's [code of conduct](.github/CODE_OF_CONDUCT.md).
|
|
201
|
+
|
|
202
|
+
You can use
|
|
203
|
+
[markdownlint-cli](https://github.com/storm-software/stryke/markdownlint-cli) to
|
|
204
|
+
check for common markdown style inconsistency.
|
|
205
|
+
|
|
206
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
207
|
+
<br />
|
|
208
|
+
|
|
209
|
+
## Contributors
|
|
210
|
+
|
|
211
|
+
Thanks goes to these wonderful people
|
|
212
|
+
([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
|
213
|
+
|
|
214
|
+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
|
215
|
+
|
|
216
|
+
<table>
|
|
217
|
+
<tbody>
|
|
218
|
+
<tr>
|
|
219
|
+
<td align="center" valign="top" width="14.28%"><a href="http://www.sullypat.com/"><img src="https://avatars.githubusercontent.com/u/99053093?v=4?s=100" width="100px;" alt="Patrick Sullivan"/><br /><sub><b>Patrick Sullivan</b></sub></a><br /><a href="#design-sullivanpj" title="Design">🎨</a> <a href="https://github.com/storm-software/stryke/commits?author=sullivanpj" title="Code">💻</a> <a href="#tool-sullivanpj" title="Tools">🔧</a> <a href="https://github.com/storm-software/stryke/commits?author=sullivanpj" title="Documentation">📖</a> <a href="https://github.com/storm-software/stryke/commits?author=sullivanpj" title="Tests">⚠️</a></td>
|
|
220
|
+
<td align="center" valign="top" width="14.28%"><a href="https://tylerbenning.com/"><img src="https://avatars.githubusercontent.com/u/7265547?v=4?s=100" width="100px;" alt="Tyler Benning"/><br /><sub><b>Tyler Benning</b></sub></a><br /><a href="#design-tbenning" title="Design">🎨</a></td>
|
|
221
|
+
<td align="center" valign="top" width="14.28%"><a href="http://stormsoftware.com"><img src="https://avatars.githubusercontent.com/u/149802440?v=4?s=100" width="100px;" alt="Stormie"/><br /><sub><b>Stormie</b></sub></a><br /><a href="#maintenance-stormie-bot" title="Maintenance">🚧</a></td>
|
|
222
|
+
</tr>
|
|
223
|
+
</tbody>
|
|
224
|
+
<tfoot>
|
|
225
|
+
<tr>
|
|
226
|
+
<td align="center" size="13px" colspan="7">
|
|
227
|
+
<img src="https://raw.githubusercontent.com/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg" alt="All Contributors">
|
|
228
|
+
<a href="https://all-contributors.js.org/docs/en/bot/usage">Add your contributions</a>
|
|
229
|
+
</img>
|
|
230
|
+
</td>
|
|
231
|
+
</tr>
|
|
232
|
+
</tfoot>
|
|
233
|
+
</table>
|
|
234
|
+
|
|
235
|
+
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
236
|
+
|
|
237
|
+
This project follows the
|
|
238
|
+
[all-contributors](https://github.com/all-contributors/all-contributors)
|
|
239
|
+
specification. Contributions of any kind welcome!
|
|
240
|
+
|
|
241
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
242
|
+
<br />
|
|
243
|
+
|
|
244
|
+
<hr />
|
|
245
|
+
<br />
|
|
246
|
+
|
|
247
|
+
<div align="center">
|
|
248
|
+
<img src="https://public.storm-cdn.com/logo-banner.png" width="100%" alt="Storm Software" />
|
|
249
|
+
</div>
|
|
250
|
+
<br />
|
|
251
|
+
|
|
252
|
+
<div align="center">
|
|
253
|
+
<a href="https://stormsoftware.com" target="_blank">Website</a> • <a href="https://stormsoftware.com/contact" target="_blank">Contact</a> • <a href="https://linkedin.com/in/patrick-sullivan-865526b0" target="_blank">LinkedIn</a> • <a href="https://medium.com/@pat.joseph.sullivan" target="_blank">Medium</a> • <a href="https://github.com/storm-software" target="_blank">GitHub</a> • <a href="https://keybase.io/sullivanp" target="_blank">OpenPGP Key</a>
|
|
254
|
+
</div>
|
|
255
|
+
|
|
256
|
+
<div align="center">
|
|
257
|
+
<b>Fingerprint:</b> 1BD2 7192 7770 2549 F4C9 F238 E6AD C420 DA5C 4C2D
|
|
258
|
+
</div>
|
|
259
|
+
<br />
|
|
260
|
+
|
|
261
|
+
Storm Software is an open source software development organization and creator
|
|
262
|
+
of Acidic, StormStack and StormCloud.
|
|
263
|
+
|
|
264
|
+
Our mission is to make software development more accessible. Our ideal future is
|
|
265
|
+
one where anyone can create software without years of prior development
|
|
266
|
+
experience serving as a barrier to entry. We hope to achieve this via LLMs,
|
|
267
|
+
Generative AI, and intuitive, high-level data modeling/programming languages.
|
|
268
|
+
|
|
269
|
+
Join us on [Discord](https://discord.gg/MQ6YVzakM5) to chat with the team,
|
|
270
|
+
receive release notifications, ask questions, and get involved.
|
|
271
|
+
|
|
272
|
+
If this sounds interesting, and you would like to help us in creating the next
|
|
273
|
+
generation of development tools, please reach out on our
|
|
274
|
+
[website](https://stormsoftware.com/contact) or join our
|
|
275
|
+
[Slack channel](https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA)!
|
|
276
|
+
|
|
277
|
+
<br />
|
|
278
|
+
|
|
279
|
+
<div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://public.storm-cdn.com/icon-fill.png" alt="Storm Software" width="200px"/></a></div>
|
|
280
|
+
<br />
|
|
281
|
+
<div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://public.storm-cdn.com/visit-us-text.svg" alt="Visit us at stormsoftware.com" height="90px"/></a></div>
|
|
282
|
+
|
|
283
|
+
<br />
|
|
284
|
+
|
|
285
|
+
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
286
|
+
<br />
|
|
287
|
+
<br />
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
<!-- markdownlint-restore -->
|
|
291
|
+
<!-- prettier-ignore-end -->
|
|
292
|
+
|
|
64
293
|
<!-- END footer -->
|
package/dist/generator.cjs
CHANGED
|
@@ -211,9 +211,10 @@ init_cjs_shims();
|
|
|
211
211
|
|
|
212
212
|
// ../string-format/src/lower-case-first.ts
|
|
213
213
|
init_cjs_shims();
|
|
214
|
-
|
|
214
|
+
function lowerCaseFirst(input) {
|
|
215
215
|
return input ? input.charAt(0).toLowerCase() + input.slice(1) : input;
|
|
216
|
-
}
|
|
216
|
+
}
|
|
217
|
+
__name(lowerCaseFirst, "lowerCaseFirst");
|
|
217
218
|
|
|
218
219
|
// src/access-control.ts
|
|
219
220
|
var USER_RESOURCES = [
|
|
@@ -4562,17 +4563,19 @@ var ACRONYMS = [
|
|
|
4562
4563
|
|
|
4563
4564
|
// ../string-format/src/upper-case-first.ts
|
|
4564
4565
|
init_cjs_shims();
|
|
4565
|
-
|
|
4566
|
+
function upperCaseFirst(input) {
|
|
4566
4567
|
return input ? input.charAt(0).toUpperCase() + input.slice(1) : input;
|
|
4567
|
-
}
|
|
4568
|
+
}
|
|
4569
|
+
__name(upperCaseFirst, "upperCaseFirst");
|
|
4568
4570
|
|
|
4569
4571
|
// ../string-format/src/title-case.ts
|
|
4570
|
-
|
|
4572
|
+
function titleCase(input) {
|
|
4571
4573
|
if (!input) {
|
|
4572
|
-
return
|
|
4574
|
+
return input;
|
|
4573
4575
|
}
|
|
4574
4576
|
return input.split(/(?=[A-Z])|[\s._-]/).map((s) => s.trim()).filter(Boolean).map((s) => ACRONYMS.includes(s) ? s.toUpperCase() : upperCaseFirst(s.toLowerCase())).join(" ");
|
|
4575
|
-
}
|
|
4577
|
+
}
|
|
4578
|
+
__name(titleCase, "titleCase");
|
|
4576
4579
|
|
|
4577
4580
|
// ../type-checks/src/is-string.ts
|
|
4578
4581
|
init_cjs_shims();
|
|
@@ -4672,16 +4675,16 @@ __name(getEnvPaths, "getEnvPaths");
|
|
|
4672
4675
|
// ../path/src/get-workspace-root.ts
|
|
4673
4676
|
init_cjs_shims();
|
|
4674
4677
|
|
|
4675
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4678
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/index.js
|
|
4676
4679
|
init_cjs_shims();
|
|
4677
4680
|
|
|
4678
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4681
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-K6PUXRK3.js
|
|
4679
4682
|
init_cjs_shims();
|
|
4680
4683
|
|
|
4681
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4684
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-NQFXB5CV.js
|
|
4682
4685
|
init_cjs_shims();
|
|
4683
4686
|
|
|
4684
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4687
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-SHUYVCID.js
|
|
4685
4688
|
init_cjs_shims();
|
|
4686
4689
|
var __defProp2 = Object.defineProperty;
|
|
4687
4690
|
var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", {
|
|
@@ -4689,7 +4692,7 @@ var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name
|
|
|
4689
4692
|
configurable: true
|
|
4690
4693
|
}), "__name");
|
|
4691
4694
|
|
|
4692
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4695
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-NQFXB5CV.js
|
|
4693
4696
|
var import_node_fs2 = require("node:fs");
|
|
4694
4697
|
var import_node_path2 = require("node:path");
|
|
4695
4698
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
@@ -4711,7 +4714,7 @@ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
|
4711
4714
|
__name(findFolderUp, "findFolderUp");
|
|
4712
4715
|
__name2(findFolderUp, "findFolderUp");
|
|
4713
4716
|
|
|
4714
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4717
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-D6E6GZD2.js
|
|
4715
4718
|
init_cjs_shims();
|
|
4716
4719
|
var _DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
|
|
4717
4720
|
function normalizeWindowsPath2(input = "") {
|
|
@@ -4828,7 +4831,7 @@ var isAbsolute2 = /* @__PURE__ */ __name2(function(p) {
|
|
|
4828
4831
|
return _IS_ABSOLUTE_RE2.test(p);
|
|
4829
4832
|
}, "isAbsolute");
|
|
4830
4833
|
|
|
4831
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4834
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-K6PUXRK3.js
|
|
4832
4835
|
var rootFiles = [
|
|
4833
4836
|
"storm-workspace.json",
|
|
4834
4837
|
"storm-workspace.json",
|
package/dist/generator.js
CHANGED
|
@@ -190,9 +190,10 @@ init_esm_shims();
|
|
|
190
190
|
|
|
191
191
|
// ../string-format/src/lower-case-first.ts
|
|
192
192
|
init_esm_shims();
|
|
193
|
-
|
|
193
|
+
function lowerCaseFirst(input) {
|
|
194
194
|
return input ? input.charAt(0).toLowerCase() + input.slice(1) : input;
|
|
195
|
-
}
|
|
195
|
+
}
|
|
196
|
+
__name(lowerCaseFirst, "lowerCaseFirst");
|
|
196
197
|
|
|
197
198
|
// src/access-control.ts
|
|
198
199
|
var USER_RESOURCES = [
|
|
@@ -4541,17 +4542,19 @@ var ACRONYMS = [
|
|
|
4541
4542
|
|
|
4542
4543
|
// ../string-format/src/upper-case-first.ts
|
|
4543
4544
|
init_esm_shims();
|
|
4544
|
-
|
|
4545
|
+
function upperCaseFirst(input) {
|
|
4545
4546
|
return input ? input.charAt(0).toUpperCase() + input.slice(1) : input;
|
|
4546
|
-
}
|
|
4547
|
+
}
|
|
4548
|
+
__name(upperCaseFirst, "upperCaseFirst");
|
|
4547
4549
|
|
|
4548
4550
|
// ../string-format/src/title-case.ts
|
|
4549
|
-
|
|
4551
|
+
function titleCase(input) {
|
|
4550
4552
|
if (!input) {
|
|
4551
|
-
return
|
|
4553
|
+
return input;
|
|
4552
4554
|
}
|
|
4553
4555
|
return input.split(/(?=[A-Z])|[\s._-]/).map((s) => s.trim()).filter(Boolean).map((s) => ACRONYMS.includes(s) ? s.toUpperCase() : upperCaseFirst(s.toLowerCase())).join(" ");
|
|
4554
|
-
}
|
|
4556
|
+
}
|
|
4557
|
+
__name(titleCase, "titleCase");
|
|
4555
4558
|
|
|
4556
4559
|
// ../type-checks/src/is-string.ts
|
|
4557
4560
|
init_esm_shims();
|
|
@@ -4651,16 +4654,16 @@ __name(getEnvPaths, "getEnvPaths");
|
|
|
4651
4654
|
// ../path/src/get-workspace-root.ts
|
|
4652
4655
|
init_esm_shims();
|
|
4653
4656
|
|
|
4654
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4657
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/index.js
|
|
4655
4658
|
init_esm_shims();
|
|
4656
4659
|
|
|
4657
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4660
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-K6PUXRK3.js
|
|
4658
4661
|
init_esm_shims();
|
|
4659
4662
|
|
|
4660
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4663
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-NQFXB5CV.js
|
|
4661
4664
|
init_esm_shims();
|
|
4662
4665
|
|
|
4663
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4666
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-SHUYVCID.js
|
|
4664
4667
|
init_esm_shims();
|
|
4665
4668
|
var __defProp2 = Object.defineProperty;
|
|
4666
4669
|
var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", {
|
|
@@ -4668,7 +4671,7 @@ var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name
|
|
|
4668
4671
|
configurable: true
|
|
4669
4672
|
}), "__name");
|
|
4670
4673
|
|
|
4671
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4674
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-NQFXB5CV.js
|
|
4672
4675
|
import { existsSync as existsSync2 } from "node:fs";
|
|
4673
4676
|
import { join } from "node:path";
|
|
4674
4677
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
@@ -4690,7 +4693,7 @@ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
|
4690
4693
|
__name(findFolderUp, "findFolderUp");
|
|
4691
4694
|
__name2(findFolderUp, "findFolderUp");
|
|
4692
4695
|
|
|
4693
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4696
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-D6E6GZD2.js
|
|
4694
4697
|
init_esm_shims();
|
|
4695
4698
|
var _DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
|
|
4696
4699
|
function normalizeWindowsPath2(input = "") {
|
|
@@ -4807,7 +4810,7 @@ var isAbsolute2 = /* @__PURE__ */ __name2(function(p) {
|
|
|
4807
4810
|
return _IS_ABSOLUTE_RE2.test(p);
|
|
4808
4811
|
}, "isAbsolute");
|
|
4809
4812
|
|
|
4810
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4813
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-K6PUXRK3.js
|
|
4811
4814
|
var rootFiles = [
|
|
4812
4815
|
"storm-workspace.json",
|
|
4813
4816
|
"storm-workspace.json",
|
package/dist/index.cjs
CHANGED
|
@@ -207,9 +207,10 @@ init_cjs_shims();
|
|
|
207
207
|
|
|
208
208
|
// ../string-format/src/lower-case-first.ts
|
|
209
209
|
init_cjs_shims();
|
|
210
|
-
|
|
210
|
+
function lowerCaseFirst(input) {
|
|
211
211
|
return input ? input.charAt(0).toLowerCase() + input.slice(1) : input;
|
|
212
|
-
}
|
|
212
|
+
}
|
|
213
|
+
__name(lowerCaseFirst, "lowerCaseFirst");
|
|
213
214
|
|
|
214
215
|
// src/access-control.ts
|
|
215
216
|
var USER_RESOURCES = [
|
|
@@ -4558,17 +4559,19 @@ var ACRONYMS = [
|
|
|
4558
4559
|
|
|
4559
4560
|
// ../string-format/src/upper-case-first.ts
|
|
4560
4561
|
init_cjs_shims();
|
|
4561
|
-
|
|
4562
|
+
function upperCaseFirst(input) {
|
|
4562
4563
|
return input ? input.charAt(0).toUpperCase() + input.slice(1) : input;
|
|
4563
|
-
}
|
|
4564
|
+
}
|
|
4565
|
+
__name(upperCaseFirst, "upperCaseFirst");
|
|
4564
4566
|
|
|
4565
4567
|
// ../string-format/src/title-case.ts
|
|
4566
|
-
|
|
4568
|
+
function titleCase(input) {
|
|
4567
4569
|
if (!input) {
|
|
4568
|
-
return
|
|
4570
|
+
return input;
|
|
4569
4571
|
}
|
|
4570
4572
|
return input.split(/(?=[A-Z])|[\s._-]/).map((s) => s.trim()).filter(Boolean).map((s) => ACRONYMS.includes(s) ? s.toUpperCase() : upperCaseFirst(s.toLowerCase())).join(" ");
|
|
4571
|
-
}
|
|
4573
|
+
}
|
|
4574
|
+
__name(titleCase, "titleCase");
|
|
4572
4575
|
|
|
4573
4576
|
// ../type-checks/src/is-string.ts
|
|
4574
4577
|
init_cjs_shims();
|
|
@@ -4668,16 +4671,16 @@ __name(getEnvPaths, "getEnvPaths");
|
|
|
4668
4671
|
// ../path/src/get-workspace-root.ts
|
|
4669
4672
|
init_cjs_shims();
|
|
4670
4673
|
|
|
4671
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4674
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/index.js
|
|
4672
4675
|
init_cjs_shims();
|
|
4673
4676
|
|
|
4674
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4677
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-K6PUXRK3.js
|
|
4675
4678
|
init_cjs_shims();
|
|
4676
4679
|
|
|
4677
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4680
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-NQFXB5CV.js
|
|
4678
4681
|
init_cjs_shims();
|
|
4679
4682
|
|
|
4680
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4683
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-SHUYVCID.js
|
|
4681
4684
|
init_cjs_shims();
|
|
4682
4685
|
var __defProp2 = Object.defineProperty;
|
|
4683
4686
|
var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", {
|
|
@@ -4685,7 +4688,7 @@ var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name
|
|
|
4685
4688
|
configurable: true
|
|
4686
4689
|
}), "__name");
|
|
4687
4690
|
|
|
4688
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4691
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-NQFXB5CV.js
|
|
4689
4692
|
var import_node_fs2 = require("node:fs");
|
|
4690
4693
|
var import_node_path2 = require("node:path");
|
|
4691
4694
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
@@ -4707,7 +4710,7 @@ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
|
4707
4710
|
__name(findFolderUp, "findFolderUp");
|
|
4708
4711
|
__name2(findFolderUp, "findFolderUp");
|
|
4709
4712
|
|
|
4710
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4713
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-D6E6GZD2.js
|
|
4711
4714
|
init_cjs_shims();
|
|
4712
4715
|
var _DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
|
|
4713
4716
|
function normalizeWindowsPath2(input = "") {
|
|
@@ -4824,7 +4827,7 @@ var isAbsolute2 = /* @__PURE__ */ __name2(function(p) {
|
|
|
4824
4827
|
return _IS_ABSOLUTE_RE2.test(p);
|
|
4825
4828
|
}, "isAbsolute");
|
|
4826
4829
|
|
|
4827
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4830
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-K6PUXRK3.js
|
|
4828
4831
|
var rootFiles = [
|
|
4829
4832
|
"storm-workspace.json",
|
|
4830
4833
|
"storm-workspace.json",
|
package/dist/index.js
CHANGED
|
@@ -186,9 +186,10 @@ init_esm_shims();
|
|
|
186
186
|
|
|
187
187
|
// ../string-format/src/lower-case-first.ts
|
|
188
188
|
init_esm_shims();
|
|
189
|
-
|
|
189
|
+
function lowerCaseFirst(input) {
|
|
190
190
|
return input ? input.charAt(0).toLowerCase() + input.slice(1) : input;
|
|
191
|
-
}
|
|
191
|
+
}
|
|
192
|
+
__name(lowerCaseFirst, "lowerCaseFirst");
|
|
192
193
|
|
|
193
194
|
// src/access-control.ts
|
|
194
195
|
var USER_RESOURCES = [
|
|
@@ -4537,17 +4538,19 @@ var ACRONYMS = [
|
|
|
4537
4538
|
|
|
4538
4539
|
// ../string-format/src/upper-case-first.ts
|
|
4539
4540
|
init_esm_shims();
|
|
4540
|
-
|
|
4541
|
+
function upperCaseFirst(input) {
|
|
4541
4542
|
return input ? input.charAt(0).toUpperCase() + input.slice(1) : input;
|
|
4542
|
-
}
|
|
4543
|
+
}
|
|
4544
|
+
__name(upperCaseFirst, "upperCaseFirst");
|
|
4543
4545
|
|
|
4544
4546
|
// ../string-format/src/title-case.ts
|
|
4545
|
-
|
|
4547
|
+
function titleCase(input) {
|
|
4546
4548
|
if (!input) {
|
|
4547
|
-
return
|
|
4549
|
+
return input;
|
|
4548
4550
|
}
|
|
4549
4551
|
return input.split(/(?=[A-Z])|[\s._-]/).map((s) => s.trim()).filter(Boolean).map((s) => ACRONYMS.includes(s) ? s.toUpperCase() : upperCaseFirst(s.toLowerCase())).join(" ");
|
|
4550
|
-
}
|
|
4552
|
+
}
|
|
4553
|
+
__name(titleCase, "titleCase");
|
|
4551
4554
|
|
|
4552
4555
|
// ../type-checks/src/is-string.ts
|
|
4553
4556
|
init_esm_shims();
|
|
@@ -4647,16 +4650,16 @@ __name(getEnvPaths, "getEnvPaths");
|
|
|
4647
4650
|
// ../path/src/get-workspace-root.ts
|
|
4648
4651
|
init_esm_shims();
|
|
4649
4652
|
|
|
4650
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4653
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/index.js
|
|
4651
4654
|
init_esm_shims();
|
|
4652
4655
|
|
|
4653
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4656
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-K6PUXRK3.js
|
|
4654
4657
|
init_esm_shims();
|
|
4655
4658
|
|
|
4656
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4659
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-NQFXB5CV.js
|
|
4657
4660
|
init_esm_shims();
|
|
4658
4661
|
|
|
4659
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4662
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-SHUYVCID.js
|
|
4660
4663
|
init_esm_shims();
|
|
4661
4664
|
var __defProp2 = Object.defineProperty;
|
|
4662
4665
|
var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", {
|
|
@@ -4664,7 +4667,7 @@ var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name
|
|
|
4664
4667
|
configurable: true
|
|
4665
4668
|
}), "__name");
|
|
4666
4669
|
|
|
4667
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4670
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-NQFXB5CV.js
|
|
4668
4671
|
import { existsSync as existsSync2 } from "node:fs";
|
|
4669
4672
|
import { join } from "node:path";
|
|
4670
4673
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
@@ -4686,7 +4689,7 @@ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
|
4686
4689
|
__name(findFolderUp, "findFolderUp");
|
|
4687
4690
|
__name2(findFolderUp, "findFolderUp");
|
|
4688
4691
|
|
|
4689
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4692
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-D6E6GZD2.js
|
|
4690
4693
|
init_esm_shims();
|
|
4691
4694
|
var _DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
|
|
4692
4695
|
function normalizeWindowsPath2(input = "") {
|
|
@@ -4803,7 +4806,7 @@ var isAbsolute2 = /* @__PURE__ */ __name2(function(p) {
|
|
|
4803
4806
|
return _IS_ABSOLUTE_RE2.test(p);
|
|
4804
4807
|
}, "isAbsolute");
|
|
4805
4808
|
|
|
4806
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
4809
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-K6PUXRK3.js
|
|
4807
4810
|
var rootFiles = [
|
|
4808
4811
|
"storm-workspace.json",
|
|
4809
4812
|
"storm-workspace.json",
|