@k3000/store 1.1.5 → 1.2.0

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/architect.mjs +7 -4
  2. package/package.json +1 -1
package/architect.mjs CHANGED
@@ -344,14 +344,17 @@ export class Entity {
344
344
  return buffer
345
345
  }
346
346
 
347
- textToBuffer(value = '', name) {
347
+ textToBuffer(value, name) {
348
348
 
349
349
  const buffer = Buffer.alloc(TypeLen.text)
350
350
 
351
- writeFileSync(this.#storage.bufferDir + (this.#position + this.#positionSet[name]),
352
- typeof value === "string" ? value : String(value))
351
+ if (value) {
353
352
 
354
- buffer[0] = 1
353
+ writeFileSync(this.#storage.bufferDir + (this.#position + this.#positionSet[name]),
354
+ typeof value === "string" ? value : String(value))
355
+
356
+ buffer[0] = 1
357
+ }
355
358
 
356
359
  return buffer
357
360
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k3000/store",
3
- "version": "1.1.5",
3
+ "version": "1.2.0",
4
4
  "description": "storage",
5
5
  "main": "generator.mjs",
6
6
  "scripts": {