TypeScript Day 9
This commit is contained in:
parent
60b37d448f
commit
43b14b582a
9 changed files with 147867 additions and 0 deletions
147392
2019/JavaScript-TypeScript/day9/.yarn/releases/yarn-1.22.10.cjs
vendored
Normal file
147392
2019/JavaScript-TypeScript/day9/.yarn/releases/yarn-1.22.10.cjs
vendored
Normal file
File diff suppressed because one or more lines are too long
5
2019/JavaScript-TypeScript/day9/.yarnrc
Normal file
5
2019/JavaScript-TypeScript/day9/.yarnrc
Normal file
|
@ -0,0 +1,5 @@
|
|||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
# yarn lockfile v1
|
||||
|
||||
|
||||
yarn-path ".yarn/releases/yarn-1.22.10.cjs"
|
1
2019/JavaScript-TypeScript/day9/input
Normal file
1
2019/JavaScript-TypeScript/day9/input
Normal file
|
@ -0,0 +1 @@
|
|||
1102,34463338,34463338,63,1007,63,34463338,63,1005,63,53,1102,3,1,1000,109,988,209,12,9,1000,209,6,209,3,203,0,1008,1000,1,63,1005,63,65,1008,1000,2,63,1005,63,904,1008,1000,0,63,1005,63,58,4,25,104,0,99,4,0,104,0,99,4,17,104,0,99,0,0,1101,0,31,1019,1101,25,0,1008,1102,35,1,1009,1102,422,1,1029,1102,1,21,1005,1102,1,734,1027,1102,29,1,1000,1101,32,0,1018,1102,28,1,1016,1101,0,38,1015,1101,0,378,1023,1101,30,0,1017,1102,1,381,1022,1101,0,37,1006,1102,1,1,1021,1101,0,24,1011,1102,1,23,1002,1101,0,0,1020,1101,0,20,1007,1101,427,0,1028,1101,26,0,1014,1101,27,0,1010,1101,0,39,1001,1101,34,0,1012,1102,1,36,1013,1101,0,33,1003,1101,804,0,1025,1101,737,0,1026,1102,1,809,1024,1102,1,22,1004,109,9,1201,-7,0,63,1008,63,20,63,1005,63,205,1001,64,1,64,1106,0,207,4,187,1002,64,2,64,109,2,21102,40,1,1,1008,1012,40,63,1005,63,233,4,213,1001,64,1,64,1106,0,233,1002,64,2,64,109,4,1208,-7,25,63,1005,63,255,4,239,1001,64,1,64,1106,0,255,1002,64,2,64,109,-24,1207,10,38,63,1005,63,271,1105,1,277,4,261,1001,64,1,64,1002,64,2,64,109,25,21107,41,40,-3,1005,1013,293,1105,1,299,4,283,1001,64,1,64,1002,64,2,64,109,5,1205,-1,311,1106,0,317,4,305,1001,64,1,64,1002,64,2,64,109,-23,1202,6,1,63,1008,63,22,63,1005,63,339,4,323,1105,1,343,1001,64,1,64,1002,64,2,64,109,1,2101,0,2,63,1008,63,37,63,1005,63,367,1001,64,1,64,1106,0,369,4,349,1002,64,2,64,109,29,2105,1,-5,1106,0,387,4,375,1001,64,1,64,1002,64,2,64,109,-26,2101,0,0,63,1008,63,23,63,1005,63,409,4,393,1106,0,413,1001,64,1,64,1002,64,2,64,109,26,2106,0,0,4,419,1106,0,431,1001,64,1,64,1002,64,2,64,109,-17,21108,42,42,6,1005,1017,453,4,437,1001,64,1,64,1106,0,453,1002,64,2,64,109,7,21101,43,0,-8,1008,1010,44,63,1005,63,477,1001,64,1,64,1105,1,479,4,459,1002,64,2,64,109,-7,1206,10,495,1001,64,1,64,1106,0,497,4,485,1002,64,2,64,109,-5,2108,36,0,63,1005,63,513,1106,0,519,4,503,1001,64,1,64,1002,64,2,64,109,3,2102,1,-5,63,1008,63,22,63,1005,63,541,4,525,1105,1,545,1001,64,1,64,1002,64,2,64,109,3,1207,-6,38,63,1005,63,567,4,551,1001,64,1,64,1105,1,567,1002,64,2,64,109,-15,2107,20,8,63,1005,63,585,4,573,1106,0,589,1001,64,1,64,1002,64,2,64,109,-1,1208,5,36,63,1005,63,609,1001,64,1,64,1106,0,611,4,595,1002,64,2,64,109,30,21101,44,0,-7,1008,1019,44,63,1005,63,633,4,617,1106,0,637,1001,64,1,64,1002,64,2,64,109,-25,1201,0,0,63,1008,63,39,63,1005,63,659,4,643,1105,1,663,1001,64,1,64,1002,64,2,64,109,27,1206,-8,677,4,669,1106,0,681,1001,64,1,64,1002,64,2,64,109,-28,2108,29,0,63,1005,63,703,4,687,1001,64,1,64,1106,0,703,1002,64,2,64,109,5,21107,45,46,7,1005,1012,725,4,709,1001,64,1,64,1106,0,725,1002,64,2,64,109,30,2106,0,-8,1105,1,743,4,731,1001,64,1,64,1002,64,2,64,109,-22,21102,46,1,4,1008,1017,44,63,1005,63,767,1001,64,1,64,1105,1,769,4,749,1002,64,2,64,109,-15,1202,10,1,63,1008,63,23,63,1005,63,793,1001,64,1,64,1106,0,795,4,775,1002,64,2,64,109,19,2105,1,7,4,801,1105,1,813,1001,64,1,64,1002,64,2,64,109,6,1205,-2,827,4,819,1106,0,831,1001,64,1,64,1002,64,2,64,109,-20,2107,22,2,63,1005,63,851,1001,64,1,64,1106,0,853,4,837,1002,64,2,64,109,20,21108,47,44,-8,1005,1015,869,1105,1,875,4,859,1001,64,1,64,1002,64,2,64,109,-22,2102,1,4,63,1008,63,23,63,1005,63,899,1001,64,1,64,1106,0,901,4,881,4,64,99,21101,0,27,1,21102,915,1,0,1106,0,922,21201,1,28703,1,204,1,99,109,3,1207,-2,3,63,1005,63,964,21201,-2,-1,1,21101,0,942,0,1106,0,922,22101,0,1,-1,21201,-2,-3,1,21101,957,0,0,1105,1,922,22201,1,-1,-2,1105,1,968,21201,-2,0,-2,109,-3,2105,1,0
|
16
2019/JavaScript-TypeScript/day9/package.json
Normal file
16
2019/JavaScript-TypeScript/day9/package.json
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"scripts": {
|
||||
"lint": "prettier solution_a.ts solution_b.ts --write --print-width=120",
|
||||
"a": "ts-node solution_a.ts",
|
||||
"b": "ts-node solution_b.ts"
|
||||
},
|
||||
"devDependencies": {
|
||||
"prettier": "^2.1.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/node": "^14.14.8",
|
||||
"ts-node": "^9.0.0",
|
||||
"typescript": "^4.0.5"
|
||||
},
|
||||
"license": "WTFPL"
|
||||
}
|
316
2019/JavaScript-TypeScript/day9/solution_a.ts
Normal file
316
2019/JavaScript-TypeScript/day9/solution_a.ts
Normal file
|
@ -0,0 +1,316 @@
|
|||
import * as fs from "fs";
|
||||
import { relative } from "path";
|
||||
const fsPromises = fs.promises;
|
||||
import * as readline from "readline";
|
||||
|
||||
const rl = readline.createInterface(process.stdin, process.stdout);
|
||||
|
||||
enum ParameterMode {
|
||||
position = 0,
|
||||
immediate = 1,
|
||||
relative = 2,
|
||||
}
|
||||
|
||||
enum Instruction {
|
||||
add = 1,
|
||||
mul = 2,
|
||||
inp = 3,
|
||||
out = 4,
|
||||
jnz = 5,
|
||||
jz = 6,
|
||||
lt = 7,
|
||||
eq = 8,
|
||||
rel = 9,
|
||||
end = 99,
|
||||
}
|
||||
|
||||
type Memory = Array<OpCode>;
|
||||
|
||||
class OpCode {
|
||||
private _executable: boolean = false;
|
||||
private _literalValue: number = 0;
|
||||
private _instruction?: Instruction;
|
||||
private _parameterModes?: [a: ParameterMode, b: ParameterMode, c: ParameterMode];
|
||||
|
||||
constructor(value: number);
|
||||
constructor(value: string);
|
||||
constructor(value: string | number) {
|
||||
let valueNumber: number;
|
||||
let valueString: string;
|
||||
if (typeof value === "number") {
|
||||
valueNumber = value;
|
||||
valueString = value.toString();
|
||||
} else {
|
||||
valueString = value;
|
||||
valueNumber = parseInt(value);
|
||||
}
|
||||
if (isNaN(valueNumber)) throw new Error(`Invalid value '${value}' for OpCode.`);
|
||||
valueString = valueString.padStart(5, "0");
|
||||
|
||||
this._literalValue = valueNumber;
|
||||
|
||||
if (valueNumber >= 0 && valueNumber <= 99999 && valueNumber % 100 in Instruction) {
|
||||
const parameterModes: [ParameterMode, ParameterMode, ParameterMode] = [
|
||||
Math.floor(valueNumber / 10000) % 10,
|
||||
Math.floor(valueNumber / 1000) % 10,
|
||||
Math.floor(valueNumber / 100) % 10,
|
||||
];
|
||||
if (parameterModes.filter((val) => val in ParameterMode).length === 3) {
|
||||
this._parameterModes = parameterModes;
|
||||
this._instruction = valueNumber % 100;
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
this._executable = true;
|
||||
}
|
||||
}
|
||||
|
||||
get executable() {
|
||||
if (this._instruction === undefined || this._parameterModes === undefined) {
|
||||
this._executable = false;
|
||||
}
|
||||
return this._executable;
|
||||
}
|
||||
|
||||
get literalValue() {
|
||||
return this._literalValue;
|
||||
}
|
||||
get instruction() {
|
||||
return this._instruction;
|
||||
}
|
||||
get parameterModes() {
|
||||
return this._parameterModes;
|
||||
}
|
||||
|
||||
toString() {
|
||||
return this.literalValue.toString();
|
||||
}
|
||||
}
|
||||
|
||||
class Machine {
|
||||
private readonly initialMemory: Memory;
|
||||
private memory: Memory;
|
||||
constructor(program: Memory) {
|
||||
this.initialMemory = program;
|
||||
this.memory = program;
|
||||
}
|
||||
|
||||
parseParam(value: number, mode: ParameterMode, relativeOffset: number) {
|
||||
switch (mode) {
|
||||
case ParameterMode.immediate:
|
||||
return value;
|
||||
case ParameterMode.position:
|
||||
return this.memory[value]?.literalValue ?? 0;
|
||||
case ParameterMode.relative:
|
||||
return this.memory[value + relativeOffset]?.literalValue ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
async run(debug: boolean = false) {
|
||||
let index = 0;
|
||||
let relative = 0;
|
||||
let debugIteration = 0;
|
||||
const debugLog = debug ? await fsPromises.open("out.log", "w") : undefined;
|
||||
let output: number[] = [];
|
||||
try {
|
||||
while (index < this.memory.length) {
|
||||
/*for (let i = 0; i < this.memory.length; i++) {
|
||||
this.memory[i] = this.memory[i] ?? new OpCode(0);
|
||||
}*/
|
||||
if (debug) {
|
||||
debugLog!.write(
|
||||
`${(++debugIteration).toString().padStart(5, "0")};${relative
|
||||
.toString()
|
||||
.padStart(8, "0")};${index.toString().padStart(5, "0")};[${this.memory
|
||||
.map((op) => op.literalValue)
|
||||
.join(",")}]\n`
|
||||
);
|
||||
}
|
||||
const opCode = this.memory[index];
|
||||
if (!opCode.executable) {
|
||||
throw new Error(`Tried executing non-executable value ${opCode.literalValue} at index ${index}`);
|
||||
}
|
||||
|
||||
const parameterModes = opCode.parameterModes!;
|
||||
const valueA = this.memory[index + 1]?.literalValue ?? 0;
|
||||
const valueB = this.memory[index + 2]?.literalValue ?? 0;
|
||||
const valueC = this.memory[index + 3]?.literalValue ?? 0;
|
||||
|
||||
const paramA = this.parseParam(valueA, parameterModes[2 - 0], relative);
|
||||
const paramB = this.parseParam(valueB, parameterModes[2 - 1], relative);
|
||||
const paramC = this.parseParam(valueC, parameterModes[2 - 2], relative);
|
||||
|
||||
if (debug) {
|
||||
console.debug(`${opCode.literalValue}(${valueA}, ${valueB}, ${valueC});${this.memory[1028]?.literalValue}`);
|
||||
}
|
||||
|
||||
switch (opCode.instruction) {
|
||||
case Instruction.add:
|
||||
if (debug) {
|
||||
console.debug(
|
||||
`Adding ${paramA}+${paramB} and writing ${paramA + paramB} to ${valueC} - OpCode ${opCode.literalValue}`
|
||||
);
|
||||
}
|
||||
if (parameterModes[2 - 2] === ParameterMode.relative) {
|
||||
this.memory[valueC + relative] = new OpCode(paramA + paramB);
|
||||
} else {
|
||||
this.memory[valueC] = new OpCode(paramA + paramB);
|
||||
}
|
||||
index += 4;
|
||||
break;
|
||||
case Instruction.mul:
|
||||
if (debug) {
|
||||
console.debug(
|
||||
`Multiplying ${paramA}*${paramB} and writing ${paramA * paramB} to ${valueC} - OpCode ${
|
||||
opCode.literalValue
|
||||
}`
|
||||
);
|
||||
}
|
||||
if (parameterModes[2 - 2] === ParameterMode.relative) {
|
||||
this.memory[valueC + relative] = new OpCode(paramA * paramB);
|
||||
} else {
|
||||
this.memory[valueC] = new OpCode(paramA * paramB);
|
||||
}
|
||||
index += 4;
|
||||
break;
|
||||
case Instruction.inp:
|
||||
let input = await new Promise<OpCode>((resolve, reject) => {
|
||||
rl.question(`[${index.toString().padStart(5, "0")}]> `, (answer) => {
|
||||
try {
|
||||
const op = new OpCode(answer);
|
||||
if (debug) {
|
||||
console.debug(
|
||||
`Writing opCode with value ${op.literalValue} to ${
|
||||
parameterModes[2 - 0] === ParameterMode.relative ? valueA + relative : valueA
|
||||
} - OpCode ${opCode.literalValue}`
|
||||
);
|
||||
}
|
||||
resolve(op);
|
||||
} catch (e) {
|
||||
reject(e);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
if (parameterModes[2 - 0] === ParameterMode.relative) {
|
||||
this.memory[valueA + relative] = input;
|
||||
} else {
|
||||
this.memory[valueA] = input;
|
||||
}
|
||||
|
||||
index += 2;
|
||||
break;
|
||||
case Instruction.out:
|
||||
if (debug) {
|
||||
console.debug(`Outputting ${paramA} - OpCode ${opCode.literalValue}`);
|
||||
}
|
||||
output.push(paramA);
|
||||
index += 2;
|
||||
break;
|
||||
case Instruction.jnz:
|
||||
if (debug) {
|
||||
console.debug(`Testing if ${paramA}!=0, if so, jumping to ${paramB} - OpCode ${opCode.literalValue}`);
|
||||
}
|
||||
if (paramA !== 0) {
|
||||
index = paramB;
|
||||
} else {
|
||||
index += 3;
|
||||
}
|
||||
break;
|
||||
case Instruction.jz:
|
||||
if (debug) {
|
||||
console.debug(`Testing if ${paramA}==0, if so, jumping to ${paramB} - OpCode ${opCode.literalValue}`);
|
||||
}
|
||||
if (paramA === 0) {
|
||||
index = paramB;
|
||||
} else {
|
||||
index += 3;
|
||||
}
|
||||
break;
|
||||
case Instruction.lt:
|
||||
if (debug) {
|
||||
console.debug(
|
||||
`Checking if ${paramA}<${paramB} and writing result to ${
|
||||
parameterModes[2 - 2] === ParameterMode.relative ? valueC + relative : valueC
|
||||
} - OpCode ${opCode.literalValue}`
|
||||
);
|
||||
}
|
||||
if (parameterModes[2 - 2] === ParameterMode.relative) {
|
||||
this.memory[valueC + relative] = new OpCode(paramA < paramB ? 1 : 0);
|
||||
} else {
|
||||
this.memory[valueC] = new OpCode(paramA < paramB ? 1 : 0);
|
||||
}
|
||||
index += 4;
|
||||
break;
|
||||
case Instruction.eq:
|
||||
if (debug) {
|
||||
console.debug(
|
||||
`Checking if ${paramA}==${paramB} and writing result to ${
|
||||
parameterModes[2 - 2] === ParameterMode.relative ? valueC + relative : valueC
|
||||
} - OpCode ${opCode.literalValue}`
|
||||
);
|
||||
}
|
||||
if (parameterModes[2 - 2] === ParameterMode.relative) {
|
||||
this.memory[valueC + relative] = new OpCode(paramA === paramB ? 1 : 0);
|
||||
} else {
|
||||
this.memory[valueC] = new OpCode(paramA === paramB ? 1 : 0);
|
||||
}
|
||||
index += 4;
|
||||
break;
|
||||
case Instruction.rel:
|
||||
if (debug) {
|
||||
console.debug(
|
||||
`Adjusting relative offset from ${relative} +${paramA} to ${relative + paramA} - OpCode ${
|
||||
opCode.literalValue
|
||||
}`
|
||||
);
|
||||
}
|
||||
relative += paramA;
|
||||
index += 2;
|
||||
break;
|
||||
case Instruction.end:
|
||||
console.log("Final output:", output);
|
||||
return this.memory;
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
console.debug(`Execution failed at index ${index}. Dumping memory.`);
|
||||
if (debug) {
|
||||
debugLog!.write(
|
||||
`${debugIteration.toString().padStart(5, "0")};${index.toString().padStart(5, "0")};[${this.memory
|
||||
.map((op) => op.literalValue)
|
||||
.join(",")}]\n`
|
||||
);
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
console.log("Final output:", output);
|
||||
return this.memory;
|
||||
}
|
||||
|
||||
reset() {
|
||||
this.memory = this.initialMemory;
|
||||
}
|
||||
|
||||
static memdump(memory: Memory) {
|
||||
return memory.map((op) => op.toString()).join(",");
|
||||
}
|
||||
}
|
||||
|
||||
async function main(code: string) {
|
||||
const memdump: Memory = code.split(",").map((val) => new OpCode(val));
|
||||
|
||||
const machine = new Machine(memdump);
|
||||
const result = await machine.run();
|
||||
rl.close();
|
||||
return; // result ? Machine.memdump(result) : result;
|
||||
}
|
||||
|
||||
const input = fs.readFileSync("input").toString();
|
||||
main(input)
|
||||
.then(console.log)
|
||||
.catch((...args) => {
|
||||
rl.close();
|
||||
console.error(args);
|
||||
});
|
1
2019/JavaScript-TypeScript/day9/solution_b.ts
Normal file
1
2019/JavaScript-TypeScript/day9/solution_b.ts
Normal file
|
@ -0,0 +1 @@
|
|||
// Same as solution_a but with input 2 instead of 1
|
69
2019/JavaScript-TypeScript/day9/tsconfig.json
Normal file
69
2019/JavaScript-TypeScript/day9/tsconfig.json
Normal file
|
@ -0,0 +1,69 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
/* Visit https://aka.ms/tsconfig.json to read more about this file */
|
||||
|
||||
/* Basic Options */
|
||||
// "incremental": true, /* Enable incremental compilation */
|
||||
"target": "ES2019", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
|
||||
"module": "CommonJS", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
|
||||
// "lib": [], /* Specify library files to be included in the compilation. */
|
||||
// "allowJs": true, /* Allow javascript files to be compiled. */
|
||||
// "checkJs": true, /* Report errors in .js files. */
|
||||
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
||||
// "declaration": true, /* Generates corresponding '.d.ts' file. */
|
||||
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
||||
"sourceMap": false, /* Generates corresponding '.map' file. */
|
||||
// "outFile": "./", /* Concatenate and emit output to single file. */
|
||||
// "outDir": "./", /* Redirect output structure to the directory. */
|
||||
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
||||
// "composite": true, /* Enable project compilation */
|
||||
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
|
||||
// "removeComments": true, /* Do not emit comments to output. */
|
||||
"noEmit": true, /* Do not emit outputs. */
|
||||
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
|
||||
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
|
||||
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
|
||||
|
||||
/* Strict Type-Checking Options */
|
||||
"strict": true, /* Enable all strict type-checking options. */
|
||||
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
|
||||
// "strictNullChecks": true, /* Enable strict null checks. */
|
||||
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
|
||||
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
|
||||
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
|
||||
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
|
||||
"alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
||||
|
||||
/* Additional Checks */
|
||||
// "noUnusedLocals": true, /* Report errors on unused locals. */
|
||||
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
||||
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
||||
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
||||
|
||||
/* Module Resolution Options */
|
||||
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
||||
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
||||
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
||||
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
||||
// "typeRoots": [], /* List of folders to include type definitions from. */
|
||||
// "types": [], /* Type declaration files to be included in compilation. */
|
||||
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
||||
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
||||
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
||||
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
||||
|
||||
/* Source Map Options */
|
||||
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
||||
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
||||
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
||||
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
||||
|
||||
/* Experimental Options */
|
||||
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
||||
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
||||
|
||||
/* Advanced Options */
|
||||
"skipLibCheck": true, /* Skip type checking of declaration files. */
|
||||
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
|
||||
}
|
||||
}
|
67
2019/JavaScript-TypeScript/day9/yarn.lock
Normal file
67
2019/JavaScript-TypeScript/day9/yarn.lock
Normal file
|
@ -0,0 +1,67 @@
|
|||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
# yarn lockfile v1
|
||||
|
||||
|
||||
"@types/node@^14.14.8":
|
||||
version "14.14.8"
|
||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.8.tgz#2127bd81949a95c8b7d3240f3254352d72563aec"
|
||||
integrity sha512-z/5Yd59dCKI5kbxauAJgw6dLPzW+TNOItNE00PkpzNwUIEwdj/Lsqwq94H5DdYBX7C13aRA0CY32BK76+neEUA==
|
||||
|
||||
arg@^4.1.0:
|
||||
version "4.1.3"
|
||||
resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089"
|
||||
integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==
|
||||
|
||||
buffer-from@^1.0.0:
|
||||
version "1.1.1"
|
||||
resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef"
|
||||
integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==
|
||||
|
||||
diff@^4.0.1:
|
||||
version "4.0.2"
|
||||
resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d"
|
||||
integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==
|
||||
|
||||
make-error@^1.1.1:
|
||||
version "1.3.6"
|
||||
resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2"
|
||||
integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==
|
||||
|
||||
prettier@^2.1.2:
|
||||
version "2.1.2"
|
||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.1.2.tgz#3050700dae2e4c8b67c4c3f666cdb8af405e1ce5"
|
||||
integrity sha512-16c7K+x4qVlJg9rEbXl7HEGmQyZlG4R9AgP+oHKRMsMsuk8s+ATStlf1NpDqyBI1HpVyfjLOeMhH2LvuNvV5Vg==
|
||||
|
||||
source-map-support@^0.5.17:
|
||||
version "0.5.19"
|
||||
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61"
|
||||
integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==
|
||||
dependencies:
|
||||
buffer-from "^1.0.0"
|
||||
source-map "^0.6.0"
|
||||
|
||||
source-map@^0.6.0:
|
||||
version "0.6.1"
|
||||
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
|
||||
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
|
||||
|
||||
ts-node@^9.0.0:
|
||||
version "9.0.0"
|
||||
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-9.0.0.tgz#e7699d2a110cc8c0d3b831715e417688683460b3"
|
||||
integrity sha512-/TqB4SnererCDR/vb4S/QvSZvzQMJN8daAslg7MeaiHvD8rDZsSfXmNeNumyZZzMned72Xoq/isQljYSt8Ynfg==
|
||||
dependencies:
|
||||
arg "^4.1.0"
|
||||
diff "^4.0.1"
|
||||
make-error "^1.1.1"
|
||||
source-map-support "^0.5.17"
|
||||
yn "3.1.1"
|
||||
|
||||
typescript@^4.0.5:
|
||||
version "4.0.5"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.5.tgz#ae9dddfd1069f1cb5beb3ef3b2170dd7c1332389"
|
||||
integrity sha512-ywmr/VrTVCmNTJ6iV2LwIrfG1P+lv6luD8sUJs+2eI9NLGigaN+nUQc13iHqisq7bra9lnmUSYqbJvegraBOPQ==
|
||||
|
||||
yn@3.1.1:
|
||||
version "3.1.1"
|
||||
resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50"
|
||||
integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==
|
Loading…
Reference in a new issue