homebridge-securitysystem 7.4.0 → 7.5.0-beta.2
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/.eslintrc.js +16 -16
- package/.github/FUNDING.yml +2 -2
- package/.github/ISSUE_TEMPLATE/bug_report.yml +46 -46
- package/.github/ISSUE_TEMPLATE/feature-request.yml +17 -17
- package/.github/ISSUE_TEMPLATE/questions-answers.yml +40 -40
- package/.github/dependabot.yml +19 -19
- package/.github/release.yml +36 -36
- package/.github/workflows/codeql.yml +76 -76
- package/.github/workflows/create-release.yml +80 -82
- package/.github/workflows/create-version.yml +52 -52
- package/.github/workflows/dependency-review.yml +24 -24
- package/.github/workflows/install-package.yml +29 -29
- package/.github/workflows/stale.yml +26 -26
- package/.vscode/settings.json +12 -12
- package/CODE_OF_CONDUCT.md +128 -128
- package/CONTRIBUTING.md +5 -5
- package/LICENSE +21 -21
- package/README.md +47 -47
- package/SECURITY.md +12 -12
- package/config.schema.json +859 -835
- package/package.json +52 -52
- package/sounds/README +22 -22
- package/src/index.js +2428 -2418
- package/src/utils/options.js +387 -368
|
@@ -1,82 +1,80 @@
|
|
|
1
|
-
name: Create release
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
types:
|
|
6
|
-
- closed
|
|
7
|
-
branches:
|
|
8
|
-
- main
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
run: |
|
|
82
|
-
npm publish --access public --provenance --tag "$(if [[ $NPM_VERSION == *-* ]]; then echo beta; else echo latest; fi)"
|
|
1
|
+
name: Create release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types:
|
|
6
|
+
- closed
|
|
7
|
+
branches:
|
|
8
|
+
- main
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: write
|
|
12
|
+
id-token: write
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
create-tag:
|
|
16
|
+
name: Create tag
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'new-release')
|
|
19
|
+
outputs:
|
|
20
|
+
tag-name: ${{ steps.prepare-tag.outputs.tag-name }}
|
|
21
|
+
steps:
|
|
22
|
+
- name: Parse tag
|
|
23
|
+
id: prepare-tag
|
|
24
|
+
run: |
|
|
25
|
+
branch_name="${{ github.event.pull_request.head.ref }}"
|
|
26
|
+
tag_name=$(echo $branch_name | sed 's/version\///')
|
|
27
|
+
echo "tag-name=$tag_name" >> $GITHUB_OUTPUT
|
|
28
|
+
|
|
29
|
+
- name: Checkout branch
|
|
30
|
+
uses: actions/checkout@v3
|
|
31
|
+
|
|
32
|
+
- name: Create tag
|
|
33
|
+
run: |
|
|
34
|
+
git tag "${{ steps.prepare-tag.outputs.tag-name }}"
|
|
35
|
+
|
|
36
|
+
- name: Push tag to origin
|
|
37
|
+
run: git push origin "${{ steps.prepare-tag.outputs.tag-name }}"
|
|
38
|
+
|
|
39
|
+
create-release:
|
|
40
|
+
name: Create release
|
|
41
|
+
needs: [create-tag]
|
|
42
|
+
runs-on: ubuntu-latest
|
|
43
|
+
if: needs.create-tag.outputs.tag-name != ''
|
|
44
|
+
permissions:
|
|
45
|
+
contents: write
|
|
46
|
+
steps:
|
|
47
|
+
- name: Create release
|
|
48
|
+
uses: ncipollo/release-action@v1
|
|
49
|
+
with:
|
|
50
|
+
tag: "${{ needs.create-tag.outputs.tag-name }}"
|
|
51
|
+
prerelease: ${{ contains(needs.create-tag.outputs.tag-name, '-') }}
|
|
52
|
+
generateReleaseNotes: true
|
|
53
|
+
allowUpdates: true
|
|
54
|
+
|
|
55
|
+
publish-package:
|
|
56
|
+
name: Publish package
|
|
57
|
+
runs-on: ubuntu-latest
|
|
58
|
+
needs: [create-tag, create-release]
|
|
59
|
+
|
|
60
|
+
steps:
|
|
61
|
+
- name: Checkout repository
|
|
62
|
+
uses: actions/checkout@v3
|
|
63
|
+
|
|
64
|
+
- name: Setup node
|
|
65
|
+
uses: actions/setup-node@v3
|
|
66
|
+
|
|
67
|
+
with:
|
|
68
|
+
registry-url: https://registry.npmjs.org/
|
|
69
|
+
|
|
70
|
+
- name: Get version
|
|
71
|
+
run: |
|
|
72
|
+
echo "NPM_VERSION=${{ needs.create-tag.outputs.tag-name }}" >> $GITHUB_ENV
|
|
73
|
+
|
|
74
|
+
- name: Publish package
|
|
75
|
+
|
|
76
|
+
env:
|
|
77
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
78
|
+
|
|
79
|
+
run: |
|
|
80
|
+
npm publish --access public --provenance --tag "$(if [[ $NPM_VERSION == *-* ]]; then echo beta; else echo latest; fi)"
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
name: Create version
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
workflow_dispatch:
|
|
5
|
-
inputs:
|
|
6
|
-
channel:
|
|
7
|
-
type: choice
|
|
8
|
-
default: stable
|
|
9
|
-
description: Pick channel
|
|
10
|
-
options:
|
|
11
|
-
- alpha
|
|
12
|
-
- beta
|
|
13
|
-
- stable
|
|
14
|
-
|
|
15
|
-
new-build-for-prerelease:
|
|
16
|
-
type: boolean
|
|
17
|
-
default: true
|
|
18
|
-
description: New build for prerelease
|
|
19
|
-
|
|
20
|
-
jobs:
|
|
21
|
-
update-version:
|
|
22
|
-
name: Update version name
|
|
23
|
-
runs-on: ubuntu-latest
|
|
24
|
-
permissions:
|
|
25
|
-
contents: write
|
|
26
|
-
pull-requests: write
|
|
27
|
-
|
|
28
|
-
steps:
|
|
29
|
-
- name: Checkout branch
|
|
30
|
-
uses: actions/checkout@v3
|
|
31
|
-
|
|
32
|
-
- name: Generate tag name
|
|
33
|
-
uses: MiguelRipoll23/generate-tag-name@
|
|
34
|
-
id: generate-tag-name
|
|
35
|
-
with:
|
|
36
|
-
channel: ${{ inputs.channel }}
|
|
37
|
-
|
|
38
|
-
- name: Update version name
|
|
39
|
-
uses: reedyuk/npm-version@1.2.1
|
|
40
|
-
with:
|
|
41
|
-
version: ${{ steps.generate-tag-name.outputs.tag-name }}
|
|
42
|
-
|
|
43
|
-
- name: Create pull request
|
|
44
|
-
uses: peter-evans/create-pull-request@v5
|
|
45
|
-
with:
|
|
46
|
-
branch: version/${{ steps.generate-tag-name.outputs.tag-name }}
|
|
47
|
-
commit-message: ${{ steps.generate-tag-name.outputs.tag-name }}
|
|
48
|
-
title: Bump version to ${{ steps.generate-tag-name.outputs.tag-name }}
|
|
49
|
-
body: Automated pull request triggered by a new version update.
|
|
50
|
-
labels: new-release,ignore-for-release
|
|
51
|
-
reviewers: MiguelRipoll23
|
|
52
|
-
draft: true
|
|
1
|
+
name: Create version
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
channel:
|
|
7
|
+
type: choice
|
|
8
|
+
default: stable
|
|
9
|
+
description: Pick channel
|
|
10
|
+
options:
|
|
11
|
+
- alpha
|
|
12
|
+
- beta
|
|
13
|
+
- stable
|
|
14
|
+
|
|
15
|
+
new-build-for-prerelease:
|
|
16
|
+
type: boolean
|
|
17
|
+
default: true
|
|
18
|
+
description: New build for prerelease
|
|
19
|
+
|
|
20
|
+
jobs:
|
|
21
|
+
update-version:
|
|
22
|
+
name: Update version name
|
|
23
|
+
runs-on: ubuntu-latest
|
|
24
|
+
permissions:
|
|
25
|
+
contents: write
|
|
26
|
+
pull-requests: write
|
|
27
|
+
|
|
28
|
+
steps:
|
|
29
|
+
- name: Checkout branch
|
|
30
|
+
uses: actions/checkout@v3
|
|
31
|
+
|
|
32
|
+
- name: Generate tag name
|
|
33
|
+
uses: MiguelRipoll23/generate-tag-name@v1.7.0
|
|
34
|
+
id: generate-tag-name
|
|
35
|
+
with:
|
|
36
|
+
channel: ${{ inputs.channel }}
|
|
37
|
+
|
|
38
|
+
- name: Update version name
|
|
39
|
+
uses: reedyuk/npm-version@1.2.1
|
|
40
|
+
with:
|
|
41
|
+
version: ${{ steps.generate-tag-name.outputs.tag-name }}
|
|
42
|
+
|
|
43
|
+
- name: Create pull request
|
|
44
|
+
uses: peter-evans/create-pull-request@v5
|
|
45
|
+
with:
|
|
46
|
+
branch: version/${{ steps.generate-tag-name.outputs.tag-name }}
|
|
47
|
+
commit-message: ${{ steps.generate-tag-name.outputs.tag-name }}
|
|
48
|
+
title: Bump version to ${{ steps.generate-tag-name.outputs.tag-name }}
|
|
49
|
+
body: Automated pull request triggered by a new version update.
|
|
50
|
+
labels: new-release,ignore-for-release
|
|
51
|
+
reviewers: MiguelRipoll23
|
|
52
|
+
draft: true
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
# Dependency Review Action
|
|
2
|
-
#
|
|
3
|
-
# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
|
|
4
|
-
#
|
|
5
|
-
# Source repository: https://github.com/actions/dependency-review-action
|
|
6
|
-
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
|
|
7
|
-
name: "Dependency Review"
|
|
8
|
-
on:
|
|
9
|
-
pull_request:
|
|
10
|
-
types: [opened, reopened, synchronize, ready_for_review]
|
|
11
|
-
paths-ignore:
|
|
12
|
-
- "**.md"
|
|
13
|
-
|
|
14
|
-
permissions:
|
|
15
|
-
contents: read
|
|
16
|
-
|
|
17
|
-
jobs:
|
|
18
|
-
dependency-review:
|
|
19
|
-
runs-on: ubuntu-latest
|
|
20
|
-
steps:
|
|
21
|
-
- name: "Checkout Repository"
|
|
22
|
-
uses: actions/checkout@v3
|
|
23
|
-
- name: "Dependency Review"
|
|
24
|
-
uses: actions/dependency-review-action@v3
|
|
1
|
+
# Dependency Review Action
|
|
2
|
+
#
|
|
3
|
+
# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
|
|
4
|
+
#
|
|
5
|
+
# Source repository: https://github.com/actions/dependency-review-action
|
|
6
|
+
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
|
|
7
|
+
name: "Dependency Review"
|
|
8
|
+
on:
|
|
9
|
+
pull_request:
|
|
10
|
+
types: [opened, reopened, synchronize, ready_for_review]
|
|
11
|
+
paths-ignore:
|
|
12
|
+
- "**.md"
|
|
13
|
+
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
dependency-review:
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
steps:
|
|
21
|
+
- name: "Checkout Repository"
|
|
22
|
+
uses: actions/checkout@v3
|
|
23
|
+
- name: "Dependency Review"
|
|
24
|
+
uses: actions/dependency-review-action@v3
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
name: Install package
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
paths-ignore:
|
|
6
|
-
- "**.md"
|
|
7
|
-
pull_request:
|
|
8
|
-
types: [opened, reopened, synchronize, ready_for_review]
|
|
9
|
-
paths-ignore:
|
|
10
|
-
- "**.md"
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
install-package:
|
|
14
|
-
name: Install package
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
|
|
17
|
-
steps:
|
|
18
|
-
- name: Checkout repository
|
|
19
|
-
uses: actions/checkout@v3
|
|
20
|
-
|
|
21
|
-
- name: Setup node
|
|
22
|
-
uses: actions/setup-node@v3
|
|
23
|
-
|
|
24
|
-
with:
|
|
25
|
-
cache: "npm"
|
|
26
|
-
registry-url: https://registry.npmjs.org/
|
|
27
|
-
|
|
28
|
-
- name: Install package
|
|
29
|
-
run: npm ci
|
|
1
|
+
name: Install package
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
paths-ignore:
|
|
6
|
+
- "**.md"
|
|
7
|
+
pull_request:
|
|
8
|
+
types: [opened, reopened, synchronize, ready_for_review]
|
|
9
|
+
paths-ignore:
|
|
10
|
+
- "**.md"
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
install-package:
|
|
14
|
+
name: Install package
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
|
|
17
|
+
steps:
|
|
18
|
+
- name: Checkout repository
|
|
19
|
+
uses: actions/checkout@v3
|
|
20
|
+
|
|
21
|
+
- name: Setup node
|
|
22
|
+
uses: actions/setup-node@v3
|
|
23
|
+
|
|
24
|
+
with:
|
|
25
|
+
cache: "npm"
|
|
26
|
+
registry-url: https://registry.npmjs.org/
|
|
27
|
+
|
|
28
|
+
- name: Install package
|
|
29
|
+
run: npm ci
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
|
|
2
|
-
#
|
|
3
|
-
# You can adjust the behavior by modifying this file.
|
|
4
|
-
# For more information, see:
|
|
5
|
-
# https://github.com/actions/stale
|
|
6
|
-
name: Mark stale issues and pull requests
|
|
7
|
-
|
|
8
|
-
on:
|
|
9
|
-
schedule:
|
|
10
|
-
- cron: '19 9 * * *'
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
stale:
|
|
14
|
-
runs-on: ubuntu-latest
|
|
15
|
-
permissions:
|
|
16
|
-
issues: write
|
|
17
|
-
pull-requests: write
|
|
18
|
-
|
|
19
|
-
steps:
|
|
20
|
-
- uses: actions/stale@v8
|
|
21
|
-
with:
|
|
22
|
-
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
23
|
-
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a few days if no further activity occurs. Thank you for your contributions.'
|
|
24
|
-
stale-pr-message: 'This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in a few days if no further activity occurs. Thank you for your contributions.'
|
|
25
|
-
stale-issue-label: 'stale'
|
|
26
|
-
stale-pr-label: 'stale'
|
|
1
|
+
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
|
|
2
|
+
#
|
|
3
|
+
# You can adjust the behavior by modifying this file.
|
|
4
|
+
# For more information, see:
|
|
5
|
+
# https://github.com/actions/stale
|
|
6
|
+
name: Mark stale issues and pull requests
|
|
7
|
+
|
|
8
|
+
on:
|
|
9
|
+
schedule:
|
|
10
|
+
- cron: '19 9 * * *'
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
stale:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
permissions:
|
|
16
|
+
issues: write
|
|
17
|
+
pull-requests: write
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/stale@v8
|
|
21
|
+
with:
|
|
22
|
+
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
23
|
+
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a few days if no further activity occurs. Thank you for your contributions.'
|
|
24
|
+
stale-pr-message: 'This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in a few days if no further activity occurs. Thank you for your contributions.'
|
|
25
|
+
stale-issue-label: 'stale'
|
|
26
|
+
stale-pr-label: 'stale'
|
package/.vscode/settings.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
{
|
|
2
|
-
"javascript.inlayHints.parameterNames.enabled": "all",
|
|
3
|
-
"editor.bracketPairColorization.enabled": true,
|
|
4
|
-
"editor.guides.bracketPairs": true,
|
|
5
|
-
"editor.formatOnSave": true,
|
|
6
|
-
"editor.formatOnPaste": true,
|
|
7
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
8
|
-
"[javascript]": {
|
|
9
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
10
|
-
},
|
|
11
|
-
"cSpell.words": ["securitysystem"]
|
|
12
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"javascript.inlayHints.parameterNames.enabled": "all",
|
|
3
|
+
"editor.bracketPairColorization.enabled": true,
|
|
4
|
+
"editor.guides.bracketPairs": true,
|
|
5
|
+
"editor.formatOnSave": true,
|
|
6
|
+
"editor.formatOnPaste": true,
|
|
7
|
+
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
8
|
+
"[javascript]": {
|
|
9
|
+
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
10
|
+
},
|
|
11
|
+
"cSpell.words": ["securitysystem"]
|
|
12
|
+
}
|