Skip to content

Commit

Permalink
fix(rules): add Sendgrid
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 3, 2023
1 parent 40b1f9f commit e562560
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 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 @@ -134,6 +134,7 @@ exports[`all > should match everything 1`] = `
"rust",
"salesforce",
"scaleway",
"sendgrid",
"sentry",
"sequelize",
"shopify",
Expand Down
7 changes: 4 additions & 3 deletions src/rules/saas/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,17 @@ import './placekit.js';
import './prismacloud.js';
import './resend.js';
import './salesforce.js';
import './sendgrid.js';
import './sentry.js';
import './shopify.js';
import './slack.js';
import './squareup.js';
import './stripe.js';
import './snyk.js';
import './splunk.js';
import './sqreen.js';
import './squareup.js';
import './stripe.js';
import './twilio.js';
import './wiz.js';
import './zendesk.js';
import './zuora.js';
import './zoom.js';
import './zuora.js';
10 changes: 10 additions & 0 deletions src/rules/saas/sendgrid.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { register } from '../../register.js';

register({
tech: 'sendgrid',
name: 'Sendgrid',
type: 'saas',
dependencies: [
{ type: 'npm', name: /^@sendgrid\//, example: '@sendgrid/mail' },
],
});
6 changes: 6 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ exports[`npm > should match everything 1`] = `
"rollup",
"salesforce",
"scaleway",
"sendgrid",
"sentry",
"sequelize",
"shopify",
Expand Down Expand Up @@ -411,6 +412,11 @@ exports[`npm > should match everything 2`] = `
"@scaleway/sdk",
"0.0.0",
],
[
"npm",
"@sendgrid/mail",
"0.0.0",
],
[
"npm",
"@sentry/browser",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ export type AllowedKeys =
| 'salesforce'
| 'scaleway'
| 'scss'
| 'sendgrid'
| 'sentry'
| 'sequelize'
| 'shell'
Expand Down

0 comments on commit e562560

Please sign in to comment.