@enplug/sdk-player
Advanced tools
Comparing version 0.11.1 to 0.11.2-dev
{ | ||
"name": "@enplug/sdk-player", | ||
"version": "0.11.1", | ||
"version": "0.11.2-dev", | ||
"description": "Enplug Player SDK", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.ts", |
@@ -62,2 +62,3 @@ /** | ||
GetItems = 'get-items', | ||
GetDeviceInfo = 'get-deviceinfo' | ||
} | ||
@@ -64,0 +65,0 @@ |
@@ -47,2 +47,3 @@ /** | ||
const zoning: Promise<any>; | ||
const deviceInfo: Promise<any>; | ||
} | ||
@@ -49,0 +50,0 @@ namespace social { |
@@ -93,2 +93,3 @@ /** | ||
* - {@link deviceId|`enplug.settings.deviceId`} - returns deviceId | ||
* - {@link_deviceInfo|`enplug.settings.deviceInfo`} - returns deviceId, deviceName, displayHeight, displayWidth, venueId, venueName | ||
*/ | ||
@@ -157,3 +158,3 @@ export default class Settings { | ||
if (id) { | ||
console.log(`[Enplug SDK: ${this.version}] Settings: Returning setting deviveId: ${id}`); | ||
console.log(`[Enplug SDK: ${this.version}] Settings: Returning setting deviceId: ${id}`); | ||
return id as string; | ||
@@ -295,2 +296,18 @@ } else { | ||
} | ||
/** @returns Edu info*/ | ||
get deviceInfo(): Promise<any> { | ||
return this.bridge.send(Service.Settings, Action.GetDeviceInfo).then((payload: any) => { | ||
console.log(`[Enplug SDK: ${this.version}] Settings: Returning device Info: ${JSON.stringify(payload)}`) | ||
const id = this.getPayloadValue(payload); | ||
return { | ||
deviceId: id? id as string : null, | ||
deviceName: payload.deviceName, | ||
displayWidth: payload.displayWidth, | ||
displayHeight: payload.displayHeight, | ||
venueId: payload.venueId, | ||
venueName: payload.venueName | ||
} | ||
}) | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
220040
3201
0