-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prebid Core: Library support #8527
Changes from all commits
ab3b71c
98ce2ea
123c00e
b324d90
93b23f5
6c66760
4c48672
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* Returns the origin | ||
*/ | ||
export function getOrigin() { | ||
// IE10 does not have this property. https://gist.github.com/hbogs/7908703 | ||
if (!window.location.origin) { | ||
return window.location.protocol + '//' + window.location.hostname + (window.location.port ? ':' + window.location.port : ''); | ||
} else { | ||
return window.location.origin; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,85 @@ | ||
{ | ||
"userId": [ | ||
"33acrossIdSystem", | ||
"admixerIdSystem", | ||
"adtelligentIdSystem", | ||
"amxIdSystem", | ||
"britepoolIdSystem", | ||
"connectIdSystem", | ||
"cpexIdSystem", | ||
"criteoIdSystem", | ||
"dacIdSystem", | ||
"deepintentDpesIdSystem", | ||
"dmdIdSystem", | ||
"fabrickIdSystem", | ||
"hadronIdSystem", | ||
"id5IdSystem", | ||
"ftrackIdSystem", | ||
"identityLinkIdSystem", | ||
"idxIdSystem", | ||
"imuIdSystem", | ||
"intentIqIdSystem", | ||
"justIdSystem", | ||
"kinessoIdSystem", | ||
"liveIntentIdSystem", | ||
"lotamePanoramaIdSystem", | ||
"merkleIdSystem", | ||
"mwOpenLinkIdSystem", | ||
"naveggIdSystem", | ||
"netIdSystem", | ||
"novatiqIdSystem", | ||
"parrableIdSystem", | ||
"pubProvidedIdSystem", | ||
"publinkIdSystem", | ||
"quantcastIdSystem", | ||
"sharedIdSystem", | ||
"tapadIdSystem", | ||
"trustpidSystem", | ||
"uid2IdSystem", | ||
"unifiedIdSystem", | ||
"verizonMediaIdSystem", | ||
"zeotapIdPlusIdSystem", | ||
"adqueryIdSystem", | ||
"gravitoIdSystem" | ||
], | ||
"adpod": [ | ||
"freeWheelAdserverVideo", | ||
"dfpAdServerVideo" | ||
], | ||
"rtdModule": [ | ||
"airgridRtdProvider", | ||
"akamaiDapRtdProvider", | ||
"browsiRtdProvider", | ||
"dgkeywordRtdProvider", | ||
"geoedgeRtdProvider", | ||
"hadronRtdProvider", | ||
"haloRtdProvider", | ||
"iasRtdProvider", | ||
"jwplayerRtdProvider", | ||
"medianetRtdProvider", | ||
"optimeraRtdProvider", | ||
"permutiveRtdProvider", | ||
"reconciliationRtdProvider", | ||
"sirdataRtdProvider", | ||
"timeoutRtdProvider", | ||
"weboramaRtdProvider" | ||
], | ||
"fpdModule": [ | ||
"enrichmentFpdModule", | ||
"validationFpdModule" | ||
] | ||
"parentModules": { | ||
"userId": [ | ||
"33acrossIdSystem", | ||
"admixerIdSystem", | ||
"adtelligentIdSystem", | ||
"amxIdSystem", | ||
"britepoolIdSystem", | ||
"connectIdSystem", | ||
"cpexIdSystem", | ||
"criteoIdSystem", | ||
"dacIdSystem", | ||
"deepintentDpesIdSystem", | ||
"dmdIdSystem", | ||
"fabrickIdSystem", | ||
"hadronIdSystem", | ||
"id5IdSystem", | ||
"ftrackIdSystem", | ||
"identityLinkIdSystem", | ||
"idxIdSystem", | ||
"imuIdSystem", | ||
"intentIqIdSystem", | ||
"justIdSystem", | ||
"kinessoIdSystem", | ||
"liveIntentIdSystem", | ||
"lotamePanoramaIdSystem", | ||
"merkleIdSystem", | ||
"mwOpenLinkIdSystem", | ||
"naveggIdSystem", | ||
"netIdSystem", | ||
"novatiqIdSystem", | ||
"parrableIdSystem", | ||
"pubProvidedIdSystem", | ||
"publinkIdSystem", | ||
"quantcastIdSystem", | ||
"sharedIdSystem", | ||
"tapadIdSystem", | ||
"trustpidSystem", | ||
"uid2IdSystem", | ||
"unifiedIdSystem", | ||
"verizonMediaIdSystem", | ||
"zeotapIdPlusIdSystem", | ||
"adqueryIdSystem", | ||
"gravitoIdSystem" | ||
], | ||
"adpod": [ | ||
"freeWheelAdserverVideo", | ||
"dfpAdServerVideo" | ||
], | ||
"rtdModule": [ | ||
"airgridRtdProvider", | ||
"akamaiDapRtdProvider", | ||
"browsiRtdProvider", | ||
"dgkeywordRtdProvider", | ||
"geoedgeRtdProvider", | ||
"hadronRtdProvider", | ||
"haloRtdProvider", | ||
"iasRtdProvider", | ||
"jwplayerRtdProvider", | ||
"medianetRtdProvider", | ||
"optimeraRtdProvider", | ||
"permutiveRtdProvider", | ||
"reconciliationRtdProvider", | ||
"sirdataRtdProvider", | ||
"timeoutRtdProvider", | ||
"weboramaRtdProvider" | ||
], | ||
"fpdModule": [ | ||
"enrichmentFpdModule", | ||
"validationFpdModule" | ||
] | ||
}, | ||
"libraries": { | ||
"getOrigin": { | ||
"files": [ | ||
"./index.js" | ||
], | ||
"dependants": [ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. in principle we should be able to calculate these automatically by looking at We can easily add it later so no request for this PR, just noting it here in case you are familiar with that feature. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. makes sense, I'm happy to explore that in the near future when cycles free up There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 I could see this dependents list getting out of hand quickly. |
||
"ooloAnalyticsAdapter", | ||
"resetdigitalBidAdapter", | ||
"rtbhouseBidAdapter.js" | ||
] | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there any restrictions on library files? What happens if you want to import another file from the library file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I initially envisioned this, the maintainer of the library would determine which files are necessary.
If users were to find the library too heavy, the maintainer could either split the library (i.e by feature or by light vs advanced) or a competitor could offer a lighter library.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll probably need to cover this at a later date, with some best practices or boundaries