0.31.4 • Published 27 days ago

@aserto/node-directory v0.31.4

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
27 days ago

node-directory

Node bindings for the Aserto Directory service

Build

yarn install
yarn gen

Build with a local build of directory

BUF_PATH=/path/to/directory.bin yarn gen

On M1 Mac: Run arch -x86_64 zsh first and the continue normally.

Examples

import { Reader } from "@aserto/node-directory/src/gen/cjs/aserto/directory/reader/v3/reader_connect";
import { createPromiseClient } from "@bufbuild/connect";
import { createGrpcTransport } from "@bufbuild/connect-node";

const grpcTansport = createGrpcTransport({
  httpVersion: "2",
  baseUrl: `https://localhost:9393`,
  nodeOptions: { rejectUnauthorized: false },
});

const client = createPromiseClient(Reader, grpcTansport);
const objectResponse = client.getObject({
    objectType: "user",
    objectId: "rick@the-citadel.com",
  })


objectResponse.then((result) => {
  console.log(result.result?.toJson())
}).catch((err) => {
  console.log(err)
})
0.31.4

27 days ago

0.31.3

2 months ago

0.31.1

3 months ago

0.30.2

4 months ago

0.30.1

6 months ago

0.30.0

6 months ago

0.21.3

10 months ago

0.21.1

10 months ago

0.20.6

1 year ago

0.21.0

1 year ago

0.0.9

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago