@modern-js/plugin-ssg 1.2.10 → 1.2.11

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,14 @@
1
1
  # @modern-js/plugin-ssg
2
2
 
3
+ ## 1.2.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 69a728375: fix: remove exports.jsnext:source after publish
8
+ - Updated dependencies [cd7346b0d]
9
+ - Updated dependencies [69a728375]
10
+ - @modern-js/utils@1.7.2
11
+
3
12
  ## 1.2.10
4
13
 
5
14
  ### Patch Changes
@@ -41,7 +41,7 @@ export function getUrlPrefix(route, baseUrl) {
41
41
  const filters = baseUrl.filter(url => route.urlPath.includes(url));
42
42
 
43
43
  if (filters.length > 1) {
44
- const matched = filters.sort((a, b) => a.length - b.length)[0]; // this should never happend
44
+ const matched = filters.sort((a, b) => a.length - b.length)[0]; // this should never happened
45
45
 
46
46
  if (!matched) {
47
47
  throw new Error('');
@@ -58,7 +58,7 @@ export function getUrlPrefix(route, baseUrl) {
58
58
  const prefix = `${base}/${entryName}`;
59
59
  return prefix.endsWith('/') ? prefix.slice(0, -1) : prefix;
60
60
  } // if no output, return default path for aggred-route(relative),
61
- // or thorw error for control-route
61
+ // or throw error for control-route
62
62
 
63
63
  export function getOutput(route, base, agreed) {
64
64
  const {
@@ -60,7 +60,7 @@ function getUrlPrefix(route, baseUrl) {
60
60
  const filters = baseUrl.filter(url => route.urlPath.includes(url));
61
61
 
62
62
  if (filters.length > 1) {
63
- const matched = filters.sort((a, b) => a.length - b.length)[0]; // this should never happend
63
+ const matched = filters.sort((a, b) => a.length - b.length)[0]; // this should never happened
64
64
 
65
65
  if (!matched) {
66
66
  throw new Error('');
@@ -77,7 +77,7 @@ function getUrlPrefix(route, baseUrl) {
77
77
  const prefix = `${base}/${entryName}`;
78
78
  return prefix.endsWith('/') ? prefix.slice(0, -1) : prefix;
79
79
  } // if no output, return default path for aggred-route(relative),
80
- // or thorw error for control-route
80
+ // or throw error for control-route
81
81
 
82
82
 
83
83
  function getOutput(route, base, agreed) {
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.2.10",
14
+ "version": "1.2.11",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -55,15 +55,15 @@
55
55
  },
56
56
  "dependencies": {
57
57
  "@babel/runtime": "^7",
58
- "@modern-js/utils": "^1.6.0",
58
+ "@modern-js/utils": "^1.7.2",
59
59
  "node-mocks-http": "^1.10.1",
60
60
  "normalize-path": "^3.0.0",
61
61
  "portfinder": "^1.0.28",
62
62
  "react-router-dom": "^5.2.1"
63
63
  },
64
64
  "devDependencies": {
65
- "@modern-js/types": "1.5.1",
66
- "@modern-js/prod-server": "1.1.2",
65
+ "@modern-js/types": "1.5.2",
66
+ "@modern-js/prod-server": "1.1.4",
67
67
  "@types/jest": "^26",
68
68
  "@types/node": "^14",
69
69
  "@types/react": "^17",
@@ -71,7 +71,7 @@
71
71
  "@types/react-router": "^5.1.16",
72
72
  "@types/react-router-dom": "^5.1.8",
73
73
  "typescript": "^4",
74
- "@modern-js/core": "1.9.0",
74
+ "@modern-js/core": "1.10.1",
75
75
  "@scripts/build": "0.0.0",
76
76
  "jest": "^27",
77
77
  "@scripts/jest-config": "0.0.0"