Skip to content

Commit

Permalink
fix(rules): add LogSnag
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 3, 2023
1 parent cb48795 commit 5b6a8cf
Show file tree
Hide file tree
Showing 5 changed files with 17 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 @@ -99,6 +99,7 @@ exports[`all > should match everything 1`] = `
"koa",
"kubernetes",
"logrocket",
"logsnag",
"mailchimp",
"mailjet",
"mariadb",
Expand Down
1 change: 1 addition & 0 deletions src/rules/analytics/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import './amplitude.js';
import './googleanalytics.js';
import './logsnag.js';
import './mixpanel.js';
import './plausible.js';
import './vercel.analytics.js';
8 changes: 8 additions & 0 deletions src/rules/analytics/logsnag.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { register } from '../../register.js';

register({
tech: 'logsnag',
name: 'LogSnag',
type: 'analytics',
dependencies: [{ type: 'npm', name: 'logsnag' }],
});
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 @@ -61,6 +61,7 @@ exports[`npm > should match everything 1`] = `
"koa",
"kubernetes",
"logrocket",
"logsnag",
"mailchimp",
"mailjet",
"mariadb",
Expand Down Expand Up @@ -667,6 +668,11 @@ exports[`npm > should match everything 2`] = `
"logrocket",
"0.0.0",
],
[
"npm",
"logsnag",
"0.0.0",
],
[
"npm",
"mariadb",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export type AllowedKeys =
| 'kotlin'
| 'kubernetes'
| 'logrocket'
| 'logsnag'
| 'mailchimp'
| 'mailjet'
| 'mariadb'
Expand Down

0 comments on commit 5b6a8cf

Please sign in to comment.