@conecli/cone-render 0.8.25 → 0.8.26
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const ISV_GLOBAL_CACHE_KEY = '_isvGlobalStorage'
|
|
2
|
if (!key) {
|
|
1
3
|
console.error('setItem key cannot be empty or null')
|
|
2
4
|
return
|
|
3
5
|
}
|
|
4
6
|
console.log('setItem key:', key, value)
|
|
5
7
|
let globalCache = window[ISV_GLOBAL_CACHE_KEY]
|
|
6
8
|
if (!globalCache) {
|
|
7
9
|
globalCache = {}
|
|
8
10
|
window[ISV_GLOBAL_CACHE_KEY] = globalCache
|
|
9
11
|
}
|
|
10
12
|
globalCache[key] = value
|
|
11
13
|
if (!key) {
|
|
12
14
|
console.error('getItem key cannot be empty or null')
|
|
13
15
|
return
|
|
14
16
|
}
|
|
15
17
|
console.log('getItem key:', key)
|
|
16
18
|
let globalCache = window[ISV_GLOBAL_CACHE_KEY] || {}
|
|
17
19
|
const value: any = globalCache[key]
|
|
18
20
|
return value
|
|
19
21
|
if (!key) {
|
|
20
22
|
console.error('removeItem key cannot be empty or null')
|
|
21
23
|
return
|
|
22
24
|
}
|
|
23
25
|
console.log('removeItem key:', key)
|
|
24
26
|
let globalCache = window[ISV_GLOBAL_CACHE_KEY]
|
|
25
27
|
if (globalCache) {
|
|
26
28
|
delete globalCache[key]
|
|
27
29
|
}
|
package/dist/open/api/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import * as device from './device'
|
|
2
1
|
device,
|
|
3
2
|
environment,
|
|
4
3
|
jump,
|
|
5
4
|
storage,
|
|
6
5
|
util,
|
|
7
6
|
moduleUtil,
|
|
8
7
|
track,
|
|
9
8
|
trackPromise,
|
|
10
9
|
global,
|
|
11
10
|
http,
|
|
12
11
|
shopMember,
|
|
13
12
|
userToken,
|
|
14
13
|
TokenPlatform,
|
|
14
|
+
import * as device from './device'
|
|
15
15
|
device,
|
|
16
16
|
environment,
|
|
17
17
|
jump,
|
|
18
18
|
storage,
|
|
19
19
|
util,
|
|
20
20
|
moduleUtil,
|
|
21
21
|
track,
|
|
22
22
|
trackPromise,
|
|
23
23
|
global,
|
|
24
24
|
http,
|
|
25
25
|
shopMember,
|
|
26
26
|
userToken,
|
|
27
27
|
TokenPlatform,
|
|
28
28
|
isvStorage,
|