@eventcatalog/sdk 2.3.2 → 2.3.3

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.
@@ -271,7 +271,7 @@ var writeEvent = (directory) => async (event, options = {
271
271
  override: false,
272
272
  format: "mdx"
273
273
  }) => writeResource(directory, { ...event }, { ...options, type: "event" });
274
- var writeEventToService = (directory) => async (event, service, options = { path: "", format: "mdx" }) => {
274
+ var writeEventToService = (directory) => async (event, service, options = { path: "", format: "mdx", override: false }) => {
275
275
  const resourcePath = await getResourcePath(directory, service.id, service.version);
276
276
  if (!resourcePath) {
277
277
  throw new Error("Service not found");
@@ -307,7 +307,7 @@ var writeCommand = (directory) => async (command, options = {
307
307
  versionExistingContent: false,
308
308
  format: "mdx"
309
309
  }) => writeResource(directory, { ...command }, { ...options, type: "command" });
310
- var writeCommandToService = (directory) => async (command, service, options = { path: "", format: "mdx" }) => {
310
+ var writeCommandToService = (directory) => async (command, service, options = { path: "", format: "mdx", override: false }) => {
311
311
  const resourcePath = await getResourcePath(directory, service.id, service.version);
312
312
  if (!resourcePath) {
313
313
  throw new Error("Service not found");
@@ -341,7 +341,7 @@ var writeQuery = (directory) => async (query, options = {
341
341
  format: "mdx"
342
342
  }) => writeResource(directory, { ...query }, { ...options, type: "query" });
343
343
  var getQueries = (directory) => async (options) => getResources(directory, { type: "queries", ...options });
344
- var writeQueryToService = (directory) => async (query, service, options = { path: "", format: "mdx" }) => {
344
+ var writeQueryToService = (directory) => async (query, service, options = { path: "", format: "mdx", override: false }) => {
345
345
  const resourcePath = await getResourcePath(directory, service.id, service.version);
346
346
  if (!resourcePath) {
347
347
  throw new Error("Service not found");