Skip to content

Commit

Permalink
Support for 21.0.0-354
Browse files Browse the repository at this point in the history
### UPDATED
- `.editorconfig` to support TypeScript

### ADDED
- Support for web portal version `21.0.0-354`.

### REMOVED
- Support for web portal version `20.0.0-344`.
  • Loading branch information
mrjackyliang committed Aug 18, 2021
1 parent a790056 commit 3b378ea
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
21 changes: 14 additions & 7 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,20 @@ insert_final_newline = true
max_line_length = 200
trim_trailing_whitespace = true

[{*.cjs, *.js}]
[{*.ats,*.ts}]
indent_size = 2
tab_width = 2
ij_continuation_indent_size = 2
ij_typescript_force_quote_style = true
ij_typescript_keep_simple_methods_in_one_line = true
ij_typescript_method_call_chain_wrap = normal
ij_typescript_object_literal_wrap = split_into_lines
ij_typescript_spaces_within_imports = true
ij_typescript_spaces_within_object_literal_braces = true
ij_typescript_use_double_quotes = false
ij_typescript_var_declaration_wrap = split_into_lines

[{*.cjs,*.js}]
indent_size = 2
tab_width = 2
ij_continuation_indent_size = 2
Expand All @@ -22,12 +35,6 @@ ij_javascript_spaces_within_object_literal_braces = true
ij_javascript_use_double_quotes = false
ij_javascript_var_declaration_wrap = split_into_lines

[{*.ats, *.ts}]
indent_size = 2
tab_width = 2
ij_continuation_indent_size = 2
ij_typescript_spaces_within_imports = true

[{*.htm, *.html, *.ng, *.sht, *.shtm, *.shtml}]
ij_html_attribute_wrap = off
ij_html_space_inside_empty_tag = true
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
"sourceType": "script"
},
"rules": {
"no-console": [
"max-len": [
"off"
],
"max-len": [
"no-console": [
"off"
]
},
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ ADTPulsePlatform.prototype.portalSync = function portalSync() {
.login()
.then((response) => {
const version = _.get(response, 'info.version');
const supportedVersion = ['21.0.0-344', '21.0.0-353'];
const supportedVersion = ['21.0.0-353', '21.0.0-354'];

if (version !== undefined && !supportedVersion.includes(version) && version !== this.sessionVersion) {
this.logMessage(`Web Portal version ${version} detected. Test plugin to ensure system compatibility...`, 20);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "homebridge-adt-pulse",
"displayName": "Homebridge ADT Pulse",
"version": "2.0.3",
"version": "2.0.4",
"description": "Homebridge security system platform for ADT Pulse",
"main": "index.js",
"private": false,
Expand Down

0 comments on commit 3b378ea

Please sign in to comment.