1.5.2 • Published 2 years ago

@soundboks/reslock-client v1.5.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago