0.3.18 • Published 2 years ago
@written/mkctx v0.3.18

@written/mkctx
Generate Appwrite Context Objects. Useful for testing & making non-appwrite-runner calls to appwrite functions.
See also: @written/httpcompat
Installation
pnpm i @written/mkctxUsage
The ctx constructor takes the same args as fetch().
Example:
import Ctx from '@written/mkctx';
const ctx = new Ctx('https://example.com/test', {
method: 'POST',
});
// ...
(async () => {
const response = await import('./someAppwriteFunc').default(ctx);
// todo: handle response
})();Obtaining Logs
You can use Ctx.getLogs(ctx)/Ctx.getErrors(ctx) to get the logs from the context object.
0.3.18
2 years ago
0.3.17
2 years ago
0.3.16
2 years ago
0.3.15
2 years ago
0.3.14
2 years ago
0.3.13
2 years ago
0.3.12
2 years ago
0.3.11
2 years ago
0.3.10
2 years ago
0.3.9
2 years ago
0.3.6
2 years ago
0.3.8
2 years ago
0.3.7
2 years ago
0.3.5
2 years ago
0.3.4
2 years ago
0.3.3
2 years ago
0.3.2
2 years ago
0.3.1
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago