PATH:
opt
/
bitninja-threat-hunting
/
node_modules
/
tsyringe
/
dist
/
cjs
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.formatErrorCtor = void 0; function formatDependency(params, idx) { if (params === null) { return `at position #${idx}`; } const argName = params.split(",")[idx].trim(); return `"${argName}" at position #${idx}`; } function composeErrorMessage(msg, e, indent = " ") { return [msg, ...e.message.split("\n").map(l => indent + l)].join("\n"); } function formatErrorCtor(ctor, paramIdx, error) { const [, params = null] = ctor.toString().match(/constructor\(([\w, ]+)\)/) || []; const dep = formatDependency(params, paramIdx); return composeErrorMessage(`Cannot inject the dependency ${dep} of "${ctor.name}" constructor. Reason:`, error); } exports.formatErrorCtor = formatErrorCtor;
[+]
decorators
[+]
..
[-] error-helpers.js
[edit]
[+]
providers
[+]
types
[-] resolution-context.js
[edit]
[-] lazy-helpers.js
[edit]
[-] registry-base.js
[edit]
[-] index.js
[edit]
[-] reflection-helpers.js
[edit]
[-] registry.js
[edit]
[-] dependency-container.js
[edit]
[-] interceptors.js
[edit]
[+]
factories