@pikku/cli 0.6.13 → 0.6.14
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/CHANGELOG.md +10 -0
- package/dist/src/channels/serialize-channels.js +2 -2
- package/dist/src/http/serialize-route-meta.js +2 -2
- package/dist/src/scheduler/serialize-schedulers.js +2 -2
- package/package.json +2 -2
- package/src/channels/serialize-channels.ts +2 -2
- package/src/http/serialize-route-meta.ts +2 -2
- package/src/scheduler/serialize-schedulers.ts +2 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @pikku/cli
|
|
2
2
|
|
|
3
|
+
## 0.6.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ebc04eb: refactor: move all global state into pikku state
|
|
8
|
+
- Updated dependencies [ebc04eb]
|
|
9
|
+
- Updated dependencies [8a14f3a]
|
|
10
|
+
- Updated dependencies [2c47386]
|
|
11
|
+
- @pikku/core@0.6.17
|
|
12
|
+
|
|
3
13
|
## 0.6.13
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -13,7 +13,7 @@ export const serializeChannels = (outputPath, filesWithChannels, packageMappings
|
|
|
13
13
|
};
|
|
14
14
|
export const serializeChannelMeta = (channelsMeta) => {
|
|
15
15
|
const serializedOutput = [];
|
|
16
|
-
serializedOutput.push("import {
|
|
17
|
-
serializedOutput.push(`
|
|
16
|
+
serializedOutput.push("import { pikkuState } from '@pikku/core'");
|
|
17
|
+
serializedOutput.push(`pikkuState('channel', 'meta', ${JSON.stringify(channelsMeta, null, 2)})`);
|
|
18
18
|
return serializedOutput.join('\n');
|
|
19
19
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const serializeHTTPRoutesMeta = (routesMeta) => {
|
|
2
2
|
const serializedOutput = [];
|
|
3
|
-
serializedOutput.push("import {
|
|
4
|
-
serializedOutput.push(`
|
|
3
|
+
serializedOutput.push("import { pikkuState } from '@pikku/core'");
|
|
4
|
+
serializedOutput.push(`pikkuState('http', 'meta', ${JSON.stringify(routesMeta, null, 2)})`);
|
|
5
5
|
return serializedOutput.join('\n');
|
|
6
6
|
};
|
|
@@ -13,8 +13,8 @@ export const serializeSchedulers = (outputPath, filesWithScheduledTasks, package
|
|
|
13
13
|
};
|
|
14
14
|
export const serializeSchedulerMeta = (scheduledTasksMeta) => {
|
|
15
15
|
const serializedOutput = [];
|
|
16
|
-
serializedOutput.push("import {
|
|
17
|
-
serializedOutput.push(`
|
|
16
|
+
serializedOutput.push("import { pikkuState } from '@pikku/core'");
|
|
17
|
+
serializedOutput.push(`pikkuState('scheduler', 'meta', ${JSON.stringify(scheduledTasksMeta, null, 2)})`);
|
|
18
18
|
if (scheduledTasksMeta.length > 0) {
|
|
19
19
|
serializedOutput.push(`export type ScheduledTaskNames = '${scheduledTasksMeta.map((s) => s.name).join("' | '")}'`);
|
|
20
20
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pikku/cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.14",
|
|
4
4
|
"author": "yasser.fadl@gmail.com",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@openapi-contrib/json-schema-to-openapi-schema": "^3.0.2",
|
|
25
|
-
"@pikku/core": "^0.6.
|
|
25
|
+
"@pikku/core": "^0.6.17",
|
|
26
26
|
"@pikku/inspector": "^0.6.3",
|
|
27
27
|
"@types/cookie": "^0.6.0",
|
|
28
28
|
"@types/uuid": "^10.0.0",
|
|
@@ -26,9 +26,9 @@ export const serializeChannels = (
|
|
|
26
26
|
|
|
27
27
|
export const serializeChannelMeta = (channelsMeta: ChannelsMeta) => {
|
|
28
28
|
const serializedOutput: string[] = []
|
|
29
|
-
serializedOutput.push("import {
|
|
29
|
+
serializedOutput.push("import { pikkuState } from '@pikku/core'")
|
|
30
30
|
serializedOutput.push(
|
|
31
|
-
`
|
|
31
|
+
`pikkuState('channel', 'meta', ${JSON.stringify(channelsMeta, null, 2)})`
|
|
32
32
|
)
|
|
33
33
|
return serializedOutput.join('\n')
|
|
34
34
|
}
|
|
@@ -2,9 +2,9 @@ import type { HTTPRoutesMeta } from '@pikku/core/http'
|
|
|
2
2
|
|
|
3
3
|
export const serializeHTTPRoutesMeta = (routesMeta: HTTPRoutesMeta) => {
|
|
4
4
|
const serializedOutput: string[] = []
|
|
5
|
-
serializedOutput.push("import {
|
|
5
|
+
serializedOutput.push("import { pikkuState } from '@pikku/core'")
|
|
6
6
|
serializedOutput.push(
|
|
7
|
-
`
|
|
7
|
+
`pikkuState('http', 'meta', ${JSON.stringify(routesMeta, null, 2)})`
|
|
8
8
|
)
|
|
9
9
|
return serializedOutput.join('\n')
|
|
10
10
|
}
|
|
@@ -28,11 +28,9 @@ export const serializeSchedulerMeta = (
|
|
|
28
28
|
scheduledTasksMeta: ScheduledTasksMeta
|
|
29
29
|
) => {
|
|
30
30
|
const serializedOutput: string[] = []
|
|
31
|
+
serializedOutput.push("import { pikkuState } from '@pikku/core'")
|
|
31
32
|
serializedOutput.push(
|
|
32
|
-
|
|
33
|
-
)
|
|
34
|
-
serializedOutput.push(
|
|
35
|
-
`setScheduledTasksMeta(${JSON.stringify(scheduledTasksMeta, null, 2)})`
|
|
33
|
+
`pikkuState('scheduler', 'meta', ${JSON.stringify(scheduledTasksMeta, null, 2)})`
|
|
36
34
|
)
|
|
37
35
|
if (scheduledTasksMeta.length > 0) {
|
|
38
36
|
serializedOutput.push(
|