Skip to content

Commit f4ee9bf

Browse files
mydeaandreiborza
andauthored
ref(core): Remove duplicate internal DEBUG_BUILD constant (#16264)
Noticed we still have this twice from the utils-hoist folder. --------- Co-authored-by: Andrei <[email protected]>
1 parent f533f0a commit f4ee9bf

File tree

9 files changed

+7
-17
lines changed

9 files changed

+7
-17
lines changed

dev-packages/node-integration-tests/suites/tracing/requests/http-no-tracing-no-spans/test.ts

-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ describe('outgoing http requests with tracing & spans disabled', () => {
3232

3333
await createRunner()
3434
.withEnv({ SERVER_URL })
35-
.ensureNoErrorOutput()
3635
.expect({
3736
event: {
3837
exception: {
@@ -131,7 +130,6 @@ describe('outgoing http requests with tracing & spans disabled', () => {
131130

132131
await createRunner()
133132
.withEnv({ SERVER_URL })
134-
.ensureNoErrorOutput()
135133
.expect({
136134
event: {
137135
exception: {

packages/core/src/utils-hoist/baggage.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { DynamicSamplingContext } from '../types-hoist/envelope';
2-
import { DEBUG_BUILD } from './debug-build';
2+
import { DEBUG_BUILD } from './../debug-build';
33
import { isString } from './is';
44
import { logger } from './logger';
55

packages/core/src/utils-hoist/debug-build.ts

-8
This file was deleted.

packages/core/src/utils-hoist/dsn.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { DsnComponents, DsnLike, DsnProtocol } from '../types-hoist/dsn';
2-
import { DEBUG_BUILD } from './debug-build';
2+
import { DEBUG_BUILD } from './../debug-build';
33
import { consoleSandbox, logger } from './logger';
44

55
/** Regular expression used to parse a Dsn. */

packages/core/src/utils-hoist/instrument/handlers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DEBUG_BUILD } from '../debug-build';
1+
import { DEBUG_BUILD } from '../../debug-build';
22
import { logger } from '../logger';
33
import { getFunctionName } from '../stacktrace';
44

packages/core/src/utils-hoist/logger.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { getGlobalSingleton } from '../carrier';
22
import type { ConsoleLevel } from '../types-hoist/instrument';
3-
import { DEBUG_BUILD } from './debug-build';
3+
import { DEBUG_BUILD } from './../debug-build';
44
import { GLOBAL_OBJ } from './worldwide';
55

66
/** Prefix for logging strings */

packages/core/src/utils-hoist/object.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
22
import type { WrappedFunction } from '../types-hoist/wrappedfunction';
3+
import { DEBUG_BUILD } from './../debug-build';
34
import { htmlTreeAsString } from './browser';
4-
import { DEBUG_BUILD } from './debug-build';
55
import { isElement, isError, isEvent, isInstanceOf, isPrimitive } from './is';
66
import { logger } from './logger';
77
import { truncate } from './string';

packages/core/src/utils-hoist/supports.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DEBUG_BUILD } from './debug-build';
1+
import { DEBUG_BUILD } from './../debug-build';
22
import { logger } from './logger';
33
import { GLOBAL_OBJ } from './worldwide';
44

packages/core/test/utils-hoist/dsn.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { beforeEach, describe, expect, test, vi } from 'vitest';
2-
import { DEBUG_BUILD } from '../../src/utils-hoist/debug-build';
2+
import { DEBUG_BUILD } from '../../src/debug-build';
33
import { dsnToString, makeDsn } from '../../src/utils-hoist/dsn';
44
import { logger } from '../../src/utils-hoist/logger';
55

0 commit comments

Comments
 (0)