phecda-web 1.0.1-beta.13 → 1.0.1-beta.14
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 +0 -2
- package/dist/index.mjs +1 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -63,8 +63,6 @@ function defaultWebInject() {
|
|
|
63
63
|
}
|
|
64
64
|
if (!(0, import_phecda_core.getInject)("storage")) {
|
|
65
65
|
(0, import_phecda_core.setInject)("storage", ({ tag, key, instance, toJSON, toString }) => {
|
|
66
|
-
if (key === import_phecda_core.SHARE_KEY)
|
|
67
|
-
key = "";
|
|
68
66
|
tag = `phecda:${key ? `${tag}-${key}` : tag}`;
|
|
69
67
|
const initstr = localStorage.getItem(tag);
|
|
70
68
|
if (initstr) {
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
|
|
|
5
5
|
export * from "phecda-core";
|
|
6
6
|
|
|
7
7
|
// src/plugin.ts
|
|
8
|
-
import {
|
|
8
|
+
import { getInject, setInject } from "phecda-core";
|
|
9
9
|
import mitt from "mitt";
|
|
10
10
|
var emitter = mitt();
|
|
11
11
|
function defaultWebInject() {
|
|
@@ -26,8 +26,6 @@ function defaultWebInject() {
|
|
|
26
26
|
}
|
|
27
27
|
if (!getInject("storage")) {
|
|
28
28
|
setInject("storage", ({ tag, key, instance, toJSON, toString }) => {
|
|
29
|
-
if (key === SHARE_KEY)
|
|
30
|
-
key = "";
|
|
31
29
|
tag = `phecda:${key ? `${tag}-${key}` : tag}`;
|
|
32
30
|
const initstr = localStorage.getItem(tag);
|
|
33
31
|
if (initstr) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "phecda-web",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.14",
|
|
4
4
|
"description": "provide web function for phecda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"mitt": "^3.0.0",
|
|
16
|
-
"phecda-core": "3.0.0-beta.
|
|
16
|
+
"phecda-core": "3.0.0-beta.17"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"tsup": "^6.5.0"
|