Skip to content

Commit

Permalink
fix(rules): add Mailchimp
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 2, 2023
1 parent 93eb820 commit 17ac7b9
Show file tree
Hide file tree
Showing 5 changed files with 37 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 @@ -88,6 +88,7 @@ exports[`all > should match everything 1`] = `
"koa",
"kubernetes",
"logrocket",
"mailchimp",
"mailjet",
"mariadb",
"memcached",
Expand Down
1 change: 1 addition & 0 deletions src/rules/saas/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import './github.js';
import './hubspot.js';
import './huggingface.js';
import './logrocket.js';
import './mailchimp.js';
import './mailjet.js';
import './newrelic.js';
import './okta.js';
Expand Down
13 changes: 13 additions & 0 deletions src/rules/saas/mailchimp.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { register } from '../../register.js';

register({
tech: 'mailchimp',
name: 'Mailchimp',
type: 'saas',
dependencies: [
{ type: 'npm', name: '@mailchimp/mailchimp_marketing' },
{ type: 'npm', name: '@mailchimp/mailchimp_transactional' },
{ type: 'ruby', name: 'MailchimpMarketing' },
{ type: 'ruby', name: 'MailchimpTransactional' },
],
});
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 @@ -56,6 +56,7 @@ exports[`npm > should match everything 1`] = `
"koa",
"kubernetes",
"logrocket",
"mailchimp",
"mailjet",
"mariadb",
"memcached",
Expand Down Expand Up @@ -325,6 +326,16 @@ exports[`npm > should match everything 2`] = `
"@kubernetes/client-node",
"0.0.0",
],
[
"npm",
"@mailchimp/mailchimp_marketing",
"0.0.0",
],
[
"npm",
"@mailchimp/mailchimp_transactional",
"0.0.0",
],
[
"npm",
"@mikro-orm/mongodb",
Expand Down
11 changes: 11 additions & 0 deletions src/rules/spec/ruby/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ exports[`ruby (component) > should match everything 1`] = `
"heroku",
"influxdb",
"kubernetes",
"mailchimp",
"mailjet",
"mariadb",
"memcached",
Expand All @@ -69,6 +70,16 @@ exports[`ruby (component) > should match everything 1`] = `

exports[`ruby (component) > should match everything 2`] = `
[
[
"ruby",
"MailchimpMarketing",
"1.0.0",
],
[
"ruby",
"MailchimpTransactional",
"1.0.0",
],
[
"ruby",
"algolia",
Expand Down

0 comments on commit 17ac7b9

Please sign in to comment.