@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.
- package/architect.mjs +7 -4
- 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
|
|
347
|
+
textToBuffer(value, name) {
|
|
348
348
|
|
|
349
349
|
const buffer = Buffer.alloc(TypeLen.text)
|
|
350
350
|
|
|
351
|
-
|
|
352
|
-
typeof value === "string" ? value : String(value))
|
|
351
|
+
if (value) {
|
|
353
352
|
|
|
354
|
-
|
|
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
|
}
|