Skip to content

Commit

Permalink
Removing path.normalize from package.json require
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendan Clement authored and tianrenz committed May 8, 2018
1 parent 4f578e7 commit ab7b34c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ask-sdk-core/lib/util/AskSdkUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function createAskSdkError(errorName : string, errorMessage : string) : E
* @returns {string}
*/
export function createAskSdkUserAgent(customUserAgent : string) : string {
const packageInfo = require(path.normalize('../../package.json'));
const packageInfo = require('../../package.json');
const customUserAgentString = customUserAgent ? (' ' + customUserAgent) : '';

return `ask-node/${packageInfo.version} Node/${process.version}` + customUserAgentString;
Expand Down

0 comments on commit ab7b34c

Please sign in to comment.