@ezuikit/utils-tools 2.0.0-beta.1 → 2.0.0-beta.3

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/dist/index.js CHANGED
@@ -28,7 +28,7 @@ function parseEzopenUrl(url) {
28
28
  return {};
29
29
  }
30
30
 
31
- var codec = {
31
+ var __$codec$__ = {
32
32
  h264: 1,
33
33
  h265: 2,
34
34
  h266: 4,
@@ -40,7 +40,7 @@ var codec = {
40
40
  exports.addVc = function(url, codecs) {
41
41
  void 0 === codecs && (codecs = [ "h264" ]);
42
42
  var vc = (codecs || [ "h264" ]).reduce(function(acc, key) {
43
- return key = key.toLowerCase(), acc + (codec[key] || 0);
43
+ return key = key.toLowerCase(), acc + (__$codec$__[key] || 0);
44
44
  }, 0), host = url.split("?")[0], query = url.split("?")[1];
45
45
  return query = (query || "").split("&").filter(function(item) {
46
46
  return !/^vc=\d?/.test(item);
package/dist/index.mjs CHANGED
@@ -70,7 +70,7 @@ function getStaticPath(path, base) {
70
70
  }
71
71
  }
72
72
 
73
- var codec = {
73
+ var __$codec$__ = {
74
74
  h264: 1,
75
75
  h265: 2,
76
76
  h266: 4,
@@ -82,7 +82,7 @@ var codec = {
82
82
  function addVc(url, codecs) {
83
83
  void 0 === codecs && (codecs = [ "h264" ]);
84
84
  var vc = (codecs || [ "h264" ]).reduce(function(acc, key) {
85
- return key = key.toLowerCase(), acc + (codec[key] || 0);
85
+ return key = key.toLowerCase(), acc + (__$codec$__[key] || 0);
86
86
  }, 0), host = url.split("?")[0], query = url.split("?")[1];
87
87
  return query = (query || "").split("&").filter(function(item) {
88
88
  return !/^vc=\d?/.test(item);
package/dist/index.umd.js CHANGED
@@ -28,7 +28,7 @@
28
28
  }
29
29
  return {};
30
30
  }
31
- var codec = {
31
+ var __$codec$__ = {
32
32
  h264: 1,
33
33
  h265: 2,
34
34
  h266: 4,
@@ -39,7 +39,7 @@
39
39
  exports.addVc = function(url, codecs) {
40
40
  void 0 === codecs && (codecs = [ "h264" ]);
41
41
  var vc = (codecs || [ "h264" ]).reduce(function(acc, key) {
42
- return key = key.toLowerCase(), acc + (codec[key] || 0);
42
+ return key = key.toLowerCase(), acc + (__$codec$__[key] || 0);
43
43
  }, 0), host = url.split("?")[0], query = url.split("?")[1];
44
44
  return query = (query || "").split("&").filter(function(item) {
45
45
  return !/^vc=\d?/.test(item);
@@ -5,4 +5,5 @@ import { getQuery } from './query';
5
5
  import { pick } from './pick';
6
6
  import { getStaticPath } from './getStaticPath';
7
7
  import { addVc } from './addVc';
8
- export { parseEzopenUrl, switchEzopenUrl, type EzopenURL, type SwitchEzpoenOptions, type EzopenType, type EzopenRecType, type EzopenDefinition, isHttp, isMobile, getQuery, pick, getStaticPath, addVc, };
8
+ export type { EzopenURL, SwitchEzpoenOptions, EzopenType, EzopenRecType, EzopenDefinition };
9
+ export { parseEzopenUrl, switchEzopenUrl, isHttp, isMobile, getQuery, pick, getStaticPath, addVc };
package/package.json CHANGED
@@ -1,16 +1,10 @@
1
1
  {
2
2
  "name": "@ezuikit/utils-tools",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.0-beta.3",
4
4
  "description": "tools utils",
5
5
  "main": "dist/index.js",
6
6
  "umd": "dist/index.umd.js",
7
7
  "types": "dist/types/index.d.ts",
8
- "module": "dist/index.mjs",
9
- "exports": {
10
- "types": "./dist/types/index.d.ts",
11
- "import": "./dist/index.mjs",
12
- "default": "./dist/index.js"
13
- },
14
8
  "scripts": {
15
9
  "dev": "cross-env NODE_ENV=development rollup --config rollup.config.mjs --watch",
16
10
  "build": "npm run clean && cross-env NODE_ENV=production rollup --config rollup.config.mjs && npm run types && npm run docs",