Skip to content

Commit

Permalink
Update dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrstegeman committed Feb 28, 2020
1 parent d711f46 commit 415f52a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 5 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- name: Set env
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:11})
- name: Create Release
id: create_release
uses: actions/create-release@v1.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ env.RELEASE_VERSION }}
draft: false
prerelease: false
- name: Publish to npm
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions lib/protocol/pairing-protocol.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const HKDF = require('hkdf');
const TLV = require('../model/tlv');
const sodium = require('libsodium-wrappers');
const srp = require('fast-srp-hap');
const uuid = require('uuid/v4');
const {v4: uuidv4} = require('uuid');

const Steps = {
M1: 1,
Expand Down Expand Up @@ -300,7 +300,7 @@ class PairingProtocol {
this.srpClient.computeK()
).derive('Pair-Setup-Controller-Sign-Info', 32, (key) => {
const iOSDeviceX = key;
this.iOSDevicePairingID = Buffer.from(uuid());
this.iOSDevicePairingID = Buffer.from(uuidv4());
const iOSDeviceInfo = Buffer.concat([
iOSDeviceX,
this.iOSDevicePairingID,
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hap-controller",
"version": "0.3.0",
"version": "0.3.1",
"description": "Library to implement a HAP (HomeKit) controller",
"main": "lib/index.js",
"directories": {
Expand Down Expand Up @@ -31,10 +31,10 @@
"http-parser-js": "^0.5.2",
"libsodium-wrappers": "^0.7.6",
"@abandonware/noble": "^1.9.2-6",
"uuid": "^3.4.0"
"uuid": "^7.0.1"
},
"devDependencies": {
"babel-eslint": "^10.0.3",
"babel-eslint": "^10.1.0",
"eslint": "^6.8.0"
}
}

0 comments on commit 415f52a

Please sign in to comment.