@jjlmoya/utils-streaming 1.8.0 → 1.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/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@jjlmoya/utils-streaming",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
7
7
  "exports": {
8
8
  ".": "./src/index.ts",
9
- "./data": "./src/data.ts"
9
+ "./data": "./src/data.ts",
10
+ "./entries": "./src/entries.ts"
10
11
  },
11
12
  "files": [
12
13
  "src"
package/src/entries.ts ADDED
@@ -0,0 +1,8 @@
1
+ export { sorteo } from './tool/sorteo/entry';
2
+ export type { SorteoLocaleContent } from './tool/sorteo/entry';
3
+ export { tebasCheck } from './tool/tebasCheck/entry';
4
+ export type { TebasCheckLocaleContent } from './tool/tebasCheck/entry';
5
+ export { streamingCategory } from './category';
6
+ import { sorteo } from './tool/sorteo/entry';
7
+ import { tebasCheck } from './tool/tebasCheck/entry';
8
+ export const ALL_ENTRIES = [sorteo, tebasCheck];
@@ -0,0 +1,29 @@
1
+ import type { StreamingToolEntry, ToolLocaleContent } from '../../types';
2
+ import type { SorteoUI } from './ui';
3
+
4
+ export type SorteoLocaleContent = ToolLocaleContent<SorteoUI>;
5
+
6
+ export const sorteo: StreamingToolEntry<SorteoUI> = {
7
+ id: 'sorteo',
8
+ icons: {
9
+ bg: 'mdi:ticket',
10
+ fg: 'mdi:account-group',
11
+ },
12
+ i18n: {
13
+ es: () => import('./i18n/es').then((m) => m.content),
14
+ en: () => import('./i18n/en').then((m) => m.content),
15
+ fr: () => import('./i18n/fr').then((m) => m.content),
16
+ de: () => import('./i18n/de').then((m) => m.content),
17
+ id: () => import('./i18n/id').then((m) => m.content),
18
+ it: () => import('./i18n/it').then((m) => m.content),
19
+ ja: () => import('./i18n/ja').then((m) => m.content),
20
+ ko: () => import('./i18n/ko').then((m) => m.content),
21
+ nl: () => import('./i18n/nl').then((m) => m.content),
22
+ pl: () => import('./i18n/pl').then((m) => m.content),
23
+ pt: () => import('./i18n/pt').then((m) => m.content),
24
+ ru: () => import('./i18n/ru').then((m) => m.content),
25
+ sv: () => import('./i18n/sv').then((m) => m.content),
26
+ tr: () => import('./i18n/tr').then((m) => m.content),
27
+ zh: () => import('./i18n/zh').then((m) => m.content),
28
+ },
29
+ };
@@ -1,34 +1,5 @@
1
- import type { StreamingToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
- import type { SorteoUI } from './ui';
3
-
4
- export type SorteoLocaleContent = ToolLocaleContent<SorteoUI>;
5
-
6
- export const sorteo: StreamingToolEntry<SorteoUI> = {
7
- id: 'sorteo',
8
- icons: {
9
- bg: 'mdi:ticket',
10
- fg: 'mdi:account-group',
11
- },
12
- i18n: {
13
- es: () => import('./i18n/es').then((m) => m.content),
14
- en: () => import('./i18n/en').then((m) => m.content),
15
- fr: () => import('./i18n/fr').then((m) => m.content),
16
- de: () => import('./i18n/de').then((m) => m.content),
17
- id: () => import('./i18n/id').then((m) => m.content),
18
- it: () => import('./i18n/it').then((m) => m.content),
19
- ja: () => import('./i18n/ja').then((m) => m.content),
20
- ko: () => import('./i18n/ko').then((m) => m.content),
21
- nl: () => import('./i18n/nl').then((m) => m.content),
22
- pl: () => import('./i18n/pl').then((m) => m.content),
23
- pt: () => import('./i18n/pt').then((m) => m.content),
24
- ru: () => import('./i18n/ru').then((m) => m.content),
25
- sv: () => import('./i18n/sv').then((m) => m.content),
26
- tr: () => import('./i18n/tr').then((m) => m.content),
27
- zh: () => import('./i18n/zh').then((m) => m.content),
28
- },
29
- };
30
-
31
-
1
+ import { sorteo } from './entry';
2
+ export * from './entry';
32
3
  export const SORTEO_TOOL: ToolDefinition = {
33
4
  entry: sorteo,
34
5
  Component: () => import('./component.astro'),
@@ -0,0 +1,29 @@
1
+ import type { StreamingToolEntry, ToolLocaleContent } from '../../types';
2
+ import type { TebasCheckUI } from './types';
3
+
4
+ export type TebasCheckLocaleContent = ToolLocaleContent<TebasCheckUI>;
5
+
6
+ export const tebasCheck: StreamingToolEntry<TebasCheckUI> = {
7
+ id: 'tebas-check',
8
+ icons: {
9
+ bg: 'mdi:shield-search',
10
+ fg: 'mdi:security',
11
+ },
12
+ i18n: {
13
+ es: () => import('./i18n/es').then((m) => m.content),
14
+ en: () => import('./i18n/en').then((m) => m.content),
15
+ fr: () => import('./i18n/fr').then((m) => m.content),
16
+ de: () => import('./i18n/de').then((m) => m.content),
17
+ id: () => import('./i18n/id').then((m) => m.content),
18
+ it: () => import('./i18n/it').then((m) => m.content),
19
+ ja: () => import('./i18n/ja').then((m) => m.content),
20
+ ko: () => import('./i18n/ko').then((m) => m.content),
21
+ nl: () => import('./i18n/nl').then((m) => m.content),
22
+ pl: () => import('./i18n/pl').then((m) => m.content),
23
+ pt: () => import('./i18n/pt').then((m) => m.content),
24
+ ru: () => import('./i18n/ru').then((m) => m.content),
25
+ sv: () => import('./i18n/sv').then((m) => m.content),
26
+ tr: () => import('./i18n/tr').then((m) => m.content),
27
+ zh: () => import('./i18n/zh').then((m) => m.content),
28
+ },
29
+ };
@@ -1,34 +1,5 @@
1
- import type { StreamingToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
- import type { TebasCheckUI } from './types';
3
-
4
- export type TebasCheckLocaleContent = ToolLocaleContent<TebasCheckUI>;
5
-
6
- export const tebasCheck: StreamingToolEntry<TebasCheckUI> = {
7
- id: 'tebas-check',
8
- icons: {
9
- bg: 'mdi:shield-search',
10
- fg: 'mdi:security',
11
- },
12
- i18n: {
13
- es: () => import('./i18n/es').then((m) => m.content),
14
- en: () => import('./i18n/en').then((m) => m.content),
15
- fr: () => import('./i18n/fr').then((m) => m.content),
16
- de: () => import('./i18n/de').then((m) => m.content),
17
- id: () => import('./i18n/id').then((m) => m.content),
18
- it: () => import('./i18n/it').then((m) => m.content),
19
- ja: () => import('./i18n/ja').then((m) => m.content),
20
- ko: () => import('./i18n/ko').then((m) => m.content),
21
- nl: () => import('./i18n/nl').then((m) => m.content),
22
- pl: () => import('./i18n/pl').then((m) => m.content),
23
- pt: () => import('./i18n/pt').then((m) => m.content),
24
- ru: () => import('./i18n/ru').then((m) => m.content),
25
- sv: () => import('./i18n/sv').then((m) => m.content),
26
- tr: () => import('./i18n/tr').then((m) => m.content),
27
- zh: () => import('./i18n/zh').then((m) => m.content),
28
- },
29
- };
30
-
31
-
1
+ import { tebasCheck } from './entry';
2
+ export * from './entry';
32
3
  export const TEBAS_CHECK_TOOL: ToolDefinition = {
33
4
  entry: tebasCheck,
34
5
  Component: () => import('./component.astro'),
package/src/tools.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { ALL_ENTRIES } from './entries';
1
2
  import type { ToolDefinition } from './types';
2
3
  import { SORTEO_TOOL } from './tool/sorteo/index';
3
4
  import { TEBAS_CHECK_TOOL } from './tool/tebasCheck/index';
@@ -7,4 +8,3 @@ export const ALL_TOOLS: ToolDefinition[] = [
7
8
  TEBAS_CHECK_TOOL,
8
9
  ];
9
10
 
10
- export const ALL_ENTRIES = ALL_TOOLS.map(t => t.entry);