@naturalcycles/dev-lib 13.35.2 → 13.36.0

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.
@@ -5,7 +5,9 @@
5
5
 
6
6
  const fs = require('node:fs')
7
7
 
8
- const runInIDE = process.argv.some(a => a === '--runTestsByPath' || a.includes('IDEA'))
8
+ const runInIDE = process.argv.some(
9
+ a => a === '--runTestsByPath' || a.includes('IDEA') || a.includes('Visual Studio'),
10
+ )
9
11
  const ideIntegrationTest = runInIDE && process.argv.some(a => a.endsWith('.integration.test.ts'))
10
12
  const ideManualTest = runInIDE && process.argv.some(a => a.endsWith('.manual.test.ts'))
11
13
  const { CI, GITHUB_ACTIONS } = process.env
@@ -1,9 +1,3 @@
1
- /**
2
- * Does Object.freeze recursively for given object.
3
- *
4
- * Based on: https://github.com/substack/deep-freeze/blob/master/index.js
5
- */
6
- export declare function deepFreeze(o: any): void;
7
1
  export declare function silentConsole(): void;
8
2
  export declare const jestLogger: import("@naturalcycles/js-lib").CommonLogger;
9
3
  export declare const jestLog: import("@naturalcycles/js-lib").CommonLogFunction;
@@ -1,25 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.jestLog = exports.jestLogger = exports.silentConsole = exports.deepFreeze = void 0;
3
+ exports.jestLog = exports.jestLogger = exports.silentConsole = void 0;
4
4
  const js_lib_1 = require("@naturalcycles/js-lib");
5
5
  const nodejs_lib_1 = require("@naturalcycles/nodejs-lib");
6
- /**
7
- * Does Object.freeze recursively for given object.
8
- *
9
- * Based on: https://github.com/substack/deep-freeze/blob/master/index.js
10
- */
11
- function deepFreeze(o) {
12
- Object.freeze(o);
13
- Object.getOwnPropertyNames(o).forEach(prop => {
14
- if (o.hasOwnProperty(prop) && // eslint-disable-line no-prototype-builtins
15
- o[prop] !== null &&
16
- (typeof o[prop] === 'object' || typeof o[prop] === 'function') &&
17
- !Object.isFrozen(o[prop])) {
18
- deepFreeze(o[prop]);
19
- }
20
- });
21
- }
22
- exports.deepFreeze = deepFreeze;
23
6
  function silentConsole() {
24
7
  console.log = () => { };
25
8
  console.debug = () => { };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
- "version": "13.35.2",
3
+ "version": "13.36.0",
4
4
  "scripts": {
5
5
  "prepare": "husky install",
6
6
  "tsn-debug": "tsn testScript.ts",