Skip to content

Commit

Permalink
Prevendor by default to allow users to omit from default configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
sordina committed Nov 22, 2023
1 parent 833c827 commit ca744ee
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const CONFIGURATION_SCHEMA: JSONSchemaObject = {
type: 'string'
},
preVendor: {
description: 'Perform vendoring prior to inference in a sub-process (default: false)',
description: 'Perform vendoring prior to inference in a sub-process (default: true)',
type: 'boolean'
},
schemaMode: {
Expand Down Expand Up @@ -250,7 +250,11 @@ export const connector: sdk.Connector<Configuration, Configuration, State> = {

// TODO: https://github.com/hasura/ndc-typescript-deno/issues/27 Make this add in the defaults
update_configuration(configuration: Configuration): Promise<Configuration> {
return Promise.resolve(configuration);
const defaults = {
preVendor: true,
}
const response = { ...defaults, ...configuration }
return Promise.resolve(response);
},

validate_raw_configuration(configuration: Configuration): Promise<Configuration> {
Expand Down

0 comments on commit ca744ee

Please sign in to comment.