contential
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -38,3 +38,3 @@ "use strict"; | ||
_regenerator["default"].mark(function _callee(args) { | ||
var _this, regionId, options, apiKey, emptyMethod, onData, onError, onConnect, onDisconnect, onFinalDisconnect, retryDelay, maxRetryAttempts, apiKeyId, optionsString, query, url, _onConnect, _onDisconnect, ws, _WebSocket, _ws; | ||
var _this, regionId, apiKey, emptyMethod, onData, onError, onConnect, onDisconnect, onFinalDisconnect, retryDelay, maxRetryAttempts, options, apiKeyId, optionsString, query, url, _onConnect, _onDisconnect, ws, _WebSocket, _ws; | ||
@@ -46,3 +46,3 @@ return _regenerator["default"].wrap(function _callee$(_context) { | ||
_this = this; | ||
regionId = args.regionId, options = args.options, apiKey = args.apiKey; | ||
regionId = args.regionId, apiKey = args.apiKey; | ||
@@ -58,2 +58,6 @@ emptyMethod = function emptyMethod() {}; | ||
maxRetryAttempts = args.maxRetryAttempts || 10; | ||
options = { | ||
localeId: args.localeId, | ||
records: args.records | ||
}; | ||
apiKeyId = apiKey || this.client.apiKey; | ||
@@ -110,3 +114,3 @@ optionsString = JSON.stringify(options); | ||
case 17: | ||
case 18: | ||
case "end": | ||
@@ -113,0 +117,0 @@ return _context.stop(); |
{ | ||
"name": "contential", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "JavaScript client for Contential.", | ||
@@ -5,0 +5,0 @@ "author": "Tom Andre", |
@@ -12,3 +12,3 @@ import queryString from 'querystring'; | ||
const _this = this; | ||
const { regionId, options, apiKey } = args; | ||
const { regionId, apiKey } = args; | ||
const emptyMethod = () => {}; | ||
@@ -22,3 +22,3 @@ const onData = args.onData || emptyMethod; | ||
const maxRetryAttempts = args.maxRetryAttempts || 10; | ||
const options = { localeId: args.localeId, records: args.records }; | ||
const apiKeyId = apiKey || this.client.apiKey; | ||
@@ -25,0 +25,0 @@ const optionsString = JSON.stringify(options); |
42306
1138