Skip to content

Commit

Permalink
chore: Make requires consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
inwaar committed Feb 25, 2023
1 parent c5dd7a5 commit a808ebe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
15 changes: 8 additions & 7 deletions lib/client.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
'use strict';

const dgram = require('dgram');
const EncryptionService = require('./encryption-service').EncryptionService;
const PROPERTY = require('./property').PROPERTY;
const PROPERTY_VALUE = require('./property-value').PROPERTY_VALUE;
const CLIENT_OPTIONS = require('./client-options').CLIENT_OPTIONS;
const EventEmitter = require('events');
const PropertyTransformer = require('./property-transformer');
const diff = require('object-diff');
const clone = require('clone');

const { EncryptionService } = require('./encryption-service');
const { PROPERTY } = require('./property');
const { PROPERTY_VALUE } = require('./property-value');
const { CLIENT_OPTIONS } = require('./client-options');
const { PropertyTransformer } = require('./property-transformer');

/**
* Control GREE HVAC device by getting and setting its properties
*/
Expand Down Expand Up @@ -39,7 +40,7 @@ class Client extends EventEmitter {
this._cid = null;

/**
* @type {null}
* @type {dgram.Socket|null}
* @private
*/
this._socket = null;
Expand Down Expand Up @@ -79,7 +80,7 @@ class Client extends EventEmitter {
* @type {PropertyTransformer}
* @private
*/
this._transformer = new PropertyTransformer.Transformer();
this._transformer = new PropertyTransformer();

/**
* @type {EncryptionService}
Expand Down
2 changes: 1 addition & 1 deletion lib/property-transformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,5 @@ class PropertyTransformer {
}

module.exports = {
Transformer: PropertyTransformer,
PropertyTransformer,
};
2 changes: 1 addition & 1 deletion test/property-transformer-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const assert = require('assert');
const PropertyTransformer = require('../lib/property-transformer').Transformer;
const { PropertyTransformer } = require('../lib/property-transformer');

describe('PropertyTransformer', function () {
describe('#fromVendor()', function () {
Expand Down

0 comments on commit a808ebe

Please sign in to comment.