neiam /action-setup-beam
action-setup-beam
public · Issues · Pulls · Labels · Forks · Compare · Actions queued
⭐
Log in to mark this repository.
Automation: update setup-beam version output to 9afaa6e
033f103 · GitHub Actions · 2025-07-21 17:28
Files changed
modified
dist/index.js
+8
−4
@@ -25933,7 +25933,7 @@ async function main() {
| 25933 | 25933 | await maybeInstallRebar3(rebar3Spec) |
| 25934 | 25934 | |
| 25935 | 25935 | // undefined is replaced by a function, post- main branch merge |
| 25936 | − const setupBeamVersion = '8c38699' | |
| 25936 | + const setupBeamVersion = '9afaa6e' | |
| 25937 | 25937 | core.setOutput('setup-beam-version', setupBeamVersion) |
| 25938 | 25938 | } |
| 25939 | 25939 |
@@ -28058,7 +28058,7 @@ const normalize_options = function (opts) {
| 28058 | 28058 | // Normalize option `to` |
| 28059 | 28059 | if (options.to === undefined || options.to === null) { |
| 28060 | 28060 | options.to = -1; |
| 28061 | − } else { | |
| 28061 | + } else if (options.to !== -1) { | |
| 28062 | 28062 | if (typeof options.to === "string" && /\d+/.test(options.to)) { |
| 28063 | 28063 | options.to = parseInt(options.to); |
| 28064 | 28064 | } |
@@ -28077,7 +28077,7 @@ const normalize_options = function (opts) {
| 28077 | 28077 | // Normalize option `to_line` |
| 28078 | 28078 | if (options.to_line === undefined || options.to_line === null) { |
| 28079 | 28079 | options.to_line = -1; |
| 28080 | − } else { | |
| 28080 | + } else if (options.to_line !== -1) { | |
| 28081 | 28081 | if (typeof options.to_line === "string" && /\d+/.test(options.to_line)) { |
| 28082 | 28082 | options.to_line = parseInt(options.to_line); |
| 28083 | 28083 | } |
@@ -28208,10 +28208,14 @@ const transform = function (original_options = {}) {
| 28208 | 28208 | this.state.bufBytesStart += bomLength; |
| 28209 | 28209 | buf = buf.slice(bomLength); |
| 28210 | 28210 | // Renormalize original options with the new encoding |
| 28211 | − this.options = normalize_options({ | |
| 28211 | + const options = normalize_options({ | |
| 28212 | 28212 | ...this.original_options, |
| 28213 | 28213 | encoding: encoding, |
| 28214 | 28214 | }); |
| 28215 | + // Properties are merged with the existing options instance | |
| 28216 | + for (const key in options) { | |
| 28217 | + this.options[key] = options[key]; | |
| 28218 | + } | |
| 28215 | 28219 | // Options will re-evaluate the Buffer with the new encoding |
| 28216 | 28220 | ({ comment, escape, quote } = this.options); |
| 28217 | 28221 | break; |
modified
src/setup-beam.js
+1
−1
@@ -53,7 +53,7 @@ async function main() {
| 53 | 53 | await maybeInstallRebar3(rebar3Spec) |
| 54 | 54 | |
| 55 | 55 | // undefined is replaced by a function, post- main branch merge |
| 56 | − const setupBeamVersion = '8c38699' | |
| 56 | + const setupBeamVersion = '9afaa6e' | |
| 57 | 57 | core.setOutput('setup-beam-version', setupBeamVersion) |
| 58 | 58 | } |
| 59 | 59 |
Parents: 9afaa6e