diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a2107fb0..8e981de6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: - node-version: [14.x] + node-version: [16.x] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0f9fd4e2..0fcdbed3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v2 with: - node-version: '14.x' + node-version: '16.x' registry-url: 'https://registry.npmjs.org' - name: Build licia run: npm link && npm run build diff --git a/src/cgroup.js b/src/cgroup.js index 7ef27a73..b8e81807 100644 --- a/src/cgroup.js +++ b/src/cgroup.js @@ -98,7 +98,7 @@ const memory = { let max = Infinity; if (isV2()) { - let data = read('memory.max'); + const data = read('memory.max'); if (data !== 'max') { max = toNum(data); } diff --git a/src/container.js b/src/container.js index 85609f7e..aa48b33e 100644 --- a/src/container.js +++ b/src/container.js @@ -127,7 +127,7 @@ function memUsage() { function memLoad() { let max = os.totalmem(); - let cgroupMax = cgroup.memory.max(); + const cgroupMax = cgroup.memory.max(); if (cgroupMax < max) { max = cgroupMax; } diff --git a/src/md5.js b/src/md5.js index 8ce3c45c..c1898ea9 100644 --- a/src/md5.js +++ b/src/md5.js @@ -160,7 +160,7 @@ function rotl(n, b) { } if (isNode) { - let crypto = eval('require')('crypto'); + const crypto = eval('require')('crypto'); exports = function(msg) { if (isArr(msg)) {