@k3000/store 1.2.1 → 1.2.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/architect.mjs +1 -5
  2. package/package.json +1 -1
package/architect.mjs CHANGED
@@ -277,11 +277,7 @@ export class Entity {
277
277
 
278
278
  readFileSync(name) {
279
279
 
280
- const path = this.#storage.bufferDir + (this.#position + this.#positionSet[name])
281
-
282
- if (!existsSync(path)) return Buffer.alloc(0)
283
-
284
- return readFileSync(path)
280
+ return readFileSync(this.#storage.bufferDir + (this.#position + this.#positionSet[name]))
285
281
  }
286
282
 
287
283
  buffer(value, name) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k3000/store",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "storage",
5
5
  "main": "generator.mjs",
6
6
  "scripts": {