diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8870c0a..d558f7a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,7 +13,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 - name: Install packages run: npm install - name: Run test diff --git a/.github/workflows/npm-publish.yaml b/.github/workflows/npm-publish.yaml index 2502893..a571ee0 100644 --- a/.github/workflows/npm-publish.yaml +++ b/.github/workflows/npm-publish.yaml @@ -13,7 +13,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 - run: npm install - run: npm run build - uses: JS-DevTools/npm-publish@v1 diff --git a/src/client.ts b/src/client.ts index 81631c5..76648c6 100644 --- a/src/client.ts +++ b/src/client.ts @@ -31,14 +31,17 @@ export class Client { ) { this.fileDescriptorCache = new Map(); this.metadata = metadata || new Metadata(); - const rsi = services.ServerReflectionService.serverReflectionInfo; const CustomServerReflectionClient = makeGenericClientConstructor( { - serverReflectionInfo: { - ...rsi, - path: path + rsi.path, - }, + serverReflectionInfo: Object.assign( + {}, + services.ServerReflectionService.serverReflectionInfo, + { + path: + path + services.ServerReflectionService.serverReflectionInfo.path, + } + ), }, '' );