Skip to content

Commit

Permalink
fix(rules): add more package for Google Translate and Openai
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 18, 2023
1 parent e2b1271 commit 837c1a3
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rules/api/gcp.translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ register({
type: 'api',
dependencies: [
{ type: 'npm', name: '@google-cloud/translate' },
{ type: 'npm', name: 'google-translate-api-browser' },
{ type: 'npm', name: '@vitalets/google-translate-api' },
{ type: 'npm', name: '@iamtraction/google-translate' },
{ type: 'terraform.resource', name: '' },
{
type: 'ruby',
Expand Down
2 changes: 2 additions & 0 deletions src/rules/saas/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ register({
{ type: 'npm', name: 'openai' },
{ type: 'php', name: 'openai-php/client' },
{ type: 'php', name: 'openai-php/laravel' },
{ type: 'npm', name: 'gpt3-tokenizer' },
{ type: 'npm', name: 'chatgpt' },
],
});
25 changes: 25 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,11 @@ exports[`npm > should match everything 2`] = `
"@huggingface/inference",
"0.0.0",
],
[
"npm",
"@iamtraction/google-translate",
"0.0.0",
],
[
"npm",
"@influxdata/influxdb-client",
Expand Down Expand Up @@ -999,6 +1004,11 @@ exports[`npm > should match everything 2`] = `
"@vercel/postgres",
"0.0.0",
],
[
"npm",
"@vitalets/google-translate-api",
"0.0.0",
],
[
"npm",
"airtable",
Expand Down Expand Up @@ -1059,6 +1069,11 @@ exports[`npm > should match everything 2`] = `
"cdktf",
"0.0.0",
],
[
"npm",
"chatgpt",
"0.0.0",
],
[
"npm",
"contentful",
Expand Down Expand Up @@ -1179,11 +1194,21 @@ exports[`npm > should match everything 2`] = `
"gatsby-plugin-algolia",
"0.0.0",
],
[
"npm",
"google-translate-api-browser",
"0.0.0",
],
[
"npm",
"googleapis",
"0.0.0",
],
[
"npm",
"gpt3-tokenizer",
"0.0.0",
],
[
"npm",
"hypertune",
Expand Down

0 comments on commit 837c1a3

Please sign in to comment.