typespeed 2.0.13 → 2.0.16
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.
- package/dist/core.decorator.js +0 -1
- package/dist/database.decorator.js +0 -1
- package/dist/default/express-server.class.js +0 -1
- package/dist/default/log-default.class.js +0 -1
- package/dist/default/node-cache.class.js +0 -1
- package/dist/default/rabbitmq.class.js +0 -1
- package/dist/default/read-write-db.class.js +0 -1
- package/dist/default/redis.class.js +0 -1
- package/dist/factory/cache-factory.class.js +0 -1
- package/dist/factory/data-source-factory.class.js +0 -1
- package/dist/factory/log-factory.class.js +0 -1
- package/dist/factory/server-factory.class.js +0 -1
- package/dist/route.decorator.js +0 -1
- package/dist/scaffold/command.js +0 -1
- package/dist/typespeed.d.ts +133 -12
- package/dist/typespeed.js +1 -1
- package/package.json +2 -2
- package/src/typespeed.d.ts +133 -0
- package/src/typespeed.ts +2 -1
- package/test/node_modules/.package-lock.json +112 -4
- package/test/node_modules/@acuminous/bitsyntax/.github/workflows/node-js-ci.yml +17 -0
- package/test/node_modules/@acuminous/bitsyntax/.github/workflows/node-js-publish.yml +30 -0
- package/test/node_modules/@acuminous/bitsyntax/LICENSE +6 -0
- package/test/node_modules/@acuminous/bitsyntax/LICENSE-MIT +21 -0
- package/test/node_modules/@acuminous/bitsyntax/Makefile +15 -0
- package/test/node_modules/@acuminous/bitsyntax/README.md +308 -0
- package/test/node_modules/@acuminous/bitsyntax/index.js +10 -0
- package/test/node_modules/@acuminous/bitsyntax/lib/compile.js +303 -0
- package/test/node_modules/@acuminous/bitsyntax/lib/constructor.js +142 -0
- package/test/node_modules/@acuminous/bitsyntax/lib/grammar.pegjs +67 -0
- package/test/node_modules/@acuminous/bitsyntax/lib/interp.js +232 -0
- package/test/node_modules/@acuminous/bitsyntax/lib/parse.js +32 -0
- package/test/node_modules/@acuminous/bitsyntax/lib/parser.js +1173 -0
- package/test/node_modules/@acuminous/bitsyntax/lib/pattern.js +119 -0
- package/test/node_modules/@acuminous/bitsyntax/package.json +36 -0
- package/test/node_modules/@acuminous/bitsyntax/test/consing.test.js +50 -0
- package/test/node_modules/@acuminous/bitsyntax/test/matching.test.js +193 -0
- package/test/node_modules/@types/node/README.md +1 -1
- package/test/node_modules/@types/node/buffer.d.ts +5 -2
- package/test/node_modules/@types/node/child_process.d.ts +27 -0
- package/test/node_modules/@types/node/globals.d.ts +1 -0
- package/test/node_modules/@types/node/package.json +2 -2
- package/test/node_modules/@types/node/test.d.ts +43 -20
- package/test/node_modules/@types/node/ts4.8/buffer.d.ts +5 -2
- package/test/node_modules/@types/node/ts4.8/child_process.d.ts +27 -0
- package/test/node_modules/@types/node/ts4.8/globals.d.ts +1 -0
- package/test/node_modules/@types/node/ts4.8/test.d.ts +43 -19
- package/test/node_modules/@types/node/ts4.8/url.d.ts +3 -3
- package/test/node_modules/@types/node/ts4.8/util.d.ts +1 -1
- package/test/node_modules/@types/node/url.d.ts +3 -3
- package/test/node_modules/@types/node/util.d.ts +1 -1
- package/test/node_modules/amqplib/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- package/test/node_modules/amqplib/.github/workflows/test.yml +38 -0
- package/test/node_modules/amqplib/CHANGELOG.md +430 -0
- package/test/node_modules/amqplib/LICENSE +6 -0
- package/test/node_modules/amqplib/LICENSE-MIT +21 -0
- package/test/node_modules/amqplib/Makefile +47 -0
- package/test/node_modules/amqplib/README.md +157 -0
- package/test/node_modules/amqplib/bin/generate-defs.js +722 -0
- package/test/node_modules/amqplib/callback_api.js +22 -0
- package/test/node_modules/amqplib/channel_api.js +16 -0
- package/test/node_modules/amqplib/examples/headers.js +42 -0
- package/test/node_modules/amqplib/examples/receive_generator.js +39 -0
- package/test/node_modules/amqplib/examples/send_generators.js +42 -0
- package/test/node_modules/amqplib/examples/ssl.js +64 -0
- package/test/node_modules/amqplib/examples/tutorials/README.md +93 -0
- package/test/node_modules/amqplib/examples/tutorials/callback_api/emit_log.js +28 -0
- package/test/node_modules/amqplib/examples/tutorials/callback_api/emit_log_direct.js +30 -0
- package/test/node_modules/amqplib/examples/tutorials/callback_api/emit_log_topic.js +27 -0
- package/test/node_modules/amqplib/examples/tutorials/callback_api/new_task.js +27 -0
- package/test/node_modules/amqplib/examples/tutorials/callback_api/receive.js +30 -0
- package/test/node_modules/amqplib/examples/tutorials/callback_api/receive_logs.js +36 -0
- package/test/node_modules/amqplib/examples/tutorials/callback_api/receive_logs_direct.js +56 -0
- package/test/node_modules/amqplib/examples/tutorials/callback_api/receive_logs_topic.js +55 -0
- package/test/node_modules/amqplib/examples/tutorials/callback_api/rpc_client.js +49 -0
- package/test/node_modules/amqplib/examples/tutorials/callback_api/rpc_server.js +45 -0
- package/test/node_modules/amqplib/examples/tutorials/callback_api/send.js +29 -0
- package/test/node_modules/amqplib/examples/tutorials/callback_api/worker.js +35 -0
- package/test/node_modules/amqplib/examples/tutorials/emit_log.js +19 -0
- package/test/node_modules/amqplib/examples/tutorials/emit_log_direct.js +20 -0
- package/test/node_modules/amqplib/examples/tutorials/emit_log_topic.js +19 -0
- package/test/node_modules/amqplib/examples/tutorials/new_task.js +18 -0
- package/test/node_modules/amqplib/examples/tutorials/package.json +16 -0
- package/test/node_modules/amqplib/examples/tutorials/receive.js +21 -0
- package/test/node_modules/amqplib/examples/tutorials/receive_logs.js +28 -0
- package/test/node_modules/amqplib/examples/tutorials/receive_logs_direct.js +44 -0
- package/test/node_modules/amqplib/examples/tutorials/receive_logs_topic.js +43 -0
- package/test/node_modules/amqplib/examples/tutorials/rpc_client.js +52 -0
- package/test/node_modules/amqplib/examples/tutorials/rpc_server.js +39 -0
- package/test/node_modules/amqplib/examples/tutorials/send.js +23 -0
- package/test/node_modules/amqplib/examples/tutorials/worker.js +28 -0
- package/test/node_modules/amqplib/examples/waitForConfirms.js +22 -0
- package/test/node_modules/amqplib/lib/api_args.js +314 -0
- package/test/node_modules/amqplib/lib/bitset.js +130 -0
- package/test/node_modules/amqplib/lib/callback_model.js +327 -0
- package/test/node_modules/amqplib/lib/channel.js +499 -0
- package/test/node_modules/amqplib/lib/channel_model.js +302 -0
- package/test/node_modules/amqplib/lib/codec.js +321 -0
- package/test/node_modules/amqplib/lib/connect.js +189 -0
- package/test/node_modules/amqplib/lib/connection.js +663 -0
- package/test/node_modules/amqplib/lib/credentials.js +42 -0
- package/test/node_modules/amqplib/lib/defs.js +4966 -0
- package/test/node_modules/amqplib/lib/error.js +24 -0
- package/test/node_modules/amqplib/lib/format.js +40 -0
- package/test/node_modules/amqplib/lib/frame.js +113 -0
- package/test/node_modules/amqplib/lib/heartbeat.js +89 -0
- package/test/node_modules/amqplib/lib/mux.js +129 -0
- package/test/node_modules/amqplib/package.json +37 -0
- package/test/node_modules/amqplib/test/bitset.js +69 -0
- package/test/node_modules/amqplib/test/callback_api.js +312 -0
- package/test/node_modules/amqplib/test/channel.js +621 -0
- package/test/node_modules/amqplib/test/channel_api.js +596 -0
- package/test/node_modules/amqplib/test/codec.js +237 -0
- package/test/node_modules/amqplib/test/connect.js +197 -0
- package/test/node_modules/amqplib/test/connection.js +390 -0
- package/test/node_modules/amqplib/test/data.js +254 -0
- package/test/node_modules/amqplib/test/frame.js +198 -0
- package/test/node_modules/amqplib/test/mux.js +204 -0
- package/test/node_modules/amqplib/test/util.js +219 -0
- package/test/node_modules/buffer-more-ints/.travis.yml +6 -0
- package/test/node_modules/buffer-more-ints/LICENSE +19 -0
- package/test/node_modules/buffer-more-ints/README.md +69 -0
- package/test/node_modules/buffer-more-ints/buffer-more-ints-tests.js +183 -0
- package/test/node_modules/buffer-more-ints/buffer-more-ints.js +432 -0
- package/test/node_modules/buffer-more-ints/package.json +19 -0
- package/test/node_modules/buffer-more-ints/polyfill.js +71 -0
- package/test/node_modules/core-util-is/LICENSE +19 -0
- package/test/node_modules/core-util-is/README.md +3 -0
- package/test/node_modules/core-util-is/lib/util.js +107 -0
- package/test/node_modules/core-util-is/package.json +38 -0
- package/test/node_modules/debug/LICENSE +20 -0
- package/test/node_modules/debug/README.md +481 -0
- package/test/node_modules/debug/package.json +59 -0
- package/test/node_modules/debug/src/browser.js +269 -0
- package/test/node_modules/debug/src/common.js +274 -0
- package/test/node_modules/debug/src/index.js +10 -0
- package/test/node_modules/debug/src/node.js +263 -0
- package/test/node_modules/inherits/LICENSE +16 -0
- package/test/node_modules/inherits/README.md +42 -0
- package/test/node_modules/inherits/inherits.js +9 -0
- package/test/node_modules/inherits/inherits_browser.js +27 -0
- package/test/node_modules/inherits/package.json +29 -0
- package/test/node_modules/isarray/README.md +54 -0
- package/test/node_modules/isarray/build/build.js +209 -0
- package/test/node_modules/isarray/component.json +19 -0
- package/test/node_modules/isarray/index.js +3 -0
- package/test/node_modules/isarray/package.json +25 -0
- package/test/node_modules/ms/index.js +162 -0
- package/test/node_modules/ms/license.md +21 -0
- package/test/node_modules/ms/package.json +37 -0
- package/test/node_modules/ms/readme.md +60 -0
- package/test/node_modules/querystringify/LICENSE +22 -0
- package/test/node_modules/querystringify/README.md +61 -0
- package/test/node_modules/querystringify/index.js +118 -0
- package/test/node_modules/querystringify/package.json +38 -0
- package/test/node_modules/readable-stream/LICENSE +18 -0
- package/test/node_modules/readable-stream/README.md +15 -0
- package/test/node_modules/readable-stream/duplex.js +1 -0
- package/test/node_modules/readable-stream/float.patch +923 -0
- package/test/node_modules/readable-stream/lib/_stream_duplex.js +89 -0
- package/test/node_modules/readable-stream/lib/_stream_passthrough.js +46 -0
- package/test/node_modules/readable-stream/lib/_stream_readable.js +951 -0
- package/test/node_modules/readable-stream/lib/_stream_transform.js +209 -0
- package/test/node_modules/readable-stream/lib/_stream_writable.js +477 -0
- package/test/node_modules/readable-stream/package.json +32 -0
- package/test/node_modules/readable-stream/passthrough.js +1 -0
- package/test/node_modules/readable-stream/readable.js +10 -0
- package/test/node_modules/readable-stream/transform.js +1 -0
- package/test/node_modules/readable-stream/writable.js +1 -0
- package/test/node_modules/requires-port/.travis.yml +19 -0
- package/test/node_modules/requires-port/LICENSE +22 -0
- package/test/node_modules/requires-port/README.md +47 -0
- package/test/node_modules/requires-port/index.js +38 -0
- package/test/node_modules/requires-port/package.json +47 -0
- package/test/node_modules/requires-port/test.js +98 -0
- package/test/node_modules/safe-buffer/LICENSE +21 -0
- package/test/node_modules/safe-buffer/README.md +584 -0
- package/test/node_modules/safe-buffer/index.d.ts +187 -0
- package/test/node_modules/safe-buffer/index.js +62 -0
- package/test/node_modules/safe-buffer/package.json +37 -0
- package/test/node_modules/string_decoder/LICENSE +20 -0
- package/test/node_modules/string_decoder/README.md +7 -0
- package/test/node_modules/string_decoder/index.js +221 -0
- package/test/node_modules/string_decoder/package.json +25 -0
- package/test/node_modules/url-parse/LICENSE +22 -0
- package/test/node_modules/url-parse/README.md +153 -0
- package/test/node_modules/url-parse/dist/url-parse.js +755 -0
- package/test/node_modules/url-parse/dist/url-parse.min.js +1 -0
- package/test/node_modules/url-parse/dist/url-parse.min.js.map +1 -0
- package/test/node_modules/url-parse/index.js +589 -0
- package/test/node_modules/url-parse/package.json +49 -0
- package/test/src/test-mq.class.ts +1 -2
- package/tsconfig.json +4 -3
- package/dist/core.decorator.d.ts +0 -18
- package/dist/core.decorator.js.map +0 -1
- package/dist/database.decorator.d.ts +0 -24
- package/dist/database.decorator.js.map +0 -1
- package/dist/default/express-server.class.d.ts +0 -15
- package/dist/default/express-server.class.js.map +0 -1
- package/dist/default/log-default.class.d.ts +0 -6
- package/dist/default/log-default.class.js.map +0 -1
- package/dist/default/node-cache.class.d.ts +0 -13
- package/dist/default/node-cache.class.js.map +0 -1
- package/dist/default/rabbitmq.class.d.ts +0 -9
- package/dist/default/rabbitmq.class.js.map +0 -1
- package/dist/default/read-write-db.class.d.ts +0 -10
- package/dist/default/read-write-db.class.js.map +0 -1
- package/dist/default/redis.class.d.ts +0 -5
- package/dist/default/redis.class.js.map +0 -1
- package/dist/factory/cache-factory.class.d.ts +0 -7
- package/dist/factory/cache-factory.class.js.map +0 -1
- package/dist/factory/data-source-factory.class.d.ts +0 -4
- package/dist/factory/data-source-factory.class.js.map +0 -1
- package/dist/factory/log-factory.class.d.ts +0 -4
- package/dist/factory/log-factory.class.js.map +0 -1
- package/dist/factory/server-factory.class.d.ts +0 -6
- package/dist/factory/server-factory.class.js.map +0 -1
- package/dist/route.decorator.d.ts +0 -8
- package/dist/route.decorator.js.map +0 -1
- package/dist/scaffold/command.d.ts +0 -2
- package/dist/scaffold/command.js.map +0 -1
- package/dist/typespeed.js.map +0 -1
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
//
|
|
2
|
+
//
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
// General-purpose API for glueing everything together.
|
|
6
|
+
|
|
7
|
+
'use strict';
|
|
8
|
+
|
|
9
|
+
var URL = require('url-parse');
|
|
10
|
+
var QS = require('querystring');
|
|
11
|
+
var Connection = require('./connection').Connection;
|
|
12
|
+
var fmt = require('util').format;
|
|
13
|
+
var credentials = require('./credentials');
|
|
14
|
+
|
|
15
|
+
function copyInto(obj, target) {
|
|
16
|
+
var keys = Object.keys(obj);
|
|
17
|
+
var i = keys.length;
|
|
18
|
+
while (i--) {
|
|
19
|
+
var k = keys[i];
|
|
20
|
+
target[k] = obj[k];
|
|
21
|
+
}
|
|
22
|
+
return target;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Adapted from util._extend, which is too fringe to use.
|
|
26
|
+
function clone(obj) {
|
|
27
|
+
return copyInto(obj, {});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
var CLIENT_PROPERTIES = {
|
|
31
|
+
"product": "amqplib",
|
|
32
|
+
"version": require('../package.json').version,
|
|
33
|
+
"platform": fmt('Node.JS %s', process.version),
|
|
34
|
+
"information": "http://squaremo.github.io/amqp.node",
|
|
35
|
+
"capabilities": {
|
|
36
|
+
"publisher_confirms": true,
|
|
37
|
+
"exchange_exchange_bindings": true,
|
|
38
|
+
"basic.nack": true,
|
|
39
|
+
"consumer_cancel_notify": true,
|
|
40
|
+
"connection.blocked": true,
|
|
41
|
+
"authentication_failure_close": true
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
// Construct the main frames used in the opening handshake
|
|
46
|
+
function openFrames(vhost, query, credentials, extraClientProperties) {
|
|
47
|
+
if (!vhost)
|
|
48
|
+
vhost = '/';
|
|
49
|
+
else
|
|
50
|
+
vhost = QS.unescape(vhost);
|
|
51
|
+
|
|
52
|
+
var query = query || {};
|
|
53
|
+
|
|
54
|
+
function intOrDefault(val, def) {
|
|
55
|
+
return (val === undefined) ? def : parseInt(val);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
var clientProperties = Object.create(CLIENT_PROPERTIES);
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
// start-ok
|
|
62
|
+
'clientProperties': copyInto(extraClientProperties, clientProperties),
|
|
63
|
+
'mechanism': credentials.mechanism,
|
|
64
|
+
'response': credentials.response(),
|
|
65
|
+
'locale': query.locale || 'en_US',
|
|
66
|
+
|
|
67
|
+
// tune-ok
|
|
68
|
+
'channelMax': intOrDefault(query.channelMax, 0),
|
|
69
|
+
'frameMax': intOrDefault(query.frameMax, 0x1000),
|
|
70
|
+
'heartbeat': intOrDefault(query.heartbeat, 0),
|
|
71
|
+
|
|
72
|
+
// open
|
|
73
|
+
'virtualHost': vhost,
|
|
74
|
+
'capabilities': '',
|
|
75
|
+
'insist': 0
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// Decide on credentials based on what we're supplied.
|
|
80
|
+
function credentialsFromUrl(parts) {
|
|
81
|
+
var user = 'guest', passwd = 'guest';
|
|
82
|
+
if (parts.username != '' || parts.password != '') {
|
|
83
|
+
user = (parts.username) ? unescape(parts.username) : '';
|
|
84
|
+
passwd = (parts.password) ? unescape(parts.password) : '';
|
|
85
|
+
}
|
|
86
|
+
return credentials.plain(user, passwd);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function connect(url, socketOptions, openCallback) {
|
|
90
|
+
// tls.connect uses `util._extend()` on the options given it, which
|
|
91
|
+
// copies only properties mentioned in `Object.keys()`, when
|
|
92
|
+
// processing the options. So I have to make copies too, rather
|
|
93
|
+
// than using `Object.create()`.
|
|
94
|
+
var sockopts = clone(socketOptions || {});
|
|
95
|
+
url = url || 'amqp://localhost';
|
|
96
|
+
|
|
97
|
+
var noDelay = !!sockopts.noDelay;
|
|
98
|
+
var timeout = sockopts.timeout;
|
|
99
|
+
var keepAlive = !!sockopts.keepAlive;
|
|
100
|
+
// 0 is default for node
|
|
101
|
+
var keepAliveDelay = sockopts.keepAliveDelay || 0;
|
|
102
|
+
|
|
103
|
+
var extraClientProperties = sockopts.clientProperties || {};
|
|
104
|
+
|
|
105
|
+
var protocol, fields;
|
|
106
|
+
if (typeof url === 'object') {
|
|
107
|
+
protocol = (url.protocol || 'amqp') + ':';
|
|
108
|
+
sockopts.host = url.hostname;
|
|
109
|
+
sockopts.servername = sockopts.servername || url.hostname;
|
|
110
|
+
sockopts.port = url.port || ((protocol === 'amqp:') ? 5672 : 5671);
|
|
111
|
+
|
|
112
|
+
var user, pass;
|
|
113
|
+
// Only default if both are missing, to have the same behaviour as
|
|
114
|
+
// the stringly URL.
|
|
115
|
+
if (url.username == undefined && url.password == undefined) {
|
|
116
|
+
user = 'guest'; pass = 'guest';
|
|
117
|
+
} else {
|
|
118
|
+
user = url.username || '';
|
|
119
|
+
pass = url.password || '';
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
var config = {
|
|
123
|
+
locale: url.locale,
|
|
124
|
+
channelMax: url.channelMax,
|
|
125
|
+
frameMax: url.frameMax,
|
|
126
|
+
heartbeat: url.heartbeat,
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
fields = openFrames(url.vhost, config, sockopts.credentials || credentials.plain(user, pass), extraClientProperties);
|
|
130
|
+
} else {
|
|
131
|
+
var parts = URL(url, true); // yes, parse the query string
|
|
132
|
+
protocol = parts.protocol;
|
|
133
|
+
sockopts.host = parts.hostname;
|
|
134
|
+
sockopts.servername = sockopts.servername || parts.hostname;
|
|
135
|
+
sockopts.port = parseInt(parts.port) || ((protocol === 'amqp:') ? 5672 : 5671);
|
|
136
|
+
var vhost = parts.pathname ? parts.pathname.substr(1) : null;
|
|
137
|
+
fields = openFrames(vhost, parts.query, sockopts.credentials || credentialsFromUrl(parts), extraClientProperties);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
var sockok = false;
|
|
141
|
+
var sock;
|
|
142
|
+
|
|
143
|
+
function onConnect() {
|
|
144
|
+
sockok = true;
|
|
145
|
+
sock.setNoDelay(noDelay);
|
|
146
|
+
if (keepAlive) sock.setKeepAlive(keepAlive, keepAliveDelay);
|
|
147
|
+
|
|
148
|
+
var c = new Connection(sock);
|
|
149
|
+
c.open(fields, function(err, ok) {
|
|
150
|
+
// disable timeout once the connection is open, we don't want
|
|
151
|
+
// it fouling things
|
|
152
|
+
if (timeout) sock.setTimeout(0);
|
|
153
|
+
if (err === null) {
|
|
154
|
+
openCallback(null, c);
|
|
155
|
+
} else {
|
|
156
|
+
// The connection isn't closed by the server on e.g. wrong password
|
|
157
|
+
sock.end();
|
|
158
|
+
sock.destroy();
|
|
159
|
+
openCallback(err);
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
if (protocol === 'amqp:') {
|
|
165
|
+
sock = require('net').connect(sockopts, onConnect);
|
|
166
|
+
}
|
|
167
|
+
else if (protocol === 'amqps:') {
|
|
168
|
+
sock = require('tls').connect(sockopts, onConnect);
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
throw new Error("Expected amqp: or amqps: as the protocol; got " + protocol);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
if (timeout) {
|
|
175
|
+
sock.setTimeout(timeout, function() {
|
|
176
|
+
sock.end();
|
|
177
|
+
sock.destroy();
|
|
178
|
+
openCallback(new Error('connect ETIMEDOUT'));
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
sock.once('error', function(err) {
|
|
183
|
+
if (!sockok) openCallback(err);
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
module.exports.connect = connect;
|
|
189
|
+
module.exports.credentialsFromUrl = credentialsFromUrl;
|