@naturalcycles/dev-lib 12.16.5 → 12.17.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.
@@ -197,6 +197,12 @@ module.exports = {
197
197
  'no-ex-assign': 2,
198
198
  'no-extra-boolean-cast': 2,
199
199
  'no-extra-semi': 'off',
200
+ 'no-implicit-coercion': [
201
+ 2,
202
+ {
203
+ allow: ['!!'],
204
+ },
205
+ ],
200
206
  'no-fallthrough': 2,
201
207
  'no-func-assign': 2,
202
208
  'no-global-assign': 2,
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./cmd/build-prod.command"), exports);
5
- (0, tslib_1.__exportStar)(require("./util/buildInfo.util"), exports);
6
- (0, tslib_1.__exportStar)(require("./util/git.util"), exports);
4
+ tslib_1.__exportStar(require("./cmd/build-prod.command"), exports);
5
+ tslib_1.__exportStar(require("./util/buildInfo.util"), exports);
6
+ tslib_1.__exportStar(require("./util/git.util"), exports);
@@ -4,8 +4,8 @@ exports.timekeeper = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const timekeeper = require("timekeeper");
6
6
  exports.timekeeper = timekeeper;
7
- (0, tslib_1.__exportStar)(require("../jestOffline.util"), exports);
8
- (0, tslib_1.__exportStar)(require("./expect.util"), exports);
9
- (0, tslib_1.__exportStar)(require("./mockAllKindsOfThings"), exports);
10
- (0, tslib_1.__exportStar)(require("./testing.util"), exports);
11
- (0, tslib_1.__exportStar)(require("./time.util"), exports);
7
+ tslib_1.__exportStar(require("../jestOffline.util"), exports);
8
+ tslib_1.__exportStar(require("./expect.util"), exports);
9
+ tslib_1.__exportStar(require("./mockAllKindsOfThings"), exports);
10
+ tslib_1.__exportStar(require("./testing.util"), exports);
11
+ tslib_1.__exportStar(require("./time.util"), exports);
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.generateBuildInfo = void 0;
4
- const time_lib_1 = require("@naturalcycles/time-lib");
4
+ const js_lib_1 = require("@naturalcycles/js-lib");
5
5
  const git_util_1 = require("./git.util");
6
6
  async function generateBuildInfo(dev = false) {
7
- const now = (0, time_lib_1.dayjs)();
7
+ const now = (0, js_lib_1.localTime)();
8
8
  const [rev, branchName, repoName, tsCommit] = dev
9
9
  ? ['devRev', 'devBranch', 'devRepo', now.unix()]
10
10
  : await Promise.all([
@@ -15,7 +15,7 @@ async function generateBuildInfo(dev = false) {
15
15
  ]);
16
16
  const ts = now.unix();
17
17
  const tsStr = now.toPretty();
18
- const ver = [now.toCompactTime(), repoName, branchName, rev].join('_');
18
+ const ver = [now.toStringCompact(), repoName, branchName, rev].join('_');
19
19
  return {
20
20
  ts,
21
21
  tsCommit,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
- "version": "12.16.5",
3
+ "version": "12.17.1",
4
4
  "scripts": {
5
5
  "prepare": "husky install",
6
6
  "tsn-debug": "tsn testScript.ts",
@@ -35,7 +35,6 @@
35
35
  "@naturalcycles/cli": "^1.0.0",
36
36
  "@naturalcycles/js-lib": "^14.0.0",
37
37
  "@naturalcycles/nodejs-lib": "^12.0.0",
38
- "@naturalcycles/time-lib": "^3.0.1",
39
38
  "@types/fs-extra": "^9.0.0",
40
39
  "@types/jest": "^27.0.0",
41
40
  "@types/node": "^17.0.0",
@@ -47,8 +46,8 @@
47
46
  "eslint-config-prettier": "^8.3.0",
48
47
  "eslint-plugin-import": "^2.22.1",
49
48
  "eslint-plugin-jest": "^26.0.0",
50
- "eslint-plugin-jsdoc": "^37.0.0",
51
- "eslint-plugin-unicorn": "^41.0.0",
49
+ "eslint-plugin-jsdoc": "^38.0.4",
50
+ "eslint-plugin-unicorn": "^42.0.0",
52
51
  "eslint-plugin-unused-imports": "^2.0.0",
53
52
  "eslint-plugin-vue": "^8.0.1",
54
53
  "execa": "^5.0.0",