Skip to content

Commit 8a2bb55

Browse files
committed
package-lock
1 parent 3c5c02d commit 8a2bb55

File tree

5 files changed

+3936
-89
lines changed

5 files changed

+3936
-89
lines changed

components/langbase/actions/create-memory/create-memory.mjs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ export default {
1111
name: {
1212
propDefinition: [
1313
app,
14-
"name"
15-
]
14+
"name",
15+
],
1616
},
1717
description: {
1818
propDefinition: [
1919
app,
20-
"description"
21-
]
20+
"description",
21+
],
2222
},
2323
},
2424

@@ -27,12 +27,12 @@ export default {
2727
$,
2828
data: {
2929
name: this.name,
30-
description: this.description
31-
}
30+
description: this.description,
31+
},
3232
});
33-
33+
3434
$.export("$summary", `Successfully created memory ${this.name}`);
35-
35+
3636
return response;
3737
},
3838
};

components/langbase/actions/delete-memories/delete-memory.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ export default {
1111
memoryName: {
1212
propDefinition: [
1313
app,
14-
"memoryName"
15-
]
14+
"memoryName",
15+
],
1616
},
1717
},
1818

components/langbase/langbase.app.mjs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ export default {
1111
async options() {
1212
const response = await this.listMemories();
1313
const memoryNames = response.memorySets;
14-
return memoryNames.map(({ name, description }) => ({
14+
return memoryNames.map(({
15+
name, description,
16+
}) => ({
1517
label: description,
1618
value: name,
1719
}));
18-
}
20+
},
1921
},
2022
name: {
2123
type: "string",
@@ -44,8 +46,8 @@ export default {
4446
url: this._baseUrl() + path,
4547
headers: {
4648
...headers,
47-
Authorization: `Bearer ${this.$auth.org_api_key}`,
48-
"Accept": `application/json`,
49+
"Authorization": `Bearer ${this.$auth.org_api_key}`,
50+
"Accept": "application/json",
4951
},
5052
});
5153
},
@@ -56,7 +58,9 @@ export default {
5658
...args,
5759
});
5860
},
59-
async deleteMemory({ memoryName, ...args }) {
61+
async deleteMemory({
62+
memoryName, ...args
63+
}) {
6064
return this._makeRequest({
6165
path: `/memorysets/sergio19733/${memoryName}`,
6266
method: "delete",

0 commit comments

Comments
 (0)