@nocobase/sdk 0.12.0-alpha.5 → 0.13.0-alpha.2

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,8 +1,8 @@
1
1
  const getSubAppName = () => {
2
- const match = window.location.pathname.match(/^\/apps\/([^/]*)\//);
2
+ const match = window.location.pathname.match(/^\/apps\/([^/]*)\/?/);
3
3
  if (!match) {
4
4
  return '';
5
5
  }
6
- return match[1].toUpperCase();
6
+ return match[1];
7
7
  };
8
8
  export default getSubAppName;
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  const getSubAppName = () => {
8
- const match = window.location.pathname.match(/^\/apps\/([^/]*)\//);
8
+ const match = window.location.pathname.match(/^\/apps\/([^/]*)\/?/);
9
9
  if (!match) {
10
10
  return '';
11
11
  }
12
- return match[1].toUpperCase();
12
+ return match[1];
13
13
  };
14
14
  var _default = getSubAppName;
15
15
  exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/sdk",
3
- "version": "0.12.0-alpha.5",
3
+ "version": "0.13.0-alpha.2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib",
6
6
  "module": "es/index.js",
@@ -12,5 +12,5 @@
12
12
  "devDependencies": {
13
13
  "axios-mock-adapter": "^1.20.0"
14
14
  },
15
- "gitHead": "689cc16e83361c4d0b91907e0deac30bdb907692"
15
+ "gitHead": "c43183b714350217788cf0466e1f32bcaa527302"
16
16
  }