@gmod/bed 2.1.7 → 2.1.8
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 +4 -0
- package/dist/defaultTypes.js +2 -3
- package/dist/defaultTypes.js.map +1 -1
- package/dist/parser.js +4 -4
- package/dist/parser.js.map +1 -1
- package/esm/defaultTypes.js +1 -2
- package/esm/defaultTypes.js.map +1 -1
- package/esm/parser.js +4 -4
- package/esm/parser.js.map +1 -1
- package/package.json +31 -21
- package/src/autoSql.d.ts +22 -0
- package/src/autoSql.js +1501 -0
- package/src/defaultTypes.ts +2 -3
- package/src/parser.ts +2 -3
- package/dist/autoSql.d.ts +0 -10
- package/dist/autoSql.js +0 -1565
- package/dist/autoSql.js.map +0 -1
- package/esm/autoSql.d.ts +0 -10
- package/esm/autoSql.js +0 -1564
- package/esm/autoSql.js.map +0 -1
- package/src/autoSql.ts +0 -1658
package/src/defaultTypes.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import parser from './autoSql.ts'
|
|
2
|
-
import { AutoSqlPreSchema } from './util.ts'
|
|
3
1
|
import * as types from './as/autoSqlSchemas.ts'
|
|
2
|
+
import parser from './autoSql.js'
|
|
3
|
+
import { AutoSqlPreSchema } from './util.ts'
|
|
4
4
|
|
|
5
5
|
export default Object.fromEntries(
|
|
6
6
|
Object.entries(types).map(([key, value]) => [
|
|
7
7
|
key,
|
|
8
|
-
// @ts-expect-error
|
|
9
8
|
parser.parse(value.trim()) as AutoSqlPreSchema,
|
|
10
9
|
]),
|
|
11
10
|
)
|
package/src/parser.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import parser from './autoSql.
|
|
1
|
+
import parser from './autoSql.js'
|
|
2
2
|
import types from './defaultTypes.ts'
|
|
3
|
-
import {
|
|
3
|
+
import { AutoSqlPreSchema, AutoSqlSchema, detectTypes } from './util.ts'
|
|
4
4
|
|
|
5
5
|
const strandMap = { '.': 0, '-': -1, '+': 1 }
|
|
6
6
|
|
|
@@ -22,7 +22,6 @@ export default class BED {
|
|
|
22
22
|
constructor(arguments_: { autoSql?: string; type?: string } = {}) {
|
|
23
23
|
if (arguments_.autoSql) {
|
|
24
24
|
this.autoSql = detectTypes(
|
|
25
|
-
// @ts-expect-error
|
|
26
25
|
parser.parse(arguments_.autoSql) as AutoSqlPreSchema,
|
|
27
26
|
)
|
|
28
27
|
} else if (arguments_.type) {
|
package/dist/autoSql.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare function peg$SyntaxError(message: any, expected: any, found: any, location: any): void;
|
|
2
|
-
declare namespace peg$SyntaxError {
|
|
3
|
-
var buildMessage: (expected: any, found: any) => string;
|
|
4
|
-
}
|
|
5
|
-
declare function peg$parse(input: any, options: any): {};
|
|
6
|
-
declare const _default: {
|
|
7
|
-
SyntaxError: typeof peg$SyntaxError;
|
|
8
|
-
parse: typeof peg$parse;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|