@caseywebb/growhaus
Advanced tools
Comparing version 0.0.0-19b115bef56b9b0dce836873993b007579782e77.20190726T024318Z.19b115b to 0.0.0-1bb0af319efc10b854f43de5642159fbf4e0cddc.20190731T075923Z.1bb0af3
@@ -0,5 +1,7 @@ | ||
export * from './subscribable'; | ||
export var WebApiEvents; | ||
(function (WebApiEvents) { | ||
WebApiEvents["AgentData"] = "agents"; | ||
WebApiEvents["WeatherData"] = "weather"; | ||
})(WebApiEvents || (WebApiEvents = {})); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./subscribable"), exports); | ||
var WebApiEvents; | ||
(function (WebApiEvents) { | ||
WebApiEvents["AgentData"] = "agents"; | ||
WebApiEvents["WeatherData"] = "weather"; | ||
})(WebApiEvents = exports.WebApiEvents || (exports.WebApiEvents = {})); | ||
//# sourceMappingURL=index.js.map |
@@ -1,13 +0,4 @@ | ||
export interface DarkSkyResponse { | ||
currently: { | ||
uvIndex: number; | ||
}; | ||
hourly: { | ||
data: { | ||
time: number; | ||
uvIndex: number; | ||
}[]; | ||
}; | ||
} | ||
export * from './subscribable'; | ||
export declare enum WebApiEvents { | ||
AgentData = "agents", | ||
WeatherData = "weather" | ||
@@ -19,2 +10,13 @@ } | ||
} | ||
export interface AgentDataMessage extends WebApiMessage { | ||
event: WebApiEvents.AgentData; | ||
data: { | ||
agents: { | ||
[k: string]: AgentData; | ||
}; | ||
}; | ||
} | ||
export interface AgentData { | ||
brightness: number; | ||
} | ||
export interface WeatherDataMessage extends WebApiMessage { | ||
@@ -21,0 +23,0 @@ event: WebApiEvents.WeatherData; |
{ | ||
"name": "@caseywebb/growhaus", | ||
"version": "0.0.0-19b115bef56b9b0dce836873993b007579782e77.20190726T024318Z.19b115b", | ||
"version": "0.0.0-1bb0af319efc10b854f43de5642159fbf4e0cddc.20190731T075923Z.1bb0af3", | ||
"author": "Casey Webb (https://caseyWebb.xyz)", | ||
@@ -19,4 +19,6 @@ "main": "dist/node/index.js", | ||
"dependencies": { | ||
"autobind-decorator": "^2.4.0", | ||
"nonenumerable": "^1.1.1", | ||
"tslib": "^1.10.0" | ||
} | ||
} |
@@ -1,14 +0,5 @@ | ||
export interface DarkSkyResponse { | ||
currently: { | ||
uvIndex: number | ||
} | ||
hourly: { | ||
data: { | ||
time: number | ||
uvIndex: number | ||
}[] | ||
} | ||
} | ||
export * from './subscribable' | ||
export enum WebApiEvents { | ||
AgentData = 'agents', | ||
WeatherData = 'weather' | ||
@@ -22,2 +13,13 @@ } | ||
export interface AgentDataMessage extends WebApiMessage { | ||
event: WebApiEvents.AgentData | ||
data: { | ||
agents: { [k: string]: AgentData } | ||
} | ||
} | ||
export interface AgentData { | ||
brightness: number | ||
} | ||
export interface WeatherDataMessage extends WebApiMessage { | ||
@@ -24,0 +26,0 @@ event: WebApiEvents.WeatherData |
@@ -11,4 +11,5 @@ { | ||
"moduleResolution": "node", | ||
"esModuleInterop": true | ||
"esModuleInterop": true, | ||
"experimentalDecorators": true | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8985
16
188
3
+ Addedautobind-decorator@^2.4.0
+ Addednonenumerable@^1.1.1
+ Addedautobind-decorator@2.4.0(transitive)
+ Addednonenumerable@1.1.1(transitive)