@xingtukeji/micro 1.1.21 → 1.1.22

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/dist/index.js CHANGED
@@ -48,7 +48,7 @@ const s = {
48
48
  // 微应用在 url 参数中的前缀
49
49
  MICRO_VERSION: "__XT_MICRO_VERSION"
50
50
  // 微应用版本
51
- }, f = "1.1.21";
51
+ }, f = "1.1.22";
52
52
  function _(t, e = window.location.href) {
53
53
  t = t.replace(/[\[\]]/g, "\\$&");
54
54
  var n = new RegExp("[?&]" + t + "(=([^&#]*)|&|#|$)"), o = n.exec(e);
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@xingtukeji/micro",
3
- "version": "1.1.21",
3
+ "version": "1.1.22",
4
4
  "private": false,
5
5
  "description": "",
6
- "main": "src/index.ts",
6
+ "main": "dist/index.js",
7
7
  "types": "dist/types/index.d.ts",
8
8
  "files": [
9
9
  "dist"
package/src/index.ts DELETED
@@ -1,22 +0,0 @@
1
- import type { App } from "vue";
2
- import XTMicroView from "./components/XTMicroView.vue";
3
-
4
- import { mainMicroInit } from "./parent";
5
- export * from "./api";
6
- import * as utils from "./utils";
7
-
8
- export { XTMicroView, utils };
9
- import { version } from "../package.json";
10
- import { CONSTANT } from "./types";
11
- window[CONSTANT.MICRO_VERSION] = version;
12
- //开放部分 api 直接在 window 上挂载
13
- window["micro_api"] = {
14
- debug: utils.ConsoleUtil.setEnable,
15
- };
16
-
17
- export default {
18
- install: (app: App, _options: any = {}) => {
19
- app.component("xt-micro-view", XTMicroView);
20
- mainMicroInit();
21
- },
22
- };