@ndustrial/contxt-sdk
Advanced tools
Comparing version 5.2.2 to 5.2.3
@@ -28,5 +28,5 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
'2fe29680-fc3d-4888-9e9b-44be1e59c22c': 'sfnt', | ||
'b2c6705d-1727-467f-a450-207f110c9966': 'trenton' | ||
'b2c6705d-1727-467f-a450-207f110c9966': 'trenton', | ||
'c5517437-8497-400a-8c6d-a9de88669c70': 'blackline' | ||
}; | ||
this._tenants = new Set(Object.values(this._orgIdToTenantId)); | ||
} | ||
@@ -38,5 +38,2 @@ | ||
if (!orgOrTenantId) throw Error('Tenant is required'); | ||
if (!(orgOrTenantId in this._orgIdToTenantId) && !this._tenants.has(orgOrTenantId)) { | ||
throw Error('Tenant is either unrecognized or not yet supported: ' + orgOrTenantId); | ||
} | ||
return this._orgIdToTenantId[orgOrTenantId] || orgOrTenantId; | ||
@@ -43,0 +40,0 @@ } |
@@ -34,5 +34,5 @@ 'use strict'; | ||
'2fe29680-fc3d-4888-9e9b-44be1e59c22c': 'sfnt', | ||
'b2c6705d-1727-467f-a450-207f110c9966': 'trenton' | ||
'b2c6705d-1727-467f-a450-207f110c9966': 'trenton', | ||
'c5517437-8497-400a-8c6d-a9de88669c70': 'blackline' | ||
}; | ||
this._tenants = new Set(Object.values(this._orgIdToTenantId)); | ||
} | ||
@@ -44,5 +44,2 @@ | ||
if (!orgOrTenantId) throw Error('Tenant is required'); | ||
if (!(orgOrTenantId in this._orgIdToTenantId) && !this._tenants.has(orgOrTenantId)) { | ||
throw Error('Tenant is either unrecognized or not yet supported: ' + orgOrTenantId); | ||
} | ||
return this._orgIdToTenantId[orgOrTenantId] || orgOrTenantId; | ||
@@ -49,0 +46,0 @@ } |
{ | ||
"name": "@ndustrial/contxt-sdk", | ||
"version": "5.2.2", | ||
"version": "5.2.3", | ||
"description": "", | ||
@@ -70,6 +70,6 @@ "main": "lib/index.js", | ||
"uuid": "^8.3.2", | ||
"ws": "^6.1.3" | ||
"ws": "^8.8.0" | ||
}, | ||
"devDependencies": { | ||
"babel-eslint": "^8.2.1", | ||
"babel-eslint": "^10.1.0", | ||
"babel-plugin-external-helpers": "^6.22.0", | ||
@@ -85,5 +85,5 @@ "babel-plugin-istanbul": "^5.1.1", | ||
"eslint-config-ndustrial": "^1.0.5", | ||
"eslint-config-prettier": "^2.9.0", | ||
"eslint-config-prettier": "^6.15.0", | ||
"eslint-friendly-formatter": "^4.0.1", | ||
"eslint-plugin-node": "^5.2.1", | ||
"eslint-plugin-node": "^8.0.1", | ||
"faker": "^5.5.3", | ||
@@ -95,3 +95,3 @@ "fast-glob": "^3.2.4", | ||
"husky": "^2.3.0", | ||
"jsdoc-to-markdown": "^6.0.1", | ||
"jsdoc-to-markdown": "^7.1.1", | ||
"lodash.omit": "^4.5.0", | ||
@@ -103,3 +103,3 @@ "lodash.pick": "^4.4.0", | ||
"mock-socket": "^9.1.5", | ||
"prettier": "^1.14.3", | ||
"prettier": "^2.7.1", | ||
"pretty-quick": "^1.4.1", | ||
@@ -106,0 +106,0 @@ "proxyquire": "^2.1.0", |
@@ -22,5 +22,5 @@ /** | ||
'2fe29680-fc3d-4888-9e9b-44be1e59c22c': 'sfnt', | ||
'b2c6705d-1727-467f-a450-207f110c9966': 'trenton' | ||
'b2c6705d-1727-467f-a450-207f110c9966': 'trenton', | ||
'c5517437-8497-400a-8c6d-a9de88669c70': 'blackline' | ||
}; | ||
this._tenants = new Set(Object.values(this._orgIdToTenantId)); | ||
} | ||
@@ -34,10 +34,2 @@ | ||
if (!orgOrTenantId) throw Error('Tenant is required'); | ||
if ( | ||
!(orgOrTenantId in this._orgIdToTenantId) && | ||
!this._tenants.has(orgOrTenantId) | ||
) { | ||
throw Error( | ||
`Tenant is either unrecognized or not yet supported: ${orgOrTenantId}` | ||
); | ||
} | ||
return this._orgIdToTenantId[orgOrTenantId] || orgOrTenantId; | ||
@@ -44,0 +36,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2239709
35544
+ Addedws@8.17.0(transitive)
- Removedasync-limiter@1.0.1(transitive)
- Removedws@6.2.2(transitive)
Updatedws@^8.8.0