sensor.live-things-registry
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -11,5 +11,7 @@ const aws_iot = require('aws-iot-device-sdk') | ||
const thing_registry = new ThingRegistry() | ||
let thing_registry.setCertsPath('./certs') // you can change the default certificates folder | ||
thing_registry.setCertsPath('./certs') // you can change the default certificates folder | ||
if (!thing_registry.hasDeviceCertificate()) { | ||
thing_registry.generateDeviceCertificate() | ||
thing_registry.generateDeviceCertificate({ | ||
thing_name: '<YourDeviceUniqueName>' | ||
}) | ||
} | ||
@@ -25,2 +27,2 @@ let thing_name = thing_registry.getThingName() | ||
clientId: client_id | ||
}) | ||
}) |
{ | ||
"name": "sensor.live-things-registry", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -30,3 +30,3 @@ # sensor.live-things-registry-javascript | ||
``` | ||
```js | ||
const aws_iot = require('aws-iot-device-sdk'); | ||
@@ -41,5 +41,7 @@ const thing_registry = require('sensor.live-things-registry'); | ||
} | ||
let thing_registry.setCertsPath('./certs'); // you can change the default certificates folder | ||
thing_registry.setCertsPath('./certs'); // you can change the default certificates folder | ||
if (!thing_registry.hasDeviceCertificate()) { | ||
thing_registry.generateDeviceCertificate(); | ||
thing_registry.generateDeviceCertificate({ | ||
thing_name: '<YourDeviceUniqueName>' | ||
}); | ||
} | ||
@@ -46,0 +48,0 @@ let thing_name = thing_registry.getThingName(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49082
244
127
1