New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@enplug/sdk-player

Package Overview
Dependencies
Maintainers
5
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@enplug/sdk-player - npm Package Compare versions

Comparing version 0.6.2 to 0.7.1-beta2

src/social.ts

2

package.json
{
"name": "@enplug/sdk-player",
"version": "0.6.2",
"version": "0.7.1-beta2",
"description": "Enplug Player SDK",

@@ -5,0 +5,0 @@ "main": "./src/index.ts",

@@ -51,2 +51,6 @@ /**

}
getTrigger(): Promise<Trigger> {
return this.bridge.send(Service.AppStatus, Action.GetTrigger);
}
}

@@ -14,3 +14,3 @@ /**

/*tslint:disable:no-string-literal*/
window['epBridge'] = {
window['epBridge'] = window['_epBridge'] = {
receive: this.receive.bind(this),

@@ -17,0 +17,0 @@ };

@@ -12,2 +12,3 @@ /**

Notifications = 'notification',
Social = 'social',
}

@@ -20,2 +21,3 @@

Finished = 'finished',
GetTrigger = 'get-trigger',
Hide = 'hide',

@@ -47,2 +49,4 @@ Reload = 'reload',

Destroy = 'destroy',
// Social
GetItems = 'get-items',
}

@@ -49,0 +53,0 @@

@@ -32,2 +32,5 @@ /**

}
namespace social {
const getItems: () => Promise<any[]>;
}
const on: (eventName: string, eventHandler: (...args) => any) => void;

@@ -34,0 +37,0 @@ const off: (eventName: string) => void;

@@ -17,2 +17,3 @@ /**

import Settings from './settings';
import Social from './social';
import WebBridge from './bridge/web-bridge';

@@ -43,2 +44,3 @@

const playRecorder = new PlayRecorder(bridge);
const social = new Social(bridge);

@@ -54,2 +56,3 @@ return {

settings,
social,
};

@@ -56,0 +59,0 @@ }

@@ -5,2 +5,25 @@ // For importing json files.

export default value;
}
declare type TriggerReason = 'schedule' | 'event';
declare interface SocialItem {
Id: string,
SocialNetwork: string,
SocialItemId: string,
FeedId: string,
CreatedTime: number,
LastSavedTime: number,
ProfanityCount: number,
ProfaneWords: Array<string>,
IsApproved: boolean,
IsAllowed: boolean,
SecondaryText: string,
ImageLocalPath: string,
UserImageLocalPath: string
}
declare interface Trigger {
reason: TriggerReason,
data: SocialItem,
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc