UNPKG

767 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const ketting_1 = require("./ketting");
4(async () => {
5 const ketting = new ketting_1.default('https://evertpot.com/');
6 const res1 = ketting.go();
7 res1.patch({
8 hello: 5,
9 });
10 const res2 = await res1.post({
11 foo: 5,
12 bar: 6,
13 });
14 if (res2) {
15 res2.put({ foo: 7, bar: 8 });
16 const res3 = await res2.follow('item');
17 res3.put({
18 hello: -1,
19 world: -2,
20 });
21 const reses = await res2.followAll('items');
22 for (const subRes of reses) {
23 subRes.put({
24 hello: 100,
25 world: 200,
26 });
27 }
28 }
29});
30//# sourceMappingURL=foo.js.map
\No newline at end of file