@shuvi/platform-shared 1.0.0-rc.10 → 1.0.0-rc.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.
@@ -1,6 +1,5 @@
1
- import { IDENTITY_RUNTIME_PUBLICPATH } from '@shuvi/shared/lib/constants';
2
1
  import { getAppData } from './getAppData';
3
2
  export function getPublicPath() {
4
3
  const { publicPath } = getAppData();
5
- return window[IDENTITY_RUNTIME_PUBLICPATH] || publicPath;
4
+ return publicPath;
6
5
  }
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getPublicPath = void 0;
4
- const constants_1 = require("@shuvi/shared/lib/constants");
5
4
  const getAppData_1 = require("./getAppData");
6
5
  function getPublicPath() {
7
6
  const { publicPath } = (0, getAppData_1.getAppData)();
8
- return window[constants_1.IDENTITY_RUNTIME_PUBLICPATH] || publicPath;
7
+ return publicPath;
9
8
  }
10
9
  exports.getPublicPath = getPublicPath;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shuvi/platform-shared",
3
- "version": "1.0.0-rc.10",
3
+ "version": "1.0.0-rc.11",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/shuvijs/shuvi.git",
@@ -82,18 +82,18 @@
82
82
  "node": ">= 12.0.0"
83
83
  },
84
84
  "dependencies": {
85
- "@shuvi/hook": "1.0.0-rc.10",
85
+ "@shuvi/hook": "1.0.0-rc.11",
86
86
  "@shuvi/redox": "0.0.6",
87
- "@shuvi/router": "1.0.0-rc.10",
88
- "@shuvi/runtime": "1.0.0-rc.10",
89
- "@shuvi/service": "1.0.0-rc.10",
90
- "@shuvi/shared": "1.0.0-rc.10",
91
- "@shuvi/toolpack": "1.0.0-rc.10",
92
- "@shuvi/utils": "1.0.0-rc.10",
87
+ "@shuvi/router": "1.0.0-rc.11",
88
+ "@shuvi/runtime": "1.0.0-rc.11",
89
+ "@shuvi/service": "1.0.0-rc.11",
90
+ "@shuvi/shared": "1.0.0-rc.11",
91
+ "@shuvi/toolpack": "1.0.0-rc.11",
92
+ "@shuvi/utils": "1.0.0-rc.11",
93
93
  "redux": "4.1.2"
94
94
  },
95
95
  "peerDependencies": {
96
- "@shuvi/service": "1.0.0-rc.10"
96
+ "@shuvi/service": "1.0.0-rc.11"
97
97
  },
98
98
  "devDependencies": {
99
99
  "@types/minimatch": "3.0.5"