@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.
@@ -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.ts'
1
+ import parser from './autoSql.js'
2
2
  import types from './defaultTypes.ts'
3
- import { detectTypes, AutoSqlSchema, AutoSqlPreSchema } from './util.ts'
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;