@gmod/bed 2.1.4 → 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.
@@ -1,11 +1,11 @@
1
- // @ts-expect-error
2
- import { parse } from './autoSql'
3
- import { AutoSqlPreSchema } from './util'
4
- import * as types from './as/autoSqlSchemas'
1
+ import parser from './autoSql.ts'
2
+ import { AutoSqlPreSchema } from './util.ts'
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
- parse(value.trim()) as AutoSqlPreSchema,
8
+ // @ts-expect-error
9
+ parser.parse(value.trim()) as AutoSqlPreSchema,
10
10
  ]),
11
11
  )
package/src/index.ts CHANGED
@@ -1 +1 @@
1
- export { default } from './parser'
1
+ export { default } from './parser.ts'
package/src/parser.ts CHANGED
@@ -1,7 +1,6 @@
1
- // @ts-expect-error
2
- import parser from './autoSql'
3
- import types from './defaultTypes'
4
- import { detectTypes, AutoSqlSchema, AutoSqlPreSchema } from './util'
1
+ import parser from './autoSql.ts'
2
+ import types from './defaultTypes.ts'
3
+ import { detectTypes, AutoSqlSchema, AutoSqlPreSchema } from './util.ts'
5
4
 
6
5
  const strandMap = { '.': 0, '-': -1, '+': 1 }
7
6
 
@@ -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) {