Socket
Socket
Sign inDemoInstall

@equitysim/trkd-client

Package Overview
Dependencies
Maintainers
5
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@equitysim/trkd-client - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

src/formatting/field-maps/dividend-frequencies.js

2

package.json
{
"name": "@equitysim/trkd-client",
"version": "0.1.5",
"version": "0.1.6",
"description": "REST Client for TRKD API",

@@ -5,0 +5,0 @@ "main": "index.js",

export default {
RIC: {
type: String,
name: 'id',
},
CURRENCY: {

@@ -79,3 +75,3 @@ type: String,

DIVIDENDTP: {
type: Number,
type: String,
name: 'dividendFrequency',

@@ -82,0 +78,0 @@ },

@@ -43,7 +43,7 @@ export default {

CouponFrequency: {
type: String,
type: Number,
name: 'couponFrequency',
},
CouponRate: {
type: String,
type: Number,
name: 'couponRate',

@@ -50,0 +50,0 @@ },

import quoteFields from './field-maps/quote-fields'
import recordTypes from './field-maps/record-types'
import dividendFrequencies from './field-maps/dividend-frequencies'
/**

@@ -26,6 +27,10 @@ * Used to construct TRKD models from the RetrieveItem3 response

if (mapResult.type === String) {
if (mapResult.type === String && typeof data === 'string') {
data = data.trim()
}
if (mapResult.name === 'dividendFrequency') {
data = dividendFrequencies[data] || 4
}
if (mapResult.name === 'recordType') {

@@ -32,0 +37,0 @@ data = recordTypes[data]

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc