@coana-tech/cli 14.9.13 → 14.9.16

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.
Files changed (2) hide show
  1. package/cli.mjs +16 -1
  2. package/package.json +1 -1
package/cli.mjs CHANGED
@@ -212095,6 +212095,21 @@ var CoanaSupportedVulnerabilitiesDBInterface = class _CoanaSupportedVulnerabilit
212095
212095
  async removeDemand(vuln) {
212096
212096
  return this.updateVulnerability(vuln, { demand: false });
212097
212097
  }
212098
+ async upsertVulnerabilityPattern(ghsa, ecosystem, updateFields) {
212099
+ const advisory = ghsa;
212100
+ const _id = `${ghsa}-${ecosystem}`;
212101
+ return this.vulnerabilitiesSupportedCollection.updateOne(
212102
+ { _id },
212103
+ {
212104
+ $set: {
212105
+ ...updateFields,
212106
+ ecosystem,
212107
+ advisory
212108
+ }
212109
+ },
212110
+ { upsert: true }
212111
+ );
212112
+ }
212098
212113
  async close() {
212099
212114
  await this.mongoClient.close();
212100
212115
  }
@@ -213116,7 +213131,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
213116
213131
  }
213117
213132
 
213118
213133
  // dist/version.js
213119
- var version2 = "14.9.13";
213134
+ var version2 = "14.9.16";
213120
213135
 
213121
213136
  // dist/cli-core.js
213122
213137
  var { omit, partition, pick } = import_lodash15.default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coana-tech/cli",
3
- "version": "14.9.13",
3
+ "version": "14.9.16",
4
4
  "description": "Coana CLI",
5
5
  "type": "module",
6
6
  "bin": {