Skip to content

Commit

Permalink
remove unused plugin, update package.json and lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
jaiminpanchal27 committed Feb 12, 2019
1 parent 387f46e commit 817927e
Show file tree
Hide file tree
Showing 5 changed files with 346 additions and 127 deletions.
4 changes: 2 additions & 2 deletions dist/creative.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/load-cookie.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>Document</title>
<script type="text/javascript">
// cookie-sync start
!function(n){var o={};function r(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}r.m=n,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,n){"use strict";var o,u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e){if(isNaN(e)||e<0)return 9007199254740991;return e}(parseInt(f("max_sync_count",window.location.search),10)),s=function(e){if(0===e||1===e)return e;console.log("Ignoring gdpr param, it should be 1 or 0")}(parseInt(f("gdpr",window.location.search),10)),i=function(e){if(e)return e;console.log("Ignoring gdpr_consent param, it should be a non empty value")}(f("gdpr_consent",window.location.search)),c=new RegExp(/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i);function d(e,t,n,o){var r,s,i;t&&c.test(t)?"image"===e||"redirect"===e?(console.log('Invoking image pixel user sync for bidder: "'+n+'"'),r=t,s=o,(i=new Image).addEventListener("load",s),i.addEventListener("error",s),i.src=r):("iframe"==e?console.log('Skipping iframe pixel user sync for bidder: "'+n+"\". This isn't implemented yet."):console.log('User sync type "'+e+'" not supported for bidder: "'+n+'"'),o()):(console.log('No valid sync url for bidder "'+n+'": '+t),o())}function f(e,t){var n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(t);return null===n?"":decodeURIComponent(n[1].replace(/\+/g," "))}!function(e,t,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};try{var r=void 0,s=o.method||(n?"POST":"GET"),i="object"===(void 0===t?"undefined":a(t))?t:{success:function(){console.log("xhr success")},error:function(e){console.log("xhr error",null,e)}};if("function"==typeof t&&(i.success=t),(r=new window.XMLHttpRequest).onreadystatechange=function(){if(4===r.readyState){var e=r.status;200<=e&&e<300||304===e?i.success(r.responseText,r):i.error(r.statusText,r)}},r.ontimeout=function(){console.log("xhr timeout after ",r.timeout,"ms")},"GET"===s&&n){var c=parseURL(e,o);u(c.search,n),e=formatURL(c)}r.open(s,e),r.timeout=3e3,o.withCredentials&&(r.withCredentials=!0),o.preflight&&r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.setRequestHeader("Content-Type",o.contentType||"text/plain"),"POST"===s&&n?r.send(n):r.send()}catch(e){console.log("xhr construction",e)}}("https://prebid.adnxs.com/pbs/v1/cookie_sync",function(e){var t=JSON.parse(e);"ok"!==t.status&&"no_cookie"!==t.status||t.bidder_status&&function e(t){if(0!==t.length){var n=t.pop();n.no_cookie?d(n.usersync.type,n.usersync.url,n.bidder,e.bind(null,t)):e(t)}}(t.bidder_status)},(o={limit:r},s&&(o.gdpr=s),i&&(o.gdpr_consent=i),JSON.stringify(o)),{withCredentials:!0})}]);
!function(n){var o={};function r(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}r.m=n,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,n){"use strict";var o,u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r={rubicon:"https://prebid-server.rubiconproject.com/cookie_sync"},i=function(e){if(e&&r.hasOwnProperty(e))return r[e];return"https://prebid.adnxs.com/pbs/v1/cookie_sync"}(p("endpoint",window.location.search)),s=function(e){if(isNaN(e)||e<0)return 9007199254740991;return e}(parseInt(p("max_sync_count",window.location.search),10)),c=function(e){if(0===e||1===e)return e;console.log("Ignoring gdpr param, it should be 1 or 0")}(parseInt(p("gdpr",window.location.search),10)),d=function(e){if(e)return e;console.log("Ignoring gdpr_consent param, it should be a non empty value")}(p("gdpr_consent",window.location.search)),f=new RegExp(/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i);function l(e,t,n,o){var r,i,s;t&&f.test(t)?"image"===e||"redirect"===e?(console.log('Invoking image pixel user sync for bidder: "'+n+'"'),r=t,i=o,(s=new Image).addEventListener("load",i),s.addEventListener("error",i),s.src=r):("iframe"==e?console.log('Skipping iframe pixel user sync for bidder: "'+n+"\". This isn't implemented yet."):console.log('User sync type "'+e+'" not supported for bidder: "'+n+'"'),o()):(console.log('No valid sync url for bidder "'+n+'": '+t),o())}function p(e,t){var n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(t);return null===n?"":decodeURIComponent(n[1].replace(/\+/g," "))}!function(e,t,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};try{var r=void 0,i=o.method||(n?"POST":"GET"),s="object"===(void 0===t?"undefined":a(t))?t:{success:function(){console.log("xhr success")},error:function(e){console.log("xhr error",null,e)}};if("function"==typeof t&&(s.success=t),(r=new window.XMLHttpRequest).onreadystatechange=function(){if(4===r.readyState){var e=r.status;200<=e&&e<300||304===e?s.success(r.responseText,r):s.error(r.statusText,r)}},r.ontimeout=function(){console.log("xhr timeout after ",r.timeout,"ms")},"GET"===i&&n){var c=parseURL(e,o);u(c.search,n),e=formatURL(c)}r.open(i,e),r.timeout=3e3,o.withCredentials&&(r.withCredentials=!0),o.preflight&&r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.setRequestHeader("Content-Type",o.contentType||"text/plain"),"POST"===i&&n?r.send(n):r.send()}catch(e){console.log("xhr construction",e)}}(i,function(e){var t=JSON.parse(e);"ok"!==t.status&&"no_cookie"!==t.status||t.bidder_status&&function e(t){if(0!==t.length){var n=t.pop();n.no_cookie?l(n.usersync.type,n.usersync.url,n.bidder,e.bind(null,t)):e(t)}}(t.bidder_status)},(o={limit:s},c&&(o.gdpr=c),d&&(o.gdpr_consent=d),JSON.stringify(o)),{withCredentials:!0})}]);
// end
</script>
</head>
Expand Down
Loading

0 comments on commit 817927e

Please sign in to comment.