New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@uhuru/awsiot-thing-creator

Package Overview
Dependencies
Maintainers
4
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uhuru/awsiot-thing-creator - npm Package Compare versions

Comparing version 1.0.1-beta.33 to 1.0.1-beta.34

17

dist/thing-creator.js

@@ -165,9 +165,22 @@ "use strict";

for (const principal of principalsList) {
const command = new client_iot_1.DetachThingPrincipalCommand({
const detachPolicyCmd = new client_iot_1.DetachPolicyCommand({
policyName: this.policyName,
target: principal
});
yield this.iotClient.send(detachPolicyCmd).catch((error) => {
throw new Error(`Failed to detach policy ${this.policyName} from ${principal}, reason: ${error.message}`);
});
const detachThingCmd = new client_iot_1.DetachThingPrincipalCommand({
principal: principal,
thingName: this.thingName
});
yield this.iotClient.send(command).catch((error) => {
yield this.iotClient.send(detachThingCmd).catch((error) => {
throw new Error(`Failed to detach AWS IoT thing. Please check your AWS IoT configuration, reason: ${error.message}`);
});
const deleteCertCommand = new client_iot_1.DeleteCertificateCommand({
certificateId: principal
});
yield this.iotClient.send(deleteCertCommand).catch((error) => {
throw new Error(`Failed to delete certificate ${principal}, reason: ${error.message}`);
});
}

@@ -174,0 +187,0 @@ });

2

package.json
{
"name": "@uhuru/awsiot-thing-creator",
"version": "1.0.1-beta.33",
"version": "1.0.1-beta.34",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc