Commit ec19cbe
authored
Dependency and eslint upgrades (#6486)
* match ts-inspec-objects and heimdall monorepo with having a test:ci script endpoint
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* upgrade some deps
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* upgrade target to es2024
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* upgrade and swap out typescript and eslint related deps
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* redo eslint by initially making it match ts-inspec-objects
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* use eslint config to specify what the linter targets should be. also we do not need a custom formatter
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* applied autofix eslint rules
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* saf cli is a cli app that needs to be able to call process.exit
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* vitest runs test files in parallel by default but runs the actual tests sequentially. we can speed things up by running those tests in parallel by default too
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* filename changes
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* split out the cleaning part from the compiling part in the scripts so that incremental could be used effectively
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* tsconfig improvements most important being the incremental flag being enabled; tried setting up the bundler moduleresolution option but was running into a lot of blockers and didn't want to pivot focus entirely to making this module ESM
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* added more rules primarily for imports
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* reworked ckl2poam so that we swapped out the dependency on xml2js for fast-xml-parser (now we only have the one xml parsing library), made it fully async await, and reworked tests accordingly plus added some more
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* indentation was wrong for some reason
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* enabled typedchecks for typescript and disabled some rules
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* mostly autofixes
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* bring in improvements from ts-inspec-objects. we need to more consistently use winston for our logging and also work on getting rid of colors here
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* use enum instead of raw strings when checking against enum
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* resolved some more lint findings
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* any is unfortunately used frequently throughout our types as a shortcut around dealing with parsing json for the most part. it'll take time to rework things to make our types safer. for now just move on
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* more lints
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* linter
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* linter
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* linter
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* added prefer-object-has-own
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* linter
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* prefer for..of over for..in
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* lint
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* these functions aren't used
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* always use braces
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* lint
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* lint
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* only one importing lodash like that
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* linter
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* linter
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* lint
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* make emasser.get tests not reliant on shared mutable state
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* put sequence.concurrent under test and then adjust tests that rely on global state like stdout - tests now run tremendously faster
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* lint
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* lint against the new test that got written
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* fix linting issues in emasser + do some code style improvements (multiple pushes into an array to instead be a map, etc) + make things more consistently use async await instead of promises with callbacks
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* linter and try to convert some thens to async awaits
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* linter
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
* merge main and update deps
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>
---------
Signed-off-by: Amndeep Singh Mann <amann@mitre.org>1 parent 03a2d9f commit ec19cbe
196 files changed
Lines changed: 12842 additions & 14422 deletions
File tree
- .github/workflows
- src
- commands
- attest
- convert
- emasser
- delete
- get
- post
- put
- generate
- harden
- scan
- supplement
- passthrough
- target
- validate
- view
- types
- splunk-sdk-no-env
- utils
- emasser
- oclif
- help
- hooks
- ohdf
- test
- commands
- attest
- convert
- emasser
- generate
- supplement
- validate
- view
- sample_data/poam
- utils
- __tests__
- ohdf
- __tests__
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
0 commit comments