@barchart/portfolio-client-js 1.1.22 → 1.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -467,12 +467,6 @@ module.exports = function () {
467
467
  assert.argumentIsRequired(transaction.portfolio, 'transaction.portfolio', String);
468
468
  assert.argumentIsOptional(transaction.position, 'transaction.position', String);
469
469
 
470
- if (transaction.type instanceof TransactionType) {
471
- assert.argumentIsRequired(transaction.type, 'transaction.type', TransactionType, 'TransactionType');
472
- } else {
473
- assert.argumentIsRequired(transaction.type, 'transaction.type', String);
474
- }
475
-
476
470
  if (!transaction.position) {
477
471
  transaction.position = 'new';
478
472
  }
@@ -1004,7 +998,7 @@ module.exports = function () {
1004
998
  return {
1005
999
  JwtGateway: JwtGateway,
1006
1000
  PortfolioGateway: PortfolioGateway,
1007
- version: '1.1.22'
1001
+ version: '1.1.23'
1008
1002
  };
1009
1003
  }();
1010
1004
 
@@ -450,12 +450,6 @@ module.exports = (() => {
450
450
  assert.argumentIsRequired(transaction.portfolio, 'transaction.portfolio', String);
451
451
  assert.argumentIsOptional(transaction.position, 'transaction.position', String);
452
452
 
453
- if (transaction.type instanceof TransactionType) {
454
- assert.argumentIsRequired(transaction.type, 'transaction.type', TransactionType, 'TransactionType');
455
- } else {
456
- assert.argumentIsRequired(transaction.type, 'transaction.type', String);
457
- }
458
-
459
453
  if (!transaction.position) {
460
454
  transaction.position = 'new';
461
455
  }
package/lib/index.js CHANGED
@@ -7,6 +7,6 @@ module.exports = (() => {
7
7
  return {
8
8
  JwtGateway: JwtGateway,
9
9
  PortfolioGateway: PortfolioGateway,
10
- version: '1.1.22'
10
+ version: '1.1.23'
11
11
  };
12
12
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-client-js",
3
- "version": "1.1.22",
3
+ "version": "1.1.23",
4
4
  "description": "JavaScript library for interfacing with Barchart's Portfolio API",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",