Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kasko/fe-webapp-product-loader-lib

Package Overview
Dependencies
Maintainers
10
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kasko/fe-webapp-product-loader-lib - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

2

package.json
{
"name": "@kasko/fe-webapp-product-loader-lib",
"shortname": "fe-webapp-product-loader-lib",
"version": "1.2.0",
"version": "1.2.1",
"description": "Kasko product loader",

@@ -6,0 +6,0 @@ "license": "UNLICENSED",

@@ -1,1 +0,1 @@

!function(t){var o={};function e(n){if(o[n])return o[n].exports;var i=o[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}e.m=t,e.c=o,e.d=function(t,o,n){e.o(t,o)||Object.defineProperty(t,o,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,o){if(1&o&&(t=e(t)),8&o)return t;if(4&o&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&o&&"string"!=typeof t)for(var i in t)e.d(n,i,function(o){return t[o]}.bind(null,i));return n},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},e.p="",e(e.s=0)}([function(t,o){function e(t,o){for(var e=0;e<o.length;e++){var n=o[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var n=function(){function t(){!function(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this,t),this.itemPreloaded=!1,this.initialized=!0,this.touchpoint=void 0,this.touchpointError=void 0,this.item=void 0,this.itemError=void 0,this.language=t.getLanguage(),this.loadTouchpoint()}var o,n,i;return o=t,i=[{key:"getLocationQueryParameters",value:function(){return window.location.search}},{key:"getLanguage",value:function(){var o=/language=([^&]+)/.exec(t.getLocationQueryParameters());return(o&&o[1]||"").toLowerCase()||window.kaskoConfig.language||"de"}},{key:"getParsedResponse",value:function(t){var o;try{o=JSON.parse(t)}catch(e){o=t}return o}}],(n=[{key:"loadTouchpoint",value:function(){var o=new XMLHttpRequest,e=this;o.onload=function(){var n=t.getParsedResponse(this.responseText);if(200!==this.status)return e.touchpointError={status:o.status,error:n,message:o.statusText},void("function"==typeof window.kaskoInitTouchpointError&&window.kaskoInitTouchpointError(e.touchpointError));if(e.touchpoint=n,"function"==typeof window.kaskoInitTouchpointSuccess&&window.kaskoInitTouchpointSuccess(e.touchpoint),e.touchpoint){var i=e.touchpoint.items;i&&1===i.length&&(e.loadItem(i[0].id),e.itemPreloaded=!0)}};var n=window.kaskoConfig.touchpointId,i="in_"===n.substring(0,3)?"integrations":"touchpoints";o.open("GET","".concat(window.kaskoConfig.feApiUrl,"/").concat(i,"/").concat(n,"?language=").concat(this.language,"&key=").concat(window.kaskoConfig.publicKey)),o.send()}},{key:"loadItem",value:function(o){var e=new XMLHttpRequest,n=this;e.onload=function(){var o=t.getParsedResponse(this.responseText);if(200!==this.status)return n.itemError={status:e.status,error:o,message:e.statusText},void("function"==typeof window.kaskoInitItemError&&window.kaskoInitItemError(n.itemError));n.item=o,n.loadItemSuccessCallback()};var i="ins_"===o.substring(0,4),r=i?"integrations":"touchpoints",a=i?"subproducts":"items";e.open("GET","".concat(window.kaskoConfig.feApiUrl,"/").concat(r,"/").concat(window.kaskoConfig.touchpointId,"/").concat(a,"/").concat(o,"?language=").concat(this.language,"&key=").concat(window.kaskoConfig.publicKey)),e.send()}},{key:"loadItemSuccessCallback",value:function(){"function"==typeof window.kaskoInitItemSuccess&&window.kaskoInitItemSuccess(this.item)}}])&&e(o.prototype,n),i&&e(o,i),t}();!window.KaskoProductLoader&&window.kaskoConfig&&(window.KaskoProductLoader=new n),t.exports=n}]);
!function(t){var o={};function e(n){if(o[n])return o[n].exports;var r=o[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}e.m=t,e.c=o,e.d=function(t,o,n){e.o(t,o)||Object.defineProperty(t,o,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,o){if(1&o&&(t=e(t)),8&o)return t;if(4&o&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&o&&"string"!=typeof t)for(var r in t)e.d(n,r,function(o){return t[o]}.bind(null,r));return n},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},e.p="",e(e.s=0)}([function(t,o){function e(t,o){for(var e=0;e<o.length;e++){var n=o[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var n=function(){function t(){!function(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this,t),this.itemPreloaded=!1,this.initialized=!0,this.touchpoint=void 0,this.touchpointError=void 0,this.item=void 0,this.itemError=void 0,this.language=t.getLanguage(),this.loadTouchpoint()}var o,n,r;return o=t,r=[{key:"getLocationQueryParameters",value:function(){return window.location.search}},{key:"getLanguage",value:function(){var o=/language=([^&]+)/.exec(t.getLocationQueryParameters());return(o&&o[1]||"").toLowerCase()||window.kaskoConfig.language||"de"}},{key:"getParsedResponse",value:function(t){var o;try{o=JSON.parse(t)}catch(e){o=t}return o}}],(n=[{key:"loadTouchpoint",value:function(){var o=new XMLHttpRequest,e=this;o.onload=function(){var n=t.getParsedResponse(this.responseText);if(200!==this.status)return e.touchpointError={status:o.status,error:n,message:o.statusText},void("function"==typeof window.kaskoInitTouchpointError&&window.kaskoInitTouchpointError(e.touchpointError));if(e.touchpoint=n,"function"==typeof window.kaskoInitTouchpointSuccess&&window.kaskoInitTouchpointSuccess(e.touchpoint),e.touchpoint){var r=e.touchpoint.items;r&&1===r.length&&(e.loadItem(r[0].id),e.itemPreloaded=!0)}};var n=window.kaskoConfig,r=n.feApiUrl,i=n.touchpointId,a=n.publicKey,u=n.productVersionId,c=n.integrationVersionId,s="in_"===i.substring(0,3)?"integrations":"touchpoints",d="".concat(r,"/").concat(s,"/").concat(i,"?language=").concat(this.language,"&key=").concat(a);u&&(d+="&product_version=".concat(u)),c&&(d+="&integration_version=".concat(c)),o.open("GET",d),o.send()}},{key:"loadItem",value:function(o){var e=new XMLHttpRequest,n=this;e.onload=function(){var o=t.getParsedResponse(this.responseText);if(200!==this.status)return n.itemError={status:e.status,error:o,message:e.statusText},void("function"==typeof window.kaskoInitItemError&&window.kaskoInitItemError(n.itemError));n.item=o,n.loadItemSuccessCallback()};var r=window.kaskoConfig,i=r.feApiUrl,a=r.touchpointId,u=r.publicKey,c=r.productVersionId,s=r.integrationVersionId,d="ins_"===o.substring(0,4),l=d?"integrations":"touchpoints",p=d?"subproducts":"items",f="".concat(i,"/").concat(l,"/").concat(a,"/").concat(p,"/").concat(o,"?language=").concat(this.language,"&key=").concat(u);c&&(f+="&product_version=".concat(c)),s&&(f+="&integration_version=".concat(s)),e.open("GET",f),e.send()}},{key:"loadItemSuccessCallback",value:function(){"function"==typeof window.kaskoInitItemSuccess&&window.kaskoInitItemSuccess(this.item)}}])&&e(o.prototype,n),r&&e(o,r),t}();!window.KaskoProductLoader&&window.kaskoConfig&&(window.KaskoProductLoader=new n),t.exports=n}]);
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc