@next-k8s/nats-test 1.0.9 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,30 @@
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.12](https://github.com/mathiscode/next-k8s/compare/@next-k8s/nats-test@1.0.11...@next-k8s/nats-test@1.0.12) (2022-07-30)
7
+
8
+ **Note:** Version bump only for package @next-k8s/nats-test
9
+
10
+
11
+
12
+
13
+
14
+ ## [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)
15
+
16
+ **Note:** Version bump only for package @next-k8s/nats-test
17
+
18
+
19
+
20
+
21
+
22
+ ## [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)
23
+
24
+ **Note:** Version bump only for package @next-k8s/nats-test
25
+
26
+
27
+
28
+
29
+
6
30
  ## [1.0.9](https://github.com/mathiscode/next-k8s-boilerplate/compare/@next-k8s/nats-test@1.0.8...@next-k8s/nats-test@1.0.9) (2022-07-06)
7
31
 
8
32
  **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.9",
3
+ "version": "1.0.12",
4
4
  "description": "nats-test",
5
5
  "scripts": {
6
6
  "publisher": "ts-node-dev --rs --notify false src/publisher.ts",
@@ -10,10 +10,11 @@
10
10
  "access": "public"
11
11
  },
12
12
  "dependencies": {
13
+ "@next-k8s/common": "^0.1.36",
13
14
  "@types/node": "^18.0.1",
14
15
  "node-nats-streaming": "^0.3.2",
15
16
  "ts-node-dev": "^2.0.0",
16
17
  "typescript": "^4.7.4"
17
18
  },
18
- "gitHead": "e28ae26195b5a105e974ff366741832500b17b31"
19
+ "gitHead": "b2b69ab41a506a1496d8fa6aa5c2e150504bdde2"
19
20
  }
@@ -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
  })