Skip to content

Commit

Permalink
chore: update ci node version to 16.x
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Nov 21, 2023
1 parent 36626b3 commit 17e4458
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [16.x]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/cgroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/md5.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 17e4458

Please sign in to comment.