1- import * as _ from 'underscore' ;
21import FeedParser from 'feedparser' ;
32import got from 'got' ;
43import * as async from 'async' ;
@@ -8,6 +7,7 @@ import { findWhitelistRecordFor } from '../../lib/whitelist.js';
87import { getPluginData as iframelyGetPluginData } from '../../lib/core.js' ;
98import * as pluginLoader from '../../lib/loader/pluginLoader.js' ;
109import * as pluginUtils from '../../lib/loader/utils.js' ;
10+ import { difference , intersection , union } from '../../utils.js' ;
1111
1212var plugins = pluginLoader . _plugins ,
1313 pluginsList = pluginLoader . _pluginsList ,
@@ -226,8 +226,8 @@ export function getPluginUnusedMethods(pluginId, debugData) {
226226
227227 return {
228228 allMandatoryMethods : pluginMethods . mandatory ,
229- mandatory : _ . difference ( pluginMethods . mandatory , usedMethods ) ,
230- skipped : _ . difference ( pluginMethods . skipped , usedMethods )
229+ mandatory : difference ( pluginMethods . mandatory , usedMethods ) ,
230+ skipped : difference ( pluginMethods . skipped , usedMethods )
231231 } ;
232232} ;
233233
@@ -435,9 +435,9 @@ function findAllPluginMethods(pluginId, plugins, result, skipped) {
435435 var skipMethods = [ ] ;
436436 var tests = plugin . module . tests ;
437437 tests && tests . forEach && tests . forEach ( function ( test ) {
438- skipMixins = _ . union ( skipMixins , test . skipMixins , globalSkipMixins ) ;
438+ skipMixins = union ( skipMixins , test . skipMixins , globalSkipMixins ) ;
439439 if ( test . skipMethods ) {
440- skipMethods = _ . union ( skipMethods , test . skipMethods ) ;
440+ skipMethods = union ( skipMethods , test . skipMethods ) ;
441441 }
442442 } ) ;
443443
@@ -500,7 +500,7 @@ function findUsedMethods(options, debugData, result) {
500500
501501 if ( options . findByData ) {
502502 try {
503- good = _ . intersection ( Object . keys ( l ) , options . findByData ) . length > 0 ;
503+ good = intersection ( Object . keys ( l ) , options . findByData ) . length > 0 ;
504504 } catch ( ex ) {
505505 good = false ;
506506 }
@@ -525,7 +525,7 @@ function findUsedMethods(options, debugData, result) {
525525
526526 // Find parent data source.
527527
528- var findSourceForRequirements = _ . difference ( params , DEFAULT_PARAMS ) ;
528+ var findSourceForRequirements = difference ( params , DEFAULT_PARAMS ) ;
529529
530530 if ( findSourceForRequirements . length > 0 ) {
531531 findUsedMethods ( {
0 commit comments