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

kentico-cloud-core

Package Overview
Dependencies
Maintainers
4
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kentico-cloud-core - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

2

_bundles/kentico-cloud-core-sdk.umd.min.js

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("kenticoCloudCore",["rxjs","rxjs/operators"],t):"object"==typeof exports?exports.kenticoCloudCore=t(require("rxjs"),require("rxjs/operators")):e.kenticoCloudCore=t(e.rxjs,e.rxjs.operators)}(window,function(e,t){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return 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=14)}([function(e,t,r){"use strict";var n=r(7),o=r(25),i=Object.prototype.toString;function s(e){return"[object Array]"===i.call(e)}function u(e){return null!==e&&"object"==typeof e}function a(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),s(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:s,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:o,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:u,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:a,isStream:function(e){return u(e)&&a(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:c,merge:function e(){var t={};function r(r,n){"object"==typeof t[n]&&"object"==typeof r?t[n]=e(t[n],r):t[n]=r}for(var n=0,o=arguments.length;n<o;n++)c(arguments[n],r);return t},extend:function(e,t,r){return c(t,function(t,o){e[o]=r&&"function"==typeof t?n(t,r):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(t,r){t.exports=e},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.prototype.getRetryTimeout=function(e){return 100*Math.pow(2,e)},e.prototype.debugLogAttempt=function(e,t){console.warn("Attempt "+e+": retrying in "+t+"ms")},e}();t.RetryService=n,t.retryService=new n},function(e,t,r){"use strict";(function(t){var n=r(0),o=r(28),i={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,a={adapter:("undefined"!=typeof XMLHttpRequest?u=r(8):void 0!==t&&(u=r(8)),u),transformRequest:[function(e,t){return o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(s(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};a.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],function(e){a.headers[e]={}}),n.forEach(["post","put","patch"],function(e){a.headers[e]=n.merge(i)}),e.exports=a}).call(this,r(27))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=r(5),i=r(2),s=function(){return function(){this.strategy=function(e){return function(t){return t.pipe(o.mergeMap(function(t,r){var o=r+1;if(o>e.maxRetryAttempts)return n.throwError(t);var s=0;if(t&&t.originalError&&t.originalError.response&&t.originalError.response.status&&(s=t.originalError.response.status),!e.useRetryForResponseCodes.find(function(e){return e===s}))return n.throwError(t);var u=i.retryService.getRetryTimeout(o);return i.retryService.debugLogAttempt(o,u),n.timer(u)}))}}}}();t.RetryStrategy=s,t.retryStrategy=new s},function(e,r){e.exports=t},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(23),o=r(12);function i(e){var t={};return e.forEach(function(e){t[e.header]=e.value}),e.find(function(e){return e.header.toLowerCase()==="Content-Type".toLowerCase()})||(t["Content-Type"]="application/json"),t}t.getCallback=function(e,t,r){o.httpDebugger.debugStartHttpRequest(),n.default.get(e.url,{headers:i(t&&t.headers?t.headers:[])}).then(function(e){o.httpDebugger.debugResolveHttpRequest(),r({response:e})},function(e){o.httpDebugger.debugFailedHttpRequest(),r({error:e})})},t.putCallback=function(e,t,r){o.httpDebugger.debugStartHttpRequest(),n.default.put(e.url,e.body,{headers:i(t&&t.headers?t.headers:[])}).then(function(e){o.httpDebugger.debugResolveHttpRequest(),r({response:e})},function(e){o.httpDebugger.debugFailedHttpRequest(),r({error:e})})},t.deleteCallback=function(e,t,r){o.httpDebugger.debugStartHttpRequest(),n.default.delete(e.url,{headers:i(t&&t.headers?t.headers:[])}).then(function(e){o.httpDebugger.debugResolveHttpRequest(),r({response:e})},function(e){o.httpDebugger.debugFailedHttpRequest(),r({error:e})})},t.postCallback=function(e,t,r){o.httpDebugger.debugStartHttpRequest(),n.default.post(e.url,e.body,{headers:i(t&&t.headers?t.headers:[])}).then(function(e){o.httpDebugger.debugResolveHttpRequest(),r({response:e})},function(e){o.httpDebugger.debugFailedHttpRequest(),r({error:e})})},t.getHeadersJson=i},function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},function(e,t,r){"use strict";var n=r(0),o=r(29),i=r(31),s=r(32),u=r(33),a=r(9),c="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||r(34);e.exports=function(e){return new Promise(function(t,f){var p=e.data,l=e.headers;n.isFormData(p)&&delete l["Content-Type"];var d=new XMLHttpRequest,h="onreadystatechange",m=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||u(e.url)||(d=new window.XDomainRequest,h="onload",m=!0,d.onprogress=function(){},d.ontimeout=function(){}),e.auth){var y=e.auth.username||"",g=e.auth.password||"";l.Authorization="Basic "+c(y+":"+g)}if(d.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d[h]=function(){if(d&&(4===d.readyState||m)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?s(d.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:r,config:e,request:d};o(t,f,n),d=null}},d.onerror=function(){f(a("Network Error",e,null,d)),d=null},d.ontimeout=function(){f(a("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var v=r(35),b=(e.withCredentials||u(e.url))&&e.xsrfCookieName?v.read(e.xsrfCookieName):void 0;b&&(l[e.xsrfHeaderName]=b)}if("setRequestHeader"in d&&n.forEach(l,function(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete l[t]:d.setRequestHeader(t,e)}),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){d&&(d.abort(),f(e),d=null)}),void 0===p&&(p=null),d.send(p)})}},function(e,t,r){"use strict";var n=r(30);e.exports=function(e,t,r,o,i){var s=new Error(e);return n(s,t,r,o,i)}},function(e,t,r){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.prototype.debugStartHttpRequest=function(){},e.prototype.debugResolveHttpRequest=function(){},e.prototype.debugFailedHttpRequest=function(){},e}();t.HttpDebugger=n,t.httpDebugger=new n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return function(e){Object.assign(this,e)}}();t.CloudError=n},function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),n(r(15)),n(r(19)),n(r(21)),n(r(45))},function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),n(r(16)),n(r(17)),n(r(18))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.prototype.addOptionsToUrl=function(e,t){return t&&t.forEach(function(t){e=e.indexOf("?")>-1?e+"&"+t.getParam()+"="+t.getParamValue():e+"?"+t.getParam()+"="+t.getParamValue()}),e},e}();t.UrlHelper=n,t.urlHelper=new n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.sdkVersionHeader="X-KC-SDKID"}return e.prototype.getSdkIdHeader=function(e){return{header:this.sdkVersionHeader,value:e.host+";"+e.name+";"+e.version}},e}();t.HeaderHelper=n,t.headerHelper=new n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.prototype.getAllNames=function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t},e.prototype.getAllValues=function(e){return Object.keys(e).map(function(t){return e[t]})},e.prototype.getEnumFromValue=function(e,t){try{if(!t)return;if(this.isNumeric(t))return e[t];var r=this.getAllValues(e).find(function(e){return e.toLowerCase()===t.toString().toLowerCase()});if(!r)return;return r}catch(e){return}},e.prototype.getEnumFromName=function(e,t){for(var r=0,n=this.getAllNames(e);r<n.length;r++){var o=n[r];if(o.toLowerCase()===t.toLowerCase())return e[o]}},e.prototype.isNumeric=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},e}();t.EnumHelper=n,t.enumHelper=new n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(20))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){var t=function(){function e(e,t){if(this.name=e,this.value=t,!e)throw Error("Name of the custom parameter is not specified")}return e.prototype.getParam=function(){return this.name},e.prototype.getParamValue=function(){return this.value},e}();e.CustomParameter=t}(t.Parameters||(t.Parameters={}))},function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),n(r(4)),n(r(22)),n(r(43)),n(r(6)),n(r(12)),n(r(44)),n(r(2))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=r(5),i=r(6),s=r(2),u=r(4),a=function(){function e(){}return e.prototype.retryPromise=function(e,t){var r=this;return new Promise(function(n,o){return e.then(function(){n()}).catch(function(i){var u=0;if(i&&i.originalError&&i.originalError.request){u=i.originalError.request.status;var a=t.useRetryForResponseCodes.find(function(e){return e===u});if(!a&&0!==a)return o(i)}var c=t.maxRetryAttempts-1,f=s.retryService.getRetryTimeout(c);return s.retryService.debugLogAttempt(c,f),t.maxRetryAttempts-1>0?r.promiseRetryWait(f).then(function(){return r.retryPromise(e,{maxRetryAttempts:c,useRetryForResponseCodes:t.useRetryForResponseCodes})}).then(function(e){return n(e)}).catch(function(){return o(i)}):o(i)})})},e.prototype.get=function(e,t){var r=n.bindCallback(i.getCallback);return this.mapAxiosObservable(r,e,t)},e.prototype.post=function(e,t){var r=n.bindCallback(i.postCallback);return this.mapAxiosObservable(r,e,t)},e.prototype.put=function(e,t){var r=n.bindCallback(i.putCallback);return this.mapAxiosObservable(r,e,t)},e.prototype.delete=function(e,t){var r=n.bindCallback(i.deleteCallback);return this.mapAxiosObservable(r,e,t)},e.prototype.mapAxiosObservable=function(e,t,r){var i=this;return e(t,r).pipe(o.retryWhen(u.retryStrategy.strategy({maxRetryAttempts:r&&r.maxRetryAttempts?r.maxRetryAttempts:0,useRetryForResponseCodes:r&&r.useRetryForResponseCodes?r.useRetryForResponseCodes:[]})),o.map(function(e){return i.mapResult(e)}),o.catchError(function(e){return r&&r.logErrorToConsole&&console.warn("Kentico Cloud SDK encountered an error posting data: ",e),n.throwError({originalError:e,mappedError:t.mapError(e)})}))},e.prototype.mapResult=function(e){if(e.error)throw e.error;if(!e.response)throw Error("Response is not set and no error was thrown");return{data:e.response.data,response:e.response}},e.prototype.promiseRetryWait=function(e){return new Promise(function(t){return setTimeout(t,e)})},e}();t.HttpService=a},function(e,t,r){e.exports=r(24)},function(e,t,r){"use strict";var n=r(0),o=r(7),i=r(26),s=r(3);function u(e){var t=new i(e),r=o(i.prototype.request,t);return n.extend(r,i.prototype,t),n.extend(r,t),r}var a=u(s);a.Axios=i,a.create=function(e){return u(n.merge(s,e))},a.Cancel=r(11),a.CancelToken=r(41),a.isCancel=r(10),a.all=function(e){return Promise.all(e)},a.spread=r(42),e.exports=a,e.exports.default=a},function(e,t){function r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("kenticoCloudCore",["rxjs","rxjs/operators"],t):"object"==typeof exports?exports.kenticoCloudCore=t(require("rxjs"),require("rxjs/operators")):e.kenticoCloudCore=t(e.rxjs,e.rxjs.operators)}(window,function(e,t){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return 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=14)}([function(e,t,r){"use strict";var n=r(7),o=r(25),i=Object.prototype.toString;function s(e){return"[object Array]"===i.call(e)}function u(e){return null!==e&&"object"==typeof e}function a(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),s(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:s,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:o,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:u,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:a,isStream:function(e){return u(e)&&a(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:c,merge:function e(){var t={};function r(r,n){"object"==typeof t[n]&&"object"==typeof r?t[n]=e(t[n],r):t[n]=r}for(var n=0,o=arguments.length;n<o;n++)c(arguments[n],r);return t},extend:function(e,t,r){return c(t,function(t,o){e[o]=r&&"function"==typeof t?n(t,r):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(t,r){t.exports=e},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.prototype.getRetryTimeout=function(e){return 100*Math.pow(2,e)},e.prototype.debugLogAttempt=function(e,t){console.warn("Attempt "+e+": retrying in "+t+"ms")},e}();t.RetryService=n,t.retryService=new n},function(e,t,r){"use strict";(function(t){var n=r(0),o=r(28),i={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,a={adapter:("undefined"!=typeof XMLHttpRequest?u=r(8):void 0!==t&&(u=r(8)),u),transformRequest:[function(e,t){return o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(s(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};a.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],function(e){a.headers[e]={}}),n.forEach(["post","put","patch"],function(e){a.headers[e]=n.merge(i)}),e.exports=a}).call(this,r(27))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=r(5),i=r(2),s=function(){return function(){this.strategy=function(e){return function(t){return t.pipe(o.mergeMap(function(t,r){var o=r+1;if(o>e.maxRetryAttempts)return n.throwError(t);var s=0;if(t&&t.originalError&&t.originalError.response&&t.originalError.response.status&&(s=t.originalError.response.status),!e.useRetryForResponseCodes.find(function(e){return e===s}))return n.throwError(t);var u=i.retryService.getRetryTimeout(o);return i.retryService.debugLogAttempt(o,u),n.timer(u)}))}}}}();t.RetryStrategy=s,t.retryStrategy=new s},function(e,r){e.exports=t},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(23),o=r(12);function i(e){var t={};return e.forEach(function(e){t[e.header]=e.value}),e.find(function(e){return e.header.toLowerCase()==="Content-Type".toLowerCase()})||(t["Content-Type"]="application/json"),t}t.getCallback=function(e,t,r){o.httpDebugger.debugStartHttpRequest(),n.default.get(e.url,{headers:i(t&&t.headers?t.headers:[])}).then(function(e){o.httpDebugger.debugResolveHttpRequest(),r({response:e})},function(e){o.httpDebugger.debugFailedHttpRequest(),r({error:e})})},t.putCallback=function(e,t,r){o.httpDebugger.debugStartHttpRequest(),n.default.put(e.url,e.body,{headers:i(t&&t.headers?t.headers:[])}).then(function(e){o.httpDebugger.debugResolveHttpRequest(),r({response:e})},function(e){o.httpDebugger.debugFailedHttpRequest(),r({error:e})})},t.deleteCallback=function(e,t,r){o.httpDebugger.debugStartHttpRequest(),n.default.delete(e.url,{headers:i(t&&t.headers?t.headers:[])}).then(function(e){o.httpDebugger.debugResolveHttpRequest(),r({response:e})},function(e){o.httpDebugger.debugFailedHttpRequest(),r({error:e})})},t.postCallback=function(e,t,r){o.httpDebugger.debugStartHttpRequest(),n.default.post(e.url,e.body,{headers:i(t&&t.headers?t.headers:[])}).then(function(e){o.httpDebugger.debugResolveHttpRequest(),r({response:e})},function(e){o.httpDebugger.debugFailedHttpRequest(),r({error:e})})},t.getHeadersJson=i},function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},function(e,t,r){"use strict";var n=r(0),o=r(29),i=r(31),s=r(32),u=r(33),a=r(9),c="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||r(34);e.exports=function(e){return new Promise(function(t,f){var p=e.data,l=e.headers;n.isFormData(p)&&delete l["Content-Type"];var d=new XMLHttpRequest,h="onreadystatechange",m=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||u(e.url)||(d=new window.XDomainRequest,h="onload",m=!0,d.onprogress=function(){},d.ontimeout=function(){}),e.auth){var y=e.auth.username||"",g=e.auth.password||"";l.Authorization="Basic "+c(y+":"+g)}if(d.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d[h]=function(){if(d&&(4===d.readyState||m)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?s(d.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:r,config:e,request:d};o(t,f,n),d=null}},d.onerror=function(){f(a("Network Error",e,null,d)),d=null},d.ontimeout=function(){f(a("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var v=r(35),b=(e.withCredentials||u(e.url))&&e.xsrfCookieName?v.read(e.xsrfCookieName):void 0;b&&(l[e.xsrfHeaderName]=b)}if("setRequestHeader"in d&&n.forEach(l,function(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete l[t]:d.setRequestHeader(t,e)}),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){d&&(d.abort(),f(e),d=null)}),void 0===p&&(p=null),d.send(p)})}},function(e,t,r){"use strict";var n=r(30);e.exports=function(e,t,r,o,i){var s=new Error(e);return n(s,t,r,o,i)}},function(e,t,r){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.prototype.debugStartHttpRequest=function(){},e.prototype.debugResolveHttpRequest=function(){},e.prototype.debugFailedHttpRequest=function(){},e}();t.HttpDebugger=n,t.httpDebugger=new n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return function(e){Object.assign(this,e)}}();t.CloudError=n},function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),n(r(15)),n(r(19)),n(r(21)),n(r(45))},function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),n(r(16)),n(r(17)),n(r(18))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.prototype.addOptionsToUrl=function(e,t){return t&&t.forEach(function(t){e=e.indexOf("?")>-1?e+"&"+t.getParam()+"="+t.getParamValue():e+"?"+t.getParam()+"="+t.getParamValue()}),e},e}();t.UrlHelper=n,t.urlHelper=new n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.sdkVersionHeader="X-KC-SDKID"}return e.prototype.getSdkIdHeader=function(e){return{header:this.sdkVersionHeader,value:e.host+";"+e.name+";"+e.version}},e}();t.HeaderHelper=n,t.headerHelper=new n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.prototype.getAllNames=function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t},e.prototype.getAllValues=function(e){return Object.keys(e).map(function(t){return e[t]})},e.prototype.getEnumFromValue=function(e,t){try{if(!t)return;if(this.isNumeric(t))return e[t];var r=this.getAllValues(e).find(function(e){return e.toLowerCase()===t.toString().toLowerCase()});if(!r)return;return r}catch(e){return}},e.prototype.getEnumFromName=function(e,t){for(var r=0,n=this.getAllNames(e);r<n.length;r++){var o=n[r];if(o.toLowerCase()===t.toLowerCase())return e[o]}},e.prototype.isNumeric=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},e}();t.EnumHelper=n,t.enumHelper=new n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(20))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){var t=function(){function e(e,t){if(this.name=e,this.value=t,!e)throw Error("Name of the custom parameter is not specified")}return e.prototype.getParam=function(){return this.name},e.prototype.getParamValue=function(){return this.value},e}();e.CustomParameter=t}(t.Parameters||(t.Parameters={}))},function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),n(r(4)),n(r(22)),n(r(43)),n(r(6)),n(r(12)),n(r(44)),n(r(2))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=r(5),i=r(6),s=r(2),u=r(4),a=function(){function e(){}return e.prototype.retryPromise=function(e,t){var r=this;return new Promise(function(n,o){return e.then(function(e){n(e)}).catch(function(i){var u=0;if(i&&i.originalError&&i.originalError.request){u=i.originalError.request.status;var a=t.useRetryForResponseCodes.find(function(e){return e===u});if(!a&&0!==a)return o(i)}var c=t.maxRetryAttempts-1,f=s.retryService.getRetryTimeout(c);return s.retryService.debugLogAttempt(c,f),t.maxRetryAttempts-1>0?r.promiseRetryWait(f).then(function(){return r.retryPromise(e,{maxRetryAttempts:c,useRetryForResponseCodes:t.useRetryForResponseCodes})}).then(function(e){return n(e)}).catch(function(){return o(i)}):o(i)})})},e.prototype.get=function(e,t){var r=n.bindCallback(i.getCallback);return this.mapAxiosObservable(r,e,t)},e.prototype.post=function(e,t){var r=n.bindCallback(i.postCallback);return this.mapAxiosObservable(r,e,t)},e.prototype.put=function(e,t){var r=n.bindCallback(i.putCallback);return this.mapAxiosObservable(r,e,t)},e.prototype.delete=function(e,t){var r=n.bindCallback(i.deleteCallback);return this.mapAxiosObservable(r,e,t)},e.prototype.mapAxiosObservable=function(e,t,r){var i=this;return e(t,r).pipe(o.retryWhen(u.retryStrategy.strategy({maxRetryAttempts:r&&r.maxRetryAttempts?r.maxRetryAttempts:0,useRetryForResponseCodes:r&&r.useRetryForResponseCodes?r.useRetryForResponseCodes:[]})),o.map(function(e){return i.mapResult(e)}),o.catchError(function(e){return r&&r.logErrorToConsole&&console.warn("Kentico Cloud SDK encountered an error posting data: ",e),n.throwError({originalError:e,mappedError:t.mapError(e)})}))},e.prototype.mapResult=function(e){if(e.error)throw e.error;if(!e.response)throw Error("Response is not set and no error was thrown");return{data:e.response.data,response:e.response}},e.prototype.promiseRetryWait=function(e){return new Promise(function(t){return setTimeout(t,e)})},e}();t.HttpService=a},function(e,t,r){e.exports=r(24)},function(e,t,r){"use strict";var n=r(0),o=r(7),i=r(26),s=r(3);function u(e){var t=new i(e),r=o(i.prototype.request,t);return n.extend(r,i.prototype,t),n.extend(r,t),r}var a=u(s);a.Axios=i,a.create=function(e){return u(n.merge(s,e))},a.Cancel=r(11),a.CancelToken=r(41),a.isCancel=r(10),a.all=function(e){return Promise.all(e)},a.spread=r(42),e.exports=a,e.exports.default=a},function(e,t){function r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}
/*!

@@ -3,0 +3,0 @@ * Determine if an object is a Buffer

@@ -19,4 +19,4 @@ "use strict";

return new Promise(function (resolve, reject) { return promise
.then(function () {
resolve();
.then(function (response) {
resolve(response);
})

@@ -23,0 +23,0 @@ .catch(function (reason) {

@@ -5,5 +5,5 @@ "use strict";

host: 'npmjs.com',
version: '1.4.1',
version: '1.4.2',
name: 'kentico-cloud-core'
};
//# sourceMappingURL=sdk-info.generated.js.map

@@ -17,4 +17,4 @@ import { bindCallback, throwError } from 'rxjs';

return new Promise(function (resolve, reject) { return promise
.then(function () {
resolve();
.then(function (response) {
resolve(response);
})

@@ -21,0 +21,0 @@ .catch(function (reason) {

export var sdkInfo = {
host: 'npmjs.com',
version: '1.4.1',
version: '1.4.2',
name: 'kentico-cloud-core'
};
//# sourceMappingURL=sdk-info.generated.js.map
{
"name": "kentico-cloud-core",
"version": "1.4.1",
"version": "1.4.2",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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