diff --git a/anylist/config.json b/anylist/config.json index 3dadd60..0622d2f 100644 --- a/anylist/config.json +++ b/anylist/config.json @@ -1,6 +1,6 @@ { "name": "Anylist", - "version": "1.7", + "version": "1.7.1", "init": false, "slug": "anylist", "description": "Anylist", diff --git a/anylist/index.js b/anylist/index.js index f473192..95dca56 100644 --- a/anylist/index.js +++ b/anylist/index.js @@ -13,14 +13,9 @@ const CREDENTIALS_FILE = args["credentials-file"] || process.env.CREDENTIALS_FIL async function initialize(onInitialized) { let any = new AnyList({email: EMAIL, password: PASSWORD, credentialsFile: CREDENTIALS_FILE}); - try { - await any.login(); - await any.getLists(); - - return await onInitialized(any); - } finally { - any.teardown(); - } + await any.login(false); + await any.getLists(); + return await onInitialized(any); } async function getLists() { diff --git a/anylist/package.json b/anylist/package.json index f56ee44..0fdb35a 100644 --- a/anylist/package.json +++ b/anylist/package.json @@ -5,7 +5,7 @@ "author": "kevdliu", "main": "index.js", "dependencies": { - "anylist": "0.6.0", + "anylist": "0.8.3", "express": "4.18.2", "minimist": "1.2.8" },