Comparing version 0.15.0 to 0.16.0
@@ -42,2 +42,3 @@ import { execSync } from "child_process"; | ||
execSync(installCommand, { cwd: dir, stdio: "inherit" }); | ||
console.log("\nFormatting the source files...\n"); | ||
execSync(formatCommand, { cwd: dir, stdio: "inherit" }); | ||
@@ -44,0 +45,0 @@ console.log(kleur.green("Done!")); |
@@ -37,3 +37,3 @@ var __defProp = Object.defineProperty; | ||
"@types/node": "^16.11.6", | ||
aocrunner: "^0.15.0", | ||
aocrunner: "^0.16.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.\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")); | ||
console.log(kleur.red("INVALID SESSION KEY\n\n") + "Please make sure that the session key in the .env file is correct.\nYou can find your session key in the 'session' cookie at:\nhttps://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.15.0", | ||
"version": "0.16.0", | ||
"description": "Advent of Code runner", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -72,4 +72,5 @@ import { execSync } from "child_process" | ||
console.log("\nInstalling dependencies...\n") | ||
execSync(installCommand, { cwd: dir, stdio: "inherit" }) | ||
execSync(installCommand, { cwd: dir, stdio: "inherit" }) | ||
console.log("\nFormatting the source files...\n") | ||
execSync(formatCommand, { cwd: dir, stdio: "inherit" }) | ||
@@ -76,0 +77,0 @@ |
@@ -21,3 +21,3 @@ import type { Setup } from "../types/common" | ||
"@types/node": "^16.11.6", | ||
aocrunner: "^0.15.0", | ||
aocrunner: "^0.16.0", | ||
prettier: "^2.4.1", | ||
@@ -24,0 +24,0 @@ }, |
@@ -61,3 +61,4 @@ import fetch from "node-fetch" | ||
"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" + | ||
"You can find your session key in the 'session' cookie at:\n" + | ||
"https://adventofcode.com\n\n" + | ||
kleur.bold("Restart the script after changing the .env file.\n"), | ||
@@ -64,0 +65,0 @@ ) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
96603
1900