diff --git a/src/rules/__snapshots__/index.test.ts.snap b/src/rules/__snapshots__/index.test.ts.snap index 37edc73d..cc527bde 100644 --- a/src/rules/__snapshots__/index.test.ts.snap +++ b/src/rules/__snapshots__/index.test.ts.snap @@ -71,6 +71,7 @@ exports[`all > should match everything 1`] = ` "gcp.sql", "gcp.translate", "gcp.vision", + "gitbook", "github", "github.actions", "github.pages", diff --git a/src/rules/saas/gitbook.ts b/src/rules/saas/gitbook.ts new file mode 100644 index 00000000..2a906b18 --- /dev/null +++ b/src/rules/saas/gitbook.ts @@ -0,0 +1,8 @@ +import { register } from '../../register.js'; + +register({ + tech: 'gitbook', + name: 'Gitbook', + type: 'saas', + dependencies: [{ type: 'npm', name: /^@gitbook\//, example: '@gitbook/api' }], +}); diff --git a/src/rules/saas/index.ts b/src/rules/saas/index.ts index 52ec0a24..452d4f6f 100644 --- a/src/rules/saas/index.ts +++ b/src/rules/saas/index.ts @@ -6,6 +6,7 @@ import './datadog.js'; import './deferrun.js'; import './discord.js'; import './dropbox.js'; +import './gitbook.js'; import './github.js'; import './hubspot.js'; import './huggingface.js'; diff --git a/src/rules/spec/nodejs/__snapshots__/component.test.ts.snap b/src/rules/spec/nodejs/__snapshots__/component.test.ts.snap index babd0c0b..ba5606b2 100644 --- a/src/rules/spec/nodejs/__snapshots__/component.test.ts.snap +++ b/src/rules/spec/nodejs/__snapshots__/component.test.ts.snap @@ -50,6 +50,7 @@ exports[`npm > should match everything 1`] = ` "gcp.sql", "gcp.translate", "gcp.vision", + "gitbook", "github", "hotjar", "huggingface", @@ -217,6 +218,11 @@ exports[`npm > should match everything 2`] = ` "@firebase/auth", "0.0.0", ], + [ + "npm", + "@gitbook/api", + "0.0.0", + ], [ "npm", "@google-cloud/aiplatform", diff --git a/src/types/techs.ts b/src/types/techs.ts index 4899f11f..bb7250fe 100644 --- a/src/types/techs.ts +++ b/src/types/techs.ts @@ -93,6 +93,7 @@ export type AllowedKeys = | 'gcp.translate' | 'gcp.vision' | 'gcp' + | 'gitbook' | 'github.actions' | 'github.pages' | 'github'