Skip to content

Commit 9827987

Browse files
author
Sébastien Henau
committed
kebab-casing to camelCasing
1 parent 7a81b17 commit 9827987

10 files changed

+10
-10
lines changed

packages/react/src/FlareErrorBoundary.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { flare } from '@flareapp/js';
22
import { Component, ErrorInfo, type PropsWithChildren, type ReactNode } from 'react';
33

4-
import { formatComponentStack } from './format-component-stack';
5-
import { parseComponentStack } from './parse-component-stack';
4+
import { formatComponentStack } from './formatComponentStack';
5+
import { parseComponentStack } from './parseComponentStack';
66
import { FlareReactContext } from './types';
77

88
export type FlareErrorBoundaryFallbackProps = {

packages/react/src/flare-react-error-handler.ts renamed to packages/react/src/flareReactErrorHandler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { flare } from '@flareapp/js';
22

3-
import { convertToError } from './convert-to-error';
4-
import { formatComponentStack } from './format-component-stack';
5-
import { parseComponentStack } from './parse-component-stack';
3+
import { convertToError } from './convertToError';
4+
import { formatComponentStack } from './formatComponentStack';
5+
import { parseComponentStack } from './parseComponentStack';
66
import { FlareReactContext } from './types';
77

88
export type FlareReactErrorHandlerCallback = (error: unknown, errorInfo: { componentStack?: string }) => void;
File renamed without changes.

packages/react/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ export {
99
flareReactErrorHandler,
1010
type FlareReactErrorHandlerCallback,
1111
type FlareReactErrorHandlerOptions,
12-
} from './flare-react-error-handler';
12+
} from './flareReactErrorHandler';
File renamed without changes.

packages/react/tests/convert-to-error.test.ts renamed to packages/react/tests/convertToError.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, expect, test } from 'vitest';
22

3-
import { convertToError } from '../src/convert-to-error';
3+
import { convertToError } from '../src/convertToError';
44

55
describe('convertToError', () => {
66
test('returns the same Error instance if given an Error', () => {

packages/react/tests/flare-react-error-handler.test.ts renamed to packages/react/tests/flareReactErrorHandler.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { beforeEach, describe, expect, test, vi } from 'vitest';
22

3-
import { flareReactErrorHandler } from '../src/flare-react-error-handler';
3+
import { flareReactErrorHandler } from '../src/flareReactErrorHandler';
44

55
const mockReport = vi.fn();
66

packages/react/tests/format-component-stack.test.ts renamed to packages/react/tests/formatComponentStack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, expect, test } from 'vitest';
22

3-
import { formatComponentStack } from '../src/format-component-stack';
3+
import { formatComponentStack } from '../src/formatComponentStack';
44

55
describe('formatComponentStack', () => {
66
test('splits a component stack into lines', () => {

packages/react/tests/parse-component-stack.test.ts renamed to packages/react/tests/parseComponentStack.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, expect, test } from 'vitest';
22

3-
import { parseComponentStack } from '../src/parse-component-stack';
3+
import { parseComponentStack } from '../src/parseComponentStack';
44

55
describe('parseComponentStack', () => {
66
describe('Chrome format (at Component (file:line:col))', () => {

0 commit comments

Comments
 (0)