@mintlify/scraping 4.0.193 → 4.0.194

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintlify/scraping",
3
- "version": "4.0.193",
3
+ "version": "4.0.194",
4
4
  "description": "Scrape documentation frameworks to Mintlify docs",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -78,5 +78,5 @@
78
78
  "typescript": "^5.5.3",
79
79
  "vitest": "^2.0.4"
80
80
  },
81
- "gitHead": "0ae0a67d8bf77b9fa1318d12db1d0dd773f49f56"
81
+ "gitHead": "13613d9d830bb1bcd23f96d4b3088d0bffba0f1b"
82
82
  }
@@ -8,7 +8,6 @@ import {
8
8
  } from '@mintlify/validation';
9
9
 
10
10
  export const DEFAULT_API_GROUP_NAME = 'API Reference';
11
- export const DEFAULT_WEBHOOK_GROUP_NAME = 'Webhooks';
12
11
  export const DEFAULT_WEBSOCKETS_GROUP_NAME = 'Websockets';
13
12
 
14
13
  export const findNavGroup = (
@@ -35,7 +35,7 @@ type ProcessAsyncApiChannelArgs = {
35
35
  opts?: GenerateAsyncApiPagesOptions;
36
36
  findNavGroup: (
37
37
  nav: GroupsConfig | DecoratedGroupsConfig,
38
- groupName: string
38
+ groupName?: string
39
39
  ) => PagesConfig | DecoratedPagesConfig;
40
40
  };
41
41
 
@@ -12,7 +12,6 @@ import { OpenAPI, OpenAPIV3 } from 'openapi-types';
12
12
  import path, { join, parse, resolve } from 'path';
13
13
 
14
14
  import {
15
- DEFAULT_WEBHOOK_GROUP_NAME,
16
15
  prepareStringToBeValidFilename,
17
16
  generateUniqueFilenameWithoutExtension,
18
17
  } from '../apiPages/common.js';
@@ -162,7 +161,7 @@ export function processOpenApiWebhook<N, DN>(
162
161
  Object.values(OpenAPIV3.HttpMethods).forEach((method) => {
163
162
  if (method in webhookObject) {
164
163
  const operation = webhookObject[method];
165
- const groupName = operation?.tags?.[0] ?? DEFAULT_WEBHOOK_GROUP_NAME;
164
+ const groupName = operation?.tags?.[0];
166
165
  const title =
167
166
  prepareStringToBeValidFilename(operation?.summary) ??
168
167
  `${prepareStringToBeValidFilename(webhook)}`;