New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dbz-compsearch

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dbz-compsearch - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

dist/comp-search/0owd60eb.js

53

dist/comp-search.js
/*! Built with http://stenciljs.com */
(function(win, doc, appNamespace, publicPath, appCore, appCoreSsr, appCorePolyfilled, components) {
function init(win, doc, appNamespace, publicPath, appCore, appCoreSsr, appCorePolyfilled, components, x, y) {
// create global namespace if it doesn't already exist
(win[appNamespace] = win[appNamespace] || {}).components = components;
y = components.filter(function (c) { return c[2]; }).map(function (c) { return c[0]; });
if (y.length) {
// auto hide components until they been fully hydrated
// reusing the "x" and "i" variables from the args for funzies
x = doc.createElement('style');
x.innerHTML = y.join() + '{visibility:hidden}';
x.setAttribute('data-visibility', '');
doc.head.insertBefore(x, doc.head.firstChild);
}
// get this current script
// script tag cannot use "async" attribute
appNamespace = appNamespace.toLowerCase();
x = doc.scripts[doc.scripts.length - 1];
if (x && x.src) {
y = x.src.split('/').slice(0, -1);
publicPath = (y.join('/')) + (y.length ? '/' : '') + appNamespace + '/';
}
// request the core this browser needs
// test for native support of custom elements and fetch
// if either of those are not supported, then use the core w/ polyfills
// also check if the page was build with ssr or not
x = doc.createElement('script');
x.src = publicPath + ((supportsCustomElements(x) && supportsEsModules(win) && supportsFetch(win) && supportsCssVariables(win)) ? (requiresSsrClient(doc) ? appCoreSsr : appCore) : appCorePolyfilled);
x.setAttribute('data-path', publicPath);
x.setAttribute('data-namespace', appNamespace);
doc.head.appendChild(x);
}
function supportsCustomElements(scriptElm) {
return 'noModule' in scriptElm;
}
function supportsEsModules(win) {
return win.customElements;
}
function supportsFetch(win) {
return win.fetch;
}
function supportsCssVariables(win) {
return (win.CSS && win.CSS.supports && win.CSS.supports('color', 'var(--c)'));
}
function requiresSsrClient(doc) {
return doc.documentElement.hasAttribute('data-ssr');
}
init(win, doc, appNamespace, publicPath, appCore, appCoreSsr, appCorePolyfilled, components);
})(window, document, "comp-search","/build/comp-search/","comp-search.core.js","comp-search.core.ssr.js","es5-build-disabled.js",[["comp-search",["comp-search",null],1,[["empty",1,1,2],["filteredItems",5],["items",1,1,1],["sort",1,1,2]]],["stencil-async-content",["stencil-async-content",null],0,[["content",5],["documentLocation",1,1,2]]],["stencil-route",["stencil-async-content",null],0,[["activeRouter",3,0,0,"activeRouter"],["component",1,1,2],["componentProps",1,1,1],["exact",1,1,3],["group",1,1,2],["location",3,0,0,"location"],["match",5],["routeRender",1,1,1],["url",1,1,1]]],["stencil-route-link",["stencil-async-content",null],0,[["activeClass",1,1,2],["activeRouter",3,0,0,"activeRouter"],["custom",1,1,3],["exact",1,1,3],["location",3,0,0,"location"],["match",5],["url",1,1,2],["urlMatch",1,1,1]],0,1],["stencil-route-title",["stencil-async-content",null],0,[["activeRouter",3,0,0,"activeRouter"],["title",1,1,2]]],["stencil-router",["stencil-async-content",null],0,[["activeRouter",3,0,0,"activeRouter"],["match",5],["root",1,1,2],["titleSuffix",1,1,2]],0,1],["stencil-router-redirect",["stencil-async-content",null],0,[["activeRouter",3,0,0,"activeRouter"],["url",1,1,2]]],["test-app",["test-app",null]],["test-demo-four",["test-app",null],0,[["history",1,1,1],["match",1,1,1],["pages",1,1,1]]],["test-demo-six",["test-app",null],0,[["history",1,1,1],["match",1,1,1],["pages",1,1,1]]],["test-demo-three",["test-app",null],0,[["history",1,1,1],["match",1,1,1],["pages",1,1,1]]]]);
!function(t,e,o,c,r,n,i,s){function a(t){return"noModule"in t}function u(t){return t.customElements}function l(t){return t.fetch}function m(t){return t.CSS&&t.CSS.supports&&t.CSS.supports("color","var(--c)")}function h(t){return t.documentElement.hasAttribute("data-ssr")}!function(t,e,o,c,r,n,i,s,d,p){(t[o]=t[o]||{}).components=s,(p=s.filter(function(t){return t[2]}).map(function(t){return t[0]})).length&&((d=e.createElement("style")).innerHTML=p.join()+"{visibility:hidden}",d.setAttribute("data-visibility",""),e.head.insertBefore(d,e.head.firstChild)),o=o.toLowerCase(),(d=e.scripts[e.scripts.length-1])&&d.src&&(c=(p=d.src.split("/").slice(0,-1)).join("/")+(p.length?"/":"")+o+"/"),(d=e.createElement("script")).src=c+(a(d)&&u(t)&&l(t)&&m(t)?h(e)?n:r:i),d.setAttribute("data-path",c),d.setAttribute("data-namespace",o),e.head.appendChild(d)}(window,document,"comp-search","/build/comp-search/","comp-search.i2l5wllw.js","comp-search.gi9falch.js","comp-search.j4ece4xo.js",[["comp-search",["hv5npcbe","cwdr6ogo"],1,[["empty",1,1,2],["filteredItems",5],["items",1,1,1],["sort",1,1,2]]],["stencil-async-content",["9uja2btq","0owd60eb"],0,[["content",5],["documentLocation",1,1,2]]],["stencil-route",["9uja2btq","0owd60eb"],0,[["activeRouter",3,0,0,"activeRouter"],["component",1,1,2],["componentProps",1,1,1],["exact",1,1,3],["group",1,1,2],["location",3,0,0,"location"],["match",5],["routeRender",1,1,1],["url",1,1,1]]],["stencil-route-link",["9uja2btq","0owd60eb"],0,[["activeClass",1,1,2],["activeRouter",3,0,0,"activeRouter"],["custom",1,1,3],["exact",1,1,3],["location",3,0,0,"location"],["match",5],["url",1,1,2],["urlMatch",1,1,1]],0,1],["stencil-route-title",["9uja2btq","0owd60eb"],0,[["activeRouter",3,0,0,"activeRouter"],["title",1,1,2]]],["stencil-router",["9uja2btq","0owd60eb"],0,[["activeRouter",3,0,0,"activeRouter"],["match",5],["root",1,1,2],["titleSuffix",1,1,2]],0,1],["stencil-router-redirect",["9uja2btq","0owd60eb"],0,[["activeRouter",3,0,0,"activeRouter"],["url",1,1,2]]],["test-app",["sgoml04h","c1lcflqn"]],["test-demo-four",["sgoml04h","c1lcflqn"],0,[["history",1,1,1],["match",1,1,1],["pages",1,1,1]]],["test-demo-six",["sgoml04h","c1lcflqn"],0,[["history",1,1,1],["match",1,1,1],["pages",1,1,1]]],["test-demo-three",["sgoml04h","c1lcflqn"],0,[["history",1,1,1],["match",1,1,1],["pages",1,1,1]]]])}();

@@ -7,4 +7,4 @@ {

[
"comp-search",
null
"hv5npcbe",
"cwdr6ogo"
],

@@ -40,4 +40,4 @@ 1,

[
"stencil-async-content",
null
"9uja2btq",
"0owd60eb"
],

@@ -61,4 +61,4 @@ 0,

[
"stencil-async-content",
null
"9uja2btq",
"0owd60eb"
],

@@ -126,4 +126,4 @@ 0,

[
"stencil-async-content",
null
"9uja2btq",
"0owd60eb"
],

@@ -187,4 +187,4 @@ 0,

[
"stencil-async-content",
null
"9uja2btq",
"0owd60eb"
],

@@ -211,4 +211,4 @@ 0,

[
"stencil-async-content",
null
"9uja2btq",
"0owd60eb"
],

@@ -247,4 +247,4 @@ 0,

[
"stencil-async-content",
null
"9uja2btq",
"0owd60eb"
],

@@ -271,4 +271,4 @@ 0,

[
"test-app",
null
"sgoml04h",
"c1lcflqn"
]

@@ -279,4 +279,4 @@ ],

[
"test-app",
null
"sgoml04h",
"c1lcflqn"
],

@@ -308,4 +308,4 @@ 0,

[
"test-app",
null
"sgoml04h",
"c1lcflqn"
],

@@ -337,4 +337,4 @@ 0,

[
"test-app",
null
"sgoml04h",
"c1lcflqn"
],

@@ -365,5 +365,5 @@ 0,

"global": "comp-search.global.js",
"core": "comp-search.core.js",
"coreSsr": "comp-search.core.ssr.js",
"corePolyfilled": "es5-build-disabled.js"
"core": "comp-search.i2l5wllw.js",
"coreSsr": "comp-search.gi9falch.js",
"corePolyfilled": "comp-search.j4ece4xo.js"
}
/*! Built with http://stenciljs.com */
(function(appNamespace,publicPath){"use strict";
(function(publicPath){
/** @stencil/router global **/
var __assign = (undefined && undefined.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
Context.activeRouter = (function () {
var state = {};
var groups = {};
var matchedGroups = {};
var nextListeners = [];
function getDefaultState() {
return {
location: {
pathname: Context.window.location.pathname,
search: Context.window.location.search
}
};
}
function set(value) {
state = __assign({}, state, value);
clearGroups();
dispatch();
}
function get(attrName) {
if (Object.keys(state).length === 0) {
return getDefaultState();
}
if (!attrName) {
return state;
}
return state[attrName];
}
/**
* When we get a new location, clear matching groups
* so we give them a chance to re-match and re-render.
*/
function clearGroups() {
matchedGroups = {};
}
function dispatch() {
var listeners = nextListeners;
for (var i = 0; i < listeners.length; i++) {
var listener = listeners[i];
listener();
}
}
function subscribe(listener) {
if (typeof listener !== 'function') {
throw new Error('Expected listener to be a function.');
}
var isSubscribed = true;
nextListeners.push(listener);
return function unsubscribe() {
if (!isSubscribed) {
return;
}
isSubscribed = false;
var index = nextListeners.indexOf(listener);
nextListeners.splice(index, 1);
};
}
/**
* Remove a Route from all groups
*/
function removeFromGroups(route) {
for (var groupName in groups) {
var group = groups[groupName];
groups[groupName] = group.filter(function (r) { return r !== route; });
}
}
/**
* Add a Route to the given group
*/
function addToGroup(route, groupName) {
if (!(groupName in groups)) {
groups[groupName] = [];
}
groups[groupName].push(route);
}
/**
* Check if a group already matched once
*/
function didGroupAlreadyMatch(groupName) {
if (!groupName) {
return false;
}
return matchedGroups[groupName] === true;
}
/**
* Set that a group has matched
*/
function setGroupMatched(groupName) {
matchedGroups[groupName] = true;
}
return {
set: set,
get: get,
subscribe: subscribe,
addToGroup: addToGroup,
removeFromGroups: removeFromGroups,
didGroupAlreadyMatch: didGroupAlreadyMatch,
setGroupMatched: setGroupMatched
};
})();
(function(publicPath){var __assign=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n};Context.activeRouter=function(){function n(){return{location:{pathname:Context.window.location.pathname,search:Context.window.location.search}}}function t(){i={}}function r(){for(var n=c,t=0;t<n.length;t++)(0,n[t])()}var o={},e={},i={},c=[];return{set:function(n){o=__assign({},o,n),t(),r()},get:function(t){return 0===Object.keys(o).length?n():t?o[t]:o},subscribe:function(n){if("function"!=typeof n)throw new Error("Expected listener to be a function.");var t=!0;return c.push(n),function(){if(t){t=!1;var r=c.indexOf(n);c.splice(r,1)}}},addToGroup:function(n,t){t in e||(e[t]=[]),e[t].push(n)},removeFromGroups:function(n){for(var t in e){var r=e[t];e[t]=r.filter(function(t){return t!==n})}},didGroupAlreadyMatch:function(n){return!!n&&!0===i[n]},setGroupMatched:function(n){i[n]=!0}}}();
})(publicPath);
})("comp-search","/build/comp-search/");
{
"name": "dbz-compsearch",
"version": "1.0.7",
"version": "1.0.8",
"description": "Search Web Component",

@@ -5,0 +5,0 @@ "main": "dist/comp-search.js",

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