Skip to content

Commit 3bd7b94

Browse files
committed
fix: protobufjs imports
1 parent 6c95132 commit 3bd7b94

File tree

7 files changed

+7
-6
lines changed

7 files changed

+7
-6
lines changed

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodejs 18.13.0

src/components/grpc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
import * as protoLoader from '@grpc/proto-loader';
1717
import _ from 'lodash';
1818
import sizeof from 'object-sizeof';
19-
import * as protobufjs from 'protobufjs';
19+
import protobufjs from 'protobufjs';
2020
import type * as descriptor from 'protobufjs/ext/descriptor';
2121
import {v4 as uuidv4} from 'uuid';
2222

src/models/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
} from 'axios';
1616
import {IAxiosRetryConfig} from 'axios-retry';
1717
import type {Request, Response} from 'express';
18-
import * as protobufjs from 'protobufjs';
18+
import protobufjs from 'protobufjs';
1919

2020
import type {GrpcContext} from '../components/grpc.js';
2121
import {Lang} from '../constants.js';

src/utils/grpc-reflection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type {ChannelCredentials} from '@grpc/grpc-js';
22
import type {Client as GrpcReflectionClient} from 'grpc-reflection-js';
33
import _ from 'lodash';
4-
import * as protobufjs from 'protobufjs';
4+
import protobufjs from 'protobufjs';
55

66
import {patchProtoPathResolver} from './proto-path-resolver.js';
77

src/utils/grpc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
ClientUnaryCall,
88
ClientWritableStream,
99
} from '@grpc/grpc-js';
10-
import * as protobufjs from 'protobufjs';
10+
import protobufjs from 'protobufjs';
1111

1212
import {
1313
DEFAULT_PROTO_LOADER_OPTIONS,

src/utils/parse-error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as grpc from '@grpc/grpc-js';
22
import _ from 'lodash';
3-
import * as protobufjs from 'protobufjs';
3+
import protobufjs from 'protobufjs';
44

55
import {Lang} from '../constants.js';
66
import {GatewayError} from '../models/common.js';

src/utils/proto-path-resolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as fs from 'fs';
22
import * as path from 'path';
33

4-
import * as protobufjs from 'protobufjs';
4+
import protobufjs from 'protobufjs';
55

66
export function patchProtoPathResolver(root: protobufjs.Root, includeDirs: string[]) {
77
const originalResolvePath = root.resolvePath;

0 commit comments

Comments
 (0)