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 11import { InternalSchemaBasedAccessor , SchemaAccessor } from './schema-accessor' ;
2- import { SchemaAnalyzer } from './schema-analyzer' ;
2+ import { getCompletedSchemaAnalyzer , SchemaAnalyzer } from './schema-analyzer' ;
33import type {
44 ArraySchemaType ,
55 BaseSchemaType ,
@@ -19,7 +19,6 @@ import type {
1919} from './schema-analyzer' ;
2020import * as schemaStats from './stats' ;
2121import { AnyIterable , StandardJSONSchema , MongoDBJSONSchema , ExtendedJSONSchema } from './types' ;
22- import { getCompletedSchemaAnalyzer } from './utils' ;
2322
2423/**
2524 * Analyze documents - schema can be retrieved in different formats.
@@ -29,7 +28,7 @@ async function analyzeDocuments(
2928 options ?: SchemaParseOptions
3029) : Promise < SchemaAccessor > {
3130 const internalSchema = ( await getCompletedSchemaAnalyzer ( source , options ) ) . getResult ( ) ;
32- return new InternalSchemaBasedAccessor ( internalSchema , options ?. signal ) ;
31+ return new InternalSchemaBasedAccessor ( internalSchema ) ;
3332}
3433
3534/**
You can’t perform that action at this time.
0 commit comments