Skip to content

Commit 2d47e30

Browse files
committed
format
1 parent f8fd33c commit 2d47e30

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

integration/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,6 @@ Assuming you have a `react-parcel` template defined in `integration/templates`,
368368
```
369369
370370
Here's what each thing is doing:
371-
372371
- `setName`: Set internal name
373372
- `useTemplate`: Define which template inside `integration/templates` to use
374373
- `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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ 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-
7069
- The string is inside a component like `<Text>`:
7170

7271
```diff

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
}

0 commit comments

Comments
 (0)