@keycloakify/svelte 0.2.11 → 0.2.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keycloakify/svelte",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "description": "Svelte Components for Keycloakify",
5
5
  "keywords": [
6
6
  "keycloak",
@@ -498,35 +498,35 @@
498
498
  "devDependencies": {
499
499
  "@eslint/js": "^10.0.1",
500
500
  "@sveltejs/adapter-auto": "^7.0.1",
501
- "@sveltejs/kit": "^2.59.1",
502
- "@sveltejs/package": "^2.5.7",
501
+ "@sveltejs/kit": "^2.63.0",
502
+ "@sveltejs/package": "^2.5.8",
503
503
  "@sveltejs/vite-plugin-svelte": "^7.1.2",
504
504
  "@types/eslint": "^9.6.1",
505
505
  "@types/node": "^24.11.0",
506
- "@vercel/ncc": "^0.38.4",
507
506
  "chalk": "^5.6.2",
508
507
  "cli-select": "^1.1.2",
509
508
  "conventional-changelog": "^7.2.0",
510
509
  "conventional-changelog-angular": "^8.3.1",
511
- "eslint": "^10.3.0",
510
+ "esbuild": "^0.28.0",
511
+ "eslint": "^10.4.1",
512
512
  "eslint-config-prettier": "^10.1.8",
513
- "eslint-plugin-prettier": "^5.5.5",
514
- "eslint-plugin-svelte": "^3.17.1",
513
+ "eslint-plugin-prettier": "^5.5.6",
514
+ "eslint-plugin-svelte": "^3.19.0",
515
515
  "eslint-plugin-unused-imports": "^4.4.1",
516
516
  "globals": "^17.6.0",
517
517
  "husky": "^9.1.7",
518
518
  "keycloakify": "^11.15.3",
519
- "npm-check-updates": "^22.1.1",
519
+ "npm-check-updates": "^22.2.3",
520
520
  "prettier": "^3.8.3",
521
- "prettier-plugin-svelte": "^3.5.1",
522
- "publint": "^0.3.20",
523
- "svelte": "^5.55.5",
524
- "svelte-check": "^4.4.8",
521
+ "prettier-plugin-svelte": "^4.1.0",
522
+ "publint": "^0.3.21",
523
+ "svelte": "^5.56.2",
524
+ "svelte-check": "^4.6.0",
525
525
  "ts-node": "^10.9.2",
526
- "tsx": "4.20.4",
527
- "typescript": "~5.9.3",
528
- "typescript-eslint": "^8.59.2",
529
- "vite": "^8.0.11",
526
+ "tsx": "^4.22.4",
527
+ "typescript": "~6.0.3",
528
+ "typescript-eslint": "^8.60.1",
529
+ "vite": "^8.0.16",
530
530
  "zod": "^4.4.3"
531
531
  },
532
532
  "bin": {
@@ -5,18 +5,17 @@
5
5
  "noUnusedLocals": true,
6
6
  "noUnusedParameters": true,
7
7
  "strict": true,
8
- "downlevelIteration": true,
9
8
  "noFallthroughCasesInSwitch": true,
10
9
  "composite": true,
11
- "rootDir": ".",
10
+ "rootDir": "./",
12
11
  "module": "ES2020",
13
12
  "target": "ES2017",
14
13
  "esModuleInterop": true,
15
14
  "lib": ["es2015", "ES2019.Object"],
16
- "moduleResolution": "node"
15
+ "moduleResolution": "bundler"
17
16
  },
18
- "include": ["**/*.ts"],
19
- "exclude": ["initialize-account-theme/boilerplate"],
17
+ "include": ["./**/*.ts"],
18
+ "exclude": ["./initialize-account-theme/boilerplate"],
20
19
  "ts-node": {
21
20
  "esm": true
22
21
  }
@@ -1,381 +0,0 @@
1
- export const id = 200;
2
- export const ids = [200];
3
- export const modules = {
4
-
5
- /***/ 697:
6
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
7
-
8
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9
- /* harmony export */ J: () => (/* binding */ getThisCodebaseRootDirPath),
10
- /* harmony export */ x: () => (/* binding */ getNearestPackageJsonDirPath)
11
- /* harmony export */ });
12
- /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(896);
13
- /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);
14
- /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(928);
15
- /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
16
- /* harmony import */ var url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16);
17
- /* harmony import */ var url__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(url__WEBPACK_IMPORTED_MODULE_2__);
18
-
19
-
20
-
21
- const __dirname = path__WEBPACK_IMPORTED_MODULE_1__.dirname(url__WEBPACK_IMPORTED_MODULE_2__.fileURLToPath(import.meta.url));
22
- function getThisCodebaseRootDirPath_rec(dirPath) {
23
- if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, 'LICENSE'))) {
24
- return dirPath;
25
- }
26
- return getThisCodebaseRootDirPath_rec(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, '..'));
27
- }
28
- let result = undefined;
29
- function getThisCodebaseRootDirPath() {
30
- if (result !== undefined) {
31
- return result;
32
- }
33
- return (result = getThisCodebaseRootDirPath_rec(__dirname));
34
- }
35
- function getNearestPackageJsonDirPath(dirPath) {
36
- if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, 'package.json'))) {
37
- return dirPath;
38
- }
39
- return getNearestPackageJsonDirPath(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, '..'));
40
- }
41
-
42
-
43
- /***/ }),
44
-
45
- /***/ 399:
46
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
47
-
48
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
49
- /* harmony export */ p: () => (/* binding */ getNodeModulesBinDirPath)
50
- /* harmony export */ });
51
- /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(928);
52
- /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);
53
- /* harmony import */ var _getThisCodebaseRootDirPath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(697);
54
-
55
-
56
- let cache = undefined;
57
- /** NOTE: Careful, this function can fail when the binary
58
- * Used is not in the node_modules directory of the project
59
- * (for example when running tests with vscode extension we'll get
60
- * '/Users/dylan/.vscode/extensions/vitest.explorer-1.16.0/dist/worker.js'
61
- *
62
- * instead of
63
- * '/Users/joseph/.nvm/versions/node/v22.12.0/bin/node'
64
- * or
65
- * '/Users/joseph/github/keycloakify-starter/node_modules/.bin/vite'
66
- *
67
- * as the value of process.argv[1]
68
- */
69
- function getNodeModulesBinDirPath() {
70
- if (cache !== undefined) {
71
- return cache;
72
- }
73
- const binPath = process.argv[1];
74
- special_case_running_not_from_distribution: {
75
- if (!binPath.endsWith('.ts')) {
76
- break special_case_running_not_from_distribution;
77
- }
78
- const packageJsonDirPath = (0,_getThisCodebaseRootDirPath__WEBPACK_IMPORTED_MODULE_1__/* .getNearestPackageJsonDirPath */ .x)((0,path__WEBPACK_IMPORTED_MODULE_0__.dirname)(binPath));
79
- const nodeModulesBinDirPath = (0,path__WEBPACK_IMPORTED_MODULE_0__.join)(packageJsonDirPath, 'node_modules', '.bin');
80
- return nodeModulesBinDirPath;
81
- }
82
- const segments = ['.bin'];
83
- let foundNodeModules = false;
84
- for (const segment of binPath.split(path__WEBPACK_IMPORTED_MODULE_0__.sep).reverse()) {
85
- skip_segment: {
86
- if (foundNodeModules) {
87
- break skip_segment;
88
- }
89
- if (segment === 'node_modules') {
90
- foundNodeModules = true;
91
- break skip_segment;
92
- }
93
- continue;
94
- }
95
- segments.unshift(segment);
96
- }
97
- if (!foundNodeModules) {
98
- throw new Error(`Could not find node_modules in path ${binPath}`);
99
- }
100
- const nodeModulesBinDirPath = segments.join(path__WEBPACK_IMPORTED_MODULE_0__.sep);
101
- cache = nodeModulesBinDirPath;
102
- return nodeModulesBinDirPath;
103
- }
104
-
105
-
106
- /***/ }),
107
-
108
- /***/ 479:
109
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
110
-
111
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
112
- /* harmony export */ JS: () => (/* binding */ runPrettier),
113
- /* harmony export */ L: () => (/* binding */ getIsPrettierAvailable)
114
- /* harmony export */ });
115
- /* unused harmony export getPrettier */
116
- /* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(276);
117
- /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(982);
118
- /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(crypto__WEBPACK_IMPORTED_MODULE_0__);
119
- /* harmony import */ var fs_promises__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(943);
120
- /* harmony import */ var fs_promises__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fs_promises__WEBPACK_IMPORTED_MODULE_1__);
121
- /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(928);
122
- /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_2__);
123
- /* harmony import */ var tsafe_assert__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(966);
124
- /* harmony import */ var tsafe_id__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(94);
125
- /* harmony import */ var tsafe_symToStr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(886);
126
- /* harmony import */ var _nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(399);
127
- /* module decorator */ module = __webpack_require__.hmd(module);
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
- getIsPrettierAvailable.cache = (0,tsafe_id__WEBPACK_IMPORTED_MODULE_3__.id)(undefined);
137
- async function getIsPrettierAvailable() {
138
- var _a;
139
- if (getIsPrettierAvailable.cache !== undefined) {
140
- return getIsPrettierAvailable.cache;
141
- }
142
- const nodeModulesBinDirPath = (0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_4__/* .getNodeModulesBinDirPath */ .p)();
143
- const prettierBinPath = (0,path__WEBPACK_IMPORTED_MODULE_2__.join)(nodeModulesBinDirPath, 'prettier');
144
- const stats = await fs_promises__WEBPACK_IMPORTED_MODULE_1__.stat(prettierBinPath).catch(() => undefined);
145
- const isPrettierAvailable = (_a = stats === null || stats === void 0 ? void 0 : stats.isFile()) !== null && _a !== void 0 ? _a : false;
146
- getIsPrettierAvailable.cache = isPrettierAvailable;
147
- return isPrettierAvailable;
148
- }
149
- getPrettier.cache = (0,tsafe_id__WEBPACK_IMPORTED_MODULE_3__.id)(undefined);
150
- async function getPrettier() {
151
- (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_5__/* .assert */ .v)(getIsPrettierAvailable());
152
- if (getPrettier.cache !== undefined) {
153
- return getPrettier.cache;
154
- }
155
- let prettier = (0,tsafe_id__WEBPACK_IMPORTED_MODULE_3__.id)(undefined);
156
- import_prettier: {
157
- const prettierDirPath = (0,path__WEBPACK_IMPORTED_MODULE_2__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_2__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_4__/* .getNodeModulesBinDirPath */ .p)(), '..', 'prettier'));
158
- const isCJS = true && module.exports;
159
- if (isCJS) {
160
- eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_6__/* .symToStr */ .I)({ prettier })} = require("${prettierDirPath}")`);
161
- }
162
- else {
163
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
164
- prettier = await new Promise((_resolve) => {
165
- eval(`import("file:///${(0,path__WEBPACK_IMPORTED_MODULE_2__.join)(prettierDirPath, 'index.mjs').replace(/\\/g, '/')}").then(prettier => _resolve(prettier))`);
166
- });
167
- }
168
- (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_5__/* .assert */ .v)(!(0,tsafe_assert__WEBPACK_IMPORTED_MODULE_5__.is)(prettier));
169
- break import_prettier;
170
- }
171
- const configHash = await (async () => {
172
- const configFilePath = await prettier.resolveConfigFile((0,path__WEBPACK_IMPORTED_MODULE_2__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_4__/* .getNodeModulesBinDirPath */ .p)(), '..', '..'));
173
- if (configFilePath === null) {
174
- return '';
175
- }
176
- const data = await fs_promises__WEBPACK_IMPORTED_MODULE_1__.readFile(configFilePath);
177
- return crypto__WEBPACK_IMPORTED_MODULE_0__.createHash('sha256').update(data).digest('hex');
178
- })();
179
- const prettierAndConfig = {
180
- prettier,
181
- configHash,
182
- };
183
- getPrettier.cache = prettierAndConfig;
184
- return prettierAndConfig;
185
- }
186
- async function runPrettier(params) {
187
- const { sourceCode, filePath } = params;
188
- let formattedSourceCode;
189
- try {
190
- const { prettier } = await getPrettier();
191
- const { ignored, inferredParser } = await prettier.getFileInfo(filePath, {
192
- resolveConfig: true,
193
- });
194
- if (ignored || inferredParser === null) {
195
- return sourceCode;
196
- }
197
- const config = await prettier.resolveConfig(filePath);
198
- formattedSourceCode = await prettier.format(typeof sourceCode === 'string' ? sourceCode : sourceCode.toString('utf8'), Object.assign(Object.assign({}, config), { filePath, parser: inferredParser }));
199
- }
200
- catch (error) {
201
- console.log(chalk__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Ay.red(`You probably need to upgrade the version of prettier in your project`));
202
- throw error;
203
- }
204
- return typeof sourceCode === 'string' ? formattedSourceCode : Buffer.from(formattedSourceCode, 'utf8');
205
- }
206
-
207
-
208
- /***/ }),
209
-
210
- /***/ 200:
211
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
212
-
213
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
214
- /* harmony export */ command: () => (/* binding */ command)
215
- /* harmony export */ });
216
- /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(982);
217
- /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(crypto__WEBPACK_IMPORTED_MODULE_0__);
218
- /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(896);
219
- /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_1__);
220
- /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(928);
221
- /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_2__);
222
- /* harmony import */ var _tools_runPrettier__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(479);
223
-
224
-
225
-
226
-
227
- async function command(params) {
228
- const { buildContext } = params;
229
- const filePath = (0,path__WEBPACK_IMPORTED_MODULE_2__.join)(buildContext.themeSrcDirPath, 'kc.gen.ts');
230
- const svelteFilePath = (0,path__WEBPACK_IMPORTED_MODULE_2__.join)(buildContext.themeSrcDirPath, 'kc.gen.svelte');
231
- const hasLoginTheme = buildContext.implementedThemeTypes.login.isImplemented;
232
- const hasAccountTheme = buildContext.implementedThemeTypes.account.isImplemented;
233
- const hasAdminTheme = buildContext.implementedThemeTypes.admin.isImplemented;
234
- const newContent = [
235
- `/* eslint-disable */`,
236
- ``,
237
- `// @ts-nocheck`,
238
- ``,
239
- `// noinspection JSUnusedGlobalSymbols`,
240
- ``,
241
- `export type ThemeName = ${buildContext.themeNames.map((themeName) => `"${themeName}"`).join(' | ')};`,
242
- ``,
243
- `export const themeNames: ThemeName[] = [${buildContext.themeNames.map((themeName) => `"${themeName}"`).join(', ')}];`,
244
- ``,
245
- `export type KcEnvName = ${buildContext.environmentVariables.length === 0 ? 'never' : buildContext.environmentVariables.map(({ name }) => `"${name}"`).join(' | ')};`,
246
- ``,
247
- `export const kcEnvNames: KcEnvName[] = [${buildContext.environmentVariables.map(({ name }) => `"${name}"`).join(', ')}];`,
248
- ``,
249
- `export const kcEnvDefaults: Record<KcEnvName, string> = ${JSON.stringify(Object.fromEntries(buildContext.environmentVariables.map(({ name, default: defaultValue }) => [name, defaultValue])), null, 2)};`,
250
- ``,
251
- `export type KcContext =`,
252
- hasLoginTheme && ` | import("./login/KcContext").KcContext`,
253
- hasAccountTheme && ` | import("./account/KcContext").KcContext`,
254
- hasAdminTheme && ` | import("./admin/KcContext").KcContext`,
255
- ``,
256
- `declare global {`,
257
- ` interface Window {`,
258
- ` kcContext?: KcContext;`,
259
- ` }`,
260
- `}`,
261
- ``,
262
- ]
263
- .filter((item) => typeof item === 'string')
264
- .join('\n');
265
- const newSvelteContent = [
266
- ` import type { Component } from 'svelte';`,
267
- ` import type { KcContext } from './kc.gen';`,
268
- ``,
269
- ` const { kcContext, Fallback }: { kcContext: KcContext; Fallback?: Component } = $props();`,
270
- ``,
271
- hasLoginTheme && ` const KcLoginPage = import("./login/KcPage.svelte");`,
272
- hasAccountTheme && ` const KcAccountPage = import("./account/KcPage.svelte");`,
273
- hasAdminTheme && ` const KcAdminPage = import("./admin/KcPage.svelte");`,
274
- `</script>`,
275
- ``,
276
- `{#if kcContext.themeType === 'login'}`,
277
- hasLoginTheme && ` {#await KcLoginPage}`,
278
- hasLoginTheme && ` {#if Fallback}`,
279
- hasLoginTheme && ` <Fallback></Fallback>`,
280
- hasLoginTheme && ` {/if}`,
281
- hasLoginTheme && ` {:then { default: KcPage }}`,
282
- hasLoginTheme && ` <KcPage {kcContext} />`,
283
- hasLoginTheme && ` {/await}`,
284
- !hasLoginTheme && ` <!-- login not implemented -->`,
285
- `{:else if kcContext.themeType === 'account'}`,
286
- hasAccountTheme && ` {#await KcAccountPage}`,
287
- hasAccountTheme && ` {#if Fallback}`,
288
- hasAccountTheme && ` <Fallback></Fallback>`,
289
- hasAccountTheme && ` {/if}`,
290
- hasAccountTheme && ` {:then { default: KcPage }}`,
291
- hasAccountTheme && ` <KcPage {kcContext} />`,
292
- hasAccountTheme && ` {/await}`,
293
- !hasAccountTheme && ` <!-- account not implemented -->`,
294
- // TODO: admin theme
295
- `{/if}`,
296
- ]
297
- .filter((item) => typeof item === 'string')
298
- .join('\n');
299
- const hash = crypto__WEBPACK_IMPORTED_MODULE_0__.createHash('sha256').update(newContent).digest('hex');
300
- const svelteHash = crypto__WEBPACK_IMPORTED_MODULE_0__.createHash('sha256').update(newSvelteContent).digest('hex');
301
- skip_if_no_changes: {
302
- if (!fs__WEBPACK_IMPORTED_MODULE_1__.existsSync(filePath)) {
303
- break skip_if_no_changes;
304
- }
305
- const currentContent = fs__WEBPACK_IMPORTED_MODULE_1__.readFileSync(filePath).toString('utf8');
306
- if (!currentContent.includes(hash)) {
307
- break skip_if_no_changes;
308
- }
309
- return;
310
- }
311
- skip_if_no_svelte_changes: {
312
- if (!fs__WEBPACK_IMPORTED_MODULE_1__.existsSync(svelteFilePath)) {
313
- break skip_if_no_svelte_changes;
314
- }
315
- const currentContent = fs__WEBPACK_IMPORTED_MODULE_1__.readFileSync(svelteFilePath).toString('utf8');
316
- if (!currentContent.includes(svelteHash)) {
317
- break skip_if_no_svelte_changes;
318
- }
319
- return;
320
- }
321
- let sourceCode = [
322
- `// This file is auto-generated by keycloakify. Do not edit it manually.`,
323
- `// Hash: ${hash}`,
324
- ``,
325
- newContent,
326
- ].join('\n');
327
- let svelteSourceCode = [
328
- `<script lang="ts">`,
329
- `// This file is auto-generated by keycloakify. Do not edit it manually.`,
330
- `// Hash: ${svelteHash}`,
331
- ``,
332
- newSvelteContent,
333
- ].join('\n');
334
- run_prettier: {
335
- if (!(await (0,_tools_runPrettier__WEBPACK_IMPORTED_MODULE_3__/* .getIsPrettierAvailable */ .L)())) {
336
- break run_prettier;
337
- }
338
- sourceCode = await (0,_tools_runPrettier__WEBPACK_IMPORTED_MODULE_3__/* .runPrettier */ .JS)({
339
- filePath,
340
- sourceCode,
341
- });
342
- svelteSourceCode = await (0,_tools_runPrettier__WEBPACK_IMPORTED_MODULE_3__/* .runPrettier */ .JS)({
343
- filePath: svelteFilePath,
344
- sourceCode: svelteSourceCode,
345
- });
346
- }
347
- fs__WEBPACK_IMPORTED_MODULE_1__.writeFileSync(filePath, Buffer.from(sourceCode, 'utf8'));
348
- fs__WEBPACK_IMPORTED_MODULE_1__.writeFileSync(svelteFilePath, Buffer.from(svelteSourceCode, 'utf8'));
349
- }
350
-
351
-
352
- /***/ }),
353
-
354
- /***/ 94:
355
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
356
-
357
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
358
- /* harmony export */ id: () => (/* binding */ id)
359
- /* harmony export */ });
360
- /** https://docs.tsafe.dev/id */
361
- const id = (x) => x;
362
- //# sourceMappingURL=id.mjs.map
363
-
364
- /***/ }),
365
-
366
- /***/ 886:
367
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
368
-
369
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
370
- /* harmony export */ I: () => (/* binding */ symToStr)
371
- /* harmony export */ });
372
- /** @see <https://docs.tsafe.dev/main/symtostr> */
373
- function symToStr(wrap) {
374
- // @ts-expect-error: We know better
375
- return Object.keys(wrap)[0];
376
- }
377
- //# sourceMappingURL=symToStr.mjs.map
378
-
379
- /***/ })
380
-
381
- };