@nxtedition/lib 19.6.0 → 19.6.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 (3) hide show
  1. package/app.js +1 -0
  2. package/package.json +1 -1
  3. package/sequence.js +4 -2
package/app.js CHANGED
@@ -134,6 +134,7 @@ export function makeApp(appConfig, onTerminate) {
134
134
  base: {
135
135
  module: serviceModule,
136
136
  pid: process.pid,
137
+ tid: threadId,
137
138
  hostname: os.hostname(),
138
139
  ...loggerConfig.base,
139
140
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "19.6.0",
3
+ "version": "19.6.2",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",
package/sequence.js CHANGED
@@ -95,8 +95,10 @@ export class Sequence {
95
95
  set(index, sequence) {
96
96
  assert(Number.isFinite(index) && index >= 0 && index < this.#parts.length)
97
97
  assert(Number.isFinite(sequence) && sequence >= 0)
98
- this.#parts[index * 2 + 1] = sequence
99
- this.#value = undefined
98
+ if (this.#parts[index * 2 + 1] !== sequence) {
99
+ this.#parts[index * 2 + 1] = sequence
100
+ this.#value = undefined
101
+ }
100
102
  }
101
103
 
102
104
  toString() {