Skip to content

Commit

Permalink
fix(rules): add Lago
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Nov 7, 2023
1 parent b258437 commit 03e9e48
Show file tree
Hide file tree
Showing 9 changed files with 59 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 @@ -248,6 +248,7 @@ exports[`all > should match everything 1`] = `
"kong",
"koyeb",
"kubernetes",
"lago",
"laravel",
"launchdarkly",
"lemonsqueezy",
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 @@ -36,6 +36,7 @@ import './intercom.js';
import './intuit.js';
import './klarna.js';
import './klaviyo.js';
import './lago.js';
import './launchdarkly.js';
import './lemonsqueezy.js';
import './linear.js';
Expand Down
16 changes: 16 additions & 0 deletions src/rules/saas/lago.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { register } from '../../register.js';

register({
tech: 'lago',
name: 'Lago',
type: 'saas',
dependencies: [
{ type: 'npm', name: 'lago-javascript-client' },
{ type: 'golang', name: 'github.com/getlago/lago-go-client' },
{ type: 'ruby', name: 'lago-ruby-client' },
{ type: 'python', name: 'lago-python-client' },
{ type: 'docker', name: 'getlago/front' },
{ type: 'docker', name: 'getlago/api' },
{ type: 'docker', name: 'getlago/lago-gotenberg' },
],
});
16 changes: 16 additions & 0 deletions src/rules/spec/docker/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ exports[`docker > should match everything 1`] = `
"k6",
"kibana",
"kong",
"lago",
"lighthouse",
"liquibase",
"logstash",
Expand Down Expand Up @@ -526,6 +527,21 @@ exports[`docker > should match everything 2`] = `
"flyway/flyway",
"0.0.0",
],
[
"docker",
"getlago/api",
"0.0.0",
],
[
"docker",
"getlago/front",
"0.0.0",
],
[
"docker",
"getlago/lago-gotenberg",
"0.0.0",
],
[
"docker",
"getmeili/meilisearch",
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 @@ -81,6 +81,7 @@ exports[`golang (lockfile) > should match everything 1`] = `
"gitguardian",
"golang",
"hyperdx",
"lago",
"launchdarkly",
"lemonsqueezy",
"logstash",
Expand Down Expand Up @@ -523,6 +524,11 @@ exports[`golang (lockfile) > should match everything 2`] = `
"github.com/getbrevo/brevo-go",
"v1.0.0",
],
[
"golang",
"github.com/getlago/lago-go-client",
"v1.0.0",
],
[
"golang",
"github.com/go-acme/lego/v4/cmd/lego",
Expand Down
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 @@ -149,6 +149,7 @@ exports[`npm > should match everything 1`] = `
"koalaanalytics",
"koyeb",
"kubernetes",
"lago",
"launchdarkly",
"lemonsqueezy",
"lighthouse",
Expand Down Expand Up @@ -2001,6 +2002,11 @@ exports[`npm > should match everything 2`] = `
"koyeb-api-client",
"0.0.0",
],
[
"npm",
"lago-javascript-client",
"0.0.0",
],
[
"npm",
"launchdarkly-react-client-sdk",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/python/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ exports[`python (lockfile) > should match everything 1`] = `
"algolia",
"celery",
"datadog",
"lago",
"novu",
"python",
"qdrant",
Expand Down Expand Up @@ -33,6 +34,11 @@ exports[`python (lockfile) > should match everything 2`] = `
"datadog",
"1.0.0",
],
[
"python",
"lago-python-client",
"1.0.0",
],
[
"python",
"novu",
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 @@ -101,6 +101,7 @@ exports[`ruby (component) > should match everything 1`] = `
"influxdb",
"intercom",
"kubernetes",
"lago",
"launchdarkly",
"lemonsqueezy",
"logstash",
Expand Down Expand Up @@ -729,6 +730,11 @@ exports[`ruby (component) > should match everything 2`] = `
"kubeclient",
"1.0.0",
],
[
"ruby",
"lago-ruby-client",
"1.0.0",
],
[
"ruby",
"launchdarkly-server-sdk",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ export type AllowedKeys =
| 'kotlin'
| 'koyeb'
| 'kubernetes'
| 'lago'
| 'laravel'
| 'launchdarkly'
| 'lemonsqueezy'
Expand Down

0 comments on commit 03e9e48

Please sign in to comment.