Comparing version 0.8.15 to 0.8.16
@@ -314,2 +314,3 @@ "use strict"; | ||
indexFile.items.list_custom = newID; | ||
this.main.files.set(indexFile); | ||
} | ||
@@ -316,0 +317,0 @@ if (!file.list) { |
@@ -9,2 +9,11 @@ import Main from '../index'; | ||
constructor(main: Main); | ||
getList(options: { | ||
limit: number; | ||
tsp?: string; | ||
persona?: string; | ||
linkID?: string; | ||
fieldLike?: string; | ||
personaList?: string[]; | ||
linkTarget?: string; | ||
}): Promise<(RSS3CustomItem | RSS3AutoItem)[]>; | ||
getListByPersona(options: { | ||
@@ -17,4 +26,5 @@ limit: number; | ||
personaList?: string[]; | ||
}): Promise<(RSS3CustomItem | RSS3AutoItem)[]>; | ||
linkTarget?: string; | ||
}): Promise<void>; | ||
} | ||
export default Items; |
@@ -24,3 +24,3 @@ "use strict"; | ||
} | ||
getListByPersona(options) { | ||
getList(options) { | ||
var _a; | ||
@@ -39,2 +39,3 @@ return __awaiter(this, void 0, void 0, function* () { | ||
personaList: (_a = options.personaList) === null || _a === void 0 ? void 0 : _a.join(','), | ||
linkTarget: options.linkTarget, | ||
}, | ||
@@ -45,3 +46,8 @@ }); | ||
} | ||
getListByPersona(options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
this.getList(options); | ||
}); | ||
} | ||
} | ||
exports.default = Items; |
@@ -63,3 +63,3 @@ "use strict"; | ||
return error; | ||
} return null; } function _2644_s(object) { ; if (typeof object !== "object" || object === null || Array.isArray(object)) | ||
} return null; } function _2646_s(object) { ; if (typeof object !== "object" || object === null || Array.isArray(object)) | ||
return { message: "validation failed at " + path.join(".") + ": expected an object", path: path.slice(), reason: { type: "object" } }; { | ||
@@ -94,3 +94,3 @@ if ("tags" in object) { | ||
return { message: "validation failed at " + path.join(".") + ": " + ("superfluous property '" + key + "' in object"), path: path.slice(), reason: { type: "superfluous-property" } }; | ||
} return null; } var error = _2644_s(object); return error; })) { | ||
} return null; } var error = _2646_s(object); return error; })) { | ||
const { index, file } = yield this.getPosition(this.main.account.address, links.id); | ||
@@ -97,0 +97,0 @@ if (index === -1) { |
{ | ||
"name": "rss3", | ||
"version": "0.8.15", | ||
"version": "0.8.16", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -83,2 +83,3 @@ import Main from '../index'; | ||
indexFile.items.list_custom = newID; | ||
this.main.files.set(indexFile); | ||
} | ||
@@ -85,0 +86,0 @@ if (!file.list) { |
@@ -18,3 +18,3 @@ import Main from '../index'; | ||
async getListByPersona(options: { | ||
async getList(options: { | ||
limit: number; | ||
@@ -26,2 +26,3 @@ tsp?: string; | ||
personaList?: string[]; | ||
linkTarget?: string; | ||
}) { | ||
@@ -39,2 +40,3 @@ const usePost = options.personaList && options.personaList.length > 250; | ||
personaList: options.personaList?.join(','), | ||
linkTarget: options.linkTarget, | ||
}, | ||
@@ -44,4 +46,16 @@ }); | ||
} | ||
async getListByPersona(options: { | ||
limit: number; | ||
tsp?: string; | ||
persona?: string; | ||
linkID?: string; | ||
fieldLike?: string; | ||
personaList?: string[]; | ||
linkTarget?: string; | ||
}) { | ||
this.getList(options); | ||
} | ||
} | ||
export default Items; |
261472
5141