forex-quotes
Advanced tools
Comparing version 5.0.5 to 6.0.0
MIT License | ||
Copyright (c) 2019 Forex API LLC | ||
Copyright (c) 2020 Forex API LLC | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
{ | ||
"name": "forex-quotes", | ||
"version": "5.0.5", | ||
"version": "6.0.0", | ||
"description": "Realtime forex quote API client", | ||
@@ -26,4 +26,4 @@ "main": "./lib/ForgeClient.js", | ||
"prepublish": "npm run build", | ||
"lint": "tslint --project ./tsconfig.json 'src/**/*.ts'", | ||
"lint-fix": "tslint --fix --project ./tsconfig.json 'src/**/*.ts'", | ||
"lint": "tslint --project ./tsconfig.json \"src/**/*.ts\"", | ||
"lint-fix": "tslint --fix --project ./tsconfig.json \"src/**/*.ts\"", | ||
"build": "npm run lint && tsc" | ||
@@ -30,0 +30,0 @@ }, |
@@ -61,9 +61,9 @@ # javascript-forex-quotes | ||
// Subscribe to a single currency pair | ||
client.subscribeTo('EURUSD'); | ||
client.subscribeTo('EUR/USD'); | ||
// Subscribe to an array of currency pairs | ||
client.subscribeTo([ | ||
'GBPJPY', | ||
'AUDCAD', | ||
'EURCHF', | ||
'GBP/JPY', | ||
'AUD/CAD', | ||
'EUR/CHF', | ||
]); | ||
@@ -75,9 +75,9 @@ | ||
// Unsubscribe from a single currency pair | ||
client.unsubscribeFrom('EURUSD'); | ||
client.unsubscribeFrom('EUR/USD'); | ||
// Unsubscribe from an array of currency pairs | ||
client.unsubscribeFrom([ | ||
'GBPJPY', | ||
'AUDCAD', | ||
'EURCHF' | ||
'GBP/JPY', | ||
'AUD/CAD', | ||
'EUR/CHF' | ||
]); | ||
@@ -107,3 +107,3 @@ | ||
// Get quotes for specified symbols: | ||
client.getQuotes(['EURUSD', 'GBPJPY', 'AUDUSD']).then(response => { | ||
client.getQuotes(['EUR/USD', 'GBP/JPY', 'AUD/USD']).then(response => { | ||
console.log(response); | ||
@@ -110,0 +110,0 @@ }); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
60098
15
787
1
1