prebid.js 6.8.0 → 6.12.0
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/.babelrc.js +2 -1
- package/.circleci/config.yml +3 -3
- package/.eslintrc.js +8 -1
- package/README.md +11 -5
- package/dist/33acrossBidAdapter.js +1 -0
- package/dist/a4gBidAdapter.js +1 -0
- package/dist/ablidaBidAdapter.js +1 -0
- package/dist/adWMGAnalyticsAdapter.js +1 -0
- package/dist/adWMGBidAdapter.js +1 -0
- package/dist/adagioAnalyticsAdapter.js +1 -0
- package/dist/adagioBidAdapter.js +1 -0
- package/dist/adbookpspBidAdapter.js +1 -0
- package/dist/addefendBidAdapter.js +1 -0
- package/dist/adfBidAdapter.js +1 -0
- package/dist/adgenerationBidAdapter.js +1 -0
- package/dist/adhashBidAdapter.js +1 -0
- package/dist/adheseBidAdapter.js +1 -0
- package/dist/adkernelAdnAnalyticsAdapter.js +1 -0
- package/dist/adkernelAdnBidAdapter.js +1 -0
- package/dist/adkernelBidAdapter.js +1 -0
- package/dist/adlooxAdServerVideo.js +1 -0
- package/dist/adlooxAnalyticsAdapter.js +1 -0
- package/dist/adlooxRtdProvider.js +1 -0
- package/dist/admanBidAdapter.js +1 -0
- package/dist/admixerBidAdapter.js +1 -0
- package/dist/admixerIdSystem.js +1 -0
- package/dist/adnowBidAdapter.js +1 -0
- package/dist/adnuntiusBidAdapter.js +1 -0
- package/dist/adnuntiusRtdProvider.js +1 -0
- package/dist/adoceanBidAdapter.js +1 -0
- package/dist/adomikAnalyticsAdapter.js +1 -0
- package/dist/adotBidAdapter.js +1 -0
- package/dist/adpartnerBidAdapter.js +1 -0
- package/dist/adplusBidAdapter.js +1 -0
- package/dist/adpod.js +1 -0
- package/dist/adponeBidAdapter.js +1 -0
- package/dist/adprimeBidAdapter.js +1 -0
- package/dist/adqueryBidAdapter.js +1 -0
- package/dist/adqueryIdSystem.js +1 -0
- package/dist/adrelevantisBidAdapter.js +1 -0
- package/dist/adriverBidAdapter.js +1 -0
- package/dist/adtargetBidAdapter.js +1 -0
- package/dist/adtelligentBidAdapter.js +1 -0
- package/dist/adtelligentIdSystem.js +1 -0
- package/dist/adtrueBidAdapter.js +1 -0
- package/dist/aduptechBidAdapter.js +1 -0
- package/dist/advangelistsBidAdapter.js +1 -0
- package/dist/adxcgAnalyticsAdapter.js +1 -0
- package/dist/adxcgBidAdapter.js +1 -0
- package/dist/adxpremiumAnalyticsAdapter.js +1 -0
- package/dist/adyoulikeBidAdapter.js +1 -0
- package/dist/afpBidAdapter.js +1 -0
- package/dist/airgridRtdProvider.js +1 -0
- package/dist/ajaBidAdapter.js +1 -0
- package/dist/akamaiDAPIdSystem.js +1 -0
- package/dist/akamaiDapRtdProvider.js +1 -0
- package/dist/amxBidAdapter.js +1 -0
- package/dist/amxIdSystem.js +1 -0
- package/dist/aniviewBidAdapter.js +1 -0
- package/dist/aolBidAdapter.js +1 -0
- package/dist/apacdexBidAdapter.js +1 -0
- package/dist/appierAnalyticsAdapter.js +1 -0
- package/dist/appierBidAdapter.js +1 -0
- package/dist/appnexusAnalyticsAdapter.js +1 -0
- package/dist/appnexusBidAdapter.js +1 -0
- package/dist/apstreamBidAdapter.js +1 -0
- package/dist/asealBidAdapter.js +1 -0
- package/dist/asoBidAdapter.js +1 -0
- package/dist/astraoneBidAdapter.js +1 -0
- package/dist/atsAnalyticsAdapter.js +1 -0
- package/dist/audiencerunBidAdapter.js +1 -0
- package/dist/automatadBidAdapter.js +1 -0
- package/dist/axonixBidAdapter.js +1 -0
- package/dist/beachfrontBidAdapter.js +1 -0
- package/dist/beopBidAdapter.js +1 -0
- package/dist/betweenBidAdapter.js +1 -0
- package/dist/bidViewability.js +1 -0
- package/dist/bidViewabilityIO.js +1 -0
- package/dist/bidglassBidAdapter.js +1 -0
- package/dist/bidscubeBidAdapter.js +1 -0
- package/dist/big-richmediaBidAdapter.js +1 -0
- package/dist/bizzclickBidAdapter.js +1 -0
- package/dist/bliinkBidAdapter.js +1 -0
- package/dist/bluebillywigBidAdapter.js +1 -0
- package/dist/boldwinBidAdapter.js +1 -0
- package/dist/brandmetricsRtdProvider.js +1 -0
- package/dist/braveBidAdapter.js +1 -0
- package/dist/bridgewellBidAdapter.js +1 -0
- package/dist/brightMountainMediaBidAdapter.js +1 -0
- package/dist/brightcomBidAdapter.js +1 -0
- package/dist/britepoolIdSystem.js +1 -0
- package/dist/browsiRtdProvider.js +1 -0
- package/dist/bucksenseBidAdapter.js +1 -0
- package/dist/buzzoolaBidAdapter.js +1 -0
- package/dist/byDataAnalyticsAdapter.js +1 -0
- package/dist/categoryTranslation.js +1 -0
- package/dist/ccxBidAdapter.js +1 -0
- package/dist/cleanioRtdProvider.js +1 -0
- package/dist/cleanmedianetBidAdapter.js +1 -0
- package/dist/clickforceBidAdapter.js +1 -0
- package/dist/codefuelBidAdapter.js +1 -0
- package/dist/cointrafficBidAdapter.js +1 -0
- package/dist/coinzillaBidAdapter.js +1 -0
- package/dist/colossussspBidAdapter.js +1 -0
- package/dist/compassBidAdapter.js +1 -0
- package/dist/concertAnalyticsAdapter.js +1 -0
- package/dist/concertBidAdapter.js +1 -0
- package/dist/connectIdSystem.js +1 -0
- package/dist/connectadBidAdapter.js +1 -0
- package/dist/consentManagement.js +1 -0
- package/dist/consentManagementUsp.js +1 -0
- package/dist/consumableBidAdapter.js +1 -0
- package/dist/contentexchangeBidAdapter.js +1 -0
- package/dist/conversantBidAdapter.js +1 -0
- package/dist/cpmstarBidAdapter.js +1 -0
- package/dist/craftBidAdapter.js +1 -0
- package/dist/criteoBidAdapter.js +1 -0
- package/dist/criteoIdSystem.js +1 -0
- package/dist/currency.js +1 -0
- package/dist/cwireBidAdapter.js +1 -0
- package/dist/dailyhuntBidAdapter.js +1 -0
- package/dist/datablocksAnalyticsAdapter.js +1 -0
- package/dist/datablocksBidAdapter.js +1 -0
- package/dist/dchain.js +1 -0
- package/dist/debugging.js +1 -0
- package/dist/deepintentBidAdapter.js +1 -0
- package/dist/deepintentDpesIdSystem.js +1 -0
- package/dist/deltaprojectsBidAdapter.js +1 -0
- package/dist/dfpAdServerVideo.js +1 -0
- package/dist/dgkeywordRtdProvider.js +1 -0
- package/dist/displayioBidAdapter.js +1 -0
- package/dist/districtmDMXBidAdapter.js +1 -0
- package/dist/dmdIdSystem.js +1 -0
- package/dist/docereeBidAdapter.js +1 -0
- package/dist/dspxBidAdapter.js +1 -0
- package/dist/e_volutionBidAdapter.js +1 -0
- package/dist/ebdrBidAdapter.js +1 -0
- package/dist/emx_digitalBidAdapter.js +1 -0
- package/dist/engageyaBidAdapter.js +1 -0
- package/dist/enrichmentFpdModule.js +1 -0
- package/dist/eplanningAnalyticsAdapter.js +1 -0
- package/dist/eplanningBidAdapter.js +1 -0
- package/dist/etargetBidAdapter.js +1 -0
- package/dist/express.js +1 -0
- package/dist/fabrickIdSystem.js +1 -0
- package/dist/feedadBidAdapter.js +1 -0
- package/dist/fintezaAnalyticsAdapter.js +1 -0
- package/dist/flocIdSystem.js +1 -0
- package/dist/fluctBidAdapter.js +1 -0
- package/dist/fpdModule.js +1 -0
- package/dist/freeWheelAdserverVideo.js +1 -0
- package/dist/freewheel-sspBidAdapter.js +1 -0
- package/dist/gammaBidAdapter.js +1 -0
- package/dist/gamoshiBidAdapter.js +1 -0
- package/dist/gdprEnforcement.js +1 -0
- package/dist/geoedgeRtdProvider.js +1 -0
- package/dist/getintentBidAdapter.js +1 -0
- package/dist/gjirafaBidAdapter.js +1 -0
- package/dist/glimpseBidAdapter.js +1 -0
- package/dist/glomexBidAdapter.js +1 -0
- package/dist/gmosspBidAdapter.js +1 -0
- package/dist/gnetBidAdapter.js +1 -0
- package/dist/goldbachBidAdapter.js +1 -0
- package/dist/googleAnalyticsAdapter.js +1 -0
- package/dist/gothamadsBidAdapter.js +1 -0
- package/dist/gptPreAuction.js +1 -0
- package/dist/gridBidAdapter.js +1 -0
- package/dist/gridNMBidAdapter.js +1 -0
- package/dist/growadvertisingBidAdapter.js +1 -0
- package/dist/gumgumBidAdapter.js +1 -0
- package/dist/h12mediaBidAdapter.js +1 -0
- package/dist/hadronIdSystem.js +1 -0
- package/dist/hadronRtdProvider.js +1 -0
- package/dist/haloIdSystem.js +1 -0
- package/dist/haloRtdProvider.js +1 -0
- package/dist/hybridBidAdapter.js +1 -0
- package/dist/iasRtdProvider.js +1 -0
- package/dist/id5AnalyticsAdapter.js +1 -0
- package/dist/id5IdSystem.js +1 -0
- package/dist/idImportLibrary.js +1 -0
- package/dist/identityLinkIdSystem.js +1 -0
- package/dist/idxIdSystem.js +1 -0
- package/dist/imRtdProvider.js +1 -0
- package/dist/impactifyBidAdapter.js +1 -0
- package/dist/improvedigitalBidAdapter.js +1 -0
- package/dist/imuIdSystem.js +1 -0
- package/dist/inmarBidAdapter.js +1 -0
- package/dist/innityBidAdapter.js +1 -0
- package/dist/inskinBidAdapter.js +1 -0
- package/dist/insticatorBidAdapter.js +1 -0
- package/dist/instreamTracking.js +1 -0
- package/dist/integr8BidAdapter.js +1 -0
- package/dist/intentIqIdSystem.js +1 -0
- package/dist/interactiveOffersBidAdapter.js +1 -0
- package/dist/intersectionRtdProvider.js +1 -0
- package/dist/invamiaBidAdapter.js +1 -0
- package/dist/invibesBidAdapter.js +1 -0
- package/dist/invisiblyAnalyticsAdapter.js +1 -0
- package/dist/ipromBidAdapter.js +1 -0
- package/dist/iqmBidAdapter.js +1 -0
- package/dist/iqzoneBidAdapter.js +1 -0
- package/dist/ixBidAdapter.js +1 -0
- package/dist/jixieBidAdapter.js +1 -0
- package/dist/justIdSystem.js +1 -0
- package/dist/justpremiumBidAdapter.js +1 -0
- package/dist/jwplayerRtdProvider.js +1 -0
- package/dist/kargoAnalyticsAdapter.js +1 -0
- package/dist/kargoBidAdapter.js +1 -0
- package/dist/kinessoIdSystem.js +1 -0
- package/dist/koblerBidAdapter.js +1 -0
- package/dist/konduitAnalyticsAdapter.js +1 -0
- package/dist/konduitWrapper.js +1 -0
- package/dist/krushmediaBidAdapter.js +1 -0
- package/dist/kubientBidAdapter.js +1 -0
- package/dist/limelightDigitalBidAdapter.js +1 -0
- package/dist/liveIntentIdSystem.js +1 -0
- package/dist/livewrappedAnalyticsAdapter.js +1 -0
- package/dist/livewrappedBidAdapter.js +1 -0
- package/dist/liveyieldAnalyticsAdapter.js +1 -0
- package/dist/lkqdBidAdapter.js +1 -0
- package/dist/lockerdomeBidAdapter.js +1 -0
- package/dist/loganBidAdapter.js +1 -0
- package/dist/logicadBidAdapter.js +1 -0
- package/dist/loglyliftBidAdapter.js +1 -0
- package/dist/lotamePanoramaIdSystem.js +1 -0
- package/dist/lunamediahbBidAdapter.js +1 -0
- package/dist/luponmediaBidAdapter.js +1 -0
- package/dist/madvertiseBidAdapter.js +1 -0
- package/dist/malltvAnalyticsAdapter.js +1 -0
- package/dist/malltvBidAdapter.js +1 -0
- package/dist/mantisBidAdapter.js +1 -0
- package/dist/marsmediaAnalyticsAdapter.js +1 -0
- package/dist/marsmediaBidAdapter.js +1 -0
- package/dist/mass.js +1 -0
- package/dist/mathildeadsBidAdapter.js +1 -0
- package/dist/mediaforceBidAdapter.js +1 -0
- package/dist/mediakeysBidAdapter.js +1 -0
- package/dist/medianetAnalyticsAdapter.js +1 -0
- package/dist/medianetBidAdapter.js +1 -0
- package/dist/medianetRtdProvider.js +1 -0
- package/dist/mediasquareBidAdapter.js +1 -0
- package/dist/merkleIdSystem.js +1 -0
- package/dist/mgidBidAdapter.js +1 -0
- package/dist/microadBidAdapter.js +1 -0
- package/dist/missenaBidAdapter.js +1 -0
- package/dist/multibid.js +1 -0
- package/dist/mwOpenLinkIdSystem.js +1 -0
- package/dist/my6senseBidAdapter.js +1 -0
- package/dist/mytargetBidAdapter.js +1 -0
- package/dist/nativoBidAdapter.js +1 -0
- package/dist/naveggIdSystem.js +1 -0
- package/dist/netIdSystem.js +1 -0
- package/dist/nextMillenniumBidAdapter.js +1 -0
- package/dist/nextrollBidAdapter.js +1 -0
- package/dist/nextrollIdSystem.js +1 -0
- package/dist/nexx360BidAdapter.js +1 -0
- package/dist/nobidBidAdapter.js +1 -0
- package/dist/not-for-prod/prebid.js +418 -0
- package/dist/novatiqIdSystem.js +1 -0
- package/dist/oguryBidAdapter.js +1 -0
- package/dist/oneVideoBidAdapter.js +1 -0
- package/dist/onetagBidAdapter.js +1 -0
- package/dist/onomagicBidAdapter.js +1 -0
- package/dist/ooloAnalyticsAdapter.js +1 -0
- package/dist/openwebBidAdapter.js +1 -0
- package/dist/openxAnalyticsAdapter.js +1 -0
- package/dist/openxBidAdapter.js +1 -0
- package/dist/operaadsBidAdapter.js +1 -0
- package/dist/optimeraRtdProvider.js +1 -0
- package/dist/optimonAnalyticsAdapter.js +1 -0
- package/dist/optoutBidAdapter.js +1 -0
- package/dist/orbidderBidAdapter.js +1 -0
- package/dist/otmBidAdapter.js +1 -0
- package/dist/outbrainBidAdapter.js +1 -0
- package/dist/ozoneBidAdapter.js +1 -0
- package/dist/padsquadBidAdapter.js +1 -0
- package/dist/parrableIdSystem.js +1 -0
- package/dist/permutiveRtdProvider.js +1 -0
- package/dist/pilotxBidAdapter.js +1 -0
- package/dist/pixfutureBidAdapter.js +1 -0
- package/dist/prebid-core.js +9 -0
- package/dist/prebidServerBidAdapter.js +1 -0
- package/dist/prebidmanagerAnalyticsAdapter.js +1 -0
- package/dist/priceFloors.js +1 -0
- package/dist/proxistoreBidAdapter.js +1 -0
- package/dist/pubCommonId.js +1 -0
- package/dist/pubProvidedIdSystem.js +1 -0
- package/dist/pubgeniusBidAdapter.js +1 -0
- package/dist/publinkIdSystem.js +1 -0
- package/dist/pubmaticAnalyticsAdapter.js +1 -0
- package/dist/pubmaticBidAdapter.js +1 -0
- package/dist/pubperfAnalyticsAdapter.js +1 -0
- package/dist/pubstackAnalyticsAdapter.js +1 -0
- package/dist/pubwiseAnalyticsAdapter.js +1 -0
- package/dist/pubwiseBidAdapter.js +1 -0
- package/dist/pubxBidAdapter.js +1 -0
- package/dist/pubxaiAnalyticsAdapter.js +1 -0
- package/dist/pulsepointAnalyticsAdapter.js +1 -0
- package/dist/pulsepointBidAdapter.js +1 -0
- package/dist/pxyzBidAdapter.js +1 -0
- package/dist/quantcastBidAdapter.js +1 -0
- package/dist/quantcastIdSystem.js +1 -0
- package/dist/qwarryBidAdapter.js +1 -0
- package/dist/radsBidAdapter.js +1 -0
- package/dist/rakutenBidAdapter.js +1 -0
- package/dist/readpeakBidAdapter.js +1 -0
- package/dist/realvuAnalyticsAdapter.js +1 -0
- package/dist/reconciliationRtdProvider.js +1 -0
- package/dist/relaidoBidAdapter.js +1 -0
- package/dist/relevantAnalyticsAdapter.js +1 -0
- package/dist/resetdigitalBidAdapter.js +1 -0
- package/dist/revcontentBidAdapter.js +1 -0
- package/dist/rhythmoneBidAdapter.js +1 -0
- package/dist/richaudienceBidAdapter.js +1 -0
- package/dist/riseBidAdapter.js +1 -0
- package/dist/rivrAnalyticsAdapter.js +1 -0
- package/dist/roxotAnalyticsAdapter.js +1 -0
- package/dist/rtbhouseBidAdapter.js +1 -0
- package/dist/rtbsapeBidAdapter.js +1 -0
- package/dist/rtdModule.js +1 -0
- package/dist/rubiconAnalyticsAdapter.js +1 -0
- package/dist/rubiconBidAdapter.js +1 -0
- package/dist/s2sTesting.js +1 -0
- package/dist/saambaaBidAdapter.js +1 -0
- package/dist/scaleableAnalyticsAdapter.js +1 -0
- package/dist/schain.js +1 -0
- package/dist/seedingAllianceBidAdapter.js +1 -0
- package/dist/seedtagBidAdapter.js +1 -0
- package/dist/sharedIdSystem.js +1 -0
- package/dist/sharethroughAnalyticsAdapter.js +1 -0
- package/dist/sharethroughBidAdapter.js +1 -0
- package/dist/showheroes-bsBidAdapter.js +1 -0
- package/dist/sigmoidAnalyticsAdapter.js +1 -0
- package/dist/sirdataRtdProvider.js +1 -0
- package/dist/sizeMappingV2.js +1 -0
- package/dist/slimcutBidAdapter.js +1 -0
- package/dist/smaatoBidAdapter.js +1 -0
- package/dist/smartadserverBidAdapter.js +1 -0
- package/dist/smarticoBidAdapter.js +1 -0
- package/dist/smartxBidAdapter.js +1 -0
- package/dist/smartyadsBidAdapter.js +1 -0
- package/dist/smilewantedBidAdapter.js +1 -0
- package/dist/sonobiAnalyticsAdapter.js +1 -0
- package/dist/sonobiBidAdapter.js +1 -0
- package/dist/sortableAnalyticsAdapter.js +1 -0
- package/dist/sortableBidAdapter.js +1 -0
- package/dist/sovrnAnalyticsAdapter.js +1 -0
- package/dist/sovrnBidAdapter.js +1 -0
- package/dist/spotxBidAdapter.js +1 -0
- package/dist/sspBCBidAdapter.js +1 -0
- package/dist/staqAnalyticsAdapter.js +1 -0
- package/dist/stroeerCoreBidAdapter.js +1 -0
- package/dist/sublimeBidAdapter.js +1 -0
- package/dist/synacormediaBidAdapter.js +1 -0
- package/dist/talkadsBidAdapter.js +1 -0
- package/dist/tapadIdSystem.js +1 -0
- package/dist/tappxBidAdapter.js +1 -0
- package/dist/targetVideoBidAdapter.js +1 -0
- package/dist/teadsBidAdapter.js +1 -0
- package/dist/telariaBidAdapter.js +1 -0
- package/dist/temedyaBidAdapter.js +1 -0
- package/dist/terceptAnalyticsAdapter.js +1 -0
- package/dist/theAdxBidAdapter.js +1 -0
- package/dist/timeoutRtdProvider.js +1 -0
- package/dist/tpmnBidAdapter.js +1 -0
- package/dist/trionBidAdapter.js +1 -0
- package/dist/tripleliftBidAdapter.js +1 -0
- package/dist/truereachBidAdapter.js +1 -0
- package/dist/trustpidSystem.js +1 -0
- package/dist/trustxBidAdapter.js +1 -0
- package/dist/ucfunnelAnalyticsAdapter.js +1 -0
- package/dist/ucfunnelBidAdapter.js +1 -0
- package/dist/uid2IdSystem.js +1 -0
- package/dist/underdogmediaBidAdapter.js +1 -0
- package/dist/undertoneBidAdapter.js +1 -0
- package/dist/unicornBidAdapter.js +1 -0
- package/dist/unifiedIdSystem.js +1 -0
- package/dist/unrulyBidAdapter.js +1 -0
- package/dist/userId.js +1 -0
- package/dist/userIdTargeting.js +1 -0
- package/dist/validationFpdModule.js +1 -0
- package/dist/vdoaiBidAdapter.js +1 -0
- package/dist/ventesBidAdapter.js +1 -0
- package/dist/verizonMediaIdSystem.js +1 -0
- package/dist/vibrantmediaBidAdapter.js +1 -0
- package/dist/vidazooBidAdapter.js +1 -0
- package/dist/videobyteBidAdapter.js +1 -0
- package/dist/videoreachBidAdapter.js +1 -0
- package/dist/vidoomyBidAdapter.js +1 -0
- package/dist/viewability.js +1 -0
- package/dist/viewdeosDXBidAdapter.js +1 -0
- package/dist/visxBidAdapter.js +1 -0
- package/dist/vlybyBidAdapter.js +1 -0
- package/dist/voxBidAdapter.js +1 -0
- package/dist/vrtcalBidAdapter.js +1 -0
- package/dist/vuukleBidAdapter.js +1 -0
- package/dist/waardexBidAdapter.js +1 -0
- package/dist/weboramaRtdProvider.js +1 -0
- package/dist/welectBidAdapter.js +1 -0
- package/dist/widespaceBidAdapter.js +1 -0
- package/dist/winrBidAdapter.js +1 -0
- package/dist/wipesBidAdapter.js +1 -0
- package/dist/yahoosspBidAdapter.js +1 -0
- package/dist/yieldlabBidAdapter.js +1 -0
- package/dist/yieldliftBidAdapter.js +1 -0
- package/dist/yieldmoBidAdapter.js +1 -0
- package/dist/yieldmoSyntheticInventoryModule.js +1 -0
- package/dist/yieldoneAnalyticsAdapter.js +1 -0
- package/dist/yieldoneBidAdapter.js +1 -0
- package/dist/yuktamediaAnalyticsAdapter.js +1 -0
- package/dist/zeotapIdPlusIdSystem.js +1 -0
- package/dist/zetaBidAdapter.js +1 -0
- package/dist/zeta_global_sspAnalyticsAdapter.js +1 -0
- package/dist/zeta_global_sspBidAdapter.js +1 -0
- package/integrationExamples/gpt/{haloRtdProvider_example.html → hadronRtdProvider_example.html} +9 -9
- package/integrationExamples/gpt/idImportLibrary_example.html +2 -2
- package/integrationExamples/gpt/userId_example.html +2 -2
- package/integrationExamples/gpt/weboramaRtdProvider_example.html +154 -115
- package/integrationExamples/gpt/x-domain/creative.html +13 -6
- package/modules/.submodules.json +4 -0
- package/modules/adkernelBidAdapter.js +2 -1
- package/modules/adnuntiusRtdProvider.js +96 -0
- package/modules/adnuntiusRtdProvider.md +41 -0
- package/modules/adotBidAdapter.js +516 -567
- package/modules/adotBidAdapter.md +6 -44
- package/modules/adpod.js +12 -14
- package/modules/adyoulikeBidAdapter.js +3 -1
- package/modules/appnexusBidAdapter.js +3 -2
- package/modules/asealBidAdapter.js +58 -0
- package/modules/asealBidAdapter.md +52 -0
- package/modules/automatadBidAdapter.js +10 -7
- package/modules/big-richmediaBidAdapter.js +117 -0
- package/modules/big-richmediaBidAdapter.md +82 -0
- package/modules/bizzclickBidAdapter.js +5 -3
- package/modules/conversantBidAdapter.js +7 -0
- package/modules/currency.js +1 -4
- package/modules/debugging/bidInterceptor.js +229 -0
- package/modules/debugging/index.js +62 -0
- package/modules/debugging/pbsInterceptor.js +38 -0
- package/modules/dspxBidAdapter.js +69 -29
- package/modules/dspxBidAdapter.md +2 -1
- package/modules/fluctBidAdapter.js +18 -1
- package/modules/googleAnalyticsAdapter.js +22 -4
- package/modules/googleAnalyticsAdapter.md +1 -0
- package/modules/gridBidAdapter.js +26 -7
- package/modules/hadronIdSystem.js +96 -0
- package/modules/hadronIdSystem.md +35 -0
- package/modules/hadronRtdProvider.js +254 -0
- package/modules/hadronRtdProvider.md +126 -0
- package/modules/haloIdSystem.md +4 -35
- package/modules/haloRtdProvider.md +3 -126
- package/modules/imRtdProvider.js +10 -0
- package/modules/improvedigitalBidAdapter.js +5 -0
- package/modules/iqzoneBidAdapter.js +10 -3
- package/modules/iqzoneBidAdapter.md +16 -0
- package/modules/ixBidAdapter.js +35 -21
- package/modules/justIdSystem.js +206 -0
- package/modules/justIdSystem.md +70 -0
- package/modules/kubientBidAdapter.js +60 -28
- package/modules/lkqdBidAdapter.js +234 -0
- package/modules/lkqdBidAdapter.md +1 -1
- package/modules/lunamediahbBidAdapter.js +32 -4
- package/modules/malltvBidAdapter.js +7 -3
- package/modules/malltvBidAdapter.md +64 -51
- package/modules/mass.js +3 -5
- package/modules/mediakeysBidAdapter.js +0 -5
- package/modules/medianetAnalyticsAdapter.js +1 -1
- package/modules/mediasquareBidAdapter.js +9 -1
- package/modules/nextMillenniumBidAdapter.js +1 -0
- package/modules/nexx360BidAdapter.js +149 -0
- package/modules/nexx360BidAdapter.md +35 -0
- package/modules/novatiqIdSystem.js +68 -15
- package/modules/novatiqIdSystem.md +69 -7
- package/modules/oguryBidAdapter.js +7 -14
- package/modules/prebidServerBidAdapter/index.js +128 -90
- package/modules/priceFloors.js +20 -12
- package/modules/pubmaticBidAdapter.js +1 -1
- package/modules/richaudienceBidAdapter.js +15 -3
- package/modules/riseBidAdapter.js +17 -6
- package/modules/rtbhouseBidAdapter.js +2 -0
- package/modules/rubiconAnalyticsAdapter.js +5 -0
- package/modules/rubiconBidAdapter.js +2 -2
- package/modules/sizeMappingV2.js +1 -8
- package/modules/sortableAnalyticsAdapter.js +5 -4
- package/modules/sspBCBidAdapter.js +53 -20
- package/modules/telariaBidAdapter.js +22 -29
- package/modules/trustpidSystem.js +197 -0
- package/modules/trustpidSystem.md +45 -0
- package/modules/trustxBidAdapter.js +11 -6
- package/modules/userId/eids.js +22 -1
- package/modules/userId/eids.md +18 -2
- package/modules/userId/userId.md +17 -2
- package/modules/vibrantmediaBidAdapter.js +220 -0
- package/modules/vibrantmediaBidAdapter.md +92 -0
- package/modules/vidazooBidAdapter.js +3 -2
- package/modules/vidoomyBidAdapter.js +8 -0
- package/modules/vidoomyBidAdapter.md +4 -2
- package/modules/weboramaRtdProvider.js +264 -34
- package/modules/weboramaRtdProvider.md +110 -40
- package/modules/yahoosspBidAdapter.js +1 -1
- package/modules/yieldoneBidAdapter.js +6 -0
- package/package.json +2 -1
- package/plugins/eslint/node_modules/ansi-regex/index.js +4 -0
- package/plugins/eslint/node_modules/ansi-regex/license +21 -0
- package/plugins/eslint/node_modules/ansi-regex/package.json +56 -0
- package/plugins/eslint/node_modules/ansi-regex/readme.md +33 -0
- package/plugins/eslint/node_modules/ansi-styles/index.js +65 -0
- package/plugins/eslint/node_modules/ansi-styles/license +21 -0
- package/plugins/eslint/node_modules/ansi-styles/package.json +50 -0
- package/plugins/eslint/node_modules/ansi-styles/readme.md +86 -0
- package/plugins/eslint/node_modules/argparse/CHANGELOG.md +185 -0
- package/plugins/eslint/node_modules/argparse/LICENSE +21 -0
- package/plugins/eslint/node_modules/argparse/README.md +257 -0
- package/plugins/eslint/node_modules/argparse/index.js +3 -0
- package/plugins/eslint/node_modules/argparse/lib/action/append/constant.js +47 -0
- package/plugins/eslint/node_modules/argparse/lib/action/append.js +53 -0
- package/plugins/eslint/node_modules/argparse/lib/action/count.js +40 -0
- package/plugins/eslint/node_modules/argparse/lib/action/help.js +47 -0
- package/plugins/eslint/node_modules/argparse/lib/action/store/constant.js +43 -0
- package/plugins/eslint/node_modules/argparse/lib/action/store/false.js +27 -0
- package/plugins/eslint/node_modules/argparse/lib/action/store/true.js +26 -0
- package/plugins/eslint/node_modules/argparse/lib/action/store.js +50 -0
- package/plugins/eslint/node_modules/argparse/lib/action/subparsers.js +149 -0
- package/plugins/eslint/node_modules/argparse/lib/action/version.js +47 -0
- package/plugins/eslint/node_modules/argparse/lib/action.js +146 -0
- package/plugins/eslint/node_modules/argparse/lib/action_container.js +482 -0
- package/plugins/eslint/node_modules/argparse/lib/argparse.js +14 -0
- package/plugins/eslint/node_modules/argparse/lib/argument/error.js +50 -0
- package/plugins/eslint/node_modules/argparse/lib/argument/exclusive.js +54 -0
- package/plugins/eslint/node_modules/argparse/lib/argument/group.js +75 -0
- package/plugins/eslint/node_modules/argparse/lib/argument_parser.js +1161 -0
- package/plugins/eslint/node_modules/argparse/lib/const.js +21 -0
- package/plugins/eslint/node_modules/argparse/lib/help/added_formatters.js +87 -0
- package/plugins/eslint/node_modules/argparse/lib/help/formatter.js +795 -0
- package/plugins/eslint/node_modules/argparse/lib/namespace.js +76 -0
- package/plugins/eslint/node_modules/argparse/lib/utils.js +57 -0
- package/plugins/eslint/node_modules/argparse/package.json +34 -0
- package/plugins/eslint/node_modules/asn1/LICENSE +19 -0
- package/plugins/eslint/node_modules/asn1/README.md +50 -0
- package/plugins/eslint/node_modules/asn1/lib/ber/errors.js +13 -0
- package/plugins/eslint/node_modules/asn1/lib/ber/index.js +27 -0
- package/plugins/eslint/node_modules/asn1/lib/ber/reader.js +267 -0
- package/plugins/eslint/node_modules/asn1/lib/ber/types.js +36 -0
- package/plugins/eslint/node_modules/asn1/lib/ber/writer.js +317 -0
- package/plugins/eslint/node_modules/asn1/lib/index.js +20 -0
- package/plugins/eslint/node_modules/asn1/package.json +26 -0
- package/plugins/eslint/node_modules/asn1/tst/ber/reader.test.js +172 -0
- package/plugins/eslint/node_modules/asn1/tst/ber/writer.test.js +296 -0
- package/plugins/eslint/node_modules/assert-plus/README.md +126 -0
- package/plugins/eslint/node_modules/assert-plus/assert.js +245 -0
- package/plugins/eslint/node_modules/assert-plus/package.json +16 -0
- package/plugins/eslint/node_modules/assertion-error/History.md +14 -0
- package/plugins/eslint/node_modules/assertion-error/README.md +41 -0
- package/plugins/eslint/node_modules/assertion-error/index.js +110 -0
- package/plugins/eslint/node_modules/assertion-error/package.json +27 -0
- package/plugins/eslint/node_modules/async/CHANGELOG.md +125 -0
- package/plugins/eslint/node_modules/async/LICENSE +19 -0
- package/plugins/eslint/node_modules/async/README.md +1877 -0
- package/plugins/eslint/node_modules/async/dist/async.js +1265 -0
- package/plugins/eslint/node_modules/async/dist/async.min.js +2 -0
- package/plugins/eslint/node_modules/async/lib/async.js +1265 -0
- package/plugins/eslint/node_modules/async/package.json +85 -0
- package/plugins/eslint/node_modules/aws-sign2/LICENSE +55 -0
- package/plugins/eslint/node_modules/aws-sign2/README.md +4 -0
- package/plugins/eslint/node_modules/aws-sign2/index.js +202 -0
- package/plugins/eslint/node_modules/aws-sign2/package.json +16 -0
- package/plugins/eslint/node_modules/camelcase/index.js +56 -0
- package/plugins/eslint/node_modules/camelcase/license +21 -0
- package/plugins/eslint/node_modules/camelcase/package.json +39 -0
- package/plugins/eslint/node_modules/camelcase/readme.md +57 -0
- package/plugins/eslint/node_modules/camelcase-keys/index.js +12 -0
- package/plugins/eslint/node_modules/camelcase-keys/license +21 -0
- package/plugins/eslint/node_modules/camelcase-keys/package.json +52 -0
- package/plugins/eslint/node_modules/camelcase-keys/readme.md +54 -0
- package/plugins/eslint/node_modules/chai/CONTRIBUTING.md +173 -0
- package/plugins/eslint/node_modules/chai/History.md +937 -0
- package/plugins/eslint/node_modules/chai/README.md +109 -0
- package/plugins/eslint/node_modules/chai/ReleaseNotes.md +587 -0
- package/plugins/eslint/node_modules/chai/bower.json +27 -0
- package/plugins/eslint/node_modules/chai/chai.js +4800 -0
- package/plugins/eslint/node_modules/chai/index.js +1 -0
- package/plugins/eslint/node_modules/chai/karma.conf.js +28 -0
- package/plugins/eslint/node_modules/chai/karma.sauce.js +41 -0
- package/plugins/eslint/node_modules/chai/lib/chai/assertion.js +135 -0
- package/plugins/eslint/node_modules/chai/lib/chai/config.js +50 -0
- package/plugins/eslint/node_modules/chai/lib/chai/core/assertions.js +1359 -0
- package/plugins/eslint/node_modules/chai/lib/chai/interface/assert.js +1056 -0
- package/plugins/eslint/node_modules/chai/lib/chai/interface/expect.js +12 -0
- package/plugins/eslint/node_modules/chai/lib/chai/interface/should.js +78 -0
- package/plugins/eslint/node_modules/chai/lib/chai/utils/addChainableMethod.js +111 -0
- package/plugins/eslint/node_modules/chai/lib/chai/utils/addMethod.js +43 -0
- package/plugins/eslint/node_modules/chai/lib/chai/utils/addProperty.js +40 -0
- package/plugins/eslint/node_modules/chai/lib/chai/utils/flag.js +32 -0
- package/plugins/eslint/node_modules/chai/lib/chai/utils/getActual.js +18 -0
- package/plugins/eslint/node_modules/chai/lib/chai/utils/getEnumerableProperties.js +25 -0
- package/plugins/eslint/node_modules/chai/lib/chai/utils/getMessage.js +50 -0
- package/plugins/eslint/node_modules/chai/lib/chai/utils/getName.js +20 -0
- package/plugins/eslint/node_modules/chai/lib/chai/utils/getPathValue.js +102 -0
- package/plugins/eslint/node_modules/chai/lib/chai/utils/getProperties.js +35 -0
- package/plugins/eslint/node_modules/chai/lib/chai/utils/index.js +114 -0
- package/plugins/eslint/node_modules/chai/lib/chai/utils/inspect.js +333 -0
- package/plugins/eslint/node_modules/chai/lib/chai/utils/objDisplay.js +49 -0
- package/plugins/eslint/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js +53 -0
- package/plugins/eslint/node_modules/chai/lib/chai/utils/overwriteMethod.js +51 -0
- package/plugins/eslint/node_modules/chai/lib/chai/utils/overwriteProperty.js +54 -0
- package/plugins/eslint/node_modules/chai/lib/chai/utils/test.js +26 -0
- package/plugins/eslint/node_modules/chai/lib/chai/utils/transferFlags.js +44 -0
- package/plugins/eslint/node_modules/chai/lib/chai/utils/type.js +45 -0
- package/plugins/eslint/node_modules/chai/lib/chai.js +87 -0
- package/plugins/eslint/node_modules/chai/package.json +42 -0
- package/plugins/eslint/node_modules/chai/sauce.browsers.js +128 -0
- package/plugins/eslint/node_modules/chalk/index.js +116 -0
- package/plugins/eslint/node_modules/chalk/license +21 -0
- package/plugins/eslint/node_modules/chalk/package.json +70 -0
- package/plugins/eslint/node_modules/chalk/readme.md +213 -0
- package/plugins/eslint/node_modules/cli-width/.travis.yml +11 -0
- package/plugins/eslint/node_modules/cli-width/LICENSE +13 -0
- package/plugins/eslint/node_modules/cli-width/README.md +36 -0
- package/plugins/eslint/node_modules/cli-width/coverage/coverage.json +1 -0
- package/plugins/eslint/node_modules/cli-width/coverage/lcov-report/base.css +182 -0
- package/plugins/eslint/node_modules/cli-width/coverage/lcov-report/cli-width/index.html +73 -0
- package/plugins/eslint/node_modules/cli-width/coverage/lcov-report/cli-width/index.js.html +129 -0
- package/plugins/eslint/node_modules/cli-width/coverage/lcov-report/index.html +73 -0
- package/plugins/eslint/node_modules/cli-width/coverage/lcov-report/prettify.css +1 -0
- package/plugins/eslint/node_modules/cli-width/coverage/lcov-report/prettify.js +1 -0
- package/plugins/eslint/node_modules/cli-width/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/plugins/eslint/node_modules/cli-width/coverage/lcov-report/sorter.js +156 -0
- package/plugins/eslint/node_modules/cli-width/coverage/lcov.info +32 -0
- package/plugins/eslint/node_modules/cli-width/index.js +28 -0
- package/plugins/eslint/node_modules/cli-width/package.json +29 -0
- package/plugins/eslint/node_modules/combined-stream/License +19 -0
- package/plugins/eslint/node_modules/combined-stream/Readme.md +132 -0
- package/plugins/eslint/node_modules/combined-stream/lib/combined_stream.js +188 -0
- package/plugins/eslint/node_modules/combined-stream/package.json +24 -0
- package/plugins/eslint/node_modules/commander/Readme.md +208 -0
- package/plugins/eslint/node_modules/commander/index.js +876 -0
- package/plugins/eslint/node_modules/commander/package.json +13 -0
- package/plugins/eslint/node_modules/coveralls/.travis.yml +6 -0
- package/plugins/eslint/node_modules/coveralls/Makefile +20 -0
- package/plugins/eslint/node_modules/coveralls/README.md +129 -0
- package/plugins/eslint/node_modules/coveralls/fixtures/istanbul.lcov +131 -0
- package/plugins/eslint/node_modules/coveralls/fixtures/lib/index.js +172 -0
- package/plugins/eslint/node_modules/coveralls/fixtures/onefile.lcov +116 -0
- package/plugins/eslint/node_modules/coveralls/index.js +7 -0
- package/plugins/eslint/node_modules/coveralls/lib/convertLcovToCoveralls.js +111 -0
- package/plugins/eslint/node_modules/coveralls/lib/detectLocalGit.js +27 -0
- package/plugins/eslint/node_modules/coveralls/lib/fetchGitData.js +108 -0
- package/plugins/eslint/node_modules/coveralls/lib/getOptions.js +125 -0
- package/plugins/eslint/node_modules/coveralls/lib/handleInput.js +39 -0
- package/plugins/eslint/node_modules/coveralls/lib/logger.js +18 -0
- package/plugins/eslint/node_modules/coveralls/lib/sendToCoveralls.js +11 -0
- package/plugins/eslint/node_modules/coveralls/package.json +56 -0
- package/plugins/eslint/node_modules/coveralls/test/convertLcovToCoveralls.js +82 -0
- package/plugins/eslint/node_modules/coveralls/test/fetchGitData.js +182 -0
- package/plugins/eslint/node_modules/coveralls/test/getOptions.js +403 -0
- package/plugins/eslint/node_modules/coveralls/test/handleInput.js +78 -0
- package/plugins/eslint/node_modules/coveralls/test/logger.js +32 -0
- package/plugins/eslint/node_modules/coveralls/test/sendToCoveralls.js +27 -0
- package/plugins/eslint/node_modules/dateformat/.travis.yml +4 -0
- package/plugins/eslint/node_modules/dateformat/LICENSE +20 -0
- package/plugins/eslint/node_modules/dateformat/Readme.md +82 -0
- package/plugins/eslint/node_modules/dateformat/lib/dateformat.js +226 -0
- package/plugins/eslint/node_modules/dateformat/package.json +36 -0
- package/plugins/eslint/node_modules/dateformat/test/test_dayofweek.js +15 -0
- package/plugins/eslint/node_modules/dateformat/test/test_formats.js +76 -0
- package/plugins/eslint/node_modules/dateformat/test/test_isoutcdatetime.js +11 -0
- package/plugins/eslint/node_modules/dateformat/test/weekofyear/test_weekofyear.js +4 -0
- package/plugins/eslint/node_modules/dateformat/test/weekofyear/test_weekofyear.sh +27 -0
- package/plugins/eslint/node_modules/debug/.jshintrc +3 -0
- package/plugins/eslint/node_modules/debug/History.md +195 -0
- package/plugins/eslint/node_modules/debug/Makefile +36 -0
- package/plugins/eslint/node_modules/debug/Readme.md +188 -0
- package/plugins/eslint/node_modules/debug/bower.json +28 -0
- package/plugins/eslint/node_modules/debug/browser.js +168 -0
- package/plugins/eslint/node_modules/debug/component.json +19 -0
- package/plugins/eslint/node_modules/debug/debug.js +197 -0
- package/plugins/eslint/node_modules/debug/node.js +209 -0
- package/plugins/eslint/node_modules/debug/package.json +34 -0
- package/plugins/eslint/node_modules/decamelize/index.js +13 -0
- package/plugins/eslint/node_modules/decamelize/license +21 -0
- package/plugins/eslint/node_modules/decamelize/package.json +38 -0
- package/plugins/eslint/node_modules/decamelize/readme.md +48 -0
- package/plugins/eslint/node_modules/deep-eql/History.md +28 -0
- package/plugins/eslint/node_modules/deep-eql/README.md +52 -0
- package/plugins/eslint/node_modules/deep-eql/index.js +1 -0
- package/plugins/eslint/node_modules/deep-eql/karma.conf.js +20 -0
- package/plugins/eslint/node_modules/deep-eql/lib/eql.js +257 -0
- package/plugins/eslint/node_modules/deep-eql/package.json +37 -0
- package/plugins/eslint/node_modules/delayed-stream/License +19 -0
- package/plugins/eslint/node_modules/delayed-stream/Makefile +7 -0
- package/plugins/eslint/node_modules/delayed-stream/Readme.md +154 -0
- package/plugins/eslint/node_modules/delayed-stream/lib/delayed_stream.js +99 -0
- package/plugins/eslint/node_modules/delayed-stream/package.json +20 -0
- package/plugins/eslint/node_modules/delayed-stream/test/common.js +6 -0
- package/plugins/eslint/node_modules/delayed-stream/test/integration/test-delayed-http-upload.js +38 -0
- package/plugins/eslint/node_modules/delayed-stream/test/integration/test-delayed-stream-auto-pause.js +21 -0
- package/plugins/eslint/node_modules/delayed-stream/test/integration/test-delayed-stream-pause.js +14 -0
- package/plugins/eslint/node_modules/delayed-stream/test/integration/test-delayed-stream.js +48 -0
- package/plugins/eslint/node_modules/delayed-stream/test/integration/test-handle-source-errors.js +15 -0
- package/plugins/eslint/node_modules/delayed-stream/test/integration/test-max-data-size.js +18 -0
- package/plugins/eslint/node_modules/delayed-stream/test/integration/test-pipe-resumes.js +13 -0
- package/plugins/eslint/node_modules/delayed-stream/test/integration/test-proxy-readable.js +13 -0
- package/plugins/eslint/node_modules/delayed-stream/test/run.js +7 -0
- package/plugins/eslint/node_modules/diff/README.md +181 -0
- package/plugins/eslint/node_modules/diff/diff.js +619 -0
- package/plugins/eslint/node_modules/diff/package.json +44 -0
- package/plugins/eslint/node_modules/doctrine/.jshintrc +28 -0
- package/plugins/eslint/node_modules/doctrine/.scripted +6 -0
- package/plugins/eslint/node_modules/doctrine/.travis.yml +7 -0
- package/plugins/eslint/node_modules/doctrine/CONTRIBUTING.md +5 -0
- package/plugins/eslint/node_modules/doctrine/LICENSE.BSD +19 -0
- package/plugins/eslint/node_modules/doctrine/LICENSE.closure-compiler +202 -0
- package/plugins/eslint/node_modules/doctrine/LICENSE.esprima +19 -0
- package/plugins/eslint/node_modules/doctrine/README.md +176 -0
- package/plugins/eslint/node_modules/doctrine/coverage/coverage-final.json +2 -0
- package/plugins/eslint/node_modules/doctrine/coverage/lcov-report/base.css +182 -0
- package/plugins/eslint/node_modules/doctrine/coverage/lcov-report/index.html +72 -0
- package/plugins/eslint/node_modules/doctrine/coverage/lcov-report/prettify.css +1 -0
- package/plugins/eslint/node_modules/doctrine/coverage/lcov-report/prettify.js +1 -0
- package/plugins/eslint/node_modules/doctrine/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/plugins/eslint/node_modules/doctrine/coverage/lcov-report/sorter.js +156 -0
- package/plugins/eslint/node_modules/doctrine/coverage/lcov.info +0 -0
- package/plugins/eslint/node_modules/doctrine/eslint.json +22 -0
- package/plugins/eslint/node_modules/doctrine/gulpfile.js +120 -0
- package/plugins/eslint/node_modules/doctrine/lib/doctrine.js +809 -0
- package/plugins/eslint/node_modules/doctrine/lib/typed.js +1261 -0
- package/plugins/eslint/node_modules/doctrine/lib/utility.js +54 -0
- package/plugins/eslint/node_modules/doctrine/package.json +54 -0
- package/plugins/eslint/node_modules/doctrine/test/midstream.js +61 -0
- package/plugins/eslint/node_modules/doctrine/test/parse.js +2219 -0
- package/plugins/eslint/node_modules/doctrine/test/strict.js +168 -0
- package/plugins/eslint/node_modules/doctrine/test/stringify.js +413 -0
- package/plugins/eslint/node_modules/doctrine/test/test.html +31 -0
- package/plugins/eslint/node_modules/doctrine/test/unwrap.js +60 -0
- package/plugins/eslint/node_modules/escodegen/LICENSE.BSD +19 -0
- package/plugins/eslint/node_modules/escodegen/LICENSE.source-map +27 -0
- package/plugins/eslint/node_modules/escodegen/README.md +116 -0
- package/plugins/eslint/node_modules/escodegen/escodegen.js +2578 -0
- package/plugins/eslint/node_modules/escodegen/node_modules/esprima/ChangeLog +77 -0
- package/plugins/eslint/node_modules/escodegen/node_modules/esprima/LICENSE.BSD +19 -0
- package/plugins/eslint/node_modules/escodegen/node_modules/esprima/README.md +24 -0
- package/plugins/eslint/node_modules/escodegen/node_modules/esprima/esprima.js +3772 -0
- package/plugins/eslint/node_modules/escodegen/node_modules/esprima/package.json +83 -0
- package/plugins/eslint/node_modules/escodegen/node_modules/esprima/test/compat.js +241 -0
- package/plugins/eslint/node_modules/escodegen/node_modules/esprima/test/reflect.js +422 -0
- package/plugins/eslint/node_modules/escodegen/node_modules/esprima/test/run.js +67 -0
- package/plugins/eslint/node_modules/escodegen/node_modules/esprima/test/runner.js +495 -0
- package/plugins/eslint/node_modules/escodegen/node_modules/esprima/test/test.js +25593 -0
- package/plugins/eslint/node_modules/escodegen/node_modules/estraverse/.editorconfig +10 -0
- package/plugins/eslint/node_modules/escodegen/node_modules/estraverse/.jshintrc +16 -0
- package/plugins/eslint/node_modules/escodegen/node_modules/estraverse/LICENSE.BSD +19 -0
- package/plugins/eslint/node_modules/escodegen/node_modules/estraverse/README.md +124 -0
- package/plugins/eslint/node_modules/escodegen/node_modules/estraverse/estraverse.js +845 -0
- package/plugins/eslint/node_modules/escodegen/node_modules/estraverse/gulpfile.js +70 -0
- package/plugins/eslint/node_modules/escodegen/node_modules/estraverse/package.json +43 -0
- package/plugins/eslint/node_modules/escodegen/node_modules/esutils/LICENSE.BSD +19 -0
- package/plugins/eslint/node_modules/escodegen/node_modules/esutils/README.md +174 -0
- package/plugins/eslint/node_modules/escodegen/node_modules/esutils/lib/ast.js +144 -0
- package/plugins/eslint/node_modules/escodegen/node_modules/esutils/lib/code.js +135 -0
- package/plugins/eslint/node_modules/escodegen/node_modules/esutils/lib/keyword.js +165 -0
- package/plugins/eslint/node_modules/escodegen/node_modules/esutils/lib/utils.js +33 -0
- package/plugins/eslint/node_modules/escodegen/node_modules/esutils/package.json +44 -0
- package/plugins/eslint/node_modules/escodegen/package.json +62 -0
- package/plugins/eslint/node_modules/espree/README.md +232 -0
- package/plugins/eslint/node_modules/espree/espree.js +5533 -0
- package/plugins/eslint/node_modules/espree/lib/ast-node-factory.js +964 -0
- package/plugins/eslint/node_modules/espree/lib/ast-node-types.js +119 -0
- package/plugins/eslint/node_modules/espree/lib/comment-attachment.js +183 -0
- package/plugins/eslint/node_modules/espree/lib/features.js +117 -0
- package/plugins/eslint/node_modules/espree/lib/messages.js +99 -0
- package/plugins/eslint/node_modules/espree/lib/string-map.js +55 -0
- package/plugins/eslint/node_modules/espree/lib/syntax.js +189 -0
- package/plugins/eslint/node_modules/espree/lib/token-info.js +90 -0
- package/plugins/eslint/node_modules/espree/lib/xhtml-entities.js +293 -0
- package/plugins/eslint/node_modules/espree/package.json +83 -0
- package/plugins/eslint/node_modules/espree/test/compat.js +255 -0
- package/plugins/eslint/node_modules/espree/test/reflect.js +422 -0
- package/plugins/eslint/node_modules/espree/test/run.js +68 -0
- package/plugins/eslint/node_modules/espree/test/runner.js +492 -0
- package/plugins/eslint/node_modules/espree/test/test.js +34 -0
- package/plugins/eslint/node_modules/esprima/ChangeLog +174 -0
- package/plugins/eslint/node_modules/esprima/LICENSE.BSD +21 -0
- package/plugins/eslint/node_modules/esprima/README.md +27 -0
- package/plugins/eslint/node_modules/esprima/esprima.js +5740 -0
- package/plugins/eslint/node_modules/esprima/package.json +99 -0
- package/plugins/eslint/node_modules/esutils/LICENSE.BSD +19 -0
- package/plugins/eslint/node_modules/esutils/README.md +169 -0
- package/plugins/eslint/node_modules/esutils/lib/ast.js +144 -0
- package/plugins/eslint/node_modules/esutils/lib/code.js +101 -0
- package/plugins/eslint/node_modules/esutils/lib/keyword.js +137 -0
- package/plugins/eslint/node_modules/esutils/lib/utils.js +33 -0
- package/plugins/eslint/node_modules/esutils/package.json +49 -0
- package/plugins/eslint/node_modules/fast-levenshtein/LICENSE.md +25 -0
- package/plugins/eslint/node_modules/fast-levenshtein/README.md +120 -0
- package/plugins/eslint/node_modules/fast-levenshtein/levenshtein.js +198 -0
- package/plugins/eslint/node_modules/fast-levenshtein/package.json +36 -0
- package/plugins/eslint/node_modules/figures/index.js +147 -0
- package/plugins/eslint/node_modules/figures/license +21 -0
- package/plugins/eslint/node_modules/figures/node_modules/object-assign/index.js +90 -0
- package/plugins/eslint/node_modules/figures/node_modules/object-assign/license +21 -0
- package/plugins/eslint/node_modules/figures/node_modules/object-assign/package.json +42 -0
- package/plugins/eslint/node_modules/figures/node_modules/object-assign/readme.md +61 -0
- package/plugins/eslint/node_modules/figures/package.json +45 -0
- package/plugins/eslint/node_modules/figures/readme.md +115 -0
- package/plugins/eslint/node_modules/forever-agent/LICENSE +55 -0
- package/plugins/eslint/node_modules/forever-agent/README.md +4 -0
- package/plugins/eslint/node_modules/forever-agent/index.js +119 -0
- package/plugins/eslint/node_modules/forever-agent/package.json +16 -0
- package/plugins/eslint/node_modules/form-data/License +19 -0
- package/plugins/eslint/node_modules/form-data/Readme.md +175 -0
- package/plugins/eslint/node_modules/form-data/lib/form_data.js +351 -0
- package/plugins/eslint/node_modules/form-data/node_modules/async/.travis.yml +5 -0
- package/plugins/eslint/node_modules/form-data/node_modules/async/LICENSE +19 -0
- package/plugins/eslint/node_modules/form-data/node_modules/async/README.md +1647 -0
- package/plugins/eslint/node_modules/form-data/node_modules/async/bower.json +38 -0
- package/plugins/eslint/node_modules/form-data/node_modules/async/component.json +16 -0
- package/plugins/eslint/node_modules/form-data/node_modules/async/lib/async.js +1123 -0
- package/plugins/eslint/node_modules/form-data/node_modules/async/package.json +54 -0
- package/plugins/eslint/node_modules/form-data/node_modules/async/support/sync-package-managers.js +53 -0
- package/plugins/eslint/node_modules/form-data/package.json +34 -0
- package/plugins/eslint/node_modules/glob/.travis.yml +3 -0
- package/plugins/eslint/node_modules/glob/LICENSE +27 -0
- package/plugins/eslint/node_modules/glob/README.md +250 -0
- package/plugins/eslint/node_modules/glob/examples/g.js +9 -0
- package/plugins/eslint/node_modules/glob/examples/usr-local.js +9 -0
- package/plugins/eslint/node_modules/glob/glob.js +728 -0
- package/plugins/eslint/node_modules/glob/node_modules/minimatch/LICENSE +23 -0
- package/plugins/eslint/node_modules/glob/node_modules/minimatch/README.md +218 -0
- package/plugins/eslint/node_modules/glob/node_modules/minimatch/minimatch.js +1061 -0
- package/plugins/eslint/node_modules/glob/node_modules/minimatch/package.json +28 -0
- package/plugins/eslint/node_modules/glob/node_modules/minimatch/test/basic.js +399 -0
- package/plugins/eslint/node_modules/glob/node_modules/minimatch/test/brace-expand.js +33 -0
- package/plugins/eslint/node_modules/glob/node_modules/minimatch/test/caching.js +14 -0
- package/plugins/eslint/node_modules/glob/node_modules/minimatch/test/defaults.js +274 -0
- package/plugins/eslint/node_modules/glob/node_modules/minimatch/test/extglob-ending-with-state-char.js +8 -0
- package/plugins/eslint/node_modules/glob/package.json +28 -0
- package/plugins/eslint/node_modules/glob/test/00-setup.js +176 -0
- package/plugins/eslint/node_modules/glob/test/bash-comparison.js +63 -0
- package/plugins/eslint/node_modules/glob/test/bash-results.json +351 -0
- package/plugins/eslint/node_modules/glob/test/cwd-test.js +55 -0
- package/plugins/eslint/node_modules/glob/test/globstar-match.js +19 -0
- package/plugins/eslint/node_modules/glob/test/mark.js +118 -0
- package/plugins/eslint/node_modules/glob/test/new-glob-optional-options.js +10 -0
- package/plugins/eslint/node_modules/glob/test/nocase-nomagic.js +113 -0
- package/plugins/eslint/node_modules/glob/test/pause-resume.js +73 -0
- package/plugins/eslint/node_modules/glob/test/readme-issue.js +36 -0
- package/plugins/eslint/node_modules/glob/test/root-nomount.js +39 -0
- package/plugins/eslint/node_modules/glob/test/root.js +46 -0
- package/plugins/eslint/node_modules/glob/test/stat.js +32 -0
- package/plugins/eslint/node_modules/glob/test/zz-cleanup.js +11 -0
- package/plugins/eslint/node_modules/globals/globals.json +1245 -0
- package/plugins/eslint/node_modules/globals/index.js +1 -0
- package/plugins/eslint/node_modules/globals/license +21 -0
- package/plugins/eslint/node_modules/globals/package.json +35 -0
- package/plugins/eslint/node_modules/globals/readme.md +39 -0
- package/plugins/eslint/node_modules/growl/History.md +63 -0
- package/plugins/eslint/node_modules/growl/Readme.md +108 -0
- package/plugins/eslint/node_modules/growl/lib/growl.js +290 -0
- package/plugins/eslint/node_modules/growl/package.json +15 -0
- package/plugins/eslint/node_modules/growl/test.js +31 -0
- package/plugins/eslint/node_modules/has-flag/index.js +10 -0
- package/plugins/eslint/node_modules/has-flag/license +21 -0
- package/plugins/eslint/node_modules/has-flag/package.json +48 -0
- package/plugins/eslint/node_modules/has-flag/readme.md +64 -0
- package/plugins/eslint/node_modules/http-signature/.dir-locals.el +6 -0
- package/plugins/eslint/node_modules/http-signature/LICENSE +18 -0
- package/plugins/eslint/node_modules/http-signature/README.md +79 -0
- package/plugins/eslint/node_modules/http-signature/http_signing.md +296 -0
- package/plugins/eslint/node_modules/http-signature/lib/index.js +26 -0
- package/plugins/eslint/node_modules/http-signature/lib/parser.js +304 -0
- package/plugins/eslint/node_modules/http-signature/lib/signer.js +178 -0
- package/plugins/eslint/node_modules/http-signature/lib/util.js +304 -0
- package/plugins/eslint/node_modules/http-signature/lib/verify.js +42 -0
- package/plugins/eslint/node_modules/http-signature/package.json +37 -0
- package/plugins/eslint/node_modules/indent-string/index.js +20 -0
- package/plugins/eslint/node_modules/indent-string/license +21 -0
- package/plugins/eslint/node_modules/indent-string/package.json +36 -0
- package/plugins/eslint/node_modules/indent-string/readme.md +58 -0
- package/plugins/eslint/node_modules/inquirer/README.md +295 -0
- package/plugins/eslint/node_modules/inquirer/lib/inquirer.js +79 -0
- package/plugins/eslint/node_modules/inquirer/lib/objects/choice.js +44 -0
- package/plugins/eslint/node_modules/inquirer/lib/objects/choices.js +180 -0
- package/plugins/eslint/node_modules/inquirer/lib/objects/separator.js +47 -0
- package/plugins/eslint/node_modules/inquirer/lib/prompts/base.js +231 -0
- package/plugins/eslint/node_modules/inquirer/lib/prompts/checkbox.js +258 -0
- package/plugins/eslint/node_modules/inquirer/lib/prompts/confirm.js +105 -0
- package/plugins/eslint/node_modules/inquirer/lib/prompts/expand.js +258 -0
- package/plugins/eslint/node_modules/inquirer/lib/prompts/input.js +106 -0
- package/plugins/eslint/node_modules/inquirer/lib/prompts/list.js +194 -0
- package/plugins/eslint/node_modules/inquirer/lib/prompts/password.js +153 -0
- package/plugins/eslint/node_modules/inquirer/lib/prompts/rawlist.js +191 -0
- package/plugins/eslint/node_modules/inquirer/lib/ui/baseUI.js +83 -0
- package/plugins/eslint/node_modules/inquirer/lib/ui/bottom-bar.js +77 -0
- package/plugins/eslint/node_modules/inquirer/lib/ui/prompt.js +136 -0
- package/plugins/eslint/node_modules/inquirer/lib/utils/events.js +32 -0
- package/plugins/eslint/node_modules/inquirer/lib/utils/tty.js +130 -0
- package/plugins/eslint/node_modules/inquirer/lib/utils/utils.js +123 -0
- package/plugins/eslint/node_modules/inquirer/package.json +44 -0
- package/plugins/eslint/node_modules/isarray/README.md +54 -0
- package/plugins/eslint/node_modules/isarray/component.json +19 -0
- package/plugins/eslint/node_modules/isarray/index.js +3 -0
- package/plugins/eslint/node_modules/isarray/package.json +25 -0
- package/plugins/eslint/node_modules/istanbul/CHANGELOG.md +304 -0
- package/plugins/eslint/node_modules/istanbul/LICENSE +24 -0
- package/plugins/eslint/node_modules/istanbul/README.md +269 -0
- package/plugins/eslint/node_modules/istanbul/index.js +153 -0
- package/plugins/eslint/node_modules/istanbul/lib/assets/base.css +182 -0
- package/plugins/eslint/node_modules/istanbul/lib/assets/sort-arrow-sprite.png +0 -0
- package/plugins/eslint/node_modules/istanbul/lib/assets/sorter.js +156 -0
- package/plugins/eslint/node_modules/istanbul/lib/assets/vendor/prettify.css +1 -0
- package/plugins/eslint/node_modules/istanbul/lib/assets/vendor/prettify.js +1 -0
- package/plugins/eslint/node_modules/istanbul/lib/cli.js +94 -0
- package/plugins/eslint/node_modules/istanbul/lib/collector.js +122 -0
- package/plugins/eslint/node_modules/istanbul/lib/command/check-coverage.js +195 -0
- package/plugins/eslint/node_modules/istanbul/lib/command/common/run-with-cover.js +261 -0
- package/plugins/eslint/node_modules/istanbul/lib/command/cover.js +33 -0
- package/plugins/eslint/node_modules/istanbul/lib/command/help.js +102 -0
- package/plugins/eslint/node_modules/istanbul/lib/command/index.js +33 -0
- package/plugins/eslint/node_modules/istanbul/lib/command/instrument.js +261 -0
- package/plugins/eslint/node_modules/istanbul/lib/command/report.js +123 -0
- package/plugins/eslint/node_modules/istanbul/lib/command/test.js +31 -0
- package/plugins/eslint/node_modules/istanbul/lib/config.js +483 -0
- package/plugins/eslint/node_modules/istanbul/lib/hook.js +198 -0
- package/plugins/eslint/node_modules/istanbul/lib/instrumenter.js +1040 -0
- package/plugins/eslint/node_modules/istanbul/lib/object-utils.js +425 -0
- package/plugins/eslint/node_modules/istanbul/lib/register-plugins.js +15 -0
- package/plugins/eslint/node_modules/istanbul/lib/report/clover.js +227 -0
- package/plugins/eslint/node_modules/istanbul/lib/report/cobertura.js +221 -0
- package/plugins/eslint/node_modules/istanbul/lib/report/common/defaults.js +49 -0
- package/plugins/eslint/node_modules/istanbul/lib/report/html.js +567 -0
- package/plugins/eslint/node_modules/istanbul/lib/report/index.js +104 -0
- package/plugins/eslint/node_modules/istanbul/lib/report/json-summary.js +75 -0
- package/plugins/eslint/node_modules/istanbul/lib/report/json.js +69 -0
- package/plugins/eslint/node_modules/istanbul/lib/report/lcov.js +65 -0
- package/plugins/eslint/node_modules/istanbul/lib/report/lcovonly.js +103 -0
- package/plugins/eslint/node_modules/istanbul/lib/report/none.js +41 -0
- package/plugins/eslint/node_modules/istanbul/lib/report/teamcity.js +92 -0
- package/plugins/eslint/node_modules/istanbul/lib/report/templates/foot.txt +18 -0
- package/plugins/eslint/node_modules/istanbul/lib/report/templates/head.txt +36 -0
- package/plugins/eslint/node_modules/istanbul/lib/report/text-lcov.js +50 -0
- package/plugins/eslint/node_modules/istanbul/lib/report/text-summary.js +93 -0
- package/plugins/eslint/node_modules/istanbul/lib/report/text.js +234 -0
- package/plugins/eslint/node_modules/istanbul/lib/reporter.js +111 -0
- package/plugins/eslint/node_modules/istanbul/lib/store/fslookup.js +61 -0
- package/plugins/eslint/node_modules/istanbul/lib/store/index.js +123 -0
- package/plugins/eslint/node_modules/istanbul/lib/store/memory.js +56 -0
- package/plugins/eslint/node_modules/istanbul/lib/store/tmp.js +81 -0
- package/plugins/eslint/node_modules/istanbul/lib/util/factory.js +88 -0
- package/plugins/eslint/node_modules/istanbul/lib/util/file-matcher.js +76 -0
- package/plugins/eslint/node_modules/istanbul/lib/util/file-writer.js +154 -0
- package/plugins/eslint/node_modules/istanbul/lib/util/help-formatter.js +30 -0
- package/plugins/eslint/node_modules/istanbul/lib/util/input-error.js +12 -0
- package/plugins/eslint/node_modules/istanbul/lib/util/insertion-text.js +109 -0
- package/plugins/eslint/node_modules/istanbul/lib/util/meta.js +13 -0
- package/plugins/eslint/node_modules/istanbul/lib/util/tree-summarizer.js +213 -0
- package/plugins/eslint/node_modules/istanbul/lib/util/writer.js +92 -0
- package/plugins/eslint/node_modules/istanbul/lib/util/yui-load-hook.js +49 -0
- package/plugins/eslint/node_modules/istanbul/node_modules/esprima/ChangeLog +143 -0
- package/plugins/eslint/node_modules/istanbul/node_modules/esprima/LICENSE.BSD +21 -0
- package/plugins/eslint/node_modules/istanbul/node_modules/esprima/README.md +22 -0
- package/plugins/eslint/node_modules/istanbul/node_modules/esprima/esprima.js +5637 -0
- package/plugins/eslint/node_modules/istanbul/node_modules/esprima/package.json +87 -0
- package/plugins/eslint/node_modules/istanbul/node_modules/supports-color/browser.js +2 -0
- package/plugins/eslint/node_modules/istanbul/node_modules/supports-color/index.js +84 -0
- package/plugins/eslint/node_modules/istanbul/node_modules/supports-color/license +21 -0
- package/plugins/eslint/node_modules/istanbul/node_modules/supports-color/package.json +66 -0
- package/plugins/eslint/node_modules/istanbul/node_modules/supports-color/readme.md +60 -0
- package/plugins/eslint/node_modules/istanbul/package.json +117 -0
- package/plugins/eslint/node_modules/js-yaml/CHANGELOG.md +557 -0
- package/plugins/eslint/node_modules/js-yaml/LICENSE +21 -0
- package/plugins/eslint/node_modules/js-yaml/README.md +299 -0
- package/plugins/eslint/node_modules/js-yaml/dist/js-yaml.js +3989 -0
- package/plugins/eslint/node_modules/js-yaml/dist/js-yaml.min.js +1 -0
- package/plugins/eslint/node_modules/js-yaml/index.js +7 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/common.js +59 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/dumper.js +850 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/exception.js +43 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/loader.js +1644 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/mark.js +76 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/schema/core.js +18 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +25 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js +28 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js +17 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/schema/json.js +25 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/schema.js +108 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/binary.js +138 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/bool.js +35 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/float.js +116 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/int.js +173 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/js/function.js +93 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +60 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +28 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/map.js +8 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/merge.js +12 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/null.js +34 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/omap.js +44 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/pairs.js +53 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/seq.js +8 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/set.js +29 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/str.js +8 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +88 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml/type.js +61 -0
- package/plugins/eslint/node_modules/js-yaml/lib/js-yaml.js +39 -0
- package/plugins/eslint/node_modules/js-yaml/node_modules/esprima/ChangeLog +235 -0
- package/plugins/eslint/node_modules/js-yaml/node_modules/esprima/LICENSE.BSD +21 -0
- package/plugins/eslint/node_modules/js-yaml/node_modules/esprima/README.md +46 -0
- package/plugins/eslint/node_modules/js-yaml/node_modules/esprima/dist/esprima.js +6709 -0
- package/plugins/eslint/node_modules/js-yaml/node_modules/esprima/package.json +112 -0
- package/plugins/eslint/node_modules/js-yaml/package.json +49 -0
- package/plugins/eslint/node_modules/lcov-parse/.travis.yml +5 -0
- package/plugins/eslint/node_modules/lcov-parse/LICENSE +25 -0
- package/plugins/eslint/node_modules/lcov-parse/README.md +79 -0
- package/plugins/eslint/node_modules/lcov-parse/lib/index.js +122 -0
- package/plugins/eslint/node_modules/lcov-parse/package.json +39 -0
- package/plugins/eslint/node_modules/lcov-parse/tests/info/parts.info +415 -0
- package/plugins/eslint/node_modules/lcov-parse/tests/parse.js +115 -0
- package/plugins/eslint/node_modules/levn/LICENSE +22 -0
- package/plugins/eslint/node_modules/levn/README.md +195 -0
- package/plugins/eslint/node_modules/levn/lib/cast.js +298 -0
- package/plugins/eslint/node_modules/levn/lib/coerce.js +285 -0
- package/plugins/eslint/node_modules/levn/lib/index.js +22 -0
- package/plugins/eslint/node_modules/levn/lib/parse-string.js +113 -0
- package/plugins/eslint/node_modules/levn/lib/parse.js +102 -0
- package/plugins/eslint/node_modules/levn/package.json +52 -0
- package/plugins/eslint/node_modules/lodash/LICENSE +22 -0
- package/plugins/eslint/node_modules/lodash/README.md +121 -0
- package/plugins/eslint/node_modules/lodash/array/chunk.js +46 -0
- package/plugins/eslint/node_modules/lodash/array/compact.js +30 -0
- package/plugins/eslint/node_modules/lodash/array/difference.js +29 -0
- package/plugins/eslint/node_modules/lodash/array/drop.js +39 -0
- package/plugins/eslint/node_modules/lodash/array/dropRight.js +40 -0
- package/plugins/eslint/node_modules/lodash/array/dropRightWhile.js +59 -0
- package/plugins/eslint/node_modules/lodash/array/dropWhile.js +59 -0
- package/plugins/eslint/node_modules/lodash/array/fill.js +44 -0
- package/plugins/eslint/node_modules/lodash/array/findIndex.js +53 -0
- package/plugins/eslint/node_modules/lodash/array/findLastIndex.js +53 -0
- package/plugins/eslint/node_modules/lodash/array/first.js +22 -0
- package/plugins/eslint/node_modules/lodash/array/flatten.js +32 -0
- package/plugins/eslint/node_modules/lodash/array/flattenDeep.js +21 -0
- package/plugins/eslint/node_modules/lodash/array/head.js +1 -0
- package/plugins/eslint/node_modules/lodash/array/indexOf.js +53 -0
- package/plugins/eslint/node_modules/lodash/array/initial.js +20 -0
- package/plugins/eslint/node_modules/lodash/array/intersection.js +58 -0
- package/plugins/eslint/node_modules/lodash/array/last.js +19 -0
- package/plugins/eslint/node_modules/lodash/array/lastIndexOf.js +60 -0
- package/plugins/eslint/node_modules/lodash/array/object.js +1 -0
- package/plugins/eslint/node_modules/lodash/array/pull.js +52 -0
- package/plugins/eslint/node_modules/lodash/array/pullAt.js +40 -0
- package/plugins/eslint/node_modules/lodash/array/remove.js +64 -0
- package/plugins/eslint/node_modules/lodash/array/rest.js +21 -0
- package/plugins/eslint/node_modules/lodash/array/slice.js +30 -0
- package/plugins/eslint/node_modules/lodash/array/sortedIndex.js +53 -0
- package/plugins/eslint/node_modules/lodash/array/sortedLastIndex.js +25 -0
- package/plugins/eslint/node_modules/lodash/array/tail.js +1 -0
- package/plugins/eslint/node_modules/lodash/array/take.js +39 -0
- package/plugins/eslint/node_modules/lodash/array/takeRight.js +40 -0
- package/plugins/eslint/node_modules/lodash/array/takeRightWhile.js +59 -0
- package/plugins/eslint/node_modules/lodash/array/takeWhile.js +59 -0
- package/plugins/eslint/node_modules/lodash/array/union.js +24 -0
- package/plugins/eslint/node_modules/lodash/array/uniq.js +71 -0
- package/plugins/eslint/node_modules/lodash/array/unique.js +1 -0
- package/plugins/eslint/node_modules/lodash/array/unzip.js +47 -0
- package/plugins/eslint/node_modules/lodash/array/unzipWith.js +41 -0
- package/plugins/eslint/node_modules/lodash/array/without.js +27 -0
- package/plugins/eslint/node_modules/lodash/array/xor.js +35 -0
- package/plugins/eslint/node_modules/lodash/array/zip.js +21 -0
- package/plugins/eslint/node_modules/lodash/array/zipObject.js +43 -0
- package/plugins/eslint/node_modules/lodash/array/zipWith.js +36 -0
- package/plugins/eslint/node_modules/lodash/array.js +44 -0
- package/plugins/eslint/node_modules/lodash/chain/chain.js +35 -0
- package/plugins/eslint/node_modules/lodash/chain/commit.js +1 -0
- package/plugins/eslint/node_modules/lodash/chain/concat.js +1 -0
- package/plugins/eslint/node_modules/lodash/chain/lodash.js +125 -0
- package/plugins/eslint/node_modules/lodash/chain/plant.js +1 -0
- package/plugins/eslint/node_modules/lodash/chain/reverse.js +1 -0
- package/plugins/eslint/node_modules/lodash/chain/run.js +1 -0
- package/plugins/eslint/node_modules/lodash/chain/tap.js +29 -0
- package/plugins/eslint/node_modules/lodash/chain/thru.js +26 -0
- package/plugins/eslint/node_modules/lodash/chain/toJSON.js +1 -0
- package/plugins/eslint/node_modules/lodash/chain/toString.js +1 -0
- package/plugins/eslint/node_modules/lodash/chain/value.js +1 -0
- package/plugins/eslint/node_modules/lodash/chain/valueOf.js +1 -0
- package/plugins/eslint/node_modules/lodash/chain/wrapperChain.js +32 -0
- package/plugins/eslint/node_modules/lodash/chain/wrapperCommit.js +32 -0
- package/plugins/eslint/node_modules/lodash/chain/wrapperConcat.js +34 -0
- package/plugins/eslint/node_modules/lodash/chain/wrapperPlant.js +45 -0
- package/plugins/eslint/node_modules/lodash/chain/wrapperReverse.js +43 -0
- package/plugins/eslint/node_modules/lodash/chain/wrapperToString.js +17 -0
- package/plugins/eslint/node_modules/lodash/chain/wrapperValue.js +20 -0
- package/plugins/eslint/node_modules/lodash/chain.js +16 -0
- package/plugins/eslint/node_modules/lodash/collection/all.js +1 -0
- package/plugins/eslint/node_modules/lodash/collection/any.js +1 -0
- package/plugins/eslint/node_modules/lodash/collection/at.js +29 -0
- package/plugins/eslint/node_modules/lodash/collection/collect.js +1 -0
- package/plugins/eslint/node_modules/lodash/collection/contains.js +1 -0
- package/plugins/eslint/node_modules/lodash/collection/countBy.js +54 -0
- package/plugins/eslint/node_modules/lodash/collection/detect.js +1 -0
- package/plugins/eslint/node_modules/lodash/collection/each.js +1 -0
- package/plugins/eslint/node_modules/lodash/collection/eachRight.js +1 -0
- package/plugins/eslint/node_modules/lodash/collection/every.js +66 -0
- package/plugins/eslint/node_modules/lodash/collection/filter.js +61 -0
- package/plugins/eslint/node_modules/lodash/collection/find.js +56 -0
- package/plugins/eslint/node_modules/lodash/collection/findLast.js +25 -0
- package/plugins/eslint/node_modules/lodash/collection/findWhere.js +37 -0
- package/plugins/eslint/node_modules/lodash/collection/foldl.js +1 -0
- package/plugins/eslint/node_modules/lodash/collection/foldr.js +1 -0
- package/plugins/eslint/node_modules/lodash/collection/forEach.js +37 -0
- package/plugins/eslint/node_modules/lodash/collection/forEachRight.js +26 -0
- package/plugins/eslint/node_modules/lodash/collection/groupBy.js +59 -0
- package/plugins/eslint/node_modules/lodash/collection/include.js +1 -0
- package/plugins/eslint/node_modules/lodash/collection/includes.js +57 -0
- package/plugins/eslint/node_modules/lodash/collection/indexBy.js +53 -0
- package/plugins/eslint/node_modules/lodash/collection/inject.js +1 -0
- package/plugins/eslint/node_modules/lodash/collection/invoke.js +42 -0
- package/plugins/eslint/node_modules/lodash/collection/map.js +68 -0
- package/plugins/eslint/node_modules/lodash/collection/max.js +1 -0
- package/plugins/eslint/node_modules/lodash/collection/min.js +1 -0
- package/plugins/eslint/node_modules/lodash/collection/partition.js +66 -0
- package/plugins/eslint/node_modules/lodash/collection/pluck.js +31 -0
- package/plugins/eslint/node_modules/lodash/collection/reduce.js +44 -0
- package/plugins/eslint/node_modules/lodash/collection/reduceRight.js +29 -0
- package/plugins/eslint/node_modules/lodash/collection/reject.js +50 -0
- package/plugins/eslint/node_modules/lodash/collection/sample.js +50 -0
- package/plugins/eslint/node_modules/lodash/collection/select.js +1 -0
- package/plugins/eslint/node_modules/lodash/collection/shuffle.js +24 -0
- package/plugins/eslint/node_modules/lodash/collection/size.js +30 -0
- package/plugins/eslint/node_modules/lodash/collection/some.js +67 -0
- package/plugins/eslint/node_modules/lodash/collection/sortBy.js +71 -0
- package/plugins/eslint/node_modules/lodash/collection/sortByAll.js +52 -0
- package/plugins/eslint/node_modules/lodash/collection/sortByOrder.js +55 -0
- package/plugins/eslint/node_modules/lodash/collection/sum.js +1 -0
- package/plugins/eslint/node_modules/lodash/collection/where.js +37 -0
- package/plugins/eslint/node_modules/lodash/collection.js +44 -0
- package/plugins/eslint/node_modules/lodash/date/now.js +24 -0
- package/plugins/eslint/node_modules/lodash/date.js +3 -0
- package/plugins/eslint/node_modules/lodash/function/after.js +48 -0
- package/plugins/eslint/node_modules/lodash/function/ary.js +34 -0
- package/plugins/eslint/node_modules/lodash/function/backflow.js +1 -0
- package/plugins/eslint/node_modules/lodash/function/before.js +42 -0
- package/plugins/eslint/node_modules/lodash/function/bind.js +56 -0
- package/plugins/eslint/node_modules/lodash/function/bindAll.js +50 -0
- package/plugins/eslint/node_modules/lodash/function/bindKey.js +66 -0
- package/plugins/eslint/node_modules/lodash/function/compose.js +1 -0
- package/plugins/eslint/node_modules/lodash/function/curry.js +51 -0
- package/plugins/eslint/node_modules/lodash/function/curryRight.js +48 -0
- package/plugins/eslint/node_modules/lodash/function/debounce.js +181 -0
- package/plugins/eslint/node_modules/lodash/function/defer.js +25 -0
- package/plugins/eslint/node_modules/lodash/function/delay.js +26 -0
- package/plugins/eslint/node_modules/lodash/function/flow.js +25 -0
- package/plugins/eslint/node_modules/lodash/function/flowRight.js +25 -0
- package/plugins/eslint/node_modules/lodash/function/memoize.js +80 -0
- package/plugins/eslint/node_modules/lodash/function/modArgs.js +58 -0
- package/plugins/eslint/node_modules/lodash/function/negate.js +32 -0
- package/plugins/eslint/node_modules/lodash/function/once.js +24 -0
- package/plugins/eslint/node_modules/lodash/function/partial.js +43 -0
- package/plugins/eslint/node_modules/lodash/function/partialRight.js +42 -0
- package/plugins/eslint/node_modules/lodash/function/rearg.js +40 -0
- package/plugins/eslint/node_modules/lodash/function/restParam.js +58 -0
- package/plugins/eslint/node_modules/lodash/function/spread.js +44 -0
- package/plugins/eslint/node_modules/lodash/function/throttle.js +62 -0
- package/plugins/eslint/node_modules/lodash/function/wrap.js +33 -0
- package/plugins/eslint/node_modules/lodash/function.js +28 -0
- package/plugins/eslint/node_modules/lodash/index.js +12351 -0
- package/plugins/eslint/node_modules/lodash/internal/LazyWrapper.js +26 -0
- package/plugins/eslint/node_modules/lodash/internal/LodashWrapper.js +21 -0
- package/plugins/eslint/node_modules/lodash/internal/MapCache.js +24 -0
- package/plugins/eslint/node_modules/lodash/internal/SetCache.js +29 -0
- package/plugins/eslint/node_modules/lodash/internal/arrayConcat.js +25 -0
- package/plugins/eslint/node_modules/lodash/internal/arrayCopy.js +20 -0
- package/plugins/eslint/node_modules/lodash/internal/arrayEach.js +22 -0
- package/plugins/eslint/node_modules/lodash/internal/arrayEachRight.js +21 -0
- package/plugins/eslint/node_modules/lodash/internal/arrayEvery.js +23 -0
- package/plugins/eslint/node_modules/lodash/internal/arrayExtremum.js +30 -0
- package/plugins/eslint/node_modules/lodash/internal/arrayFilter.js +25 -0
- package/plugins/eslint/node_modules/lodash/internal/arrayMap.js +21 -0
- package/plugins/eslint/node_modules/lodash/internal/arrayPush.js +20 -0
- package/plugins/eslint/node_modules/lodash/internal/arrayReduce.js +26 -0
- package/plugins/eslint/node_modules/lodash/internal/arrayReduceRight.js +24 -0
- package/plugins/eslint/node_modules/lodash/internal/arraySome.js +23 -0
- package/plugins/eslint/node_modules/lodash/internal/arraySum.js +20 -0
- package/plugins/eslint/node_modules/lodash/internal/assignDefaults.js +13 -0
- package/plugins/eslint/node_modules/lodash/internal/assignOwnDefaults.js +26 -0
- package/plugins/eslint/node_modules/lodash/internal/assignWith.js +32 -0
- package/plugins/eslint/node_modules/lodash/internal/baseAssign.js +19 -0
- package/plugins/eslint/node_modules/lodash/internal/baseAt.js +32 -0
- package/plugins/eslint/node_modules/lodash/internal/baseCallback.js +35 -0
- package/plugins/eslint/node_modules/lodash/internal/baseClone.js +128 -0
- package/plugins/eslint/node_modules/lodash/internal/baseCompareAscending.js +34 -0
- package/plugins/eslint/node_modules/lodash/internal/baseCopy.js +23 -0
- package/plugins/eslint/node_modules/lodash/internal/baseCreate.js +23 -0
- package/plugins/eslint/node_modules/lodash/internal/baseDelay.js +21 -0
- package/plugins/eslint/node_modules/lodash/internal/baseDifference.js +55 -0
- package/plugins/eslint/node_modules/lodash/internal/baseEach.js +15 -0
- package/plugins/eslint/node_modules/lodash/internal/baseEachRight.js +15 -0
- package/plugins/eslint/node_modules/lodash/internal/baseEvery.js +22 -0
- package/plugins/eslint/node_modules/lodash/internal/baseExtremum.js +29 -0
- package/plugins/eslint/node_modules/lodash/internal/baseFill.js +31 -0
- package/plugins/eslint/node_modules/lodash/internal/baseFilter.js +22 -0
- package/plugins/eslint/node_modules/lodash/internal/baseFind.js +25 -0
- package/plugins/eslint/node_modules/lodash/internal/baseFindIndex.js +23 -0
- package/plugins/eslint/node_modules/lodash/internal/baseFlatten.js +41 -0
- package/plugins/eslint/node_modules/lodash/internal/baseFor.js +17 -0
- package/plugins/eslint/node_modules/lodash/internal/baseForIn.js +17 -0
- package/plugins/eslint/node_modules/lodash/internal/baseForOwn.js +17 -0
- package/plugins/eslint/node_modules/lodash/internal/baseForOwnRight.js +17 -0
- package/plugins/eslint/node_modules/lodash/internal/baseForRight.js +15 -0
- package/plugins/eslint/node_modules/lodash/internal/baseFunctions.js +27 -0
- package/plugins/eslint/node_modules/lodash/internal/baseGet.js +29 -0
- package/plugins/eslint/node_modules/lodash/internal/baseIndexOf.js +27 -0
- package/plugins/eslint/node_modules/lodash/internal/baseIsEqual.js +28 -0
- package/plugins/eslint/node_modules/lodash/internal/baseIsEqualDeep.js +102 -0
- package/plugins/eslint/node_modules/lodash/internal/baseIsFunction.js +15 -0
- package/plugins/eslint/node_modules/lodash/internal/baseIsMatch.js +52 -0
- package/plugins/eslint/node_modules/lodash/internal/baseLodash.js +10 -0
- package/plugins/eslint/node_modules/lodash/internal/baseMap.js +23 -0
- package/plugins/eslint/node_modules/lodash/internal/baseMatches.js +30 -0
- package/plugins/eslint/node_modules/lodash/internal/baseMatchesProperty.js +45 -0
- package/plugins/eslint/node_modules/lodash/internal/baseMerge.js +56 -0
- package/plugins/eslint/node_modules/lodash/internal/baseMergeDeep.js +67 -0
- package/plugins/eslint/node_modules/lodash/internal/baseProperty.js +14 -0
- package/plugins/eslint/node_modules/lodash/internal/basePropertyDeep.js +19 -0
- package/plugins/eslint/node_modules/lodash/internal/basePullAt.js +30 -0
- package/plugins/eslint/node_modules/lodash/internal/baseRandom.js +18 -0
- package/plugins/eslint/node_modules/lodash/internal/baseReduce.js +24 -0
- package/plugins/eslint/node_modules/lodash/internal/baseSetData.js +17 -0
- package/plugins/eslint/node_modules/lodash/internal/baseSlice.js +32 -0
- package/plugins/eslint/node_modules/lodash/internal/baseSome.js +23 -0
- package/plugins/eslint/node_modules/lodash/internal/baseSortBy.js +21 -0
- package/plugins/eslint/node_modules/lodash/internal/baseSortByOrder.js +31 -0
- package/plugins/eslint/node_modules/lodash/internal/baseSum.js +20 -0
- package/plugins/eslint/node_modules/lodash/internal/baseToString.js +13 -0
- package/plugins/eslint/node_modules/lodash/internal/baseUniq.js +60 -0
- package/plugins/eslint/node_modules/lodash/internal/baseValues.js +22 -0
- package/plugins/eslint/node_modules/lodash/internal/baseWhile.js +24 -0
- package/plugins/eslint/node_modules/lodash/internal/baseWrapperValue.js +29 -0
- package/plugins/eslint/node_modules/lodash/internal/binaryIndex.js +39 -0
- package/plugins/eslint/node_modules/lodash/internal/binaryIndexBy.js +57 -0
- package/plugins/eslint/node_modules/lodash/internal/bindCallback.js +39 -0
- package/plugins/eslint/node_modules/lodash/internal/bufferClone.js +20 -0
- package/plugins/eslint/node_modules/lodash/internal/cacheIndexOf.js +19 -0
- package/plugins/eslint/node_modules/lodash/internal/cachePush.js +20 -0
- package/plugins/eslint/node_modules/lodash/internal/charsLeftIndex.js +18 -0
- package/plugins/eslint/node_modules/lodash/internal/charsRightIndex.js +17 -0
- package/plugins/eslint/node_modules/lodash/internal/compareAscending.js +16 -0
- package/plugins/eslint/node_modules/lodash/internal/compareMultiple.js +44 -0
- package/plugins/eslint/node_modules/lodash/internal/composeArgs.js +34 -0
- package/plugins/eslint/node_modules/lodash/internal/composeArgsRight.js +36 -0
- package/plugins/eslint/node_modules/lodash/internal/createAggregator.js +35 -0
- package/plugins/eslint/node_modules/lodash/internal/createAssigner.js +41 -0
- package/plugins/eslint/node_modules/lodash/internal/createBaseEach.js +31 -0
- package/plugins/eslint/node_modules/lodash/internal/createBaseFor.js +27 -0
- package/plugins/eslint/node_modules/lodash/internal/createBindWrapper.js +22 -0
- package/plugins/eslint/node_modules/lodash/internal/createCache.js +21 -0
- package/plugins/eslint/node_modules/lodash/internal/createCompounder.js +26 -0
- package/plugins/eslint/node_modules/lodash/internal/createCtorWrapper.js +37 -0
- package/plugins/eslint/node_modules/lodash/internal/createCurry.js +23 -0
- package/plugins/eslint/node_modules/lodash/internal/createDefaults.js +22 -0
- package/plugins/eslint/node_modules/lodash/internal/createExtremum.js +33 -0
- package/plugins/eslint/node_modules/lodash/internal/createFind.js +25 -0
- package/plugins/eslint/node_modules/lodash/internal/createFindIndex.js +21 -0
- package/plugins/eslint/node_modules/lodash/internal/createFindKey.js +18 -0
- package/plugins/eslint/node_modules/lodash/internal/createFlow.js +74 -0
- package/plugins/eslint/node_modules/lodash/internal/createForEach.js +20 -0
- package/plugins/eslint/node_modules/lodash/internal/createForIn.js +20 -0
- package/plugins/eslint/node_modules/lodash/internal/createForOwn.js +19 -0
- package/plugins/eslint/node_modules/lodash/internal/createHybridWrapper.js +111 -0
- package/plugins/eslint/node_modules/lodash/internal/createObjectMapper.js +26 -0
- package/plugins/eslint/node_modules/lodash/internal/createPadDir.js +18 -0
- package/plugins/eslint/node_modules/lodash/internal/createPadding.js +29 -0
- package/plugins/eslint/node_modules/lodash/internal/createPartial.js +20 -0
- package/plugins/eslint/node_modules/lodash/internal/createPartialWrapper.js +43 -0
- package/plugins/eslint/node_modules/lodash/internal/createReduce.js +22 -0
- package/plugins/eslint/node_modules/lodash/internal/createRound.js +23 -0
- package/plugins/eslint/node_modules/lodash/internal/createSortedIndex.js +20 -0
- package/plugins/eslint/node_modules/lodash/internal/createWrapper.js +86 -0
- package/plugins/eslint/node_modules/lodash/internal/deburrLetter.js +33 -0
- package/plugins/eslint/node_modules/lodash/internal/equalArrays.js +51 -0
- package/plugins/eslint/node_modules/lodash/internal/equalByTag.js +48 -0
- package/plugins/eslint/node_modules/lodash/internal/equalObjects.js +67 -0
- package/plugins/eslint/node_modules/lodash/internal/escapeHtmlChar.js +22 -0
- package/plugins/eslint/node_modules/lodash/internal/escapeRegExpChar.js +38 -0
- package/plugins/eslint/node_modules/lodash/internal/escapeStringChar.js +22 -0
- package/plugins/eslint/node_modules/lodash/internal/getData.js +15 -0
- package/plugins/eslint/node_modules/lodash/internal/getFuncName.js +25 -0
- package/plugins/eslint/node_modules/lodash/internal/getLength.js +15 -0
- package/plugins/eslint/node_modules/lodash/internal/getMatchData.js +21 -0
- package/plugins/eslint/node_modules/lodash/internal/getNative.js +16 -0
- package/plugins/eslint/node_modules/lodash/internal/getView.js +33 -0
- package/plugins/eslint/node_modules/lodash/internal/indexOfNaN.js +23 -0
- package/plugins/eslint/node_modules/lodash/internal/initCloneArray.js +26 -0
- package/plugins/eslint/node_modules/lodash/internal/initCloneByTag.js +63 -0
- package/plugins/eslint/node_modules/lodash/internal/initCloneObject.js +16 -0
- package/plugins/eslint/node_modules/lodash/internal/invokePath.js +26 -0
- package/plugins/eslint/node_modules/lodash/internal/isArrayLike.js +15 -0
- package/plugins/eslint/node_modules/lodash/internal/isIndex.js +24 -0
- package/plugins/eslint/node_modules/lodash/internal/isIterateeCall.js +28 -0
- package/plugins/eslint/node_modules/lodash/internal/isKey.js +28 -0
- package/plugins/eslint/node_modules/lodash/internal/isLaziable.js +27 -0
- package/plugins/eslint/node_modules/lodash/internal/isLength.js +20 -0
- package/plugins/eslint/node_modules/lodash/internal/isObjectLike.js +12 -0
- package/plugins/eslint/node_modules/lodash/internal/isSpace.js +14 -0
- package/plugins/eslint/node_modules/lodash/internal/isStrictComparable.js +15 -0
- package/plugins/eslint/node_modules/lodash/internal/lazyClone.js +23 -0
- package/plugins/eslint/node_modules/lodash/internal/lazyReverse.js +23 -0
- package/plugins/eslint/node_modules/lodash/internal/lazyValue.js +72 -0
- package/plugins/eslint/node_modules/lodash/internal/mapDelete.js +14 -0
- package/plugins/eslint/node_modules/lodash/internal/mapGet.js +14 -0
- package/plugins/eslint/node_modules/lodash/internal/mapHas.js +20 -0
- package/plugins/eslint/node_modules/lodash/internal/mapSet.js +18 -0
- package/plugins/eslint/node_modules/lodash/internal/mergeData.js +89 -0
- package/plugins/eslint/node_modules/lodash/internal/mergeDefaults.js +15 -0
- package/plugins/eslint/node_modules/lodash/internal/metaMap.js +9 -0
- package/plugins/eslint/node_modules/lodash/internal/pickByArray.js +28 -0
- package/plugins/eslint/node_modules/lodash/internal/pickByCallback.js +22 -0
- package/plugins/eslint/node_modules/lodash/internal/reEscape.js +4 -0
- package/plugins/eslint/node_modules/lodash/internal/reEvaluate.js +4 -0
- package/plugins/eslint/node_modules/lodash/internal/reInterpolate.js +4 -0
- package/plugins/eslint/node_modules/lodash/internal/realNames.js +4 -0
- package/plugins/eslint/node_modules/lodash/internal/reorder.js +29 -0
- package/plugins/eslint/node_modules/lodash/internal/replaceHolders.js +28 -0
- package/plugins/eslint/node_modules/lodash/internal/setData.js +41 -0
- package/plugins/eslint/node_modules/lodash/internal/shimKeys.js +41 -0
- package/plugins/eslint/node_modules/lodash/internal/sortedUniq.js +29 -0
- package/plugins/eslint/node_modules/lodash/internal/toIterable.js +22 -0
- package/plugins/eslint/node_modules/lodash/internal/toObject.js +14 -0
- package/plugins/eslint/node_modules/lodash/internal/toPath.js +28 -0
- package/plugins/eslint/node_modules/lodash/internal/trimmedLeftIndex.js +19 -0
- package/plugins/eslint/node_modules/lodash/internal/trimmedRightIndex.js +18 -0
- package/plugins/eslint/node_modules/lodash/internal/unescapeHtmlChar.js +22 -0
- package/plugins/eslint/node_modules/lodash/internal/wrapperClone.js +18 -0
- package/plugins/eslint/node_modules/lodash/lang/clone.js +70 -0
- package/plugins/eslint/node_modules/lodash/lang/cloneDeep.js +55 -0
- package/plugins/eslint/node_modules/lodash/lang/eq.js +1 -0
- package/plugins/eslint/node_modules/lodash/lang/gt.js +25 -0
- package/plugins/eslint/node_modules/lodash/lang/gte.js +25 -0
- package/plugins/eslint/node_modules/lodash/lang/isArguments.js +34 -0
- package/plugins/eslint/node_modules/lodash/lang/isArray.js +40 -0
- package/plugins/eslint/node_modules/lodash/lang/isBoolean.js +35 -0
- package/plugins/eslint/node_modules/lodash/lang/isDate.js +35 -0
- package/plugins/eslint/node_modules/lodash/lang/isElement.js +24 -0
- package/plugins/eslint/node_modules/lodash/lang/isEmpty.js +47 -0
- package/plugins/eslint/node_modules/lodash/lang/isEqual.js +54 -0
- package/plugins/eslint/node_modules/lodash/lang/isError.js +36 -0
- package/plugins/eslint/node_modules/lodash/lang/isFinite.js +35 -0
- package/plugins/eslint/node_modules/lodash/lang/isFunction.js +38 -0
- package/plugins/eslint/node_modules/lodash/lang/isMatch.js +49 -0
- package/plugins/eslint/node_modules/lodash/lang/isNaN.js +34 -0
- package/plugins/eslint/node_modules/lodash/lang/isNative.js +48 -0
- package/plugins/eslint/node_modules/lodash/lang/isNull.js +21 -0
- package/plugins/eslint/node_modules/lodash/lang/isNumber.js +41 -0
- package/plugins/eslint/node_modules/lodash/lang/isObject.js +28 -0
- package/plugins/eslint/node_modules/lodash/lang/isPlainObject.js +71 -0
- package/plugins/eslint/node_modules/lodash/lang/isRegExp.js +35 -0
- package/plugins/eslint/node_modules/lodash/lang/isString.js +35 -0
- package/plugins/eslint/node_modules/lodash/lang/isTypedArray.js +74 -0
- package/plugins/eslint/node_modules/lodash/lang/isUndefined.js +21 -0
- package/plugins/eslint/node_modules/lodash/lang/lt.js +25 -0
- package/plugins/eslint/node_modules/lodash/lang/lte.js +25 -0
- package/plugins/eslint/node_modules/lodash/lang/toArray.js +32 -0
- package/plugins/eslint/node_modules/lodash/lang/toPlainObject.js +31 -0
- package/plugins/eslint/node_modules/lodash/lang.js +32 -0
- package/plugins/eslint/node_modules/lodash/math/add.js +19 -0
- package/plugins/eslint/node_modules/lodash/math/ceil.js +25 -0
- package/plugins/eslint/node_modules/lodash/math/floor.js +25 -0
- package/plugins/eslint/node_modules/lodash/math/max.js +56 -0
- package/plugins/eslint/node_modules/lodash/math/min.js +56 -0
- package/plugins/eslint/node_modules/lodash/math/round.js +25 -0
- package/plugins/eslint/node_modules/lodash/math/sum.js +50 -0
- package/plugins/eslint/node_modules/lodash/math.js +9 -0
- package/plugins/eslint/node_modules/lodash/number/inRange.js +47 -0
- package/plugins/eslint/node_modules/lodash/number/random.js +70 -0
- package/plugins/eslint/node_modules/lodash/number.js +4 -0
- package/plugins/eslint/node_modules/lodash/object/assign.js +43 -0
- package/plugins/eslint/node_modules/lodash/object/create.js +47 -0
- package/plugins/eslint/node_modules/lodash/object/defaults.js +25 -0
- package/plugins/eslint/node_modules/lodash/object/defaultsDeep.js +25 -0
- package/plugins/eslint/node_modules/lodash/object/extend.js +1 -0
- package/plugins/eslint/node_modules/lodash/object/findKey.js +54 -0
- package/plugins/eslint/node_modules/lodash/object/findLastKey.js +54 -0
- package/plugins/eslint/node_modules/lodash/object/forIn.js +33 -0
- package/plugins/eslint/node_modules/lodash/object/forInRight.js +31 -0
- package/plugins/eslint/node_modules/lodash/object/forOwn.js +33 -0
- package/plugins/eslint/node_modules/lodash/object/forOwnRight.js +31 -0
- package/plugins/eslint/node_modules/lodash/object/functions.js +23 -0
- package/plugins/eslint/node_modules/lodash/object/get.js +33 -0
- package/plugins/eslint/node_modules/lodash/object/has.js +57 -0
- package/plugins/eslint/node_modules/lodash/object/invert.js +60 -0
- package/plugins/eslint/node_modules/lodash/object/keys.js +45 -0
- package/plugins/eslint/node_modules/lodash/object/keysIn.js +64 -0
- package/plugins/eslint/node_modules/lodash/object/mapKeys.js +25 -0
- package/plugins/eslint/node_modules/lodash/object/mapValues.js +46 -0
- package/plugins/eslint/node_modules/lodash/object/merge.js +54 -0
- package/plugins/eslint/node_modules/lodash/object/methods.js +1 -0
- package/plugins/eslint/node_modules/lodash/object/omit.js +47 -0
- package/plugins/eslint/node_modules/lodash/object/pairs.js +33 -0
- package/plugins/eslint/node_modules/lodash/object/pick.js +42 -0
- package/plugins/eslint/node_modules/lodash/object/result.js +49 -0
- package/plugins/eslint/node_modules/lodash/object/set.js +55 -0
- package/plugins/eslint/node_modules/lodash/object/transform.js +61 -0
- package/plugins/eslint/node_modules/lodash/object/values.js +33 -0
- package/plugins/eslint/node_modules/lodash/object/valuesIn.js +31 -0
- package/plugins/eslint/node_modules/lodash/object.js +31 -0
- package/plugins/eslint/node_modules/lodash/package.json +20 -0
- package/plugins/eslint/node_modules/lodash/string/camelCase.js +27 -0
- package/plugins/eslint/node_modules/lodash/string/capitalize.js +21 -0
- package/plugins/eslint/node_modules/lodash/string/deburr.js +29 -0
- package/plugins/eslint/node_modules/lodash/string/endsWith.js +40 -0
- package/plugins/eslint/node_modules/lodash/string/escape.js +48 -0
- package/plugins/eslint/node_modules/lodash/string/escapeRegExp.js +32 -0
- package/plugins/eslint/node_modules/lodash/string/kebabCase.js +26 -0
- package/plugins/eslint/node_modules/lodash/string/pad.js +47 -0
- package/plugins/eslint/node_modules/lodash/string/padLeft.js +27 -0
- package/plugins/eslint/node_modules/lodash/string/padRight.js +27 -0
- package/plugins/eslint/node_modules/lodash/string/parseInt.js +46 -0
- package/plugins/eslint/node_modules/lodash/string/repeat.js +47 -0
- package/plugins/eslint/node_modules/lodash/string/snakeCase.js +26 -0
- package/plugins/eslint/node_modules/lodash/string/startCase.js +26 -0
- package/plugins/eslint/node_modules/lodash/string/startsWith.js +36 -0
- package/plugins/eslint/node_modules/lodash/string/template.js +226 -0
- package/plugins/eslint/node_modules/lodash/string/templateSettings.js +67 -0
- package/plugins/eslint/node_modules/lodash/string/trim.js +42 -0
- package/plugins/eslint/node_modules/lodash/string/trimLeft.js +36 -0
- package/plugins/eslint/node_modules/lodash/string/trimRight.js +36 -0
- package/plugins/eslint/node_modules/lodash/string/trunc.js +105 -0
- package/plugins/eslint/node_modules/lodash/string/unescape.js +33 -0
- package/plugins/eslint/node_modules/lodash/string/words.js +38 -0
- package/plugins/eslint/node_modules/lodash/string.js +25 -0
- package/plugins/eslint/node_modules/lodash/support.js +10 -0
- package/plugins/eslint/node_modules/lodash/utility/attempt.js +32 -0
- package/plugins/eslint/node_modules/lodash/utility/callback.js +53 -0
- package/plugins/eslint/node_modules/lodash/utility/constant.js +23 -0
- package/plugins/eslint/node_modules/lodash/utility/identity.js +20 -0
- package/plugins/eslint/node_modules/lodash/utility/iteratee.js +1 -0
- package/plugins/eslint/node_modules/lodash/utility/matches.js +33 -0
- package/plugins/eslint/node_modules/lodash/utility/matchesProperty.js +32 -0
- package/plugins/eslint/node_modules/lodash/utility/method.js +33 -0
- package/plugins/eslint/node_modules/lodash/utility/methodOf.js +32 -0
- package/plugins/eslint/node_modules/lodash/utility/mixin.js +82 -0
- package/plugins/eslint/node_modules/lodash/utility/noop.js +19 -0
- package/plugins/eslint/node_modules/lodash/utility/property.js +31 -0
- package/plugins/eslint/node_modules/lodash/utility/propertyOf.js +30 -0
- package/plugins/eslint/node_modules/lodash/utility/range.js +66 -0
- package/plugins/eslint/node_modules/lodash/utility/times.js +60 -0
- package/plugins/eslint/node_modules/lodash/utility/uniqueId.js +27 -0
- package/plugins/eslint/node_modules/lodash/utility.js +18 -0
- package/plugins/eslint/node_modules/lodash.clonedeep/LICENSE +22 -0
- package/plugins/eslint/node_modules/lodash.clonedeep/README.md +20 -0
- package/plugins/eslint/node_modules/lodash.clonedeep/index.js +63 -0
- package/plugins/eslint/node_modules/lodash.clonedeep/package.json +23 -0
- package/plugins/eslint/node_modules/lodash.isplainobject/LICENSE +22 -0
- package/plugins/eslint/node_modules/lodash.isplainobject/README.md +20 -0
- package/plugins/eslint/node_modules/lodash.isplainobject/index.js +103 -0
- package/plugins/eslint/node_modules/lodash.isplainobject/package.json +24 -0
- package/plugins/eslint/node_modules/lodash.keys/LICENSE +22 -0
- package/plugins/eslint/node_modules/lodash.keys/README.md +20 -0
- package/plugins/eslint/node_modules/lodash.keys/index.js +236 -0
- package/plugins/eslint/node_modules/lodash.keys/package.json +24 -0
- package/plugins/eslint/node_modules/lodash.merge/LICENSE +22 -0
- package/plugins/eslint/node_modules/lodash.merge/README.md +20 -0
- package/plugins/eslint/node_modules/lodash.merge/index.js +266 -0
- package/plugins/eslint/node_modules/lodash.merge/package.json +32 -0
- package/plugins/eslint/node_modules/log-driver/.travis.yml +6 -0
- package/plugins/eslint/node_modules/log-driver/Makefile +20 -0
- package/plugins/eslint/node_modules/log-driver/README.md +99 -0
- package/plugins/eslint/node_modules/log-driver/coverage/coverage.json +1 -0
- package/plugins/eslint/node_modules/log-driver/coverage/lcov-report/index.html +350 -0
- package/plugins/eslint/node_modules/log-driver/coverage/lcov-report/logdriver/index.html +350 -0
- package/plugins/eslint/node_modules/log-driver/coverage/lcov-report/logdriver/index.js.html +502 -0
- package/plugins/eslint/node_modules/log-driver/coverage/lcov-report/prettify.css +1 -0
- package/plugins/eslint/node_modules/log-driver/coverage/lcov-report/prettify.js +1 -0
- package/plugins/eslint/node_modules/log-driver/coverage/lcov.info +77 -0
- package/plugins/eslint/node_modules/log-driver/index.js +60 -0
- package/plugins/eslint/node_modules/log-driver/package.json +40 -0
- package/plugins/eslint/node_modules/lolex/.min-wd +13 -0
- package/plugins/eslint/node_modules/lolex/LICENSE +27 -0
- package/plugins/eslint/node_modules/lolex/Readme.md +161 -0
- package/plugins/eslint/node_modules/lolex/lolex.js +428 -0
- package/plugins/eslint/node_modules/lolex/package.json +35 -0
- package/plugins/eslint/node_modules/lolex/src/lolex.js +422 -0
- package/plugins/eslint/node_modules/lolex/test/lolex-test.js +1089 -0
- package/plugins/eslint/node_modules/lru-cache/.travis.yml +8 -0
- package/plugins/eslint/node_modules/lru-cache/CONTRIBUTORS +14 -0
- package/plugins/eslint/node_modules/lru-cache/LICENSE +15 -0
- package/plugins/eslint/node_modules/lru-cache/README.md +137 -0
- package/plugins/eslint/node_modules/lru-cache/lib/lru-cache.js +334 -0
- package/plugins/eslint/node_modules/lru-cache/package.json +21 -0
- package/plugins/eslint/node_modules/lru-cache/test/basic.js +396 -0
- package/plugins/eslint/node_modules/lru-cache/test/foreach.js +120 -0
- package/plugins/eslint/node_modules/lru-cache/test/memory-leak.js +51 -0
- package/plugins/eslint/node_modules/lru-cache/test/serialize.js +216 -0
- package/plugins/eslint/node_modules/meow/index.js +82 -0
- package/plugins/eslint/node_modules/meow/license +21 -0
- package/plugins/eslint/node_modules/meow/node_modules/object-assign/index.js +90 -0
- package/plugins/eslint/node_modules/meow/node_modules/object-assign/license +21 -0
- package/plugins/eslint/node_modules/meow/node_modules/object-assign/package.json +42 -0
- package/plugins/eslint/node_modules/meow/node_modules/object-assign/readme.md +61 -0
- package/plugins/eslint/node_modules/meow/package.json +58 -0
- package/plugins/eslint/node_modules/meow/readme.md +159 -0
- package/plugins/eslint/node_modules/mime/LICENSE +19 -0
- package/plugins/eslint/node_modules/mime/README.md +66 -0
- package/plugins/eslint/node_modules/mime/mime.js +114 -0
- package/plugins/eslint/node_modules/mime/package.json +22 -0
- package/plugins/eslint/node_modules/mime/test.js +84 -0
- package/plugins/eslint/node_modules/mime/types/mime.types +1588 -0
- package/plugins/eslint/node_modules/mime/types/node.types +77 -0
- package/plugins/eslint/node_modules/mime-types/.travis.yml +12 -0
- package/plugins/eslint/node_modules/mime-types/LICENSE +22 -0
- package/plugins/eslint/node_modules/mime-types/Makefile +9 -0
- package/plugins/eslint/node_modules/mime-types/README.md +101 -0
- package/plugins/eslint/node_modules/mime-types/SOURCES.md +17 -0
- package/plugins/eslint/node_modules/mime-types/component.json +16 -0
- package/plugins/eslint/node_modules/mime-types/lib/custom.json +27 -0
- package/plugins/eslint/node_modules/mime-types/lib/index.js +75 -0
- package/plugins/eslint/node_modules/mime-types/lib/mime.json +3317 -0
- package/plugins/eslint/node_modules/mime-types/lib/node.json +55 -0
- package/plugins/eslint/node_modules/mime-types/package.json +34 -0
- package/plugins/eslint/node_modules/minimatch/LICENSE +15 -0
- package/plugins/eslint/node_modules/minimatch/README.md +216 -0
- package/plugins/eslint/node_modules/minimatch/browser.js +1159 -0
- package/plugins/eslint/node_modules/minimatch/minimatch.js +912 -0
- package/plugins/eslint/node_modules/minimatch/package.json +32 -0
- package/plugins/eslint/node_modules/mkdirp/LICENSE +21 -0
- package/plugins/eslint/node_modules/mkdirp/index.js +99 -0
- package/plugins/eslint/node_modules/mkdirp/package.json +34 -0
- package/plugins/eslint/node_modules/mkdirp/readme.markdown +100 -0
- package/plugins/eslint/node_modules/mocha/CHANGELOG.md +1262 -0
- package/plugins/eslint/node_modules/mocha/LICENSE +22 -0
- package/plugins/eslint/node_modules/mocha/images/error.png +0 -0
- package/plugins/eslint/node_modules/mocha/images/ok.png +0 -0
- package/plugins/eslint/node_modules/mocha/index.js +3 -0
- package/plugins/eslint/node_modules/mocha/lib/browser/debug.js +4 -0
- package/plugins/eslint/node_modules/mocha/lib/browser/events.js +193 -0
- package/plugins/eslint/node_modules/mocha/lib/browser/progress.js +117 -0
- package/plugins/eslint/node_modules/mocha/lib/browser/tty.js +11 -0
- package/plugins/eslint/node_modules/mocha/lib/context.js +104 -0
- package/plugins/eslint/node_modules/mocha/lib/hook.js +46 -0
- package/plugins/eslint/node_modules/mocha/lib/interfaces/bdd.js +117 -0
- package/plugins/eslint/node_modules/mocha/lib/interfaces/common.js +85 -0
- package/plugins/eslint/node_modules/mocha/lib/interfaces/exports.js +61 -0
- package/plugins/eslint/node_modules/mocha/lib/interfaces/index.js +4 -0
- package/plugins/eslint/node_modules/mocha/lib/interfaces/qunit.js +94 -0
- package/plugins/eslint/node_modules/mocha/lib/interfaces/tdd.js +106 -0
- package/plugins/eslint/node_modules/mocha/lib/mocha.js +503 -0
- package/plugins/eslint/node_modules/mocha/lib/ms.js +128 -0
- package/plugins/eslint/node_modules/mocha/lib/pending.js +15 -0
- package/plugins/eslint/node_modules/mocha/lib/reporters/base.js +487 -0
- package/plugins/eslint/node_modules/mocha/lib/reporters/doc.js +62 -0
- package/plugins/eslint/node_modules/mocha/lib/reporters/dot.js +66 -0
- package/plugins/eslint/node_modules/mocha/lib/reporters/html-cov.js +56 -0
- package/plugins/eslint/node_modules/mocha/lib/reporters/html.js +343 -0
- package/plugins/eslint/node_modules/mocha/lib/reporters/index.js +19 -0
- package/plugins/eslint/node_modules/mocha/lib/reporters/json-cov.js +151 -0
- package/plugins/eslint/node_modules/mocha/lib/reporters/json-stream.js +60 -0
- package/plugins/eslint/node_modules/mocha/lib/reporters/json.js +90 -0
- package/plugins/eslint/node_modules/mocha/lib/reporters/landing.js +92 -0
- package/plugins/eslint/node_modules/mocha/lib/reporters/list.js +61 -0
- package/plugins/eslint/node_modules/mocha/lib/reporters/markdown.js +97 -0
- package/plugins/eslint/node_modules/mocha/lib/reporters/min.js +36 -0
- package/plugins/eslint/node_modules/mocha/lib/reporters/nyan.js +261 -0
- package/plugins/eslint/node_modules/mocha/lib/reporters/progress.js +89 -0
- package/plugins/eslint/node_modules/mocha/lib/reporters/spec.js +83 -0
- package/plugins/eslint/node_modules/mocha/lib/reporters/tap.js +68 -0
- package/plugins/eslint/node_modules/mocha/lib/reporters/templates/coverage.jade +51 -0
- package/plugins/eslint/node_modules/mocha/lib/reporters/templates/menu.jade +13 -0
- package/plugins/eslint/node_modules/mocha/lib/reporters/templates/script.html +34 -0
- package/plugins/eslint/node_modules/mocha/lib/reporters/templates/style.html +324 -0
- package/plugins/eslint/node_modules/mocha/lib/reporters/xunit.js +166 -0
- package/plugins/eslint/node_modules/mocha/lib/runnable.js +363 -0
- package/plugins/eslint/node_modules/mocha/lib/runner.js +894 -0
- package/plugins/eslint/node_modules/mocha/lib/suite.js +395 -0
- package/plugins/eslint/node_modules/mocha/lib/template.html +18 -0
- package/plugins/eslint/node_modules/mocha/lib/test.js +44 -0
- package/plugins/eslint/node_modules/mocha/lib/utils.js +750 -0
- package/plugins/eslint/node_modules/mocha/mocha.css +314 -0
- package/plugins/eslint/node_modules/mocha/mocha.js +13149 -0
- package/plugins/eslint/node_modules/mocha/node_modules/escape-string-regexp/index.js +11 -0
- package/plugins/eslint/node_modules/mocha/node_modules/escape-string-regexp/package.json +36 -0
- package/plugins/eslint/node_modules/mocha/node_modules/escape-string-regexp/readme.md +27 -0
- package/plugins/eslint/node_modules/mocha/node_modules/minimist/.travis.yml +4 -0
- package/plugins/eslint/node_modules/mocha/node_modules/minimist/LICENSE +18 -0
- package/plugins/eslint/node_modules/mocha/node_modules/minimist/example/parse.js +2 -0
- package/plugins/eslint/node_modules/mocha/node_modules/minimist/index.js +187 -0
- package/plugins/eslint/node_modules/mocha/node_modules/minimist/package.json +40 -0
- package/plugins/eslint/node_modules/mocha/node_modules/minimist/readme.markdown +73 -0
- package/plugins/eslint/node_modules/mocha/node_modules/minimist/test/dash.js +24 -0
- package/plugins/eslint/node_modules/mocha/node_modules/minimist/test/default_bool.js +20 -0
- package/plugins/eslint/node_modules/mocha/node_modules/minimist/test/dotted.js +16 -0
- package/plugins/eslint/node_modules/mocha/node_modules/minimist/test/long.js +31 -0
- package/plugins/eslint/node_modules/mocha/node_modules/minimist/test/parse.js +318 -0
- package/plugins/eslint/node_modules/mocha/node_modules/minimist/test/parse_modified.js +9 -0
- package/plugins/eslint/node_modules/mocha/node_modules/minimist/test/short.js +67 -0
- package/plugins/eslint/node_modules/mocha/node_modules/minimist/test/whitespace.js +8 -0
- package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/.travis.yml +8 -0
- package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/LICENSE +21 -0
- package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/examples/pow.js +6 -0
- package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/index.js +98 -0
- package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/package.json +27 -0
- package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/readme.markdown +100 -0
- package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/chmod.js +41 -0
- package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/clobber.js +38 -0
- package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/mkdirp.js +28 -0
- package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/opts_fs.js +29 -0
- package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/opts_fs_sync.js +27 -0
- package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/perm.js +32 -0
- package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/perm_sync.js +36 -0
- package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/race.js +37 -0
- package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/rel.js +32 -0
- package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/return.js +25 -0
- package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/return_sync.js +24 -0
- package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/root.js +19 -0
- package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/sync.js +32 -0
- package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/umask.js +28 -0
- package/plugins/eslint/node_modules/mocha/node_modules/mkdirp/test/umask_sync.js +32 -0
- package/plugins/eslint/node_modules/mocha/node_modules/supports-color/cli.js +29 -0
- package/plugins/eslint/node_modules/mocha/node_modules/supports-color/index.js +39 -0
- package/plugins/eslint/node_modules/mocha/node_modules/supports-color/package.json +51 -0
- package/plugins/eslint/node_modules/mocha/node_modules/supports-color/readme.md +44 -0
- package/plugins/eslint/node_modules/mocha/package.json +374 -0
- package/plugins/eslint/node_modules/ms/LICENSE +20 -0
- package/plugins/eslint/node_modules/ms/README.md +35 -0
- package/plugins/eslint/node_modules/ms/index.js +125 -0
- package/plugins/eslint/node_modules/ms/package.json +20 -0
- package/plugins/eslint/node_modules/oauth-sign/LICENSE +55 -0
- package/plugins/eslint/node_modules/oauth-sign/README.md +4 -0
- package/plugins/eslint/node_modules/oauth-sign/index.js +43 -0
- package/plugins/eslint/node_modules/oauth-sign/package.json +19 -0
- package/plugins/eslint/node_modules/oauth-sign/test.js +49 -0
- package/plugins/eslint/node_modules/object-assign/index.js +26 -0
- package/plugins/eslint/node_modules/object-assign/license +21 -0
- package/plugins/eslint/node_modules/object-assign/package.json +38 -0
- package/plugins/eslint/node_modules/object-assign/readme.md +51 -0
- package/plugins/eslint/node_modules/optionator/LICENSE +22 -0
- package/plugins/eslint/node_modules/optionator/README.md +200 -0
- package/plugins/eslint/node_modules/optionator/lib/coerce.js +367 -0
- package/plugins/eslint/node_modules/optionator/lib/help.js +242 -0
- package/plugins/eslint/node_modules/optionator/lib/index.js +417 -0
- package/plugins/eslint/node_modules/optionator/lib/parse-type.js +143 -0
- package/plugins/eslint/node_modules/optionator/lib/util.js +46 -0
- package/plugins/eslint/node_modules/optionator/node_modules/wordwrap/LICENSE +18 -0
- package/plugins/eslint/node_modules/optionator/node_modules/wordwrap/README.markdown +70 -0
- package/plugins/eslint/node_modules/optionator/node_modules/wordwrap/example/center.js +10 -0
- package/plugins/eslint/node_modules/optionator/node_modules/wordwrap/example/meat.js +3 -0
- package/plugins/eslint/node_modules/optionator/node_modules/wordwrap/index.js +76 -0
- package/plugins/eslint/node_modules/optionator/node_modules/wordwrap/package.json +37 -0
- package/plugins/eslint/node_modules/optionator/node_modules/wordwrap/test/break.js +30 -0
- package/plugins/eslint/node_modules/optionator/node_modules/wordwrap/test/idleness.txt +63 -0
- package/plugins/eslint/node_modules/optionator/node_modules/wordwrap/test/wrap.js +31 -0
- package/plugins/eslint/node_modules/optionator/package.json +44 -0
- package/plugins/eslint/node_modules/prelude-ls/CHANGELOG.md +99 -0
- package/plugins/eslint/node_modules/prelude-ls/LICENSE +22 -0
- package/plugins/eslint/node_modules/prelude-ls/README.md +15 -0
- package/plugins/eslint/node_modules/prelude-ls/lib/Func.js +65 -0
- package/plugins/eslint/node_modules/prelude-ls/lib/List.js +686 -0
- package/plugins/eslint/node_modules/prelude-ls/lib/Num.js +130 -0
- package/plugins/eslint/node_modules/prelude-ls/lib/Obj.js +154 -0
- package/plugins/eslint/node_modules/prelude-ls/lib/Str.js +92 -0
- package/plugins/eslint/node_modules/prelude-ls/lib/index.js +178 -0
- package/plugins/eslint/node_modules/prelude-ls/package.json +52 -0
- package/plugins/eslint/node_modules/qs/.jshintignore +1 -0
- package/plugins/eslint/node_modules/qs/.jshintrc +10 -0
- package/plugins/eslint/node_modules/qs/.travis.yml +4 -0
- package/plugins/eslint/node_modules/qs/LICENSE +28 -0
- package/plugins/eslint/node_modules/qs/Makefile +8 -0
- package/plugins/eslint/node_modules/qs/README.md +120 -0
- package/plugins/eslint/node_modules/qs/index.js +1 -0
- package/plugins/eslint/node_modules/qs/lib/index.js +15 -0
- package/plugins/eslint/node_modules/qs/lib/parse.js +151 -0
- package/plugins/eslint/node_modules/qs/lib/stringify.js +52 -0
- package/plugins/eslint/node_modules/qs/lib/utils.js +131 -0
- package/plugins/eslint/node_modules/qs/package.json +29 -0
- package/plugins/eslint/node_modules/qs/test/parse.js +236 -0
- package/plugins/eslint/node_modules/qs/test/stringify.js +123 -0
- package/plugins/eslint/node_modules/redent/index.js +7 -0
- package/plugins/eslint/node_modules/redent/license +21 -0
- package/plugins/eslint/node_modules/redent/package.json +43 -0
- package/plugins/eslint/node_modules/redent/readme.md +48 -0
- package/plugins/eslint/node_modules/request/.travis.yml +12 -0
- package/plugins/eslint/node_modules/request/CHANGELOG.md +954 -0
- package/plugins/eslint/node_modules/request/LICENSE +55 -0
- package/plugins/eslint/node_modules/request/README.md +421 -0
- package/plugins/eslint/node_modules/request/index.js +166 -0
- package/plugins/eslint/node_modules/request/lib/cookies.js +40 -0
- package/plugins/eslint/node_modules/request/lib/copy.js +8 -0
- package/plugins/eslint/node_modules/request/lib/debug.js +7 -0
- package/plugins/eslint/node_modules/request/lib/getSafe.js +34 -0
- package/plugins/eslint/node_modules/request/lib/optional.js +5 -0
- package/plugins/eslint/node_modules/request/package.json +44 -0
- package/plugins/eslint/node_modules/request/request.js +1428 -0
- package/plugins/eslint/node_modules/resolve/.travis.yml +4 -0
- package/plugins/eslint/node_modules/resolve/LICENSE +18 -0
- package/plugins/eslint/node_modules/resolve/example/async.js +5 -0
- package/plugins/eslint/node_modules/resolve/example/sync.js +3 -0
- package/plugins/eslint/node_modules/resolve/index.js +5 -0
- package/plugins/eslint/node_modules/resolve/lib/async.js +192 -0
- package/plugins/eslint/node_modules/resolve/lib/caller.js +8 -0
- package/plugins/eslint/node_modules/resolve/lib/core.js +4 -0
- package/plugins/eslint/node_modules/resolve/lib/core.json +38 -0
- package/plugins/eslint/node_modules/resolve/lib/node-modules-paths.js +38 -0
- package/plugins/eslint/node_modules/resolve/lib/sync.js +81 -0
- package/plugins/eslint/node_modules/resolve/package.json +29 -0
- package/plugins/eslint/node_modules/resolve/readme.markdown +148 -0
- package/plugins/eslint/node_modules/resolve/test/core.js +12 -0
- package/plugins/eslint/node_modules/resolve/test/dotdot/abc/index.js +2 -0
- package/plugins/eslint/node_modules/resolve/test/dotdot/index.js +1 -0
- package/plugins/eslint/node_modules/resolve/test/dotdot.js +29 -0
- package/plugins/eslint/node_modules/resolve/test/faulty_basedir.js +17 -0
- package/plugins/eslint/node_modules/resolve/test/filter.js +18 -0
- package/plugins/eslint/node_modules/resolve/test/filter_sync.js +15 -0
- package/plugins/eslint/node_modules/resolve/test/mock.js +142 -0
- package/plugins/eslint/node_modules/resolve/test/mock_sync.js +68 -0
- package/plugins/eslint/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +1 -0
- package/plugins/eslint/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +1 -0
- package/plugins/eslint/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +1 -0
- package/plugins/eslint/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +3 -0
- package/plugins/eslint/node_modules/resolve/test/module_dir.js +56 -0
- package/plugins/eslint/node_modules/resolve/test/node_path/x/aaa/index.js +1 -0
- package/plugins/eslint/node_modules/resolve/test/node_path/x/ccc/index.js +1 -0
- package/plugins/eslint/node_modules/resolve/test/node_path/y/bbb/index.js +1 -0
- package/plugins/eslint/node_modules/resolve/test/node_path/y/ccc/index.js +1 -0
- package/plugins/eslint/node_modules/resolve/test/node_path.js +48 -0
- package/plugins/eslint/node_modules/resolve/test/nonstring.js +9 -0
- package/plugins/eslint/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
- package/plugins/eslint/node_modules/resolve/test/pathfilter/deep_ref/node_modules/deep/alt.js +0 -0
- package/plugins/eslint/node_modules/resolve/test/pathfilter/deep_ref/node_modules/deep/deeper/ref.js +0 -0
- package/plugins/eslint/node_modules/resolve/test/pathfilter/deep_ref/node_modules/deep/package.json +4 -0
- package/plugins/eslint/node_modules/resolve/test/pathfilter/deep_ref/node_modules/deep/ref.js +0 -0
- package/plugins/eslint/node_modules/resolve/test/pathfilter.js +35 -0
- package/plugins/eslint/node_modules/resolve/test/precedence/aaa/index.js +1 -0
- package/plugins/eslint/node_modules/resolve/test/precedence/aaa/main.js +1 -0
- package/plugins/eslint/node_modules/resolve/test/precedence/aaa.js +1 -0
- package/plugins/eslint/node_modules/resolve/test/precedence/bbb/main.js +1 -0
- package/plugins/eslint/node_modules/resolve/test/precedence/bbb.js +1 -0
- package/plugins/eslint/node_modules/resolve/test/precedence.js +23 -0
- package/plugins/eslint/node_modules/resolve/test/resolver/bar/node_modules/foo/index.js +1 -0
- package/plugins/eslint/node_modules/resolve/test/resolver/baz/doom.js +0 -0
- package/plugins/eslint/node_modules/resolve/test/resolver/baz/package.json +3 -0
- package/plugins/eslint/node_modules/resolve/test/resolver/baz/quux.js +1 -0
- package/plugins/eslint/node_modules/resolve/test/resolver/biz/node_modules/garply/lib/index.js +1 -0
- package/plugins/eslint/node_modules/resolve/test/resolver/biz/node_modules/garply/package.json +3 -0
- package/plugins/eslint/node_modules/resolve/test/resolver/biz/node_modules/grux/index.js +1 -0
- package/plugins/eslint/node_modules/resolve/test/resolver/biz/node_modules/tiv/index.js +1 -0
- package/plugins/eslint/node_modules/resolve/test/resolver/cup.coffee +1 -0
- package/plugins/eslint/node_modules/resolve/test/resolver/foo.js +1 -0
- package/plugins/eslint/node_modules/resolve/test/resolver/incorrect_main/index.js +2 -0
- package/plugins/eslint/node_modules/resolve/test/resolver/incorrect_main/package.json +3 -0
- package/plugins/eslint/node_modules/resolve/test/resolver/mug.coffee +0 -0
- package/plugins/eslint/node_modules/resolve/test/resolver/mug.js +0 -0
- package/plugins/eslint/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
- package/plugins/eslint/node_modules/resolve/test/resolver/other_path/root.js +0 -0
- package/plugins/eslint/node_modules/resolve/test/resolver/punycode/node_modules/punycode/index.js +0 -0
- package/plugins/eslint/node_modules/resolve/test/resolver/quux/foo/index.js +1 -0
- package/plugins/eslint/node_modules/resolve/test/resolver/without_basedir/main.js +6 -0
- package/plugins/eslint/node_modules/resolve/test/resolver/without_basedir/node_modules/mymodule.js +1 -0
- package/plugins/eslint/node_modules/resolve/test/resolver.js +281 -0
- package/plugins/eslint/node_modules/resolve/test/resolver_sync.js +180 -0
- package/plugins/eslint/node_modules/resolve/test/subdirs/node_modules/a/b/c/x.json +1 -0
- package/plugins/eslint/node_modules/resolve/test/subdirs/node_modules/a/package.json +1 -0
- package/plugins/eslint/node_modules/resolve/test/subdirs.js +13 -0
- package/plugins/eslint/node_modules/semver/.travis.yml +5 -0
- package/plugins/eslint/node_modules/semver/LICENSE +15 -0
- package/plugins/eslint/node_modules/semver/Makefile +24 -0
- package/plugins/eslint/node_modules/semver/README.md +303 -0
- package/plugins/eslint/node_modules/semver/foot.js.txt +6 -0
- package/plugins/eslint/node_modules/semver/head.js.txt +2 -0
- package/plugins/eslint/node_modules/semver/package.json +21 -0
- package/plugins/eslint/node_modules/semver/semver.browser.js +1201 -0
- package/plugins/eslint/node_modules/semver/semver.browser.js.gz +0 -0
- package/plugins/eslint/node_modules/semver/semver.js +1205 -0
- package/plugins/eslint/node_modules/semver/semver.min.js +1 -0
- package/plugins/eslint/node_modules/semver/semver.min.js.gz +0 -0
- package/plugins/eslint/node_modules/semver/test/amd.js +15 -0
- package/plugins/eslint/node_modules/semver/test/big-numbers.js +31 -0
- package/plugins/eslint/node_modules/semver/test/clean.js +29 -0
- package/plugins/eslint/node_modules/semver/test/gtr.js +173 -0
- package/plugins/eslint/node_modules/semver/test/index.js +685 -0
- package/plugins/eslint/node_modules/semver/test/ltr.js +181 -0
- package/plugins/eslint/node_modules/semver/test/major-minor-patch.js +72 -0
- package/plugins/eslint/node_modules/semver/test/no-module.js +19 -0
- package/plugins/eslint/node_modules/shelljs/.documentup.json +6 -0
- package/plugins/eslint/node_modules/shelljs/.jshintrc +7 -0
- package/plugins/eslint/node_modules/shelljs/.travis.yml +5 -0
- package/plugins/eslint/node_modules/shelljs/LICENSE +26 -0
- package/plugins/eslint/node_modules/shelljs/README.md +569 -0
- package/plugins/eslint/node_modules/shelljs/global.js +3 -0
- package/plugins/eslint/node_modules/shelljs/make.js +47 -0
- package/plugins/eslint/node_modules/shelljs/package.json +35 -0
- package/plugins/eslint/node_modules/shelljs/scripts/generate-docs.js +21 -0
- package/plugins/eslint/node_modules/shelljs/scripts/run-tests.js +50 -0
- package/plugins/eslint/node_modules/shelljs/shell.js +157 -0
- package/plugins/eslint/node_modules/shelljs/src/cat.js +43 -0
- package/plugins/eslint/node_modules/shelljs/src/cd.js +19 -0
- package/plugins/eslint/node_modules/shelljs/src/chmod.js +208 -0
- package/plugins/eslint/node_modules/shelljs/src/common.js +203 -0
- package/plugins/eslint/node_modules/shelljs/src/cp.js +201 -0
- package/plugins/eslint/node_modules/shelljs/src/dirs.js +191 -0
- package/plugins/eslint/node_modules/shelljs/src/echo.js +20 -0
- package/plugins/eslint/node_modules/shelljs/src/error.js +10 -0
- package/plugins/eslint/node_modules/shelljs/src/exec.js +181 -0
- package/plugins/eslint/node_modules/shelljs/src/find.js +51 -0
- package/plugins/eslint/node_modules/shelljs/src/grep.js +52 -0
- package/plugins/eslint/node_modules/shelljs/src/ln.js +53 -0
- package/plugins/eslint/node_modules/shelljs/src/ls.js +126 -0
- package/plugins/eslint/node_modules/shelljs/src/mkdir.js +68 -0
- package/plugins/eslint/node_modules/shelljs/src/mv.js +80 -0
- package/plugins/eslint/node_modules/shelljs/src/popd.js +1 -0
- package/plugins/eslint/node_modules/shelljs/src/pushd.js +1 -0
- package/plugins/eslint/node_modules/shelljs/src/pwd.js +11 -0
- package/plugins/eslint/node_modules/shelljs/src/rm.js +145 -0
- package/plugins/eslint/node_modules/shelljs/src/sed.js +43 -0
- package/plugins/eslint/node_modules/shelljs/src/tempdir.js +56 -0
- package/plugins/eslint/node_modules/shelljs/src/test.js +85 -0
- package/plugins/eslint/node_modules/shelljs/src/to.js +29 -0
- package/plugins/eslint/node_modules/shelljs/src/toEnd.js +29 -0
- package/plugins/eslint/node_modules/shelljs/src/which.js +83 -0
- package/plugins/eslint/node_modules/sinon/.editorconfig +17 -0
- package/plugins/eslint/node_modules/sinon/.jscsrc +13 -0
- package/plugins/eslint/node_modules/sinon/CONTRIBUTING.md +124 -0
- package/plugins/eslint/node_modules/sinon/GPATH +0 -0
- package/plugins/eslint/node_modules/sinon/GRTAGS +0 -0
- package/plugins/eslint/node_modules/sinon/GSYMS +0 -0
- package/plugins/eslint/node_modules/sinon/GTAGS +0 -0
- package/plugins/eslint/node_modules/sinon/LICENSE +27 -0
- package/plugins/eslint/node_modules/sinon/README.md +46 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/assert.js +214 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/behavior.js +359 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/call.js +219 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/collection.js +167 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/extend.js +103 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/format.js +88 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/log_error.js +68 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/match.js +254 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/mock.js +456 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/sandbox.js +162 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/spy.js +454 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/stub.js +180 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/test.js +101 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/test_case.js +103 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/times_in_words.js +43 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/typeOf.js +50 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/util/core.js +390 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/util/event.js +111 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/util/fake_server.js +240 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/util/fake_server_with_clock.js +101 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/util/fake_timers.js +77 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/util/fake_xdomain_request.js +223 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/util/fake_xml_http_request.js +620 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/util/timers_ie.js +30 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/util/xdr_ie.js +13 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon/util/xhr_ie.js +18 -0
- package/plugins/eslint/node_modules/sinon/lib/sinon.js +46 -0
- package/plugins/eslint/node_modules/sinon/package.json +44 -0
- package/plugins/eslint/node_modules/sinon/pkg/sinon-1.14.1.js +5931 -0
- package/plugins/eslint/node_modules/sinon/pkg/sinon-ie-1.14.1.js +97 -0
- package/plugins/eslint/node_modules/sinon/pkg/sinon-ie.js +97 -0
- package/plugins/eslint/node_modules/sinon/pkg/sinon-server-1.14.1.js +2104 -0
- package/plugins/eslint/node_modules/sinon/pkg/sinon-timers-1.14.1.js +111 -0
- package/plugins/eslint/node_modules/sinon/pkg/sinon-timers-ie-1.14.1.js +65 -0
- package/plugins/eslint/node_modules/sinon/pkg/sinon.js +5931 -0
- package/plugins/eslint/node_modules/source-map/.travis.yml +4 -0
- package/plugins/eslint/node_modules/source-map/CHANGELOG.md +201 -0
- package/plugins/eslint/node_modules/source-map/LICENSE +28 -0
- package/plugins/eslint/node_modules/source-map/Makefile.dryice.js +166 -0
- package/plugins/eslint/node_modules/source-map/README.md +479 -0
- package/plugins/eslint/node_modules/source-map/lib/source-map/array-set.js +97 -0
- package/plugins/eslint/node_modules/source-map/lib/source-map/base64-vlq.js +142 -0
- package/plugins/eslint/node_modules/source-map/lib/source-map/base64.js +42 -0
- package/plugins/eslint/node_modules/source-map/lib/source-map/basic-source-map-consumer.js +420 -0
- package/plugins/eslint/node_modules/source-map/lib/source-map/binary-search.js +80 -0
- package/plugins/eslint/node_modules/source-map/lib/source-map/indexed-source-map-consumer.js +303 -0
- package/plugins/eslint/node_modules/source-map/lib/source-map/mapping-list.js +86 -0
- package/plugins/eslint/node_modules/source-map/lib/source-map/source-map-consumer.js +222 -0
- package/plugins/eslint/node_modules/source-map/lib/source-map/source-map-generator.js +400 -0
- package/plugins/eslint/node_modules/source-map/lib/source-map/source-node.js +414 -0
- package/plugins/eslint/node_modules/source-map/lib/source-map/util.js +319 -0
- package/plugins/eslint/node_modules/source-map/lib/source-map.js +8 -0
- package/plugins/eslint/node_modules/source-map/package.json +66 -0
- package/plugins/eslint/node_modules/source-map/test/run-tests.js +62 -0
- package/plugins/eslint/node_modules/source-map/test/source-map/test-api.js +26 -0
- package/plugins/eslint/node_modules/source-map/test/source-map/test-array-set.js +104 -0
- package/plugins/eslint/node_modules/source-map/test/source-map/test-base64-vlq.js +23 -0
- package/plugins/eslint/node_modules/source-map/test/source-map/test-base64.js +35 -0
- package/plugins/eslint/node_modules/source-map/test/source-map/test-binary-search.js +54 -0
- package/plugins/eslint/node_modules/source-map/test/source-map/test-dog-fooding.js +84 -0
- package/plugins/eslint/node_modules/source-map/test/source-map/test-source-map-consumer.js +874 -0
- package/plugins/eslint/node_modules/source-map/test/source-map/test-source-map-generator.js +679 -0
- package/plugins/eslint/node_modules/source-map/test/source-map/test-source-node.js +612 -0
- package/plugins/eslint/node_modules/source-map/test/source-map/test-util.js +216 -0
- package/plugins/eslint/node_modules/source-map/test/source-map/util.js +299 -0
- package/plugins/eslint/node_modules/strip-ansi/index.js +6 -0
- package/plugins/eslint/node_modules/strip-ansi/license +21 -0
- package/plugins/eslint/node_modules/strip-ansi/node_modules/ansi-regex/index.js +4 -0
- package/plugins/eslint/node_modules/strip-ansi/node_modules/ansi-regex/license +21 -0
- package/plugins/eslint/node_modules/strip-ansi/node_modules/ansi-regex/package.json +64 -0
- package/plugins/eslint/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +39 -0
- package/plugins/eslint/node_modules/strip-ansi/package.json +57 -0
- package/plugins/eslint/node_modules/strip-ansi/readme.md +33 -0
- package/plugins/eslint/node_modules/strip-indent/cli.js +49 -0
- package/plugins/eslint/node_modules/strip-indent/index.js +16 -0
- package/plugins/eslint/node_modules/strip-indent/license +21 -0
- package/plugins/eslint/node_modules/strip-indent/package.json +46 -0
- package/plugins/eslint/node_modules/strip-indent/readme.md +61 -0
- package/plugins/eslint/node_modules/strip-json-comments/cli.js +41 -0
- package/plugins/eslint/node_modules/strip-json-comments/license +21 -0
- package/plugins/eslint/node_modules/strip-json-comments/package.json +46 -0
- package/plugins/eslint/node_modules/strip-json-comments/readme.md +80 -0
- package/plugins/eslint/node_modules/strip-json-comments/strip-json-comments.js +73 -0
- package/plugins/eslint/node_modules/supports-color/index.js +50 -0
- package/plugins/eslint/node_modules/supports-color/license +21 -0
- package/plugins/eslint/node_modules/supports-color/package.json +49 -0
- package/plugins/eslint/node_modules/supports-color/readme.md +36 -0
- package/plugins/eslint/node_modules/trim-newlines/index.js +13 -0
- package/plugins/eslint/node_modules/trim-newlines/license +21 -0
- package/plugins/eslint/node_modules/trim-newlines/package.json +42 -0
- package/plugins/eslint/node_modules/trim-newlines/readme.md +46 -0
- package/plugins/eslint/node_modules/tunnel-agent/LICENSE +55 -0
- package/plugins/eslint/node_modules/tunnel-agent/README.md +4 -0
- package/plugins/eslint/node_modules/tunnel-agent/index.js +243 -0
- package/plugins/eslint/node_modules/tunnel-agent/package.json +20 -0
- package/plugins/eslint/node_modules/type-check/LICENSE +22 -0
- package/plugins/eslint/node_modules/type-check/README.md +210 -0
- package/plugins/eslint/node_modules/type-check/lib/check.js +126 -0
- package/plugins/eslint/node_modules/type-check/lib/index.js +16 -0
- package/plugins/eslint/node_modules/type-check/lib/parse-type.js +196 -0
- package/plugins/eslint/node_modules/type-check/package.json +40 -0
- package/plugins/eslint/node_modules/type-detect/History.md +18 -0
- package/plugins/eslint/node_modules/type-detect/README.md +193 -0
- package/plugins/eslint/node_modules/type-detect/index.js +1 -0
- package/plugins/eslint/node_modules/type-detect/lib/type.js +142 -0
- package/plugins/eslint/node_modules/type-detect/package.json +31 -0
- package/plugins/eslint/node_modules/underscore/LICENSE +23 -0
- package/plugins/eslint/node_modules/underscore/README.md +22 -0
- package/plugins/eslint/node_modules/underscore/package.json +41 -0
- package/plugins/eslint/node_modules/underscore/underscore-min.js +6 -0
- package/plugins/eslint/node_modules/underscore/underscore.js +1415 -0
- package/plugins/eslint/node_modules/which/CHANGELOG.md +152 -0
- package/plugins/eslint/node_modules/which/LICENSE +15 -0
- package/plugins/eslint/node_modules/which/README.md +51 -0
- package/plugins/eslint/node_modules/which/package.json +30 -0
- package/plugins/eslint/node_modules/which/which.js +135 -0
- package/plugins/pbjsGlobals.js +1 -1
- package/src/adapterManager.js +24 -19
- package/src/adapters/bidderFactory.js +155 -131
- package/src/adloader.js +3 -1
- package/src/auction.js +111 -123
- package/src/auctionIndex.js +85 -0
- package/src/auctionManager.js +3 -0
- package/src/bidderSettings.js +69 -0
- package/src/bidfactory.js +18 -6
- package/src/debugging.js +31 -19
- package/src/native.js +29 -21
- package/src/secureCreatives.js +26 -12
- package/src/targeting.js +11 -2
- package/src/utils.js +24 -17
- package/src/video.js +10 -11
- package/src/videoCache.js +10 -9
- package/test/fixtures/fixtures.js +2 -1
- package/test/helpers/indexStub.js +28 -0
- package/test/spec/auctionmanager_spec.js +145 -98
- package/test/spec/config_spec.js +24 -1
- package/test/spec/debugging_spec.js +29 -6
- package/test/spec/modules/adnuntiusRtdProvider_spec.js +145 -0
- package/test/spec/modules/adotBidAdapter_spec.js +294 -3124
- package/test/spec/modules/adpod_spec.js +91 -156
- package/test/spec/modules/adyoulikeBidAdapter_spec.js +15 -1
- package/test/spec/modules/asealBidAdapter_spec.js +144 -0
- package/test/spec/modules/automatadBidAdapter_spec.js +23 -7
- package/test/spec/modules/big-richmediaBidAdapter_spec.js +310 -0
- package/test/spec/modules/bizzclickBidAdapter_spec.js +16 -0
- package/test/spec/modules/conversantBidAdapter_spec.js +54 -2
- package/test/spec/modules/currency_spec.js +15 -9
- package/test/spec/modules/debugging_mod_spec.js +451 -0
- package/test/spec/modules/dspxBidAdapter_spec.js +20 -15
- package/test/spec/modules/eids_spec.js +2 -2
- package/test/spec/modules/fluctBidAdapter_spec.js +92 -0
- package/test/spec/modules/gridBidAdapter_spec.js +44 -0
- package/test/spec/modules/gumgumBidAdapter_spec.js +3 -3
- package/test/spec/modules/hadronIdSystem_spec.js +57 -0
- package/test/spec/modules/hadronRtdProvider_spec.js +762 -0
- package/test/spec/modules/imRtdProvider_spec.js +30 -1
- package/test/spec/modules/improvedigitalBidAdapter_spec.js +19 -0
- package/test/spec/modules/iqzoneBidAdapter_spec.js +1 -0
- package/test/spec/modules/ixBidAdapter_spec.js +75 -2
- package/test/spec/modules/justIdSystem_spec.js +216 -0
- package/test/spec/modules/kubientBidAdapter_spec.js +183 -87
- package/test/spec/modules/lkqdBidAdapter_spec.js +323 -0
- package/test/spec/modules/lunamediahbBidAdapter_spec.js +27 -1
- package/test/spec/modules/mass_spec.js +2 -14
- package/test/spec/modules/mediakeysBidAdapter_spec.js +9 -5
- package/test/spec/modules/mediasquareBidAdapter_spec.js +25 -1
- package/test/spec/modules/nexx360BidAdapter_spec.js +140 -0
- package/test/spec/modules/novatiqIdSystem_spec.js +18 -0
- package/test/spec/modules/oguryBidAdapter_spec.js +63 -5
- package/test/spec/modules/prebidServerBidAdapter_spec.js +43 -6
- package/test/spec/modules/priceFloors_spec.js +83 -24
- package/test/spec/modules/pubmaticBidAdapter_spec.js +40 -0
- package/test/spec/modules/riseBidAdapter_spec.js +30 -4
- package/test/spec/modules/rubiconAnalyticsAdapter_spec.js +31 -1
- package/test/spec/modules/rubiconBidAdapter_spec.js +1 -1
- package/test/spec/modules/sortableAnalyticsAdapter_spec.js +2 -3
- package/test/spec/modules/sspBCBidAdapter_spec.js +7 -7
- package/test/spec/modules/telariaBidAdapter_spec.js +1 -3
- package/test/spec/modules/trustpidSystem_spec.js +232 -0
- package/test/spec/modules/trustxBidAdapter_spec.js +33 -0
- package/test/spec/modules/userId_spec.js +39 -39
- package/test/spec/modules/vibrantmediaBidAdapter_spec.js +1237 -0
- package/test/spec/modules/vidazooBidAdapter_spec.js +3 -1
- package/test/spec/modules/vidoomyBidAdapter_spec.js +7 -1
- package/test/spec/modules/weboramaRtdProvider_spec.js +536 -20
- package/test/spec/modules/yieldoneBidAdapter_spec.js +33 -0
- package/test/spec/native_spec.js +62 -40
- package/test/spec/unit/core/adapterManager_spec.js +22 -0
- package/test/spec/unit/core/auctionIndex_spec.js +129 -0
- package/test/spec/unit/core/bidderFactory_spec.js +65 -12
- package/test/spec/unit/core/bidderSettings_spec.js +123 -0
- package/test/spec/unit/core/targeting_spec.js +93 -0
- package/test/spec/unit/pbjs_api_spec.js +63 -41
- package/test/spec/unit/secureCreatives_spec.js +66 -32
- package/test/spec/utils_spec.js +8 -1
- package/test/spec/videoCache_spec.js +18 -19
- package/test/spec/video_spec.js +51 -61
|
@@ -0,0 +1,1415 @@
|
|
|
1
|
+
// Underscore.js 1.7.0
|
|
2
|
+
// http://underscorejs.org
|
|
3
|
+
// (c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
4
|
+
// Underscore may be freely distributed under the MIT license.
|
|
5
|
+
|
|
6
|
+
(function() {
|
|
7
|
+
|
|
8
|
+
// Baseline setup
|
|
9
|
+
// --------------
|
|
10
|
+
|
|
11
|
+
// Establish the root object, `window` in the browser, or `exports` on the server.
|
|
12
|
+
var root = this;
|
|
13
|
+
|
|
14
|
+
// Save the previous value of the `_` variable.
|
|
15
|
+
var previousUnderscore = root._;
|
|
16
|
+
|
|
17
|
+
// Save bytes in the minified (but not gzipped) version:
|
|
18
|
+
var ArrayProto = Array.prototype, ObjProto = Object.prototype, FuncProto = Function.prototype;
|
|
19
|
+
|
|
20
|
+
// Create quick reference variables for speed access to core prototypes.
|
|
21
|
+
var
|
|
22
|
+
push = ArrayProto.push,
|
|
23
|
+
slice = ArrayProto.slice,
|
|
24
|
+
concat = ArrayProto.concat,
|
|
25
|
+
toString = ObjProto.toString,
|
|
26
|
+
hasOwnProperty = ObjProto.hasOwnProperty;
|
|
27
|
+
|
|
28
|
+
// All **ECMAScript 5** native function implementations that we hope to use
|
|
29
|
+
// are declared here.
|
|
30
|
+
var
|
|
31
|
+
nativeIsArray = Array.isArray,
|
|
32
|
+
nativeKeys = Object.keys,
|
|
33
|
+
nativeBind = FuncProto.bind;
|
|
34
|
+
|
|
35
|
+
// Create a safe reference to the Underscore object for use below.
|
|
36
|
+
var _ = function(obj) {
|
|
37
|
+
if (obj instanceof _) return obj;
|
|
38
|
+
if (!(this instanceof _)) return new _(obj);
|
|
39
|
+
this._wrapped = obj;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
// Export the Underscore object for **Node.js**, with
|
|
43
|
+
// backwards-compatibility for the old `require()` API. If we're in
|
|
44
|
+
// the browser, add `_` as a global object.
|
|
45
|
+
if (typeof exports !== 'undefined') {
|
|
46
|
+
if (typeof module !== 'undefined' && module.exports) {
|
|
47
|
+
exports = module.exports = _;
|
|
48
|
+
}
|
|
49
|
+
exports._ = _;
|
|
50
|
+
} else {
|
|
51
|
+
root._ = _;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Current version.
|
|
55
|
+
_.VERSION = '1.7.0';
|
|
56
|
+
|
|
57
|
+
// Internal function that returns an efficient (for current engines) version
|
|
58
|
+
// of the passed-in callback, to be repeatedly applied in other Underscore
|
|
59
|
+
// functions.
|
|
60
|
+
var createCallback = function(func, context, argCount) {
|
|
61
|
+
if (context === void 0) return func;
|
|
62
|
+
switch (argCount == null ? 3 : argCount) {
|
|
63
|
+
case 1: return function(value) {
|
|
64
|
+
return func.call(context, value);
|
|
65
|
+
};
|
|
66
|
+
case 2: return function(value, other) {
|
|
67
|
+
return func.call(context, value, other);
|
|
68
|
+
};
|
|
69
|
+
case 3: return function(value, index, collection) {
|
|
70
|
+
return func.call(context, value, index, collection);
|
|
71
|
+
};
|
|
72
|
+
case 4: return function(accumulator, value, index, collection) {
|
|
73
|
+
return func.call(context, accumulator, value, index, collection);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
return function() {
|
|
77
|
+
return func.apply(context, arguments);
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
// A mostly-internal function to generate callbacks that can be applied
|
|
82
|
+
// to each element in a collection, returning the desired result — either
|
|
83
|
+
// identity, an arbitrary callback, a property matcher, or a property accessor.
|
|
84
|
+
_.iteratee = function(value, context, argCount) {
|
|
85
|
+
if (value == null) return _.identity;
|
|
86
|
+
if (_.isFunction(value)) return createCallback(value, context, argCount);
|
|
87
|
+
if (_.isObject(value)) return _.matches(value);
|
|
88
|
+
return _.property(value);
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
// Collection Functions
|
|
92
|
+
// --------------------
|
|
93
|
+
|
|
94
|
+
// The cornerstone, an `each` implementation, aka `forEach`.
|
|
95
|
+
// Handles raw objects in addition to array-likes. Treats all
|
|
96
|
+
// sparse array-likes as if they were dense.
|
|
97
|
+
_.each = _.forEach = function(obj, iteratee, context) {
|
|
98
|
+
if (obj == null) return obj;
|
|
99
|
+
iteratee = createCallback(iteratee, context);
|
|
100
|
+
var i, length = obj.length;
|
|
101
|
+
if (length === +length) {
|
|
102
|
+
for (i = 0; i < length; i++) {
|
|
103
|
+
iteratee(obj[i], i, obj);
|
|
104
|
+
}
|
|
105
|
+
} else {
|
|
106
|
+
var keys = _.keys(obj);
|
|
107
|
+
for (i = 0, length = keys.length; i < length; i++) {
|
|
108
|
+
iteratee(obj[keys[i]], keys[i], obj);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
return obj;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
// Return the results of applying the iteratee to each element.
|
|
115
|
+
_.map = _.collect = function(obj, iteratee, context) {
|
|
116
|
+
if (obj == null) return [];
|
|
117
|
+
iteratee = _.iteratee(iteratee, context);
|
|
118
|
+
var keys = obj.length !== +obj.length && _.keys(obj),
|
|
119
|
+
length = (keys || obj).length,
|
|
120
|
+
results = Array(length),
|
|
121
|
+
currentKey;
|
|
122
|
+
for (var index = 0; index < length; index++) {
|
|
123
|
+
currentKey = keys ? keys[index] : index;
|
|
124
|
+
results[index] = iteratee(obj[currentKey], currentKey, obj);
|
|
125
|
+
}
|
|
126
|
+
return results;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
var reduceError = 'Reduce of empty array with no initial value';
|
|
130
|
+
|
|
131
|
+
// **Reduce** builds up a single result from a list of values, aka `inject`,
|
|
132
|
+
// or `foldl`.
|
|
133
|
+
_.reduce = _.foldl = _.inject = function(obj, iteratee, memo, context) {
|
|
134
|
+
if (obj == null) obj = [];
|
|
135
|
+
iteratee = createCallback(iteratee, context, 4);
|
|
136
|
+
var keys = obj.length !== +obj.length && _.keys(obj),
|
|
137
|
+
length = (keys || obj).length,
|
|
138
|
+
index = 0, currentKey;
|
|
139
|
+
if (arguments.length < 3) {
|
|
140
|
+
if (!length) throw new TypeError(reduceError);
|
|
141
|
+
memo = obj[keys ? keys[index++] : index++];
|
|
142
|
+
}
|
|
143
|
+
for (; index < length; index++) {
|
|
144
|
+
currentKey = keys ? keys[index] : index;
|
|
145
|
+
memo = iteratee(memo, obj[currentKey], currentKey, obj);
|
|
146
|
+
}
|
|
147
|
+
return memo;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
// The right-associative version of reduce, also known as `foldr`.
|
|
151
|
+
_.reduceRight = _.foldr = function(obj, iteratee, memo, context) {
|
|
152
|
+
if (obj == null) obj = [];
|
|
153
|
+
iteratee = createCallback(iteratee, context, 4);
|
|
154
|
+
var keys = obj.length !== + obj.length && _.keys(obj),
|
|
155
|
+
index = (keys || obj).length,
|
|
156
|
+
currentKey;
|
|
157
|
+
if (arguments.length < 3) {
|
|
158
|
+
if (!index) throw new TypeError(reduceError);
|
|
159
|
+
memo = obj[keys ? keys[--index] : --index];
|
|
160
|
+
}
|
|
161
|
+
while (index--) {
|
|
162
|
+
currentKey = keys ? keys[index] : index;
|
|
163
|
+
memo = iteratee(memo, obj[currentKey], currentKey, obj);
|
|
164
|
+
}
|
|
165
|
+
return memo;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
// Return the first value which passes a truth test. Aliased as `detect`.
|
|
169
|
+
_.find = _.detect = function(obj, predicate, context) {
|
|
170
|
+
var result;
|
|
171
|
+
predicate = _.iteratee(predicate, context);
|
|
172
|
+
_.some(obj, function(value, index, list) {
|
|
173
|
+
if (predicate(value, index, list)) {
|
|
174
|
+
result = value;
|
|
175
|
+
return true;
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
return result;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
// Return all the elements that pass a truth test.
|
|
182
|
+
// Aliased as `select`.
|
|
183
|
+
_.filter = _.select = function(obj, predicate, context) {
|
|
184
|
+
var results = [];
|
|
185
|
+
if (obj == null) return results;
|
|
186
|
+
predicate = _.iteratee(predicate, context);
|
|
187
|
+
_.each(obj, function(value, index, list) {
|
|
188
|
+
if (predicate(value, index, list)) results.push(value);
|
|
189
|
+
});
|
|
190
|
+
return results;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
// Return all the elements for which a truth test fails.
|
|
194
|
+
_.reject = function(obj, predicate, context) {
|
|
195
|
+
return _.filter(obj, _.negate(_.iteratee(predicate)), context);
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
// Determine whether all of the elements match a truth test.
|
|
199
|
+
// Aliased as `all`.
|
|
200
|
+
_.every = _.all = function(obj, predicate, context) {
|
|
201
|
+
if (obj == null) return true;
|
|
202
|
+
predicate = _.iteratee(predicate, context);
|
|
203
|
+
var keys = obj.length !== +obj.length && _.keys(obj),
|
|
204
|
+
length = (keys || obj).length,
|
|
205
|
+
index, currentKey;
|
|
206
|
+
for (index = 0; index < length; index++) {
|
|
207
|
+
currentKey = keys ? keys[index] : index;
|
|
208
|
+
if (!predicate(obj[currentKey], currentKey, obj)) return false;
|
|
209
|
+
}
|
|
210
|
+
return true;
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
// Determine if at least one element in the object matches a truth test.
|
|
214
|
+
// Aliased as `any`.
|
|
215
|
+
_.some = _.any = function(obj, predicate, context) {
|
|
216
|
+
if (obj == null) return false;
|
|
217
|
+
predicate = _.iteratee(predicate, context);
|
|
218
|
+
var keys = obj.length !== +obj.length && _.keys(obj),
|
|
219
|
+
length = (keys || obj).length,
|
|
220
|
+
index, currentKey;
|
|
221
|
+
for (index = 0; index < length; index++) {
|
|
222
|
+
currentKey = keys ? keys[index] : index;
|
|
223
|
+
if (predicate(obj[currentKey], currentKey, obj)) return true;
|
|
224
|
+
}
|
|
225
|
+
return false;
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
// Determine if the array or object contains a given value (using `===`).
|
|
229
|
+
// Aliased as `include`.
|
|
230
|
+
_.contains = _.include = function(obj, target) {
|
|
231
|
+
if (obj == null) return false;
|
|
232
|
+
if (obj.length !== +obj.length) obj = _.values(obj);
|
|
233
|
+
return _.indexOf(obj, target) >= 0;
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
// Invoke a method (with arguments) on every item in a collection.
|
|
237
|
+
_.invoke = function(obj, method) {
|
|
238
|
+
var args = slice.call(arguments, 2);
|
|
239
|
+
var isFunc = _.isFunction(method);
|
|
240
|
+
return _.map(obj, function(value) {
|
|
241
|
+
return (isFunc ? method : value[method]).apply(value, args);
|
|
242
|
+
});
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
// Convenience version of a common use case of `map`: fetching a property.
|
|
246
|
+
_.pluck = function(obj, key) {
|
|
247
|
+
return _.map(obj, _.property(key));
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
// Convenience version of a common use case of `filter`: selecting only objects
|
|
251
|
+
// containing specific `key:value` pairs.
|
|
252
|
+
_.where = function(obj, attrs) {
|
|
253
|
+
return _.filter(obj, _.matches(attrs));
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
// Convenience version of a common use case of `find`: getting the first object
|
|
257
|
+
// containing specific `key:value` pairs.
|
|
258
|
+
_.findWhere = function(obj, attrs) {
|
|
259
|
+
return _.find(obj, _.matches(attrs));
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
// Return the maximum element (or element-based computation).
|
|
263
|
+
_.max = function(obj, iteratee, context) {
|
|
264
|
+
var result = -Infinity, lastComputed = -Infinity,
|
|
265
|
+
value, computed;
|
|
266
|
+
if (iteratee == null && obj != null) {
|
|
267
|
+
obj = obj.length === +obj.length ? obj : _.values(obj);
|
|
268
|
+
for (var i = 0, length = obj.length; i < length; i++) {
|
|
269
|
+
value = obj[i];
|
|
270
|
+
if (value > result) {
|
|
271
|
+
result = value;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
} else {
|
|
275
|
+
iteratee = _.iteratee(iteratee, context);
|
|
276
|
+
_.each(obj, function(value, index, list) {
|
|
277
|
+
computed = iteratee(value, index, list);
|
|
278
|
+
if (computed > lastComputed || computed === -Infinity && result === -Infinity) {
|
|
279
|
+
result = value;
|
|
280
|
+
lastComputed = computed;
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
return result;
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
// Return the minimum element (or element-based computation).
|
|
288
|
+
_.min = function(obj, iteratee, context) {
|
|
289
|
+
var result = Infinity, lastComputed = Infinity,
|
|
290
|
+
value, computed;
|
|
291
|
+
if (iteratee == null && obj != null) {
|
|
292
|
+
obj = obj.length === +obj.length ? obj : _.values(obj);
|
|
293
|
+
for (var i = 0, length = obj.length; i < length; i++) {
|
|
294
|
+
value = obj[i];
|
|
295
|
+
if (value < result) {
|
|
296
|
+
result = value;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
} else {
|
|
300
|
+
iteratee = _.iteratee(iteratee, context);
|
|
301
|
+
_.each(obj, function(value, index, list) {
|
|
302
|
+
computed = iteratee(value, index, list);
|
|
303
|
+
if (computed < lastComputed || computed === Infinity && result === Infinity) {
|
|
304
|
+
result = value;
|
|
305
|
+
lastComputed = computed;
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
return result;
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
// Shuffle a collection, using the modern version of the
|
|
313
|
+
// [Fisher-Yates shuffle](http://en.wikipedia.org/wiki/Fisher–Yates_shuffle).
|
|
314
|
+
_.shuffle = function(obj) {
|
|
315
|
+
var set = obj && obj.length === +obj.length ? obj : _.values(obj);
|
|
316
|
+
var length = set.length;
|
|
317
|
+
var shuffled = Array(length);
|
|
318
|
+
for (var index = 0, rand; index < length; index++) {
|
|
319
|
+
rand = _.random(0, index);
|
|
320
|
+
if (rand !== index) shuffled[index] = shuffled[rand];
|
|
321
|
+
shuffled[rand] = set[index];
|
|
322
|
+
}
|
|
323
|
+
return shuffled;
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
// Sample **n** random values from a collection.
|
|
327
|
+
// If **n** is not specified, returns a single random element.
|
|
328
|
+
// The internal `guard` argument allows it to work with `map`.
|
|
329
|
+
_.sample = function(obj, n, guard) {
|
|
330
|
+
if (n == null || guard) {
|
|
331
|
+
if (obj.length !== +obj.length) obj = _.values(obj);
|
|
332
|
+
return obj[_.random(obj.length - 1)];
|
|
333
|
+
}
|
|
334
|
+
return _.shuffle(obj).slice(0, Math.max(0, n));
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
// Sort the object's values by a criterion produced by an iteratee.
|
|
338
|
+
_.sortBy = function(obj, iteratee, context) {
|
|
339
|
+
iteratee = _.iteratee(iteratee, context);
|
|
340
|
+
return _.pluck(_.map(obj, function(value, index, list) {
|
|
341
|
+
return {
|
|
342
|
+
value: value,
|
|
343
|
+
index: index,
|
|
344
|
+
criteria: iteratee(value, index, list)
|
|
345
|
+
};
|
|
346
|
+
}).sort(function(left, right) {
|
|
347
|
+
var a = left.criteria;
|
|
348
|
+
var b = right.criteria;
|
|
349
|
+
if (a !== b) {
|
|
350
|
+
if (a > b || a === void 0) return 1;
|
|
351
|
+
if (a < b || b === void 0) return -1;
|
|
352
|
+
}
|
|
353
|
+
return left.index - right.index;
|
|
354
|
+
}), 'value');
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
// An internal function used for aggregate "group by" operations.
|
|
358
|
+
var group = function(behavior) {
|
|
359
|
+
return function(obj, iteratee, context) {
|
|
360
|
+
var result = {};
|
|
361
|
+
iteratee = _.iteratee(iteratee, context);
|
|
362
|
+
_.each(obj, function(value, index) {
|
|
363
|
+
var key = iteratee(value, index, obj);
|
|
364
|
+
behavior(result, value, key);
|
|
365
|
+
});
|
|
366
|
+
return result;
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
// Groups the object's values by a criterion. Pass either a string attribute
|
|
371
|
+
// to group by, or a function that returns the criterion.
|
|
372
|
+
_.groupBy = group(function(result, value, key) {
|
|
373
|
+
if (_.has(result, key)) result[key].push(value); else result[key] = [value];
|
|
374
|
+
});
|
|
375
|
+
|
|
376
|
+
// Indexes the object's values by a criterion, similar to `groupBy`, but for
|
|
377
|
+
// when you know that your index values will be unique.
|
|
378
|
+
_.indexBy = group(function(result, value, key) {
|
|
379
|
+
result[key] = value;
|
|
380
|
+
});
|
|
381
|
+
|
|
382
|
+
// Counts instances of an object that group by a certain criterion. Pass
|
|
383
|
+
// either a string attribute to count by, or a function that returns the
|
|
384
|
+
// criterion.
|
|
385
|
+
_.countBy = group(function(result, value, key) {
|
|
386
|
+
if (_.has(result, key)) result[key]++; else result[key] = 1;
|
|
387
|
+
});
|
|
388
|
+
|
|
389
|
+
// Use a comparator function to figure out the smallest index at which
|
|
390
|
+
// an object should be inserted so as to maintain order. Uses binary search.
|
|
391
|
+
_.sortedIndex = function(array, obj, iteratee, context) {
|
|
392
|
+
iteratee = _.iteratee(iteratee, context, 1);
|
|
393
|
+
var value = iteratee(obj);
|
|
394
|
+
var low = 0, high = array.length;
|
|
395
|
+
while (low < high) {
|
|
396
|
+
var mid = low + high >>> 1;
|
|
397
|
+
if (iteratee(array[mid]) < value) low = mid + 1; else high = mid;
|
|
398
|
+
}
|
|
399
|
+
return low;
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
// Safely create a real, live array from anything iterable.
|
|
403
|
+
_.toArray = function(obj) {
|
|
404
|
+
if (!obj) return [];
|
|
405
|
+
if (_.isArray(obj)) return slice.call(obj);
|
|
406
|
+
if (obj.length === +obj.length) return _.map(obj, _.identity);
|
|
407
|
+
return _.values(obj);
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
// Return the number of elements in an object.
|
|
411
|
+
_.size = function(obj) {
|
|
412
|
+
if (obj == null) return 0;
|
|
413
|
+
return obj.length === +obj.length ? obj.length : _.keys(obj).length;
|
|
414
|
+
};
|
|
415
|
+
|
|
416
|
+
// Split a collection into two arrays: one whose elements all satisfy the given
|
|
417
|
+
// predicate, and one whose elements all do not satisfy the predicate.
|
|
418
|
+
_.partition = function(obj, predicate, context) {
|
|
419
|
+
predicate = _.iteratee(predicate, context);
|
|
420
|
+
var pass = [], fail = [];
|
|
421
|
+
_.each(obj, function(value, key, obj) {
|
|
422
|
+
(predicate(value, key, obj) ? pass : fail).push(value);
|
|
423
|
+
});
|
|
424
|
+
return [pass, fail];
|
|
425
|
+
};
|
|
426
|
+
|
|
427
|
+
// Array Functions
|
|
428
|
+
// ---------------
|
|
429
|
+
|
|
430
|
+
// Get the first element of an array. Passing **n** will return the first N
|
|
431
|
+
// values in the array. Aliased as `head` and `take`. The **guard** check
|
|
432
|
+
// allows it to work with `_.map`.
|
|
433
|
+
_.first = _.head = _.take = function(array, n, guard) {
|
|
434
|
+
if (array == null) return void 0;
|
|
435
|
+
if (n == null || guard) return array[0];
|
|
436
|
+
if (n < 0) return [];
|
|
437
|
+
return slice.call(array, 0, n);
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
// Returns everything but the last entry of the array. Especially useful on
|
|
441
|
+
// the arguments object. Passing **n** will return all the values in
|
|
442
|
+
// the array, excluding the last N. The **guard** check allows it to work with
|
|
443
|
+
// `_.map`.
|
|
444
|
+
_.initial = function(array, n, guard) {
|
|
445
|
+
return slice.call(array, 0, Math.max(0, array.length - (n == null || guard ? 1 : n)));
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
// Get the last element of an array. Passing **n** will return the last N
|
|
449
|
+
// values in the array. The **guard** check allows it to work with `_.map`.
|
|
450
|
+
_.last = function(array, n, guard) {
|
|
451
|
+
if (array == null) return void 0;
|
|
452
|
+
if (n == null || guard) return array[array.length - 1];
|
|
453
|
+
return slice.call(array, Math.max(array.length - n, 0));
|
|
454
|
+
};
|
|
455
|
+
|
|
456
|
+
// Returns everything but the first entry of the array. Aliased as `tail` and `drop`.
|
|
457
|
+
// Especially useful on the arguments object. Passing an **n** will return
|
|
458
|
+
// the rest N values in the array. The **guard**
|
|
459
|
+
// check allows it to work with `_.map`.
|
|
460
|
+
_.rest = _.tail = _.drop = function(array, n, guard) {
|
|
461
|
+
return slice.call(array, n == null || guard ? 1 : n);
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
// Trim out all falsy values from an array.
|
|
465
|
+
_.compact = function(array) {
|
|
466
|
+
return _.filter(array, _.identity);
|
|
467
|
+
};
|
|
468
|
+
|
|
469
|
+
// Internal implementation of a recursive `flatten` function.
|
|
470
|
+
var flatten = function(input, shallow, strict, output) {
|
|
471
|
+
if (shallow && _.every(input, _.isArray)) {
|
|
472
|
+
return concat.apply(output, input);
|
|
473
|
+
}
|
|
474
|
+
for (var i = 0, length = input.length; i < length; i++) {
|
|
475
|
+
var value = input[i];
|
|
476
|
+
if (!_.isArray(value) && !_.isArguments(value)) {
|
|
477
|
+
if (!strict) output.push(value);
|
|
478
|
+
} else if (shallow) {
|
|
479
|
+
push.apply(output, value);
|
|
480
|
+
} else {
|
|
481
|
+
flatten(value, shallow, strict, output);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
return output;
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
// Flatten out an array, either recursively (by default), or just one level.
|
|
488
|
+
_.flatten = function(array, shallow) {
|
|
489
|
+
return flatten(array, shallow, false, []);
|
|
490
|
+
};
|
|
491
|
+
|
|
492
|
+
// Return a version of the array that does not contain the specified value(s).
|
|
493
|
+
_.without = function(array) {
|
|
494
|
+
return _.difference(array, slice.call(arguments, 1));
|
|
495
|
+
};
|
|
496
|
+
|
|
497
|
+
// Produce a duplicate-free version of the array. If the array has already
|
|
498
|
+
// been sorted, you have the option of using a faster algorithm.
|
|
499
|
+
// Aliased as `unique`.
|
|
500
|
+
_.uniq = _.unique = function(array, isSorted, iteratee, context) {
|
|
501
|
+
if (array == null) return [];
|
|
502
|
+
if (!_.isBoolean(isSorted)) {
|
|
503
|
+
context = iteratee;
|
|
504
|
+
iteratee = isSorted;
|
|
505
|
+
isSorted = false;
|
|
506
|
+
}
|
|
507
|
+
if (iteratee != null) iteratee = _.iteratee(iteratee, context);
|
|
508
|
+
var result = [];
|
|
509
|
+
var seen = [];
|
|
510
|
+
for (var i = 0, length = array.length; i < length; i++) {
|
|
511
|
+
var value = array[i];
|
|
512
|
+
if (isSorted) {
|
|
513
|
+
if (!i || seen !== value) result.push(value);
|
|
514
|
+
seen = value;
|
|
515
|
+
} else if (iteratee) {
|
|
516
|
+
var computed = iteratee(value, i, array);
|
|
517
|
+
if (_.indexOf(seen, computed) < 0) {
|
|
518
|
+
seen.push(computed);
|
|
519
|
+
result.push(value);
|
|
520
|
+
}
|
|
521
|
+
} else if (_.indexOf(result, value) < 0) {
|
|
522
|
+
result.push(value);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
return result;
|
|
526
|
+
};
|
|
527
|
+
|
|
528
|
+
// Produce an array that contains the union: each distinct element from all of
|
|
529
|
+
// the passed-in arrays.
|
|
530
|
+
_.union = function() {
|
|
531
|
+
return _.uniq(flatten(arguments, true, true, []));
|
|
532
|
+
};
|
|
533
|
+
|
|
534
|
+
// Produce an array that contains every item shared between all the
|
|
535
|
+
// passed-in arrays.
|
|
536
|
+
_.intersection = function(array) {
|
|
537
|
+
if (array == null) return [];
|
|
538
|
+
var result = [];
|
|
539
|
+
var argsLength = arguments.length;
|
|
540
|
+
for (var i = 0, length = array.length; i < length; i++) {
|
|
541
|
+
var item = array[i];
|
|
542
|
+
if (_.contains(result, item)) continue;
|
|
543
|
+
for (var j = 1; j < argsLength; j++) {
|
|
544
|
+
if (!_.contains(arguments[j], item)) break;
|
|
545
|
+
}
|
|
546
|
+
if (j === argsLength) result.push(item);
|
|
547
|
+
}
|
|
548
|
+
return result;
|
|
549
|
+
};
|
|
550
|
+
|
|
551
|
+
// Take the difference between one array and a number of other arrays.
|
|
552
|
+
// Only the elements present in just the first array will remain.
|
|
553
|
+
_.difference = function(array) {
|
|
554
|
+
var rest = flatten(slice.call(arguments, 1), true, true, []);
|
|
555
|
+
return _.filter(array, function(value){
|
|
556
|
+
return !_.contains(rest, value);
|
|
557
|
+
});
|
|
558
|
+
};
|
|
559
|
+
|
|
560
|
+
// Zip together multiple lists into a single array -- elements that share
|
|
561
|
+
// an index go together.
|
|
562
|
+
_.zip = function(array) {
|
|
563
|
+
if (array == null) return [];
|
|
564
|
+
var length = _.max(arguments, 'length').length;
|
|
565
|
+
var results = Array(length);
|
|
566
|
+
for (var i = 0; i < length; i++) {
|
|
567
|
+
results[i] = _.pluck(arguments, i);
|
|
568
|
+
}
|
|
569
|
+
return results;
|
|
570
|
+
};
|
|
571
|
+
|
|
572
|
+
// Converts lists into objects. Pass either a single array of `[key, value]`
|
|
573
|
+
// pairs, or two parallel arrays of the same length -- one of keys, and one of
|
|
574
|
+
// the corresponding values.
|
|
575
|
+
_.object = function(list, values) {
|
|
576
|
+
if (list == null) return {};
|
|
577
|
+
var result = {};
|
|
578
|
+
for (var i = 0, length = list.length; i < length; i++) {
|
|
579
|
+
if (values) {
|
|
580
|
+
result[list[i]] = values[i];
|
|
581
|
+
} else {
|
|
582
|
+
result[list[i][0]] = list[i][1];
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
return result;
|
|
586
|
+
};
|
|
587
|
+
|
|
588
|
+
// Return the position of the first occurrence of an item in an array,
|
|
589
|
+
// or -1 if the item is not included in the array.
|
|
590
|
+
// If the array is large and already in sort order, pass `true`
|
|
591
|
+
// for **isSorted** to use binary search.
|
|
592
|
+
_.indexOf = function(array, item, isSorted) {
|
|
593
|
+
if (array == null) return -1;
|
|
594
|
+
var i = 0, length = array.length;
|
|
595
|
+
if (isSorted) {
|
|
596
|
+
if (typeof isSorted == 'number') {
|
|
597
|
+
i = isSorted < 0 ? Math.max(0, length + isSorted) : isSorted;
|
|
598
|
+
} else {
|
|
599
|
+
i = _.sortedIndex(array, item);
|
|
600
|
+
return array[i] === item ? i : -1;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
for (; i < length; i++) if (array[i] === item) return i;
|
|
604
|
+
return -1;
|
|
605
|
+
};
|
|
606
|
+
|
|
607
|
+
_.lastIndexOf = function(array, item, from) {
|
|
608
|
+
if (array == null) return -1;
|
|
609
|
+
var idx = array.length;
|
|
610
|
+
if (typeof from == 'number') {
|
|
611
|
+
idx = from < 0 ? idx + from + 1 : Math.min(idx, from + 1);
|
|
612
|
+
}
|
|
613
|
+
while (--idx >= 0) if (array[idx] === item) return idx;
|
|
614
|
+
return -1;
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
// Generate an integer Array containing an arithmetic progression. A port of
|
|
618
|
+
// the native Python `range()` function. See
|
|
619
|
+
// [the Python documentation](http://docs.python.org/library/functions.html#range).
|
|
620
|
+
_.range = function(start, stop, step) {
|
|
621
|
+
if (arguments.length <= 1) {
|
|
622
|
+
stop = start || 0;
|
|
623
|
+
start = 0;
|
|
624
|
+
}
|
|
625
|
+
step = step || 1;
|
|
626
|
+
|
|
627
|
+
var length = Math.max(Math.ceil((stop - start) / step), 0);
|
|
628
|
+
var range = Array(length);
|
|
629
|
+
|
|
630
|
+
for (var idx = 0; idx < length; idx++, start += step) {
|
|
631
|
+
range[idx] = start;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
return range;
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
// Function (ahem) Functions
|
|
638
|
+
// ------------------
|
|
639
|
+
|
|
640
|
+
// Reusable constructor function for prototype setting.
|
|
641
|
+
var Ctor = function(){};
|
|
642
|
+
|
|
643
|
+
// Create a function bound to a given object (assigning `this`, and arguments,
|
|
644
|
+
// optionally). Delegates to **ECMAScript 5**'s native `Function.bind` if
|
|
645
|
+
// available.
|
|
646
|
+
_.bind = function(func, context) {
|
|
647
|
+
var args, bound;
|
|
648
|
+
if (nativeBind && func.bind === nativeBind) return nativeBind.apply(func, slice.call(arguments, 1));
|
|
649
|
+
if (!_.isFunction(func)) throw new TypeError('Bind must be called on a function');
|
|
650
|
+
args = slice.call(arguments, 2);
|
|
651
|
+
bound = function() {
|
|
652
|
+
if (!(this instanceof bound)) return func.apply(context, args.concat(slice.call(arguments)));
|
|
653
|
+
Ctor.prototype = func.prototype;
|
|
654
|
+
var self = new Ctor;
|
|
655
|
+
Ctor.prototype = null;
|
|
656
|
+
var result = func.apply(self, args.concat(slice.call(arguments)));
|
|
657
|
+
if (_.isObject(result)) return result;
|
|
658
|
+
return self;
|
|
659
|
+
};
|
|
660
|
+
return bound;
|
|
661
|
+
};
|
|
662
|
+
|
|
663
|
+
// Partially apply a function by creating a version that has had some of its
|
|
664
|
+
// arguments pre-filled, without changing its dynamic `this` context. _ acts
|
|
665
|
+
// as a placeholder, allowing any combination of arguments to be pre-filled.
|
|
666
|
+
_.partial = function(func) {
|
|
667
|
+
var boundArgs = slice.call(arguments, 1);
|
|
668
|
+
return function() {
|
|
669
|
+
var position = 0;
|
|
670
|
+
var args = boundArgs.slice();
|
|
671
|
+
for (var i = 0, length = args.length; i < length; i++) {
|
|
672
|
+
if (args[i] === _) args[i] = arguments[position++];
|
|
673
|
+
}
|
|
674
|
+
while (position < arguments.length) args.push(arguments[position++]);
|
|
675
|
+
return func.apply(this, args);
|
|
676
|
+
};
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
// Bind a number of an object's methods to that object. Remaining arguments
|
|
680
|
+
// are the method names to be bound. Useful for ensuring that all callbacks
|
|
681
|
+
// defined on an object belong to it.
|
|
682
|
+
_.bindAll = function(obj) {
|
|
683
|
+
var i, length = arguments.length, key;
|
|
684
|
+
if (length <= 1) throw new Error('bindAll must be passed function names');
|
|
685
|
+
for (i = 1; i < length; i++) {
|
|
686
|
+
key = arguments[i];
|
|
687
|
+
obj[key] = _.bind(obj[key], obj);
|
|
688
|
+
}
|
|
689
|
+
return obj;
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
// Memoize an expensive function by storing its results.
|
|
693
|
+
_.memoize = function(func, hasher) {
|
|
694
|
+
var memoize = function(key) {
|
|
695
|
+
var cache = memoize.cache;
|
|
696
|
+
var address = hasher ? hasher.apply(this, arguments) : key;
|
|
697
|
+
if (!_.has(cache, address)) cache[address] = func.apply(this, arguments);
|
|
698
|
+
return cache[address];
|
|
699
|
+
};
|
|
700
|
+
memoize.cache = {};
|
|
701
|
+
return memoize;
|
|
702
|
+
};
|
|
703
|
+
|
|
704
|
+
// Delays a function for the given number of milliseconds, and then calls
|
|
705
|
+
// it with the arguments supplied.
|
|
706
|
+
_.delay = function(func, wait) {
|
|
707
|
+
var args = slice.call(arguments, 2);
|
|
708
|
+
return setTimeout(function(){
|
|
709
|
+
return func.apply(null, args);
|
|
710
|
+
}, wait);
|
|
711
|
+
};
|
|
712
|
+
|
|
713
|
+
// Defers a function, scheduling it to run after the current call stack has
|
|
714
|
+
// cleared.
|
|
715
|
+
_.defer = function(func) {
|
|
716
|
+
return _.delay.apply(_, [func, 1].concat(slice.call(arguments, 1)));
|
|
717
|
+
};
|
|
718
|
+
|
|
719
|
+
// Returns a function, that, when invoked, will only be triggered at most once
|
|
720
|
+
// during a given window of time. Normally, the throttled function will run
|
|
721
|
+
// as much as it can, without ever going more than once per `wait` duration;
|
|
722
|
+
// but if you'd like to disable the execution on the leading edge, pass
|
|
723
|
+
// `{leading: false}`. To disable execution on the trailing edge, ditto.
|
|
724
|
+
_.throttle = function(func, wait, options) {
|
|
725
|
+
var context, args, result;
|
|
726
|
+
var timeout = null;
|
|
727
|
+
var previous = 0;
|
|
728
|
+
if (!options) options = {};
|
|
729
|
+
var later = function() {
|
|
730
|
+
previous = options.leading === false ? 0 : _.now();
|
|
731
|
+
timeout = null;
|
|
732
|
+
result = func.apply(context, args);
|
|
733
|
+
if (!timeout) context = args = null;
|
|
734
|
+
};
|
|
735
|
+
return function() {
|
|
736
|
+
var now = _.now();
|
|
737
|
+
if (!previous && options.leading === false) previous = now;
|
|
738
|
+
var remaining = wait - (now - previous);
|
|
739
|
+
context = this;
|
|
740
|
+
args = arguments;
|
|
741
|
+
if (remaining <= 0 || remaining > wait) {
|
|
742
|
+
clearTimeout(timeout);
|
|
743
|
+
timeout = null;
|
|
744
|
+
previous = now;
|
|
745
|
+
result = func.apply(context, args);
|
|
746
|
+
if (!timeout) context = args = null;
|
|
747
|
+
} else if (!timeout && options.trailing !== false) {
|
|
748
|
+
timeout = setTimeout(later, remaining);
|
|
749
|
+
}
|
|
750
|
+
return result;
|
|
751
|
+
};
|
|
752
|
+
};
|
|
753
|
+
|
|
754
|
+
// Returns a function, that, as long as it continues to be invoked, will not
|
|
755
|
+
// be triggered. The function will be called after it stops being called for
|
|
756
|
+
// N milliseconds. If `immediate` is passed, trigger the function on the
|
|
757
|
+
// leading edge, instead of the trailing.
|
|
758
|
+
_.debounce = function(func, wait, immediate) {
|
|
759
|
+
var timeout, args, context, timestamp, result;
|
|
760
|
+
|
|
761
|
+
var later = function() {
|
|
762
|
+
var last = _.now() - timestamp;
|
|
763
|
+
|
|
764
|
+
if (last < wait && last > 0) {
|
|
765
|
+
timeout = setTimeout(later, wait - last);
|
|
766
|
+
} else {
|
|
767
|
+
timeout = null;
|
|
768
|
+
if (!immediate) {
|
|
769
|
+
result = func.apply(context, args);
|
|
770
|
+
if (!timeout) context = args = null;
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
};
|
|
774
|
+
|
|
775
|
+
return function() {
|
|
776
|
+
context = this;
|
|
777
|
+
args = arguments;
|
|
778
|
+
timestamp = _.now();
|
|
779
|
+
var callNow = immediate && !timeout;
|
|
780
|
+
if (!timeout) timeout = setTimeout(later, wait);
|
|
781
|
+
if (callNow) {
|
|
782
|
+
result = func.apply(context, args);
|
|
783
|
+
context = args = null;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
return result;
|
|
787
|
+
};
|
|
788
|
+
};
|
|
789
|
+
|
|
790
|
+
// Returns the first function passed as an argument to the second,
|
|
791
|
+
// allowing you to adjust arguments, run code before and after, and
|
|
792
|
+
// conditionally execute the original function.
|
|
793
|
+
_.wrap = function(func, wrapper) {
|
|
794
|
+
return _.partial(wrapper, func);
|
|
795
|
+
};
|
|
796
|
+
|
|
797
|
+
// Returns a negated version of the passed-in predicate.
|
|
798
|
+
_.negate = function(predicate) {
|
|
799
|
+
return function() {
|
|
800
|
+
return !predicate.apply(this, arguments);
|
|
801
|
+
};
|
|
802
|
+
};
|
|
803
|
+
|
|
804
|
+
// Returns a function that is the composition of a list of functions, each
|
|
805
|
+
// consuming the return value of the function that follows.
|
|
806
|
+
_.compose = function() {
|
|
807
|
+
var args = arguments;
|
|
808
|
+
var start = args.length - 1;
|
|
809
|
+
return function() {
|
|
810
|
+
var i = start;
|
|
811
|
+
var result = args[start].apply(this, arguments);
|
|
812
|
+
while (i--) result = args[i].call(this, result);
|
|
813
|
+
return result;
|
|
814
|
+
};
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
// Returns a function that will only be executed after being called N times.
|
|
818
|
+
_.after = function(times, func) {
|
|
819
|
+
return function() {
|
|
820
|
+
if (--times < 1) {
|
|
821
|
+
return func.apply(this, arguments);
|
|
822
|
+
}
|
|
823
|
+
};
|
|
824
|
+
};
|
|
825
|
+
|
|
826
|
+
// Returns a function that will only be executed before being called N times.
|
|
827
|
+
_.before = function(times, func) {
|
|
828
|
+
var memo;
|
|
829
|
+
return function() {
|
|
830
|
+
if (--times > 0) {
|
|
831
|
+
memo = func.apply(this, arguments);
|
|
832
|
+
} else {
|
|
833
|
+
func = null;
|
|
834
|
+
}
|
|
835
|
+
return memo;
|
|
836
|
+
};
|
|
837
|
+
};
|
|
838
|
+
|
|
839
|
+
// Returns a function that will be executed at most one time, no matter how
|
|
840
|
+
// often you call it. Useful for lazy initialization.
|
|
841
|
+
_.once = _.partial(_.before, 2);
|
|
842
|
+
|
|
843
|
+
// Object Functions
|
|
844
|
+
// ----------------
|
|
845
|
+
|
|
846
|
+
// Retrieve the names of an object's properties.
|
|
847
|
+
// Delegates to **ECMAScript 5**'s native `Object.keys`
|
|
848
|
+
_.keys = function(obj) {
|
|
849
|
+
if (!_.isObject(obj)) return [];
|
|
850
|
+
if (nativeKeys) return nativeKeys(obj);
|
|
851
|
+
var keys = [];
|
|
852
|
+
for (var key in obj) if (_.has(obj, key)) keys.push(key);
|
|
853
|
+
return keys;
|
|
854
|
+
};
|
|
855
|
+
|
|
856
|
+
// Retrieve the values of an object's properties.
|
|
857
|
+
_.values = function(obj) {
|
|
858
|
+
var keys = _.keys(obj);
|
|
859
|
+
var length = keys.length;
|
|
860
|
+
var values = Array(length);
|
|
861
|
+
for (var i = 0; i < length; i++) {
|
|
862
|
+
values[i] = obj[keys[i]];
|
|
863
|
+
}
|
|
864
|
+
return values;
|
|
865
|
+
};
|
|
866
|
+
|
|
867
|
+
// Convert an object into a list of `[key, value]` pairs.
|
|
868
|
+
_.pairs = function(obj) {
|
|
869
|
+
var keys = _.keys(obj);
|
|
870
|
+
var length = keys.length;
|
|
871
|
+
var pairs = Array(length);
|
|
872
|
+
for (var i = 0; i < length; i++) {
|
|
873
|
+
pairs[i] = [keys[i], obj[keys[i]]];
|
|
874
|
+
}
|
|
875
|
+
return pairs;
|
|
876
|
+
};
|
|
877
|
+
|
|
878
|
+
// Invert the keys and values of an object. The values must be serializable.
|
|
879
|
+
_.invert = function(obj) {
|
|
880
|
+
var result = {};
|
|
881
|
+
var keys = _.keys(obj);
|
|
882
|
+
for (var i = 0, length = keys.length; i < length; i++) {
|
|
883
|
+
result[obj[keys[i]]] = keys[i];
|
|
884
|
+
}
|
|
885
|
+
return result;
|
|
886
|
+
};
|
|
887
|
+
|
|
888
|
+
// Return a sorted list of the function names available on the object.
|
|
889
|
+
// Aliased as `methods`
|
|
890
|
+
_.functions = _.methods = function(obj) {
|
|
891
|
+
var names = [];
|
|
892
|
+
for (var key in obj) {
|
|
893
|
+
if (_.isFunction(obj[key])) names.push(key);
|
|
894
|
+
}
|
|
895
|
+
return names.sort();
|
|
896
|
+
};
|
|
897
|
+
|
|
898
|
+
// Extend a given object with all the properties in passed-in object(s).
|
|
899
|
+
_.extend = function(obj) {
|
|
900
|
+
if (!_.isObject(obj)) return obj;
|
|
901
|
+
var source, prop;
|
|
902
|
+
for (var i = 1, length = arguments.length; i < length; i++) {
|
|
903
|
+
source = arguments[i];
|
|
904
|
+
for (prop in source) {
|
|
905
|
+
if (hasOwnProperty.call(source, prop)) {
|
|
906
|
+
obj[prop] = source[prop];
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
return obj;
|
|
911
|
+
};
|
|
912
|
+
|
|
913
|
+
// Return a copy of the object only containing the whitelisted properties.
|
|
914
|
+
_.pick = function(obj, iteratee, context) {
|
|
915
|
+
var result = {}, key;
|
|
916
|
+
if (obj == null) return result;
|
|
917
|
+
if (_.isFunction(iteratee)) {
|
|
918
|
+
iteratee = createCallback(iteratee, context);
|
|
919
|
+
for (key in obj) {
|
|
920
|
+
var value = obj[key];
|
|
921
|
+
if (iteratee(value, key, obj)) result[key] = value;
|
|
922
|
+
}
|
|
923
|
+
} else {
|
|
924
|
+
var keys = concat.apply([], slice.call(arguments, 1));
|
|
925
|
+
obj = new Object(obj);
|
|
926
|
+
for (var i = 0, length = keys.length; i < length; i++) {
|
|
927
|
+
key = keys[i];
|
|
928
|
+
if (key in obj) result[key] = obj[key];
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
return result;
|
|
932
|
+
};
|
|
933
|
+
|
|
934
|
+
// Return a copy of the object without the blacklisted properties.
|
|
935
|
+
_.omit = function(obj, iteratee, context) {
|
|
936
|
+
if (_.isFunction(iteratee)) {
|
|
937
|
+
iteratee = _.negate(iteratee);
|
|
938
|
+
} else {
|
|
939
|
+
var keys = _.map(concat.apply([], slice.call(arguments, 1)), String);
|
|
940
|
+
iteratee = function(value, key) {
|
|
941
|
+
return !_.contains(keys, key);
|
|
942
|
+
};
|
|
943
|
+
}
|
|
944
|
+
return _.pick(obj, iteratee, context);
|
|
945
|
+
};
|
|
946
|
+
|
|
947
|
+
// Fill in a given object with default properties.
|
|
948
|
+
_.defaults = function(obj) {
|
|
949
|
+
if (!_.isObject(obj)) return obj;
|
|
950
|
+
for (var i = 1, length = arguments.length; i < length; i++) {
|
|
951
|
+
var source = arguments[i];
|
|
952
|
+
for (var prop in source) {
|
|
953
|
+
if (obj[prop] === void 0) obj[prop] = source[prop];
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
return obj;
|
|
957
|
+
};
|
|
958
|
+
|
|
959
|
+
// Create a (shallow-cloned) duplicate of an object.
|
|
960
|
+
_.clone = function(obj) {
|
|
961
|
+
if (!_.isObject(obj)) return obj;
|
|
962
|
+
return _.isArray(obj) ? obj.slice() : _.extend({}, obj);
|
|
963
|
+
};
|
|
964
|
+
|
|
965
|
+
// Invokes interceptor with the obj, and then returns obj.
|
|
966
|
+
// The primary purpose of this method is to "tap into" a method chain, in
|
|
967
|
+
// order to perform operations on intermediate results within the chain.
|
|
968
|
+
_.tap = function(obj, interceptor) {
|
|
969
|
+
interceptor(obj);
|
|
970
|
+
return obj;
|
|
971
|
+
};
|
|
972
|
+
|
|
973
|
+
// Internal recursive comparison function for `isEqual`.
|
|
974
|
+
var eq = function(a, b, aStack, bStack) {
|
|
975
|
+
// Identical objects are equal. `0 === -0`, but they aren't identical.
|
|
976
|
+
// See the [Harmony `egal` proposal](http://wiki.ecmascript.org/doku.php?id=harmony:egal).
|
|
977
|
+
if (a === b) return a !== 0 || 1 / a === 1 / b;
|
|
978
|
+
// A strict comparison is necessary because `null == undefined`.
|
|
979
|
+
if (a == null || b == null) return a === b;
|
|
980
|
+
// Unwrap any wrapped objects.
|
|
981
|
+
if (a instanceof _) a = a._wrapped;
|
|
982
|
+
if (b instanceof _) b = b._wrapped;
|
|
983
|
+
// Compare `[[Class]]` names.
|
|
984
|
+
var className = toString.call(a);
|
|
985
|
+
if (className !== toString.call(b)) return false;
|
|
986
|
+
switch (className) {
|
|
987
|
+
// Strings, numbers, regular expressions, dates, and booleans are compared by value.
|
|
988
|
+
case '[object RegExp]':
|
|
989
|
+
// RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')
|
|
990
|
+
case '[object String]':
|
|
991
|
+
// Primitives and their corresponding object wrappers are equivalent; thus, `"5"` is
|
|
992
|
+
// equivalent to `new String("5")`.
|
|
993
|
+
return '' + a === '' + b;
|
|
994
|
+
case '[object Number]':
|
|
995
|
+
// `NaN`s are equivalent, but non-reflexive.
|
|
996
|
+
// Object(NaN) is equivalent to NaN
|
|
997
|
+
if (+a !== +a) return +b !== +b;
|
|
998
|
+
// An `egal` comparison is performed for other numeric values.
|
|
999
|
+
return +a === 0 ? 1 / +a === 1 / b : +a === +b;
|
|
1000
|
+
case '[object Date]':
|
|
1001
|
+
case '[object Boolean]':
|
|
1002
|
+
// Coerce dates and booleans to numeric primitive values. Dates are compared by their
|
|
1003
|
+
// millisecond representations. Note that invalid dates with millisecond representations
|
|
1004
|
+
// of `NaN` are not equivalent.
|
|
1005
|
+
return +a === +b;
|
|
1006
|
+
}
|
|
1007
|
+
if (typeof a != 'object' || typeof b != 'object') return false;
|
|
1008
|
+
// Assume equality for cyclic structures. The algorithm for detecting cyclic
|
|
1009
|
+
// structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.
|
|
1010
|
+
var length = aStack.length;
|
|
1011
|
+
while (length--) {
|
|
1012
|
+
// Linear search. Performance is inversely proportional to the number of
|
|
1013
|
+
// unique nested structures.
|
|
1014
|
+
if (aStack[length] === a) return bStack[length] === b;
|
|
1015
|
+
}
|
|
1016
|
+
// Objects with different constructors are not equivalent, but `Object`s
|
|
1017
|
+
// from different frames are.
|
|
1018
|
+
var aCtor = a.constructor, bCtor = b.constructor;
|
|
1019
|
+
if (
|
|
1020
|
+
aCtor !== bCtor &&
|
|
1021
|
+
// Handle Object.create(x) cases
|
|
1022
|
+
'constructor' in a && 'constructor' in b &&
|
|
1023
|
+
!(_.isFunction(aCtor) && aCtor instanceof aCtor &&
|
|
1024
|
+
_.isFunction(bCtor) && bCtor instanceof bCtor)
|
|
1025
|
+
) {
|
|
1026
|
+
return false;
|
|
1027
|
+
}
|
|
1028
|
+
// Add the first object to the stack of traversed objects.
|
|
1029
|
+
aStack.push(a);
|
|
1030
|
+
bStack.push(b);
|
|
1031
|
+
var size, result;
|
|
1032
|
+
// Recursively compare objects and arrays.
|
|
1033
|
+
if (className === '[object Array]') {
|
|
1034
|
+
// Compare array lengths to determine if a deep comparison is necessary.
|
|
1035
|
+
size = a.length;
|
|
1036
|
+
result = size === b.length;
|
|
1037
|
+
if (result) {
|
|
1038
|
+
// Deep compare the contents, ignoring non-numeric properties.
|
|
1039
|
+
while (size--) {
|
|
1040
|
+
if (!(result = eq(a[size], b[size], aStack, bStack))) break;
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
} else {
|
|
1044
|
+
// Deep compare objects.
|
|
1045
|
+
var keys = _.keys(a), key;
|
|
1046
|
+
size = keys.length;
|
|
1047
|
+
// Ensure that both objects contain the same number of properties before comparing deep equality.
|
|
1048
|
+
result = _.keys(b).length === size;
|
|
1049
|
+
if (result) {
|
|
1050
|
+
while (size--) {
|
|
1051
|
+
// Deep compare each member
|
|
1052
|
+
key = keys[size];
|
|
1053
|
+
if (!(result = _.has(b, key) && eq(a[key], b[key], aStack, bStack))) break;
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
// Remove the first object from the stack of traversed objects.
|
|
1058
|
+
aStack.pop();
|
|
1059
|
+
bStack.pop();
|
|
1060
|
+
return result;
|
|
1061
|
+
};
|
|
1062
|
+
|
|
1063
|
+
// Perform a deep comparison to check if two objects are equal.
|
|
1064
|
+
_.isEqual = function(a, b) {
|
|
1065
|
+
return eq(a, b, [], []);
|
|
1066
|
+
};
|
|
1067
|
+
|
|
1068
|
+
// Is a given array, string, or object empty?
|
|
1069
|
+
// An "empty" object has no enumerable own-properties.
|
|
1070
|
+
_.isEmpty = function(obj) {
|
|
1071
|
+
if (obj == null) return true;
|
|
1072
|
+
if (_.isArray(obj) || _.isString(obj) || _.isArguments(obj)) return obj.length === 0;
|
|
1073
|
+
for (var key in obj) if (_.has(obj, key)) return false;
|
|
1074
|
+
return true;
|
|
1075
|
+
};
|
|
1076
|
+
|
|
1077
|
+
// Is a given value a DOM element?
|
|
1078
|
+
_.isElement = function(obj) {
|
|
1079
|
+
return !!(obj && obj.nodeType === 1);
|
|
1080
|
+
};
|
|
1081
|
+
|
|
1082
|
+
// Is a given value an array?
|
|
1083
|
+
// Delegates to ECMA5's native Array.isArray
|
|
1084
|
+
_.isArray = nativeIsArray || function(obj) {
|
|
1085
|
+
return toString.call(obj) === '[object Array]';
|
|
1086
|
+
};
|
|
1087
|
+
|
|
1088
|
+
// Is a given variable an object?
|
|
1089
|
+
_.isObject = function(obj) {
|
|
1090
|
+
var type = typeof obj;
|
|
1091
|
+
return type === 'function' || type === 'object' && !!obj;
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1094
|
+
// Add some isType methods: isArguments, isFunction, isString, isNumber, isDate, isRegExp.
|
|
1095
|
+
_.each(['Arguments', 'Function', 'String', 'Number', 'Date', 'RegExp'], function(name) {
|
|
1096
|
+
_['is' + name] = function(obj) {
|
|
1097
|
+
return toString.call(obj) === '[object ' + name + ']';
|
|
1098
|
+
};
|
|
1099
|
+
});
|
|
1100
|
+
|
|
1101
|
+
// Define a fallback version of the method in browsers (ahem, IE), where
|
|
1102
|
+
// there isn't any inspectable "Arguments" type.
|
|
1103
|
+
if (!_.isArguments(arguments)) {
|
|
1104
|
+
_.isArguments = function(obj) {
|
|
1105
|
+
return _.has(obj, 'callee');
|
|
1106
|
+
};
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
// Optimize `isFunction` if appropriate. Work around an IE 11 bug.
|
|
1110
|
+
if (typeof /./ !== 'function') {
|
|
1111
|
+
_.isFunction = function(obj) {
|
|
1112
|
+
return typeof obj == 'function' || false;
|
|
1113
|
+
};
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
// Is a given object a finite number?
|
|
1117
|
+
_.isFinite = function(obj) {
|
|
1118
|
+
return isFinite(obj) && !isNaN(parseFloat(obj));
|
|
1119
|
+
};
|
|
1120
|
+
|
|
1121
|
+
// Is the given value `NaN`? (NaN is the only number which does not equal itself).
|
|
1122
|
+
_.isNaN = function(obj) {
|
|
1123
|
+
return _.isNumber(obj) && obj !== +obj;
|
|
1124
|
+
};
|
|
1125
|
+
|
|
1126
|
+
// Is a given value a boolean?
|
|
1127
|
+
_.isBoolean = function(obj) {
|
|
1128
|
+
return obj === true || obj === false || toString.call(obj) === '[object Boolean]';
|
|
1129
|
+
};
|
|
1130
|
+
|
|
1131
|
+
// Is a given value equal to null?
|
|
1132
|
+
_.isNull = function(obj) {
|
|
1133
|
+
return obj === null;
|
|
1134
|
+
};
|
|
1135
|
+
|
|
1136
|
+
// Is a given variable undefined?
|
|
1137
|
+
_.isUndefined = function(obj) {
|
|
1138
|
+
return obj === void 0;
|
|
1139
|
+
};
|
|
1140
|
+
|
|
1141
|
+
// Shortcut function for checking if an object has a given property directly
|
|
1142
|
+
// on itself (in other words, not on a prototype).
|
|
1143
|
+
_.has = function(obj, key) {
|
|
1144
|
+
return obj != null && hasOwnProperty.call(obj, key);
|
|
1145
|
+
};
|
|
1146
|
+
|
|
1147
|
+
// Utility Functions
|
|
1148
|
+
// -----------------
|
|
1149
|
+
|
|
1150
|
+
// Run Underscore.js in *noConflict* mode, returning the `_` variable to its
|
|
1151
|
+
// previous owner. Returns a reference to the Underscore object.
|
|
1152
|
+
_.noConflict = function() {
|
|
1153
|
+
root._ = previousUnderscore;
|
|
1154
|
+
return this;
|
|
1155
|
+
};
|
|
1156
|
+
|
|
1157
|
+
// Keep the identity function around for default iteratees.
|
|
1158
|
+
_.identity = function(value) {
|
|
1159
|
+
return value;
|
|
1160
|
+
};
|
|
1161
|
+
|
|
1162
|
+
_.constant = function(value) {
|
|
1163
|
+
return function() {
|
|
1164
|
+
return value;
|
|
1165
|
+
};
|
|
1166
|
+
};
|
|
1167
|
+
|
|
1168
|
+
_.noop = function(){};
|
|
1169
|
+
|
|
1170
|
+
_.property = function(key) {
|
|
1171
|
+
return function(obj) {
|
|
1172
|
+
return obj[key];
|
|
1173
|
+
};
|
|
1174
|
+
};
|
|
1175
|
+
|
|
1176
|
+
// Returns a predicate for checking whether an object has a given set of `key:value` pairs.
|
|
1177
|
+
_.matches = function(attrs) {
|
|
1178
|
+
var pairs = _.pairs(attrs), length = pairs.length;
|
|
1179
|
+
return function(obj) {
|
|
1180
|
+
if (obj == null) return !length;
|
|
1181
|
+
obj = new Object(obj);
|
|
1182
|
+
for (var i = 0; i < length; i++) {
|
|
1183
|
+
var pair = pairs[i], key = pair[0];
|
|
1184
|
+
if (pair[1] !== obj[key] || !(key in obj)) return false;
|
|
1185
|
+
}
|
|
1186
|
+
return true;
|
|
1187
|
+
};
|
|
1188
|
+
};
|
|
1189
|
+
|
|
1190
|
+
// Run a function **n** times.
|
|
1191
|
+
_.times = function(n, iteratee, context) {
|
|
1192
|
+
var accum = Array(Math.max(0, n));
|
|
1193
|
+
iteratee = createCallback(iteratee, context, 1);
|
|
1194
|
+
for (var i = 0; i < n; i++) accum[i] = iteratee(i);
|
|
1195
|
+
return accum;
|
|
1196
|
+
};
|
|
1197
|
+
|
|
1198
|
+
// Return a random integer between min and max (inclusive).
|
|
1199
|
+
_.random = function(min, max) {
|
|
1200
|
+
if (max == null) {
|
|
1201
|
+
max = min;
|
|
1202
|
+
min = 0;
|
|
1203
|
+
}
|
|
1204
|
+
return min + Math.floor(Math.random() * (max - min + 1));
|
|
1205
|
+
};
|
|
1206
|
+
|
|
1207
|
+
// A (possibly faster) way to get the current timestamp as an integer.
|
|
1208
|
+
_.now = Date.now || function() {
|
|
1209
|
+
return new Date().getTime();
|
|
1210
|
+
};
|
|
1211
|
+
|
|
1212
|
+
// List of HTML entities for escaping.
|
|
1213
|
+
var escapeMap = {
|
|
1214
|
+
'&': '&',
|
|
1215
|
+
'<': '<',
|
|
1216
|
+
'>': '>',
|
|
1217
|
+
'"': '"',
|
|
1218
|
+
"'": ''',
|
|
1219
|
+
'`': '`'
|
|
1220
|
+
};
|
|
1221
|
+
var unescapeMap = _.invert(escapeMap);
|
|
1222
|
+
|
|
1223
|
+
// Functions for escaping and unescaping strings to/from HTML interpolation.
|
|
1224
|
+
var createEscaper = function(map) {
|
|
1225
|
+
var escaper = function(match) {
|
|
1226
|
+
return map[match];
|
|
1227
|
+
};
|
|
1228
|
+
// Regexes for identifying a key that needs to be escaped
|
|
1229
|
+
var source = '(?:' + _.keys(map).join('|') + ')';
|
|
1230
|
+
var testRegexp = RegExp(source);
|
|
1231
|
+
var replaceRegexp = RegExp(source, 'g');
|
|
1232
|
+
return function(string) {
|
|
1233
|
+
string = string == null ? '' : '' + string;
|
|
1234
|
+
return testRegexp.test(string) ? string.replace(replaceRegexp, escaper) : string;
|
|
1235
|
+
};
|
|
1236
|
+
};
|
|
1237
|
+
_.escape = createEscaper(escapeMap);
|
|
1238
|
+
_.unescape = createEscaper(unescapeMap);
|
|
1239
|
+
|
|
1240
|
+
// If the value of the named `property` is a function then invoke it with the
|
|
1241
|
+
// `object` as context; otherwise, return it.
|
|
1242
|
+
_.result = function(object, property) {
|
|
1243
|
+
if (object == null) return void 0;
|
|
1244
|
+
var value = object[property];
|
|
1245
|
+
return _.isFunction(value) ? object[property]() : value;
|
|
1246
|
+
};
|
|
1247
|
+
|
|
1248
|
+
// Generate a unique integer id (unique within the entire client session).
|
|
1249
|
+
// Useful for temporary DOM ids.
|
|
1250
|
+
var idCounter = 0;
|
|
1251
|
+
_.uniqueId = function(prefix) {
|
|
1252
|
+
var id = ++idCounter + '';
|
|
1253
|
+
return prefix ? prefix + id : id;
|
|
1254
|
+
};
|
|
1255
|
+
|
|
1256
|
+
// By default, Underscore uses ERB-style template delimiters, change the
|
|
1257
|
+
// following template settings to use alternative delimiters.
|
|
1258
|
+
_.templateSettings = {
|
|
1259
|
+
evaluate : /<%([\s\S]+?)%>/g,
|
|
1260
|
+
interpolate : /<%=([\s\S]+?)%>/g,
|
|
1261
|
+
escape : /<%-([\s\S]+?)%>/g
|
|
1262
|
+
};
|
|
1263
|
+
|
|
1264
|
+
// When customizing `templateSettings`, if you don't want to define an
|
|
1265
|
+
// interpolation, evaluation or escaping regex, we need one that is
|
|
1266
|
+
// guaranteed not to match.
|
|
1267
|
+
var noMatch = /(.)^/;
|
|
1268
|
+
|
|
1269
|
+
// Certain characters need to be escaped so that they can be put into a
|
|
1270
|
+
// string literal.
|
|
1271
|
+
var escapes = {
|
|
1272
|
+
"'": "'",
|
|
1273
|
+
'\\': '\\',
|
|
1274
|
+
'\r': 'r',
|
|
1275
|
+
'\n': 'n',
|
|
1276
|
+
'\u2028': 'u2028',
|
|
1277
|
+
'\u2029': 'u2029'
|
|
1278
|
+
};
|
|
1279
|
+
|
|
1280
|
+
var escaper = /\\|'|\r|\n|\u2028|\u2029/g;
|
|
1281
|
+
|
|
1282
|
+
var escapeChar = function(match) {
|
|
1283
|
+
return '\\' + escapes[match];
|
|
1284
|
+
};
|
|
1285
|
+
|
|
1286
|
+
// JavaScript micro-templating, similar to John Resig's implementation.
|
|
1287
|
+
// Underscore templating handles arbitrary delimiters, preserves whitespace,
|
|
1288
|
+
// and correctly escapes quotes within interpolated code.
|
|
1289
|
+
// NB: `oldSettings` only exists for backwards compatibility.
|
|
1290
|
+
_.template = function(text, settings, oldSettings) {
|
|
1291
|
+
if (!settings && oldSettings) settings = oldSettings;
|
|
1292
|
+
settings = _.defaults({}, settings, _.templateSettings);
|
|
1293
|
+
|
|
1294
|
+
// Combine delimiters into one regular expression via alternation.
|
|
1295
|
+
var matcher = RegExp([
|
|
1296
|
+
(settings.escape || noMatch).source,
|
|
1297
|
+
(settings.interpolate || noMatch).source,
|
|
1298
|
+
(settings.evaluate || noMatch).source
|
|
1299
|
+
].join('|') + '|$', 'g');
|
|
1300
|
+
|
|
1301
|
+
// Compile the template source, escaping string literals appropriately.
|
|
1302
|
+
var index = 0;
|
|
1303
|
+
var source = "__p+='";
|
|
1304
|
+
text.replace(matcher, function(match, escape, interpolate, evaluate, offset) {
|
|
1305
|
+
source += text.slice(index, offset).replace(escaper, escapeChar);
|
|
1306
|
+
index = offset + match.length;
|
|
1307
|
+
|
|
1308
|
+
if (escape) {
|
|
1309
|
+
source += "'+\n((__t=(" + escape + "))==null?'':_.escape(__t))+\n'";
|
|
1310
|
+
} else if (interpolate) {
|
|
1311
|
+
source += "'+\n((__t=(" + interpolate + "))==null?'':__t)+\n'";
|
|
1312
|
+
} else if (evaluate) {
|
|
1313
|
+
source += "';\n" + evaluate + "\n__p+='";
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
// Adobe VMs need the match returned to produce the correct offest.
|
|
1317
|
+
return match;
|
|
1318
|
+
});
|
|
1319
|
+
source += "';\n";
|
|
1320
|
+
|
|
1321
|
+
// If a variable is not specified, place data values in local scope.
|
|
1322
|
+
if (!settings.variable) source = 'with(obj||{}){\n' + source + '}\n';
|
|
1323
|
+
|
|
1324
|
+
source = "var __t,__p='',__j=Array.prototype.join," +
|
|
1325
|
+
"print=function(){__p+=__j.call(arguments,'');};\n" +
|
|
1326
|
+
source + 'return __p;\n';
|
|
1327
|
+
|
|
1328
|
+
try {
|
|
1329
|
+
var render = new Function(settings.variable || 'obj', '_', source);
|
|
1330
|
+
} catch (e) {
|
|
1331
|
+
e.source = source;
|
|
1332
|
+
throw e;
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
var template = function(data) {
|
|
1336
|
+
return render.call(this, data, _);
|
|
1337
|
+
};
|
|
1338
|
+
|
|
1339
|
+
// Provide the compiled source as a convenience for precompilation.
|
|
1340
|
+
var argument = settings.variable || 'obj';
|
|
1341
|
+
template.source = 'function(' + argument + '){\n' + source + '}';
|
|
1342
|
+
|
|
1343
|
+
return template;
|
|
1344
|
+
};
|
|
1345
|
+
|
|
1346
|
+
// Add a "chain" function. Start chaining a wrapped Underscore object.
|
|
1347
|
+
_.chain = function(obj) {
|
|
1348
|
+
var instance = _(obj);
|
|
1349
|
+
instance._chain = true;
|
|
1350
|
+
return instance;
|
|
1351
|
+
};
|
|
1352
|
+
|
|
1353
|
+
// OOP
|
|
1354
|
+
// ---------------
|
|
1355
|
+
// If Underscore is called as a function, it returns a wrapped object that
|
|
1356
|
+
// can be used OO-style. This wrapper holds altered versions of all the
|
|
1357
|
+
// underscore functions. Wrapped objects may be chained.
|
|
1358
|
+
|
|
1359
|
+
// Helper function to continue chaining intermediate results.
|
|
1360
|
+
var result = function(obj) {
|
|
1361
|
+
return this._chain ? _(obj).chain() : obj;
|
|
1362
|
+
};
|
|
1363
|
+
|
|
1364
|
+
// Add your own custom functions to the Underscore object.
|
|
1365
|
+
_.mixin = function(obj) {
|
|
1366
|
+
_.each(_.functions(obj), function(name) {
|
|
1367
|
+
var func = _[name] = obj[name];
|
|
1368
|
+
_.prototype[name] = function() {
|
|
1369
|
+
var args = [this._wrapped];
|
|
1370
|
+
push.apply(args, arguments);
|
|
1371
|
+
return result.call(this, func.apply(_, args));
|
|
1372
|
+
};
|
|
1373
|
+
});
|
|
1374
|
+
};
|
|
1375
|
+
|
|
1376
|
+
// Add all of the Underscore functions to the wrapper object.
|
|
1377
|
+
_.mixin(_);
|
|
1378
|
+
|
|
1379
|
+
// Add all mutator Array functions to the wrapper.
|
|
1380
|
+
_.each(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) {
|
|
1381
|
+
var method = ArrayProto[name];
|
|
1382
|
+
_.prototype[name] = function() {
|
|
1383
|
+
var obj = this._wrapped;
|
|
1384
|
+
method.apply(obj, arguments);
|
|
1385
|
+
if ((name === 'shift' || name === 'splice') && obj.length === 0) delete obj[0];
|
|
1386
|
+
return result.call(this, obj);
|
|
1387
|
+
};
|
|
1388
|
+
});
|
|
1389
|
+
|
|
1390
|
+
// Add all accessor Array functions to the wrapper.
|
|
1391
|
+
_.each(['concat', 'join', 'slice'], function(name) {
|
|
1392
|
+
var method = ArrayProto[name];
|
|
1393
|
+
_.prototype[name] = function() {
|
|
1394
|
+
return result.call(this, method.apply(this._wrapped, arguments));
|
|
1395
|
+
};
|
|
1396
|
+
});
|
|
1397
|
+
|
|
1398
|
+
// Extracts the result from a wrapped and chained object.
|
|
1399
|
+
_.prototype.value = function() {
|
|
1400
|
+
return this._wrapped;
|
|
1401
|
+
};
|
|
1402
|
+
|
|
1403
|
+
// AMD registration happens at the end for compatibility with AMD loaders
|
|
1404
|
+
// that may not enforce next-turn semantics on modules. Even though general
|
|
1405
|
+
// practice for AMD registration is to be anonymous, underscore registers
|
|
1406
|
+
// as a named module because, like jQuery, it is a base library that is
|
|
1407
|
+
// popular enough to be bundled in a third party lib, but not be part of
|
|
1408
|
+
// an AMD load request. Those cases could generate an error when an
|
|
1409
|
+
// anonymous define() is called outside of a loader request.
|
|
1410
|
+
if (typeof define === 'function' && define.amd) {
|
|
1411
|
+
define('underscore', [], function() {
|
|
1412
|
+
return _;
|
|
1413
|
+
});
|
|
1414
|
+
}
|
|
1415
|
+
}.call(this));
|