Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fitbit-sdk-types

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fitbit-sdk-types - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

11

package.json
{
"name": "fitbit-sdk-types",
"version": "2.0.1",
"version": "2.0.2",
"description": "Types for Fitbit SDK.",

@@ -14,9 +14,9 @@ "types": "types",

"check-code": "npm run dtslint && npm run prettier -- -l",
"fix-code": "tslint types --fix && npm run prettier -- --write"
"fix-code": "tslint --project types --fix && npm run prettier -- --write"
},
"devDependencies": {
"dtslint": "^0.3.0",
"prettier": "^1.14.3",
"prettier": "^1.15.3",
"tslint": "^5.11.0",
"typescript": "^3.1.1"
"typescript": "^3.2.1"
},

@@ -32,4 +32,5 @@ "author": "Sergio Morchón Poveda",

"fitbit",
"sdk"
"sdk",
"fitbitdev"
]
}

@@ -17,6 +17,6 @@ declare module 'companion' {

extends EventTarget<{
unload: Event;
significantlocationchange: SignificantLocationChangeEvent;
wakeinterval: Event;
}> {
unload: Event;
significantlocationchange: SignificantLocationChangeEvent;
wakeinterval: Event;
}> {
readonly applicationId: string;

@@ -23,0 +23,0 @@ readonly buildId: string;

@@ -5,4 +5,4 @@ declare module 'peer' {

extends EventTarget<{
readystatechange: Event;
}> {
readystatechange: Event;
}> {
onreadystatechange: (event: Event) => void;

@@ -9,0 +9,0 @@ readonly readyState: ReadyState;

declare module 'appbit' {
interface Appbit
extends EventTarget<{
unload: Event;
}> {
unload: Event;
}> {
appTimeoutEnabled: boolean;

@@ -7,0 +7,0 @@ readonly applicationId: string;

@@ -8,4 +8,4 @@ declare module 'clock' {

extends EventTarget<{
tick: TickEvent;
}> {
tick: TickEvent;
}> {
granularity: Granularity;

@@ -12,0 +12,0 @@ ontick: (event: TickEvent) => void;

declare module 'display' {
interface Display
extends EventTarget<{
change: Event;
}> {
change: Event;
}> {
autoOff: boolean;

@@ -7,0 +7,0 @@ brightnessOverride: number | undefined;

@@ -20,3 +20,2 @@ type ElementState =

gradientArc: GradientArcElement;
[tagName: string]: Element;
}

@@ -26,5 +25,6 @@ interface ElementSearch {

getElementsByClassName(className: string): Element[];
getElementsByTagName<TagName extends keyof ElementSearchMap>(
tagName: TagName,
): Array<ElementSearchMap[TagName]>;
getElementsByTagName(
tagName: keyof ElementSearchMap,
): Array<ElementSearchMap[typeof tagName]>;
getElementsByTagName(tagName: string): Element[];
}

@@ -31,0 +31,0 @@ interface Element extends ElementSearch, GlobalEvents {

@@ -31,30 +31,30 @@ interface ListScrollEvent extends Event {

extends EventTarget<{
activate: Event;
animationend: AnimationEvent;
animationiteration: AnimationEvent;
animationstart: AnimationEvent;
click: MouseEvent;
collapse: Event;
disable: Event;
enable: Event;
expand: Event;
highlight: Event;
keydown: KeyboardEvent;
keypress: KeyboardEvent;
keyup: KeyboardEvent;
listbackward: ListScrollEvent;
listforward: ListScrollEvent;
load: LoadEvent;
mousedown: MouseEvent;
mousemove: MouseEvent;
mouseout: MouseEvent;
mouseover: MouseEvent;
mouseup: MouseEvent;
pagescroll: PageScrollEvent;
reload: LoadEvent;
select: Event;
unhighlight: Event;
unload: Event;
unselect: Event;
}> {
activate: Event;
animationend: AnimationEvent;
animationiteration: AnimationEvent;
animationstart: AnimationEvent;
click: MouseEvent;
collapse: Event;
disable: Event;
enable: Event;
expand: Event;
highlight: Event;
keydown: KeyboardEvent;
keypress: KeyboardEvent;
keyup: KeyboardEvent;
listbackward: ListScrollEvent;
listforward: ListScrollEvent;
load: LoadEvent;
mousedown: MouseEvent;
mousemove: MouseEvent;
mouseout: MouseEvent;
mouseover: MouseEvent;
mouseup: MouseEvent;
pagescroll: PageScrollEvent;
reload: LoadEvent;
select: Event;
unhighlight: Event;
unload: Event;
unselect: Event;
}> {
onactivate: (event: Event) => void;

@@ -61,0 +61,0 @@ onanimationend: (event: AnimationEvent) => void;

declare module 'power' {
interface Battery
extends EventTarget<{
change: Event;
}> {
change: Event;
}> {
readonly chargeLevel: number;

@@ -14,4 +14,4 @@ readonly charging: boolean;

extends EventTarget<{
change: Event;
}> {
change: Event;
}> {
readonly connected: boolean;

@@ -18,0 +18,0 @@ onchange: (event: Event) => void;

@@ -5,8 +5,8 @@ type BatchedReading<Reading> = { [P in keyof Reading]: Array<Reading[P]> };

extends EventTarget<
EventMap & {
activate: Event;
error: SensorErrorEvent;
reading: Event;
}
> {
EventMap & {
activate: Event;
error: SensorErrorEvent;
reading: Event;
}
> {
onactivate: (event: Event) => void;

@@ -13,0 +13,0 @@ onerror: (event: SensorErrorEvent) => void;

declare module 'system' {
interface MemoryPressureMonitor
extends EventTarget<{
memorypressurechange: Event;
}> {
memorypressurechange: Event;
}> {
onmemorypressurechange: (event: Event) => void;

@@ -7,0 +7,0 @@ readonly pressure: 'normal' | 'high' | 'critical';

interface EventTarget<EventMap = {}> {
// tslint:disable-next-line no-unnecessary-generics
addEventListener<EventName extends keyof EventMap>(
type: EventName,
eventListener: (event: EventMap[EventName]) => void,
eventName: EventName,
eventListener: (eventName: EventMap[EventName]) => void,
): void;
// tslint:disable-next-line no-unnecessary-generics
removeEventListener<EventName extends keyof EventMap>(

@@ -7,0 +9,0 @@ eventName: EventName,

@@ -11,4 +11,4 @@ declare module 'file-transfer' {

extends EventTarget<{
change: Event;
}> {
change: Event;
}> {
readonly name: string;

@@ -33,4 +33,4 @@ onchange: (event: Event) => void;

extends EventTarget<{
newfile: Event;
}> {
newfile: Event;
}> {
onnewfile: (event: Event) => void;

@@ -37,0 +37,0 @@ nextFile(): string | undefined;

@@ -21,8 +21,8 @@ declare module 'messaging' {

extends EventTarget<{
bufferedamountdecrease: Event;
close: CloseEvent;
error: ErrorEvent;
message: MessageEvent;
open: Event;
}> {}
bufferedamountdecrease: Event;
close: CloseEvent;
error: ErrorEvent;
message: MessageEvent;
open: Event;
}> {}
class MessageSocket {

@@ -29,0 +29,0 @@ readonly CLOSED: 'CLOSED';

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