From d9aff20908bc103f94d0d9d3f884fe6b307477db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cherish=20=E8=94=A1=E6=A2=A6=E7=BC=98?= <785427346@qq.com> Date: Sat, 4 Mar 2023 16:17:35 +0800 Subject: [PATCH] 0.1.0-BETA * fix: login with urlencoded username password --- Cargo.toml | 4 +++- README.md | 2 +- npm/android-arm-eabi/package.json | 2 +- npm/android-arm64/package.json | 2 +- npm/darwin-arm64/package.json | 2 +- npm/darwin-universal/package.json | 2 +- npm/darwin-x64/package.json | 2 +- npm/freebsd-x64/package.json | 2 +- npm/linux-arm-gnueabihf/package.json | 2 +- npm/linux-arm64-gnu/package.json | 2 +- npm/linux-arm64-musl/package.json | 2 +- npm/linux-x64-gnu/package.json | 2 +- npm/linux-x64-musl/package.json | 2 +- npm/win32-arm64-msvc/package.json | 2 +- npm/win32-ia32-msvc/package.json | 2 +- npm/win32-x64-msvc/package.json | 2 +- package.json | 2 +- 17 files changed, 19 insertions(+), 17 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4c30486..fcb84ad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,9 @@ crate-type = ["cdylib"] napi = { version = "2", default-features = false, features = ["napi4", "async"] } napi-derive = "2" -nacos-sdk = { version = "0.2.3", features = ["async"] } +#nacos-sdk = { version = "0.2.3", features = ["async"] } +nacos-sdk = { git = "https://github.com/nacos-group/nacos-sdk-rust.git", features = ["async"] } + tracing-subscriber = "0.3" tracing-appender = "0.2" lazy_static = "1.4.0" diff --git a/README.md b/README.md index 8201345..397073c 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ nacos-sdk-rust binding for NodeJs with napi. Tip: nacos-sdk-nodejs 仓库暂未提供 2.x gRPC 交互模式,为了能升级它,故而通过 node addon 方式调用 nacos-sdk-rust # Usage -**使用样例请看仓库内的 example 目录** +**使用样例请看仓库内的 example 目录,完整 api 请看 index.d.ts** npm 包 -> https://www.npmjs.com/package/nacos-sdk-rust-binding-node diff --git a/npm/android-arm-eabi/package.json b/npm/android-arm-eabi/package.json index 8250165..5d8657b 100644 --- a/npm/android-arm-eabi/package.json +++ b/npm/android-arm-eabi/package.json @@ -1,6 +1,6 @@ { "name": "nacos-sdk-rust-binding-node-android-arm-eabi", - "version": "0.0.2", + "version": "0.1.0-BETA", "os": [ "android" ], diff --git a/npm/android-arm64/package.json b/npm/android-arm64/package.json index 47a9934..f9ae54b 100644 --- a/npm/android-arm64/package.json +++ b/npm/android-arm64/package.json @@ -1,6 +1,6 @@ { "name": "nacos-sdk-rust-binding-node-android-arm64", - "version": "0.0.2", + "version": "0.1.0-BETA", "os": [ "android" ], diff --git a/npm/darwin-arm64/package.json b/npm/darwin-arm64/package.json index c48d4d6..0ee4b28 100644 --- a/npm/darwin-arm64/package.json +++ b/npm/darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "nacos-sdk-rust-binding-node-darwin-arm64", - "version": "0.0.2", + "version": "0.1.0-BETA", "os": [ "darwin" ], diff --git a/npm/darwin-universal/package.json b/npm/darwin-universal/package.json index e5dd8e6..e5d644c 100644 --- a/npm/darwin-universal/package.json +++ b/npm/darwin-universal/package.json @@ -1,6 +1,6 @@ { "name": "nacos-sdk-rust-binding-node-darwin-universal", - "version": "0.0.2", + "version": "0.1.0-BETA", "os": [ "darwin" ], diff --git a/npm/darwin-x64/package.json b/npm/darwin-x64/package.json index 046f77d..e33ad44 100644 --- a/npm/darwin-x64/package.json +++ b/npm/darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "nacos-sdk-rust-binding-node-darwin-x64", - "version": "0.0.2", + "version": "0.1.0-BETA", "os": [ "darwin" ], diff --git a/npm/freebsd-x64/package.json b/npm/freebsd-x64/package.json index 94013cb..d06f650 100644 --- a/npm/freebsd-x64/package.json +++ b/npm/freebsd-x64/package.json @@ -1,6 +1,6 @@ { "name": "nacos-sdk-rust-binding-node-freebsd-x64", - "version": "0.0.2", + "version": "0.1.0-BETA", "os": [ "freebsd" ], diff --git a/npm/linux-arm-gnueabihf/package.json b/npm/linux-arm-gnueabihf/package.json index aa02f7a..98298f8 100644 --- a/npm/linux-arm-gnueabihf/package.json +++ b/npm/linux-arm-gnueabihf/package.json @@ -1,6 +1,6 @@ { "name": "nacos-sdk-rust-binding-node-linux-arm-gnueabihf", - "version": "0.0.2", + "version": "0.1.0-BETA", "os": [ "linux" ], diff --git a/npm/linux-arm64-gnu/package.json b/npm/linux-arm64-gnu/package.json index 5f20fc9..489c407 100644 --- a/npm/linux-arm64-gnu/package.json +++ b/npm/linux-arm64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "nacos-sdk-rust-binding-node-linux-arm64-gnu", - "version": "0.0.2", + "version": "0.1.0-BETA", "os": [ "linux" ], diff --git a/npm/linux-arm64-musl/package.json b/npm/linux-arm64-musl/package.json index 6e9a3a9..fb10ff7 100644 --- a/npm/linux-arm64-musl/package.json +++ b/npm/linux-arm64-musl/package.json @@ -1,6 +1,6 @@ { "name": "nacos-sdk-rust-binding-node-linux-arm64-musl", - "version": "0.0.2", + "version": "0.1.0-BETA", "os": [ "linux" ], diff --git a/npm/linux-x64-gnu/package.json b/npm/linux-x64-gnu/package.json index 0431332..9061a73 100644 --- a/npm/linux-x64-gnu/package.json +++ b/npm/linux-x64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "nacos-sdk-rust-binding-node-linux-x64-gnu", - "version": "0.0.2", + "version": "0.1.0-BETA", "os": [ "linux" ], diff --git a/npm/linux-x64-musl/package.json b/npm/linux-x64-musl/package.json index db0b865..81ae95c 100644 --- a/npm/linux-x64-musl/package.json +++ b/npm/linux-x64-musl/package.json @@ -1,6 +1,6 @@ { "name": "nacos-sdk-rust-binding-node-linux-x64-musl", - "version": "0.0.2", + "version": "0.1.0-BETA", "os": [ "linux" ], diff --git a/npm/win32-arm64-msvc/package.json b/npm/win32-arm64-msvc/package.json index 41b0e65..7595208 100644 --- a/npm/win32-arm64-msvc/package.json +++ b/npm/win32-arm64-msvc/package.json @@ -1,6 +1,6 @@ { "name": "nacos-sdk-rust-binding-node-win32-arm64-msvc", - "version": "0.0.2", + "version": "0.1.0-BETA", "os": [ "win32" ], diff --git a/npm/win32-ia32-msvc/package.json b/npm/win32-ia32-msvc/package.json index d94d2ba..134d443 100644 --- a/npm/win32-ia32-msvc/package.json +++ b/npm/win32-ia32-msvc/package.json @@ -1,6 +1,6 @@ { "name": "nacos-sdk-rust-binding-node-win32-ia32-msvc", - "version": "0.0.2", + "version": "0.1.0-BETA", "os": [ "win32" ], diff --git a/npm/win32-x64-msvc/package.json b/npm/win32-x64-msvc/package.json index e6184e6..f84af2f 100644 --- a/npm/win32-x64-msvc/package.json +++ b/npm/win32-x64-msvc/package.json @@ -1,6 +1,6 @@ { "name": "nacos-sdk-rust-binding-node-win32-x64-msvc", - "version": "0.0.2", + "version": "0.1.0-BETA", "os": [ "win32" ], diff --git a/package.json b/package.json index de49479..5d88e91 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "binding", "ffi" ], - "version": "0.0.2", + "version": "0.1.0-BETA", "bugs": "https://github.com/opc-source/nacos-sdk-rust-binding-node/issues", "license": "MIT", "repository": {