util-helpers 4.13.0 → 4.13.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.
@@ -1,5 +1,3 @@
1
- // @ts-ignore
2
- var version = "4.13.0";
3
1
  var config = {
4
2
  // 禁用warning提示
5
3
  disableWarning: true
@@ -14,6 +12,8 @@ var config = {
14
12
 
15
13
  function setDisableWarning(bool) {
16
14
  config.disableWarning = !!bool;
17
- }
15
+ } // eslint-disable-next-line no-undef
18
16
 
17
+
18
+ var version = "4.13.1";
19
19
  export { config, setDisableWarning, version };
@@ -5,9 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.setDisableWarning = setDisableWarning;
7
7
  exports.version = exports.config = void 0;
8
- // @ts-ignore
9
- var version = "4.13.0";
10
- exports.version = version;
11
8
  var config = {
12
9
  // 禁用warning提示
13
10
  disableWarning: true
@@ -24,4 +21,8 @@ exports.config = config;
24
21
 
25
22
  function setDisableWarning(bool) {
26
23
  config.disableWarning = !!bool;
27
- }
24
+ } // eslint-disable-next-line no-undef
25
+
26
+
27
+ var version = "4.13.1";
28
+ exports.version = version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "util-helpers",
3
- "version": "4.13.0",
3
+ "version": "4.13.1",
4
4
  "description": "一个基于业务场景的工具方法库",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",
@@ -65,11 +65,12 @@
65
65
  "@commitlint/config-conventional": "^11.0.0",
66
66
  "@rollup/plugin-babel": "^5.3.1",
67
67
  "@rollup/plugin-commonjs": "^19.0.0",
68
- "@rollup/plugin-json": "^4.1.0",
69
68
  "@rollup/plugin-node-resolve": "^13.0.0",
69
+ "@rollup/plugin-replace": "^5.0.1",
70
70
  "@types/jest": "^26.0.23",
71
71
  "babel-jest": "^27.0.2",
72
72
  "babel-plugin-inline-json": "^2.1.0",
73
+ "babel-plugin-minify-replace": "^0.5.0",
73
74
  "cross-env": "^7.0.3",
74
75
  "cz-conventional-changelog": "^3.3.0",
75
76
  "docdash": "^1.2.0",
@@ -81,7 +82,7 @@
81
82
  "prettier": "^2.3.2",
82
83
  "rollup": "^2.49.0",
83
84
  "rollup-plugin-terser": "^7.0.2",
84
- "typescript": "^4.2.4"
85
+ "typescript": "^4.9.3"
85
86
  },
86
87
  "lint-staged": {
87
88
  "**/*.js": "npm run lint-staged:js",
@@ -9,5 +9,4 @@ export namespace config {
9
9
  * @param {boolean} bool 是否禁止warning提示
10
10
  */
11
11
  export function setDisableWarning(bool: boolean): void;
12
- import { version } from "../../package.json";
13
- export { version };
12
+ export const version: string;