Skip to content

Commit

Permalink
fix(rules): add Meilisearch
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 7, 2023
1 parent 999ab11 commit d46929d
Show file tree
Hide file tree
Showing 11 changed files with 71 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 @@ -141,6 +141,7 @@ exports[`all > should match everything 1`] = `
"mailchimp",
"mailjet",
"mariadb",
"meilisearch",
"memcached",
"meteorjs",
"mithriljs",
Expand Down
1 change: 1 addition & 0 deletions src/rules/db/elasticsearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ register({
{ type: 'ruby', name: 'aws-sdk-elasticsearchservice' },
{ type: 'php', name: 'elasticsearch/elasticsearch' },
{ type: 'php', name: 'ruflin/Elastica' },
{ type: 'golang', name: 'github.com/elastic/go-elasticsearch' },
],
});
1 change: 1 addition & 0 deletions src/rules/db/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import './gcp.spanner.js';
import './hashicorp_vault.js';
import './influxdb.js';
import './mariadb.js';
import './meilisearch.js';
import './memcached.js';
import './mongodb.js';
import './mysql.js';
Expand Down
20 changes: 20 additions & 0 deletions src/rules/db/meilisearch.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { register } from '../../register.js';

register({
tech: 'meilisearch',
name: 'Meilisearch',
type: 'db',
dependencies: [
{ type: 'npm', name: 'meilisearch' },
{ type: 'npm', name: '@meilisearch/instant-meilisearch' },
{
type: 'docker',
name: 'getmeili/meilisearch',
example: 'getmeili/meilisearch:0.0.0',
},
{ type: 'golang', name: 'github.com/meilisearch/meilisearch-go' },
{ type: 'rust', name: 'meilisearch-sdk' },
{ type: 'ruby', name: 'elastimeilisearchcsearch' },
{ type: 'php', name: 'meilisearch/meilisearch-php ' },
],
});
6 changes: 6 additions & 0 deletions src/rules/spec/docker/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ exports[`docker > should match everything 1`] = `
"jenkins",
"kibana",
"mariadb",
"meilisearch",
"memcached",
"mongodb",
"mysql",
Expand Down Expand Up @@ -155,6 +156,11 @@ exports[`docker > should match everything 2`] = `
"elasticsearch",
"0.0.0",
],
[
"docker",
"getmeili/meilisearch",
"0.0.0",
],
[
"docker",
"grafana/grafana-enterprise",
Expand Down
12 changes: 12 additions & 0 deletions src/rules/spec/golang/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ exports[`golang (lockfile) > should match everything 1`] = `
"aws.sqs",
"azure",
"clickhouse",
"elasticsearch",
"gcp",
"gcp.aiplatform",
"gcp.bigquery",
Expand All @@ -40,6 +41,7 @@ exports[`golang (lockfile) > should match everything 1`] = `
"gcp.vision",
"golang",
"launchdarkly",
"meilisearch",
"splitio",
]
`;
Expand Down Expand Up @@ -231,11 +233,21 @@ exports[`golang (lockfile) > should match everything 2`] = `
"github.com/aws/aws-sdk-go-v2/service/sqs",
"v1.0.0",
],
[
"golang",
"github.com/elastic/go-elasticsearch",
"v1.0.0",
],
[
"golang",
"github.com/launchdarkly/go-sdk-common/v3",
"v1.0.0",
],
[
"golang",
"github.com/meilisearch/meilisearch-go",
"v1.0.0",
],
[
"golang",
"github.com/splitio/go-client/v6",
Expand Down
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 @@ -82,6 +82,7 @@ exports[`npm > should match everything 1`] = `
"mailchimp",
"mailjet",
"mariadb",
"meilisearch",
"memcached",
"meteorjs",
"mithriljs",
Expand Down Expand Up @@ -466,6 +467,11 @@ exports[`npm > should match everything 2`] = `
"@mailchimp/mailchimp_transactional",
"0.0.0",
],
[
"npm",
"@meilisearch/instant-meilisearch",
"0.0.0",
],
[
"npm",
"@mikro-orm/mongodb",
Expand Down Expand Up @@ -881,6 +887,11 @@ exports[`npm > should match everything 2`] = `
"mariadb",
"0.0.0",
],
[
"npm",
"meilisearch",
"0.0.0",
],
[
"npm",
"memcached",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/php/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ exports[`php > should match everything 1`] = `
"magento",
"mailchimp",
"mailjet",
"meilisearch",
"mixpanel",
"mongodb",
"newrelic",
Expand Down Expand Up @@ -554,6 +555,11 @@ exports[`php > should match everything 2`] = `
"martin-georgiev/postgresql-for-doctrine",
"0.0.0",
],
[
"php",
"meilisearch/meilisearch-php ",
"0.0.0",
],
[
"php",
"mixpanel/mixpanel-php",
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 @@ -57,6 +57,7 @@ exports[`ruby (component) > should match everything 1`] = `
"mailchimp",
"mailjet",
"mariadb",
"meilisearch",
"memcached",
"mongodb",
"mysql",
Expand Down Expand Up @@ -231,6 +232,11 @@ exports[`ruby (component) > should match everything 2`] = `
"elasticsearch",
"1.0.0",
],
[
"ruby",
"elastimeilisearchcsearch",
"1.0.0",
],
[
"ruby",
"fastlane-plugin-firebase_app_distribution",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/rust/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ exports[`rust (component) > should match everything 1`] = `
"kubernetes",
"launchdarkly",
"mailjet",
"meilisearch",
"memcached",
"mongodb",
"mysql",
Expand Down Expand Up @@ -239,6 +240,11 @@ exports[`rust (component) > should match everything 2`] = `
"mailjet-rs",
"1.0.0",
],
[
"rust",
"meilisearch-sdk",
"1.0.0",
],
[
"rust",
"memcache",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ export type AllowedKeys =
| 'mailchimp'
| 'mailjet'
| 'mariadb'
| 'meilisearch'
| 'memcached'
| 'meteorjs'
| 'mithriljs'
Expand Down

0 comments on commit d46929d

Please sign in to comment.