Skip to content

Commit bbc3738

Browse files
committed
format
1 parent e32de45 commit bbc3738

File tree

8 files changed

+19
-17
lines changed

8 files changed

+19
-17
lines changed

integration/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ Assuming you have a `react-parcel` template defined in `integration/templates`,
368368
```
369369
370370
Here's what each thing is doing:
371+
371372
- `setName`: Set internal name
372373
- `useTemplate`: Define which template inside `integration/templates` to use
373374
- `setEnvFormatter`: Define how environment variables should be formatted. The first argument accepts `'public'` and `'private'`. Inside [`envs.ts`](./presets/envs.ts) the environment variables you can use through [`withEnv`](#environment-configs) are defined. Since different frameworks require environment variables to be in different formats (e.g. Next.js wants public env vars to be prefixed with `NEXT_PUBLIC_`) you can use this formatter to change that.

packages/localizations/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ We're open to all community contributions! If you'd like to contribute in any wa
6666
1. Open the [`localizations/src/en-US.ts`](https://github.com/clerk/javascript/blob/main/packages/localizations/src/en-US.ts) file and add your new key to the object. `en-US` is the default language. If you feel comfortable adding your message in another language than English, feel free to also edit other files.
6767

6868
1. Use the new localization key inside the component. There are two ways:
69+
6970
- The string is inside a component like `<Text>`:
7071

7172
```diff

packages/react/src/components/uiComponents.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { logErrorInDevMode } from '@clerk/shared/utils';
21
import type {
32
APIKeysProps,
43
CreateOrganizationProps,
@@ -16,6 +15,7 @@ import type {
1615
WaitlistProps,
1716
Without,
1817
} from '@clerk/shared/types';
18+
import { logErrorInDevMode } from '@clerk/shared/utils';
1919
import type { PropsWithChildren, ReactNode } from 'react';
2020
import React, { createContext, createElement, useContext } from 'react';
2121

packages/react/src/isomorphicClerk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { inBrowser } from '@clerk/shared/browser';
22
import { clerkEvents, createClerkEventBus } from '@clerk/shared/clerkEventBus';
33
import { loadClerkJsScript } from '@clerk/shared/loadClerkJsScript';
4-
import { handleValueOrFn } from '@clerk/shared/utils';
54
import type {
65
__internal_CheckoutProps,
76
__internal_OAuthConsentProps,
@@ -55,6 +54,7 @@ import type {
5554
WaitlistResource,
5655
Without,
5756
} from '@clerk/shared/types';
57+
import { handleValueOrFn } from '@clerk/shared/utils';
5858

5959
import { errorThrower } from './errors/errorThrower';
6060
import { unsupportedNonBrowserDomainOrProxyUrlFunction } from './errors/messages';

packages/react/src/utils/useCustomMenuItems.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { logErrorInDevMode } from '@clerk/shared/utils';
21
import type { CustomMenuItem } from '@clerk/shared/types';
2+
import { logErrorInDevMode } from '@clerk/shared/utils';
33
import type { ReactElement } from 'react';
44
import React from 'react';
55

packages/react/src/utils/useCustomPages.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { logErrorInDevMode } from '@clerk/shared/utils';
21
import type { CustomPage } from '@clerk/shared/types';
2+
import { logErrorInDevMode } from '@clerk/shared/utils';
33
import type { ReactElement } from 'react';
44
import React from 'react';
55

packages/shared/src/compiled/path-to-regexp/index.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ function _(r) {
4545
break;
4646
}
4747
if (!u) throw new TypeError('Missing parameter name at '.concat(e));
48-
(n.push({
48+
n.push({
4949
type: 'NAME',
5050
index: e,
5151
value: u,
5252
}),
53-
(e = t));
53+
(e = t);
5454
continue;
5555
}
5656
if (a === '(') {
@@ -74,12 +74,12 @@ function _(r) {
7474
}
7575
if (o) throw new TypeError('Unbalanced pattern at '.concat(e));
7676
if (!m) throw new TypeError('Missing pattern at '.concat(e));
77-
(n.push({
77+
n.push({
7878
type: 'PATTERN',
7979
index: e,
8080
value: m,
8181
}),
82-
(e = t));
82+
(e = t);
8383
continue;
8484
}
8585
n.push({
@@ -147,15 +147,15 @@ function F(r, n) {
147147
C = f('PATTERN');
148148
if (x || C) {
149149
var g = T || '';
150-
(u.indexOf(g) === -1 && ((p += g), (g = '')),
150+
u.indexOf(g) === -1 && ((p += g), (g = '')),
151151
p && (o.push(p), (p = '')),
152152
o.push({
153153
name: x || m++,
154154
prefix: g,
155155
suffix: '',
156156
pattern: C || A(g),
157157
modifier: f('MODIFIER') || '',
158-
}));
158+
});
159159
continue;
160160
}
161161
var i = T || f('ESCAPED_CHAR');
@@ -170,14 +170,14 @@ function F(r, n) {
170170
y = f('NAME') || '',
171171
O = f('PATTERN') || '',
172172
b = d();
173-
(w('CLOSE'),
173+
w('CLOSE'),
174174
o.push({
175175
name: y || (O ? m++ : ''),
176176
pattern: y && !O ? A(g) : O,
177177
prefix: g,
178178
suffix: b,
179179
modifier: f('MODIFIER') || '',
180-
}));
180+
});
181181
continue;
182182
}
183183
w('END');
@@ -240,14 +240,14 @@ function D(r) {
240240
function $(r, n) {
241241
if (!n) return r;
242242
for (var e = /\((?:\?<(.*?)>)?(?!\?)/g, a = 0, u = e.exec(r.source); u; )
243-
(n.push({
243+
n.push({
244244
name: u[1] || a++,
245245
prefix: '',
246246
suffix: '',
247247
modifier: '',
248248
pattern: '',
249249
}),
250-
(u = e.exec(r.source)));
250+
(u = e.exec(r.source));
251251
return r;
252252
}
253253

@@ -316,11 +316,11 @@ function U(r, n, e) {
316316
else x += '(?:'.concat(R).concat(y, ')').concat(i.modifier);
317317
}
318318
}
319-
if (m) (u || (x += ''.concat(T, '?')), (x += e.endsWith ? '(?='.concat(A, ')') : '$'));
319+
if (m) u || (x += ''.concat(T, '?')), (x += e.endsWith ? '(?='.concat(A, ')') : '$');
320320
else {
321321
var b = r[r.length - 1],
322322
l = typeof b == 'string' ? T.indexOf(b[b.length - 1]) > -1 : b === void 0;
323-
(u || (x += '(?:'.concat(T, '(?=').concat(A, '))?')), l || (x += '(?='.concat(T, '|').concat(A, ')')));
323+
u || (x += '(?:'.concat(T, '(?=').concat(A, '))?')), l || (x += '(?='.concat(T, '|').concat(A, ')'));
324324
}
325325
return new RegExp(x, D(e));
326326
}

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ catalogs:
2525
tsup: 8.5.0
2626
typescript: 5.8.3
2727
zx: 8.8.5
28-
rolldown: 1.0.0-beta.43
28+
rolldown: 1.0.0-beta.43

0 commit comments

Comments
 (0)