@modern-js/plugin-server 2.58.2 → 2.59.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/cli.js +2 -2
- package/dist/cjs/runtime/assets/assets.js +1 -1
- package/dist/cjs/runtime/assets/node.js +2 -2
- package/dist/esm/cli.js +2 -2
- package/dist/esm/runtime/assets/assets.js +1 -1
- package/dist/esm/runtime/assets/node.js +2 -2
- package/dist/esm-node/cli.js +2 -2
- package/dist/esm-node/runtime/assets/assets.js +1 -1
- package/dist/esm-node/runtime/assets/node.js +2 -2
- package/dist/types/cli.d.ts +1 -1
- package/package.json +10 -10
package/dist/cjs/cli.js
CHANGED
@@ -33,9 +33,9 @@ __export(cli_exports, {
|
|
33
33
|
});
|
34
34
|
module.exports = __toCommonJS(cli_exports);
|
35
35
|
var import_path = __toESM(require("path"));
|
36
|
-
var import_fs_extra = __toESM(require("@modern-js/utils/fs-extra"));
|
37
|
-
var import_utils = require("@modern-js/utils");
|
38
36
|
var import_server_utils = require("@modern-js/server-utils");
|
37
|
+
var import_utils = require("@modern-js/utils");
|
38
|
+
var import_fs_extra = __toESM(require("@modern-js/utils/fs-extra"));
|
39
39
|
function checkHasCache(appDir) {
|
40
40
|
const tsFilepath = import_path.default.resolve(appDir, "server", "cache.ts");
|
41
41
|
const jsfilepath = import_path.default.resolve(appDir, "server", "cache.js");
|
@@ -23,8 +23,8 @@ __export(assets_exports, {
|
|
23
23
|
injectAssetsTags: () => injectAssetsTags
|
24
24
|
});
|
25
25
|
module.exports = __toCommonJS(assets_exports);
|
26
|
-
var import_remix_router = require("@modern-js/runtime-utils/remix-router");
|
27
26
|
var import_node = require("@modern-js/runtime-utils/node");
|
27
|
+
var import_remix_router = require("@modern-js/runtime-utils/remix-router");
|
28
28
|
const createScript = (href, nonce) => `<script defer src="${href}"${nonce ? ` nonce="${nonce}"` : ""}></script>`;
|
29
29
|
const createCss = (href) => `<link rel="stylesheet" type="text/css" href="${href}">`;
|
30
30
|
const getAssets = (html, nestedRoutes, routesJson, routesManifest, pathname) => {
|
@@ -33,10 +33,10 @@ __export(node_exports, {
|
|
33
33
|
injectAssets: () => injectAssets
|
34
34
|
});
|
35
35
|
module.exports = __toCommonJS(node_exports);
|
36
|
-
var import_node_path = __toESM(require("node:path"));
|
37
36
|
var import_fs = __toESM(require("fs"));
|
38
|
-
var
|
37
|
+
var import_node_path = __toESM(require("node:path"));
|
39
38
|
var import_utils = require("@modern-js/utils");
|
39
|
+
var import_constants = require("@modern-js/utils/universal/constants");
|
40
40
|
var import_assets = require("./assets");
|
41
41
|
var import_assets2 = require("./assets");
|
42
42
|
const injectAssets = async ({ html, pathname, distDir, nonce }) => {
|
package/dist/esm/cli.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator";
|
2
2
|
import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
|
3
3
|
import path from "path";
|
4
|
-
import fs from "@modern-js/utils/fs-extra";
|
5
|
-
import { SERVER_DIR, SHARED_DIR } from "@modern-js/utils";
|
6
4
|
import { compile } from "@modern-js/server-utils";
|
5
|
+
import { SERVER_DIR, SHARED_DIR } from "@modern-js/utils";
|
6
|
+
import fs from "@modern-js/utils/fs-extra";
|
7
7
|
function checkHasCache(appDir) {
|
8
8
|
var tsFilepath = path.resolve(appDir, "server", "cache.ts");
|
9
9
|
var jsfilepath = path.resolve(appDir, "server", "cache.js");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array";
|
2
|
-
import { matchRoutes } from "@modern-js/runtime-utils/remix-router";
|
3
2
|
import { matchEntry } from "@modern-js/runtime-utils/node";
|
3
|
+
import { matchRoutes } from "@modern-js/runtime-utils/remix-router";
|
4
4
|
var createScript = function(href, nonce) {
|
5
5
|
return '<script defer src="'.concat(href, '"').concat(nonce ? ' nonce="'.concat(nonce, '"') : "", "></script>");
|
6
6
|
};
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator";
|
2
2
|
import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
|
3
|
-
import path from "node:path";
|
4
3
|
import fs from "fs";
|
5
|
-
import
|
4
|
+
import path from "node:path";
|
6
5
|
import { ROUTE_MANIFEST_FILE } from "@modern-js/utils";
|
6
|
+
import { NESTED_ROUTE_SPEC_FILE, ROUTE_SPEC_FILE } from "@modern-js/utils/universal/constants";
|
7
7
|
import { getAssetsTags, injectAssetsTags } from "./assets";
|
8
8
|
import { getAssetsTags as getAssetsTags2, getAssets } from "./assets";
|
9
9
|
var injectAssets = function() {
|
package/dist/esm-node/cli.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import path from "path";
|
2
|
-
import fs from "@modern-js/utils/fs-extra";
|
3
|
-
import { SERVER_DIR, SHARED_DIR } from "@modern-js/utils";
|
4
2
|
import { compile } from "@modern-js/server-utils";
|
3
|
+
import { SERVER_DIR, SHARED_DIR } from "@modern-js/utils";
|
4
|
+
import fs from "@modern-js/utils/fs-extra";
|
5
5
|
function checkHasCache(appDir) {
|
6
6
|
const tsFilepath = path.resolve(appDir, "server", "cache.ts");
|
7
7
|
const jsfilepath = path.resolve(appDir, "server", "cache.js");
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { matchRoutes } from "@modern-js/runtime-utils/remix-router";
|
2
1
|
import { matchEntry } from "@modern-js/runtime-utils/node";
|
2
|
+
import { matchRoutes } from "@modern-js/runtime-utils/remix-router";
|
3
3
|
const createScript = (href, nonce) => `<script defer src="${href}"${nonce ? ` nonce="${nonce}"` : ""}></script>`;
|
4
4
|
const createCss = (href) => `<link rel="stylesheet" type="text/css" href="${href}">`;
|
5
5
|
const getAssets = (html, nestedRoutes, routesJson, routesManifest, pathname) => {
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import path from "node:path";
|
2
1
|
import fs from "fs";
|
3
|
-
import
|
2
|
+
import path from "node:path";
|
4
3
|
import { ROUTE_MANIFEST_FILE } from "@modern-js/utils";
|
4
|
+
import { NESTED_ROUTE_SPEC_FILE, ROUTE_SPEC_FILE } from "@modern-js/utils/universal/constants";
|
5
5
|
import { getAssetsTags, injectAssetsTags } from "./assets";
|
6
6
|
import { getAssetsTags as getAssetsTags2, getAssets } from "./assets";
|
7
7
|
const injectAssets = async ({ html, pathname, distDir, nonce }) => {
|
package/dist/types/cli.d.ts
CHANGED
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.
|
18
|
+
"version": "2.59.0",
|
19
19
|
"types": "./dist/types/cli.d.ts",
|
20
20
|
"jsnext:source": "./src/cli",
|
21
21
|
"main": "./dist/cjs/cli.js",
|
@@ -65,21 +65,21 @@
|
|
65
65
|
},
|
66
66
|
"dependencies": {
|
67
67
|
"@swc/helpers": "0.5.3",
|
68
|
-
"@modern-js/server-utils": "2.
|
69
|
-
"@modern-js/
|
70
|
-
"@modern-js/utils": "2.
|
68
|
+
"@modern-js/server-utils": "2.59.0",
|
69
|
+
"@modern-js/utils": "2.59.0",
|
70
|
+
"@modern-js/runtime-utils": "2.59.0"
|
71
71
|
},
|
72
72
|
"devDependencies": {
|
73
73
|
"@types/jest": "^29",
|
74
74
|
"@types/node": "^14",
|
75
75
|
"jest": "^29",
|
76
76
|
"typescript": "^5",
|
77
|
-
"@modern-js/app-tools": "2.
|
78
|
-
"@modern-js/
|
79
|
-
"@modern-js/core": "2.
|
80
|
-
"@modern-js/types": "2.
|
81
|
-
"@scripts/
|
82
|
-
"@scripts/
|
77
|
+
"@modern-js/app-tools": "2.59.0",
|
78
|
+
"@modern-js/core": "2.59.0",
|
79
|
+
"@modern-js/server-core": "2.59.0",
|
80
|
+
"@modern-js/types": "2.59.0",
|
81
|
+
"@scripts/jest-config": "2.59.0",
|
82
|
+
"@scripts/build": "2.59.0"
|
83
83
|
},
|
84
84
|
"sideEffects": [
|
85
85
|
"*.css",
|