From bf62ec06b90216b7ed89267254cb74e122881d82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Tue, 15 Dec 2020 18:15:19 +0800 Subject: [PATCH] merge --- index.js | 5 ++++- index.mjs | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 55cad05..7e4d829 100644 --- a/index.js +++ b/index.js @@ -21,7 +21,10 @@ class Stats { } } -const VERSION = +process.versions.node.split('.').slice(0, 2).join('.') +const VERSION = +process.versions.node + .split('.') + .slice(0, 2) + .join('.') const EMPTY_STAT = new Stats() diff --git a/index.mjs b/index.mjs index 15c102d..2e3e0b5 100644 --- a/index.mjs +++ b/index.mjs @@ -21,7 +21,10 @@ class STATS { } } -const VERSION = +process.versions.node.split('.').slice(0, 2).join('.') +const VERSION = +process.versions.node + .split('.') + .slice(0, 2) + .join('.') const EMPTY_STAT = new STATS()