pinets 0.8.11 → 0.9.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.
- package/README.md +46 -35
- package/dist/pinets.min.browser.es.js +90 -78
- package/dist/pinets.min.browser.es.js.map +1 -1
- package/dist/pinets.min.browser.js +90 -78
- package/dist/pinets.min.browser.js.map +1 -1
- package/dist/pinets.min.cjs +83 -71
- package/dist/pinets.min.cjs.map +1 -1
- package/dist/pinets.min.es.js +90 -78
- package/dist/pinets.min.es.js.map +1 -1
- package/dist/types/Context.class.d.ts +1 -0
- package/dist/types/namespaces/Core.d.ts +3 -1
- package/dist/types/namespaces/Plots.d.ts +9 -1
- package/dist/types/namespaces/Str.d.ts +1 -1
- package/dist/types/namespaces/Types.d.ts +83 -29
- package/dist/types/namespaces/array/methods/new.d.ts +1 -1
- package/dist/types/namespaces/box/BoxHelper.d.ts +44 -0
- package/dist/types/namespaces/box/BoxObject.d.ts +27 -0
- package/dist/types/namespaces/label/LabelHelper.d.ts +8 -1
- package/dist/types/namespaces/label/LabelObject.d.ts +1 -0
- package/dist/types/namespaces/line/LineHelper.d.ts +48 -0
- package/dist/types/namespaces/line/LineObject.d.ts +19 -0
- package/dist/types/namespaces/linefill/LinefillHelper.d.ts +21 -0
- package/dist/types/namespaces/linefill/LinefillObject.d.ts +11 -0
- package/dist/types/namespaces/polyline/PolylineHelper.d.ts +21 -0
- package/dist/types/namespaces/polyline/PolylineObject.d.ts +17 -0
- package/dist/types/namespaces/table/TableHelper.d.ts +35 -0
- package/dist/types/namespaces/table/TableObject.d.ts +42 -0
- package/dist/types/namespaces/utils.d.ts +7 -0
- package/dist/types/transpiler/analysis/ScopeManager.d.ts +14 -0
- package/dist/types/transpiler/pineToJS/codegen.d.ts +2 -0
- package/dist/types/transpiler/pineToJS/parser.d.ts +4 -0
- package/dist/types/transpiler/settings.d.ts +1 -0
- package/dist/types/types/PineTypes.d.ts +20 -11
- package/package.json +5 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type PlotCharOptions = {
|
|
1
|
+
export type PlotCharOptions = {
|
|
2
2
|
title?: string;
|
|
3
3
|
char?: string;
|
|
4
4
|
location?: string;
|
|
@@ -14,7 +14,7 @@ type PlotCharOptions = {
|
|
|
14
14
|
precision?: number;
|
|
15
15
|
force_overlay?: boolean;
|
|
16
16
|
};
|
|
17
|
-
type PlotOptions = {
|
|
17
|
+
export type PlotOptions = {
|
|
18
18
|
series?: number;
|
|
19
19
|
title?: string;
|
|
20
20
|
color?: string;
|
|
@@ -31,7 +31,7 @@ type PlotOptions = {
|
|
|
31
31
|
precision?: number;
|
|
32
32
|
force_overlay?: boolean;
|
|
33
33
|
};
|
|
34
|
-
type PlotShapeOptions = {
|
|
34
|
+
export type PlotShapeOptions = {
|
|
35
35
|
series?: number;
|
|
36
36
|
title?: string;
|
|
37
37
|
style?: string;
|
|
@@ -48,7 +48,7 @@ type PlotShapeOptions = {
|
|
|
48
48
|
precision?: number;
|
|
49
49
|
force_overlay?: boolean;
|
|
50
50
|
};
|
|
51
|
-
type PlotArrowOptions = {
|
|
51
|
+
export type PlotArrowOptions = {
|
|
52
52
|
series?: number;
|
|
53
53
|
title?: string;
|
|
54
54
|
colorup?: string;
|
|
@@ -63,7 +63,7 @@ type PlotArrowOptions = {
|
|
|
63
63
|
precision?: number;
|
|
64
64
|
force_overlay?: boolean;
|
|
65
65
|
};
|
|
66
|
-
type PlotBarOptions = {
|
|
66
|
+
export type PlotBarOptions = {
|
|
67
67
|
open: number;
|
|
68
68
|
high: number;
|
|
69
69
|
low: number;
|
|
@@ -77,7 +77,7 @@ type PlotBarOptions = {
|
|
|
77
77
|
precision?: number;
|
|
78
78
|
force_overlay?: boolean;
|
|
79
79
|
};
|
|
80
|
-
type BackgroundColorOptions = {
|
|
80
|
+
export type BackgroundColorOptions = {
|
|
81
81
|
color?: string;
|
|
82
82
|
offset?: number;
|
|
83
83
|
editable?: boolean;
|
|
@@ -86,7 +86,7 @@ type BackgroundColorOptions = {
|
|
|
86
86
|
display?: string;
|
|
87
87
|
force_overlay?: boolean;
|
|
88
88
|
};
|
|
89
|
-
type BarColorOptions = {
|
|
89
|
+
export type BarColorOptions = {
|
|
90
90
|
color?: string;
|
|
91
91
|
offset?: number;
|
|
92
92
|
editable?: boolean;
|
|
@@ -94,7 +94,7 @@ type BarColorOptions = {
|
|
|
94
94
|
title?: string;
|
|
95
95
|
display?: string;
|
|
96
96
|
};
|
|
97
|
-
type PlotCandleOptions = {
|
|
97
|
+
export type PlotCandleOptions = {
|
|
98
98
|
open: number;
|
|
99
99
|
high: number;
|
|
100
100
|
low: number;
|
|
@@ -110,7 +110,7 @@ type PlotCandleOptions = {
|
|
|
110
110
|
precision?: number;
|
|
111
111
|
force_overlay?: boolean;
|
|
112
112
|
};
|
|
113
|
-
type IndicatorOptions = {
|
|
113
|
+
export type IndicatorOptions = {
|
|
114
114
|
title: string;
|
|
115
115
|
shorttitle: string;
|
|
116
116
|
overlay: boolean;
|
|
@@ -129,7 +129,16 @@ type IndicatorOptions = {
|
|
|
129
129
|
dynamic_requests: boolean;
|
|
130
130
|
behind_chart: boolean;
|
|
131
131
|
};
|
|
132
|
-
type
|
|
132
|
+
export type HlineOptions = {
|
|
133
|
+
price: number;
|
|
134
|
+
title: string;
|
|
135
|
+
color: string;
|
|
136
|
+
linestyle: string;
|
|
137
|
+
linewidth: number;
|
|
138
|
+
editable: boolean;
|
|
139
|
+
display: string;
|
|
140
|
+
};
|
|
141
|
+
export type FillOptions = {
|
|
133
142
|
plot1: Record<string, any>;
|
|
134
143
|
plot2: Record<string, any>;
|
|
135
144
|
color: string;
|
|
@@ -139,7 +148,7 @@ type FillOptions = {
|
|
|
139
148
|
fillgaps: boolean;
|
|
140
149
|
display: string;
|
|
141
150
|
};
|
|
142
|
-
type TSessionInfo = {
|
|
151
|
+
export type TSessionInfo = {
|
|
143
152
|
isfirstbar: boolean;
|
|
144
153
|
isfirstbar_regular: boolean;
|
|
145
154
|
islastbar: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pinets",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Run Pine Script anywhere. PineTS is an open-source transpiler and runtime that brings Pine Script logic to Node.js and the browser with 1:1 syntax compatibility. Reliably write, port, and run indicators or strategies on your own infrastructure.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Pine Script",
|
|
@@ -74,13 +74,14 @@
|
|
|
74
74
|
"knip": "knip"
|
|
75
75
|
},
|
|
76
76
|
"author": "Alaa-eddine KADDOURI",
|
|
77
|
-
"license": "AGPL-3.0",
|
|
77
|
+
"license": "AGPL-3.0-only",
|
|
78
78
|
"dependencies": {
|
|
79
79
|
"acorn": "^8.14.0",
|
|
80
80
|
"acorn-walk": "^8.3.4",
|
|
81
81
|
"astring": "^1.9.0"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
+
"typescript": "~5.9.3",
|
|
84
85
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
85
86
|
"@rollup/plugin-json": "^6.1.0",
|
|
86
87
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
@@ -105,5 +106,6 @@
|
|
|
105
106
|
"repository": {
|
|
106
107
|
"type": "git",
|
|
107
108
|
"url": "git+https://github.com/QuantForgeOrg/PineTS.git"
|
|
108
|
-
}
|
|
109
|
+
},
|
|
110
|
+
"homepage": "https://quantforge.org/pinets/"
|
|
109
111
|
}
|