@contrast/core 1.40.0 → 1.41.1

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.
@@ -36,7 +36,6 @@ function isUsingPM2(pkg) {
36
36
  async function isDocker() {
37
37
  try {
38
38
  const result = await fs.readFile('/proc/self/mountinfo', 'utf8');
39
- // @ts-expect-error readFile with encoding returns a string, not a Buffer
40
39
  const matches = StringPrototypeMatch.call(result, MOUNTINFO_REGEX);
41
40
  if (matches) return { isDocker: true, containerID: matches[1] };
42
41
  } catch (err) {
@@ -45,7 +44,6 @@ async function isDocker() {
45
44
 
46
45
  try {
47
46
  const result = await fs.readFile('/proc/self/cgroup', 'utf8');
48
- // @ts-expect-error readFile with encoding returns a string, not a Buffer
49
47
  const matches = StringPrototypeMatch.call(result, CGROUP_REGEX);
50
48
  if (matches) return { isDocker: true, containerID: matches[1] };
51
49
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/core",
3
- "version": "1.40.0",
3
+ "version": "1.41.1",
4
4
  "description": "Preconfigured Contrast agent core services and models",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
@@ -17,11 +17,11 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@contrast/common": "1.26.0",
20
- "@contrast/config": "1.35.0",
20
+ "@contrast/config": "1.36.0",
21
21
  "@contrast/find-package-json": "^1.1.0",
22
22
  "@contrast/fn-inspect": "^4.3.0",
23
- "@contrast/logger": "1.13.0",
24
- "@contrast/patcher": "1.12.0",
23
+ "@contrast/logger": "1.14.0",
24
+ "@contrast/patcher": "1.13.0",
25
25
  "axios": "^1.7.4",
26
26
  "semver": "^7.6.0"
27
27
  }