@hesed/gchat 0.2.0 → 0.2.1

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/README.md CHANGED
@@ -26,7 +26,7 @@ $ npm install -g @hesed/gchat
26
26
  $ gchat COMMAND
27
27
  running command...
28
28
  $ gchat (--version)
29
- @hesed/gchat/0.2.0 linux-x64 node-v22.22.0
29
+ @hesed/gchat/0.2.1 linux-x64 node-v22.22.0
30
30
  $ gchat --help [COMMAND]
31
31
  USAGE
32
32
  $ gchat COMMAND
@@ -61,7 +61,7 @@ EXAMPLES
61
61
  $ gchat gchat config add-token AAQAKA6hsFw your-space-token
62
62
  ```
63
63
 
64
- _See code: [src/commands/gchat/config/add-token.ts](https://github.com/hesedcasa/gchat/blob/v0.2.0/src/commands/gchat/config/add-token.ts)_
64
+ _See code: [src/commands/gchat/config/add-token.ts](https://github.com/hesedcasa/gchat/blob/v0.2.1/src/commands/gchat/config/add-token.ts)_
65
65
 
66
66
  ## `gchat gchat config set-key KEY`
67
67
 
@@ -81,7 +81,7 @@ EXAMPLES
81
81
  $ gchat gchat config set-key your-api-key
82
82
  ```
83
83
 
84
- _See code: [src/commands/gchat/config/set-key.ts](https://github.com/hesedcasa/gchat/blob/v0.2.0/src/commands/gchat/config/set-key.ts)_
84
+ _See code: [src/commands/gchat/config/set-key.ts](https://github.com/hesedcasa/gchat/blob/v0.2.1/src/commands/gchat/config/set-key.ts)_
85
85
 
86
86
  ## `gchat gchat create-message SPACEID MESSAGE`
87
87
 
@@ -108,7 +108,7 @@ EXAMPLES
108
108
  $ gchat gchat create-message AAQAKA6hsFw "*Bold message*" --formatted
109
109
  ```
110
110
 
111
- _See code: [src/commands/gchat/create-message.ts](https://github.com/hesedcasa/gchat/blob/v0.2.0/src/commands/gchat/create-message.ts)_
111
+ _See code: [src/commands/gchat/create-message.ts](https://github.com/hesedcasa/gchat/blob/v0.2.1/src/commands/gchat/create-message.ts)_
112
112
 
113
113
  ## `gchat gchat reply-message THREADNAME MESSAGE`
114
114
 
@@ -135,5 +135,5 @@ EXAMPLES
135
135
  $ gchat gchat reply-message spaces/AAQAKA6hsFw/threads/D1NI3W2B6vA "*Bold reply*" --formatted
136
136
  ```
137
137
 
138
- _See code: [src/commands/gchat/reply-message.ts](https://github.com/hesedcasa/gchat/blob/v0.2.0/src/commands/gchat/reply-message.ts)_
138
+ _See code: [src/commands/gchat/reply-message.ts](https://github.com/hesedcasa/gchat/blob/v0.2.1/src/commands/gchat/reply-message.ts)_
139
139
  <!-- commandsstop -->
@@ -23,7 +23,8 @@ export default class GChatCreateMessage extends Command {
23
23
  const config = await readConfig(this.config.configDir, this.log.bind(this));
24
24
  if (!config)
25
25
  return;
26
- const result = await newMessage(config.auth, args.spaceId, args.message, flags.formatted);
26
+ // eslint-disable-next-line unicorn/prefer-string-replace-all
27
+ const result = await newMessage(config.auth, args.spaceId, args.message.replace(/\\n/g, '\n'), flags.formatted);
27
28
  clearClients();
28
29
  if (flags.toon) {
29
30
  this.log(formatAsToon(result));
@@ -26,7 +26,8 @@ export default class GChatReplyMessage extends Command {
26
26
  const config = await readConfig(this.config.configDir, this.log.bind(this));
27
27
  if (!config)
28
28
  return;
29
- const result = await replyMessage(config.auth, args.threadName, args.message, flags.formatted);
29
+ // eslint-disable-next-line unicorn/prefer-string-replace-all
30
+ const result = await replyMessage(config.auth, args.threadName, args.message.replace(/\\n/g, '\n'), flags.formatted);
30
31
  clearClients();
31
32
  if (flags.toon) {
32
33
  this.log(formatAsToon(result));
@@ -172,5 +172,5 @@
172
172
  ]
173
173
  }
174
174
  },
175
- "version": "0.2.0"
175
+ "version": "0.2.1"
176
176
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hesed/gchat",
3
3
  "description": "CLI for Google Chat API interaction",
4
- "version": "0.2.0",
4
+ "version": "0.2.1",
5
5
  "author": "Hesed",
6
6
  "bin": {
7
7
  "gchat": "./bin/run.js"