@k3000/store 0.2.0 → 0.2.1
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 -3
- 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/generator.mjs
CHANGED
@@ -416,13 +416,26 @@ export const Float = remark => new class Float extends Type {
|
|
416
416
|
|
417
417
|
}()
|
418
418
|
|
419
|
-
|
419
|
+
/**
|
420
|
+
* @param {number | string} size
|
421
|
+
* @constructor
|
422
|
+
*/
|
423
|
+
export const String = size => new class String extends Type {
|
420
424
|
|
421
425
|
constructor() {
|
422
426
|
|
423
|
-
|
427
|
+
if (Number.isInteger(size)) {
|
428
|
+
|
429
|
+
super(typeMap.string);
|
430
|
+
|
431
|
+
super.length(SCOPE, size)
|
424
432
|
|
425
|
-
|
433
|
+
} else {
|
434
|
+
|
435
|
+
super(typeMap.string, size);
|
436
|
+
|
437
|
+
super.length(SCOPE, TypeLen.string)
|
438
|
+
}
|
426
439
|
}
|
427
440
|
|
428
441
|
index(support = true) {
|
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
|