@modern-js/plugin-bff 1.4.2 → 1.4.3
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 +12 -0
- package/dist/js/modern/loader.js +1 -2
- package/dist/js/node/loader.js +1 -3
- package/package.json +6 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @modern-js/plugin-bff
|
|
2
2
|
|
|
3
|
+
## 1.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0ee4bb4e: fix: remove loader-utils from dependencies
|
|
8
|
+
- Updated dependencies [4697d1db]
|
|
9
|
+
- Updated dependencies [0ee4bb4e]
|
|
10
|
+
- Updated dependencies [6fa74d5f]
|
|
11
|
+
- @modern-js/create-request@1.2.6
|
|
12
|
+
- @modern-js/utils@1.7.0
|
|
13
|
+
- @modern-js/server-utils@1.2.4
|
|
14
|
+
|
|
3
15
|
## 1.4.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/js/modern/loader.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getOptions } from 'loader-utils';
|
|
2
1
|
import { generateClient } from '@modern-js/bff-utils';
|
|
3
2
|
|
|
4
3
|
async function loader(source) {
|
|
@@ -7,7 +6,7 @@ async function loader(source) {
|
|
|
7
6
|
|
|
8
7
|
const callback = this.async(); // eslint-disable-next-line @babel/no-invalid-this
|
|
9
8
|
|
|
10
|
-
const draftOptions = getOptions(
|
|
9
|
+
const draftOptions = this.getOptions();
|
|
11
10
|
const options = {
|
|
12
11
|
prefix: Array.isArray(draftOptions.prefix) ? draftOptions.prefix[0] : draftOptions.prefix,
|
|
13
12
|
apiDir: draftOptions.apiDir,
|
package/dist/js/node/loader.js
CHANGED
|
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var _loaderUtils = require("loader-utils");
|
|
9
|
-
|
|
10
8
|
var _bffUtils = require("@modern-js/bff-utils");
|
|
11
9
|
|
|
12
10
|
async function loader(source) {
|
|
@@ -15,7 +13,7 @@ async function loader(source) {
|
|
|
15
13
|
|
|
16
14
|
const callback = this.async(); // eslint-disable-next-line @babel/no-invalid-this
|
|
17
15
|
|
|
18
|
-
const draftOptions =
|
|
16
|
+
const draftOptions = this.getOptions();
|
|
19
17
|
const options = {
|
|
20
18
|
prefix: Array.isArray(draftOptions.prefix) ? draftOptions.prefix[0] : draftOptions.prefix,
|
|
21
19
|
apiDir: draftOptions.apiDir,
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.4.
|
|
14
|
+
"version": "1.4.3",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -57,22 +57,20 @@
|
|
|
57
57
|
"@babel/runtime": "^7",
|
|
58
58
|
"@modern-js/babel-compiler": "^1.2.3",
|
|
59
59
|
"@modern-js/bff-utils": "^1.2.4",
|
|
60
|
-
"@modern-js/create-request": "^1.2.
|
|
60
|
+
"@modern-js/create-request": "^1.2.6",
|
|
61
61
|
"@modern-js/server-utils": "^1.2.4",
|
|
62
|
-
"@modern-js/utils": "^1.
|
|
63
|
-
"loader-utils": "^2.0.0"
|
|
62
|
+
"@modern-js/utils": "^1.7.0"
|
|
64
63
|
},
|
|
65
64
|
"devDependencies": {
|
|
66
|
-
"@modern-js/core": "1.
|
|
65
|
+
"@modern-js/core": "1.10.0",
|
|
67
66
|
"@modern-js/plugin-analyze": "1.4.1",
|
|
68
67
|
"@modern-js/runtime": "1.2.7",
|
|
69
|
-
"@modern-js/server-core": "1.3.
|
|
70
|
-
"@modern-js/types": "1.5.
|
|
68
|
+
"@modern-js/server-core": "1.3.3",
|
|
69
|
+
"@modern-js/types": "1.5.2",
|
|
71
70
|
"@scripts/build": "0.0.0",
|
|
72
71
|
"@scripts/jest-config": "0.0.0",
|
|
73
72
|
"@types/babel__core": "^7.1.15",
|
|
74
73
|
"@types/jest": "^26",
|
|
75
|
-
"@types/loader-utils": "^2.0.3",
|
|
76
74
|
"@types/node": "^14",
|
|
77
75
|
"jest": "^27",
|
|
78
76
|
"memfs": "^3.3.0",
|