@modern-js/plugin-ssg 2.17.0 → 2.18.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @modern-js/plugin-ssg
2
2
 
3
+ ## 2.18.0
4
+
5
+ ### Patch Changes
6
+
7
+ - @modern-js/utils@2.18.0
8
+
9
+ ## 2.17.1
10
+
11
+ ### Patch Changes
12
+
13
+ - @modern-js/utils@2.17.1
14
+
3
15
  ## 2.17.0
4
16
 
5
17
  ### Patch Changes
package/dist/esm/index.js CHANGED
@@ -30,7 +30,7 @@ function _async_to_generator(fn) {
30
30
  function _define_property(obj, key, value) {
31
31
  if (key in obj) {
32
32
  Object.defineProperty(obj, key, {
33
- value,
33
+ value: value,
34
34
  enumerable: true,
35
35
  configurable: true,
36
36
  writable: true
@@ -208,8 +208,8 @@ export default function() {
208
208
  var flattedRoutes = flattenRoutes(routes);
209
209
  agreedRouteMap[entryName] = flattedRoutes;
210
210
  return {
211
- entrypoint,
212
- routes
211
+ entrypoint: entrypoint,
212
+ routes: routes
213
213
  };
214
214
  },
215
215
  afterBuild: function afterBuild() {
@@ -1,7 +1,7 @@
1
1
  function _define_property(obj, key, value) {
2
2
  if (key in obj) {
3
3
  Object.defineProperty(obj, key, {
4
- value,
4
+ value: value,
5
5
  enumerable: true,
6
6
  configurable: true,
7
7
  writable: true
@@ -69,7 +69,7 @@ export function makeRoute(baseRoute, route) {
69
69
  if (typeof route === "string") {
70
70
  return _object_spread_props(_object_spread({}, baseRoute), {
71
71
  urlPath: normalize("".concat(urlPath).concat(route)) || "/",
72
- headers,
72
+ headers: headers,
73
73
  output: path.join(entryPath, "..".concat(route === "/" ? "" : route))
74
74
  });
75
75
  } else {
@@ -12,7 +12,7 @@ function _array_without_holes(arr) {
12
12
  function _define_property(obj, key, value) {
13
13
  if (key in obj) {
14
14
  Object.defineProperty(obj, key, {
15
- value,
15
+ value: value,
16
16
  enumerable: true,
17
17
  configurable: true,
18
18
  writable: true
@@ -1,7 +1,7 @@
1
1
  function _define_property(obj, key, value) {
2
2
  if (key in obj) {
3
3
  Object.defineProperty(obj, key, {
4
- value,
4
+ value: value,
5
5
  enumerable: true,
6
6
  configurable: true,
7
7
  writable: true
@@ -118,7 +118,7 @@ export var readJSONSpec = function(dir) {
118
118
  export var writeJSONSpec = function(dir, routes) {
119
119
  var routeJSONPath = path.join(dir, ROUTE_SPEC_FILE);
120
120
  fs.writeJSONSync(routeJSONPath, {
121
- routes
121
+ routes: routes
122
122
  }, {
123
123
  spaces: 2
124
124
  });
@@ -18,11 +18,11 @@ export var createServer = function(api, ssgRoutes, pageRoutes, apiRoutes, option
18
18
  var appContext = api.useAppContext();
19
19
  var plugins = appContext.serverInternalPlugins;
20
20
  cp.send(JSON.stringify({
21
- options,
21
+ options: options,
22
22
  renderRoutes: ssgRoutes,
23
23
  routes: total,
24
- appDirectory,
25
- plugins
24
+ appDirectory: appDirectory,
25
+ plugins: plugins
26
26
  }));
27
27
  var htmlChunks = [];
28
28
  var htmlAry = [];
@@ -1,7 +1,7 @@
1
1
  function _define_property(obj, key, value) {
2
2
  if (key in obj) {
3
3
  Object.defineProperty(obj, key, {
4
- value,
4
+ value: value,
5
5
  enumerable: true,
6
6
  configurable: true,
7
7
  writable: true
@@ -175,7 +175,7 @@ process.on("message", function() {
175
175
  server({
176
176
  pwd: appDirectory,
177
177
  config: options,
178
- routes,
178
+ routes: routes,
179
179
  staticGenerate: true,
180
180
  internalPlugins: plugins
181
181
  })
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.17.0",
18
+ "version": "2.18.0",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -63,7 +63,7 @@
63
63
  "node-mocks-http": "^1.10.1",
64
64
  "normalize-path": "^3.0.0",
65
65
  "portfinder": "^1.0.28",
66
- "@modern-js/utils": "2.17.0"
66
+ "@modern-js/utils": "2.18.0"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "react-router-dom": ">=5.1.2"
@@ -80,11 +80,11 @@
80
80
  "react": "^18",
81
81
  "react-router-dom": "^6.8.1",
82
82
  "typescript": "^4",
83
- "@modern-js/app-tools": "2.17.0",
84
- "@modern-js/prod-server": "2.17.0",
85
- "@modern-js/types": "2.17.0",
86
- "@scripts/build": "2.17.0",
87
- "@scripts/jest-config": "2.17.0"
83
+ "@modern-js/app-tools": "2.18.0",
84
+ "@modern-js/prod-server": "2.18.0",
85
+ "@modern-js/types": "2.18.0",
86
+ "@scripts/build": "2.18.0",
87
+ "@scripts/jest-config": "2.18.0"
88
88
  },
89
89
  "sideEffects": false,
90
90
  "publishConfig": {