From ad97dc09a1abd1cddde55834a0b9f640fe56d44d Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Thu, 3 Feb 2022 20:32:20 +0000 Subject: [PATCH] Fixing merge conflict. --- packages/string-templates/src/index.js | 14 +------------- packages/string-templates/test/basic.spec.js | 3 --- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/packages/string-templates/src/index.js b/packages/string-templates/src/index.js index 713fae4bbb..5ffd1bf1cc 100644 --- a/packages/string-templates/src/index.js +++ b/packages/string-templates/src/index.js @@ -27,7 +27,7 @@ function testObject(object) { * @param {object|array} object The input structure which is to be recursed, it is important to note that * if the structure contains any cycles then this will fail. * @param {object} context The context that handlebars should fill data from. - * @param {object|null} opts optional - specify some options for processing. + * @param {object|undefined} opts optional - specify some options for processing. * @returns {Promise} The structure input, as fully updated as possible. */ module.exports.processObject = async (object, context, opts) => { @@ -58,11 +58,7 @@ module.exports.processObject = async (object, context, opts) => { * then nothing will occur. * @param {string} string The template string which is the filled from the context object. * @param {object} context An object of information which will be used to enrich the string. -<<<<<<< HEAD - * @param {object|null} opts optional - specify some options for processing. -======= * @param {object|undefined} opts optional - specify some options for processing. ->>>>>>> e12767fd8... Fix for #4308 - triple brace conversion was not working correctly, wrote this into the string templates instead - also fixing an issue with the RBAC for Rest. * @returns {Promise} The enriched string, all templates should have been replaced if they can be. */ module.exports.processString = async (string, context, opts) => { @@ -76,11 +72,7 @@ module.exports.processString = async (string, context, opts) => { * @param {object|array} object The input structure which is to be recursed, it is important to note that * if the structure contains any cycles then this will fail. * @param {object} context The context that handlebars should fill data from. -<<<<<<< HEAD - * @param {object|null} opts optional - specify some options for processing. -======= * @param {object|undefined} opts optional - specify some options for processing. ->>>>>>> e12767fd8... Fix for #4308 - triple brace conversion was not working correctly, wrote this into the string templates instead - also fixing an issue with the RBAC for Rest. * @returns {object|array} The structure input, as fully updated as possible. */ module.exports.processObjectSync = (object, context, opts) => { @@ -101,11 +93,7 @@ module.exports.processObjectSync = (object, context, opts) => { * then nothing will occur. This is a pure sync call and therefore does not have the full functionality of the async call. * @param {string} string The template string which is the filled from the context object. * @param {object} context An object of information which will be used to enrich the string. -<<<<<<< HEAD - * @param {object|null} opts optional - specify some options for processing. -======= * @param {object|undefined} opts optional - specify some options for processing. ->>>>>>> e12767fd8... Fix for #4308 - triple brace conversion was not working correctly, wrote this into the string templates instead - also fixing an issue with the RBAC for Rest. * @returns {string} The enriched string, all templates should have been replaced if they can be. */ module.exports.processStringSync = (string, context, opts) => { diff --git a/packages/string-templates/test/basic.spec.js b/packages/string-templates/test/basic.spec.js index 42f6f8feb5..c5aac2a628 100644 --- a/packages/string-templates/test/basic.spec.js +++ b/packages/string-templates/test/basic.spec.js @@ -4,12 +4,9 @@ const { isValid, makePropSafe, getManifest, -<<<<<<< HEAD encodeJSBinding, doesContainString, -======= disableEscaping, ->>>>>>> e12767fd8... Fix for #4308 - triple brace conversion was not working correctly, wrote this into the string templates instead - also fixing an issue with the RBAC for Rest. } = require("../src/index.cjs") describe("Test that the string processing works correctly", () => {