chronograph-npm 0.1.0 → 0.1.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.
package/dist/cg.d.ts CHANGED
@@ -2,7 +2,7 @@ export class CG {
2
2
  static init({ homey }?: {
3
3
  homey: any;
4
4
  }): Promise<CG>;
5
- static detroy(): void;
5
+ static destroy(): void;
6
6
  static getAllChronographs(): Promise<any>;
7
7
  static getChronographs(): Promise<any>;
8
8
  /**
package/dist/cg.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cg.d.ts","sourceRoot":"","sources":["../src/cg.js"],"names":[],"mappings":"AAAA;IAGI;;oBAwBC;IA+BD,sBAQC;IAgCD,0CAEC;IAED,uCAEC;IAKD;;;OAGG;IACH,gEAGC;IAxFD;;OAWC;IATG,WAA6B;IAC7B,iBAAoB;IAIpB,WAAyC;IAM7C,2BAaC;IAVW,SAAqC;IAyBjD,uDAOC;IAGD,eAAe;IACf,kBAeC;CAyBJ"}
1
+ {"version":3,"file":"cg.d.ts","sourceRoot":"","sources":["../src/cg.js"],"names":[],"mappings":"AAAA;IAGI;;oBAwBC;IA+BD,uBAQC;IAgCD,0CAEC;IAED,uCAEC;IAKD;;;OAGG;IACH,gEAGC;IAxFD;;OAWC;IATG,WAA6B;IAC7B,iBAAoB;IAIpB,WAAyC;IAM7C,2BAaC;IAVW,SAAqC;IAyBjD,uDAOC;IAGD,eAAe;IACf,kBAeC;CAyBJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chronograph-npm",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "The Chronograph App for Athom's Homey",
5
5
  "main": "src/cg.js",
6
6
  "types": "./dist/cg.d.ts",
package/src/cg.js CHANGED
@@ -8,7 +8,7 @@ class CG {
8
8
  homey.app.onUninit = async function (args) {
9
9
 
10
10
  try {
11
- if (CG) await CG.detroy();
11
+ if (CG) await CG.destroy();
12
12
  } catch (error) {
13
13
  console.log(error);
14
14
  }
@@ -56,7 +56,7 @@ class CG {
56
56
 
57
57
 
58
58
 
59
- static detroy() {
59
+ static destroy() {
60
60
  try {
61
61
  if (!CG.Current) return;
62
62
  if (CG.Current.api) {