Socket
Socket
Sign inDemoInstall

@mapbox/search-js-web

Package Overview
Dependencies
Maintainers
14
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mapbox/search-js-web - npm Package Compare versions

Comparing version 1.0.0-beta.4 to 1.0.0-beta.5

2

dist/index.js

@@ -27,3 +27,3 @@ var Si=Object.create;var Me=Object.defineProperty,Ai=Object.defineProperties,Li=Object.getOwnPropertyDescriptor,ki=Object.getOwnPropertyDescriptors,Ci=Object.getOwnPropertyNames,Xt=Object.getOwnPropertySymbols,wi=Object.getPrototypeOf,Wt=Object.prototype.hasOwnProperty,Ii=Object.prototype.propertyIsEnumerable;var $t=(r,e,i)=>e in r?Me(r,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[e]=i,g=(r,e)=>{for(var i in e||(e={}))Wt.call(e,i)&&$t(r,i,e[i]);if(Xt)for(var i of Xt(e))Ii.call(e,i)&&$t(r,i,e[i]);return r},Vt=(r,e)=>Ai(r,ki(e)),qt=r=>Me(r,"__esModule",{value:!0});var Hi=(r,e)=>{for(var i in e)Me(r,i,{get:e[i],enumerable:!0})},Gt=(r,e,i,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ci(e))!Wt.call(r,n)&&(i||n!=="default")&&Me(r,n,{get:()=>e[n],enumerable:!(s=Li(e,n))||s.enumerable});return r},ut=(r,e)=>Gt(qt(Me(r!=null?Si(wi(r)):{},"default",!e&&r&&r.__esModule?{get:()=>r.default,enumerable:!0}:{value:r,enumerable:!0})),r),Bi=(r=>(e,i)=>r&&r.get(e)||(i=Gt(qt({}),e,1),r&&r.set(e,i),i))(typeof WeakMap!="undefined"?new WeakMap:0);var Ct=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)};var t=(r,e,i)=>(Ct(r,e,"read from private field"),i?i.call(r):e.get(r)),a=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},d=(r,e,i,s)=>(Ct(r,e,"write to private field"),s?s.call(r,i):e.set(r,i),i);var b=(r,e,i)=>(Ct(r,e,"access private method"),i);var j=(r,e,i)=>new Promise((s,n)=>{var o=m=>{try{c(i.next(m))}catch(u){n(u)}},l=m=>{try{c(i.throw(m))}catch(u){n(u)}},c=m=>m.done?s(m.value):Promise.resolve(m.value).then(o,l);c((i=i.apply(r,e)).next())});var ds={};Hi(ds,{MapboxAddressAutofill:()=>z,MapboxAddressMinimap:()=>fe,MapboxHTMLEvent:()=>x,MapboxSearchBox:()=>me,autofill:()=>Ti});var Ot=require("@popperjs/core/lib/popper-lite");var Kt=document.implementation.createHTMLDocument();function ie(r,e){let i={};for(let[s,n]of Object.entries(e))i[s]=r.querySelector(n);return i}function Zt(r){return Array.from(r.childNodes||[]).filter(e=>e.nodeType===Node.ELEMENT_NODE)}function M(r){let e=document.createElement("template");return e.innerHTML=r,e.content.firstElementChild}function Jt(r){let e=Kt.createElement("style");return e.textContent=r,Kt.head.appendChild(e),e.sheet}function Qt(r){return window.getComputedStyle(r).display!=="none"}function L(r,e){if(!r)return;Object.getOwnPropertyDescriptor(r.constructor.prototype,"value").set.call(r,e);let s=r;s._valueTracker&&s._valueTracker.setValue("");let n=new Event("input",{bubbles:!0});n.simulated=!0,r.dispatchEvent(n);let o=new Event("change",{bubbles:!0});o.simulated=!0,r.dispatchEvent(o)}function pt(r,e=!1){let i,s,n=r.getBoundingClientRect();if(r.style.display==="none"||n.height===0&&n.width===0){let o=r.cloneNode(e);r.parentElement.appendChild(o),o.style.setProperty("display","block","important");let l=o.getBoundingClientRect();i=l.width,s=l.height,o.style.setProperty("display","none"),o.remove()}else i=n.width,s=n.height;return{height:Math.floor(s),width:Math.floor(i)}}var Ri=new RegExp("[_a-zA-Z]+[_a-zA-Z0-9-]*","g"),Pi=new RegExp(`\\.${Ri.source}`,"g"),Oi=new RegExp("^\\s*(@(?:media|supports)[^{]*){(.*)}\\s*$");function xe(r,e){return r.replace(Pi,i=>"."+e(i.slice(1)))}function wt(r,e){let s=Jt(r).cssRules;function n(l){if(l instanceof CSSStyleRule)return`${xe(l.selectorText,e)} { ${l.style.cssText} }`;let c=Oi.exec(l.cssText.split(`

</defs>
</svg>`;var Bt="1.0.0-beta.4";var Ni=`https://api.mapbox.com/search-js/v${Bt}/img/style-toggle-satellite.jpg`,zi=`https://api.mapbox.com/search-js/v${Bt}/img/style-toggle-default.jpg`,Yi=768-1,Ui=`@media only screen and (max-width: ${Yi}px)`,Rt={variables:{unit:["mobile","16px","14px"],unitHeader:["mobile","24px","18px"],minWidth:"min(300px, 100vw)",spacing:"0.75em",padding:"0.5em 0.75em",paddingModal:"1.25em",colorText:"rgba(0, 0, 0, 0.75)",colorPrimary:"#4264FB",colorSecondary:"#667F91",colorBackground:"#fff",colorBackgroundHover:"#f5f5f5",colorBackgroundActive:"#f0f0f0",colorBackdrop:"rgba(102, 127, 145, 0.3)",border:"none",borderRadius:"4px",boxShadow:`
</svg>`;var Bt="1.0.0-beta.5";var Ni=`https://api.mapbox.com/search-js/v${Bt}/img/style-toggle-satellite.jpg`,zi=`https://api.mapbox.com/search-js/v${Bt}/img/style-toggle-default.jpg`,Yi=768-1,Ui=`@media only screen and (max-width: ${Yi}px)`,Rt={variables:{unit:["mobile","16px","14px"],unitHeader:["mobile","24px","18px"],minWidth:"min(300px, 100vw)",spacing:"0.75em",padding:"0.5em 0.75em",paddingModal:"1.25em",colorText:"rgba(0, 0, 0, 0.75)",colorPrimary:"#4264FB",colorSecondary:"#667F91",colorBackground:"#fff",colorBackgroundHover:"#f5f5f5",colorBackgroundActive:"#f0f0f0",colorBackdrop:"rgba(102, 127, 145, 0.3)",border:"none",borderRadius:"4px",boxShadow:`
0 0 10px 2px rgba(0, 0, 0, 0.05),

@@ -30,0 +30,0 @@ 0 0 6px 1px rgba(0, 0, 0, 0.1),

{
"name": "@mapbox/search-js-web",
"version": "1.0.0-beta.4",
"version": "1.0.0-beta.5",
"description": "Search web component with form autocomplete.",

@@ -23,3 +23,3 @@ "main": "dist/index.js",

"dependencies": {
"@mapbox/search-js-core": "^1.0.0-beta.2.4",
"@mapbox/search-js-core": "^1.0.0-beta.5",
"@mapbox/sphericalmercator": "^1.2.0",

@@ -26,0 +26,0 @@ "@popperjs/core": "^2.11.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

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