Skip to content

Commit 6c7d147

Browse files
committed
.
1 parent f25238d commit 6c7d147

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { InternalSchemaBasedAccessor, SchemaAccessor } from './schema-accessor';
2-
import { SchemaAnalyzer } from './schema-analyzer';
2+
import { getCompletedSchemaAnalyzer, SchemaAnalyzer } from './schema-analyzer';
33
import type {
44
ArraySchemaType,
55
BaseSchemaType,
@@ -19,7 +19,6 @@ import type {
1919
} from './schema-analyzer';
2020
import * as schemaStats from './stats';
2121
import { 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
/**

0 commit comments

Comments
 (0)