@k3000/store 1.1.2 → 1.1.3

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/generator.mjs CHANGED
@@ -589,6 +589,10 @@ function appendSet(name, set, remark = '') {
589
589
  if (value.index) {
590
590
 
591
591
  value.index = []
592
+
593
+ } else if (Reflect.has(value, 'index')) {
594
+
595
+ delete value.index
592
596
  }
593
597
  }
594
598
 
@@ -636,6 +640,10 @@ function updateCol(name, set) {
636
640
  if (value.index) {
637
641
 
638
642
  value.index = []
643
+
644
+ } else if (Reflect.has(value, 'index')) {
645
+
646
+ delete value.index
639
647
  }
640
648
  }
641
649
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k3000/store",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "storage",
5
5
  "main": "generator.mjs",
6
6
  "scripts": {
package/test/1/data CHANGED
Binary file
package/test/1/index CHANGED
Binary file
package/test/2/data CHANGED
Binary file
package/test/2/index CHANGED
Binary file
package/test/index.mjs CHANGED
@@ -1,15 +1,15 @@
1
1
 
2
2
  const index = import.meta.url.indexOf('?')
3
3
 
4
- export const modules = await import(`./7/index.mjs${index > -1 ? import.meta.url.substring(index) : ''}`)
4
+ export const modules = await import(`./2/index.mjs${index > -1 ? import.meta.url.substring(index) : ''}`)
5
5
 
6
6
  export const close = modules.close
7
7
  export const remark = modules.remark
8
- export const version = 7
8
+ export const version = 2
9
9
  export const getStruct = modules.getStruct
10
10
 
11
11
  /**
12
- * @type {import('./7/type').Storage}
12
+ * @type {import('./2/type').Storage}
13
13
  */
14
14
  export const storage = modules.default
15
15