util-helpers 4.20.6 → 4.20.8

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.
package/esm/VERSION.js CHANGED
@@ -1,4 +1,4 @@
1
- var VERSION = "4.20.6";
1
+ var VERSION = "4.20.8";
2
2
  var VERSION$1 = VERSION;
3
3
 
4
4
  export { VERSION$1 as default };
package/esm/index.js CHANGED
@@ -63,6 +63,6 @@ export { default as findTreeSelect } from './findTreeSelect.js';
63
63
  export { setDisableWarning } from './utils/config.js';
64
64
  export { default as VERSION } from './VERSION.js';
65
65
 
66
- var version = "4.20.6";
66
+ var version = "4.20.8";
67
67
 
68
68
  export { version };
@@ -1,7 +1,8 @@
1
1
  import { constant, noop } from 'ut2';
2
+ import { URLExisted } from './setup.js';
2
3
 
3
4
  var objectKeys = Object.keys;
4
- var createObjectURL = typeof URL !== 'undefined' ? URL.createObjectURL : constant('');
5
- var revokeObjectURL = typeof URL !== 'undefined' ? URL.revokeObjectURL : noop;
5
+ var createObjectURL = URLExisted ? URL.createObjectURL : constant('');
6
+ var revokeObjectURL = URLExisted ? URL.revokeObjectURL : noop;
6
7
 
7
8
  export { createObjectURL, objectKeys, revokeObjectURL };
@@ -0,0 +1,3 @@
1
+ var URLExisted = typeof URL !== 'undefined';
2
+
3
+ export { URLExisted };
package/lib/VERSION.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var VERSION = "4.20.6";
3
+ var VERSION = "4.20.8";
4
4
  var VERSION$1 = VERSION;
5
5
 
6
6
  module.exports = VERSION$1;
package/lib/index.js CHANGED
@@ -65,7 +65,7 @@ var findTreeSelect = require('./findTreeSelect.js');
65
65
  var config = require('./utils/config.js');
66
66
  var VERSION = require('./VERSION.js');
67
67
 
68
- exports.version = "4.20.6";
68
+ exports.version = "4.20.8";
69
69
 
70
70
  exports.isMobile = isMobile;
71
71
  exports.isTelephone = isTelephone;
@@ -1,7 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var ut2 = require('ut2');
4
+ var setup = require('./setup.js');
4
5
 
5
6
  exports.objectKeys = Object.keys;
6
- exports.createObjectURL = typeof URL !== 'undefined' ? URL.createObjectURL : ut2.constant('');
7
- exports.revokeObjectURL = typeof URL !== 'undefined' ? URL.revokeObjectURL : ut2.noop;
7
+ exports.createObjectURL = setup.URLExisted ? URL.createObjectURL : ut2.constant('');
8
+ exports.revokeObjectURL = setup.URLExisted ? URL.revokeObjectURL : ut2.noop;
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+
3
+ exports.URLExisted = typeof URL !== 'undefined';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "util-helpers",
3
- "version": "4.20.6",
3
+ "version": "4.20.8",
4
4
  "description": "一个基于业务场景的工具方法库",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",
@@ -51,34 +51,34 @@
51
51
  },
52
52
  "homepage": "https://doly-dev.github.io/util-helpers/index.html",
53
53
  "devDependencies": {
54
- "@babel/core": "^7.22.11",
55
- "@babel/preset-env": "^7.22.14",
56
- "@babel/preset-typescript": "^7.22.11",
57
- "@commitlint/cli": "^17.7.1",
54
+ "@babel/core": "^7.23.0",
55
+ "@babel/preset-env": "^7.22.20",
56
+ "@babel/preset-typescript": "^7.23.0",
57
+ "@commitlint/cli": "^17.7.2",
58
58
  "@commitlint/config-conventional": "^17.7.0",
59
- "@rollup/plugin-commonjs": "^25.0.4",
60
- "@rollup/plugin-node-resolve": "^15.2.1",
61
- "@rollup/plugin-replace": "^5.0.2",
62
- "@rollup/plugin-terser": "^0.4.3",
63
- "@rollup/plugin-typescript": "^11.1.3",
64
- "@types/jest": "^29.5.4",
59
+ "@rollup/plugin-commonjs": "^25.0.5",
60
+ "@rollup/plugin-node-resolve": "^15.2.3",
61
+ "@rollup/plugin-replace": "^5.0.3",
62
+ "@rollup/plugin-terser": "^0.4.4",
63
+ "@rollup/plugin-typescript": "^11.1.5",
64
+ "@types/jest": "^29.5.5",
65
65
  "@typescript-eslint/eslint-plugin": "^5.62.0",
66
66
  "@typescript-eslint/parser": "^5.62.0",
67
- "babel-jest": "^29.6.4",
67
+ "babel-jest": "^29.7.0",
68
68
  "babel-plugin-minify-replace": "^0.5.0",
69
69
  "cross-env": "^7.0.3",
70
70
  "cz-conventional-changelog": "^3.3.0",
71
71
  "docdash": "^2.0.2",
72
- "eslint": "^8.48.0",
73
- "jest": "^29.6.4",
72
+ "eslint": "^8.51.0",
73
+ "husky": "^8.0.3",
74
+ "jest": "^29.7.0",
74
75
  "jest-canvas-mock": "^2.5.2",
75
- "jest-environment-jsdom": "^29.6.4",
76
+ "jest-environment-jsdom": "^29.7.0",
76
77
  "jsdoc": "^4.0.2",
77
78
  "lint-staged": "^13.3.0",
78
79
  "prettier": "^2.8.8",
79
- "rollup": "^3.28.1",
80
- "typescript": "^5.2.2",
81
- "husky": "^8.0.0"
80
+ "rollup": "^3.29.4",
81
+ "typescript": "^5.2.2"
82
82
  },
83
83
  "lint-staged": {
84
84
  "**/*.ts": "eslint",
@@ -91,6 +91,6 @@
91
91
  },
92
92
  "dependencies": {
93
93
  "tslib": "^2.6.2",
94
- "ut2": "^1.4.9"
94
+ "ut2": "^1.5.2"
95
95
  }
96
96
  }
@@ -0,0 +1 @@
1
+ export declare const URLExisted: boolean;