Skip to content

Commit

Permalink
fix: version cycle (#657)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt authored Sep 22, 2021
1 parent 89e7881 commit cbe54d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@ import { TimeZoneRequest, TimeZoneResponse, timezone } from "./timezone";
import axios, { AxiosInstance, AxiosRequestConfig } from "axios";

import { HttpsAgent } from "agentkeepalive";
import { version } from "./index";
import { customAdapter } from "./adapter";

// Cannot be `import` as it's not under TS root dir
export const version = require("../package.json").version;
export const defaultHttpsAgent = new HttpsAgent({ keepAlive: true });
export const defaultTimeout = 10000;
export const userAgent = `google-maps-services-node-${version}`;
Expand Down
3 changes: 0 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
* limitations under the License.
*/

// Cannot be `import` as it's not under TS root dir
export const version = require("../package.json").version;

export { DirectionsRequest, DirectionsResponse } from "./directions";
export { DistanceMatrixRequest, DistanceMatrixResponse } from "./distance";
export { ElevationRequest, ElevationResponse } from "./elevation";
Expand Down

0 comments on commit cbe54d1

Please sign in to comment.