@contrast/agent 4.32.12 → 4.32.14

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.
@@ -17,7 +17,7 @@ Copyright: 2023 Contrast Security, Inc
17
17
  /** @typedef {import('../models/StorageContext')} StorageContext */
18
18
 
19
19
  const _ = require('lodash');
20
- const { createNamespace, getNamespace } = require('cls-hooked');
20
+ const { createNamespace, getNamespace } = require('@contrast/cls-hooked');
21
21
 
22
22
  // Please keep these strings
23
23
  // cls-hooked debug logging will fail
@@ -155,8 +155,9 @@ function checkConfigPath() {
155
155
  os.platform() === 'win32'
156
156
  ? `${process.env['ProgramData']}\\contrast`
157
157
  : '/etc/contrast';
158
+ const configSubDir = `${configDir}${path.sep}node`;
158
159
 
159
- for (const dir of [process.cwd(), configDir]) {
160
+ for (const dir of [process.cwd(), configSubDir, configDir]) {
160
161
  const checkPath = path.resolve(dir, 'contrast_security.yaml');
161
162
  if (fs.existsSync(checkPath)) {
162
163
  return checkPath;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/agent",
3
- "version": "4.32.12",
3
+ "version": "4.32.14",
4
4
  "description": "Node.js security instrumentation by Contrast Security",
5
5
  "keywords": [
6
6
  "security",
@@ -80,6 +80,7 @@
80
80
  "@babel/traverse": "^7.12.1",
81
81
  "@babel/types": "^7.12.1",
82
82
  "@contrast/agent-lib": "^4.3.0",
83
+ "@contrast/cls-hooked": "^4.3.1",
83
84
  "@contrast/distringuish": "^4.2.1",
84
85
  "@contrast/flat": "^4.1.1",
85
86
  "@contrast/fn-inspect": "^3.1.0",
@@ -91,7 +92,6 @@
91
92
  "axios": "^0.25.0",
92
93
  "big-integer": "^1.6.36",
93
94
  "builtin-modules": "^3.2.0",
94
- "cls-hooked": "^4.2.2",
95
95
  "commander": "^8.3.0",
96
96
  "content-security-policy-parser": "^0.2.0",
97
97
  "cookie": "^0.3.1",
@@ -104,7 +104,7 @@
104
104
  "json-stable-stringify": "^1.0.1",
105
105
  "jspack": "0.0.4",
106
106
  "lodash": "^4.17.21",
107
- "make-dir": "^3.1.0",
107
+ "make-dir": "^4.0.0",
108
108
  "multi-stage-sourcemap": "^0.3.1",
109
109
  "on-finished": "^2.3.0",
110
110
  "parent-package-json": "^2.0.1",