@next-k8s/nats-test 1.0.10 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.11](https://github.com/mathiscode/next-k8s/compare/@next-k8s/nats-test@1.0.10...@next-k8s/nats-test@1.0.11) (2022-07-12)
7
+
8
+ **Note:** Version bump only for package @next-k8s/nats-test
9
+
10
+
11
+
12
+
13
+
6
14
  ## [1.0.10](https://github.com/mathiscode/next-k8s-boilerplate/compare/@next-k8s/nats-test@1.0.9...@next-k8s/nats-test@1.0.10) (2022-07-07)
7
15
 
8
16
  **Note:** Version bump only for package @next-k8s/nats-test
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ # MIT License
2
+
3
+ Copyright (c) 2022 Jay Mathis <code@mathis.network>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-k8s/nats-test",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "nats-test",
5
5
  "scripts": {
6
6
  "publisher": "ts-node-dev --rs --notify false src/publisher.ts",
@@ -15,5 +15,5 @@
15
15
  "ts-node-dev": "^2.0.0",
16
16
  "typescript": "^4.7.4"
17
17
  },
18
- "gitHead": "c632d1f1265d73b618903052426fee9dbb0db02d"
18
+ "gitHead": "10be151191ede8c7f7f5c459c716e09502e8e4d1"
19
19
  }
@@ -17,9 +17,9 @@ abstract class Publisher<T extends Event> {
17
17
 
18
18
  publish (data: T['data']): Promise<T['data']> {
19
19
  return new Promise((resolve, reject) => {
20
- this.client.publish(this.subject, JSON.stringify(data), err => {
20
+ this.client.publish(this.subject, JSON.stringify(data), (err: any) => {
21
21
  if (err) return reject(err)
22
- console.log('Event published: ', this.subject)
22
+ console.log(this.subject)
23
23
  resolve(data)
24
24
  })
25
25
  })