@adaptic/utils 0.0.1006 → 0.0.1007
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/index.cjs +73 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +73 -73
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.ts +4 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -14618,17 +14618,17 @@ var hasRequiredBrowser;
|
|
|
14618
14618
|
function requireBrowser () {
|
|
14619
14619
|
if (hasRequiredBrowser) return browser.exports;
|
|
14620
14620
|
hasRequiredBrowser = 1;
|
|
14621
|
-
(function (module, exports
|
|
14621
|
+
(function (module, exports) {
|
|
14622
14622
|
/**
|
|
14623
14623
|
* This is the web browser implementation of `debug()`.
|
|
14624
14624
|
*/
|
|
14625
14625
|
|
|
14626
|
-
exports
|
|
14627
|
-
exports
|
|
14628
|
-
exports
|
|
14629
|
-
exports
|
|
14630
|
-
exports
|
|
14631
|
-
exports
|
|
14626
|
+
exports.formatArgs = formatArgs;
|
|
14627
|
+
exports.save = save;
|
|
14628
|
+
exports.load = load;
|
|
14629
|
+
exports.useColors = useColors;
|
|
14630
|
+
exports.storage = localstorage();
|
|
14631
|
+
exports.destroy = (() => {
|
|
14632
14632
|
let warned = false;
|
|
14633
14633
|
|
|
14634
14634
|
return () => {
|
|
@@ -14643,7 +14643,7 @@ function requireBrowser () {
|
|
|
14643
14643
|
* Colors.
|
|
14644
14644
|
*/
|
|
14645
14645
|
|
|
14646
|
-
exports
|
|
14646
|
+
exports.colors = [
|
|
14647
14647
|
'#0000CC',
|
|
14648
14648
|
'#0000FF',
|
|
14649
14649
|
'#0033CC',
|
|
@@ -14808,7 +14808,7 @@ function requireBrowser () {
|
|
|
14808
14808
|
*
|
|
14809
14809
|
* @api public
|
|
14810
14810
|
*/
|
|
14811
|
-
exports
|
|
14811
|
+
exports.log = console.debug || console.log || (() => {});
|
|
14812
14812
|
|
|
14813
14813
|
/**
|
|
14814
14814
|
* Save `namespaces`.
|
|
@@ -14819,9 +14819,9 @@ function requireBrowser () {
|
|
|
14819
14819
|
function save(namespaces) {
|
|
14820
14820
|
try {
|
|
14821
14821
|
if (namespaces) {
|
|
14822
|
-
exports
|
|
14822
|
+
exports.storage.setItem('debug', namespaces);
|
|
14823
14823
|
} else {
|
|
14824
|
-
exports
|
|
14824
|
+
exports.storage.removeItem('debug');
|
|
14825
14825
|
}
|
|
14826
14826
|
} catch (error) {
|
|
14827
14827
|
// Swallow
|
|
@@ -14838,7 +14838,7 @@ function requireBrowser () {
|
|
|
14838
14838
|
function load() {
|
|
14839
14839
|
let r;
|
|
14840
14840
|
try {
|
|
14841
|
-
r = exports
|
|
14841
|
+
r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;
|
|
14842
14842
|
} catch (error) {
|
|
14843
14843
|
// Swallow
|
|
14844
14844
|
// XXX (@Qix-) should we be logging these?
|
|
@@ -14874,7 +14874,7 @@ function requireBrowser () {
|
|
|
14874
14874
|
}
|
|
14875
14875
|
}
|
|
14876
14876
|
|
|
14877
|
-
module.exports = requireCommon()(exports
|
|
14877
|
+
module.exports = requireCommon()(exports);
|
|
14878
14878
|
|
|
14879
14879
|
const {formatters} = module.exports;
|
|
14880
14880
|
|
|
@@ -15063,7 +15063,7 @@ var hasRequiredNode$1;
|
|
|
15063
15063
|
function requireNode$1 () {
|
|
15064
15064
|
if (hasRequiredNode$1) return node$1.exports;
|
|
15065
15065
|
hasRequiredNode$1 = 1;
|
|
15066
|
-
(function (module, exports
|
|
15066
|
+
(function (module, exports) {
|
|
15067
15067
|
const tty = require$$1$1;
|
|
15068
15068
|
const util = require$$1$2;
|
|
15069
15069
|
|
|
@@ -15071,13 +15071,13 @@ function requireNode$1 () {
|
|
|
15071
15071
|
* This is the Node.js implementation of `debug()`.
|
|
15072
15072
|
*/
|
|
15073
15073
|
|
|
15074
|
-
exports
|
|
15075
|
-
exports
|
|
15076
|
-
exports
|
|
15077
|
-
exports
|
|
15078
|
-
exports
|
|
15079
|
-
exports
|
|
15080
|
-
exports
|
|
15074
|
+
exports.init = init;
|
|
15075
|
+
exports.log = log;
|
|
15076
|
+
exports.formatArgs = formatArgs;
|
|
15077
|
+
exports.save = save;
|
|
15078
|
+
exports.load = load;
|
|
15079
|
+
exports.useColors = useColors;
|
|
15080
|
+
exports.destroy = util.deprecate(
|
|
15081
15081
|
() => {},
|
|
15082
15082
|
'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'
|
|
15083
15083
|
);
|
|
@@ -15086,7 +15086,7 @@ function requireNode$1 () {
|
|
|
15086
15086
|
* Colors.
|
|
15087
15087
|
*/
|
|
15088
15088
|
|
|
15089
|
-
exports
|
|
15089
|
+
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
15090
15090
|
|
|
15091
15091
|
try {
|
|
15092
15092
|
// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
|
|
@@ -15094,7 +15094,7 @@ function requireNode$1 () {
|
|
|
15094
15094
|
const supportsColor = requireSupportsColor();
|
|
15095
15095
|
|
|
15096
15096
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
15097
|
-
exports
|
|
15097
|
+
exports.colors = [
|
|
15098
15098
|
20,
|
|
15099
15099
|
21,
|
|
15100
15100
|
26,
|
|
@@ -15183,7 +15183,7 @@ function requireNode$1 () {
|
|
|
15183
15183
|
* $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
|
|
15184
15184
|
*/
|
|
15185
15185
|
|
|
15186
|
-
exports
|
|
15186
|
+
exports.inspectOpts = Object.keys(process.env).filter(key => {
|
|
15187
15187
|
return /^debug_/i.test(key);
|
|
15188
15188
|
}).reduce((obj, key) => {
|
|
15189
15189
|
// Camel-case
|
|
@@ -15215,8 +15215,8 @@ function requireNode$1 () {
|
|
|
15215
15215
|
*/
|
|
15216
15216
|
|
|
15217
15217
|
function useColors() {
|
|
15218
|
-
return 'colors' in exports
|
|
15219
|
-
Boolean(exports
|
|
15218
|
+
return 'colors' in exports.inspectOpts ?
|
|
15219
|
+
Boolean(exports.inspectOpts.colors) :
|
|
15220
15220
|
tty.isatty(process.stderr.fd);
|
|
15221
15221
|
}
|
|
15222
15222
|
|
|
@@ -15242,7 +15242,7 @@ function requireNode$1 () {
|
|
|
15242
15242
|
}
|
|
15243
15243
|
|
|
15244
15244
|
function getDate() {
|
|
15245
|
-
if (exports
|
|
15245
|
+
if (exports.inspectOpts.hideDate) {
|
|
15246
15246
|
return '';
|
|
15247
15247
|
}
|
|
15248
15248
|
return new Date().toISOString() + ' ';
|
|
@@ -15253,7 +15253,7 @@ function requireNode$1 () {
|
|
|
15253
15253
|
*/
|
|
15254
15254
|
|
|
15255
15255
|
function log(...args) {
|
|
15256
|
-
return process.stderr.write(util.formatWithOptions(exports
|
|
15256
|
+
return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + '\n');
|
|
15257
15257
|
}
|
|
15258
15258
|
|
|
15259
15259
|
/**
|
|
@@ -15293,13 +15293,13 @@ function requireNode$1 () {
|
|
|
15293
15293
|
function init(debug) {
|
|
15294
15294
|
debug.inspectOpts = {};
|
|
15295
15295
|
|
|
15296
|
-
const keys = Object.keys(exports
|
|
15296
|
+
const keys = Object.keys(exports.inspectOpts);
|
|
15297
15297
|
for (let i = 0; i < keys.length; i++) {
|
|
15298
|
-
debug.inspectOpts[keys[i]] = exports
|
|
15298
|
+
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
15299
15299
|
}
|
|
15300
15300
|
}
|
|
15301
15301
|
|
|
15302
|
-
module.exports = requireCommon()(exports
|
|
15302
|
+
module.exports = requireCommon()(exports);
|
|
15303
15303
|
|
|
15304
15304
|
const {formatters} = module.exports;
|
|
15305
15305
|
|
|
@@ -15873,7 +15873,7 @@ function requireFollowRedirects () {
|
|
|
15873
15873
|
// Wraps the key/value object of protocols with redirect functionality
|
|
15874
15874
|
function wrap(protocols) {
|
|
15875
15875
|
// Default settings
|
|
15876
|
-
var exports
|
|
15876
|
+
var exports = {
|
|
15877
15877
|
maxRedirects: 21,
|
|
15878
15878
|
maxBodyLength: 10 * 1024 * 1024,
|
|
15879
15879
|
};
|
|
@@ -15883,7 +15883,7 @@ function requireFollowRedirects () {
|
|
|
15883
15883
|
Object.keys(protocols).forEach(function (scheme) {
|
|
15884
15884
|
var protocol = scheme + ":";
|
|
15885
15885
|
var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
|
|
15886
|
-
var wrappedProtocol = exports
|
|
15886
|
+
var wrappedProtocol = exports[scheme] = Object.create(nativeProtocol);
|
|
15887
15887
|
|
|
15888
15888
|
// Executes a request, following redirects
|
|
15889
15889
|
function request(input, options, callback) {
|
|
@@ -15906,8 +15906,8 @@ function requireFollowRedirects () {
|
|
|
15906
15906
|
|
|
15907
15907
|
// Set defaults
|
|
15908
15908
|
options = Object.assign({
|
|
15909
|
-
maxRedirects: exports
|
|
15910
|
-
maxBodyLength: exports
|
|
15909
|
+
maxRedirects: exports.maxRedirects,
|
|
15910
|
+
maxBodyLength: exports.maxBodyLength,
|
|
15911
15911
|
}, input, options);
|
|
15912
15912
|
options.nativeProtocols = nativeProtocols;
|
|
15913
15913
|
if (!isString(options.host) && !isString(options.hostname)) {
|
|
@@ -15932,7 +15932,7 @@ function requireFollowRedirects () {
|
|
|
15932
15932
|
get: { value: get, configurable: true, enumerable: true, writable: true },
|
|
15933
15933
|
});
|
|
15934
15934
|
});
|
|
15935
|
-
return exports
|
|
15935
|
+
return exports;
|
|
15936
15936
|
}
|
|
15937
15937
|
|
|
15938
15938
|
function noop() { /* empty */ }
|
|
@@ -17538,7 +17538,7 @@ var hasRequiredLodash;
|
|
|
17538
17538
|
function requireLodash () {
|
|
17539
17539
|
if (hasRequiredLodash) return lodash$1.exports;
|
|
17540
17540
|
hasRequiredLodash = 1;
|
|
17541
|
-
(function (module, exports
|
|
17541
|
+
(function (module, exports) {
|
|
17542
17542
|
(function() {
|
|
17543
17543
|
|
|
17544
17544
|
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
|
|
@@ -17969,7 +17969,7 @@ function requireLodash () {
|
|
|
17969
17969
|
var root = freeGlobal || freeSelf || Function('return this')();
|
|
17970
17970
|
|
|
17971
17971
|
/** Detect free variable `exports`. */
|
|
17972
|
-
var freeExports = exports
|
|
17972
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
17973
17973
|
|
|
17974
17974
|
/** Detect free variable `module`. */
|
|
17975
17975
|
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
@@ -35799,12 +35799,12 @@ var hasRequiredIsBuffer;
|
|
|
35799
35799
|
function requireIsBuffer () {
|
|
35800
35800
|
if (hasRequiredIsBuffer) return isBuffer.exports;
|
|
35801
35801
|
hasRequiredIsBuffer = 1;
|
|
35802
|
-
(function (module, exports
|
|
35802
|
+
(function (module, exports) {
|
|
35803
35803
|
var root = require_root(),
|
|
35804
35804
|
stubFalse = requireStubFalse();
|
|
35805
35805
|
|
|
35806
35806
|
/** Detect free variable `exports`. */
|
|
35807
|
-
var freeExports = exports
|
|
35807
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
35808
35808
|
|
|
35809
35809
|
/** Detect free variable `module`. */
|
|
35810
35810
|
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
@@ -36024,11 +36024,11 @@ var hasRequired_nodeUtil;
|
|
|
36024
36024
|
function require_nodeUtil () {
|
|
36025
36025
|
if (hasRequired_nodeUtil) return _nodeUtil.exports;
|
|
36026
36026
|
hasRequired_nodeUtil = 1;
|
|
36027
|
-
(function (module, exports
|
|
36027
|
+
(function (module, exports) {
|
|
36028
36028
|
var freeGlobal = require_freeGlobal();
|
|
36029
36029
|
|
|
36030
36030
|
/** Detect free variable `exports`. */
|
|
36031
|
-
var freeExports = exports
|
|
36031
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
36032
36032
|
|
|
36033
36033
|
/** Detect free variable `module`. */
|
|
36034
36034
|
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
@@ -44950,7 +44950,7 @@ var hasRequiredSafeBuffer;
|
|
|
44950
44950
|
function requireSafeBuffer () {
|
|
44951
44951
|
if (hasRequiredSafeBuffer) return safeBuffer.exports;
|
|
44952
44952
|
hasRequiredSafeBuffer = 1;
|
|
44953
|
-
(function (module, exports
|
|
44953
|
+
(function (module, exports) {
|
|
44954
44954
|
/* eslint-disable node/no-deprecated-api */
|
|
44955
44955
|
var buffer = require$$0$5;
|
|
44956
44956
|
var Buffer = buffer.Buffer;
|
|
@@ -44965,8 +44965,8 @@ function requireSafeBuffer () {
|
|
|
44965
44965
|
module.exports = buffer;
|
|
44966
44966
|
} else {
|
|
44967
44967
|
// Copy properties from require('buffer')
|
|
44968
|
-
copyProps(buffer, exports
|
|
44969
|
-
exports
|
|
44968
|
+
copyProps(buffer, exports);
|
|
44969
|
+
exports.Buffer = SafeBuffer;
|
|
44970
44970
|
}
|
|
44971
44971
|
|
|
44972
44972
|
function SafeBuffer (arg, encodingOrOffset, length) {
|
|
@@ -48164,22 +48164,22 @@ var hasRequiredReadable;
|
|
|
48164
48164
|
function requireReadable () {
|
|
48165
48165
|
if (hasRequiredReadable) return readable.exports;
|
|
48166
48166
|
hasRequiredReadable = 1;
|
|
48167
|
-
(function (module, exports
|
|
48167
|
+
(function (module, exports) {
|
|
48168
48168
|
var Stream = require$$0$3;
|
|
48169
48169
|
if (process.env.READABLE_STREAM === 'disable' && Stream) {
|
|
48170
48170
|
module.exports = Stream.Readable;
|
|
48171
48171
|
Object.assign(module.exports, Stream);
|
|
48172
48172
|
module.exports.Stream = Stream;
|
|
48173
48173
|
} else {
|
|
48174
|
-
exports
|
|
48175
|
-
exports
|
|
48176
|
-
exports
|
|
48177
|
-
exports
|
|
48178
|
-
exports
|
|
48179
|
-
exports
|
|
48180
|
-
exports
|
|
48181
|
-
exports
|
|
48182
|
-
exports
|
|
48174
|
+
exports = module.exports = require_stream_readable();
|
|
48175
|
+
exports.Stream = Stream || exports;
|
|
48176
|
+
exports.Readable = exports;
|
|
48177
|
+
exports.Writable = require_stream_writable();
|
|
48178
|
+
exports.Duplex = require_stream_duplex();
|
|
48179
|
+
exports.Transform = require_stream_transform();
|
|
48180
|
+
exports.PassThrough = require_stream_passthrough();
|
|
48181
|
+
exports.finished = requireEndOfStream();
|
|
48182
|
+
exports.pipeline = requirePipeline();
|
|
48183
48183
|
}
|
|
48184
48184
|
} (readable, readable.exports));
|
|
48185
48185
|
return readable.exports;
|
|
@@ -49614,12 +49614,12 @@ var hasRequiredWebsocket;
|
|
|
49614
49614
|
function requireWebsocket () {
|
|
49615
49615
|
if (hasRequiredWebsocket) return websocket$1;
|
|
49616
49616
|
hasRequiredWebsocket = 1;
|
|
49617
|
-
(function (exports
|
|
49617
|
+
(function (exports) {
|
|
49618
49618
|
var __importDefault = (websocket$1 && websocket$1.__importDefault) || function (mod) {
|
|
49619
49619
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49620
49620
|
};
|
|
49621
|
-
Object.defineProperty(exports
|
|
49622
|
-
exports
|
|
49621
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49622
|
+
exports.AlpacaWebsocket = exports.ERROR = exports.CONN_ERROR = exports.EVENT = exports.STATE = void 0;
|
|
49623
49623
|
const events_1 = __importDefault(require$$0$4);
|
|
49624
49624
|
const ws_1 = __importDefault(requireWs());
|
|
49625
49625
|
const msgpack5_1 = __importDefault(requireMsgpack5());
|
|
@@ -49633,7 +49633,7 @@ function requireWebsocket () {
|
|
|
49633
49633
|
STATE["DISCONNECTED"] = "disconnected";
|
|
49634
49634
|
STATE["WAITING_TO_CONNECT"] = "waiting to connect";
|
|
49635
49635
|
STATE["WAITING_TO_RECONNECT"] = "waiting to reconnect";
|
|
49636
|
-
})(STATE || (exports
|
|
49636
|
+
})(STATE || (exports.STATE = STATE = {}));
|
|
49637
49637
|
// Client events
|
|
49638
49638
|
var EVENT;
|
|
49639
49639
|
(function (EVENT) {
|
|
@@ -49652,9 +49652,9 @@ function requireWebsocket () {
|
|
|
49652
49652
|
EVENT["CORRECTIONS"] = "corrections";
|
|
49653
49653
|
EVENT["ORDERBOOKS"] = "orderbooks";
|
|
49654
49654
|
EVENT["NEWS"] = "news";
|
|
49655
|
-
})(EVENT || (exports
|
|
49655
|
+
})(EVENT || (exports.EVENT = EVENT = {}));
|
|
49656
49656
|
// Connection errors by code
|
|
49657
|
-
exports
|
|
49657
|
+
exports.CONN_ERROR = new Map([
|
|
49658
49658
|
[400, "invalid syntax"],
|
|
49659
49659
|
[401, "not authenticated"],
|
|
49660
49660
|
[402, "auth failed"],
|
|
@@ -49673,7 +49673,7 @@ function requireWebsocket () {
|
|
|
49673
49673
|
ERROR["MISSING_SECERT_KEY"] = "missing secret key";
|
|
49674
49674
|
ERROR["MISSING_API_KEY"] = "missing api key";
|
|
49675
49675
|
ERROR["UNEXPECTED_MESSAGE"] = "unexpected message";
|
|
49676
|
-
})(ERROR || (exports
|
|
49676
|
+
})(ERROR || (exports.ERROR = ERROR = {}));
|
|
49677
49677
|
class AlpacaWebsocket extends events_1.default.EventEmitter {
|
|
49678
49678
|
constructor(options) {
|
|
49679
49679
|
super();
|
|
@@ -49830,7 +49830,7 @@ function requireWebsocket () {
|
|
|
49830
49830
|
this.updateSubscriptions(data[0]);
|
|
49831
49831
|
break;
|
|
49832
49832
|
case "error":
|
|
49833
|
-
this.emit(EVENT.CLIENT_ERROR, exports
|
|
49833
|
+
this.emit(EVENT.CLIENT_ERROR, exports.CONN_ERROR.get(data[0].code));
|
|
49834
49834
|
break;
|
|
49835
49835
|
default:
|
|
49836
49836
|
this.dataHandler(data);
|
|
@@ -49859,7 +49859,7 @@ function requireWebsocket () {
|
|
|
49859
49859
|
}
|
|
49860
49860
|
}
|
|
49861
49861
|
}
|
|
49862
|
-
exports
|
|
49862
|
+
exports.AlpacaWebsocket = AlpacaWebsocket;
|
|
49863
49863
|
} (websocket$1));
|
|
49864
49864
|
return websocket$1;
|
|
49865
49865
|
}
|
|
@@ -50493,8 +50493,8 @@ var hasRequiredWebsockets;
|
|
|
50493
50493
|
function requireWebsockets () {
|
|
50494
50494
|
if (hasRequiredWebsockets) return websockets;
|
|
50495
50495
|
hasRequiredWebsockets = 1;
|
|
50496
|
-
(function (exports
|
|
50497
|
-
Object.defineProperty(exports
|
|
50496
|
+
(function (exports) {
|
|
50497
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50498
50498
|
const events = require$$0$4;
|
|
50499
50499
|
const WebSocket = requireWs();
|
|
50500
50500
|
const entity = requireEntity();
|
|
@@ -50509,7 +50509,7 @@ function requireWebsockets () {
|
|
|
50509
50509
|
STATE.DISCONNECTED = "disconnected";
|
|
50510
50510
|
STATE.WAITING_TO_CONNECT = "waiting to connect";
|
|
50511
50511
|
STATE.WAITING_TO_RECONNECT = "waiting to reconnect";
|
|
50512
|
-
})((STATE = exports
|
|
50512
|
+
})((STATE = exports.STATE || (exports.STATE = {})));
|
|
50513
50513
|
// Client events
|
|
50514
50514
|
var EVENT;
|
|
50515
50515
|
(function (EVENT) {
|
|
@@ -50523,7 +50523,7 @@ function requireWebsockets () {
|
|
|
50523
50523
|
EVENT.STOCK_QUOTES = "stock_quotes";
|
|
50524
50524
|
EVENT.STOCK_AGG_SEC = "stock_agg_sec";
|
|
50525
50525
|
EVENT.STOCK_AGG_MIN = "stock_agg_min";
|
|
50526
|
-
})((EVENT = exports
|
|
50526
|
+
})((EVENT = exports.EVENT || (exports.EVENT = {})));
|
|
50527
50527
|
// Connection errors Each of these will also emit EVENT.ERROR
|
|
50528
50528
|
var ERROR;
|
|
50529
50529
|
(function (ERROR) {
|
|
@@ -50532,7 +50532,7 @@ function requireWebsockets () {
|
|
|
50532
50532
|
ERROR.MISSING_API_KEY = "missing api key";
|
|
50533
50533
|
ERROR.MISSING_SECRET_KEY = "missing secret key";
|
|
50534
50534
|
ERROR.UNKNOWN = "unknown error";
|
|
50535
|
-
})((ERROR = exports
|
|
50535
|
+
})((ERROR = exports.ERROR || (exports.ERROR = {})));
|
|
50536
50536
|
/**
|
|
50537
50537
|
* AlpacaStreamClient manages a connection to Alpaca's websocket api
|
|
50538
50538
|
*/
|
|
@@ -50845,7 +50845,7 @@ function requireWebsockets () {
|
|
|
50845
50845
|
}
|
|
50846
50846
|
}
|
|
50847
50847
|
}
|
|
50848
|
-
exports
|
|
50848
|
+
exports.AlpacaStreamClient = AlpacaStreamClient;
|
|
50849
50849
|
} (websockets));
|
|
50850
50850
|
return websockets;
|
|
50851
50851
|
}
|
|
@@ -51097,13 +51097,13 @@ var hasRequiredDist;
|
|
|
51097
51097
|
function requireDist () {
|
|
51098
51098
|
if (hasRequiredDist) return dist$1.exports;
|
|
51099
51099
|
hasRequiredDist = 1;
|
|
51100
|
-
(function (module, exports
|
|
51100
|
+
(function (module, exports) {
|
|
51101
51101
|
var __importDefault = (dist && dist.__importDefault) || function (mod) {
|
|
51102
51102
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
51103
51103
|
};
|
|
51104
|
-
Object.defineProperty(exports
|
|
51104
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51105
51105
|
const alpaca_trade_api_1 = __importDefault(requireAlpacaTradeApi());
|
|
51106
|
-
exports
|
|
51106
|
+
exports.default = alpaca_trade_api_1.default;
|
|
51107
51107
|
module.exports = alpaca_trade_api_1.default;
|
|
51108
51108
|
} (dist$1, dist$1.exports));
|
|
51109
51109
|
return dist$1.exports;
|