@infrascan/shared-types 0.6.1 → 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 CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  ## 0.6.1
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrascan/shared-types",
3
- "version": "0.6.1",
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.1.6"
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<ReadType, WriteType> = {
28
- readonly _read: ReadType;
29
- readonly _write: WriteType;
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
@@ -1,5 +1,5 @@
1
- import { Graph } from "./graph";
2
- import { AwsContext } from "./api";
1
+ import type { Graph } from "./graph";
2
+ import type { AwsContext } from "./api";
3
3
 
4
4
  // All supported events to trigger a plugin
5
5
  export type GraphPluginEvents =
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;
package/tsconfig.json CHANGED
@@ -3,6 +3,7 @@
3
3
  "compilerOptions": {
4
4
  "baseUrl": "src",
5
5
  "noEmit": true,
6
- "module": "Node16"
6
+ "module": "Node16",
7
+ "verbatimModuleSyntax": true
7
8
  }
8
9
  }
package/.eslintrc.js DELETED
@@ -1,9 +0,0 @@
1
- module.exports = {
2
- extends: ["custom"],
3
- root: true,
4
- parserOptions: {
5
- project: "./tsconfig.json",
6
- tsconfigRootDir: __dirname
7
- },
8
- ignorePatterns: [".eslintrc.js"]
9
- }
package/typedoc.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "extends": ["../../typedoc.base.json"],
3
- "entryPoints": ["src/index.ts"],
4
- }