@narative/oanda-v20
Advanced tools
Comparing version 3.0.50 to 3.0.51
@@ -57,2 +57,2 @@ import * as accountAPI from './api/account'; | ||
export declare function toOANDATime(date: Date, dateFormat?: 'UNIX' | 'RFC3339'): string; | ||
export declare function oandaTimeToDate(data: any, dateFormat?: 'UNIX' | 'RFC3339'): number | Date; | ||
export declare function oandaTimeToDate(data: any, dateFormat?: 'UNIX' | 'RFC3339'): Date; |
@@ -156,5 +156,5 @@ "use strict"; | ||
if (dateFormat === void 0) { dateFormat = 'UNIX'; } | ||
return dateFormat === 'UNIX' ? new Date(Number(data) * 1000) : Date.parse(data); | ||
return dateFormat === 'UNIX' ? new Date(Number(data) * 1000) : new Date(Date.parse(data)); | ||
} | ||
exports.oandaTimeToDate = oandaTimeToDate; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@narative/oanda-v20", | ||
"description": "OANDA v20 bindings for Javascript", | ||
"version": "3.0.50", | ||
"version": "3.0.51", | ||
"author": "OANDA Corporation", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/narative/v20-javascript", |
@@ -216,3 +216,3 @@ import * as accountAPI from './api/account' | ||
export function oandaTimeToDate(data: any, dateFormat: 'UNIX' | 'RFC3339' = 'UNIX') { | ||
return dateFormat === 'UNIX' ? new Date(Number(data) * 1000) : Date.parse(data) | ||
return dateFormat === 'UNIX' ? new Date(Number(data) * 1000) : new Date(Date.parse(data)) | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4079193