Skip to content

Commit

Permalink
removing secure as plugin option as not needed or used
Browse files Browse the repository at this point in the history
  • Loading branch information
colbyfayock committed Oct 10, 2023
1 parent 40f8896 commit e6c468c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions plugin/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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);
Expand All @@ -155,7 +154,6 @@ exports.sourceNodes = async (gatsbyUtils, pluginOptions) => {
cloudinary,
resourceOptions,
cloudName,
secure,
cname,
secureDistribution,
privateCdn,
Expand Down
3 changes: 0 additions & 3 deletions plugin/gatsby-node.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ describe('pluginOptionsSchema', () => {
tags: 'world',
prefix: 800,
context: '',
secure: 'not a boolean',
cname: 2,
secureDistribution: 3,
privateCdn: 'not a boolean',
Expand All @@ -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`,
Expand All @@ -74,7 +72,6 @@ describe('pluginOptionsSchema', () => {
maxResults: 10,
resultsPerPage: 10,
tags: false,
secure: true,
privateCdn: false,
});
});
Expand Down

0 comments on commit e6c468c

Please sign in to comment.