@shuvi/platform-shared 1.0.44 → 1.0.45

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.
@@ -92,7 +92,7 @@ export class ApplicationImpl {
92
92
  return __awaiter(this, void 0, void 0, function* () {
93
93
  yield this._pluginManager.runner.appContext(this._context, {
94
94
  router: this._router,
95
- request: this._request
95
+ req: this._request
96
96
  });
97
97
  });
98
98
  }
@@ -4,6 +4,7 @@ export declare type IData = {
4
4
  };
5
5
  export declare type IAppData<Data = {}, appState = any> = {
6
6
  ssr: boolean;
7
+ basename?: string;
7
8
  runtimeConfig?: Record<string, string>;
8
9
  appState?: appState;
9
10
  pageData?: {
@@ -6,7 +6,7 @@ import { IRouter } from './routerTypes';
6
6
  export declare type AppComponent = unknown;
7
7
  export declare type AppContextCtx = {
8
8
  router: IRouter;
9
- request?: ShuviRequest;
9
+ req?: ShuviRequest;
10
10
  };
11
11
  declare const init: import("@shuvi/hook").AsyncParallelHook<void, void, void>;
12
12
  declare const appContext: import("@shuvi/hook").AsyncSeriesHook<IAppContext, AppContextCtx, void>;
@@ -95,7 +95,7 @@ class ApplicationImpl {
95
95
  return __awaiter(this, void 0, void 0, function* () {
96
96
  yield this._pluginManager.runner.appContext(this._context, {
97
97
  router: this._router,
98
- request: this._request
98
+ req: this._request
99
99
  });
100
100
  });
101
101
  }
@@ -4,6 +4,7 @@ export declare type IData = {
4
4
  };
5
5
  export declare type IAppData<Data = {}, appState = any> = {
6
6
  ssr: boolean;
7
+ basename?: string;
7
8
  runtimeConfig?: Record<string, string>;
8
9
  appState?: appState;
9
10
  pageData?: {
@@ -6,7 +6,7 @@ import { IRouter } from './routerTypes';
6
6
  export declare type AppComponent = unknown;
7
7
  export declare type AppContextCtx = {
8
8
  router: IRouter;
9
- request?: ShuviRequest;
9
+ req?: ShuviRequest;
10
10
  };
11
11
  declare const init: import("@shuvi/hook").AsyncParallelHook<void, void, void>;
12
12
  declare const appContext: import("@shuvi/hook").AsyncSeriesHook<IAppContext, AppContextCtx, void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shuvi/platform-shared",
3
- "version": "1.0.44",
3
+ "version": "1.0.45",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/shuvijs/shuvi.git",
@@ -83,16 +83,16 @@
83
83
  "node": ">= 16.0.0"
84
84
  },
85
85
  "dependencies": {
86
- "@shuvi/hook": "1.0.44",
86
+ "@shuvi/hook": "1.0.45",
87
87
  "doura": "0.0.13",
88
- "@shuvi/router": "1.0.44",
89
- "@shuvi/runtime": "1.0.44",
90
- "@shuvi/shared": "1.0.44",
91
- "@shuvi/toolpack": "1.0.44",
92
- "@shuvi/utils": "1.0.44"
88
+ "@shuvi/router": "1.0.45",
89
+ "@shuvi/runtime": "1.0.45",
90
+ "@shuvi/shared": "1.0.45",
91
+ "@shuvi/toolpack": "1.0.45",
92
+ "@shuvi/utils": "1.0.45"
93
93
  },
94
94
  "peerDependencies": {
95
- "@shuvi/service": "1.0.44"
95
+ "@shuvi/service": "1.0.45"
96
96
  },
97
97
  "devDependencies": {
98
98
  "@shuvi/service": "workspace:*",