Skip to content

Commit

Permalink
Stream activation api updates to latest crt. (#32)
Browse files Browse the repository at this point in the history
* Updated to latest crt, updated discovery client to use http activate, updated version.
* Updated npm deps
  • Loading branch information
JonathanHenson authored Mar 31, 2020
1 parent c8575f5 commit 4e364be
Show file tree
Hide file tree
Showing 7 changed files with 1,547 additions and 2,387 deletions.
3 changes: 2 additions & 1 deletion lib/greengrass/discoveryclient.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
/* Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
Expand Down Expand Up @@ -70,6 +70,7 @@ export class DiscoveryClient {
stream.on('error', (error) => {
reject(new DiscoveryError(error.toString()));
});
stream.activate();
})
.catch((reason) => {
reject(new CrtError(reason))
Expand Down
13 changes: 4 additions & 9 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aws-iot-device-sdk-v2",
"version": "1.0.4",
"version": "1.0.5",
"description": "NodeJS API for the AWS IoT service",
"homepage": "https://github.com/aws/aws-iot-device-sdk-js-v2",
"repository": {
Expand All @@ -26,6 +26,6 @@
"typescript": "^3.7.3"
},
"dependencies": {
"aws-crt": "^1.0.6"
"aws-crt": "^1.1.1"
}
}
928 changes: 32 additions & 896 deletions samples/node/basic_discovery/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion samples/node/basic_discovery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"typescript": "^3.7.3"
},
"dependencies": {
"aws-iot-device-sdk-v2": "^1.0.3",
"aws-iot-device-sdk-v2": "../../../",
"yargs": "^14.0.0"
}
}
Loading

0 comments on commit 4e364be

Please sign in to comment.