Skip to content

Commit

Permalink
fix(rules): add Brevo
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 7, 2023
1 parent d7cfaae commit b0b1597
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ exports[`all > should match everything 1`] = `
"bitbucket",
"bootstrap",
"box",
"brevo",
"browserstack",
"caddy",
"circleci",
Expand Down
15 changes: 15 additions & 0 deletions src/rules/saas/brevo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { register } from '../../register.js';

register({
tech: 'brevo',
name: 'Brevo',
type: 'saas',
dependencies: [
{ type: 'golang', name: 'github.com/getbrevo/brevo-go' },
{ type: 'npm', name: '@getbrevo/brevo' },
{ type: 'php', name: 'getbrevo/brevo-php' },
{ type: 'php', name: 'sendinblue/api-v3-sdk' },
{ type: 'ruby', name: 'sib-api-v3-sdk' },
{ type: 'npm', name: '@sendinblue/client' },
],
});
1 change: 1 addition & 0 deletions src/rules/saas/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import './auth0.js';
import './bigcommerce.js';
import './bitbucket.js';
import './box.js';
import './brevo.js';
import './contentful.js';
import './crowdin.js';
import './datadog.js';
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/golang/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ exports[`golang (lockfile) > should match everything 1`] = `
"aws.sns",
"aws.sqs",
"azure",
"brevo",
"clickhouse",
"elasticsearch",
"gcp",
Expand Down Expand Up @@ -238,6 +239,11 @@ exports[`golang (lockfile) > should match everything 2`] = `
"github.com/elastic/go-elasticsearch",
"v1.0.0",
],
[
"golang",
"github.com/getbrevo/brevo-go",
"v1.0.0",
],
[
"golang",
"github.com/launchdarkly/go-sdk-common/v3",
Expand Down
11 changes: 11 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ exports[`npm > should match everything 1`] = `
"aws.sns",
"aws.sqs",
"bootstrap",
"brevo",
"browserstack",
"clickhouse",
"cloudflare",
Expand Down Expand Up @@ -297,6 +298,11 @@ exports[`npm > should match everything 2`] = `
"@firebase/auth",
"0.0.0",
],
[
"npm",
"@getbrevo/brevo",
"0.0.0",
],
[
"npm",
"@gitbook/api",
Expand Down Expand Up @@ -532,6 +538,11 @@ exports[`npm > should match everything 2`] = `
"@sendgrid/mail",
"0.0.0",
],
[
"npm",
"@sendinblue/client",
"0.0.0",
],
[
"npm",
"@sentry/browser",
Expand Down
11 changes: 11 additions & 0 deletions src/rules/spec/php/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ exports[`php > should match everything 1`] = `
"aws.sqs",
"bigcommerce",
"bitbucket",
"brevo",
"clickhouse",
"cloudflare",
"cockroachdb",
Expand Down Expand Up @@ -305,6 +306,11 @@ exports[`php > should match everything 2`] = `
"fastly/magento2",
"0.0.0",
],
[
"php",
"getbrevo/brevo-php",
"0.0.0",
],
[
"php",
"google/analytics-admin",
Expand Down Expand Up @@ -650,6 +656,11 @@ exports[`php > should match everything 2`] = `
"sendgrid/sendgrid",
"0.0.0",
],
[
"php",
"sendinblue/api-v3-sdk",
"0.0.0",
],
[
"php",
"sentry/sdk",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/ruby/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ exports[`ruby (component) > should match everything 1`] = `
"aws.sns",
"aws.sqs",
"azure",
"brevo",
"cloudflare",
"couchbase",
"datadog",
Expand Down Expand Up @@ -502,6 +503,11 @@ exports[`ruby (component) > should match everything 2`] = `
"sequel-snowflake",
"1.0.0",
],
[
"ruby",
"sib-api-v3-sdk",
"1.0.0",
],
[
"ruby",
"slack-ruby-client",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export type AllowedKeys =
| 'bitbucket'
| 'bootstrap'
| 'box'
| 'brevo'
| 'browserstack'
| 'c'
| 'caddy'
Expand Down

0 comments on commit b0b1597

Please sign in to comment.