pinets 0.2.0 → 0.3.0

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.
Files changed (141) hide show
  1. package/README.md +38 -16
  2. package/dist/pinets.dev.browser.js +3201 -2527
  3. package/dist/pinets.dev.cjs +3419 -2577
  4. package/dist/pinets.dev.cjs.map +1 -1
  5. package/dist/pinets.dev.es.js +2949 -2120
  6. package/dist/pinets.dev.es.js.map +1 -1
  7. package/dist/pinets.min.browser.js +11 -12
  8. package/dist/pinets.min.cjs +11 -12
  9. package/dist/pinets.min.es.js +1 -2
  10. package/dist/types/Context.class.d.ts +17 -6
  11. package/dist/types/PineTS.class.d.ts +78 -4
  12. package/dist/types/Series.d.ts +10 -0
  13. package/dist/types/TimeSeries.class.d.ts +49 -0
  14. package/dist/types/TimeSeries.d.ts +15 -0
  15. package/dist/types/marketData/Mock/MockProvider.class.d.ts +77 -0
  16. package/dist/types/marketData/Provider.class.d.ts +6 -3
  17. package/dist/types/namespaces/array/PineArrayObject.d.ts +5 -0
  18. package/dist/types/namespaces/array/array.index.d.ts +135 -0
  19. package/dist/types/namespaces/array/methods/abs.d.ts +2 -0
  20. package/dist/types/namespaces/array/methods/avg.d.ts +2 -0
  21. package/dist/types/namespaces/array/methods/clear.d.ts +2 -0
  22. package/dist/types/namespaces/array/methods/concat.d.ts +2 -0
  23. package/dist/types/namespaces/array/methods/copy.d.ts +2 -0
  24. package/dist/types/namespaces/array/methods/covariance.d.ts +2 -0
  25. package/dist/types/namespaces/array/methods/every.d.ts +2 -0
  26. package/dist/types/namespaces/array/methods/fill.d.ts +2 -0
  27. package/dist/types/namespaces/array/methods/first.d.ts +2 -0
  28. package/dist/types/namespaces/array/methods/from.d.ts +2 -0
  29. package/dist/types/namespaces/array/methods/get.d.ts +2 -0
  30. package/dist/types/namespaces/array/methods/includes.d.ts +2 -0
  31. package/dist/types/namespaces/array/methods/indexof.d.ts +2 -0
  32. package/dist/types/namespaces/array/methods/insert.d.ts +2 -0
  33. package/dist/types/namespaces/array/methods/join.d.ts +2 -0
  34. package/dist/types/namespaces/array/methods/last.d.ts +2 -0
  35. package/dist/types/namespaces/array/methods/lastindexof.d.ts +2 -0
  36. package/dist/types/namespaces/array/methods/max.d.ts +2 -0
  37. package/dist/types/namespaces/array/methods/min.d.ts +2 -0
  38. package/dist/types/namespaces/array/methods/new.d.ts +2 -0
  39. package/dist/types/namespaces/array/methods/new_bool.d.ts +2 -0
  40. package/dist/types/namespaces/array/methods/new_float.d.ts +2 -0
  41. package/dist/types/namespaces/array/methods/new_int.d.ts +2 -0
  42. package/dist/types/namespaces/array/methods/new_string.d.ts +2 -0
  43. package/dist/types/namespaces/array/methods/param.d.ts +1 -0
  44. package/dist/types/namespaces/array/methods/pop.d.ts +2 -0
  45. package/dist/types/namespaces/array/methods/push.d.ts +2 -0
  46. package/dist/types/namespaces/array/methods/range.d.ts +2 -0
  47. package/dist/types/namespaces/array/methods/remove.d.ts +2 -0
  48. package/dist/types/namespaces/array/methods/reverse.d.ts +2 -0
  49. package/dist/types/namespaces/array/methods/set.d.ts +2 -0
  50. package/dist/types/namespaces/array/methods/shift.d.ts +2 -0
  51. package/dist/types/namespaces/array/methods/size.d.ts +2 -0
  52. package/dist/types/namespaces/array/methods/slice.d.ts +2 -0
  53. package/dist/types/namespaces/array/methods/some.d.ts +2 -0
  54. package/dist/types/namespaces/array/methods/sort.d.ts +2 -0
  55. package/dist/types/namespaces/array/methods/sort_indices.d.ts +2 -0
  56. package/dist/types/namespaces/array/methods/standardize.d.ts +2 -0
  57. package/dist/types/namespaces/array/methods/stdev.d.ts +2 -0
  58. package/dist/types/namespaces/array/methods/sum.d.ts +2 -0
  59. package/dist/types/namespaces/array/methods/unshift.d.ts +2 -0
  60. package/dist/types/namespaces/array/methods/variance.d.ts +2 -0
  61. package/dist/types/namespaces/input/input.index.d.ts +53 -0
  62. package/dist/types/namespaces/input/methods/any.d.ts +2 -0
  63. package/dist/types/namespaces/input/methods/bool.d.ts +2 -0
  64. package/dist/types/namespaces/input/methods/color.d.ts +2 -0
  65. package/dist/types/namespaces/input/methods/enum.d.ts +2 -0
  66. package/dist/types/namespaces/input/methods/float.d.ts +2 -0
  67. package/dist/types/namespaces/input/methods/int.d.ts +2 -0
  68. package/dist/types/namespaces/input/methods/param.d.ts +1 -0
  69. package/dist/types/namespaces/input/methods/price.d.ts +2 -0
  70. package/dist/types/namespaces/input/methods/session.d.ts +2 -0
  71. package/dist/types/namespaces/input/methods/source.d.ts +2 -0
  72. package/dist/types/namespaces/input/methods/string.d.ts +2 -0
  73. package/dist/types/namespaces/input/methods/symbol.d.ts +2 -0
  74. package/dist/types/namespaces/input/methods/text_area.d.ts +2 -0
  75. package/dist/types/namespaces/input/methods/time.d.ts +2 -0
  76. package/dist/types/namespaces/input/methods/timeframe.d.ts +2 -0
  77. package/dist/types/namespaces/input/types.d.ts +4 -0
  78. package/dist/types/namespaces/math/math.index.d.ts +77 -0
  79. package/dist/types/namespaces/math/methods/__eq.d.ts +1 -0
  80. package/dist/types/namespaces/math/methods/abs.d.ts +1 -0
  81. package/dist/types/namespaces/math/methods/acos.d.ts +1 -0
  82. package/dist/types/namespaces/math/methods/asin.d.ts +1 -0
  83. package/dist/types/namespaces/math/methods/atan.d.ts +1 -0
  84. package/dist/types/namespaces/math/methods/avg.d.ts +1 -0
  85. package/dist/types/namespaces/math/methods/ceil.d.ts +1 -0
  86. package/dist/types/namespaces/math/methods/cos.d.ts +1 -0
  87. package/dist/types/namespaces/math/methods/exp.d.ts +1 -0
  88. package/dist/types/namespaces/math/methods/floor.d.ts +1 -0
  89. package/dist/types/namespaces/math/methods/ln.d.ts +1 -0
  90. package/dist/types/namespaces/math/methods/log.d.ts +1 -0
  91. package/dist/types/namespaces/math/methods/log10.d.ts +1 -0
  92. package/dist/types/namespaces/math/methods/max.d.ts +1 -0
  93. package/dist/types/namespaces/math/methods/min.d.ts +1 -0
  94. package/dist/types/namespaces/math/methods/param.d.ts +1 -0
  95. package/dist/types/namespaces/math/methods/pow.d.ts +1 -0
  96. package/dist/types/namespaces/math/methods/random.d.ts +1 -0
  97. package/dist/types/namespaces/math/methods/round.d.ts +1 -0
  98. package/dist/types/namespaces/math/methods/sin.d.ts +1 -0
  99. package/dist/types/namespaces/math/methods/sqrt.d.ts +1 -0
  100. package/dist/types/namespaces/math/methods/sum.d.ts +1 -0
  101. package/dist/types/namespaces/math/methods/tan.d.ts +1 -0
  102. package/dist/types/namespaces/request/methods/param.d.ts +1 -0
  103. package/dist/types/namespaces/request/methods/security.d.ts +1 -0
  104. package/dist/types/namespaces/request/request.index.d.ts +14 -0
  105. package/dist/types/namespaces/request/utils/TIMEFRAMES.d.ts +1 -0
  106. package/dist/types/namespaces/request/utils/findSecContextIdx.d.ts +1 -0
  107. package/dist/types/namespaces/ta/getters/tr.d.ts +1 -0
  108. package/dist/types/namespaces/ta/methods/atr.d.ts +1 -0
  109. package/dist/types/namespaces/ta/methods/change.d.ts +1 -0
  110. package/dist/types/namespaces/ta/methods/crossover.d.ts +1 -0
  111. package/dist/types/namespaces/ta/methods/crossunder.d.ts +1 -0
  112. package/dist/types/namespaces/ta/methods/dev.d.ts +1 -0
  113. package/dist/types/namespaces/ta/methods/ema.d.ts +1 -0
  114. package/dist/types/namespaces/ta/methods/highest.d.ts +1 -0
  115. package/dist/types/namespaces/ta/methods/hma.d.ts +1 -0
  116. package/dist/types/namespaces/ta/methods/linreg.d.ts +1 -0
  117. package/dist/types/namespaces/ta/methods/lowest.d.ts +1 -0
  118. package/dist/types/namespaces/ta/methods/median.d.ts +1 -0
  119. package/dist/types/namespaces/ta/methods/mom.d.ts +1 -0
  120. package/dist/types/namespaces/ta/methods/param.d.ts +2 -0
  121. package/dist/types/namespaces/ta/methods/pivothigh.d.ts +1 -0
  122. package/dist/types/namespaces/ta/methods/pivotlow.d.ts +1 -0
  123. package/dist/types/namespaces/ta/methods/rma.d.ts +1 -0
  124. package/dist/types/namespaces/ta/methods/roc.d.ts +1 -0
  125. package/dist/types/namespaces/ta/methods/rsi.d.ts +1 -0
  126. package/dist/types/namespaces/ta/methods/sma.d.ts +1 -0
  127. package/dist/types/namespaces/ta/methods/stdev.d.ts +1 -0
  128. package/dist/types/namespaces/ta/methods/supertrend.d.ts +1 -0
  129. package/dist/types/namespaces/ta/methods/variance.d.ts +1 -0
  130. package/dist/types/namespaces/ta/methods/vwma.d.ts +1 -0
  131. package/dist/types/namespaces/ta/methods/wma.d.ts +1 -0
  132. package/dist/types/namespaces/ta/ta.index.d.ts +84 -0
  133. package/dist/types/namespaces/ta/utils/pivothigh.d.ts +1 -0
  134. package/dist/types/namespaces/ta/utils/pivotlow.d.ts +1 -0
  135. package/dist/types/transpiler/analysis/AnalysisPass.d.ts +5 -0
  136. package/dist/types/transpiler/analysis/ScopeManager.d.ts +36 -0
  137. package/dist/types/transpiler/transformers/ExpressionTransformer.d.ts +7 -0
  138. package/dist/types/transpiler/transformers/MainTransformer.d.ts +3 -0
  139. package/dist/types/transpiler/transformers/StatementTransformer.d.ts +9 -0
  140. package/dist/types/transpiler/utils/ASTFactory.d.ts +18 -0
  141. package/package.json +12 -3
@@ -0,0 +1 @@
1
+ export declare const TIMEFRAMES: string[];
@@ -0,0 +1 @@
1
+ export declare function findSecContextIdx(myOpenTime: number, myCloseTime: number, openTime: number[], closeTime: number[], lookahead?: boolean): number;
@@ -0,0 +1 @@
1
+ export declare function tr(context: any): () => number;
@@ -0,0 +1 @@
1
+ export declare function atr(context: any): (_period: any, _callId?: string) => any;
@@ -0,0 +1 @@
1
+ export declare function change(context: any): (source: any, _length?: any, _callId?: string) => any;
@@ -0,0 +1 @@
1
+ export declare function crossover(context: any): (source1: any, source2: any) => boolean;
@@ -0,0 +1 @@
1
+ export declare function crossunder(context: any): (source1: any, source2: any) => boolean;
@@ -0,0 +1 @@
1
+ export declare function dev(context: any): (source: any, _length: any, _callId?: string) => any;
@@ -0,0 +1 @@
1
+ export declare function ema(context: any): (source: any, _period: any, _callId?: string) => any;
@@ -0,0 +1 @@
1
+ export declare function highest(context: any): (source: any, _length: any, _callId?: string) => any;
@@ -0,0 +1 @@
1
+ export declare function hma(context: any): (source: any, _period: any, _callId?: string) => any;
@@ -0,0 +1 @@
1
+ export declare function linreg(context: any): (source: any, _length: any, _offset: any, _callId?: string) => any;
@@ -0,0 +1 @@
1
+ export declare function lowest(context: any): (source: any, _length: any, _callId?: string) => any;
@@ -0,0 +1 @@
1
+ export declare function median(context: any): (source: any, _length: any, _callId?: string) => any;
@@ -0,0 +1 @@
1
+ export declare function mom(context: any): (source: any, _length: any, _callId?: string) => any;
@@ -0,0 +1,2 @@
1
+ import { Series } from '../../../Series';
2
+ export declare function param(context: any): (source: any, index: any, name?: string) => Series;
@@ -0,0 +1 @@
1
+ export declare function pivothigh(context: any): (source: any, _leftbars: any, _rightbars: any) => any;
@@ -0,0 +1 @@
1
+ export declare function pivotlow(context: any): (source: any, _leftbars: any, _rightbars: any) => any;
@@ -0,0 +1 @@
1
+ export declare function rma(context: any): (source: any, _period: any, _callId?: string) => any;
@@ -0,0 +1 @@
1
+ export declare function roc(context: any): (source: any, _length: any, _callId?: string) => any;
@@ -0,0 +1 @@
1
+ export declare function rsi(context: any): (source: any, _period: any, _callId?: string) => any;
@@ -0,0 +1 @@
1
+ export declare function sma(context: any): (source: any, _period: any, _callId?: string) => any;
@@ -0,0 +1 @@
1
+ export declare function stdev(context: any): (source: any, _length: any, _bias?: any, _callId?: string) => any;
@@ -0,0 +1 @@
1
+ export declare function supertrend(context: any): (_factor: any, _atrPeriod: any, _callId?: string) => any[][];
@@ -0,0 +1 @@
1
+ export declare function variance(context: any): (source: any, _length: any, _callId?: string) => any;
@@ -0,0 +1 @@
1
+ export declare function vwma(context: any): (source: any, _period: any, _callId?: string) => any;
@@ -0,0 +1 @@
1
+ export declare function wma(context: any): (source: any, _period: any, _callId?: string) => any;
@@ -0,0 +1,84 @@
1
+ import { tr } from './getters/tr';
2
+ import { atr } from './methods/atr';
3
+ import { change } from './methods/change';
4
+ import { crossover } from './methods/crossover';
5
+ import { crossunder } from './methods/crossunder';
6
+ import { dev } from './methods/dev';
7
+ import { ema } from './methods/ema';
8
+ import { highest } from './methods/highest';
9
+ import { hma } from './methods/hma';
10
+ import { linreg } from './methods/linreg';
11
+ import { lowest } from './methods/lowest';
12
+ import { median } from './methods/median';
13
+ import { mom } from './methods/mom';
14
+ import { param } from './methods/param';
15
+ import { pivothigh } from './methods/pivothigh';
16
+ import { pivotlow } from './methods/pivotlow';
17
+ import { rma } from './methods/rma';
18
+ import { roc } from './methods/roc';
19
+ import { rsi } from './methods/rsi';
20
+ import { sma } from './methods/sma';
21
+ import { stdev } from './methods/stdev';
22
+ import { supertrend } from './methods/supertrend';
23
+ import { variance } from './methods/variance';
24
+ import { vwma } from './methods/vwma';
25
+ import { wma } from './methods/wma';
26
+ declare const getters: {
27
+ tr: typeof tr;
28
+ };
29
+ declare const methods: {
30
+ atr: typeof atr;
31
+ change: typeof change;
32
+ crossover: typeof crossover;
33
+ crossunder: typeof crossunder;
34
+ dev: typeof dev;
35
+ ema: typeof ema;
36
+ highest: typeof highest;
37
+ hma: typeof hma;
38
+ linreg: typeof linreg;
39
+ lowest: typeof lowest;
40
+ median: typeof median;
41
+ mom: typeof mom;
42
+ param: typeof param;
43
+ pivothigh: typeof pivothigh;
44
+ pivotlow: typeof pivotlow;
45
+ rma: typeof rma;
46
+ roc: typeof roc;
47
+ rsi: typeof rsi;
48
+ sma: typeof sma;
49
+ stdev: typeof stdev;
50
+ supertrend: typeof supertrend;
51
+ variance: typeof variance;
52
+ vwma: typeof vwma;
53
+ wma: typeof wma;
54
+ };
55
+ export declare class TechnicalAnalysis {
56
+ private context;
57
+ readonly tr: ReturnType<ReturnType<typeof getters.tr>>;
58
+ atr: ReturnType<typeof methods.atr>;
59
+ change: ReturnType<typeof methods.change>;
60
+ crossover: ReturnType<typeof methods.crossover>;
61
+ crossunder: ReturnType<typeof methods.crossunder>;
62
+ dev: ReturnType<typeof methods.dev>;
63
+ ema: ReturnType<typeof methods.ema>;
64
+ highest: ReturnType<typeof methods.highest>;
65
+ hma: ReturnType<typeof methods.hma>;
66
+ linreg: ReturnType<typeof methods.linreg>;
67
+ lowest: ReturnType<typeof methods.lowest>;
68
+ median: ReturnType<typeof methods.median>;
69
+ mom: ReturnType<typeof methods.mom>;
70
+ param: ReturnType<typeof methods.param>;
71
+ pivothigh: ReturnType<typeof methods.pivothigh>;
72
+ pivotlow: ReturnType<typeof methods.pivotlow>;
73
+ rma: ReturnType<typeof methods.rma>;
74
+ roc: ReturnType<typeof methods.roc>;
75
+ rsi: ReturnType<typeof methods.rsi>;
76
+ sma: ReturnType<typeof methods.sma>;
77
+ stdev: ReturnType<typeof methods.stdev>;
78
+ supertrend: ReturnType<typeof methods.supertrend>;
79
+ variance: ReturnType<typeof methods.variance>;
80
+ vwma: ReturnType<typeof methods.vwma>;
81
+ wma: ReturnType<typeof methods.wma>;
82
+ constructor(context: any);
83
+ }
84
+ export default TechnicalAnalysis;
@@ -0,0 +1 @@
1
+ export declare function pivothigh(source: number[], leftbars: number, rightbars: number): number[];
@@ -0,0 +1 @@
1
+ export declare function pivotlow(source: number[], leftbars: number, rightbars: number): number[];
@@ -0,0 +1,5 @@
1
+ import ScopeManager from './ScopeManager';
2
+ export declare function transformNestedArrowFunctions(ast: any): void;
3
+ export declare function preProcessContextBoundVars(ast: any, scopeManager: ScopeManager): void;
4
+ export declare function transformArrowFunctionParams(node: any, scopeManager: ScopeManager, isRootFunction?: boolean): void;
5
+ export declare function runAnalysisPass(ast: any, scopeManager: ScopeManager): string | undefined;
@@ -0,0 +1,36 @@
1
+ export declare class ScopeManager {
2
+ private scopes;
3
+ private scopeTypes;
4
+ private scopeCounts;
5
+ private contextBoundVars;
6
+ private arrayPatternElements;
7
+ private rootParams;
8
+ private varKinds;
9
+ private loopVars;
10
+ private loopVarNames;
11
+ private paramIdCounter;
12
+ private cacheIdCounter;
13
+ private tempVarCounter;
14
+ private taCallIdCounter;
15
+ get nextParamIdArg(): any;
16
+ get nextCacheIdArg(): any;
17
+ getNextTACallId(): any;
18
+ constructor();
19
+ pushScope(type: string): void;
20
+ popScope(): void;
21
+ getCurrentScopeType(): string;
22
+ getCurrentScopeCount(): number;
23
+ addContextBoundVar(name: string, isRootParam?: boolean): void;
24
+ removeContextBoundVar(name: any): void;
25
+ addArrayPatternElement(name: string): void;
26
+ isContextBound(name: string): boolean;
27
+ isArrayPatternElement(name: string): boolean;
28
+ isRootParam(name: string): boolean;
29
+ addLoopVariable(originalName: string, transformedName: string): void;
30
+ getLoopVariableName(name: string): string | undefined;
31
+ isLoopVariable(name: string): boolean;
32
+ addVariable(name: string, kind: string): string;
33
+ getVariable(name: string): [string, string];
34
+ generateTempVar(): string;
35
+ }
36
+ export default ScopeManager;
@@ -0,0 +1,7 @@
1
+ import ScopeManager from '../analysis/ScopeManager';
2
+ export declare function transformArrayIndex(node: any, scopeManager: ScopeManager): void;
3
+ export declare function addArrayAccess(node: any, scopeManager: ScopeManager): void;
4
+ export declare function transformIdentifier(node: any, scopeManager: ScopeManager): void;
5
+ export declare function transformMemberExpression(memberNode: any, originalParamName: string, scopeManager: ScopeManager): void;
6
+ export declare function transformFunctionArgument(arg: any, namespace: string, scopeManager: ScopeManager): any;
7
+ export declare function transformCallExpression(node: any, scopeManager: ScopeManager, namespace?: string): void;
@@ -0,0 +1,3 @@
1
+ import ScopeManager from '../analysis/ScopeManager';
2
+ export declare function transformEqualityChecks(ast: any): void;
3
+ export declare function runTransformationPass(ast: any, scopeManager: ScopeManager, originalParamName: string): void;
@@ -0,0 +1,9 @@
1
+ import ScopeManager from '../analysis/ScopeManager';
2
+ export declare function transformAssignmentExpression(node: any, scopeManager: ScopeManager): void;
3
+ export declare function transformVariableDeclaration(varNode: any, scopeManager: ScopeManager): void;
4
+ export declare function transformForStatement(node: any, scopeManager: ScopeManager, c: any): void;
5
+ export declare function transformWhileStatement(node: any, scopeManager: ScopeManager, c: any): void;
6
+ export declare function transformExpression(node: any, scopeManager: ScopeManager): void;
7
+ export declare function transformIfStatement(node: any, scopeManager: ScopeManager, c: any): void;
8
+ export declare function transformReturnStatement(node: any, scopeManager: ScopeManager): void;
9
+ export declare function transformFunctionDeclaration(node: any, scopeManager: ScopeManager, c: any): void;
@@ -0,0 +1,18 @@
1
+ export declare const CONTEXT_NAME = "$";
2
+ export declare const ASTFactory: {
3
+ createIdentifier(name: string): any;
4
+ createLiteral(value: any): any;
5
+ createMemberExpression(object: any, property: any, computed?: boolean): any;
6
+ createContextIdentifier(): any;
7
+ createContextVariableReference(kind: string, name: string): any;
8
+ createContextVariableAccess0(kind: string, name: string): any;
9
+ createArrayAccess(object: any, index: any): any;
10
+ createCallExpression(callee: any, args: any[]): any;
11
+ createAssignmentExpression(left: any, right: any, operator?: string): any;
12
+ createExpressionStatement(expression: any): any;
13
+ createInitCall(targetVarRef: any, value: any, lookbehind?: any): any;
14
+ createGetCall(source: any, index: any): any;
15
+ createSetCall(target: any, value: any): any;
16
+ createMathEqCall(left: any, right: any): any;
17
+ createWrapperFunction(body: any): any;
18
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinets",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "",
5
5
  "main": "dist/pinets.dev.es.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -10,11 +10,19 @@
10
10
  "type": "module",
11
11
  "scripts": {
12
12
  "test": "cross-env TEST_ENV=true vitest --reporter verbose",
13
- "build:dev:all": "npm run build:dev:browser && npm run build:dev:cjs && npm run build:dev:es && tsc --emitDeclarationOnly --declaration --outDir dist/types -p tsconfig.dts.json",
13
+ "test:coverage": "cross-env TEST_ENV=true vitest run --coverage",
14
+ "test:coverage:badge": "cross-env TEST_ENV=true vitest run --coverage --exclude tests/_local/**",
15
+ "badge": "npm run test:coverage:badge && node scripts/generate-coverage-badge.js",
16
+ "generate:ta-index": "node scripts/generate-ta-index.js",
17
+ "generate:math-index": "node scripts/generate-math-index.js",
18
+ "generate:array-index": "node scripts/generate-array-index.js",
19
+ "generate:input-index": "node scripts/generate-input-index.js",
20
+ "generate:request-index": "node scripts/generate-request-index.js",
21
+ "build:dev:all": "npm run generate:ta-index && npm run generate:math-index && npm run generate:array-index && npm run generate:input-index && npm run generate:request-index && npm run build:dev:browser && npm run build:dev:cjs && npm run build:dev:es && tsc --emitDeclarationOnly --declaration --outDir dist/types -p tsconfig.dts.json",
14
22
  "build:dev:cjs": "cross-env BUILD=dev FORMAT=cjs rollup -c ./rollup.config.js",
15
23
  "build:dev:browser": "cross-env BUILD=dev FORMAT=browser rollup -c ./rollup.config.js",
16
24
  "build:dev:es": "cross-env BUILD=dev rollup -c ./rollup.config.js",
17
- "build:prod:all": "npm run build:prod:browser && npm run build:prod:cjs && npm run build:prod:es && tsc --emitDeclarationOnly --declaration --outDir dist/types -p tsconfig.dts.json",
25
+ "build:prod:all": "npm run generate:ta-index && npm run generate:math-index && npm run generate:array-index && npm run generate:input-index && npm run generate:request-index && npm run build:prod:browser && npm run build:prod:cjs && npm run build:prod:es && tsc --emitDeclarationOnly --declaration --outDir dist/types -p tsconfig.dts.json",
18
26
  "build:prod:cjs": "cross-env BUILD=prod FORMAT=cjs rollup -c ./rollup.config.js",
19
27
  "build:prod:browser": "cross-env BUILD=prod FORMAT=browser rollup -c ./rollup.config.js",
20
28
  "build:prod:es": "cross-env BUILD=prod rollup -c ./rollup.config.js",
@@ -32,6 +40,7 @@
32
40
  "@rollup/plugin-json": "^6.1.0",
33
41
  "@rollup/plugin-node-resolve": "^16.0.0",
34
42
  "@vitest/coverage-v8": "^2.0.0",
43
+ "badgen": "^3.2.3",
35
44
  "cross-env": "^7.0.3",
36
45
  "knip": "^5.43.6",
37
46
  "rollup": "^2.79.2",