Skip to content

chore(deps-dev): bump @babel/preset-typescript from 7.26.0 to 7.27.0 #2627

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: app
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"@babel/core": "^7.26.9",
"@babel/preset-env": "^7.26.9",
"@babel/preset-react": "^7.26.3",
"@babel/preset-typescript": "^7.26.0",
"@babel/preset-typescript": "^7.27.0",
"@eslint/compat": "^1.2.7",
"@eslint/eslintrc": "^3.3.0",
"@eslint/js": "^9.21.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/fdr-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"devDependencies": {
"@babel/core": "^7.26.9",
"@babel/preset-env": "^7.26.0",
"@babel/preset-typescript": "^7.26.0",
"@babel/preset-typescript": "^7.27.0",
"@fern-platform/configs": "workspace:*",
"@types/node-fetch": "2.6.9",
"@types/qs": "6.9.14",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ export function templateTransformer(
// Start looking for a template pattern
if (containsStart(tokens[i]?.content)) {
const startIndex = i;
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
let openBraces = extractOpenBraces(tokens[i]!.content);
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
let variableName = extractAfterOpenBraces(tokens[i]!.content);
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
let closeBraces = extractCloseBraces(tokens[i]!.content);
let j = i + 1;

Expand All @@ -52,6 +55,7 @@ export function templateTransformer(
if (templateVariables.has(variableName)) {
result.push({
content: `{{${variableName}}}`,
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
offset: tokens[i]!.offset,
htmlAttrs: {
"data-template": variableName,
Expand All @@ -66,6 +70,7 @@ export function templateTransformer(
j < tokens.length &&
(openBraces !== "{{" || closeBraces !== "}}")
) {
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
const tokenContent = tokens[j]!.content;

if (openBraces !== "{{") {
Expand Down Expand Up @@ -104,6 +109,7 @@ export function templateTransformer(
if (templateVariables.has(variableName)) {
result.push({
content: `{{${variableName}}}`,
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
offset: tokens[startIndex]!.offset,
htmlAttrs: {
"data-template": variableName,
Expand All @@ -117,6 +123,7 @@ export function templateTransformer(
}

// If no template pattern was matched, just add the token
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
result.push(tokens[i]!);
i++;
}
Expand Down Expand Up @@ -144,6 +151,7 @@ function findTemplateVariables(text: string): {

while ((match = regex.exec(text)) != null) {
results.push({
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
variableName: match[1]!,
startIndex: match.index,
endIndex: match.index + match[0].length,
Expand Down
Loading
Loading