Comparing version 0.14.0 to 0.15.0
@@ -37,3 +37,3 @@ var __defProp = Object.defineProperty; | ||
"@types/node": "^16.11.6", | ||
aocrunner: "^0.14.0", | ||
aocrunner: "^0.15.0", | ||
prettier: "^2.4.1" | ||
@@ -40,0 +40,0 @@ }, |
@@ -45,3 +45,3 @@ import fetch from "node-fetch"; | ||
if (e.message === "400" || e.message === "500") { | ||
console.log(kleur.red("INVALID SESSION KEY\n\n"), "Please make sure that the session key in the .env file is correct.\n", kleur.bold("Restart the script after changing the .env file.\n")); | ||
console.log(kleur.red("INVALID SESSION KEY\n\n") + "Please make sure that the session key in the .env file is correct.\nSession key is stored in 'session' cookie when you login to https://adventofcode.com/.\n\n" + kleur.bold("Restart the script after changing the .env file.\n")); | ||
} else if (e.message.startsWith("5")) { | ||
@@ -48,0 +48,0 @@ console.log(kleur.red("SERVER ERROR")); |
{ | ||
"name": "aocrunner", | ||
"version": "0.14.0", | ||
"version": "0.15.0", | ||
"description": "Advent of Code runner", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -21,3 +21,3 @@ import type { Setup } from "../types/common" | ||
"@types/node": "^16.11.6", | ||
aocrunner: "^0.14.0", | ||
aocrunner: "^0.15.0", | ||
prettier: "^2.4.1", | ||
@@ -24,0 +24,0 @@ }, |
@@ -59,5 +59,6 @@ import fetch from "node-fetch" | ||
console.log( | ||
kleur.red("INVALID SESSION KEY\n\n"), | ||
"Please make sure that the session key in the .env file is correct.\n", | ||
kleur.bold("Restart the script after changing the .env file.\n"), | ||
kleur.red("INVALID SESSION KEY\n\n") + | ||
"Please make sure that the session key in the .env file is correct.\n" + | ||
"Session key is stored in 'session' cookie when you login to https://adventofcode.com/.\n\n" + | ||
kleur.bold("Restart the script after changing the .env file.\n"), | ||
) | ||
@@ -64,0 +65,0 @@ } else if (e.message.startsWith("5")) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
96405
1897