@modern-js/bff-core 2.0.0-beta.6 → 2.0.0-beta.7
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,19 @@
|
|
|
1
1
|
# @modern-js/bff-core
|
|
2
2
|
|
|
3
|
+
## 2.0.0-beta.7
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- dda38c9c3e: chore: v2
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [edd1cfb1af]
|
|
12
|
+
- Updated dependencies [dda38c9c3e]
|
|
13
|
+
- Updated dependencies [bbe4c4ab64]
|
|
14
|
+
- @modern-js/utils@2.0.0-beta.7
|
|
15
|
+
- @modern-js/bff-runtime@2.0.0-beta.7
|
|
16
|
+
|
|
3
17
|
## 2.0.0-beta.6
|
|
4
18
|
|
|
5
19
|
### Major Changes
|
|
@@ -64,9 +64,7 @@ const generateClient = (_0) => __async(void 0, [_0], function* ({
|
|
|
64
64
|
}
|
|
65
65
|
const upperHttpMethod = httpMethod.toUpperCase();
|
|
66
66
|
const routeName = routePath;
|
|
67
|
-
handlersCode += `export ${exportStatement} createRequest('${routeName}', '${upperHttpMethod}', process.env.PORT || ${
|
|
68
|
-
port
|
|
69
|
-
)}${fetcher ? `, fetch` : ""});
|
|
67
|
+
handlersCode += `export ${exportStatement} createRequest('${routeName}', '${upperHttpMethod}', ${process.env.PORT || String(port)}${fetcher ? `, fetch` : ""});
|
|
70
68
|
`;
|
|
71
69
|
}
|
|
72
70
|
const importCode = `import { createRequest } from '${requestCreator}';
|
|
@@ -93,9 +93,7 @@ const generateClient = (_0) => __async(void 0, [_0], function* ({
|
|
|
93
93
|
}
|
|
94
94
|
const upperHttpMethod = httpMethod.toUpperCase();
|
|
95
95
|
const routeName = routePath;
|
|
96
|
-
handlersCode += `export ${exportStatement} createRequest('${routeName}', '${upperHttpMethod}', process.env.PORT || ${
|
|
97
|
-
port
|
|
98
|
-
)}${fetcher ? `, fetch` : ""});
|
|
96
|
+
handlersCode += `export ${exportStatement} createRequest('${routeName}', '${upperHttpMethod}', ${process.env.PORT || String(port)}${fetcher ? `, fetch` : ""});
|
|
99
97
|
`;
|
|
100
98
|
}
|
|
101
99
|
const importCode = `import { createRequest } from '${requestCreator}';
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "2.0.0-beta.
|
|
14
|
+
"version": "2.0.0-beta.7",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"esbuild-register": "^3.3.3",
|
|
31
31
|
"koa-compose": "^4.1.0",
|
|
32
32
|
"reflect-metadata": "^0.1.13",
|
|
33
|
-
"@modern-js/bff-runtime": "2.0.0-beta.
|
|
34
|
-
"@modern-js/utils": "2.0.0-beta.
|
|
33
|
+
"@modern-js/bff-runtime": "2.0.0-beta.7",
|
|
34
|
+
"@modern-js/utils": "2.0.0-beta.7"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/jest": "^27",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"type-fest": "2.15.0",
|
|
42
42
|
"typescript": "^4",
|
|
43
43
|
"zod": "^3.17.3",
|
|
44
|
-
"@scripts/
|
|
45
|
-
"@scripts/
|
|
44
|
+
"@scripts/build": "2.0.0-beta.7",
|
|
45
|
+
"@scripts/jest-config": "2.0.0-beta.7"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"zod": "^3.17.3"
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"new": "modern-lib new",
|
|
61
|
+
"dev": "modern-lib build --watch",
|
|
61
62
|
"build": "modern-lib build",
|
|
62
63
|
"test": "jest --passWithNoTests"
|
|
63
64
|
}
|