phecda-vue 1.1.0 → 1.1.1

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
@@ -74,10 +74,10 @@ function createPhecda(symbol) {
74
74
  install(app) {
75
75
  app.provide(phecdaSymbol, phecda);
76
76
  app.config.globalProperties.$phecda = phecda;
77
- if (!window._phecda)
78
- window._phecda = {};
77
+ if (!window.__PHECDA_VUE__)
78
+ window.__PHECDA_VUE__ = {};
79
79
  if (symbol) {
80
- window._phecda[symbol] = {
80
+ window.__PHECDA_VUE__[symbol] = {
81
81
  instance: phecda,
82
82
  snapshot: () => {
83
83
  const ret = [];
@@ -99,7 +99,7 @@ function createPhecda(symbol) {
99
99
  ([eventName, handler]) => emitter.off(eventName, handler)
100
100
  );
101
101
  if (symbol)
102
- delete window._phecda[symbol];
102
+ delete window.__PHECDA_VUE__[symbol];
103
103
  originUnmount();
104
104
  };
105
105
  },
@@ -125,10 +125,10 @@ function getActivePhecda() {
125
125
  return activePhecda;
126
126
  }
127
127
  function getReactiveMap(symbol) {
128
- if (!window._phecda?.[symbol])
128
+ if (!window.__PHECDA_VUE__?.[symbol])
129
129
  return null;
130
130
  const ret = /* @__PURE__ */ new Map();
131
- window._phecda[symbol].snapshot.forEach(({ key, value }) => {
131
+ window.__PHECDA_VUE__[symbol].snapshot.forEach(({ key, value }) => {
132
132
  ret.set(key, value);
133
133
  });
134
134
  return ret;
package/dist/index.mjs CHANGED
@@ -12,10 +12,10 @@ function createPhecda(symbol) {
12
12
  install(app) {
13
13
  app.provide(phecdaSymbol, phecda);
14
14
  app.config.globalProperties.$phecda = phecda;
15
- if (!window._phecda)
16
- window._phecda = {};
15
+ if (!window.__PHECDA_VUE__)
16
+ window.__PHECDA_VUE__ = {};
17
17
  if (symbol) {
18
- window._phecda[symbol] = {
18
+ window.__PHECDA_VUE__[symbol] = {
19
19
  instance: phecda,
20
20
  snapshot: () => {
21
21
  const ret = [];
@@ -37,7 +37,7 @@ function createPhecda(symbol) {
37
37
  ([eventName, handler]) => emitter.off(eventName, handler)
38
38
  );
39
39
  if (symbol)
40
- delete window._phecda[symbol];
40
+ delete window.__PHECDA_VUE__[symbol];
41
41
  originUnmount();
42
42
  };
43
43
  },
@@ -63,10 +63,10 @@ function getActivePhecda() {
63
63
  return activePhecda;
64
64
  }
65
65
  function getReactiveMap(symbol) {
66
- if (!window._phecda?.[symbol])
66
+ if (!window.__PHECDA_VUE__?.[symbol])
67
67
  return null;
68
68
  const ret = /* @__PURE__ */ new Map();
69
- window._phecda[symbol].snapshot.forEach(({ key, value }) => {
69
+ window.__PHECDA_VUE__[symbol].snapshot.forEach(({ key, value }) => {
70
70
  ret.set(key, value);
71
71
  });
72
72
  return ret;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phecda-vue",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -14,7 +14,7 @@
14
14
  "dependencies": {
15
15
  "mitt": "^3.0.0",
16
16
  "vue": "^3.2.45",
17
- "phecda-core": "1.0.4"
17
+ "phecda-core": "1.0.5"
18
18
  },
19
19
  "devDependencies": {
20
20
  "tsup": "^6.5.0"