Skip to content

Commit

Permalink
fix(rules): add Intercom
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Oct 13, 2023
1 parent 4eb20fd commit 2b798a9
Show file tree
Hide file tree
Showing 7 changed files with 63 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 @@ -200,6 +200,7 @@ exports[`all > should match everything 1`] = `
"hypertune",
"iftt",
"influxdb",
"intercom",
"intuit",
"java",
"jenkins",
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 @@ -27,6 +27,7 @@ import './hubspot.js';
import './huggingface.js';
import './hypertune.js';
import './iftt.js';
import './intercom.js';
import './intuit.js';
import './jira.js';
import './klarna.js';
Expand Down
17 changes: 17 additions & 0 deletions src/rules/saas/intercom.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { register } from '../../register.js';

register({
tech: 'intercom',
name: 'Intercom',
type: 'saas',
dependencies: [
{ type: 'npm', name: 'react-use-intercom' },
{ type: 'npm', name: 'intercom-client' },
{ type: 'npm', name: '@intercom/intercom-react-native' },
{ type: 'npm', name: 'ng-intercom' },
{ type: 'php', name: 'intercom/intercom-php' },
{ type: 'php', name: 'intercom/oauth2-intercom' },
{ type: 'ruby', name: 'intercom' },
{ type: 'ruby', name: 'intercom-rails' },
],
});
21 changes: 21 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ exports[`npm > should match everything 1`] = `
"hyperdx",
"hypertune",
"influxdb",
"intercom",
"jira",
"koa",
"koalaanalytics",
Expand Down Expand Up @@ -1007,6 +1008,11 @@ exports[`npm > should match everything 2`] = `
"@influxdata/influxdb-client",
"0.0.0",
],
[
"npm",
"@intercom/intercom-react-native",
"0.0.0",
],
[
"npm",
"@kubernetes/client-node",
Expand Down Expand Up @@ -1632,6 +1638,11 @@ exports[`npm > should match everything 2`] = `
"instantsearch.js",
"0.0.0",
],
[
"npm",
"intercom-client",
"0.0.0",
],
[
"npm",
"ioredis",
Expand Down Expand Up @@ -1767,6 +1778,11 @@ exports[`npm > should match everything 2`] = `
"next",
"0.0.0",
],
[
"npm",
"ng-intercom",
"0.0.0",
],
[
"npm",
"node-coveralls",
Expand Down Expand Up @@ -1907,6 +1923,11 @@ exports[`npm > should match everything 2`] = `
"react-instantsearch",
"0.0.0",
],
[
"npm",
"react-use-intercom",
"0.0.0",
],
[
"npm",
"redis",
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 @@ -72,6 +72,7 @@ exports[`php > should match everything 1`] = `
"heroku",
"hubspot",
"influxdb",
"intercom",
"jira",
"klaviyo",
"kubernetes",
Expand Down Expand Up @@ -552,6 +553,16 @@ exports[`php > should match everything 2`] = `
"influxdata/influxdb-client-php",
"0.0.0",
],
[
"php",
"intercom/intercom-php",
"0.0.0",
],
[
"php",
"intercom/oauth2-intercom",
"0.0.0",
],
[
"php",
"intouch/newrelic",
Expand Down
11 changes: 11 additions & 0 deletions src/rules/spec/ruby/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ exports[`ruby (component) > should match everything 1`] = `
"hashicorp_vault",
"heroku",
"influxdb",
"intercom",
"jira",
"kubernetes",
"launchdarkly",
Expand Down Expand Up @@ -668,6 +669,16 @@ exports[`ruby (component) > should match everything 2`] = `
"influxdb-client",
"1.0.0",
],
[
"ruby",
"intercom",
"1.0.0",
],
[
"ruby",
"intercom-rails",
"1.0.0",
],
[
"ruby",
"jenkins_api_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 @@ -215,6 +215,7 @@ export type AllowedKeys =
| 'hypertune'
| 'iftt'
| 'influxdb'
| 'intercom'
| 'intuit'
| 'java'
| 'javascript'
Expand Down

0 comments on commit 2b798a9

Please sign in to comment.