/
usr
/
local
/
lib
/
node_modules
/
pm2
/
node_modules
/
dayjs
/
esm
/
plugin
/
weekYear
/
/usr/local/lib/node_modules/pm2/node_modules/dayjs/esm/plugin/weekYear
mkdir
upload
Name
Size
Mode
Actions
index.d.ts
168
0644
edit
dl
rm
index.js
360
0644
edit
dl
rm
Edit:
/usr/local/lib/node_modules/pm2/node_modules/dayjs/esm/plugin/weekYear/index.js
(360B)
export default (function (o, c) { var proto = c.prototype; proto.weekYear = function () { var month = this.month(); var weekOfYear = this.week(); var year = this.year(); if (weekOfYear === 1 && month === 11) { return year + 1; } if (month === 0 && weekOfYear >= 52) { return year - 1; } return year; }; });
Save
cmd:
run