@adaptic/utils 0.0.1029 → 0.0.1030
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 +93 -47
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +93 -47
- package/dist/index.mjs.map +1 -1
- package/dist/test.js +7 -3
- package/dist/test.js.map +1 -1
- package/dist/types/alpaca/legacy/account.d.ts.map +1 -1
- package/dist/types/alpaca/market-data/news.d.ts.map +1 -1
- package/dist/types/alpaca/streams/base-stream.d.ts +12 -0
- package/dist/types/alpaca/streams/base-stream.d.ts.map +1 -1
- package/dist/types/alpaca/streams/stream-manager.d.ts.map +1 -1
- package/dist/types/alpaca/streams/trading-stream.d.ts.map +1 -1
- package/dist/types/alphavantage.d.ts.map +1 -1
- package/dist/types/crypto.d.ts.map +1 -1
- package/dist/types/display-manager.d.ts.map +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/massive-indices.d.ts.map +1 -1
- package/dist/types/massive.d.ts.map +1 -1
- package/dist/types/schemas/massive-schemas.d.ts +11 -11
- package/dist/types/types/massive-indices-types.d.ts +6 -0
- package/dist/types/types/massive-indices-types.d.ts.map +1 -1
- package/dist/types/types/massive-types.d.ts +66 -0
- package/dist/types/types/massive-types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/test.js
CHANGED
|
@@ -495,11 +495,15 @@ let fs;
|
|
|
495
495
|
let path;
|
|
496
496
|
if (isNode) {
|
|
497
497
|
try {
|
|
498
|
-
|
|
498
|
+
// Referenced inside the guard: in a browser bundle `require` is not defined,
|
|
499
|
+
// and touching the identifier at module scope would throw before the catch
|
|
500
|
+
// below could degrade the module to no-ops.
|
|
501
|
+
const loadNodeBuiltin = require;
|
|
502
|
+
const readline = loadNodeBuiltin("readline");
|
|
499
503
|
clearLine = readline.clearLine;
|
|
500
504
|
cursorTo = readline.cursorTo;
|
|
501
|
-
fs =
|
|
502
|
-
path =
|
|
505
|
+
fs = loadNodeBuiltin("fs");
|
|
506
|
+
path = loadNodeBuiltin("path");
|
|
503
507
|
}
|
|
504
508
|
catch {
|
|
505
509
|
// Silently degrade — all operations will be no-ops.
|