@blamejs/core 0.6.12 → 0.6.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/NOTICE +16 -0
- package/README.md +9 -8
- package/index.js +12 -0
- package/lib/api-key.js +2 -3
- package/lib/audit.js +4 -0
- package/lib/auth/password.js +449 -4
- package/lib/cache.js +3 -7
- package/lib/cli.js +598 -4
- package/lib/config-drift.js +309 -0
- package/lib/crypto-field.js +37 -0
- package/lib/crypto.js +8 -0
- package/lib/db.js +17 -2
- package/lib/dual-control.js +475 -0
- package/lib/file-type.js +265 -0
- package/lib/http-client.js +77 -0
- package/lib/internal-sha1-hibp.js +34 -0
- package/lib/middleware/csp-nonce.js +7 -4
- package/lib/middleware/index.js +2 -0
- package/lib/middleware/network-allowlist.js +199 -0
- package/lib/network-dns.js +469 -0
- package/lib/network-heartbeat.js +290 -0
- package/lib/network-nts.js +552 -0
- package/lib/network-proxy.js +246 -0
- package/lib/network-tls.js +326 -0
- package/lib/network.js +233 -0
- package/lib/notify.js +2 -3
- package/lib/ntp-check.js +50 -4
- package/lib/numeric-checks.js +40 -0
- package/lib/object-store/azure-blob.js +16 -42
- package/lib/permissions.js +223 -9
- package/lib/pqc-agent.js +4 -4
- package/lib/queue.js +5 -5
- package/lib/restore.js +5 -3
- package/lib/retention.js +439 -0
- package/lib/retry.js +3 -6
- package/lib/security-assert.js +368 -0
- package/lib/session.js +138 -8
- package/lib/slug.js +2 -3
- package/lib/ssrf-guard.js +9 -0
- package/lib/testing.js +3 -7
- package/lib/vendor/MANIFEST.json +12 -0
- package/lib/vendor/common-passwords-top-10000.txt +10000 -0
- package/lib/webhook.js +3 -6
- package/package.json +3 -2
- package/sbom.cyclonedx.json +61 -0
package/lib/permissions.js
CHANGED
|
@@ -117,7 +117,8 @@ function _validateScopePattern(scope, ctx) {
|
|
|
117
117
|
|
|
118
118
|
function _normalizeRoleEntry(name, entry) {
|
|
119
119
|
if (Array.isArray(entry)) {
|
|
120
|
-
return { extends: [], permissions: entry.slice(), dbRole: null
|
|
120
|
+
return { extends: [], permissions: entry.slice(), dbRole: null,
|
|
121
|
+
requireMfa: false, mfaWindowMs: null };
|
|
121
122
|
}
|
|
122
123
|
if (entry && typeof entry === "object") {
|
|
123
124
|
var ext = entry.extends || [];
|
|
@@ -146,9 +147,19 @@ function _normalizeRoleEntry(name, entry) {
|
|
|
146
147
|
}
|
|
147
148
|
dbRole = entry.dbRole;
|
|
148
149
|
}
|
|
149
|
-
|
|
150
|
+
var requireMfa = entry.requireMfa === true;
|
|
151
|
+
var mfaWindowMs = null;
|
|
152
|
+
if (entry.mfaWindowMs !== undefined && entry.mfaWindowMs !== null) {
|
|
153
|
+
if (typeof entry.mfaWindowMs !== "number" || !isFinite(entry.mfaWindowMs) || entry.mfaWindowMs <= 0) {
|
|
154
|
+
throw _err("BAD_ROLE",
|
|
155
|
+
"role '" + name + "': mfaWindowMs must be a positive finite number");
|
|
156
|
+
}
|
|
157
|
+
mfaWindowMs = entry.mfaWindowMs;
|
|
158
|
+
}
|
|
159
|
+
return { extends: ext.slice(), permissions: perms.slice(), dbRole: dbRole,
|
|
160
|
+
requireMfa: requireMfa, mfaWindowMs: mfaWindowMs };
|
|
150
161
|
}
|
|
151
|
-
throw _err("BAD_ROLE", "role '" + name + "' must be an array of scopes or { extends?, permissions, dbRole? }");
|
|
162
|
+
throw _err("BAD_ROLE", "role '" + name + "' must be an array of scopes or { extends?, permissions, dbRole?, requireMfa?, mfaWindowMs? }");
|
|
152
163
|
}
|
|
153
164
|
|
|
154
165
|
function _validateRoles(roles) {
|
|
@@ -279,6 +290,33 @@ function create(opts) {
|
|
|
279
290
|
var missingActorStatus = opts.missingActorStatus || DEFAULTS.missingActorStatus;
|
|
280
291
|
var responder = opts.responder || _defaultResponder;
|
|
281
292
|
|
|
293
|
+
// ABAC predicate registry. Each entry: scope-string → async predicate
|
|
294
|
+
// function (actor, context) → boolean. The middleware evaluates the
|
|
295
|
+
// predicate AFTER the RBAC scope check passes — so a route protected
|
|
296
|
+
// by `perms.require("orders.read")` first checks the actor has the
|
|
297
|
+
// orders:read scope, then (if the scope has a policy registered)
|
|
298
|
+
// evaluates the predicate with the actor + a per-request context
|
|
299
|
+
// built by the route's `context` middleware opt. ABAC + RBAC stack
|
|
300
|
+
// — a route needs to pass BOTH layers when both are configured.
|
|
301
|
+
var policies = {};
|
|
302
|
+
|
|
303
|
+
function policy(scope, predicate) {
|
|
304
|
+
_validateScopePattern(scope, "permissions.policy");
|
|
305
|
+
if (typeof predicate !== "function") {
|
|
306
|
+
throw _err("BAD_OPT", "permissions.policy: predicate must be a function (actor, context) -> bool");
|
|
307
|
+
}
|
|
308
|
+
if (policies[scope]) {
|
|
309
|
+
throw _err("DUPLICATE_POLICY", "permissions.policy: '" + scope + "' is already registered");
|
|
310
|
+
}
|
|
311
|
+
policies[scope] = predicate;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
function _findPolicy(requestedScope) {
|
|
315
|
+
// Exact match wins; no wildcard expansion (a wildcard policy
|
|
316
|
+
// gating arbitrary scopes is too easy to misconfigure).
|
|
317
|
+
return policies[requestedScope] || null;
|
|
318
|
+
}
|
|
319
|
+
|
|
282
320
|
function _auditEmit(action, info) {
|
|
283
321
|
if (!audit) return;
|
|
284
322
|
if (info && info.outcome === "success" && !auditSuccess) return;
|
|
@@ -332,7 +370,7 @@ function create(opts) {
|
|
|
332
370
|
|
|
333
371
|
// Middleware factory. `mode` is "single" | "all" | "any"; `requested`
|
|
334
372
|
// is the scope or scope list. Throw at registration time on bad shape.
|
|
335
|
-
function _middleware(mode, requested) {
|
|
373
|
+
function _middleware(mode, requested, mwOpts) {
|
|
336
374
|
if (mode === "single") {
|
|
337
375
|
_validateScopePattern(requested, "permissions.require");
|
|
338
376
|
} else {
|
|
@@ -345,7 +383,31 @@ function create(opts) {
|
|
|
345
383
|
}
|
|
346
384
|
}
|
|
347
385
|
|
|
348
|
-
|
|
386
|
+
// Per-route MFA enforcement opts: { requireMfa, mfaWindowMs }.
|
|
387
|
+
// When set, the middleware blocks unless the actor's mfaAuthenticated
|
|
388
|
+
// flag is truthy AND (when mfaWindowMs is set) actor.mfaAt is fresher
|
|
389
|
+
// than (now - mfaWindowMs). The actor signal is operator-set: after
|
|
390
|
+
// a successful TOTP / passkey step-up, the route handler stamps
|
|
391
|
+
// req.user.mfaAuthenticated = true and req.user.mfaAt = Date.now().
|
|
392
|
+
mwOpts = mwOpts || {};
|
|
393
|
+
var routeRequireMfa = mwOpts.requireMfa === true;
|
|
394
|
+
var routeMfaWindowMs = null;
|
|
395
|
+
if (mwOpts.mfaWindowMs !== undefined && mwOpts.mfaWindowMs !== null) {
|
|
396
|
+
if (typeof mwOpts.mfaWindowMs !== "number" || !isFinite(mwOpts.mfaWindowMs) || mwOpts.mfaWindowMs <= 0) {
|
|
397
|
+
throw _err("BAD_OPT", "permissions middleware: mfaWindowMs must be a positive finite number");
|
|
398
|
+
}
|
|
399
|
+
routeMfaWindowMs = mwOpts.mfaWindowMs;
|
|
400
|
+
}
|
|
401
|
+
// ABAC context provider — operator-supplied function (req)→object.
|
|
402
|
+
// The function runs once per request, AFTER scope/MFA pass, BEFORE
|
|
403
|
+
// the policy predicate. Whatever it returns is passed to the
|
|
404
|
+
// policy as `context`. Async functions are awaited.
|
|
405
|
+
var contextProvider = mwOpts.context;
|
|
406
|
+
if (contextProvider !== undefined && typeof contextProvider !== "function") {
|
|
407
|
+
throw _err("BAD_OPT", "permissions middleware: context must be a function (req) -> object");
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
return async function permissionsMiddleware(req, res, next) {
|
|
349
411
|
var actor = resolver(req);
|
|
350
412
|
if (!actor) {
|
|
351
413
|
// Diagnostic: the most common cause of a null actor is that
|
|
@@ -392,13 +454,164 @@ function create(opts) {
|
|
|
392
454
|
});
|
|
393
455
|
}
|
|
394
456
|
|
|
457
|
+
// MFA enforcement gate. Two sources of "this needs MFA":
|
|
458
|
+
// 1. Per-route opt: perms.require("scope", { requireMfa: true })
|
|
459
|
+
// 2. Per-role flag: a role spec with requireMfa:true that
|
|
460
|
+
// contributes to satisfying the requested scope
|
|
461
|
+
// Either source enabling MFA forces the gate. mfaWindowMs (per-route
|
|
462
|
+
// OR per-role, route wins on conflict) bounds freshness — without
|
|
463
|
+
// it, ANY past MFA stamp counts (which is too permissive for high-
|
|
464
|
+
// value routes; operators set a window like C.TIME.minutes(15)).
|
|
465
|
+
var enforceMfa = routeRequireMfa;
|
|
466
|
+
var enforceWindowMs = routeMfaWindowMs;
|
|
467
|
+
if (!enforceMfa) {
|
|
468
|
+
// Walk the actor's roles and check whether any role with
|
|
469
|
+
// requireMfa=true contributes a permission that matches the
|
|
470
|
+
// requested scope. If so, MFA is required regardless of the
|
|
471
|
+
// route-level opt.
|
|
472
|
+
var actorRoles = Array.isArray(actor.roles) ? actor.roles : [];
|
|
473
|
+
for (var ri = 0; ri < actorRoles.length; ri++) {
|
|
474
|
+
var rname = actorRoles[ri];
|
|
475
|
+
if (typeof rname !== "string") continue;
|
|
476
|
+
var rspec = roleTable[rname];
|
|
477
|
+
if (!rspec || !rspec.requireMfa) continue;
|
|
478
|
+
// Cheap match: if the role grants any scope that satisfies the
|
|
479
|
+
// requested scope (single mode) or any of the requested
|
|
480
|
+
// (all/any modes), MFA is required for this route.
|
|
481
|
+
var visited = new Set();
|
|
482
|
+
var roleScopes = [];
|
|
483
|
+
_expandOne(rname, roleTable, visited, roleScopes);
|
|
484
|
+
var roleMatches = false;
|
|
485
|
+
var requestedList = mode === "single" ? [requested] : requested;
|
|
486
|
+
outer: for (var rj = 0; rj < roleScopes.length; rj++) {
|
|
487
|
+
for (var rk = 0; rk < requestedList.length; rk++) {
|
|
488
|
+
if (match(roleScopes[rj], requestedList[rk])) {
|
|
489
|
+
roleMatches = true; break outer;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
if (roleMatches) {
|
|
494
|
+
enforceMfa = true;
|
|
495
|
+
if (enforceWindowMs === null && rspec.mfaWindowMs !== null) {
|
|
496
|
+
enforceWindowMs = rspec.mfaWindowMs;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
if (enforceMfa) {
|
|
503
|
+
var mfaOk = actor.mfaAuthenticated === true;
|
|
504
|
+
if (mfaOk && enforceWindowMs !== null) {
|
|
505
|
+
var mfaAt = typeof actor.mfaAt === "number" ? actor.mfaAt : 0;
|
|
506
|
+
if (Date.now() - mfaAt > enforceWindowMs) {
|
|
507
|
+
mfaOk = false;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
if (!mfaOk) {
|
|
511
|
+
_emitEvent("permissions.mfa_required", 1,
|
|
512
|
+
{ requested: _labelize(requested), mode: mode });
|
|
513
|
+
_auditEmit("permissions.mfa.required", {
|
|
514
|
+
actor: _actorAuditShape(actor, req),
|
|
515
|
+
resource: { kind: "permission", id: _labelize(requested) },
|
|
516
|
+
outcome: "denied",
|
|
517
|
+
reason: "mfa-required",
|
|
518
|
+
metadata: { mode: mode, windowMs: enforceWindowMs },
|
|
519
|
+
});
|
|
520
|
+
return responder(req, res, denyStatus, {
|
|
521
|
+
error: "mfa_required",
|
|
522
|
+
status: denyStatus,
|
|
523
|
+
requested: _labelize(requested),
|
|
524
|
+
});
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
// ABAC layer fires for every requested scope that has a
|
|
529
|
+
// registered policy predicate. Single-mode evaluates the one
|
|
530
|
+
// scope; requireAll evaluates each scope's policy (every must
|
|
531
|
+
// pass); requireAny evaluates only the policies on scopes the
|
|
532
|
+
// actor's RBAC layer satisfied (so a failing policy on a scope
|
|
533
|
+
// the actor doesn't even hold doesn't leak the policy's
|
|
534
|
+
// existence). Each predicate failure short-circuits with a
|
|
535
|
+
// policy.deny audit row naming the failing scope.
|
|
536
|
+
var policyTargets = [];
|
|
537
|
+
if (mode === "single" && _findPolicy(requested)) {
|
|
538
|
+
policyTargets.push(requested);
|
|
539
|
+
} else if (mode === "all" || mode === "any") {
|
|
540
|
+
for (var pi = 0; pi < requested.length; pi++) {
|
|
541
|
+
if (_findPolicy(requested[pi])) {
|
|
542
|
+
if (mode === "any" && !check(actor, requested[pi])) continue;
|
|
543
|
+
policyTargets.push(requested[pi]);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
if (policyTargets.length > 0) {
|
|
548
|
+
var policyContext = null;
|
|
549
|
+
if (contextProvider) {
|
|
550
|
+
try {
|
|
551
|
+
policyContext = await contextProvider(req);
|
|
552
|
+
} catch (e) {
|
|
553
|
+
_emitEvent("permissions.policy_context_error", 1,
|
|
554
|
+
{ requested: _labelize(requested) });
|
|
555
|
+
_auditEmit("permissions.policy.error", {
|
|
556
|
+
actor: _actorAuditShape(actor, req),
|
|
557
|
+
resource: { kind: "permission", id: _labelize(requested) },
|
|
558
|
+
outcome: "failure",
|
|
559
|
+
reason: "context-provider-threw",
|
|
560
|
+
metadata: { error: (e && e.message) || String(e), mode: mode },
|
|
561
|
+
});
|
|
562
|
+
return responder(req, res, denyStatus, {
|
|
563
|
+
error: "policy_context_error",
|
|
564
|
+
status: denyStatus,
|
|
565
|
+
requested: _labelize(requested),
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
for (var pti = 0; pti < policyTargets.length; pti++) {
|
|
570
|
+
var thisScope = policyTargets[pti];
|
|
571
|
+
var pred = _findPolicy(thisScope);
|
|
572
|
+
var verdict;
|
|
573
|
+
try {
|
|
574
|
+
verdict = await pred(actor, policyContext);
|
|
575
|
+
} catch (e2) {
|
|
576
|
+
_emitEvent("permissions.policy_error", 1, { requested: thisScope });
|
|
577
|
+
_auditEmit("permissions.policy.error", {
|
|
578
|
+
actor: _actorAuditShape(actor, req),
|
|
579
|
+
resource: { kind: "permission", id: thisScope },
|
|
580
|
+
outcome: "failure",
|
|
581
|
+
reason: "predicate-threw",
|
|
582
|
+
metadata: { error: (e2 && e2.message) || String(e2), mode: mode },
|
|
583
|
+
});
|
|
584
|
+
return responder(req, res, denyStatus, {
|
|
585
|
+
error: "policy_error",
|
|
586
|
+
status: denyStatus,
|
|
587
|
+
requested: thisScope,
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
if (verdict !== true) {
|
|
591
|
+
_emitEvent("permissions.policy_denied", 1, { requested: thisScope });
|
|
592
|
+
_auditEmit("permissions.policy.deny", {
|
|
593
|
+
actor: _actorAuditShape(actor, req),
|
|
594
|
+
resource: { kind: "permission", id: thisScope },
|
|
595
|
+
outcome: "failure",
|
|
596
|
+
reason: "policy-predicate-returned-falsy",
|
|
597
|
+
metadata: { mode: mode, scopeIndex: pti },
|
|
598
|
+
});
|
|
599
|
+
return responder(req, res, denyStatus, {
|
|
600
|
+
error: "policy_denied",
|
|
601
|
+
status: denyStatus,
|
|
602
|
+
requested: thisScope,
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
|
|
395
608
|
_emitEvent("permissions.check", 1,
|
|
396
609
|
{ outcome: "success", mode: mode });
|
|
397
610
|
_auditEmit("permissions.check.success", {
|
|
398
611
|
actor: _actorAuditShape(actor, req),
|
|
399
612
|
resource: { kind: "permission", id: _labelize(requested) },
|
|
400
613
|
outcome: "success",
|
|
401
|
-
metadata: { mode: mode },
|
|
614
|
+
metadata: { mode: mode, mfaEnforced: enforceMfa },
|
|
402
615
|
});
|
|
403
616
|
next();
|
|
404
617
|
};
|
|
@@ -443,9 +656,10 @@ function create(opts) {
|
|
|
443
656
|
}
|
|
444
657
|
|
|
445
658
|
return {
|
|
446
|
-
require: function (scope) { return _middleware("single", scope); },
|
|
447
|
-
requireAll: function (scopes) { return _middleware("all", scopes); },
|
|
448
|
-
requireAny: function (scopes) { return _middleware("any", scopes); },
|
|
659
|
+
require: function (scope, mwOpts) { return _middleware("single", scope, mwOpts); },
|
|
660
|
+
requireAll: function (scopes, mwOpts) { return _middleware("all", scopes, mwOpts); },
|
|
661
|
+
requireAny: function (scopes, mwOpts) { return _middleware("any", scopes, mwOpts); },
|
|
662
|
+
policy: policy,
|
|
449
663
|
check: check,
|
|
450
664
|
checkAll: checkAll,
|
|
451
665
|
checkAny: checkAny,
|
package/lib/pqc-agent.js
CHANGED
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
var https = require("node:https");
|
|
32
32
|
var http = require("node:http");
|
|
33
33
|
var C = require("./constants");
|
|
34
|
+
var networkTls = require("./network-tls");
|
|
34
35
|
|
|
35
36
|
// Defaults for connection pooling. These ARE overridable via opts —
|
|
36
37
|
// only the cryptographic posture (ecdhCurve / minVersion) is locked.
|
|
@@ -45,12 +46,11 @@ var DEFAULT_OPTS = {
|
|
|
45
46
|
function _buildAgentOpts(opts) {
|
|
46
47
|
opts = opts || {};
|
|
47
48
|
var merged = Object.assign({}, DEFAULT_OPTS, opts);
|
|
48
|
-
// Cryptographic posture cannot be relaxed via opts. Even if the
|
|
49
|
-
// operator passes ecdhCurve: 'P-256' or minVersion: 'TLSv1.2', the
|
|
50
|
-
// framework defaults win. This is deliberate: the primitive's whole
|
|
51
|
-
// value is that you can't accidentally ship a downgraded agent.
|
|
52
49
|
merged.ecdhCurve = C.TLS_GROUP_CURVE_STR;
|
|
53
50
|
merged.minVersion = "TLSv1.3";
|
|
51
|
+
if (networkTls && typeof networkTls.applyToContext === "function") {
|
|
52
|
+
merged = networkTls.applyToContext({ base: merged });
|
|
53
|
+
}
|
|
54
54
|
return merged;
|
|
55
55
|
}
|
|
56
56
|
|
package/lib/queue.js
CHANGED
|
@@ -34,6 +34,7 @@ var C = require("./constants");
|
|
|
34
34
|
var clusterStorage = require("./cluster-storage");
|
|
35
35
|
var crypto = require("./crypto");
|
|
36
36
|
var lazyRequire = require("./lazy-require");
|
|
37
|
+
var numericChecks = require("./numeric-checks");
|
|
37
38
|
var observability = require("./observability");
|
|
38
39
|
var protocolDispatcher = require("./protocol-dispatcher");
|
|
39
40
|
var localProto = require("./queue-local");
|
|
@@ -190,11 +191,10 @@ function consume(queueName, handler, opts) {
|
|
|
190
191
|
if (opts.rateLimit) {
|
|
191
192
|
var rlMax = opts.rateLimit.max;
|
|
192
193
|
var rlPer = opts.rateLimit.perSeconds;
|
|
193
|
-
//
|
|
194
|
-
//
|
|
195
|
-
// perma-
|
|
196
|
-
if (
|
|
197
|
-
typeof rlPer !== "number" || !isFinite(rlPer) || rlPer <= 0) {
|
|
194
|
+
// NaN, Infinity, 0, negatives, fractional max all produce undefined
|
|
195
|
+
// throttling math (NaN deque comparisons, perma-locked queues,
|
|
196
|
+
// perma-open windows). Reject at config time.
|
|
197
|
+
if (!numericChecks.isPositiveInt(rlMax) || !numericChecks.isPositiveFinite(rlPer)) {
|
|
198
198
|
throw _err("BAD_RATE_LIMIT",
|
|
199
199
|
"consume({ rateLimit }): expected { max: positive integer, perSeconds: positive finite number }, got " +
|
|
200
200
|
JSON.stringify(opts.rateLimit), true);
|
package/lib/restore.js
CHANGED
|
@@ -54,7 +54,9 @@
|
|
|
54
54
|
var fs = require("fs");
|
|
55
55
|
var os = require("os");
|
|
56
56
|
var path = require("path");
|
|
57
|
+
var C = require("./constants");
|
|
57
58
|
var crypto = require("./crypto");
|
|
59
|
+
var numericChecks = require("./numeric-checks");
|
|
58
60
|
var restoreBundle = require("./restore-bundle");
|
|
59
61
|
var restoreRollback = require("./restore-rollback");
|
|
60
62
|
var lazyRequire = require("./lazy-require");
|
|
@@ -113,9 +115,9 @@ function create(opts) {
|
|
|
113
115
|
// (defense-in-depth in case the backend lied). Default 4 GiB / 100K
|
|
114
116
|
// files keeps the small-bundle path uncapped while bounding the
|
|
115
117
|
// pathological case.
|
|
116
|
-
var maxPulledBytes =
|
|
117
|
-
? opts.maxPulledBytes : 4
|
|
118
|
-
var maxPulledFiles =
|
|
118
|
+
var maxPulledBytes = numericChecks.isPositiveFinite(opts.maxPulledBytes)
|
|
119
|
+
? opts.maxPulledBytes : C.BYTES.gib(4);
|
|
120
|
+
var maxPulledFiles = numericChecks.isPositiveInt(opts.maxPulledFiles)
|
|
119
121
|
? opts.maxPulledFiles : 100000;
|
|
120
122
|
|
|
121
123
|
function _walkPullDirFootprint(dir) {
|