From e6c468c155703266e991e97d85ca22f12184f1d0 Mon Sep 17 00:00:00 2001 From: Colby Fayock Date: Tue, 10 Oct 2023 10:29:19 -0400 Subject: [PATCH] removing secure as plugin option as not needed or used --- plugin/gatsby-node.js | 4 +--- plugin/gatsby-node.test.js | 3 --- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/plugin/gatsby-node.js b/plugin/gatsby-node.js index 39db687..1eb32dc 100644 --- a/plugin/gatsby-node.js +++ b/plugin/gatsby-node.js @@ -22,7 +22,6 @@ exports.pluginOptionsSchema = ({ Joi }) => { tags: Joi.boolean().default(false), prefix: Joi.string(), context: Joi.boolean(), - secure: Joi.boolean().default(true), cname: Joi.string(), secureDistribution: Joi.string(), privateCdn: Joi.boolean().default(false), @@ -145,7 +144,7 @@ const createCloudinaryNodes = async ( }; exports.sourceNodes = async (gatsbyUtils, pluginOptions) => { - const { cloudName, secure, cname, secureDistribution, privateCdn } = + const { cloudName, cname, secureDistribution, privateCdn } = pluginOptions; const cloudinary = newCloudinary(pluginOptions); const resourceOptions = getResourceOptions(pluginOptions); @@ -155,7 +154,6 @@ exports.sourceNodes = async (gatsbyUtils, pluginOptions) => { cloudinary, resourceOptions, cloudName, - secure, cname, secureDistribution, privateCdn, diff --git a/plugin/gatsby-node.test.js b/plugin/gatsby-node.test.js index 7c2884b..6a7fb57 100644 --- a/plugin/gatsby-node.test.js +++ b/plugin/gatsby-node.test.js @@ -29,7 +29,6 @@ describe('pluginOptionsSchema', () => { tags: 'world', prefix: 800, context: '', - secure: 'not a boolean', cname: 2, secureDistribution: 3, privateCdn: 'not a boolean', @@ -52,7 +51,6 @@ describe('pluginOptionsSchema', () => { `"tags" must be a boolean`, `"prefix" must be a string`, `"context" must be a boolean`, - `"secure" must be a boolean`, `"cname" must be a string`, `"secureDistribution" must be a string`, `"privateCdn" must be a boolean`, @@ -74,7 +72,6 @@ describe('pluginOptionsSchema', () => { maxResults: 10, resultsPerPage: 10, tags: false, - secure: true, privateCdn: false, }); });