Skip to content

Commit

Permalink
Rename config to nrchkbConfig for isolation purpose (#565)
Browse files Browse the repository at this point in the history
  • Loading branch information
GogoVega authored Oct 30, 2024
1 parent e14951b commit 14b775d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.7.2] - 2024-10-11

### Changed

- Rename `config` to `nrchkbConfig` for isolation purpose

## [1.7.1] - 2024-09-24

### Fixed
Expand Down
10 changes: 5 additions & 5 deletions build/nodes/nrchkb.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
dataType: 'json',
async: false,
success: function (data) {
config = data
nrchkbConfig = data
},
})

Expand Down Expand Up @@ -279,8 +279,8 @@
sortable: true
})

for (let i = 0; i < config.customCharacteristics.length; i++) {
const customCharacteristic = config.customCharacteristics[i]
for (let i = 0; i < nrchkbConfig.customCharacteristics.length; i++) {
const customCharacteristic = nrchkbConfig.customCharacteristics[i]
$('#node-input-customCharacteristics-container').editableList('addItem', customCharacteristic)
}
},
Expand Down Expand Up @@ -312,7 +312,7 @@
let accessoryCategories
let nrchkbVersion = '0.0.0'
let nrchkbExperimental = false
let config = []
let nrchkbConfig = {}

//HomeKit Service Types
$.getJSON('nrchkb/service/types', function (data) {
Expand Down Expand Up @@ -393,7 +393,7 @@
})
})

config.customCharacteristics = customCharacteristics
nrchkbConfig.customCharacteristics = customCharacteristics

$.ajax({
type: 'POST',
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-homekit-bridged",
"version": "1.7.1",
"version": "1.7.2",
"description": "Node-RED nodes to simulate Apple HomeKit devices.",
"main": "build/nodes/nrchkb.js",
"scripts": {
Expand Down

0 comments on commit 14b775d

Please sign in to comment.