.
├── index.js
├── package.json
└── sub
├── a.js
└── b.js
console.log('module a');
module.exports = module;
console.log('module b');
const moduleA = require('./sub/a.js');
moduleA.require('./b.js');
require('./b.js');
$ node index.js
module a
module b
module.js:515
throw err;
^
Error: Cannot find module './b.js'
at Function.Module._resolveFilename (module.js:513:15)
at Function.Module._load (module.js:463:25)
at Module.require (module.js:556:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/anton/projects/node/require-test/index.js:3:1)
at Module._compile (module.js:612:30)
at Object.Module._extensions..js (module.js:623:10)
at Module.load (module.js:531:32)
at tryModuleLoad (module.js:494:12)
at Function.Module._load (module.js:486:3)
----запрос---> сервис валидации <---- запрос валидный ----> бэкэнд
^ |
| запрос не валидный
| |
----- 400 -----------
SELECT * FROM table1
LEFT JOIN table2 ON table2.ref = table1.id
LEFT JOIN table3 ON table3.ref = table1.id
* * * * * php myscript.php
* * * * * sleep 10 && php myscript.php
* * * * * sleep 20 && php myscript.php
* * * * * sleep 30 && php myscript.php
* * * * * sleep 40 && php myscript.php
* * * * * sleep 50 && php myscript.php
var url = 'http://user:password@192.168.1.1/ws/test.1cws?wsdl';
SELECT * FROM table GROUP BY user_id HAVING SUM (status_id) = 0
function getRequestFactory() {
const ws = initWSConnection();
return () => { return new Request(ws) }
}