@ray-js/library 1.7.53 → 1.7.55
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/regexp/NamedRegexp.js +1 -0
- package/lib/url/format.js +2 -1
- package/lib/url/params.js +1 -0
- package/lib/url/parse.js +2 -1
- package/lib/url/queryStringify.js +1 -1
- package/lib/url/searchParse.js +3 -0
- package/package.json +3 -3
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
|
|
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 ||
|
|
48
|
+
res.hash = res.hash || "#".concat(____h_a_s_h____);
|
|
48
49
|
res.search = format({
|
|
49
50
|
query
|
|
50
51
|
});
|
package/lib/url/searchParse.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "1.7.55",
|
|
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.
|
|
29
|
+
"@ray-js/cli": "1.7.55"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public",
|
|
33
33
|
"registry": "https://registry.npmjs.org"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "99c603c95b6dc57833bd51784cf28c93a4d36b96"
|
|
36
36
|
}
|