@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 CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@dpgradio/creative",
3
- "version": "8.1.0",
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.0",
9
+ "version": "8.1.2",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
12
  "jwt-decode": "^3.1.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpgradio/creative",
3
- "version": "8.1.0",
3
+ "version": "8.1.2",
4
4
  "description": "Support package for standalone Javascript applications",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -103,7 +103,7 @@ export default class Request {
103
103
  }
104
104
 
105
105
  // reset authentication retries
106
- this.authenticationRetries = 0
106
+ authenticationRetries = 0
107
107
 
108
108
  try {
109
109
  return await response.json()
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