NUWCDIVNPT / stigman-watcher

A utility that watches a path for test result files on behalf of a STIG Manager Collection
Other
6 stars 4 forks source link

Migrate from CommonJS to ESM #87

Closed Matte22 closed 7 months ago

Matte22 commented 7 months ago

resolves: #85

The following PR will migrate Stigman-Watcher to use ESM style modules.

Other than the syntactical changes to migrate to ESM, the only logic that needed to be refactored is in args.js to:

  1. Obtain the watcher version number from package,json
  2. Logic behind exiting the application when validating the client secret or key.