@contrast/agent 4.32.5 → 4.32.7

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/bin/VERSION CHANGED
@@ -1 +1 @@
1
- 2.28.26
1
+ 2.28.27
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -19,7 +19,7 @@ const os = require('os');
19
19
  const process = require('process');
20
20
  const path = require('path');
21
21
  const fs = require('fs');
22
- const yaml = require('yaml');
22
+ const yaml = require('js-yaml');
23
23
  const stringify = require('json-stable-stringify');
24
24
 
25
25
  const common = require('./options');
@@ -206,12 +206,12 @@ function readConfig(cliOptions, logger) {
206
206
  // Prevents having to depend on file extension, or nest try/catches to
207
207
  // parse yaml and JSON separately.
208
208
  try {
209
- config = yaml.parse(fileContents, {
210
- prettyErrors: true,
209
+ config = yaml.load(fileContents, {
210
+ json: true,
211
211
  });
212
212
  } catch (e) {
213
213
  logger.error(
214
- `YAML validator found an error in ${cliOptions.configFile}. ${e.message}`
214
+ `YAML validator found an error in ${cliOptions.configFile} - ${e.message}`
215
215
  );
216
216
  }
217
217
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/agent",
3
- "version": "4.32.5",
3
+ "version": "4.32.7",
4
4
  "description": "Node.js security instrumentation by Contrast Security",
5
5
  "keywords": [
6
6
  "security",
@@ -84,7 +84,7 @@
84
84
  "@contrast/flat": "^4.1.1",
85
85
  "@contrast/fn-inspect": "^3.1.0",
86
86
  "@contrast/protobuf-api": "^3.2.5",
87
- "@contrast/require-hook": "^3.2.1",
87
+ "@contrast/require-hook": "^3.2.2",
88
88
  "@contrast/synchronous-source-maps": "^1.1.0",
89
89
  "amqp-connection-manager": "^3.2.2",
90
90
  "amqplib": "^0.8.0",
@@ -100,6 +100,7 @@
100
100
  "find-cache-dir": "^3.3.1",
101
101
  "getmac": "^5.20.0",
102
102
  "ipaddr.js": "^1.8.1",
103
+ "js-yaml": "^4.1.0",
103
104
  "json-stable-stringify": "^1.0.1",
104
105
  "jspack": "0.0.4",
105
106
  "lodash": "^4.17.21",
@@ -112,8 +113,7 @@
112
113
  "semver": "^7.3.2",
113
114
  "uuid": "^8.3.2",
114
115
  "winston": "^3.7.2",
115
- "winston-daily-rotate-file": "^3.5.1",
116
- "yaml": "^1.10.0"
116
+ "winston-daily-rotate-file": "^3.5.1"
117
117
  },
118
118
  "devDependencies": {
119
119
  "@aws-sdk/client-dynamodb": "^3.39.0",
@@ -157,7 +157,7 @@
157
157
  "joi": "^17.4.0",
158
158
  "libxmljs": "file:test/mock/libxmljs",
159
159
  "libxmljs2": "file:test/mock/libxmljs2",
160
- "lint-staged": "^12.0.2",
160
+ "lint-staged": "^13.2.1",
161
161
  "madge": "^4.0.1",
162
162
  "marsdb": "file:test/mock/marsdb",
163
163
  "mocha": "^9.2.2",