@glue42/bbg-market-data
Advanced tools
Comparing version 0.0.1-alpha.0 to 0.0.1-alpha.1
@@ -35,6 +35,3 @@ "use strict"; | ||
const endDate = date_fns_1.format(date_fns_1.parseISO(args.endDate), constants_1.BLOOMBERG_REQUEST_DATE_FORMAT); | ||
let requestArgs = Object.assign(Object.assign({}, args), { startDate: startDate, endDate: endDate, overrides: Array.isArray(args.overrides) ? args.overrides : [] }); | ||
if (!utils_1.isNumber(args.maxDataPoints)) { | ||
requestArgs = utils_1.omit(requestArgs)('maxDataPoints'); | ||
} | ||
const requestArgs = Object.assign(Object.assign({}, args), { startDate: startDate, endDate: endDate }); | ||
const operationArgs = Object.entries(requestArgs) | ||
@@ -41,0 +38,0 @@ .map(([key, value]) => ({ [key]: value })); |
@@ -36,7 +36,4 @@ "use strict"; | ||
const endDateTime = date_fns_1.format(date_fns_1.parseISO(args.endDateTime), constants_1.BLOOMBERG_DATE_TIME_FORMAT); | ||
let requestArgs = Object.assign(Object.assign({}, args), { startDateTime, | ||
const requestArgs = Object.assign(Object.assign({}, args), { startDateTime, | ||
endDateTime }); | ||
if (!utils_1.isNumber(args.interval)) { | ||
requestArgs = utils_1.omit(requestArgs)('interval'); | ||
} | ||
const requestArgsAsArray = Object.entries(requestArgs) | ||
@@ -43,0 +40,0 @@ .map(([key, value]) => ({ [key]: value })); |
@@ -20,4 +20,3 @@ "use strict"; | ||
function convertToOperationArgs(args) { | ||
const requestArgs = Object.assign(Object.assign({}, args), { overrides: Array.isArray(args.overrides) ? args.overrides : [] }); | ||
const requestArgsAsArray = Object.entries(requestArgs) | ||
const requestArgsAsArray = Object.entries(args) | ||
.map(([key, value]) => ({ [key]: value })); | ||
@@ -24,0 +23,0 @@ return requestArgsAsArray; |
import { __assign } from "tslib"; | ||
import { isNullOrUndefined, nameOf as nameOfFactory, isNumber, omit, isEmptyArray } from './../utils'; | ||
import { isNullOrUndefined, nameOf as nameOfFactory, isEmptyArray } from './../utils'; | ||
import { parseISO, isAfter, format } from 'date-fns'; | ||
@@ -33,6 +33,3 @@ import { BLOOMBERG_REQUEST_DATE_FORMAT } from './../constants'; | ||
var endDate = format(parseISO(args.endDate), BLOOMBERG_REQUEST_DATE_FORMAT); | ||
var requestArgs = __assign(__assign({}, args), { startDate: startDate, endDate: endDate, overrides: Array.isArray(args.overrides) ? args.overrides : [] }); | ||
if (!isNumber(args.maxDataPoints)) { | ||
requestArgs = omit(requestArgs)('maxDataPoints'); | ||
} | ||
var requestArgs = __assign(__assign({}, args), { startDate: startDate, endDate: endDate }); | ||
var operationArgs = Object.entries(requestArgs) | ||
@@ -39,0 +36,0 @@ .map(function (_a) { |
import { __assign } from "tslib"; | ||
import { IntraDayEventType } from './request-args'; | ||
import { isNullOrUndefined, nameOf as nameOfFactory, isEmpty, existValueInEnum, isNumber, omit } from './../utils'; | ||
import { isNullOrUndefined, nameOf as nameOfFactory, isEmpty, existValueInEnum } from './../utils'; | ||
import { parseISO, isAfter, format } from 'date-fns'; | ||
@@ -36,5 +36,2 @@ import { BLOOMBERG_DATE_TIME_FORMAT } from './../constants'; | ||
endDateTime: endDateTime }); | ||
if (!isNumber(args.interval)) { | ||
requestArgs = omit(requestArgs)('interval'); | ||
} | ||
var requestArgsAsArray = Object.entries(requestArgs) | ||
@@ -41,0 +38,0 @@ .map(function (_a) { |
@@ -1,2 +0,1 @@ | ||
import { __assign } from "tslib"; | ||
import { isNullOrUndefined, nameOf as nameOfFactory, isEmptyArray } from './../utils'; | ||
@@ -18,4 +17,3 @@ import { RequestType } from '../request-types'; | ||
export function convertToOperationArgs(args) { | ||
var requestArgs = __assign(__assign({}, args), { overrides: Array.isArray(args.overrides) ? args.overrides : [] }); | ||
var requestArgsAsArray = Object.entries(requestArgs) | ||
var requestArgsAsArray = Object.entries(args) | ||
.map(function (_a) { | ||
@@ -22,0 +20,0 @@ var _b; |
@@ -1,2 +0,2 @@ | ||
import { isNullOrUndefined, nameOf as nameOfFactory, isNumber, omit, isEmptyArray } from './../utils'; | ||
import { isNullOrUndefined, nameOf as nameOfFactory, isEmptyArray } from './../utils'; | ||
import { parseISO, isAfter, format } from 'date-fns'; | ||
@@ -32,6 +32,3 @@ import { BLOOMBERG_REQUEST_DATE_FORMAT } from './../constants'; | ||
const endDate = format(parseISO(args.endDate), BLOOMBERG_REQUEST_DATE_FORMAT); | ||
let requestArgs = Object.assign(Object.assign({}, args), { startDate: startDate, endDate: endDate, overrides: Array.isArray(args.overrides) ? args.overrides : [] }); | ||
if (!isNumber(args.maxDataPoints)) { | ||
requestArgs = omit(requestArgs)('maxDataPoints'); | ||
} | ||
const requestArgs = Object.assign(Object.assign({}, args), { startDate: startDate, endDate: endDate }); | ||
const operationArgs = Object.entries(requestArgs) | ||
@@ -38,0 +35,0 @@ .map(([key, value]) => ({ [key]: value })); |
import { IntraDayEventType } from './request-args'; | ||
import { isNullOrUndefined, nameOf as nameOfFactory, isEmpty, existValueInEnum, isNumber, omit } from './../utils'; | ||
import { isNullOrUndefined, nameOf as nameOfFactory, isEmpty, existValueInEnum } from './../utils'; | ||
import { parseISO, isAfter, format } from 'date-fns'; | ||
@@ -33,7 +33,4 @@ import { BLOOMBERG_DATE_TIME_FORMAT } from './../constants'; | ||
const endDateTime = format(parseISO(args.endDateTime), BLOOMBERG_DATE_TIME_FORMAT); | ||
let requestArgs = Object.assign(Object.assign({}, args), { startDateTime, | ||
const requestArgs = Object.assign(Object.assign({}, args), { startDateTime, | ||
endDateTime }); | ||
if (!isNumber(args.interval)) { | ||
requestArgs = omit(requestArgs)('interval'); | ||
} | ||
const requestArgsAsArray = Object.entries(requestArgs) | ||
@@ -40,0 +37,0 @@ .map(([key, value]) => ({ [key]: value })); |
@@ -17,6 +17,5 @@ import { isNullOrUndefined, nameOf as nameOfFactory, isEmptyArray } from './../utils'; | ||
export function convertToOperationArgs(args) { | ||
const requestArgs = Object.assign(Object.assign({}, args), { overrides: Array.isArray(args.overrides) ? args.overrides : [] }); | ||
const requestArgsAsArray = Object.entries(requestArgs) | ||
const requestArgsAsArray = Object.entries(args) | ||
.map(([key, value]) => ({ [key]: value })); | ||
return requestArgsAsArray; | ||
} |
@@ -0,0 +0,0 @@ GLUE42 SAMPLE AND DEMO CODE LICENSE AGREEMENT |
{ | ||
"name": "@glue42/bbg-market-data", | ||
"version": "0.0.1-alpha.0", | ||
"version": "0.0.1-alpha.1", | ||
"main": "./dist/cjs/index.js", | ||
@@ -17,2 +17,11 @@ "module": "./dist/es/index.js", | ||
], | ||
"keywords": [ | ||
"glue", | ||
"glue42", | ||
"desktop", | ||
"interop", | ||
"bbg", | ||
"bloomberg", | ||
"market data" | ||
], | ||
"scripts": { | ||
@@ -19,0 +28,0 @@ "clean": "gulp clean-dist", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
513197
6477
1