@cedarjs/cli 1.0.0-canary.12700 → 1.0.0-canary.12705

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.
@@ -20,7 +20,7 @@ export const schema = gql`
20
20
  const countdown = {
21
21
  countdown: {
22
22
  subscribe: (
23
- _,
23
+ _: unknown,
24
24
  {
25
25
  from = 100,
26
26
  interval = 10,
@@ -16,30 +16,32 @@ export type NewMessageChannel = {
16
16
  export type NewMessageChannelType = PubSub<NewMessageChannel>
17
17
 
18
18
  /**
19
- * To test this NewMessage subscription, run the following in one GraphQL Playground to subscribe:
19
+ * To test this NewMessage subscription, run the following in one GraphQL
20
+ * Playground to subscribe:
20
21
  *
21
22
  * subscription ListenForNewMessagesInRoom {
22
23
  * newMessage(roomId: "1") {
23
- * body
24
24
  * from
25
+ * body
25
26
  * }
26
27
  * }
27
28
  *
28
29
  *
29
- * And run the following in another GraphQL Playground to publish and send a message to the room:
30
+ * And run the following in another GraphQL Playground to publish and send a
31
+ * message to the room:
30
32
  *
31
33
  * mutation SendMessageToRoom {
32
34
  * sendMessage(input: {roomId: "1", from: "hello", body: "bob"}) {
33
- * body
34
35
  * from
36
+ * body
35
37
  * }
36
38
  * }
37
39
  */
38
40
  const newMessage = {
39
41
  newMessage: {
40
42
  subscribe: (
41
- _,
42
- { roomId },
43
+ _: unknown,
44
+ { roomId }: { roomId: string },
43
45
  { pubSub }: { pubSub: NewMessageChannelType }
44
46
  ) => {
45
47
  logger.debug({ roomId }, 'newMessage subscription')
@@ -1,8 +1,9 @@
1
1
  import type { SendMessageInput } from 'types/graphql'
2
- import type { NewMessageChannelType } from 'src/subscriptions/newMessage/newMessage.js'
2
+
3
3
  import { logger } from 'src/lib/logger'
4
+ import type { NewMessageChannelType } from 'src/subscriptions/newMessage/newMessage.js'
4
5
 
5
- export const room = ({ id }) => [id]
6
+ export const room = ({ id }: { id: string }) => [id]
6
7
 
7
8
  export const sendMessage = async (
8
9
  { input }: { input: SendMessageInput },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "1.0.0-canary.12700+3d0603dfe",
3
+ "version": "1.0.0-canary.12705+f70360a66",
4
4
  "description": "The CedarJS Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,15 +32,15 @@
32
32
  "dependencies": {
33
33
  "@babel/preset-typescript": "7.27.1",
34
34
  "@babel/runtime-corejs3": "7.27.6",
35
- "@cedarjs/api-server": "1.0.0-canary.12700",
36
- "@cedarjs/cli-helpers": "1.0.0-canary.12700",
37
- "@cedarjs/fastify-web": "1.0.0-canary.12700",
38
- "@cedarjs/internal": "1.0.0-canary.12700",
39
- "@cedarjs/prerender": "1.0.0-canary.12700",
40
- "@cedarjs/project-config": "1.0.0-canary.12700",
41
- "@cedarjs/structure": "1.0.0-canary.12700",
42
- "@cedarjs/telemetry": "1.0.0-canary.12700",
43
- "@cedarjs/web-server": "1.0.0-canary.12700",
35
+ "@cedarjs/api-server": "1.0.0-canary.12705",
36
+ "@cedarjs/cli-helpers": "1.0.0-canary.12705",
37
+ "@cedarjs/fastify-web": "1.0.0-canary.12705",
38
+ "@cedarjs/internal": "1.0.0-canary.12705",
39
+ "@cedarjs/prerender": "1.0.0-canary.12705",
40
+ "@cedarjs/project-config": "1.0.0-canary.12705",
41
+ "@cedarjs/structure": "1.0.0-canary.12705",
42
+ "@cedarjs/telemetry": "1.0.0-canary.12705",
43
+ "@cedarjs/web-server": "1.0.0-canary.12705",
44
44
  "@listr2/prompt-adapter-enquirer": "2.0.16",
45
45
  "@opentelemetry/api": "1.8.0",
46
46
  "@opentelemetry/core": "1.22.0",
@@ -102,5 +102,5 @@
102
102
  "publishConfig": {
103
103
  "access": "public"
104
104
  },
105
- "gitHead": "3d0603dfeae06653c381e0678bf2ffa5a61a3bb2"
105
+ "gitHead": "f70360a66c5e92266af0926d76b40272c3a91483"
106
106
  }