Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

serverless-certificate-creator

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-certificate-creator - npm Package Compare versions

Comparing version 1.5.2-rc-next.105 to 1.5.2-rc-next.109

17

index.js

@@ -133,4 +133,11 @@ 'use strict';

listCertificates() {
return this.acm.listCertificates({}).promise();
listCertificates(NextToken) {
return this.acm.listCertificates({ NextToken }).promise()
.then(data => {
if (data.NextToken) {
return this.listCertificates(data.NextToken)
.then(moreData => [...moreData, ...data.CertificateSummaryList]);
}
return Promise.resolve(data.CertificateSummaryList)
})
}

@@ -198,3 +205,3 @@

let existingCerts = data.CertificateSummaryList.filter(cert => cert.DomainName === this.domain);
let existingCerts = data.filter(cert => cert.DomainName === this.domain);
if (existingCerts.length > 0) {

@@ -528,4 +535,4 @@ return existingCerts[0];

return this.listCertificates()
.then(({ CertificateSummaryList }) => {
let cert = CertificateSummaryList.filter(({ DomainName }) => DomainName == domainName)[0];
.then(certificates => {
let cert = certificates.filter(({ DomainName }) => DomainName == domainName)[0];
if (cert && cert[property]) {

@@ -532,0 +539,0 @@ return cert[property];

{
"name": "serverless-certificate-creator",
"version": "1.5.2-rc-next.105",
"version": "1.5.2-rc-next.109",
"description": "creates a certificate that can be used for custom domains for your api gateway",

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

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