@gmod/bed 2.1.5 → 2.1.7
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/CHANGELOG.md +8 -0
- package/dist/autoSql.d.ts +10 -0
- package/dist/autoSql.js +1565 -0
- package/dist/autoSql.js.map +1 -0
- package/dist/defaultTypes.js +6 -3
- package/dist/defaultTypes.js.map +1 -1
- package/dist/parser.js +4 -3
- package/dist/parser.js.map +1 -1
- package/esm/autoSql.d.ts +10 -0
- package/esm/autoSql.js +1564 -0
- package/esm/autoSql.js.map +1 -0
- package/esm/defaultTypes.js +3 -3
- package/esm/defaultTypes.js.map +1 -1
- package/esm/parser.js +4 -3
- package/esm/parser.js.map +1 -1
- package/package.json +3 -3
- package/src/autoSql.ts +1658 -0
- package/src/defaultTypes.ts +3 -3
- package/src/parser.ts +2 -2
- package/src/autoSql.js +0 -1501
package/src/defaultTypes.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import { parse } from './autoSql.js'
|
|
1
|
+
import parser from './autoSql.ts'
|
|
3
2
|
import { AutoSqlPreSchema } from './util.ts'
|
|
4
3
|
import * as types from './as/autoSqlSchemas.ts'
|
|
5
4
|
|
|
6
5
|
export default Object.fromEntries(
|
|
7
6
|
Object.entries(types).map(([key, value]) => [
|
|
8
7
|
key,
|
|
9
|
-
|
|
8
|
+
// @ts-expect-error
|
|
9
|
+
parser.parse(value.trim()) as AutoSqlPreSchema,
|
|
10
10
|
]),
|
|
11
11
|
)
|
package/src/parser.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import parser from './autoSql.js'
|
|
1
|
+
import parser from './autoSql.ts'
|
|
3
2
|
import types from './defaultTypes.ts'
|
|
4
3
|
import { detectTypes, AutoSqlSchema, AutoSqlPreSchema } from './util.ts'
|
|
5
4
|
|
|
@@ -23,6 +22,7 @@ export default class BED {
|
|
|
23
22
|
constructor(arguments_: { autoSql?: string; type?: string } = {}) {
|
|
24
23
|
if (arguments_.autoSql) {
|
|
25
24
|
this.autoSql = detectTypes(
|
|
25
|
+
// @ts-expect-error
|
|
26
26
|
parser.parse(arguments_.autoSql) as AutoSqlPreSchema,
|
|
27
27
|
)
|
|
28
28
|
} else if (arguments_.type) {
|