@ray-js/library 1.7.52 → 1.7.54

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,3 +1,4 @@
1
+ import "core-js/modules/es.regexp.exec.js";
1
2
  import "core-js/modules/esnext.iterator.constructor.js";
2
3
  import "core-js/modules/esnext.iterator.reduce.js";
3
4
  /**
package/lib/url/format.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import "core-js/modules/es.regexp.exec.js";
2
3
  import queryStringify from './queryStringify';
3
4
  import searchParse from './searchParse';
4
5
  export default function format(attrs) {
@@ -10,5 +11,5 @@ export default function format(attrs) {
10
11
  search = ''
11
12
  } = attrs;
12
13
  const searchQuery = searchParse(search);
13
- return `${origin}${pathname}${queryStringify(_objectSpread(_objectSpread({}, query), searchQuery))}${hash}`;
14
+ return "".concat(origin).concat(pathname).concat(queryStringify(_objectSpread(_objectSpread({}, query), searchQuery))).concat(hash);
14
15
  }
package/lib/url/params.js CHANGED
@@ -1,6 +1,7 @@
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";
4
5
  import merge from 'merge';
5
6
  import parse from './parse';
6
7
  import format from './format';
package/lib/url/parse.js CHANGED
@@ -2,6 +2,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  const _excluded = ["pathname"],
4
4
  _excluded2 = ["____h_a_s_h____"];
5
+ import "core-js/modules/es.regexp.exec.js";
5
6
  import "core-js/modules/esnext.iterator.constructor.js";
6
7
  import "core-js/modules/esnext.iterator.for-each.js";
7
8
  import { NamedRegexp } from '../regexp';
@@ -44,7 +45,7 @@ export default function parse(href) {
44
45
  res.query = query;
45
46
  if (____h_a_s_h____) {
46
47
  // 剔除 ____h_a_s_h____
47
- res.hash = res.hash || `#${____h_a_s_h____}`;
48
+ res.hash = res.hash || "#".concat(____h_a_s_h____);
48
49
  res.search = format({
49
50
  query
50
51
  });
@@ -14,5 +14,5 @@ export default function queryStringify(query) {
14
14
  const value = query[key];
15
15
  search.push([key, value].join('='));
16
16
  });
17
- return `${prefix ? '?' : ''}${search.join('&')}`;
17
+ return "".concat(prefix ? '?' : '').concat(search.join('&'));
18
18
  }
@@ -1,5 +1,8 @@
1
+ import "core-js/modules/es.regexp.exec.js";
2
+ import "core-js/modules/es.string.replace.js";
1
3
  import "core-js/modules/esnext.iterator.constructor.js";
2
4
  import "core-js/modules/esnext.iterator.for-each.js";
5
+ import "core-js/modules/web.dom-collections.iterator.js";
3
6
  /**
4
7
  * 分割url search key value,返回 [key, value]
5
8
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/library",
3
- "version": "1.7.52",
3
+ "version": "1.7.54",
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.7.52"
29
+ "@ray-js/cli": "1.7.54"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public",
33
33
  "registry": "https://registry.npmjs.org"
34
34
  },
35
- "gitHead": "14ced414dd88e28032bde51c350b8dae60fe6892"
35
+ "gitHead": "5116e3b87db4744a118a9fe97f88a8c708b44a93"
36
36
  }