diff --git a/src/core/Operation.mjs b/src/core/Operation.mjs index d9f0aa93..d9ef2a95 100755 --- a/src/core/Operation.mjs +++ b/src/core/Operation.mjs @@ -24,7 +24,7 @@ class Operation { this._disabled = false; this._flowControl = false; this._manualBake = false; - this._inputSwapable = false; + this._inputSwappable = false; this._ingList = []; // Public fields @@ -318,12 +318,12 @@ class Operation { } /** - * Returns true if this Operation has swapable input values. + * Returns true if this Operation has swappable input values. * * @returns {boolean} */ - get inputSwapable() { - return this._inputSwapable; + get inputSwappable() { + return this._inputSwappable; } @@ -332,8 +332,8 @@ class Operation { * * @param {boolean} value */ - set inputSwapable(value) { - this._inputSwapable = !!value; + set inputSwappable(value) { + this._inputSwappable = !!value; } } diff --git a/src/core/config/scripts/generateConfig.mjs b/src/core/config/scripts/generateConfig.mjs index ea695b51..528c06d4 100644 --- a/src/core/config/scripts/generateConfig.mjs +++ b/src/core/config/scripts/generateConfig.mjs @@ -41,7 +41,7 @@ for (const opObj in Ops) { inputType: op.inputType, outputType: op.presentType, flowControl: op.flowControl, - inputSwapable: op.inputSwapable, + inputSwappable: op.inputSwappable, manualBake: op.manualBake, args: op.args }; diff --git a/src/core/config/scripts/newOperation.mjs b/src/core/config/scripts/newOperation.mjs index e0c21667..938e1bc0 100644 --- a/src/core/config/scripts/newOperation.mjs +++ b/src/core/config/scripts/newOperation.mjs @@ -77,7 +77,7 @@ If your operation does not rely on a library, just leave this blank and it will required: true, message: `The output type should be one of: ${ioTypes.join(", ")}.` }, - inputSwapable: { + inputSwappable: { description: "Input swappable option shows an icon that can swap input values of two ingredients.", example: "true/false", prompt: "Show input swaping", @@ -158,7 +158,7 @@ class ${moduleName} extends Operation { this.infoURL = "${result.infoURL}"; this.inputType = "${result.inputType}"; this.outputType = "${result.outputType}"; - this.inputSwapable = "${result.inputSwapable}"; + this.inputSwappable = "${result.inputSwappable}"; this.args = [ /* Example arguments. See the project wiki for full details. { diff --git a/src/core/operations/ConvertArea.mjs b/src/core/operations/ConvertArea.mjs index 5eba73ec..1e6d5bc7 100644 --- a/src/core/operations/ConvertArea.mjs +++ b/src/core/operations/ConvertArea.mjs @@ -23,7 +23,7 @@ class ConvertArea extends Operation { this.infoURL = "https://wikipedia.org/wiki/Orders_of_magnitude_(area)"; this.inputType = "BigNumber"; this.outputType = "BigNumber"; - this.inputSwapable = true; + this.inputSwappable = true; this.args = [ { "name": "Input units", diff --git a/src/core/operations/ConvertDataUnits.mjs b/src/core/operations/ConvertDataUnits.mjs index 3253fe51..a5859102 100644 --- a/src/core/operations/ConvertDataUnits.mjs +++ b/src/core/operations/ConvertDataUnits.mjs @@ -23,7 +23,7 @@ class ConvertDataUnits extends Operation { this.infoURL = "https://wikipedia.org/wiki/Orders_of_magnitude_(data)"; this.inputType = "BigNumber"; this.outputType = "BigNumber"; - this.inputSwapable = true; + this.inputSwappable = true; this.args = [ { "name": "Input units", diff --git a/src/core/operations/ConvertDistance.mjs b/src/core/operations/ConvertDistance.mjs index 1b3d9a87..8d7f5cc2 100644 --- a/src/core/operations/ConvertDistance.mjs +++ b/src/core/operations/ConvertDistance.mjs @@ -23,7 +23,7 @@ class ConvertDistance extends Operation { this.infoURL = "https://wikipedia.org/wiki/Orders_of_magnitude_(length)"; this.inputType = "BigNumber"; this.outputType = "BigNumber"; - this.inputSwapable = true; + this.inputSwappable = true; this.args = [ { "name": "Input units", diff --git a/src/core/operations/ConvertMass.mjs b/src/core/operations/ConvertMass.mjs index 87ed7129..573a7e41 100644 --- a/src/core/operations/ConvertMass.mjs +++ b/src/core/operations/ConvertMass.mjs @@ -23,7 +23,7 @@ class ConvertMass extends Operation { this.infoURL = "https://wikipedia.org/wiki/Orders_of_magnitude_(mass)"; this.inputType = "BigNumber"; this.outputType = "BigNumber"; - this.inputSwapable = true; + this.inputSwappable = true; this.args = [ { "name": "Input units", diff --git a/src/core/operations/ConvertSpeed.mjs b/src/core/operations/ConvertSpeed.mjs index db865bfd..4799a3a3 100644 --- a/src/core/operations/ConvertSpeed.mjs +++ b/src/core/operations/ConvertSpeed.mjs @@ -23,7 +23,7 @@ class ConvertSpeed extends Operation { this.infoURL = "https://wikipedia.org/wiki/Orders_of_magnitude_(speed)"; this.inputType = "BigNumber"; this.outputType = "BigNumber"; - this.inputSwapable = true; + this.inputSwappable = true; this.args = [ { "name": "Input units",