yakuza0 2.21.1 → 2.21.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.
- package/config/index.js +12 -2
- package/package.json +3 -2
package/config/index.js
CHANGED
|
@@ -56,7 +56,8 @@ var safeGet = function safeGet(options) {
|
|
|
56
56
|
|
|
57
57
|
var lsKey = 'cln_init';
|
|
58
58
|
var lsGet = function lsGet(appName, key) {
|
|
59
|
-
|
|
59
|
+
// const lsk = lsKey + '_' + md5(appName).substring(2, 8);
|
|
60
|
+
var lsk = lsKey;
|
|
60
61
|
var lgc = localStorage.getItem(lsk);
|
|
61
62
|
|
|
62
63
|
if (lgc) {
|
|
@@ -68,7 +69,16 @@ var lsGet = function lsGet(appName, key) {
|
|
|
68
69
|
};
|
|
69
70
|
|
|
70
71
|
var lsSet = function lsSet(appName, key, str) {
|
|
71
|
-
|
|
72
|
+
// const lsk = lsKey + '_' + md5(appName).substring(2, 8);
|
|
73
|
+
|
|
74
|
+
for (var i = 0; i < localStorage.length; i++) {
|
|
75
|
+
var k = localStorage.key(i);
|
|
76
|
+
if (_yakuza._.startsWith(k, lsKey) && k.replace(lsKey, '').length > 0) {
|
|
77
|
+
localStorage.removeItem(k);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
var lsk = lsKey;
|
|
72
82
|
var content = key + '_' + str;
|
|
73
83
|
localStorage.setItem(lsk, content);
|
|
74
84
|
};
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yakuza0",
|
|
3
|
-
"version": "2.21.
|
|
3
|
+
"version": "2.21.2",
|
|
4
4
|
"description": "yakuza0 with nuxt",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "babel --no-babelrc src -d . --presets=env --plugins=transform-runtime,transform-object-rest-spread,add-module-exports",
|
|
8
|
-
"pub:beta": "npm run build && npm version prerelease --preid=beta &&
|
|
8
|
+
"pub:beta": "npm run build && npm version prerelease --preid=beta && npm publish --tag beta",
|
|
9
|
+
"pub:hotfix": "npm run build && npm version prerelease --preid=hotfix && npm publish --tag hotfix",
|
|
9
10
|
"pub": "npm run build && npm version patch && npm publish",
|
|
10
11
|
"postinstall": "yk verify commit-init",
|
|
11
12
|
"test": "jest"
|