@k3000/store 0.6.1 → 1.0.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/generator.mjs +16 -0
- package/package.json +1 -1
- package/test/1/data +0 -0
- package/test/1/index +0 -0
- package/test/2/data +0 -0
- package/test/2/index +0 -0
- package/test/3/data +0 -0
- package/test/3/index +0 -0
- package/test/4/data +0 -0
- package/test/4/index +0 -0
- package/test/5/data +0 -0
- package/test/5/index +0 -0
- package/test/6/data +0 -0
- package/test/6/index +0 -0
- package/test/7/data +0 -0
- package/test/7/index +0 -0
- package/test.mjs +3 -1
package/generator.mjs
CHANGED
|
@@ -761,6 +761,22 @@ const commentRemark = (remark = '') => remark.replace(/\n/g, '\n\t * ')
|
|
|
761
761
|
|
|
762
762
|
function submit() {
|
|
763
763
|
|
|
764
|
+
if (this.updateSet.size) {
|
|
765
|
+
|
|
766
|
+
this.curr.record.pointer = 0
|
|
767
|
+
|
|
768
|
+
for (const key of Object.keys(this.curr.record.idle)) {
|
|
769
|
+
|
|
770
|
+
this.curr.record.idle[key] = []
|
|
771
|
+
this.curr.record.record[key] = []
|
|
772
|
+
|
|
773
|
+
for (const k of Object.keys(this.curr.record.index[key])) {
|
|
774
|
+
|
|
775
|
+
this.curr.record.index[key][k] = []
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
|
|
764
780
|
this.curr.updateStruct(this.curr.struct)
|
|
765
781
|
this.curr.updateRecord(this.curr.record)
|
|
766
782
|
|
package/package.json
CHANGED
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/3/data
CHANGED
|
Binary file
|
package/test/3/index
CHANGED
|
Binary file
|
package/test/4/data
CHANGED
|
Binary file
|
package/test/4/index
CHANGED
|
Binary file
|
package/test/5/data
CHANGED
|
Binary file
|
package/test/5/index
CHANGED
|
Binary file
|
package/test/6/data
CHANGED
|
Binary file
|
package/test/6/index
CHANGED
|
Binary file
|
package/test/7/data
CHANGED
|
Binary file
|
package/test/7/index
CHANGED
|
Binary file
|
package/test.mjs
CHANGED
|
@@ -639,6 +639,8 @@ test('测试结构操作', async t => {
|
|
|
639
639
|
const {updateCol, submit} = upgrade('test', {version: 3})
|
|
640
640
|
|
|
641
641
|
updateCol('test2', {
|
|
642
|
+
uid: String(`账
|
|
643
|
+
户`).length(32),
|
|
642
644
|
test: String,
|
|
643
645
|
test2: String(),
|
|
644
646
|
test3: Int(3)
|
|
@@ -741,7 +743,7 @@ test('测试结构操作', async t => {
|
|
|
741
743
|
|
|
742
744
|
await new Promise(resolve => {
|
|
743
745
|
|
|
744
|
-
t.test('
|
|
746
|
+
t.test('测试压缩操作', _ => {
|
|
745
747
|
|
|
746
748
|
const {submit} = upgrade('test', {
|
|
747
749
|
version: 7,
|