oakscriptjs 0.2.2 → 0.2.4
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.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export { input_int, input_float, input_bool, input_string, input_source, } from
|
|
|
33
33
|
export type { OakScriptContext, ChartAdapter, InputAdapter, SeriesHandle, SeriesOptions, InputConfig, InputOptions, OhlcvData, PlotConfig, HLineConfig, FillConfig, } from './runtime/types';
|
|
34
34
|
export { LightweightChartsAdapter } from './runtime/adapters/LightweightChartsAdapter';
|
|
35
35
|
export { SimpleInputAdapter } from './runtime/adapters/SimpleInputAdapter';
|
|
36
|
-
export declare const VERSION = "0.2.
|
|
36
|
+
export declare const VERSION = "0.2.4";
|
|
37
37
|
export declare const info: {
|
|
38
38
|
name: string;
|
|
39
39
|
version: string;
|
package/dist/index.js
CHANGED
|
@@ -1151,7 +1151,7 @@ function tsi(source, shortLength, longLength) {
|
|
|
1151
1151
|
const momentum = [];
|
|
1152
1152
|
for (let i = 0; i < source.length; i++) {
|
|
1153
1153
|
if (i === 0) {
|
|
1154
|
-
momentum.push(
|
|
1154
|
+
momentum.push(NaN);
|
|
1155
1155
|
} else {
|
|
1156
1156
|
momentum.push(source[i] - source[i - 1]);
|
|
1157
1157
|
}
|
|
@@ -6735,7 +6735,7 @@ var SimpleInputAdapter = class {
|
|
|
6735
6735
|
};
|
|
6736
6736
|
|
|
6737
6737
|
// src/index.ts
|
|
6738
|
-
var VERSION = "0.2.
|
|
6738
|
+
var VERSION = "0.2.4";
|
|
6739
6739
|
var info = {
|
|
6740
6740
|
name: "OakScriptJS",
|
|
6741
6741
|
version: VERSION,
|
package/dist/index.mjs
CHANGED
|
@@ -1051,7 +1051,7 @@ function tsi(source, shortLength, longLength) {
|
|
|
1051
1051
|
const momentum = [];
|
|
1052
1052
|
for (let i = 0; i < source.length; i++) {
|
|
1053
1053
|
if (i === 0) {
|
|
1054
|
-
momentum.push(
|
|
1054
|
+
momentum.push(NaN);
|
|
1055
1055
|
} else {
|
|
1056
1056
|
momentum.push(source[i] - source[i - 1]);
|
|
1057
1057
|
}
|
|
@@ -6635,7 +6635,7 @@ var SimpleInputAdapter = class {
|
|
|
6635
6635
|
};
|
|
6636
6636
|
|
|
6637
6637
|
// src/index.ts
|
|
6638
|
-
var VERSION = "0.2.
|
|
6638
|
+
var VERSION = "0.2.4";
|
|
6639
6639
|
var info = {
|
|
6640
6640
|
name: "OakScriptJS",
|
|
6641
6641
|
version: VERSION,
|