1.5.2 • Published 3 years ago

@soundboks/reslock-client v1.5.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

reslock-client

A nodejs client library for interfacing with a relock server

How to use

yarn add @soundboks/reslock-client

let client: ReslockClient = await ReslockClient.connect("http://<domain>:4000")

const { resources, _id } = (await client.acquire([
    { resource_set: "A" },
    { resource_set: "B", properties: { foo: "bar" }}
])).unwrap() // assume we got our stuff and throw if we didn't

await client.unlock(_id)

Check the test directory for more examples or just look at the type declarations for ReslockClient.

1.5.2

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago