@candrewsintegralblue/snyk
Version:
snyk library and cli utility
2,260 lines (2,062 loc) • 2.48 MB
JavaScript
exports.id = 76;
exports.ids = [76];
exports.modules = {
/***/ 54916:
/***/ ((__unused_webpack_module, exports) => {
exports.file = `# Write glob rules for ignored files.
# Check syntax on https://deepcode.freshdesk.com/support/solutions/articles/60000531055-how-can-i-ignore-files-or-directories-
# Check examples on https://github.com/github/gitignore
`;
/***/ }),
/***/ 78105:
/***/ ((__unused_webpack_module, exports) => {
exports.file = `# Write glob rules for ignored files.
# Check syntax on https://deepcode.freshdesk.com/support/solutions/articles/60000531055-how-can-i-ignore-files-or-directories-
# Check examples on https://github.com/github/gitignore
# Hidden directories
.*/
# Julia
deps/downloads/
deps/usr/
docs/build/
docs/site/
# CakePHP
/vendor/*
/tmp/cache/models/*
!/tmp/cache/models/empty
/tmp/cache/persistent/*
!/tmp/cache/persistent/empty
/tmp/cache/views/*
!/tmp/cache/views/empty
/tmp/sessions/*
!/tmp/sessions/empty
/tmp/tests/*
!/tmp/tests/empty
/logs/*
!/logs/empty
/app/tmp/*
/vendors/*
# KiCad
*~
_autosave-*
fp-info-cache
# Dart
build/
doc/api/
# PlayFramework
bin/
/db
/lib/
/logs/
/modules
/project/project
/project/target
/target
tmp/
test-result
/dist/
# Zephir
ext/build/
ext/modules/
ext/Makefile*
ext/config*
ext/autom4te*
ext/install-sh
ext/missing
ext/mkinstalldirs
ext/libtool
# RhodesRhomobile
rholog-*
sim-*
bin/libs
bin/RhoBundle
bin/tmp
bin/target
# AppEngine
appengine-generated/
# Textpattern
rpc/
sites/site*/admin/
sites/site*/private/
sites/site*/public/admin/
sites/site*/public/setup/
sites/site*/public/theme/
textpattern/
# ExpressionEngine
images/avatars/
images/captchas/
images/smileys/
images/member_photos/
images/signature_attachments/
images/pm_attachments/
sized/
thumbs/
_thumbs/
*/expressionengine/cache/*
# CMake
CMakeFiles
CMakeScripts
Testing
Makefile
_deps
# Qt
Makefile*
*build-*
# Yeoman
node_modules/
bower_components/
build/
dist/
# ExtJs
build/
ext/
# R
/*.Rcheck/
*_cache/
/cache/
docs/
po/*~
# Python
__pycache__/
build/
develop-eggs/
dist/
downloads/
eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
MANIFEST
htmlcov/
cover/
instance/
docs/_build/
target/
profile_default/
__pypackages__/
celerybeat-schedule
env/
venv/
ENV/
env.bak/
venv.bak/
/site
cython_debug/
# Magento
/media/*
!/media/customer
/media/customer/*
!/media/dhl
/media/dhl/*
!/media/downloadable
/media/downloadable/*
!/media/xmlconnect
/media/xmlconnect/*
!/media/xmlconnect/custom
/media/xmlconnect/custom/*
!/media/xmlconnect/original
/media/xmlconnect/original/*
!/media/xmlconnect/system
/media/xmlconnect/system/*
/var/*
!/var/package
/var/package/*
# CodeIgniter
*/config/development
*/cache/*
application/logs/*
/vendor/
# Haskell
dist
dist-*
cabal-dev
# ArchLinuxPackages
pkg/
# Elm
elm-stuff
repl-temp-*
# Lithium
libraries/*
resources/tmp/*
# Erlang
rel/example_project
deps
_build/
_checkouts/
# ForceDotCom
Referenced Packages
# Plone
bin/
build/
develop-eggs/
downloads/
eggs/
fake-eggs/
parts/
dist/
var/
# AppceleratorTitanium
build/
# ChefCookbook
/cookbooks
bin/*
# Objective-C
xcuserdata/
build/
DerivedData/
Carthage/Build/
fastlane/test_output
iOSInjectionProject/
# Opa
_build
_tracks
opa-debug-js
# Smalltalk
/package-cache
/play-cache
/play-stash
/github-cache
# SeamGen
/bootstrap/data
/bootstrap/tmp
/classes/
/dist/
/exploded-archives/
/test-build/
/test-output/
/test-report/
/target/
# Xilinx
*_synth_*
*/*/bd/*/hdl
*/*/*/bd/*/hdl
*/*/bd/*/ip/*/*/
*/*/*/bd/*/ip/*/*/
hw_handoff
ipshared
# Strapi
Icon
*~
$RECYCLE.BIN/
*#
nbproject
lib-cov
pids
logs
results
build
node_modules
testApp
coverage
cypress/screenshots
cypress/videos
dist
packages/strapi-generate-new/files/public/
# Snap
parts/
prime/
stage/
# Logtalk
lgt_tmp/
logtalk_tester_logs/
logtalk_doclet_logs/
# SPFx
logs
node_modules
dist
lib
solution
temp
coverage
bin
obj
# Vue
docs/_book
test/
# NWjs
locales/
pnacl/
# Cordova
/platforms
# Bazel
/bazel-*
# AltiumDesigner
History
__Previews
Project\ Logs*
Project\ Outputs*
# ThinkPHP
/Application/Runtime/
# Jigsaw
build_*
# Bitrix
/bitrix/*
!/bitrix/templates
!/bitrix/components
/bitrix/components/bitrix
!/bitrix/gadgets
/bitrix/gadgets/bitrix
!/bitrix/php_interface/
/upload/
# CodeSniffer
/wpcs/*
# Pimcore
/pimcore
/website/var/assets/*
/website/var/backup/*
/website/var/cache/*
/website/var/classes/Object*
!/website/var/classes/objectbricks
/website/var/config/Geo*
/website/var/config/object/*
/website/var/config/portal/*
/website/var/config/sqlreport/*
/website/var/email/*
/website/var/recyclebin/*
/website/var/search/*
/website/var/system/*
/website/var/tmp/*
/website/var/versions/asset/*
/website/var/versions/document/*
/website/var/versions/object/*
/website/var/user-image/*
# Magento1
/media/*
!/media/customer
/media/customer/*
!/media/dhl
/media/dhl/*
!/media/downloadable
/media/downloadable/*
!/media/xmlconnect
/media/xmlconnect/*
!/media/xmlconnect/custom
/media/xmlconnect/custom/*
!/media/xmlconnect/original
/media/xmlconnect/original/*
!/media/xmlconnect/system
/media/xmlconnect/system/*
/var/*
!/var/package
/var/package/*
# Magento2
/sitemap
/pub/sitemap
/app/config_sandbox
/app/code/Magento/TestModule*
/pub/media/attribute/*
/pub/media/analytics/*
/pub/media/catalog/*
/pub/media/customer/*
/pub/media/downloadable/*
/pub/media/favicon/*
/pub/media/import/*
/pub/media/logo/*
/pub/media/theme/*
/pub/media/theme_customization/*
/pub/media/wysiwyg/*
/pub/media/tmp/*
/pub/media/captcha/*
/pub/static/*
/var/*
/vendor/*
/generated/*
# Drupal7
files/
sites/*/files
sites/*/private
sites/*/translations
/includes
/misc
/modules
/profiles
/scripts
/themes
# InforCMS
[Mm]odel/[Dd]eployment
!Model/Portal/*/SupportFiles/[Bb]in/
!Model/Portal/PortalTemplates/*/SupportFiles/[Bb]in
# Kentico
!CMS/CMSAdminControls/*/
!CMS/CMSModules/System/*/
!CMS/App_Data/CIRepository/**
CMS/App_Data/AzureCache
CMS/App_Data/AzureTemp
CMS/App_Data/CMSTemp
CMS/App_Data/Persistent
CMS/CMSSiteUtils/Export
CMS/CMSSiteUtils/Import
CMS/App_Data/CMSModules/SmartSearch/**
!CMS/App_Data/CMSModules/SmartSearch/*/
!CMS/App_Data/CMSModules/SmartSearch/_StopWords/**
!CMS/App_Data/CMSModules/SmartSearch/_Synonyms/**
CMS/App_Data/DancingGoat
CMS/App_Data/Templates/CommunitySite
CMS/App_Data/Templates/CorporateSite
CMS/App_Data/Templates/DancingGoat
CMS/App_Data/Templates/EcommerceSite
CMS/App_Data/Templates/IntranetPortal
CMS/App_Data/Templates/PersonalSite
CMS/App_Themes/CommunitySite
CMS/App_Themes/CorporateSite
CMS/App_Themes/EcommerceSite
CMS/App_Themes/IntranetPortal*
CMS/App_Themes/PersonalSite
CMS/CMSTemplates/CorporateSite
CMS/CommunitySite
CMS/CorporateSite
CMS/DancingGoat
CMS/EcommerceSite
CMS/IntranetPortal
CMS/PersonalSite
# ROS2
install/
log/
build/
qtcreator-*
*~
COLCON_IGNORE
AMENT_IGNORE
# Splunk
local
# Racket
compiled/
# JupyterNotebooks
profile_default/
# Nikola
cache/
output/
# Red
quick-test/runnable/
system/tests/source/units/auto-tests/
tests/source/units/auto-tests/
# AtmelStudio
[Dd]ebug/
[Rr]elease/
# IAR_EWARM
EWARM/**/Obj
EWARM/**/List
EWARM/**/Exe
EWARM/settings
# esp-idf
build/
sdkconfig
# Phoenix
/tmp
/node_modules
/assets/node_modules
/priv/static/
/installer/_build
/installer/tmp
/installer/doc
/installer/deps
# JBoss4
/server/all/data
/server/all/log
/server/all/tmp
/server/all/work
/server/default/data
/server/default/log
/server/default/tmp
/server/default/work
/server/minimal/data
/server/minimal/log
/server/minimal/tmp
/server/minimal/work
# JBoss6
/server/all/data
/server/all/log
/server/all/tmp
/server/all/work
/server/default/data
/server/default/log
/server/default/tmp
/server/default/work
/server/minimal/data
/server/minimal/log
/server/minimal/tmp
/server/minimal/work
/server/jbossweb-standalone/data
/server/jbossweb-standalone/log
/server/jbossweb-standalone/tmp
/server/jbossweb-standalone/work
/server/standard/data
/server/standard/log
/server/standard/tmp
/server/standard/work
# Hugo
/public/
/resources/_gen/
# Puppet
pkg/*
spec/fixtures/*
coverage/*
vendor/*
# Kotlin
hs_err_pid*
# Composer
/vendor/
# Android
bin/
gen/
out/
build/
proguard/
captures/
freeline/
fastlane/screenshots
fastlane/test_output
lint/intermediates/
lint/generated/
lint/outputs/
lint/tmp/
# Nim
nimcache/
nimblecache/
htmldocs/
# Actionscript
bin-debug/
bin-release/
[Oo]bj/
[Bb]in/
# Maven
target/
# Agda
MAlonzo/**
# Unity
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/[Ll]ogs/
/[Uu]ser[Ss]ettings/
/[Mm]emoryCaptures/
/[Aa]ssets/Plugins/Editor/JetBrains*
ExportedObj/
/[Aa]ssets/[Ss]treamingAssets/aa/*
# GWT
war/gwt_bree/
gwt-unitCache/
war/WEB-INF/deploy/
war/WEB-INF/classes/
www-test/
# VirtualEnv
[Bb]in
[Ii]nclude
[Ll]ib
[Ll]ib64
[Ll]ocal
[Ss]cripts
# SBT
dist/*
target/
lib_managed/
project/boot/
project/plugins/project/
# PSoCCreator
Debug/
Release/
Export/
*/codegentemp
*/Generated_Source
# TextMate
tmtags
# MonoDevelop
test-results/
# SublimeText
Package Control.cache/
Package Control.ca-certs/
# Dreamweaver
_notes
_compareTemp
configs/
# NetBeans
**/nbproject/private/
build/
nbbuild/
dist/
nbdist/
# Windows
$RECYCLE.BIN/
# MATLAB
helpsearch*/
slprj/
sccprj/
codegen/
octave-workspace
# Octave
helpsearch*/
slprj/
sccprj/
codegen/
octave-workspace
# FlexBuilder
bin/
bin-debug/
bin-release/
# Xcode
xcuserdata/
build/
DerivedData/
# Lazarus
backup/
lib/
*.app/
# CVS
/CVS/*
**/CVS/*
# Eclipse
bin/
tmp/
# Momentics
x86/
arm/
arm-p/
# Linux
*~
# Virtuoso
lvsRunDir/*
drcRunDir/*
# Emacs
*~
\#*\#
auto-save-list
tramp
*_archive
/eshell/history
/eshell/lastdir
/elpa/
/auto/
dist/
/server/
# EiffelStudio
EIFGENs
# macOS
Icon
Network Trash Folder
Temporary Items
# XilinxISE
iseconfig/
xlnx_auto_0_xdb/
xst/
_ngo/
_xmsgs/
# CodeKit
/min
# SynopsysVCS
simv
simv.daidir/
simv.db.dir/
simv.vdb/
urgReport/
DVEfiles/
# Tags
TAGS
!TAGS/
tags
!tags/
GTAGS
GRTAGS
GPATH
GSYMS
# ModelSim
[_@]*
wlf*
cov*/
transcript*
# JetBrains
cmake-build-*/
out/
# WebMethods
**/IntegrationServer/datastore/
**/IntegrationServer/db/
**/IntegrationServer/DocumentStore/
**/IntegrationServer/lib/
**/IntegrationServer/logs/
**/IntegrationServer/replicate/
**/IntegrationServer/sdk/
**/IntegrationServer/support/
**/IntegrationServer/update/
**/IntegrationServer/userFtpRoot/
**/IntegrationServer/web/
**/IntegrationServer/WmRepository4/
**/IntegrationServer/XAStore/
**/IntegrationServer/packages/Wm*/
# Vim
*~
tags
# Calabash
rerun/
reports/
screenshots/
test-servers/
vendor
# JDeveloper
temp/
classes/
deploy/
javadoc/
# Drupal
/sites/*/files
/sites/*/public
/sites/*/private
/sites/*/files-public
/sites/*/files-private
/sites/*/translations
/sites/*/tmp
/sites/*/cache
/sites/simpletest
/core
/vendor
# UnrealEngine
Binaries/*
Plugins/*/Binaries/*
Build/*
!Build/*/
Build/*/**
Saved/*
Intermediate/*
Plugins/*/Intermediate/*
DerivedDataCache/*
# Symfony
/app/cache/*
/app/logs/*
/app/spool/*
/var/cache/*
/var/logs/*
/var/sessions/*
/var/log/*
/bin/*
!bin/console
!bin/symfony_requirements
/vendor/
/web/bundles/
/web/uploads/
/build/
**/Entity/*~
# JBoss
jboss/server/all/tmp/**/*
jboss/server/all/data/**/*
jboss/server/all/work/**/*
jboss/server/default/tmp/**/*
jboss/server/default/data/**/*
jboss/server/default/work/**/*
jboss/server/minimal/tmp/**/*
jboss/server/minimal/data/**/*
jboss/server/minimal/work/**/*
# SugarCRM
/cache/*
/custom/history/
/custom/modulebuilder/
/custom/working/
/custom/modules/*/Ext/
/custom/application/Ext/
/upload/*
/upload_backup/
# Leiningen
/lib/
/classes/
/target/
/checkouts/
# OpenCart
download/
image/data/
image/cache/
system/cache/
system/logs/
system/storage/
vqmod/logs/*
vqmod/vqcache/*
# VVVV
bin/
# Gradle
**/build/
# FuelPHP
/fuel/vendor
/docs/
/fuel/app/logs/*/*/*
/fuel/app/cache/*/*
# Autotools
/ar-lib
/mdate-sh
/py-compile
/test-driver
/ylwrap
/compile
/configure
/depcomp
/install-sh
/missing
/stamp-h1
Makefile
# Delphi
__history/
__recovery/
modules/
# GitBook
node_modules
_book
# Prestashop
/cache/*
!/cache/push/activity
!/cache/push/trends
/download/*
/img/*
!/img/jquery-ui
!/img/scenes
/upload/*
/vendor/*
/docs/phpdoc-sf/
/admin-dev/autoupgrade/*
/admin-dev/backups/*
/admin-dev/import/*
/admin-dev/export/*
themes/*/cache/*
config/xml/*
config/themes/*
modules/*
override/*
themes/*/
!themes/classic
!themes/_core
!themes/_libraries
bower_components/
node_modules/
php-cs-fixer
translations/*
mails/*
!mails/themes/
!mails/_partials/
themes/default-bootstrap/lang/*
themes/default-bootstrap/mails/*
!themes/default-bootstrap/mails/en/
themes/default-bootstrap/modules/*/mails/*
!themes/default-bootstrap/modules/*/mails/en
/bin/
/app/Resources/translations/*
!/app/Resources/translations/default
/build/
/var/*
!/var/cache
/var/cache/*
!/var/logs
/var/logs/*
!/var/sessions
/var/sessions/*
/vendor/
/web/bundles/
# Xojo
Builds*
Debug*/Debug*\ Libs
# WordPress
!wp-content/
wp-content/*
!wp-content/mu-plugins/
!wp-content/plugins/
!wp-content/themes/
wp-content/themes/twenty*/
node_modules/
# ROS
devel/
logs/
build/
bin/
lib/
msg_gen/
srv_gen/
build_isolated/
devel_isolated/
/cfg/cpp/
qtcreator-*
/planning/cfg
/planning/docs
*~
CATKIN_IGNORE
# Scala
hs_err_pid*
# VisualStudio
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Ww][Ii][Nn]32/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
[Ll]ogs/
Generated\ Files/
[Tt]est[Rr]esult*/
[Dd]ebugPS/
[Rr]eleasePS/
BenchmarkDotNet.Artifacts/
artifacts/
_Chutzpah*
ipch/
$tf/
_ReSharper*/
_TeamCity*
_NCrunch_*
nCrunchTemp_*
AutoTest.Net/
[Ee]xpress/
DocProject/buildhelp/
DocProject/Help/Html2
DocProject/Help/html
publish/
PublishScripts/
**/[Pp]ackages/*
!**/[Pp]ackages/build/
csx/
ecf/
rcf/
AppPackages/
BundleArtifacts/
!?*.[Cc]ache/
ClientBin/
~$*
*~
Generated_Code/
_UpgradeReport_Files/
Backup*/
ServiceFabricBackup/
FakesAssemblies/
node_modules/
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.Server/GeneratedArtifacts
_Pvt_Extensions
paket-files/
__pycache__/
OpenCover/
ASALocalRun/
healthchecksdb
MigrationBackup/
# Qooxdoo
cache
cache-downloads
inspector
api
# Concrete5
error_log
files/cache/*
files/tmp/*
/application/files/*
/updates/*
# Grails
/web-app/WEB-INF/classes
/test/reports
/logs
/plugins
/web-app/plugins
/target
# Stella
obj/
# Processing
applet
out
# Rails
/public/system
/coverage/
/spec/tmp
/log/*
/tmp/*
/vendor/bundle
/vendor/assets/bower_components
node_modules/
/public/packs
/public/packs-test
/public/assets
/storage/*
/public/uploads
# PureScript
bower_components
node_modules
output
# Laravel
/vendor/
node_modules/
app/storage/
public/storage
public/hot
public_html/storage
public_html/hot
# TwinCAT3
_Boot/
_CompileInfo/
_Libraries/
# Elixir
/_build
/cover
/deps
/doc
# TurboGears2
data/*
dist
build
# Godot
data_*/
# Java
hs_err_pid*
# Swift
xcuserdata/
build/
DerivedData/
Carthage/Build/
Dependencies/
fastlane/test_output
iOSInjectionProject/
# Lilypond
*~
# Joomla
/administrator/cache/*
/administrator/components/com_actionlogs/*
/administrator/components/com_admin/*
/administrator/components/com_ajax/*
/administrator/components/com_associations/*
/administrator/components/com_banners/*
/administrator/components/com_cache/*
/administrator/components/com_categories/*
/administrator/components/com_checkin/*
/administrator/components/com_config/*
/administrator/components/com_contact/*
/administrator/components/com_content/*
/administrator/components/com_contenthistory/*
/administrator/components/com_cpanel/*
/administrator/components/com_fields/*
/administrator/components/com_finder/*
/administrator/components/com_installer/*
/administrator/components/com_joomlaupdate/*
/administrator/components/com_languages/*
/administrator/components/com_login/*
/administrator/components/com_media/*
/administrator/components/com_menus/*
/administrator/components/com_messages/*
/administrator/components/com_modules/*
/administrator/components/com_newsfeeds/*
/administrator/components/com_plugins/*
/administrator/components/com_postinstall/*
/administrator/components/com_privacy/*
/administrator/components/com_redirect/*
/administrator/components/com_search/*
/administrator/components/com_tags/*
/administrator/components/com_templates/*
/administrator/components/com_users/*
/administrator/help/*
/administrator/includes/*
/administrator/language/overrides/*
/administrator/logs/*
/administrator/modules/mod_custom/*
/administrator/modules/mod_feed/*
/administrator/modules/mod_latest/*
/administrator/modules/mod_latestactions/*
/administrator/modules/mod_logged/*
/administrator/modules/mod_login/*
/administrator/modules/mod_menu/*
/administrator/modules/mod_multilangstatus/*
/administrator/modules/mod_online/*
/administrator/modules/mod_popular/*
/administrator/modules/mod_privacy_dashboard/*
/administrator/modules/mod_quickicon/*
/administrator/modules/mod_sampledata/*
/administrator/modules/mod_stats_admin/*
/administrator/modules/mod_status/*
/administrator/modules/mod_submenu/*
/administrator/modules/mod_title/*
/administrator/modules/mod_toolbar/*
/administrator/modules/mod_unread/*
/administrator/modules/mod_version/*
/administrator/templates/hathor/*
/administrator/templates/isis/*
/administrator/templates/system/*
/bin/*
/cache/*
/cli/*
/components/com_ajax/*
/components/com_banners/*
/components/com_config/*
/components/com_contact/*
/components/com_content/*
/components/com_contenthistory/*
/components/com_fields/*
/components/com_finder/*
/components/com_mailto/*
/components/com_media/*
/components/com_menus/*
/components/com_modules/*
/components/com_newsfeeds/*
/components/com_privacy/*
/components/com_search/*
/components/com_tags/*
/components/com_users/*
/components/com_wrapper/*
/images/banners/*
/images/headers/*
/images/sampledata/*
/images/joomla*
/includes/*
/installation/*
/language/overrides/*
/layouts/joomla/*
/layouts/libraries/*
/layouts/plugins/*
/libraries/cms/*
/libraries/fof/*
/libraries/idna_convert/*
/libraries/joomla/*
/libraries/legacy/*
/libraries/php-encryption/*
/libraries/phpass/*
/libraries/phpmailer/*
/libraries/phputf8/*
/libraries/simplepie/*
/libraries/vendor/*
/media/cms/*
/media/com_associations/*
/media/com_contact/*
/media/com_content/*
/media/com_contenthistory/*
/media/com_fields/*
/media/com_finder/*
/media/com_joomlaupdate/*
/media/com_menus/*
/media/com_modules/*
/media/com_wrapper/*
/media/contacts/*
/media/editors/*
/media/jui/*
/media/mailto/*
/media/media/*
/media/mod_languages/*
/media/mod_sampledata/*
/media/overrider/*
/media/plg_captcha_recaptcha/*
/media/plg_captcha_recaptcha_invisible/*
/media/plg_quickicon_extensionupdate/*
/media/plg_quickicon_joomlaupdate/*
/media/plg_quickicon_privacycheck/*
/media/plg_system_highlight/*
/media/plg_system_stats/*
/media/plg_twofactorauth_totp/*
/media/system/*
/modules/mod_articles_archive/*
/modules/mod_articles_categories/*
/modules/mod_articles_category/*
/modules/mod_articles_latest/*
/modules/mod_articles_news/*
/modules/mod_articles_popular/*
/modules/mod_banners/*
/modules/mod_breadcrumbs/*
/modules/mod_custom/*
/modules/mod_feed/*
/modules/mod_finder/*
/modules/mod_footer/*
/modules/mod_languages/*
/modules/mod_login/*
/modules/mod_menu/*
/modules/mod_random_image/*
/modules/mod_related_items/*
/modules/mod_search/*
/modules/mod_stats/*
/modules/mod_syndicate/*
/modules/mod_tags_popular/*
/modules/mod_tags_similar/*
/modules/mod_users_latest/*
/modules/mod_whosonline/*
/modules/mod_wrapper/*
/plugins/actionlog/joomla/*
/plugins/authentication/cookie/*
/plugins/authentication/example/*
/plugins/authentication/gmail/*
/plugins/authentication/joomla/*
/plugins/authentication/ldap/*
/plugins/captcha/recaptcha/*
/plugins/captcha/recaptcha_invisible/*
/plugins/content/confirmconsent/*
/plugins/content/contact/*
/plugins/content/emailcloak/*
/plugins/content/example/*
/plugins/content/fields/*
/plugins/content/finder/*
/plugins/content/geshi/*
/plugins/content/joomla/*
/plugins/content/loadmodule/*
/plugins/content/pagebreak/*
/plugins/content/pagenavigation/*
/plugins/content/vote/*
/plugins/editors/codemirror/*
/plugins/editors/none/*
/plugins/editors/tinymce/*
/plugins/editors-xtd/article/*
/plugins/editors-xtd/contact/*
/plugins/editors-xtd/fields/*
/plugins/editors-xtd/image/*
/plugins/editors-xtd/menu/*
/plugins/editors-xtd/module/*
/plugins/editors-xtd/pagebreak/*
/plugins/editors-xtd/readmore/*
/plugins/extension/example/*
/plugins/extension/joomla/*
/plugins/fields/calendar/*
/plugins/fields/checkboxes/*
/plugins/fields/color/*
/plugins/fields/editor/*
/plugins/fields/imagelist/*
/plugins/fields/integer/*
/plugins/fields/list/*
/plugins/fields/media/*
/plugins/fields/radio/*
/plugins/fields/repeatable/*
/plugins/fields/sql/*
/plugins/fields/text/*
/plugins/fields/textarea/*
/plugins/fields/url/*
/plugins/fields/user/*
/plugins/fields/usergrouplist/*
/plugins/finder/categories/*
/plugins/finder/contacts/*
/plugins/finder/content/*
/plugins/finder/newsfeeds/*
/plugins/finder/tags/*
/plugins/installer/folderinstaller/*
/plugins/installer/packageinstaller/*
/plugins/installer/urlinstaller/*
/plugins/privacy/actionlogs/*
/plugins/privacy/consents/*
/plugins/privacy/contact/*
/plugins/privacy/content/*
/plugins/privacy/message/*
/plugins/privacy/user/*
/plugins/quickicon/extensionupdate/*
/plugins/quickicon/joomlaupdate/*
/plugins/quickicon/phpversioncheck/*
/plugins/quickicon/privacycheck/*
/plugins/sampledata/blog/*
/plugins/search/categories/*
/plugins/search/contacts/*
/plugins/search/content/*
/plugins/search/newsfeeds/*
/plugins/search/tags/*
/plugins/search/weblinks/*
/plugins/system/actionlogs/*
/plugins/system/cache/*
/plugins/system/debug/*
/plugins/system/fields/*
/plugins/system/highlight/*
/plugins/system/languagecode/*
/plugins/system/languagefilter/*
/plugins/system/log/*
/plugins/system/logout/*
/plugins/system/logrotation/*
/plugins/system/p3p/*
/plugins/system/privacyconsent/*
/plugins/system/redirect/*
/plugins/system/remember/*
/plugins/system/sef/*
/plugins/system/sessiongc/*
/plugins/system/stats/*
/plugins/system/updatenotification/*
/plugins/twofactorauth/totp/*
/plugins/twofactorauth/yubikey/*
/plugins/user/contactcreator/*
/plugins/user/example/*
/plugins/user/joomla/*
/plugins/user/profile/*
/plugins/user/terms/*
/templates/beez3/*
/templates/protostar/*
/templates/system/*
/tmp/*
# SymphonyCMS
manifest/cache/
manifest/logs/
manifest/tmp/
symphony/
workspace/uploads/
# ZendFramework
vendor/
data/logs/
data/cache/
data/sessions/
data/tmp/
temp/
data/DoctrineORMModule/Proxy/
data/DoctrineORMModule/cache/
demos/
extras/documentation
# C
*.dSYM/
# Node
logs
pids
lib-cov
coverage
bower_components
build/Release
node_modules/
jspm_packages/
web_modules/
out
dist
# LemonStand
/config/*
/controllers/*
/init/*
/logs/*
/phproad/*
/temp/*
/uploaded/*
/installer_files/*
/modules/backend/*
/modules/blog/*
/modules/cms/*
/modules/core/*
/modules/session/*
/modules/shop/*
/modules/system/*
/modules/users/*
# Waf
waf-*-*/
waf3-*-*/
# TeX
latex.out/
*-gnuplottex-*
*-tikzDictionary
_minted*
sympy-plots-for-*.tex/
pythontex-files-*/
TSWLatexianTemp*
*~[0-9]*
# Rust
debug/
target/
# Yii
assets/*
protected/runtime/*
themes/classic/views/
# Mercury
Mercury/
# Scrivener
*/QuickLook/
# Clojure
/lib/
/classes/
/target/
/checkouts/
# Phalcon
/cache/
/config/development/
# Typo3
/fileadmin/user_upload/
/fileadmin/_temp_/
/fileadmin/_processed_/
/uploads/
/typo3conf/temp_CACHED*
/typo3conf/ENABLE_INSTALL_TOOL
/FIRST_INSTALL
/typo3
/Packages
/typo3temp/
# JENKINS_HOME
!/jobs
jobs/**
!jobs/**/
builds
indexing
jobs/**/*workspace
# MetaProgrammingSystem
classes_gen
source_gen
test_gen
# CraftCMS
/craft/storage/*
!/craft/storage/rebrand
# CFWheels
plugins/**/*
files
db/sql
javascripts/bundles
stylesheets/bundles
# OCaml
_build/
_opam/
# Ruby
/coverage/
/InstalledFiles
/pkg/
/spec/reports/
/test/tmp/
/test/version_tmp/
/tmp/
build/
build-iPhoneOS/
build-iPhoneSimulator/
/_yardoc/
/doc/
/rdoc/
/vendor/bundle
/lib/bundler/man/
# Perl
!Build/
cover_db/
_build/
Build
inc/
/blib/
/_eumm/
/Makefile
/pm_to_blib
# Elisp
*~
# Jekyll
_site/
# D
docs/
# Packer
packer_cache/
# Umbraco
**/App_Data/Logs/
**/App_Data/[Pp]review/
**/App_Data/TEMP/
**/App_Data/NuGetBackup/
!**/App_Data/[Pp]ackages/*
!**/[Uu]mbraco/[Dd]eveloper/[Pp]ackages/*
!**/[Uu]mbraco/[Vv]iews/[Pp]ackages/*
**/App_Data/cache/
# Kohana
application/cache/*
application/logs/*
# Nanoc
output/
tmp/nanoc/
`;
/***/ }),
/***/ 55086:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
const { file: DefaultDCIgnore } = __webpack_require__(78105);
const { file: CustomDCIgnore } = __webpack_require__(54916);
module.exports = {
DefaultDCIgnore,
CustomDCIgnore,
};
/***/ }),
/***/ 54151:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.analyzeScmProject = exports.extendAnalysis = exports.analyzeFolders = exports.analyzeBundle = void 0;
/* eslint-disable no-await-in-loop */
const lodash_omit_1 = __importDefault(__webpack_require__(76427));
const uuid_1 = __webpack_require__(96771);
const files_1 = __webpack_require__(32083);
const constants_1 = __webpack_require__(65765);
const http_1 = __webpack_require__(60776);
const bundles_1 = __webpack_require__(86639);
const report_1 = __webpack_require__(17608);
const emitter_1 = __webpack_require__(37544);
const sleep = (duration) => new Promise(resolve => setTimeout(resolve, duration));
function getConnectionOptions(connectionOptions) {
var _a;
return {
...connectionOptions,
// Ensure requestId is set.
requestId: (_a = connectionOptions.requestId) !== null && _a !== void 0 ? _a : uuid_1.v4(),
};
}
function getAnalysisContext(analysisContext) {
return analysisContext ? { analysisContext } : {};
}
async function pollAnalysis(options) {
let analysisResponse;
let analysisData;
emitter_1.emitter.analyseProgress({
status: http_1.AnalysisStatus.waiting,
progress: 0,
});
// eslint-disable-next-line no-constant-condition
while (true) {
analysisResponse = await http_1.getAnalysis(options);
if (analysisResponse.type === 'error') {
return analysisResponse;
}
analysisData = analysisResponse.value;
if (analysisData.status === http_1.AnalysisStatus.waiting ||
analysisData.status === http_1.AnalysisStatus.fetching ||
analysisData.status === http_1.AnalysisStatus.analyzing ||
analysisData.status === http_1.AnalysisStatus.done) {
// Report progress of fetching
emitter_1.emitter.analyseProgress(analysisData);
}
else if (analysisData.status === http_1.AnalysisStatus.complete) {
// Return data of analysis
return analysisResponse;
// deepcode ignore DuplicateIfBody: false positive it seems that interface is not taken into account
}
else if (analysisData.status === http_1.AnalysisStatus.failed) {
// Report failure of analysing
return analysisResponse;
}
await sleep(constants_1.POLLING_INTERVAL);
}
}
async function analyzeBundle(options) {
// Call remote bundle for analysis results and emit intermediate progress
const analysisData = await pollAnalysis(options);
if (analysisData.type === 'error') {
throw analysisData.error;
}
else if (analysisData.value.status === http_1.AnalysisStatus.failed) {
throw new Error('Analysis has failed');
}
return analysisData.value;
}
exports.analyzeBundle = analyzeBundle;
function normalizeResultFiles(files, baseDir) {
return Object.entries(files).reduce((obj, [path, positions]) => {
const filePath = files_1.resolveBundleFilePath(baseDir, path);
obj[filePath] = positions;
return obj;
}, {});
}
/**
* Perform a file-based analysis.
* Optionally with reporting of results to the platform.
*/
async function analyzeFolders(options) {
var _a, _b;
const connectionOptions = getConnectionOptions(options.connection);
const analysisContext = getAnalysisContext(options.analysisContext);
const fileBundle = await bundles_1.createBundleFromFolders({
...connectionOptions,
...options.fileOptions,
languages: options.languages,
});
if (fileBundle === null)
return null;
const config = {
bundleHash: fileBundle.bundleHash,
...connectionOptions,
...options.analysisOptions,
shard: files_1.calcHash(fileBundle.baseDir),
...analysisContext,
};
let analysisResults;
// Whether this is a report/result upload operation.
const isReport = (_b = (_a = options.reportOptions) === null || _a === void 0 ? void 0 : _a.enabled) !== null && _b !== void 0 ? _b : false;
let reportResults;
if (isReport && options.reportOptions) {
// Analyze and upload bundle results.
const reportRes = await report_1.reportBundle({
...config,
report: options.reportOptions,
});
analysisResults = reportRes.analysisResult;
reportResults = reportRes.uploadResult;
}
else {
// Analyze bundle.
analysisResults = await analyzeBundle(config);
}
if (analysisResults.type === 'legacy') {
// expand relative file names to absolute ones only for legacy results
analysisResults.files = normalizeResultFiles(analysisResults.files, fileBundle.baseDir);
}
return { fileBundle, analysisResults, reportResults, ...options };
}
exports.analyzeFolders = analyzeFolders;
function mergeBundleResults(oldAnalysisResults, newAnalysisResults, limitToFiles, removedFiles = [], baseDir) {
if (newAnalysisResults.type == 'sarif') {
return mergeSarifResults(oldAnalysisResults, newAnalysisResults, limitToFiles, removedFiles);
}
return mergeLegacyResults(oldAnalysisResults, newAnalysisResults, limitToFiles, removedFiles, baseDir);
}
function mergeSarifResults(oldAnalysisResults, newAnalysisResults, limitToFiles, removedFiles = []) {
// Start from the new analysis results
// For each finding of the old analysis,
// if it's location is not part of the limitToFiles or removedFiles (removedFiles should also be checked against condeFlow),
// append the finding to the new analysis and check if the rule must be added as well
const changedFiles = [...limitToFiles, ...removedFiles];
const sarifResults = (newAnalysisResults.sarif.runs[0].results || []).filter(res => {
var _a, _b, _c;
// TODO: This should not be necessary in theory but, in case of two identical files,
// Bundle Server returns the finding in both files even if limitToFiles only reports one
const loc = (_c = (_b = (_a = res.locations) === null || _a === void 0 ? void 0 : _a[0].physicalLocation) === null || _b === void 0 ? void 0 : _b.artifactLocation) === null || _c === void 0 ? void 0 : _c.uri;
return loc && changedFiles.includes(loc);
});
const sarifRules = newAnalysisResults.sarif.runs[0].tool.driver.rules || [];
const oldResults = oldAnalysisResults.sarif.runs[0].results || [];
for (const res of oldResults) {
// NOTE: Node 10 doesn't support the more readable .flatMap, so we need to use .reduce, but the behaviour would be the following:
// const locations: string[] = (res.locations || []).flatMap(
// loc => !!loc.physicalLocation?.artifactLocation?.uri ? [loc.physicalLocation.artifactLocation.uri] : []
// );
// const codeFlowLocations: string[] = (res.codeFlows || []).flatMap(
// cf => (cf.threadFlows || []).flatMap(
// tf => (tf.locations || []).flatMap(
// loc => !!loc.location?.physicalLocation?.artifactLocation?.uri ? [loc.location.physicalLocation.artifactLocation.uri] : []
// )
// )
// );
const locations = (res.locations || []).reduce((acc, loc) => {
var _a, _b;
if ((_b = (_a = loc.physicalLocation) === null || _a === void 0 ? void 0 : _a.artifactLocation) === null || _b === void 0 ? void 0 : _b.uri) {
acc.push(loc.physicalLocation.artifactLocation.uri);
}
return acc;
}, []);
const codeFlowLocations = (res.codeFlows || []).reduce((acc1, cf) => {
acc1.push(...(cf.threadFlows || []).reduce((acc2, tf) => {
acc2.push(...(tf.locations || []).reduce((acc3, loc) => {
var _a, _b, _c;
if ((_c = (_b = (_a = loc.location) === null || _a === void 0 ? void 0 : _a.physicalLocation) === null || _b === void 0 ? void 0 : _b.artifactLocation) === null || _c === void 0 ? void 0 : _c.uri) {
acc3.push(loc.location.physicalLocation.artifactLocation.uri);
}
return acc3;
}, []));
return acc2;
}, []));
return acc1;
}, []);
if (locations.some(loc => changedFiles.includes(loc)) || codeFlowLocations.some(loc => removedFiles.includes(loc)))
continue;
let ruleIndex = sarifRules.findIndex(rule => rule.id === res.ruleId);
if (ruleIndex === -1 &&
res.ruleIndex &&
oldAnalysisResults.sarif.runs[0].tool.driver.rules &&
oldAnalysisResults.sarif.runs[0].tool.driver.rules[res.ruleIndex]) {
const newLength = sarifRules.push(oldAnalysisResults.sarif.runs[0].tool.driver.rules[res.ruleIndex]);
ruleIndex = newLength - 1;
}
res.ruleIndex = ruleIndex;
sarifResults.push(res);
}
newAnalysisResults.sarif.runs[0].results = sarifResults;
newAnalysisResults.sarif.runs[0].tool.driver.rules = sarifRules;
return newAnalysisResults;
}
const moveSuggestionIndexes = (suggestionIndex, suggestions) => {
const entries = Object.entries(suggestions);
return entries.reduce((obj, [i, s]) => {
obj[`${parseInt(i, 10) + suggestionIndex + 1}`] = s;
return obj;
}, {});
};
function mergeLegacyResults(oldAnalysisResults, newAnalysisResults, limitToFiles, removedFiles = [], baseDir) {
// expand relative file names to absolute ones only for legacy results
newAnalysisResults.files = normalizeResultFiles(newAnalysisResults.files, baseDir);
// Determine max suggestion index in our data
const suggestionIndex = Math.max(...Object.keys(oldAnalysisResults.suggestions).map(i => parseInt(i, 10))) || -1;
// Addup all new suggestions' indexes
const newSuggestions = moveSuggestionIndexes(suggestionIndex, newAnalysisResults.suggestions);
const suggestions = { ...oldAnalysisResults.suggestions, ...newSuggestions };
const newFiles = Object.entries(newAnalysisResults.files).reduce((obj, [fn, s]) => {
obj[fn] = moveSuggestionIndexes(suggestionIndex, s);
return obj;
}, {});
// expand relative file names to absolute ones only for legacy results
const changedFiles = [...limitToFiles, ...removedFiles].map(path => files_1.resolveBundleFilePath(baseDir, path));
const files = {
...lodash_omit_1.default(oldAnalysisResults.files, changedFiles),
...newFiles,
};
return {
...newAnalysisResults,
files,
suggestions,
};
}
async function extendAnalysis(options) {
const { files, removedFiles } = await files_1.prepareExtendingBundle(options.fileBundle.baseDir, options.fileBundle.supportedFiles, options.fileBundle.fileIgnores, options.files, options.fileOptions.symlinksEnabled);
if (!files.length && !removedFiles.length) {
return null; // nothing to extend, just return null
}
// Extend remote bundle
const remoteBundle = await bundles_1.remoteBundleFactory({
...options.connection,
bundleHash: options.fileBundle.bundleHash,
baseDir: options.fileBundle.baseDir,
files,
removedFiles,
});
if (remoteBundle === null)
return null;
const fileBundle = {
...options.fileBundle,
...remoteBundle,
};
const limitToFiles = files.map(f => f.bundlePath);
let analysisResults = await analyzeBundle({
bundleHash: remoteBundle.bundleHash,
...options.connection,
...options.analysisOptions,
shard: files_1.calcHash(fileBundle.baseDir),
limitToFiles,
});
analysisResults = mergeBundleResults(options.analysisResults, analysisResults, limitToFiles, removedFiles, options.fileBundle.baseDir);
return { ...options, fileBundle, analysisResults };
}
exports.extendAnalysis = extendAnalysis;
/**
* Perform an SCM-based analysis for an existing project,
* with reporting of results to the platform.
*/
async function analyzeScmProject(options) {
const connectionOptions = getConnectionOptions(options.connection);
const analysisContext = getAnalysisContext(options.analysisContext);
const { analysisResult: analysisResults, uploadResult: reportResults } = await report_1.reportScm({
...connectionOptions,
...options.analysisOptions,
...options.reportOptions,
...analysisContext,
});
return { analysisResults, reportResults };
}
exports.analyzeScmProject = analyzeScmProject;
//# sourceMappingURL=analysis.js.map
/***/ }),
/***/ 86639:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.createBundleWithCustomFiles = exports.createBundleFromFolders = exports.getSupportedFiles = exports.remoteBundleFactory = exports.uploadRemoteBundle = void 0;
/* eslint-disable no-await-in-loop */
const lodash_pick_1 = __importDefault(__webpack_require__(25030));
const lodash_omit_1 = __importDefault(__webpack_require__(76427));
const p_map_1 = __importDefault(__webpack_require__(49503));
const files_1 = __webpack_require__(32083);
const http_1 = __webpack_require__(60776);
const constants_1 = __webpack_require__(65765);
const emitter_1 = __webpack_require__(37544);
async function* prepareRemoteBundle(options) {
let response;
let { bundleHash } = options;
let cumulativeProgress = 0;
emitter_1.emitter.createBundleProgress(cumulativeProgress, options.files.length);
for (const chunkedFiles of files_1.composeFilePayloads(options.files)) {
const apiParams = {
...lodash_pick_1.default(options, [
'baseURL',
'sessionToken',
'source',
'extraHeaders',
'removedFiles',
'requestId',
'org',
'orgId',
]),
files: chunkedFiles.reduce((d, f) => {
// deepcode ignore PrototypePollution: FP this is an internal code
d[f.bundlePath] = f.hash;
return d;
}, {}),
};
if (!bundleHash) {
// eslint-disable-next-line no-await-in-loop
response = await http_1.createBundle(apiParams);
}
else {
// eslint-disable-next-line no-await-in-loop
response = await http_1.extendBundle({ bundleHash, ...apiParams });
}
cumulativeProgress += chunkedFiles.length;
emitter_1.emitter.createBundleProgress(cumulativeProgress, options.files.length);
if (response.type === 'error') {
// TODO: process Error
yield response;
break;
}
bundleHash = response.value.bundleHash;
yield response;
}
}
/**
* Splits files in buckets and upload in parallel
* @param baseURL
* @param sessionToken
* @param remoteBundle
*/
async function uploadRemoteBundle(options) {
let uploadedFiles = 0;
emitter_1.emitter.uploadBundleProgress(0, options.files.length);
const apiParams = lodash_pick_1.default(options, [
'baseURL',
'sessionToken',
'source',
'bundleHash',
'requestId',
'org',
'orgId',
'extraHeaders',
]);
const uploadFileChunks = async (bucketFiles) => {
// Note: we specifically create __new__ isolated bundles here to faster files upload
const resp = await http_1.createBundle({
...apiParams,
files: bucketFiles.reduce((d, f) => {
d[f.bundlePath] = lodash_pick_1.default(f, ['hash', 'content']);
return d;
}, {}),
});
if (resp.type !== 'error') {
uploadedFiles += bucketFiles.length;
emitter_1.emitter.uploadBundleProgress(uploadedFiles, options.files.length);
}
};
const files = [];
for (const bucketFiles of files_1.composeFilePayloads(options.files)) {
files.push(bucketFiles);
}
await p_map_1.default(files, async (task) => await uploadFileChunks(task), {
concurrency: constants_1.UPLOAD_CONCURRENCY,
});
}
exports.uploadRemoteBundle = uploadRemoteBundle;
async function fullfillRemoteBundle(options) {
// Fulfill remote bundle by uploading only missing files (splitted in chunks)
// Check remove bundle to make sure no missing files left
let attempts = 0;
let { remoteBundle } = options;
const connectionOptions = lodash_pick_1.default(options, [
'baseURL',
'sessionToken',
'source',
'requestId',
'org',
'orgId',
'extraHeaders',
]);
while (remoteBundle.missingFiles.length && attempts < (options.maxAttempts || constants_1.MAX_UPLOAD_ATTEMPTS)) {
const missingFiles = await files_1.resolveBundleFiles(options.baseDir, remoteBundle.missingFiles);
await uploadRemoteBundle({
...connectionOptions,
bundleHash: remoteBundle.bundleHash,
files: missingFiles,
});
const bundleResponse = await http_1.checkBundle({ ...connectionOptions, bundleHash: remoteBundle.bundleHash });
if (bundleResponse.type === 'error') {
throw new Error('Failed to get remote bundle');
}
// eslint-disable-next-line no-param-reassign
remoteBundle = bundleResponse.value;
attempts += 1;
}
return remoteBundle;
}
async function remoteBundleFactory(options) {
let remoteBundle = null;
const baseOptions = lodash_pick_1.default(options, [
'baseURL',
'sessionToken',
'source',
'baseDir',
'requestId',
'org',
'orgId',
'extraHeaders',
]);
const bundleFactory = prepareRemoteBundle(lodash_omit_1.default(options, ['baseDir']));
for await (const response of bundleFactory) {
if (response.type === 'error') {
throw response.error;
}
remoteBundle = await fullfillRemoteBundle({ ...baseOptions, remoteBundle: response.value });
if (remoteBundle.missingFiles.length) {
throw new Error(`Failed to upload # files: ${remoteBundle.missingFiles.length}`);
}
}
return remoteBundle;
}
exports.remoteBundleFactory = remoteBundleFactory;
/**
* Get supported filters and test baseURL for correctness and availability
*
* @param baseURL
* @param source
* @returns
*/
async function getSupportedFiles(baseURL, source, requestId, languages, orgId, extraHeaders) {
emitter_1.emitter.supportedFilesLoaded(null);
const resp = await http_1.getFilters({
baseURL,
source,
orgId,
requestId,
attempts: constants_1.MAX_RETRY_ATTEMPTS,
extraHeaders: extraHeaders !== null && extraHeaders !== void 0 ? extraHeaders : {},
});
if (resp.type === 'error') {
throw resp.error;
}
const supportedFilesFromApi = resp.value;
//Given supported languages from 'registy'
if (languages) {
const supportedFiles = {
configFiles: supportedFilesFromApi.configFiles,
extensions: languages,
};
//For verification only
// Make sure we compare file extensions between results from `registry` and `deeproxy` without case sensitivity to avoid missing some of supported extensions.
const userSupportedExtensions = supportedFilesFromApi.extensions.map(e => e.toLowerCase());
supportedFiles.extensions = supportedFiles.extensions.filter(langExtension => userSupportedExtensions.includes(langExtension.toLowerCase()));
emitter_1.emitter.supportedFilesLoaded(supportedFiles);
return supportedFiles;
}
emitter_1.emitter.supportedFilesLoaded(supportedFilesFromApi);
return supportedFilesFromApi;
}
exports.getSupportedFiles = getSupportedFiles;
/**
* Creates a remote bundle and returns response from the bundle API
*
* @param {CreateBundleFromFoldersOptions} options
* @returns {Promise<FileBundle | null>}
*/
async function createBundleFromFolders(options) {
// Fetch supported files to save network traffic
const supportedFiles = await getSupportedFiles(options.baseURL, options.source, options.requestId, options.languages, options.orgId, options.extraHeaders);
// Collect files and create a remote bundle
return await createBundleWithCustomFiles(options, supportedFiles);
}
exports.createBundleFromFolders = createBundleFromFolders;
/**
* Creates a remote bundle and returns response from the bundle API
* This function is used to create a bundle with a custom list of supported file extensions
*
* @param {CreateBundleFromFoldersOptions} options
* @param {SupportedFiles} supportedFiles
* @returns {Promise<FileBundle | null>}
*/
async function createBundleWithCustomFiles(options, supportedFiles) {
// Scan for custom ignore rules
const filePolicies = await files_1.collectFilePolicies(options.paths, options.symlinksEnabled, options.defaultFileIgnores);
const baseDir = files_1.determineBaseDir(options.paths);
emitter_1.emitter.scanFilesProgress(0);
const bundleFiles = [];
const skippedOversizedFiles = [];
let totalFiles = 0;
const bundleFileCollector = files_1.collectBundleFiles({
...lodash_pick_1.default(options, ['paths', 'symlinksEnabled']),
baseDir,
filePolicies,
supportedFiles,
});
for await (const f of bundleFileCollector) {
typeof f == 'string' ? skippedOversizedFiles.push(f) : bundleFiles.push(f);
totalFiles += 1;
emitter_1.emitter.scanFilesProgress(totalFiles);
}
const bundleOptions = {
...lodash_pick_1.default(options, ['baseURL', 'sessionToken', 'source', 'requestId', 'org', 'orgId', 'extraHeaders']),
baseDir,
files: bundleFiles,
};
// Create remote bundle
if (!bundleFiles.length)
return null;
const remoteBundle = await remoteBundleFactory(bundleOptions);
if (remoteBundle === null)
return null;
return {
...remoteBundle,
baseDir,
supportedFiles,
fileIgnores: [...filePolicies.excludes, ...filePolicies.ignores],
skippedOversizedFiles,
};
}
exports.createBundleWithCustomFiles = createBundleWithCustomFiles;
//# sourceMappingURL=bundles.js.map
/***/ }),
/***/ 27234:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.readJSON = exports.Cache = void 0;
//This is our own implementation of flat-cache without the use of flattened as we do not need cicular JSON support
//and the executable for flattened was broken
const path_1 = __importDefault(__webpack_require__(71017));
const fs_1 = __importDefault(__webpack_require__(57147));
class Cache {
constructor(docId, cacheDir) {
this.visited = {};
this.persisted = {};
this.pathToFile = '';
this.pathToFile = cacheDir ? path_1.default.resolve(cacheDir, docId) : path_1.default.resolve(__dirname, '../.cache/', docId);
if (fs_1.default.existsSync(this.pathToFile)) {
this.persisted = tryParse(this.pathToFile, {});
}
}
save(noPrune = false) {
!noPrune && this.prune();
writeJSON(this.pathToFile, this.persisted);
}
getKey(key) {
this.visited[key] = true;
return this.persisted[key];
}
setKey(key, value) {
this.visited[key] = true;
this.persisted[key] = value;
}
prune() {
const obj = {};
const keys = Object.keys(this.visited);
// no keys visited for either get or set value
if (keys.length === 0) {
return;
}
keys.forEach(key => {
obj[key] = this.persisted[key];
});
this.visited = {};
this.persisted = obj;
}
}
exports.Cache = Cache;
function writeJSON(filePath, data) {
fs_1.default.mkdirSync(path_1.default.dirname(filePath), {
recursive: true,
});
fs_1.default.writeFileSync(filePath, JSON.stringify(data));
}
function tryParse(filePath, defaultValue) {
let result;
try {
result = readJSON(filePath);
}
catch (ex) {
result = defaultValue;
}
return result;
}
function readJSON(filePath) {
return JSON.parse(fs_1.default.readFileSync(filePath, {
encoding: 'utf8',
}));
}
exports.readJSON = readJSON;
//# sourceMappingURL=cache.js.map
/***/ }),
/***/ 65765:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
Object.defineProperty(exports, "__esModule", ({