@bruit/component
Advanced tools
Comparing version 0.4.3 to 0.4.4
/*! | ||
* Built with http://stenciljs.com | ||
* 2018-11-19T11:03:13 | ||
* 2018-11-19T11:34:17 | ||
*/ | ||
!function(e,t,r,n,i,s,o,u,c,a,l,d,p,h){for(l=e.bruit=e.bruit||{},(d=t.createElement("style")).innerHTML="bruit-io{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),p=t.head.querySelector("meta[charset]"),t.head.insertBefore(d,p?p.nextSibling:t.head.firstChild),function(e,t,r){(e["s-apps"]=e["s-apps"]||[]).push("bruit"),r.componentOnReady||(r.componentOnReady=function(){var t=this;function r(r){if(t.nodeName.indexOf("-")>0){for(var n=e["s-apps"],i=0,s=0;s<n.length;s++)if(e[n[s]].componentOnReady){if(e[n[s]].componentOnReady(t,r))return;i++}if(i<n.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,r])}r(null)}return e.Promise?new e.Promise(r):{then:r}})}(e,0,a),i=i||l.resourcesUrl,d=(p=t.querySelectorAll("script")).length-1;d>=0&&!(h=p[d]).src&&!h.hasAttribute("data-resources-url");d--);p=h.getAttribute("data-resources-url"),!i&&p&&(i=p),!i&&h.src&&(i=(p=h.src.split("/").slice(0,-1)).join("/")+(p.length?"/":"")+"bruit/"),d=t.createElement("script"),function(e,t,r,n){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in r)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,d)?d.src=i+"bruit.hzpv2tbv.js":(d.src=i+"bruit.uua3njv0.js",d.setAttribute("type","module"),d.setAttribute("crossorigin",!0)),d.setAttribute("data-resources-url",i),d.setAttribute("data-namespace","bruit"),t.head.appendChild(d)}(window,document,0,0,0,0,0,0,0,HTMLElement.prototype); | ||
!function(e,t,r,n,i,s,o,u,c,a,l,d,p,h){for(l=e.bruit=e.bruit||{},(d=t.createElement("style")).innerHTML="bruit-io{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),p=t.head.querySelector("meta[charset]"),t.head.insertBefore(d,p?p.nextSibling:t.head.firstChild),function(e,t,r){(e["s-apps"]=e["s-apps"]||[]).push("bruit"),r.componentOnReady||(r.componentOnReady=function(){var t=this;function r(r){if(t.nodeName.indexOf("-")>0){for(var n=e["s-apps"],i=0,s=0;s<n.length;s++)if(e[n[s]].componentOnReady){if(e[n[s]].componentOnReady(t,r))return;i++}if(i<n.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,r])}r(null)}return e.Promise?new e.Promise(r):{then:r}})}(e,0,a),i=i||l.resourcesUrl,d=(p=t.querySelectorAll("script")).length-1;d>=0&&!(h=p[d]).src&&!h.hasAttribute("data-resources-url");d--);p=h.getAttribute("data-resources-url"),!i&&p&&(i=p),!i&&h.src&&(i=(p=h.src.split("/").slice(0,-1)).join("/")+(p.length?"/":"")+"bruit/"),d=t.createElement("script"),function(e,t,r,n){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in r)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,d)?d.src=i+"bruit.2o78gmll.js":(d.src=i+"bruit.krlyiukn.js",d.setAttribute("type","module"),d.setAttribute("crossorigin",!0)),d.setAttribute("data-resources-url",i),d.setAttribute("data-namespace","bruit"),t.head.appendChild(d)}(window,document,0,0,0,0,0,0,0,HTMLElement.prototype); |
@@ -14,4 +14,9 @@ import { ComponentConfig } from '../config/config'; | ||
else { | ||
const body = JSON.parse(xhr.responseText); | ||
reject(Object.assign({}, xhr, { code: 900, text: (body ? body.message : null) || 'An Unexpected Error Occurred' })); | ||
try { | ||
const body = JSON.parse(xhr.responseText); | ||
reject(Object.assign({}, xhr, { code: 900, text: (body ? body.message : null) || 'An Unexpected Error Occurred' })); | ||
} | ||
catch (_a) { | ||
reject(Object.assign({}, xhr, { code: 900, text: 'An Unexpected Error Occurred' })); | ||
} | ||
} | ||
@@ -18,0 +23,0 @@ } |
// bruit: Host Data, ES Module/es2017 Target | ||
export const BruitIo = ["bruit-io","zozuyvxt",1,[["_config",16],["bruitElement",64],["config",1,0,1,2],["data",1],["dataFn",1],["modalBrtField",16],["modalError",16],["modalOpened",16]]]; | ||
export const BruitIo = ["bruit-io","mbaw2qft",1,[["_config",16],["bruitElement",64],["config",1,0,1,2],["data",1],["dataFn",1],["modalBrtField",16],["modalError",16],["modalOpened",16]]]; |
// bruit: Host Data, ES Module/es5 Target | ||
export var BruitIo = ["bruit-io","zozuyvxt",1,[["_config",16],["bruitElement",64],["config",1,0,1,2],["data",1],["dataFn",1],["modalBrtField",16],["modalError",16],["modalOpened",16]]]; | ||
export var BruitIo = ["bruit-io","mbaw2qft",1,[["_config",16],["bruitElement",64],["config",1,0,1,2],["data",1],["dataFn",1],["modalBrtField",16],["modalError",16],["modalOpened",16]]]; |
{ | ||
"name": "@bruit/component", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "send your feedbacks with bruit.io", | ||
@@ -5,0 +5,0 @@ "private": false, |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
2302237
18167