Skip to content

Commit 6fd4d71

Browse files
authored
Merge pull request #225027 from branchvincent/prism-cli
prism-cli: revision bump (node 24.1.0)
2 parents e35f671 + 21a21d6 commit 6fd4d71

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

Formula/p/prism-cli.rb

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,37 @@ class PrismCli < Formula
44
url "https://registry.npmjs.org/@stoplight/prism-cli/-/prism-cli-5.14.2.tgz"
55
sha256 "61a3b45fbb0325b85fbe94baf836588de676c0db91c3b1f191738070c2f7410f"
66
license "Apache-2.0"
7+
revision 1
78

89
bottle do
9-
sha256 cellar: :any_skip_relocation, arm64_sequoia: "c8333b92f1cfcab951b0ebd6506a1c3449a31e7ea128bfdb68c09a43f8f925fe"
10-
sha256 cellar: :any_skip_relocation, arm64_sonoma: "c8333b92f1cfcab951b0ebd6506a1c3449a31e7ea128bfdb68c09a43f8f925fe"
11-
sha256 cellar: :any_skip_relocation, arm64_ventura: "c8333b92f1cfcab951b0ebd6506a1c3449a31e7ea128bfdb68c09a43f8f925fe"
12-
sha256 cellar: :any_skip_relocation, sonoma: "54e69a8479659e2bb814608927794cb89b42b50e0d76f8d7694696bfa62dd390"
13-
sha256 cellar: :any_skip_relocation, ventura: "54e69a8479659e2bb814608927794cb89b42b50e0d76f8d7694696bfa62dd390"
14-
sha256 cellar: :any_skip_relocation, arm64_linux: "c8333b92f1cfcab951b0ebd6506a1c3449a31e7ea128bfdb68c09a43f8f925fe"
15-
sha256 cellar: :any_skip_relocation, x86_64_linux: "c8333b92f1cfcab951b0ebd6506a1c3449a31e7ea128bfdb68c09a43f8f925fe"
10+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "ea3b321d160363a5e006b5166598ce3c14fd567390622e0393f6824329768730"
11+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "ea3b321d160363a5e006b5166598ce3c14fd567390622e0393f6824329768730"
12+
sha256 cellar: :any_skip_relocation, arm64_ventura: "ea3b321d160363a5e006b5166598ce3c14fd567390622e0393f6824329768730"
13+
sha256 cellar: :any_skip_relocation, sonoma: "71efe36b05538b5c2cc27803232915af9558f28edeba405272a0fbbbaed043b7"
14+
sha256 cellar: :any_skip_relocation, ventura: "71efe36b05538b5c2cc27803232915af9558f28edeba405272a0fbbbaed043b7"
15+
sha256 cellar: :any_skip_relocation, arm64_linux: "ea3b321d160363a5e006b5166598ce3c14fd567390622e0393f6824329768730"
16+
sha256 cellar: :any_skip_relocation, x86_64_linux: "ea3b321d160363a5e006b5166598ce3c14fd567390622e0393f6824329768730"
1617
end
1718

1819
depends_on "node"
1920

2021
def install
2122
system "npm", "install", *std_npm_args
22-
bin.install_symlink Dir["#{libexec}/bin/*"]
23+
bin.install_symlink libexec.glob("bin/*")
24+
25+
# Backport https://github.com/stoplightio/json-schema-ref-parser/commit/ab6ad5a312672c37fd5936d3cef78fbf0ad85234
26+
node_modules = libexec/"lib/node_modules/@stoplight/prism-cli/node_modules"
27+
inreplace node_modules/"@stoplight/json-schema-ref-parser/lib/resolvers/http.js",
28+
'const { AbortController } = require("node-abort-controller");',
29+
""
2330
end
2431

2532
test do
2633
port = free_port
2734
pid = spawn bin/"prism", "mock", "--port", port.to_s, "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/refs/tags/3.1.1/examples/v3.0/petstore.yaml"
2835

2936
sleep 5
30-
sleep 10 if OS.mac? && Hardware::CPU.intel?
37+
sleep 15 if OS.mac? && Hardware::CPU.intel?
3138

3239
system "curl", "http://127.0.0.1:#{port}/pets"
3340

0 commit comments

Comments
 (0)