Socket
Socket
Sign inDemoInstall

@barchart/events-api-common

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@barchart/events-api-common - npm Package Compare versions

Comparing version 1.3.6 to 1.3.7

18

lib/data/EventType.js
const assert = require('@barchart/common-js/lang/assert'),
array = require('@barchart/common-js/lang/array'),
Enum = require('@barchart/common-js/lang/Enum');

@@ -178,2 +179,19 @@

/**
* Get all context keys for productType.
*
* @public
* @static
* @param {ProductType} productType
* @returns {Array}
*/
static getContextKeysFor(productType) {
assert.argumentIsRequired(productType, 'productType', ProductType, 'ProductType');
return array.unique(Enum.getItems(EventType)
.filter(eventType => eventType.product === productType)
.reduce((acc, item) => acc.concat(item.contextKeys), [ ])
);
}
toString() {

@@ -180,0 +198,0 @@ return `[EventType (code=${this.code})]`;

2

package.json
{
"name": "@barchart/events-api-common",
"version": "1.3.6",
"version": "1.3.7",
"description": "Common classes used by the Event system",

@@ -5,0 +5,0 @@ "author": {

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