@modern-js/plugin-bff 1.3.3 → 1.3.4

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,15 @@
1
1
  # @modern-js/plugin-bff
2
2
 
3
+ ## 1.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 8f24a514: fix: allow reference typings to index file
8
+ - Updated dependencies [deeaa602]
9
+ - Updated dependencies [54786e58]
10
+ - @modern-js/utils@1.3.2
11
+ - @modern-js/core@1.4.3
12
+
3
13
  ## 1.3.3
4
14
 
5
15
  ### Patch Changes
@@ -1,3 +1,4 @@
1
+ import "./types";
1
2
  import path from 'path';
2
3
  import fs from 'fs-extra';
3
4
  import { createPlugin, useAppContext, useResolvedConfigContext } from '@modern-js/core';
@@ -1 +1,2 @@
1
+ import "./types";
1
2
  export * from "./constants";
@@ -0,0 +1 @@
1
+ import '@modern-js/core';
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
+ require("./types");
9
+
8
10
  var _path = _interopRequireDefault(require("path"));
9
11
 
10
12
  var _fsExtra = _interopRequireDefault(require("fs-extra"));
@@ -4,6 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
+ require("./types");
8
+
7
9
  var _constants = require("./constants");
8
10
 
9
11
  Object.keys(_constants).forEach(function (key) {
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ require("@modern-js/core");
@@ -1,13 +1,4 @@
1
- declare module '@modern-js/core' {
2
- interface UserConfig {
3
- bff?: {
4
- prefix?: string;
5
- requestCreator?: string;
6
- fetcher?: string;
7
- proxy: Record<string, any>;
8
- };
9
- }
10
- }
1
+ import './types';
11
2
 
12
3
  declare const _default: any;
13
4
 
@@ -1 +1,2 @@
1
+ import './types';
1
2
  export * from './constants';
@@ -0,0 +1,11 @@
1
+ import '@modern-js/core';
2
+ declare module '@modern-js/core' {
3
+ interface UserConfig {
4
+ bff?: {
5
+ prefix?: string;
6
+ requestCreator?: string;
7
+ fetcher?: string;
8
+ proxy: Record<string, any>;
9
+ };
10
+ }
11
+ }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.3.3",
14
+ "version": "1.3.4",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -56,18 +56,18 @@
56
56
  "@modern-js/babel-preset-lib": "^1.2.1",
57
57
  "@modern-js/create-request": "^1.2.1",
58
58
  "@modern-js/server-utils": "^1.2.1",
59
- "@modern-js/utils": "^1.3.0",
59
+ "@modern-js/utils": "^1.3.2",
60
60
  "fs-extra": "^10.0.0",
61
61
  "loader-utils": "^2.0.0"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@modern-js/bff-utils": "^1.2.2",
65
- "@modern-js/core": "^1.4.0",
65
+ "@modern-js/core": "^1.4.3",
66
66
  "@scripts/build": "0.0.0",
67
- "@modern-js/plugin-analyze": "^1.3.0",
67
+ "@modern-js/plugin-analyze": "^1.3.3",
68
68
  "@modern-js/runtime": "^1.2.2",
69
69
  "@modern-js/server-core": "^1.2.2",
70
- "@modern-js/types": "^1.3.0",
70
+ "@modern-js/types": "^1.3.3",
71
71
  "@types/babel__core": "^7.1.15",
72
72
  "@types/fs-extra": "^9.0.13",
73
73
  "@types/jest": "^26",
@@ -83,7 +83,7 @@
83
83
  },
84
84
  "peerDependencies": {
85
85
  "@modern-js/bff-utils": "^1.2.2",
86
- "@modern-js/core": "^1.4.0",
86
+ "@modern-js/core": "^1.4.3",
87
87
  "@modern-js/server-core": "^1.2.2"
88
88
  },
89
89
  "modernConfig": {
@@ -94,8 +94,7 @@
94
94
  "sideEffects": false,
95
95
  "publishConfig": {
96
96
  "registry": "https://registry.npmjs.org/",
97
- "access": "public",
98
- "types": "./dist/types/index.d.ts"
97
+ "access": "public"
99
98
  },
100
99
  "scripts": {
101
100
  "new": "modern new",