@digest/scripts 4.1.2 → 4.1.4

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.
@@ -9,7 +9,7 @@ const consume = (type, setting) => {
9
9
  case 'obj': {
10
10
  if (setting &&
11
11
  Object.prototype.toString.call(setting) === '[object String]') {
12
- return JSON.parse(setting.replace(/""(.*)""/ug, '"\\"$1\\""'));
12
+ return JSON.parse(setting.replace(/""(.*)""/gu, '"\\"$1\\""'));
13
13
  }
14
14
  else {
15
15
  return setting || {};
@@ -26,13 +26,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- const node_path_1 = __importDefault(require("node:path"));
30
- const find_up_1 = __importDefault(require("find-up"));
31
29
  const package_1 = __importDefault(require("../package"));
32
30
  const production_1 = __importDefault(require("../production"));
33
31
  const consume_1 = __importDefault(require("./consume"));
34
32
  const resolvePath_1 = __importDefault(require("./resolvePath"));
35
33
  const settings_1 = __importStar(require("./settings"));
34
+ const find_up_1 = __importDefault(require("find-up"));
35
+ const node_path_1 = __importDefault(require("node:path"));
36
36
  const cwd = process.cwd();
37
37
  const { DIGEST_NAME = 'digest.config.json' } = process.env;
38
38
  const digestPath = find_up_1.default.sync(DIGEST_NAME);
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.keys = void 0;
7
- const node_path_1 = __importDefault(require("node:path"));
8
7
  const production_1 = __importDefault(require("../production"));
8
+ const node_path_1 = __importDefault(require("node:path"));
9
9
  const settings = {
10
10
  angular: {
11
11
  defaults: true,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@digest/scripts",
3
3
  "title": "Digest Scripts",
4
4
  "license": "LGPL-3.0-or-later",
5
- "version": "4.1.2",
5
+ "version": "4.1.4",
6
6
  "description": "Helper scripts for various digests",
7
7
  "author": "wallzero @wallzeroblog (http://wallzero.com)",
8
8
  "contributors": [
@@ -33,6 +33,9 @@
33
33
  "lint:es": "eslint 'src/**/*.[jt]s?(x)' --ignore-pattern 'src/**/*.(d.ts|json)'",
34
34
  "clean": "rimraf node_modules dist package-lock.json npm-debug.log"
35
35
  },
36
+ "devDependencies": {
37
+ "@types/node": "^18.13.0"
38
+ },
36
39
  "dependencies": {
37
40
  "find-up": "^5.0.0"
38
41
  },
@@ -40,5 +43,5 @@
40
43
  "digest",
41
44
  "scripts"
42
45
  ],
43
- "gitHead": "2e288724dc697442853a361d48e6de4eb9882451"
46
+ "gitHead": "0feeb837fb854241aaa341aa0dce8939cc2e6a46"
44
47
  }