mirror of
https://github.com/JonasunderscoreJones/jonas_jones-api.git
synced 2025-10-23 17:19:18 +02:00
some progress
This commit is contained in:
parent
aea93a5527
commit
e3c15bd288
1388 changed files with 306946 additions and 68323 deletions
15
node_modules/mongoose/scripts/tsc-diagnostics-check.js
generated
vendored
Normal file
15
node_modules/mongoose/scripts/tsc-diagnostics-check.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
'use strict';
|
||||
|
||||
const fs = require('fs');
|
||||
|
||||
const stdin = fs.readFileSync(0).toString('utf8');
|
||||
const maxInstantiations = isNaN(process.argv[2]) ? 110000 : parseInt(process.argv[2], 10);
|
||||
|
||||
console.log(stdin);
|
||||
|
||||
const numInstantiations = parseInt(stdin.match(/Instantiations:\s+(\d+)/)[1], 10);
|
||||
if (numInstantiations > maxInstantiations) {
|
||||
throw new Error(`Instantiations ${numInstantiations} > max ${maxInstantiations}`);
|
||||
}
|
||||
|
||||
process.exit(0);
|
Loading…
Add table
Add a link
Reference in a new issue