@ray-js/library 1.4.25 → 1.4.27

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/lib/url/format.js CHANGED
@@ -10,5 +10,5 @@ export default function format(attrs) {
10
10
  search = ''
11
11
  } = attrs;
12
12
  const searchQuery = searchParse(search);
13
- return "".concat(origin).concat(pathname).concat(queryStringify(_objectSpread(_objectSpread({}, query), searchQuery))).concat(hash);
13
+ return `${origin}${pathname}${queryStringify(_objectSpread(_objectSpread({}, query), searchQuery))}${hash}`;
14
14
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  /**
3
2
  * 调整页面地址的 query
4
3
  * @param url - url 地址
package/lib/url/params.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  const _excluded = ["query"];
4
- import "core-js/modules/web.dom-collections.iterator.js";
5
4
  import merge from 'merge';
6
5
  import parse from './parse';
7
6
  import format from './format';
package/lib/url/parse.js CHANGED
@@ -42,7 +42,7 @@ export default function parse(href) {
42
42
  res.query = query;
43
43
  if (____h_a_s_h____) {
44
44
  // 剔除 ____h_a_s_h____
45
- res.hash = res.hash || "#".concat(____h_a_s_h____);
45
+ res.hash = res.hash || `#${____h_a_s_h____}`;
46
46
  res.search = format({
47
47
  query
48
48
  });
@@ -12,5 +12,5 @@ export default function queryStringify(query) {
12
12
  const value = query[key];
13
13
  search.push([key, value].join('='));
14
14
  });
15
- return "".concat(prefix ? '?' : '').concat(search.join('&'));
15
+ return `${prefix ? '?' : ''}${search.join('&')}`;
16
16
  }
@@ -1,5 +1,3 @@
1
- import "core-js/modules/web.dom-collections.iterator.js";
2
- import "core-js/modules/es.string.replace.js";
3
1
  /**
4
2
  * 分割url search key value,返回 [key, value]
5
3
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/library",
3
- "version": "1.4.25",
3
+ "version": "1.4.27",
4
4
  "description": "Ray library for browser",
5
5
  "keywords": [
6
6
  "ray"
@@ -26,11 +26,11 @@
26
26
  "merge": "^2.1.1"
27
27
  },
28
28
  "devDependencies": {
29
- "@ray-js/cli": "^1.4.25"
29
+ "@ray-js/cli": "1.4.27"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public",
33
33
  "registry": "https://registry.npmjs.org"
34
34
  },
35
- "gitHead": "1f7733e15d0e83677ca7a14c60bb03b4b7ddb783"
35
+ "gitHead": "ec5a33175e901af0218175d2e5afa7bb5de4f1fb"
36
36
  }