@dpgradio/creative 8.1.0 → 8.1.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/package-lock.json +2 -2
- package/package.json +1 -1
- package/src/api/request.js +1 -1
- package/src/app/hybrid.js +13 -0
package/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpgradio/creative",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@dpgradio/creative",
|
|
9
|
-
"version": "8.1.
|
|
9
|
+
"version": "8.1.2",
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"jwt-decode": "^3.1.2",
|
package/package.json
CHANGED
package/src/api/request.js
CHANGED
package/src/app/hybrid.js
CHANGED
|
@@ -24,6 +24,19 @@ class Hybrid {
|
|
|
24
24
|
// Hook this on window so it can be required in multiple packs
|
|
25
25
|
window._hybridEventSubscriptions = window._hybridEventSubscriptions || {}
|
|
26
26
|
|
|
27
|
+
// Ensure these native events don't error out because nothing is listening
|
|
28
|
+
for (const event of [
|
|
29
|
+
'appLoad',
|
|
30
|
+
'audioStateChanged',
|
|
31
|
+
'authenticated',
|
|
32
|
+
'didAppear',
|
|
33
|
+
'didHide',
|
|
34
|
+
'didPrompt',
|
|
35
|
+
'didAlert',
|
|
36
|
+
]) {
|
|
37
|
+
this.ensureTriggerExists(event)
|
|
38
|
+
}
|
|
39
|
+
|
|
27
40
|
this._cachedRadioTokenOnLoad = undefined
|
|
28
41
|
this.on('appLoad', (context) => {
|
|
29
42
|
this._cachedRadioTokenOnLoad = context?.radioToken ?? null
|