@tradejs/indicators 1.0.2 → 1.0.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.mts CHANGED
@@ -22,14 +22,14 @@ declare const ATR_PCT: (data: KLineData[], period: number, SMA_SHORT: number, SM
22
22
  value: number;
23
23
  };
24
24
 
25
- declare const registerIndicatorEntries: (entries: readonly IndicatorPluginEntry[], source: string) => void;
26
- declare const getRegisteredIndicatorEntries: () => IndicatorPluginEntry[];
27
- declare const getPluginIndicatorCatalog: () => _tradejs_types.Indicator[];
25
+ declare const registerIndicatorEntries: (entries: readonly IndicatorPluginEntry[], source: string, scope?: string) => void;
26
+ declare const getRegisteredIndicatorEntries: (scope?: string) => IndicatorPluginEntry[];
27
+ declare const getPluginIndicatorCatalog: (scope?: string) => _tradejs_types.Indicator[];
28
28
  type IndicatorRendererDescriptor = {
29
29
  indicatorId: string;
30
30
  renderer: IndicatorPluginRenderer;
31
31
  };
32
- declare const getPluginIndicatorRenderers: () => IndicatorRendererDescriptor[];
32
+ declare const getPluginIndicatorRenderers: (scope?: string) => IndicatorRendererDescriptor[];
33
33
 
34
34
  declare const indicatorEntries: readonly [];
35
35
  declare const _default: {
package/dist/index.d.ts CHANGED
@@ -22,14 +22,14 @@ declare const ATR_PCT: (data: KLineData[], period: number, SMA_SHORT: number, SM
22
22
  value: number;
23
23
  };
24
24
 
25
- declare const registerIndicatorEntries: (entries: readonly IndicatorPluginEntry[], source: string) => void;
26
- declare const getRegisteredIndicatorEntries: () => IndicatorPluginEntry[];
27
- declare const getPluginIndicatorCatalog: () => _tradejs_types.Indicator[];
25
+ declare const registerIndicatorEntries: (entries: readonly IndicatorPluginEntry[], source: string, scope?: string) => void;
26
+ declare const getRegisteredIndicatorEntries: (scope?: string) => IndicatorPluginEntry[];
27
+ declare const getPluginIndicatorCatalog: (scope?: string) => _tradejs_types.Indicator[];
28
28
  type IndicatorRendererDescriptor = {
29
29
  indicatorId: string;
30
30
  renderer: IndicatorPluginRenderer;
31
31
  };
32
- declare const getPluginIndicatorRenderers: () => IndicatorRendererDescriptor[];
32
+ declare const getPluginIndicatorRenderers: (scope?: string) => IndicatorRendererDescriptor[];
33
33
 
34
34
  declare const indicatorEntries: readonly [];
35
35
  declare const _default: {
package/dist/index.js CHANGED
@@ -102,10 +102,10 @@ var import_indicators = require("@tradejs/core/indicators");
102
102
 
103
103
  // src/registry.ts
104
104
  var import_indicators2 = require("@tradejs/core/indicators");
105
- var registerIndicatorEntries = (entries, source) => (0, import_indicators2.registerIndicatorEntries)(entries, source);
106
- var getRegisteredIndicatorEntries = () => (0, import_indicators2.getRegisteredIndicatorEntries)();
107
- var getPluginIndicatorCatalog = () => (0, import_indicators2.getPluginIndicatorCatalog)();
108
- var getPluginIndicatorRenderers = () => (0, import_indicators2.getPluginIndicatorRenderers)();
105
+ var registerIndicatorEntries = (entries, source, scope) => (0, import_indicators2.registerIndicatorEntries)(entries, source, scope);
106
+ var getRegisteredIndicatorEntries = (scope) => (0, import_indicators2.getRegisteredIndicatorEntries)(scope);
107
+ var getPluginIndicatorCatalog = (scope) => (0, import_indicators2.getPluginIndicatorCatalog)(scope);
108
+ var getPluginIndicatorRenderers = (scope) => (0, import_indicators2.getPluginIndicatorRenderers)(scope);
109
109
 
110
110
  // src/index.ts
111
111
  var indicatorEntries = [];
package/dist/index.mjs CHANGED
@@ -74,10 +74,10 @@ import {
74
74
  getRegisteredIndicatorEntries as getRegisteredIndicatorEntriesCore,
75
75
  registerIndicatorEntries as registerIndicatorEntriesCore
76
76
  } from "@tradejs/core/indicators";
77
- var registerIndicatorEntries = (entries, source) => registerIndicatorEntriesCore(entries, source);
78
- var getRegisteredIndicatorEntries = () => getRegisteredIndicatorEntriesCore();
79
- var getPluginIndicatorCatalog = () => getPluginIndicatorCatalogCore();
80
- var getPluginIndicatorRenderers = () => getPluginIndicatorRenderersCore();
77
+ var registerIndicatorEntries = (entries, source, scope) => registerIndicatorEntriesCore(entries, source, scope);
78
+ var getRegisteredIndicatorEntries = (scope) => getRegisteredIndicatorEntriesCore(scope);
79
+ var getPluginIndicatorCatalog = (scope) => getPluginIndicatorCatalogCore(scope);
80
+ var getPluginIndicatorRenderers = (scope) => getPluginIndicatorRenderersCore(scope);
81
81
 
82
82
  // src/index.ts
83
83
  var indicatorEntries = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tradejs/indicators",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Built-in TradeJS indicator plugin catalog.",
5
5
  "keywords": [
6
6
  "tradejs",
@@ -24,8 +24,8 @@
24
24
  }
25
25
  },
26
26
  "dependencies": {
27
- "@tradejs/core": "^1.0.2",
28
- "@tradejs/types": "^1.0.2",
27
+ "@tradejs/core": "^1.0.4",
28
+ "@tradejs/types": "^1.0.4",
29
29
  "klinecharts": "10.0.0-alpha9",
30
30
  "technicalindicators": "^3.1.0"
31
31
  },