Skip to content

Commit

Permalink
fix(rules): add Postman
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 3, 2023
1 parent 4b8d5f7 commit ecceae3
Show file tree
Hide file tree
Showing 5 changed files with 31 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 @@ -118,6 +118,7 @@ exports[`all > should match everything 1`] = `
"placekit",
"platformsh",
"postgresql",
"postman",
"prettier",
"prisma",
"prismacloud",
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 @@ -22,6 +22,7 @@ import './openai.js';
import './pagerduty.js';
import './pingdom.js';
import './placekit.js';
import './postman.js';
import './prismacloud.js';
import './resend.js';
import './salesforce.js';
Expand Down
12 changes: 12 additions & 0 deletions src/rules/saas/postman.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { register } from '../../register.js';

register({
tech: 'postman',
name: 'Postman',
type: 'saas',
dependencies: [
{ type: 'npm', name: 'postman-collection' },
{ type: 'npm', name: 'postman-request' },
{ type: 'npm', name: 'newman' },
],
});
16 changes: 16 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ exports[`npm > should match everything 1`] = `
"pagerduty",
"placekit",
"postgresql",
"postman",
"prettier",
"prisma",
"puppeteer",
Expand Down Expand Up @@ -688,6 +689,11 @@ exports[`npm > should match everything 2`] = `
"netlify-cli",
"0.0.0",
],
[
"npm",
"newman",
"0.0.0",
],
[
"npm",
"newrelic",
Expand Down Expand Up @@ -718,6 +724,16 @@ exports[`npm > should match everything 2`] = `
"pg",
"0.0.0",
],
[
"npm",
"postman-collection",
"0.0.0",
],
[
"npm",
"postman-request",
"0.0.0",
],
[
"npm",
"prettier",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export type AllowedKeys =
| 'placekit'
| 'platformsh'
| 'postgresql'
| 'postman'
| 'powershell'
| 'prettier'
| 'prisma'
Expand Down

0 comments on commit ecceae3

Please sign in to comment.