File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { InternalSchemaBasedAccessor , SchemaAccessor } from './schema-accessor' ;
2
- import { SchemaAnalyzer } from './schema-analyzer' ;
2
+ import { getCompletedSchemaAnalyzer , SchemaAnalyzer } from './schema-analyzer' ;
3
3
import type {
4
4
ArraySchemaType ,
5
5
BaseSchemaType ,
@@ -19,7 +19,6 @@ import type {
19
19
} from './schema-analyzer' ;
20
20
import * as schemaStats from './stats' ;
21
21
import { AnyIterable , StandardJSONSchema , MongoDBJSONSchema , ExtendedJSONSchema } from './types' ;
22
- import { getCompletedSchemaAnalyzer } from './utils' ;
23
22
24
23
/**
25
24
* Analyze documents - schema can be retrieved in different formats.
@@ -29,7 +28,7 @@ async function analyzeDocuments(
29
28
options ?: SchemaParseOptions
30
29
) : Promise < SchemaAccessor > {
31
30
const internalSchema = ( await getCompletedSchemaAnalyzer ( source , options ) ) . getResult ( ) ;
32
- return new InternalSchemaBasedAccessor ( internalSchema , options ?. signal ) ;
31
+ return new InternalSchemaBasedAccessor ( internalSchema ) ;
33
32
}
34
33
35
34
/**
You can’t perform that action at this time.
0 commit comments