@nitra/nats 4.3.1 → 4.3.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/publish.js +4 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/nats",
3
- "version": "4.3.1",
3
+ "version": "4.3.2",
4
4
  "description": "nats helper",
5
5
  "keywords": [
6
6
  "nats",
package/src/publish.js CHANGED
@@ -1,10 +1,9 @@
1
- import { log } from '@nitra/pino'
2
- import { env } from 'node:process'
3
- import { js } from './nats.js'
4
- import { checkSubjectFormat } from './utils.js'
5
1
  import { headers } from '@nats-io/nats-core'
6
2
  import { createHash } from 'node:crypto'
3
+ import { env } from 'node:process'
4
+ import { js } from './nats.js'
7
5
  import { stream } from './stream.js'
6
+ import { checkSubjectFormat } from './utils.js'
8
7
 
9
8
  /**
10
9
  * Публікує повідомлення у JetStream для вказаного subject.
@@ -23,7 +22,7 @@ export async function publish(subject, data, options = {}) {
23
22
  // перевіряємо чи subject відповідає формату stream.project:subject
24
23
  checkSubjectFormat(stream, `${stream}.${subject}`)
25
24
 
26
- log.debug('publish:', data)
25
+ // log.debug('publish:', data)
27
26
  const payload = JSON.stringify(data)
28
27
  let suffix = ''
29
28