lib/aws_dynamodbstreams.js
function deps(s, p) {
        if (!shards.map[p] || !shards.map[p].ParentShardId) return;
        shards.deps[s] = lib.toFlags("add", shards.deps[s], shards.map[p].ParentShardId);
        deps(s, shards.map[p].ParentShardId);
    }
function deps(s, p) {
        if (!shards.map[p] || !shards.map[p].ParentShardId) return;
        shards.deps[s] = lib.toFlags("add", shards.deps[s], shards.map[p].ParentShardId);
        deps(s, shards.map[p].ParentShardId);
    }
function deps ( s , p ) { if ( ! shards . map [ p ] || ! shards . map [ p ] . ParentShardId ) return ; shards . deps [ s ] = lib . toFlags ( "add" , shards . deps [ s ] , shards . map [ p ] . ParentShardId ) ; deps ( s , shards . map [ p ] . ParentShardId ) ; }
For each shard keep all dependencies including parent's dependencies in one list for fast checks
For each shard keep all dependencies including parent s dependencies in one list for fast checks