Skip to content

Commit

Permalink
fix(rules): add Optimizely
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Oct 13, 2023
1 parent 34f23a0 commit a632c37
Show file tree
Hide file tree
Showing 9 changed files with 83 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 @@ -254,6 +254,7 @@ exports[`all > should match everything 1`] = `
"okta",
"onlineornot",
"openai",
"optimizely",
"oraclecloud",
"ovh",
"pagerduty",
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 @@ -42,6 +42,7 @@ import './mailjet.js';
import './notion.js';
import './okta.js';
import './openai.js';
import './optimizely.js';
import './pagerduty.js';
import './paypal.js';
import './placekit.js';
Expand Down
20 changes: 20 additions & 0 deletions src/rules/saas/optimizely.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { register } from '../../register.js';

register({
tech: 'optimizely',
name: 'Optimizely',
type: 'saas',
dependencies: [
{ type: 'npm', name: '@optimizely/optimizely-sdk' },
{ type: 'npm', name: '@optimizely/react-sdk' },
{ type: 'npm', name: '@optimizely/js-sdk-utils' },
{ type: 'npm', name: '@optimizely/js-sdk-logging' },
{ type: 'npm', name: '@optimizely/js-sdk-event-processor' },
{ type: 'ruby', name: 'optimizely-sdk' },
{ type: 'ruby', name: 'optimizely' },
{ type: 'ruby', name: 'optimizely_server_side' },
{ type: 'php', name: 'optimizely/optimizely-sdk' },
{ type: 'githubAction', name: 'optimizely/upload-custom-code-action' },
{ type: 'golang', name: 'github.com/optimizely/go-sdk' },
],
});
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ exports[`docker > should match all dependencies 1`] = `
"kubernetes",
"launchdarkly",
"netlify",
"optimizely",
"planetscale",
"postgresql",
"rollbar",
Expand Down Expand Up @@ -503,6 +504,11 @@ exports[`docker > should match all dependencies 2`] = `
"nwtgck/actions-netlify",
"1",
],
[
"githubAction",
"optimizely/upload-custom-code-action",
"1",
],
[
"githubAction",
"peaceiris/actions-gh-pages",
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 @@ -86,6 +86,7 @@ exports[`golang (lockfile) > should match everything 1`] = `
"logstash",
"mailgun",
"meilisearch",
"optimizely",
"papertrail",
"paypal",
"pirschanalytics",
Expand Down Expand Up @@ -563,6 +564,11 @@ exports[`golang (lockfile) > should match everything 2`] = `
"github.com/meilisearch/meilisearch-go",
"v1.0.0",
],
[
"golang",
"github.com/optimizely/go-sdk",
"v1.0.0",
],
[
"golang",
"github.com/papertrail/go-tail/follower",
Expand Down
26 changes: 26 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ exports[`npm > should match everything 1`] = `
"nuxtjs",
"okta",
"openai",
"optimizely",
"oraclecloud",
"ovh",
"pagerduty",
Expand Down Expand Up @@ -1107,6 +1108,31 @@ exports[`npm > should match everything 2`] = `
"@okta/okta-signin-widget",
"0.0.0",
],
[
"npm",
"@optimizely/js-sdk-event-processor",
"0.0.0",
],
[
"npm",
"@optimizely/js-sdk-logging",
"0.0.0",
],
[
"npm",
"@optimizely/js-sdk-utils",
"0.0.0",
],
[
"npm",
"@optimizely/optimizely-sdk",
"0.0.0",
],
[
"npm",
"@optimizely/react-sdk",
"0.0.0",
],
[
"npm",
"@ovh-api/api",
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 @@ -90,6 +90,7 @@ exports[`php > should match everything 1`] = `
"newrelic",
"okta",
"openai",
"optimizely",
"oraclecloud",
"ovh",
"pagerduty",
Expand Down Expand Up @@ -764,6 +765,11 @@ exports[`php > should match everything 2`] = `
"openai-php/laravel",
"0.0.0",
],
[
"php",
"optimizely/optimizely-sdk",
"0.0.0",
],
[
"php",
"oracle/oci-php-sdk",
Expand Down
16 changes: 16 additions & 0 deletions src/rules/spec/ruby/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ exports[`ruby (component) > should match everything 1`] = `
"neo4j",
"newrelic",
"okta",
"optimizely",
"oraclecloud",
"pagerduty",
"papertrail",
Expand Down Expand Up @@ -827,6 +828,21 @@ exports[`ruby (component) > should match everything 2`] = `
"omniauth-auth0",
"1.0.0",
],
[
"ruby",
"optimizely",
"1.0.0",
],
[
"ruby",
"optimizely-sdk",
"1.0.0",
],
[
"ruby",
"optimizely_server_side",
"1.0.0",
],
[
"ruby",
"pagerduty",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ export type AllowedKeys =
| 'okta'
| 'onlineornot'
| 'openai'
| 'optimizely'
| 'oraclecloud'
| 'ovh'
| 'pagerduty'
Expand Down

0 comments on commit a632c37

Please sign in to comment.