senza-sdk 4.3.1-ca3d96f.0 → 4.3.1

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,57 @@
1
+ /*
2
+ @license
3
+ Copyright 2006 The Closure Library Authors
4
+ SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ /*
8
+ @license
9
+ Copyright 2008 The Closure Library Authors
10
+ SPDX-License-Identifier: Apache-2.0
11
+ */
12
+
13
+ /*
14
+ @license
15
+ EME Encryption Scheme Polyfill
16
+ Copyright 2019 Google LLC
17
+ SPDX-License-Identifier: Apache-2.0
18
+ */
19
+
20
+ /*
21
+ @license
22
+ MSS Transmuxer
23
+ Copyright 2015 Dash Industry Forum
24
+ SPDX-License-Identifier: BSD-3-Clause
25
+ */
26
+
27
+ /*
28
+ @license
29
+ Shaka Player
30
+ Copyright 2016 Google LLC
31
+ SPDX-License-Identifier: Apache-2.0
32
+ */
33
+
34
+ /*
35
+ @license
36
+ Shaka Player
37
+ Copyright 2022 Google LLC
38
+ SPDX-License-Identifier: Apache-2.0
39
+ */
40
+
41
+ /*
42
+ @license
43
+ Shaka Player
44
+ Copyright 2023 Google LLC
45
+ SPDX-License-Identifier: Apache-2.0
46
+ */
47
+
48
+ /*
49
+ @license
50
+ tXml
51
+ Copyright 2015 Tobias Nickel
52
+ SPDX-License-Identifier: MIT
53
+ */
54
+
55
+ //! moment.js
56
+
57
+ //! moment.js locale configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "senza-sdk",
3
- "version": "4.3.1-ca3d96f.0",
3
+ "version": "4.3.1",
4
4
  "main": "./src/api.js",
5
5
  "description": "API for Senza application",
6
6
  "license": "MIT",
@@ -52,8 +52,8 @@
52
52
  "src/interface": {
53
53
  "branches": 68.42,
54
54
  "functions": 40.74,
55
- "lines": 66.83,
56
- "statements": 67.14
55
+ "lines": 65.96,
56
+ "statements": 66.32
57
57
  }
58
58
  }
59
59
  },
@@ -21,7 +21,7 @@ import { noop } from "./utils";
21
21
  * AlarmManager is a singleton class that manages the alarms in the application. It fires events whose types are the names of the alarms.
22
22
  * @fires MyAlarm
23
23
  */
24
- export class AlarmManager extends EventTarget {
24
+ class AlarmManager extends EventTarget {
25
25
 
26
26
  addEventListener(type, callback) {
27
27
  noop("AlarmManager.addEventListener", type, callback);
@@ -73,4 +73,4 @@ export class AlarmManager extends EventTarget {
73
73
  *
74
74
  * @return {AlarmManager} pointer to the AlarmManager singleton
75
75
  */
76
- "needed for the module doc comment to be recognized";
76
+ export { AlarmManager };
@@ -1,20 +1,21 @@
1
1
  import { sdkLogger, noop } from "./utils.js";
2
-
3
- const wifiInfo = {
4
- level: 0,
5
- quality: 0,
6
- ssid: "unknown",
7
- bssid: "unknown"
8
- };
9
2
  /**
10
- * @deprecated Instead, call deviceManager.getWifiInfo() periodically
11
3
  * @event DeviceManager#wifiInfoUpdated
4
+ * @deprecated Instead, call deviceManager.getWifiInfo() periodically
12
5
  * @example
13
6
  * deviceManager.addEventListener("wifiInfoUpdated", () => {
14
7
  * console.info("Wifi info has been updated to", deviceManager.wifiInfo);
15
8
  * });
16
9
  *
17
10
  */
11
+
12
+ const wifiInfo = {
13
+ level: 0,
14
+ quality: 0,
15
+ ssid: "unknown",
16
+ bssid: "unknown"
17
+ };
18
+
18
19
  /**
19
20
  * DeviceManager is a singleton class that manages the device
20
21
  */
@@ -41,7 +41,7 @@ import {
41
41
  * @fires userinactivity
42
42
  * @fires userdisconnected
43
43
  */
44
- export class Lifecycle extends EventTarget {
44
+ class Lifecycle extends EventTarget {
45
45
 
46
46
  /**
47
47
  * @typedef {Object} ConnectReason - The reason the ui app has been loaded
@@ -280,4 +280,5 @@ export class Lifecycle extends EventTarget {
280
280
  *
281
281
  * @return {Lifecycle} pointer to the Lifecycle singleton
282
282
  */
283
- "needed for the module doc comment to be recognized";
283
+ export { Lifecycle };
284
+
@@ -29,7 +29,7 @@ import { noop } from "./utils";
29
29
  * @class MessageManager
30
30
  * @fires MessageManager#message
31
31
  */
32
- export class MessageManager extends EventTarget {
32
+ class MessageManager extends EventTarget {
33
33
 
34
34
  /** Register to specific group(s). This function replaces the previously registered groups
35
35
  * @param {Array<String>} groups group events to receive messages.
@@ -50,4 +50,5 @@ export class MessageManager extends EventTarget {
50
50
  *
51
51
  * @return {MessageManager} pointer to the MessageManager singleton
52
52
  */
53
- "needed for the module doc comment to be recognized";
53
+ export { MessageManager };
54
+
@@ -2,7 +2,7 @@ import { noop } from "./utils";
2
2
  /**
3
3
  * PlatformManager is a singleton class that manages the platform
4
4
  */
5
- export class PlatformManager extends EventTarget {
5
+ class PlatformManager extends EventTarget {
6
6
 
7
7
  /**
8
8
  * @returns {Object} appConfig object
@@ -38,4 +38,5 @@ export class PlatformManager extends EventTarget {
38
38
  *
39
39
  * @return {PlatformManager} pointer to the PlatformManager singleton
40
40
  */
41
- "needed for the module doc comment to be recognized";
41
+ export { PlatformManager };
42
+
@@ -199,7 +199,7 @@ export class RemotePlayerError extends Error {
199
199
  * @fires canplay
200
200
  * @fires license-request
201
201
  */
202
- export class RemotePlayer extends EventTarget {
202
+ class RemotePlayer extends EventTarget {
203
203
 
204
204
  /**
205
205
  * @typedef {Object} LoadMode
@@ -323,7 +323,7 @@ export class RemotePlayer extends EventTarget {
323
323
  *
324
324
  * */
325
325
  getLoadMode() {
326
- return RemotePlayer.LoadMode.NOT_LOADED;
326
+ return this.LoadMode.NOT_LOADED;
327
327
  }
328
328
 
329
329
  /**
@@ -453,7 +453,6 @@ export class RemotePlayer extends EventTarget {
453
453
 
454
454
  /**
455
455
  * @module
456
- * @private
457
456
  * @type {RemotePlayer}
458
457
  * @example
459
458
  * import { init, remotePlayer } from "senza-sdk";
@@ -467,4 +466,4 @@ export class RemotePlayer extends EventTarget {
467
466
  *
468
467
  * @returns {RemotePlayer} pointer to the RemotePlayer singleton
469
468
  */
470
- "needed for the module doc comment to be recognized";
469
+ export { RemotePlayer };