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.29 to 1.0.1-beta.30

27

dist/thing-creator.d.ts

@@ -11,4 +11,15 @@ interface ConfigObject {

}
export declare class AWSIoTThingCreator {
private readonly installToken;
export interface AwsIotThingCreatorOptions {
awsAccessKeyId?: string;
awsIotRegion?: string;
awsSecretAccessKey?: string;
configSavePath?: string;
thingAttributePayload?: string | Record<string, string>;
thingName?: string;
thingTypeName?: string;
installKey?: string;
enebularBaseUrl?: string;
}
export declare class AWSIotThingCreator {
private readonly installKey;
private awsAccessKeyId;

@@ -26,13 +37,3 @@ private awsIotRegion;

private _iotClient;
constructor({ awsAccessKeyId, awsIotRegion, awsSecretAccessKey, configSavePath, thingAttributePayload, thingName, thingTypeName, installToken, enebularBaseUrl }: {
awsAccessKeyId?: string;
awsIotRegion?: string;
awsSecretAccessKey?: string;
configSavePath?: string;
thingAttributePayload?: string | Record<string, string>;
thingName?: string;
thingTypeName?: string;
installToken?: string;
enebularBaseUrl?: string;
});
constructor({ awsAccessKeyId, awsIotRegion, awsSecretAccessKey, configSavePath, thingAttributePayload, thingName, thingTypeName, installKey, enebularBaseUrl }: AwsIotThingCreatorOptions);
private get envPaths();

@@ -39,0 +40,0 @@ private get iotClient();

@@ -15,3 +15,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.AWSIoTThingCreator = void 0;
exports.AWSIotThingCreator = void 0;
const path_1 = __importDefault(require("path"));

@@ -21,5 +21,5 @@ const client_iot_1 = require("@aws-sdk/client-iot");

const fs_extra_1 = __importDefault(require("fs-extra"));
class AWSIoTThingCreator {
constructor({ awsAccessKeyId, awsIotRegion, awsSecretAccessKey, configSavePath, thingAttributePayload, thingName, thingTypeName, installToken, enebularBaseUrl }) {
if (!installToken &&
class AWSIotThingCreator {
constructor({ awsAccessKeyId, awsIotRegion, awsSecretAccessKey, configSavePath, thingAttributePayload, thingName, thingTypeName, installKey, enebularBaseUrl }) {
if (!installKey &&
!awsIotRegion &&

@@ -31,3 +31,3 @@ !awsSecretAccessKey &&

}
this.installToken = installToken;
this.installKey = installKey;
this.awsAccessKeyId = awsAccessKeyId;

@@ -377,6 +377,6 @@ this.awsIotRegion = awsIotRegion;

return __awaiter(this, void 0, void 0, function* () {
if (!this.installToken) {
throw new Error('installToken must be specified');
if (!this.installKey) {
throw new Error('installKey must be specified');
}
const getAgentThingUrl = this.enebularApiUrl + `/get-thing-install-info/${this.installToken}`;
const getAgentThingUrl = this.enebularApiUrl + `/get-thing-install-info/${this.installKey}`;
const { thingName, clientPem, privateKey, config, rootPem, enebularConfig } = yield axios_1.default

@@ -419,3 +419,3 @@ .get(getAgentThingUrl)

}
exports.AWSIoTThingCreator = AWSIoTThingCreator;
exports.AWSIotThingCreator = AWSIotThingCreator;
//# sourceMappingURL=thing-creator.js.map
{
"name": "@uhuru/awsiot-thing-creator",
"version": "1.0.1-beta.29",
"version": "1.0.1-beta.30",
"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