@modern-js/plugin-data-loader 0.0.0-next-20250616073436 → 0.0.0-next-20250618163350
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.
|
@@ -28,7 +28,7 @@ var import_path_to_regexp = require("path-to-regexp");
|
|
|
28
28
|
var import_constants = require("../common/constants");
|
|
29
29
|
var import_data = require("./data");
|
|
30
30
|
const getRequestUrl = ({ params, request, routeId }) => {
|
|
31
|
-
const url = new URL(request.url
|
|
31
|
+
const url = new URL(request.url);
|
|
32
32
|
const toPath = (0, import_path_to_regexp.compile)(url.pathname, {
|
|
33
33
|
encode: encodeURIComponent
|
|
34
34
|
});
|
|
@@ -6,7 +6,7 @@ import { CONTENT_TYPE_DEFERRED, DIRECT_PARAM, LOADER_ID_PARAM } from "../common/
|
|
|
6
6
|
import { parseDeferredReadableStream } from "./data";
|
|
7
7
|
var getRequestUrl = function(param) {
|
|
8
8
|
var params = param.params, request = param.request, routeId = param.routeId;
|
|
9
|
-
var url = new URL(request.url
|
|
9
|
+
var url = new URL(request.url);
|
|
10
10
|
var toPath = compile(url.pathname, {
|
|
11
11
|
encode: encodeURIComponent
|
|
12
12
|
});
|
|
@@ -3,7 +3,7 @@ import { compile } from "path-to-regexp";
|
|
|
3
3
|
import { CONTENT_TYPE_DEFERRED, DIRECT_PARAM, LOADER_ID_PARAM } from "../common/constants";
|
|
4
4
|
import { parseDeferredReadableStream } from "./data";
|
|
5
5
|
const getRequestUrl = ({ params, request, routeId }) => {
|
|
6
|
-
const url = new URL(request.url
|
|
6
|
+
const url = new URL(request.url);
|
|
7
7
|
const toPath = compile(url.pathname, {
|
|
8
8
|
encode: encodeURIComponent
|
|
9
9
|
});
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "0.0.0-next-
|
|
18
|
+
"version": "0.0.0-next-20250618163350",
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=16.2.0"
|
|
21
21
|
},
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"@babel/core": "^7.26.0",
|
|
50
50
|
"@swc/helpers": "^0.5.17",
|
|
51
51
|
"path-to-regexp": "^6.2.0",
|
|
52
|
-
"@modern-js/runtime-utils": "0.0.0-next-
|
|
53
|
-
"@modern-js/utils": "0.0.0-next-
|
|
52
|
+
"@modern-js/runtime-utils": "0.0.0-next-20250618163350",
|
|
53
|
+
"@modern-js/utils": "0.0.0-next-20250618163350"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/babel__core": "^7.20.5",
|
|
@@ -66,11 +66,11 @@
|
|
|
66
66
|
"ts-jest": "^29.1.0",
|
|
67
67
|
"typescript": "^5",
|
|
68
68
|
"webpack": "^5.99.8",
|
|
69
|
-
"@modern-js/core": "0.0.0-next-
|
|
70
|
-
"@modern-js/
|
|
71
|
-
"@
|
|
72
|
-
"@scripts/
|
|
73
|
-
"@
|
|
69
|
+
"@modern-js/core": "0.0.0-next-20250618163350",
|
|
70
|
+
"@modern-js/types": "0.0.0-next-20250618163350",
|
|
71
|
+
"@scripts/build": "0.0.0-next-20250618163350",
|
|
72
|
+
"@scripts/jest-config": "0.0.0-next-20250618163350",
|
|
73
|
+
"@modern-js/server-core": "0.0.0-next-20250618163350"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"react": ">=17.0.0"
|