@infrascan/shared-types 0.6.0 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/package.json +3 -3
- package/src/graph.ts +4 -4
- package/src/plugins.ts +2 -2
- package/src/scan.ts +6 -1
- package/tsconfig.json +2 -1
- package/.eslintrc.js +0 -9
- package/typedoc.json +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @infrascan/shared-types
|
|
2
2
|
|
|
3
|
+
## 0.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#110](https://github.com/infrascan/infrascan/pull/110) [`6238e6eb0cd1299607dd788ab385215a1aee3c39`](https://github.com/infrascan/infrascan/commit/6238e6eb0cd1299607dd788ab385215a1aee3c39) Thanks [@lfarrel6](https://github.com/lfarrel6)! - Improve typescript interfaces — correct api for s3 connector to better adhere to interface, tidy up type imports for shared types lib
|
|
8
|
+
|
|
9
|
+
## 0.6.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#101](https://github.com/infrascan/infrascan/pull/101) [`316320a39bfd64a9feab735d83c054031abf2cf0`](https://github.com/infrascan/infrascan/commit/316320a39bfd64a9feab735d83c054031abf2cf0) Thanks [@lfarrel6](https://github.com/lfarrel6)! - Update ECS Task scans to more appropriately label the task nodes, and correct their parent assignment. This release also captures context from the ECS task's attached network interface.
|
|
14
|
+
|
|
3
15
|
## 0.6.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infrascan/shared-types",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Shared types for multiple infrascan packages",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
"@aws-sdk/types": "3.609.0",
|
|
16
16
|
"eslint-config-custom": "*",
|
|
17
17
|
"tsconfig": "*",
|
|
18
|
-
"typescript": "^5.
|
|
18
|
+
"typescript": "^5.4.5"
|
|
19
19
|
}
|
|
20
|
-
}
|
|
20
|
+
}
|
package/src/graph.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseState } from "./scan";
|
|
1
|
+
import type { BaseState } from "./scan";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A node returned from a state selector before its been formatted for a graphing library
|
|
@@ -24,9 +24,9 @@ export interface SelectedEdge {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
// Create Read/Write types inspired by kysely
|
|
27
|
-
export type ElementType<
|
|
28
|
-
readonly _read:
|
|
29
|
-
readonly _write:
|
|
27
|
+
export type ElementType<RType, WType> = {
|
|
28
|
+
readonly _read: RType;
|
|
29
|
+
readonly _write: WType;
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
package/src/plugins.ts
CHANGED
package/src/scan.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AwsContext, Connector } from "./api";
|
|
1
|
+
import type { AwsContext, Connector } from "./api";
|
|
2
2
|
|
|
3
3
|
export interface CommandCallMetadata {
|
|
4
4
|
account: string;
|
|
@@ -218,6 +218,11 @@ export interface Network {
|
|
|
218
218
|
instanceTenancy?: string;
|
|
219
219
|
default?: boolean;
|
|
220
220
|
};
|
|
221
|
+
|
|
222
|
+
attachedEni?: {
|
|
223
|
+
interfaceId?: string;
|
|
224
|
+
macAddress?: string;
|
|
225
|
+
};
|
|
221
226
|
}
|
|
222
227
|
|
|
223
228
|
/**
|
package/tsconfig.json
CHANGED
package/.eslintrc.js
DELETED
package/typedoc.json
DELETED