Skip to content

Commit

Permalink
chore: remove/update dependencies (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
csmig authored Feb 29, 2024
1 parent a70d38a commit f08e187
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 155 deletions.
2 changes: 1 addition & 1 deletion lib/cargo.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { logger, getSymbol } from './logger.js'
import Queue from 'better-queue'
import * as api from './api.js'
import { serializeError } from 'serialize-error'
import { TaskObject } from 'stig-manager-client-modules'
import { TaskObject } from '@nuwcdivnpt/stig-manager-client-modules'
import { addToHistory } from './scan.js'

const component = 'cargo'
Expand Down
10 changes: 1 addition & 9 deletions lib/parse.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
import { cache } from './api.js'
import { XMLParser } from 'fast-xml-parser'
import Queue from 'better-queue'
import { logger } from './logger.js'
import { cargoQueue } from './cargo.js'
import { promises as fs } from 'fs'
import he from 'he'
import { reviewsFromCkl, reviewsFromScc, reviewsFromCklb } from 'stig-manager-client-modules'
import { reviewsFromCkl, reviewsFromScc, reviewsFromCklb } from '@nuwcdivnpt/stig-manager-client-modules'
import { addToHistory } from './scan.js'
import { options } from './args.js'

const valueProcessor = function (tagName, tagValue, jPath, hasAttributes, isLeafNode) {
he.decode(tagValue)
}

const defaultImportOptions = {
autoStatus: 'saved',
unreviewed: 'commented',
Expand Down Expand Up @@ -71,8 +65,6 @@ async function parseFileAndEnqueue (file, cb) {
importOptions,
fieldSettings,
allowAccept,
valueProcessor,
XMLParser,
scapBenchmarkMap,
sourceRef: file
})
Expand Down
Loading

0 comments on commit f08e187

Please sign in to comment.