mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 05:16:28 +03:00
use node 16 in ci
use `npm i` instead of `npm ci` try fix ci script and fix a doc comment
This commit is contained in:
16
.github/workflows/jsonrpc_api.yml
vendored
16
.github/workflows/jsonrpc_api.yml
vendored
@@ -31,10 +31,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Use Node.js 14.x
|
- name: Use Node.js 16.x
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 14.x
|
node-version: 16.x
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
@@ -42,18 +42,18 @@ jobs:
|
|||||||
override: true
|
override: true
|
||||||
- name: Rust Cache
|
- name: Rust Cache
|
||||||
uses: Swatinem/rust-cache@v1.3.0
|
uses: Swatinem/rust-cache@v1.3.0
|
||||||
- name: npm ci
|
- name: npm i
|
||||||
run: |
|
run: |
|
||||||
cd deltachat-jsonrpc/typescript
|
cd deltachat-jsonrpc/typescript
|
||||||
npm ci
|
npm i
|
||||||
- name: npm run generate_bindings
|
- name: npm run generate-bindings
|
||||||
run: |
|
run: |
|
||||||
cd deltachat-jsonrpc/typescript
|
cd deltachat-jsonrpc/typescript
|
||||||
npm run generate_bindings
|
npm run generate-bindings
|
||||||
- name: npm run check_ts
|
- name: npm run check ts
|
||||||
run: |
|
run: |
|
||||||
cd deltachat-jsonrpc/typescript
|
cd deltachat-jsonrpc/typescript
|
||||||
npm run check_ts
|
npx tsc --noEmit
|
||||||
- name: run integration tests
|
- name: run integration tests
|
||||||
run: |
|
run: |
|
||||||
cd deltachat-jsonrpc/typescript
|
cd deltachat-jsonrpc/typescript
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ impl CommandApi {
|
|||||||
// Misc top level functions
|
// Misc top level functions
|
||||||
// ---------------------------------------------
|
// ---------------------------------------------
|
||||||
|
|
||||||
// Check if an email address is valid.
|
/// Check if an email address is valid.
|
||||||
async fn check_email_validity(&self, email: String) -> bool {
|
async fn check_email_validity(&self, email: String) -> bool {
|
||||||
may_be_valid_addr(&email)
|
may_be_valid_addr(&email)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,9 @@ interface Transport {
|
|||||||
export class RawClient {
|
export class RawClient {
|
||||||
constructor(private _transport: Transport) {}
|
constructor(private _transport: Transport) {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if an email address is valid.
|
||||||
|
*/
|
||||||
public checkEmailValidity(email: string): Promise<boolean> {
|
public checkEmailValidity(email: string): Promise<boolean> {
|
||||||
return (this._transport.request('check_email_validity', [email] as RPC.Params)) as Promise<boolean>;
|
return (this._transport.request('check_email_validity', [email] as RPC.Params)) as Promise<boolean>;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user