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