From 878955ed9268905a0d5691732de9550340547222 Mon Sep 17 00:00:00 2001 From: bretg Date: Thu, 22 Apr 2021 17:16:31 -0400 Subject: [PATCH 1/2] added installedModules --- dev-docs/publisher-api-reference.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/dev-docs/publisher-api-reference.md b/dev-docs/publisher-api-reference.md index 5b4903660c..ecdbdcdfbe 100644 --- a/dev-docs/publisher-api-reference.md +++ b/dev-docs/publisher-api-reference.md @@ -73,6 +73,7 @@ This page has documentation for the public API methods of Prebid.js. * [Troubleshooting your config](#setConfig-Troubleshooting-your-configuration) * [.setBidderConfig(options)](#module_pbjs.setBidderConfig) * [.getConfig([string])](#module_pbjs.getConfig) + * [installedModules](#installedModules) Functions added by optional modules @@ -2935,3 +2936,19 @@ If you know the adId, then be specific, otherwise Prebid will retrieve the winni | --- | --- | --- | | adUnitCode | `string` | (Optional) The ad unit code | | adId | `string` | (Optional) The id representing the ad we want to mark | + + + +### pbjs.installedModules + +When a Prebid.js package is built, the list of modules compiled +into it are placed in the pbjs.installedModules array. + +e.g. if this builds the package: +``` +gulp build --modules=a,b,c +``` + +pbjs.installedModules would have the value ['a','b','c']. + +If you happen to compile in all 400+ modules (not a good idea!), the value of pbjs.installedModules will be an empty array. From 0284beca333775065fb48058179c210631ef26fa Mon Sep 17 00:00:00 2001 From: bretg Date: Thu, 22 Apr 2021 17:19:33 -0400 Subject: [PATCH 2/2] missing dot --- dev-docs/publisher-api-reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-docs/publisher-api-reference.md b/dev-docs/publisher-api-reference.md index ecdbdcdfbe..c876d71303 100644 --- a/dev-docs/publisher-api-reference.md +++ b/dev-docs/publisher-api-reference.md @@ -73,7 +73,7 @@ This page has documentation for the public API methods of Prebid.js. * [Troubleshooting your config](#setConfig-Troubleshooting-your-configuration) * [.setBidderConfig(options)](#module_pbjs.setBidderConfig) * [.getConfig([string])](#module_pbjs.getConfig) - * [installedModules](#installedModules) + * [.installedModules](#installedModules) Functions added by optional modules