@bruit/component
Advanced tools
Comparing version 2.0.4-plop to 2.0.9-plop
{ | ||
"entries": [ | ||
"components/bruit-rating/bruit-rating.js", | ||
"components/bruit-io/bruit-io.js", | ||
"components/bruit-rating/bruit-rating.js", | ||
"components/bruit-modal/bruit-modal.js" | ||
@@ -6,0 +6,0 @@ ], |
@@ -1,2 +0,2 @@ | ||
import { Bruit } from '@bruit/core/src/bruit'; | ||
import { Bruit } from '@bruit/core/lib/core.esm'; | ||
import { BrtFieldType } from '@bruit/types/dist/enums/brt-field-type'; | ||
@@ -148,6 +148,6 @@ import { h } from '@stencil/core'; | ||
} | ||
sendFeedback(data = [], dataFn, agreement = false, screenshotConfig) { | ||
async sendFeedback(data = [], dataFn, agreement = false, screenshotConfig) { | ||
return Bruit.sendFeedback(data, dataFn, agreement, screenshotConfig); | ||
} | ||
sendError(error) { | ||
async sendError(error) { | ||
return Bruit.sendError(error); | ||
@@ -154,0 +154,0 @@ } |
@@ -62,28 +62,60 @@ (function () { | ||
var s2 = document.createElement("script"); | ||
s2.type = "text/javascript"; | ||
s2.setAttribute('type', 'module'); | ||
s2.src = 'https://unpkg.com/@bruit/core@2.0.2-plop/lib/core.js?' + paramsStr; | ||
s2.onload = function () { | ||
var s = document.createElement("script"); | ||
s.type = "text/javascript"; | ||
s.setAttribute('type', 'module'); | ||
s.src = baseUrl + version + '/dist/bruit/bruit.esm.js'; | ||
s.onload = function () { | ||
var modal = document.getElementsByTagName('bruit-core'); | ||
if (modal.length <= 0) { | ||
var bruitCore = document.createElement('bruit-core'); | ||
// attach bruitCore with url params | ||
bruitCore.config = params; | ||
document.body.appendChild(bruitCore); | ||
} | ||
}; | ||
var x = document.getElementsByTagName('script')[0]; | ||
x.parentNode.insertBefore(s, x); | ||
var s = document.createElement("script"); | ||
s.type = "text/javascript"; | ||
s.setAttribute('type', 'module'); | ||
s.src = baseUrl + version + '/dist/bruit/bruit.esm.js'; | ||
s.onload = function () { | ||
var modal = document.getElementsByTagName('bruit-core'); | ||
if (modal.length <= 0) { | ||
var bruitCore = document.createElement('bruit-core'); | ||
// attach bruitCore with url params | ||
bruitCore.config = params; | ||
document.body.appendChild(bruitCore); | ||
} | ||
}; | ||
var x = document.getElementsByTagName('script')[0]; | ||
x.parentNode.insertBefore(s2, x); | ||
x.parentNode.insertBefore(s, x); | ||
// var s2 = document.createElement("script"); | ||
// s2.type = "text/javascript"; | ||
// s2.setAttribute('type', 'module'); | ||
// s2.src = 'https://unpkg.com/@bruit/core@2.0.2-plop/lib/core.js?' + paramsStr; | ||
// s2.onload = function () { | ||
// var s = document.createElement("script"); | ||
// s.type = "text/javascript"; | ||
// s.setAttribute('type', 'module'); | ||
// s.src = baseUrl + version + '/dist/bruit/bruit.esm.js'; | ||
// s.onload = function () { | ||
// var modal = document.getElementsByTagName('bruit-core'); | ||
// if (modal.length <= 0) { | ||
// var bruitCore = document.createElement('bruit-core'); | ||
// // attach bruitCore with url params | ||
// bruitCore.config = params; | ||
// document.body.appendChild(bruitCore); | ||
// } | ||
// }; | ||
// var x = document.getElementsByTagName('script')[0]; | ||
// x.parentNode.insertBefore(s, x); | ||
// }; | ||
// var x = document.getElementsByTagName('script')[0]; | ||
// x.parentNode.insertBefore(s2, x); | ||
} | ||
})(); |
@@ -62,28 +62,60 @@ (function () { | ||
var s2 = document.createElement("script"); | ||
s2.type = "text/javascript"; | ||
s2.setAttribute('type', 'module'); | ||
s2.src = 'https://unpkg.com/@bruit/core@2.0.2-plop/lib/core.js?' + paramsStr; | ||
s2.onload = function () { | ||
var s = document.createElement("script"); | ||
s.type = "text/javascript"; | ||
s.setAttribute('type', 'module'); | ||
s.src = baseUrl + version + '/dist/bruit/bruit.esm.js'; | ||
s.onload = function () { | ||
var modal = document.getElementsByTagName('bruit-core'); | ||
if (modal.length <= 0) { | ||
var bruitCore = document.createElement('bruit-core'); | ||
// attach bruitCore with url params | ||
bruitCore.config = params; | ||
document.body.appendChild(bruitCore); | ||
} | ||
}; | ||
var x = document.getElementsByTagName('script')[0]; | ||
x.parentNode.insertBefore(s, x); | ||
var s = document.createElement("script"); | ||
s.type = "text/javascript"; | ||
s.setAttribute('type', 'module'); | ||
s.src = baseUrl + version + '/dist/bruit/bruit.esm.js'; | ||
s.onload = function () { | ||
var modal = document.getElementsByTagName('bruit-core'); | ||
if (modal.length <= 0) { | ||
var bruitCore = document.createElement('bruit-core'); | ||
// attach bruitCore with url params | ||
bruitCore.config = params; | ||
document.body.appendChild(bruitCore); | ||
} | ||
}; | ||
var x = document.getElementsByTagName('script')[0]; | ||
x.parentNode.insertBefore(s2, x); | ||
x.parentNode.insertBefore(s, x); | ||
// var s2 = document.createElement("script"); | ||
// s2.type = "text/javascript"; | ||
// s2.setAttribute('type', 'module'); | ||
// s2.src = 'https://unpkg.com/@bruit/core@2.0.2-plop/lib/core.js?' + paramsStr; | ||
// s2.onload = function () { | ||
// var s = document.createElement("script"); | ||
// s.type = "text/javascript"; | ||
// s.setAttribute('type', 'module'); | ||
// s.src = baseUrl + version + '/dist/bruit/bruit.esm.js'; | ||
// s.onload = function () { | ||
// var modal = document.getElementsByTagName('bruit-core'); | ||
// if (modal.length <= 0) { | ||
// var bruitCore = document.createElement('bruit-core'); | ||
// // attach bruitCore with url params | ||
// bruitCore.config = params; | ||
// document.body.appendChild(bruitCore); | ||
// } | ||
// }; | ||
// var x = document.getElementsByTagName('script')[0]; | ||
// x.parentNode.insertBefore(s, x); | ||
// }; | ||
// var x = document.getElementsByTagName('script')[0]; | ||
// x.parentNode.insertBefore(s2, x); | ||
} | ||
})(); |
{ | ||
"name": "@bruit/component", | ||
"version": "2.0.4-plop", | ||
"version": "2.0.9-plop", | ||
"description": "send your feedbacks with bruit.io", | ||
@@ -54,5 +54,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@bruit/core": "^2.0.4-plop", | ||
"@bruit/core": "^2.0.9-plop", | ||
"@bruit/types": "0.3.2-2" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
2891407
42989
9
16
+ Added@bruit/core@2.0.9-plop(transitive)
- Removed@bruit/core@2.0.4-plop(transitive)
Updated@bruit/core@^2.0.9-plop