Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/Util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ import {ApiErrorResponseSchema} from "./kms/KmsApi";
import {TenantSecurityErrorCode, TenantSecurityException} from "./TenantSecurityException";
import {TenantSecurityExceptionUtils} from "./TenantSecurityExceptionUtils";
import {TspServiceException} from "./TspServiceException";
import {version} from "../package.json";
import * as Crypto from "./kms/Crypto";
import * as DetCrypto from "./kms/DeterministicCrypto";
import * as http from "http";
import * as https from "https";
import * as Joi from "joi";

// Loaded via require so tsc doesn't include package.json in the program and
// elevate the inferred rootDir above ./src (which would nest the build output).
// eslint-disable-next-line @typescript-eslint/no-var-requires
const {version} = require("../package.json") as {version: string};

/**
* Try to JSON parse error responses from the TSP to extract error codes and messages.
*/
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"noUnusedLocals": true,
"declaration": false,
"target": "ES6",
"rootDir": "./src",
"module": "commonjs",
"moduleResolution": "node",
"resolveJsonModule": true,
Expand Down