This repository was archived by the owner on Mar 17, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,8 +24,7 @@ import {
2424 SpanKind ,
2525} from '@opentelemetry/api' ;
2626
27- // eslint-disable-next-line @typescript-eslint/no-var-requires
28- const PKG = require ( '../../package.json' ) ;
27+ import * as PKG from '../package.json' ;
2928
3029/**
3130 * @internal
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ import * as extend from 'extend';
2121import { GoogleAuth } from 'google-auth-library' ;
2222import * as gax from 'google-gax' ;
2323
24- // eslint-disable-next-line @typescript-eslint/no-var-requires
25- const PKG = require ( '../../package.json' ) ;
24+ import * as PKG from '../package.json' ;
25+
2626// eslint-disable-next-line @typescript-eslint/no-var-requires
2727const v1 = require ( './v1' ) ;
2828
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ import * as subby from '../src/subscription';
2828import { Topic } from '../src/topic' ;
2929import * as util from '../src/util' ;
3030
31- // eslint-disable-next-line @typescript-eslint/no-var-requires
32- const PKG = require ( '../../package.json' ) ;
31+ import * as PKG from '../package.json' ;
32+
3333const sandbox = sinon . createSandbox ( ) ;
3434
3535const fakeCreds = { } as gax . grpc . ChannelCredentials ;
You can’t perform that action at this time.
0 commit comments