New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

aocrunner

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aocrunner - npm Package Compare versions

Comparing version 0.17.0 to 0.18.0

2

lib/configs/packageJSON.js

@@ -37,3 +37,3 @@ var __defProp = Object.defineProperty;

"@types/node": "^16.11.6",
aocrunner: "^0.17.0",
aocrunner: "^0.18.0",
prettier: "^2.4.1"

@@ -40,0 +40,0 @@ },

@@ -15,4 +15,5 @@ declare type Tests = {

};
rawTestInput?: boolean;
};
declare const run: (solutions: Solutions, inputFile?: string | undefined) => void;
export default run;

@@ -7,6 +7,7 @@ import fs from "fs";

import { saveConfig, readConfig } from "./io/config.js";
const runTests = async (tests, solution, part) => {
const runTests = async (tests, solution, part, rawTestInput = false) => {
for (let i = 0; i < tests.length; i++) {
const { input, expected } = tests[i];
const result = await solution(input);
const data = rawTestInput ? input : stripIndent(input);
const result = await solution(data);
if (result === expected) {

@@ -13,0 +14,0 @@ console.log(kleur.green(`Part ${part}, test ${i + 1} - passed`));

{
"name": "aocrunner",
"version": "0.17.0",
"version": "0.18.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.17.0",
aocrunner: "^0.18.0",
prettier: "^2.4.1",

@@ -24,0 +24,0 @@ },

@@ -20,9 +20,18 @@ import fs from "fs"

}
rawTestInput?: boolean
}
const runTests = async (tests: Tests, solution: Solution, part: number) => {
const runTests = async (
tests: Tests,
solution: Solution,
part: number,
rawTestInput = false,
) => {
for (let i = 0; i < tests.length; i++) {
const { input, expected } = tests[i]
const result = await solution(input)
const data = rawTestInput ? input : stripIndent(input)
const result = await solution(data)
if (result === expected) {

@@ -29,0 +38,0 @@ console.log(kleur.green(`Part ${part}, test ${i + 1} - passed`))

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc