@contrast/core 1.41.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.
- package/lib/system-info/index.js +0 -2
- package/package.json +1 -1
package/lib/system-info/index.js
CHANGED
|
@@ -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.41.
|
|
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)",
|