From 00e9f9b70097d7b8c0b6048437f181c9f64f79d5 Mon Sep 17 00:00:00 2001 From: jcamiel Date: Thu, 2 Feb 2023 13:28:55 +0100 Subject: [PATCH] Update npm publish scripts for 2.0.1 --- contrib/npm/README.md | 5 +++++ contrib/npm/hurl/docs/hurl.1 | 11 +++++------ contrib/npm/hurl/docs/hurlfmt.1 | 2 +- contrib/npm/hurl/package.json | 2 +- contrib/npm/hurl/platform.json | 8 ++++---- 5 files changed, 16 insertions(+), 12 deletions(-) diff --git a/contrib/npm/README.md b/contrib/npm/README.md index 2d4c6eb90..a6c1cd309 100644 --- a/contrib/npm/README.md +++ b/contrib/npm/README.md @@ -6,8 +6,13 @@ Hurl is [distributed on npm] as a thin wrapper around the native binary. ## Publish +To publish a new version `x.y.z`: + ``` $ cp docs/manual/*.1 contrib/npm/hurl/docs/ +$ python3 ./contrib/npm/check_publish.py x.y.z +$ npm publish --dry-run contrib/npm/hurl/ +$ npm publish contrib/npm/hurl/ ``` diff --git a/contrib/npm/hurl/docs/hurl.1 b/contrib/npm/hurl/docs/hurl.1 index 169f7ba44..014d83923 100644 --- a/contrib/npm/hurl/docs/hurl.1 +++ b/contrib/npm/hurl/docs/hurl.1 @@ -1,4 +1,4 @@ -.TH hurl 1 "25 Jan 2023" "hurl 2.0.0" " Hurl Manual" +.TH hurl 1 "02 Feb 2023" "hurl 2.1.0" " Hurl Manual" .SH NAME hurl - run and test HTTP requests. @@ -70,7 +70,6 @@ A typical example occurs with CSRF tokens. [Captures] csrf_token: xpath "normalize-space(//meta[@name='_csrf_token']/@content)" - # Do the login ! POST https://example.org/login?user=toto&password=1234 X-CSRF-TOKEN: {{csrf_token}} @@ -138,7 +137,7 @@ See also \fI--key\fP. .IP "--color " -Colorize Output. +Colorize debug output (the HTTP response output is not colorized). .IP "--compressed " @@ -344,15 +343,15 @@ Environment variables can only be specified in lowercase. Using an environment variable to set the proxy has the same effect as using the \fI-x, --proxy\fP option. -.IP "http_proxy [protocol://][:port]" +.IP "http_proxy [PROTOCOL://][:PORT]" Sets the proxy server to use for HTTP. -.IP "https_proxy [protocol://][:port]" +.IP "https_proxy [PROTOCOL://][:PORT]" Sets the proxy server to use for HTTPS. -.IP "all_proxy [protocol://][:port]" +.IP "all_proxy [PROTOCOL://][:PORT]" Sets the proxy server to use if no protocol-specific proxy is set. diff --git a/contrib/npm/hurl/docs/hurlfmt.1 b/contrib/npm/hurl/docs/hurlfmt.1 index ea9b1f06c..d93dccef5 100644 --- a/contrib/npm/hurl/docs/hurlfmt.1 +++ b/contrib/npm/hurl/docs/hurlfmt.1 @@ -1,4 +1,4 @@ -.TH hurl 1 "25 Jan 2023" "hurl 2.0.0" " Hurl Manual" +.TH hurl 1 "02 Feb 2023" "hurl 2.1.0" " Hurl Manual" .SH NAME hurlfmt - format Hurl files diff --git a/contrib/npm/hurl/package.json b/contrib/npm/hurl/package.json index 0b85b12ad..e4d588cb5 100644 --- a/contrib/npm/hurl/package.json +++ b/contrib/npm/hurl/package.json @@ -1,6 +1,6 @@ { "name": "@orangeopensource/hurl", - "version": "2.0.0", + "version": "2.0.1", "description": "Run and Test HTTP Requests with plain text and curl", "author": "Jean-Christophe Amiel ", "contributors": [ diff --git a/contrib/npm/hurl/platform.json b/contrib/npm/hurl/platform.json index 0bdb574f7..77e12cbda 100644 --- a/contrib/npm/hurl/platform.json +++ b/contrib/npm/hurl/platform.json @@ -5,7 +5,7 @@ "rust_target": "win64", "binary_name": "hurl.exe", "archive_extension": ".zip", - "checksum": "5ea1b7405ef4a4376b1bd2217a8701dcd15b78d42c45e04b44f1828a4ce0035d" + "checksum": "bf428e88535e7f057cf1ad93b3d3b7c91a0690f3d04f9600f5923072f9f1c0c8" }, { "type": "Linux", @@ -13,7 +13,7 @@ "rust_target": "x86_64-linux", "binary_name": "hurl", "archive_extension": ".tar.gz", - "checksum": "68666d62016c7f3662340b7cf61853d2b053697b1e72711f5cad6517a9122419" + "checksum": "855bb623e14d971911cb8de7e8b8c1e77bf0139d10a95d592452047ac499cfa9" }, { "type": "Darwin", @@ -21,7 +21,7 @@ "rust_target": "x86_64-macos", "binary_name": "hurl", "archive_extension": ".tar.gz", - "checksum": "3cf5180dde9312465a341314161539342f7432dc4f367b06cec969ed386c8e92" + "checksum": "1362b123243bccd34f2fe44c30c74c7d563e119c3df4278d7a5e882bb6aedda4" }, { "type": "Darwin", @@ -29,6 +29,6 @@ "rust_target": "arm64-macos", "binary_name": "hurl", "archive_extension": ".tar.gz", - "checksum": "4e2196ac2201d2cbabfab45d77a309ece90e3bf05ed0ef5400786de4cfba3cb0" + "checksum": "c86d7127144f2260d6fb83a20e2e91541876539ca467bbbc61906f35e25ea0f3" } ] \ No newline at end of file