Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@master-chief/alpaca

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@master-chief/alpaca - npm Package Compare versions

Comparing version 6.2.1 to 6.2.2

./@types/client.d.ts

8

CHANGELOG.md
# Changelog
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
All notable changes to this project will be documented in this file. See
[standard-version](https://github.com/conventional-changelog/standard-version)
for commit guidelines.
### [6.2.2](https://github.com/117/alpaca/compare/v6.2.1...v6.2.2) (2021-05-21)
- Fixed `AlpacaStream` issue [#71](https://github.com/117/alpaca/issues/71)
### [6.2.1](https://github.com/117/alpaca/compare/v6.2.0...v6.2.1) (2021-05-18)

@@ -6,0 +12,0 @@

2

package.json
{
"name": "@master-chief/alpaca",
"version": "6.2.1",
"version": "6.2.2",
"description": "A TypeScript Node.js library for the https://alpaca.markets REST API and WebSocket streams.",

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

@@ -107,7 +107,13 @@ import WebSocket from 'isomorphic-ws'

this.connection.onmessage = (event: any) => {
let parsed = JSON.parse(event.data),
messages: any[] = this.params.type == 'account' ? [parsed] : parsed
this.connection.onmessage = async (event: any) => {
let data = event.data
messages.forEach((message) => {
if (data instanceof Blob) {
data = await event.data.text()
}
let parsed = JSON.parse(data),
messages = this.params.type == 'account' ? [parsed] : parsed
messages.forEach((message: any) => {
// pass the message

@@ -114,0 +120,0 @@ this.emit('message', message)

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