Skip to content

Commit

Permalink
Merge pull request #83 from RoadieHQ/sc-24342-update-packages
Browse files Browse the repository at this point in the history
Avoid some vulnerabilities
  • Loading branch information
iain-b authored Dec 19, 2024
2 parents f63c7ba + d4d4899 commit 049a2c7
Show file tree
Hide file tree
Showing 4 changed files with 428 additions and 5,140 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@aws-sdk/lib-storage": "^3.515.0",
"@aws-sdk/s3-request-presigner": "^3.515.0",
"@backstage/catalog-model": "^1.4.1",
"@changesets/cli": "^2.26.2",
"@changesets/cli": "^2.27.10",
"archiver": "^7.0.1",
"express": "^4.19.2",
"form-data": "^4.0.0",
Expand All @@ -54,7 +54,6 @@
"@types/archiver": "^6.0.2",
"@types/chai": "^4.2.18",
"@types/fs-extra": "^9.0.11",
"@backstage/plugin-catalog-node": "^1.13.1",
"@types/mocha": "^8.2.2",
"@types/node": "^18.15.3",
"@types/node-fetch": "^2.6.2",
Expand All @@ -66,7 +65,7 @@
"conventional-changelog-cli": "^2.1.1",
"copyfiles": "^2.4.1",
"esbuild": "^0.20.0",
"eslint": "^7.27.0",
"eslint": "^8.56.0",
"eslint-plugin-prettier": "^3.4.0",
"fs-extra": "^11.2.0",
"mocha": "^10.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/entityProvider/createEntityEmitter.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { EntityProviderMutation } from '@backstage/plugin-catalog-node';
import { AGENT_ENTITY_PROVIDER_PATH } from '@/entityProvider/constants';
import fetch from 'node-fetch';
import { getLogger } from '@/logger';
import { EntityProviderMutation } from '$/types';

export const createEntityEmitter = (
target: string,
Expand Down
19 changes: 18 additions & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EntityProviderMutation } from '@backstage/plugin-catalog-node';
import { Entity } from '@backstage/catalog-model';

export type AvailableAgents =
| 'entity-provider'
Expand Down Expand Up @@ -69,3 +69,20 @@ export type HandlerConfig = {
*/
port: number;
};

export type DeferredEntity = {
entity: Entity;
locationKey?: string;
};

export type EntityProviderMutation = {
type: 'full';
entities: DeferredEntity[];
} | {
type: 'delta';
added: DeferredEntity[];
removed: (DeferredEntity | {
entityRef: string;
locationKey?: string;
})[];
};
Loading

0 comments on commit 049a2c7

Please sign in to comment.