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

@volvo-cars/market-sites

Package Overview
Dependencies
Maintainers
11
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@volvo-cars/market-sites - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

dist/getSiteSlug.d.ts

10

dist/index.d.ts

@@ -1,7 +0,5 @@

import { sites } from './sites';
import { markets } from './markets';
import { MarketSite as MarketSiteC } from './MarketSite';
export declare type SiteSlug = keyof typeof sites;
export declare type MarketSite = InstanceType<typeof MarketSiteC>;
export declare type RegionCode = keyof typeof markets;
export type { MarketSite } from './MarketSite';
export type { SiteSlug } from './sites';
export type { RegionCode } from './markets';
export { getMarketSite, getAllMarketSites, getMarketSitesByRegion, } from './MarketSite';
export { validateSiteSlug, isValidSiteSlug } from './validation';

2

dist/index.esm.js

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

for(var e={ar:["العربية","Arabic",!0],az:["azəri","Azerbaijani"],be:["беларуская","Belarusian"],bg:["български","Bulgarian"],bs:["bosanski","Bosnian"],cs:["čeština","Czech"],da:["dansk","Danish"],de:["Deutsch","German"],el:["Ελληνικά","Greek"],en:["English","English"],es:["español","Spanish"],et:["eesti","Estonian"],fi:["suomi","Finnish"],fr:["français","French"],he:["עברית","Hebrew",!0],hr:["hrvatski","Croatian"],hu:["magyar","Hungarian"],hy:["հայերեն","Armenian",!0],id:["Indonesia","Indonesian"],is:["íslenska","Icelandic"],it:["italiano","Italian"],ja:["日本語","Japanese"],ka:["ქართული","Georgian"],ko:["한국어","Korean"],km:["ខ្មែរ","Khmer"],lt:["lietuvių","Lithuanian"],lv:["latviešu","Latvian"],mk:["македонски","Macedonian"],no:["norsk","Norwegian"],nb:["norsk bokmål","Norwegian Bokmål"],nl:["Nederlands","Dutch"],pl:["polski","Polish"],pt:["português","Portuguese"],ro:["română","Romanian"],"ro-MD":["română","Moldavian"],ru:["русский","Russian"],sk:["slovenčina","Slovak"],sl:["slovenščina","Slovenian"],sq:["shqip","Albanian"],"sr-Latn":["srpski","Serbian"],"sr-ME":["crnogorski","Montenegrin"],sv:["svenska","Swedish"],th:["ไทย","Thai"],tr:["Türkçe","Turkish"],uk:["українська","Ukrainian"],vi:["Tiếng Việt","Vietnamese"],zh:["中文","Chinese"]},a={"001":"International",AE:"United Arab Emirates",AL:"Albania",AM:"Armenia",AO:"Angola",AR:"Argentina",AT:"Austria",AU:"Australia",AZ:"Azerbaijan",BA:"Bosnia & Herzegovina",BE:"Belgium",BG:"Bulgaria",BH:"Bahrain",BR:"Brazil",BW:"Botswana",BY:"Belarus",CA:"Canada",CH:"Switzerland",CL:"Chile",CN:"China",CO:"Colombia",CR:"Costa Rica",CY:"Cyprus",CZ:"Czechia",DE:"Germany",DK:"Denmark",DO:"Dominican Republic",EC:"Ecuador",EE:"Estonia",EG:"Egypt",ER:"Eritrea",ES:"Spain",FI:"Finland",FR:"France",GB:"United Kingdom",GE:"Georgia",GR:"Greece",GT:"Guatemala",HK:"Hong Kong, China",HR:"Croatia",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IN:"India",IS:"Iceland",IT:"Italy",JO:"Jordan",JP:"Japan",KE:"Kenya",KH:"Cambodia",KR:"South Korea",KW:"Kuwait",LB:"Lebanon",LK:"Sri Lanka",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",MA:"Morocco",MD:"Moldova",ME:"Montenegro",MK:"North Macedonia",MM:"Myanmar",MT:"Malta",MU:"Mauritius",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NL:"Netherlands",NO:"Norway",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Perú",PH:"Philippines",PL:"Poland",PR:"Puerto Rico",PT:"Portugal",PY:"Paraguay",QA:"Qatar",RO:"Romania",RS:"Serbia",RU:"Russia",SA:"Saudi Arabia",SE:"Sweden",SG:"Singapore",SI:"Slovenia",SK:"Slovakia",TH:"Thailand",TR:"Turkey",TW:"Taiwan, China",UA:"Ukraine",US:"United States",UY:"Uruguay",VN:"Vietnam",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",XA:"Armoured Cars",XD:"Diplomat",XM:"Military",XP:"Police",XX:"Master"},n={intl:["001","en"],"armoured-cars":["XA","en"],diplomat:["XD","en"],military:["XM","en"],police:["XP","en"],master:["XX","en"],al:["AL","sq"],ao:["AO","pt"],ar:["AR","es"],"hy-am":["AM","hy"],"en-am":["AM","en"],au:["AU","en"],at:["AT","de"],az:["AZ","az"],"ar-bh":["BH","ar"],"en-bh":["BH","en"],by:["BY","be"],"fr-be":["BE","fr"],"nl-be":["BE","nl"],ba:["BA","bs"],bw:["BW","en"],br:["BR","pt"],bg:["BG","bg"],kh:["KH","en"],"en-ca":["CA","en"],"fr-ca":["CA","fr"],cl:["CL","es"],"zh-cn":["CN","zh"],hk:["HK","en"],tw:["TW","zh"],co:["CO","es"],cr:["CR","es"],hr:["HR","hr"],cy:["CY","en"],cz:["CZ","cs"],dk:["DK","da"],do:["DO","es"],ec:["EC","es"],"ar-eg":["EG","ar"],"en-eg":["EG","en"],"et-ee":["EE","et"],fi:["FI","fi"],fr:["FR","fr"],ge:["GE","ka"],de:["DE","de"],gr:["GR","el"],gt:["GT","es"],hu:["HU","hu"],in:["IN","en"],id:["ID","id"],it:["IT","it"],is:["IS","is"],ie:["IE","en"],il:["IL","he"],jp:["JP","ja"],"ar-jo":["JO","ar"],"en-jo":["JO","en"],ke:["KE","en"],"ar-kw":["KW","ar"],"en-kw":["KW","en"],"lv-lv":["LV","lv"],lb:["LB","en"],"lt-lt":["LT","lt"],lu:["LU","fr"],mk:["MK","mk"],mt:["MT","en"],my:["MY","en"],mu:["MU","en"],mx:["MX","es"],"ru-md":["MD","ru"],"ro-md":["MD","ro-MD"],me:["ME","sr-ME"],ma:["MA","fr"],mz:["MZ","pt"],"en-mm":["MM","en"],na:["NA","en"],nl:["NL","nl"],nz:["NZ","en"],no:["NO","nb"],"ar-om":["OM","ar"],"en-om":["OM","en"],pa:["PA","es"],py:["PY","es"],pl:["PL","pl"],pt:["PT","pt"],pe:["PE","es"],ph:["PH","en"],pr:["PR","en"],"ar-qa":["QA","ar"],"en-qa":["QA","en"],ro:["RO","ro"],ru:["RU","ru"],"ar-sa":["SA","ar"],"en-sa":["SA","en"],rs:["RS","sr-Latn"],sg:["SG","en"],sk:["SK","sk"],si:["SI","sl"],za:["ZA","en"],kr:["KR","ko"],es:["ES","es"],"en-lk":["LK","en"],se:["SE","sv"],"fr-ch":["CH","fr"],"de-ch":["CH","de"],"it-ch":["CH","it"],"en-th":["TH","en"],"th-th":["TH","th"],tr:["TR","tr"],"uk-ua":["UA","uk"],"ar-ae":["AE","ar"],"en-ae":["AE","en"],uk:["GB","en"],us:["US","en"],uy:["UY","es"],zm:["ZM","en"],zw:["ZW","en"]},r={},i=0,t=Object.entries(n);i<t.length;i++){var o=t[i],s=o[0],l=o[1][0];r[l]||(r[l]=[]),r[l].push(s)}var u={"001":"kilometer",US:"mile",GB:"mile"},h=/^[a-zA-Z][a-zA-Z-]*[a-zA-Z]$/,m=function(n,i){var t=i[0],o=i[1],s=e[o],l=s[0],h=s[1],m=s[2];this.marketName=a[t],this.regionCode=t,this.siteSlug=n,this.languageName=h,this.localizedLanguageName=l,Object.defineProperties(this,{href:{enumerable:!0,get:function(){return"/"+n}},locale:{enumerable:!0,get:function(){return o.endsWith("-"+t)||t.startsWith("X")?o:o+"-"+t}},roadLengthUnit:{enumerable:!0,get:function(){return u[t]||u["001"]}},languageDirection:{enumerable:!0,get:function(){return m?"rtl":"ltr"}},multilingual:{enumerable:!0,get:function(){return r[t].length>1}}})};function g(e){var a=function(e){var a=e;if("string"!=typeof a)return a;if(a.startsWith("/")){var n=a.replace(/\/+/g,"/").split("/");n.length>1&&(a=n[1])}return a.toLowerCase()}(e);return function(e){if("string"!=typeof e)throw new TypeError("Site slug should be a string, got '"+typeof e+"'");if(""===e)throw new TypeError("Site slug should not be empty");if(!h.test(e))throw new TypeError("Invalid site slug '"+e+"'");if(!(e in n))throw new TypeError("No data available for '"+e+"'")}(a),new m(a,n[a])}function d(){return Object.keys(n).map(g)}function c(e){if("string"!=typeof e)throw new TypeError("Invalid region code. Expected string, got "+typeof e);var a=r[e.toUpperCase()];return a&&a.length>0?a.map(g):[]}export{d as getAllMarketSites,g as getMarketSite,c as getMarketSitesByRegion};
for(var e={ar:["العربية","Arabic",!0],az:["azəri","Azerbaijani"],be:["беларуская","Belarusian"],bg:["български","Bulgarian"],bs:["bosanski","Bosnian"],cs:["čeština","Czech"],da:["dansk","Danish"],de:["Deutsch","German"],el:["Ελληνικά","Greek"],en:["English","English"],es:["español","Spanish"],et:["eesti","Estonian"],fi:["suomi","Finnish"],fr:["français","French"],he:["עברית","Hebrew",!0],hr:["hrvatski","Croatian"],hu:["magyar","Hungarian"],hy:["հայերեն","Armenian",!0],id:["Indonesia","Indonesian"],is:["íslenska","Icelandic"],it:["italiano","Italian"],ja:["日本語","Japanese"],ka:["ქართული","Georgian"],ko:["한국어","Korean"],km:["ខ្មែរ","Khmer"],lt:["lietuvių","Lithuanian"],lv:["latviešu","Latvian"],mk:["македонски","Macedonian"],no:["norsk","Norwegian"],nl:["Nederlands","Dutch"],pl:["polski","Polish"],pt:["português","Portuguese"],ro:["română","Romanian"],"ro-MD":["română","Moldavian"],ru:["русский","Russian"],sk:["slovenčina","Slovak"],sl:["slovenščina","Slovenian"],sq:["shqip","Albanian"],"sr-Latn":["srpski","Serbian"],"sr-ME":["crnogorski","Montenegrin"],sv:["svenska","Swedish"],th:["ไทย","Thai"],tr:["Türkçe","Turkish"],uk:["українська","Ukrainian"],vi:["Tiếng Việt","Vietnamese"],zh:["中文","Chinese"]},a={"001":"International",AE:"United Arab Emirates",AL:"Albania",AM:"Armenia",AO:"Angola",AR:"Argentina",AT:"Austria",AU:"Australia",AZ:"Azerbaijan",BA:"Bosnia & Herzegovina",BE:"Belgium",BG:"Bulgaria",BH:"Bahrain",BR:"Brazil",BW:"Botswana",BY:"Belarus",CA:"Canada",CH:"Switzerland",CL:"Chile",CN:"China",CO:"Colombia",CR:"Costa Rica",CY:"Cyprus",CZ:"Czechia",DE:"Germany",DK:"Denmark",DO:"Dominican Republic",EC:"Ecuador",EE:"Estonia",EG:"Egypt",ER:"Eritrea",ES:"Spain",FI:"Finland",FR:"France",GB:"United Kingdom",GE:"Georgia",GR:"Greece",GT:"Guatemala",HK:"Hong Kong, China",HR:"Croatia",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IN:"India",IS:"Iceland",IT:"Italy",JO:"Jordan",JP:"Japan",KE:"Kenya",KH:"Cambodia",KR:"South Korea",KW:"Kuwait",LB:"Lebanon",LK:"Sri Lanka",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",MA:"Morocco",MD:"Moldova",ME:"Montenegro",MK:"North Macedonia",MM:"Myanmar",MT:"Malta",MU:"Mauritius",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NL:"Netherlands",NO:"Norway",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Perú",PH:"Philippines",PL:"Poland",PR:"Puerto Rico",PT:"Portugal",PY:"Paraguay",QA:"Qatar",RO:"Romania",RS:"Serbia",RU:"Russia",SA:"Saudi Arabia",SE:"Sweden",SG:"Singapore",SI:"Slovenia",SK:"Slovakia",TH:"Thailand",TR:"Turkey",TW:"Taiwan, China",UA:"Ukraine",US:"United States",UY:"Uruguay",VN:"Vietnam",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",XA:"Armoured Cars",XD:"Diplomat",XM:"Military",XP:"Police",XX:"Master"},n={intl:["001","en"],"armoured-cars":["XA","en"],diplomat:["XD","en"],military:["XM","en"],police:["XP","en"],master:["XX","en"],al:["AL","sq"],ao:["AO","pt"],ar:["AR","es"],"hy-am":["AM","hy"],"en-am":["AM","en"],au:["AU","en"],at:["AT","de"],az:["AZ","az"],"ar-bh":["BH","ar"],"en-bh":["BH","en"],by:["BY","be"],"fr-be":["BE","fr"],"nl-be":["BE","nl"],ba:["BA","bs"],bw:["BW","en"],br:["BR","pt"],bg:["BG","bg"],kh:["KH","en"],"en-ca":["CA","en"],"fr-ca":["CA","fr"],cl:["CL","es"],"zh-cn":["CN","zh"],hk:["HK","en"],tw:["TW","zh"],co:["CO","es"],cr:["CR","es"],hr:["HR","hr"],cy:["CY","en"],cz:["CZ","cs"],dk:["DK","da"],do:["DO","es"],ec:["EC","es"],"ar-eg":["EG","ar"],"en-eg":["EG","en"],"et-ee":["EE","et"],fi:["FI","fi"],fr:["FR","fr"],ge:["GE","ka"],de:["DE","de"],gr:["GR","el"],gt:["GT","es"],hu:["HU","hu"],in:["IN","en"],id:["ID","id"],it:["IT","it"],is:["IS","is"],ie:["IE","en"],il:["IL","he"],jp:["JP","ja"],"ar-jo":["JO","ar"],"en-jo":["JO","en"],ke:["KE","en"],"ar-kw":["KW","ar"],"en-kw":["KW","en"],"lv-lv":["LV","lv"],lb:["LB","en"],"lt-lt":["LT","lt"],lu:["LU","fr"],mk:["MK","mk"],mt:["MT","en"],my:["MY","en"],mu:["MU","en"],mx:["MX","es"],"ru-md":["MD","ru"],"ro-md":["MD","ro-MD"],me:["ME","sr-ME"],ma:["MA","fr"],mz:["MZ","pt"],"en-mm":["MM","en"],na:["NA","en"],nl:["NL","nl"],nz:["NZ","en"],no:["NO","no"],"ar-om":["OM","ar"],"en-om":["OM","en"],pa:["PA","es"],py:["PY","es"],pl:["PL","pl"],pt:["PT","pt"],pe:["PE","es"],ph:["PH","en"],pr:["PR","en"],"ar-qa":["QA","ar"],"en-qa":["QA","en"],ro:["RO","ro"],ru:["RU","ru"],"ar-sa":["SA","ar"],"en-sa":["SA","en"],rs:["RS","sr-Latn"],sg:["SG","en"],sk:["SK","sk"],si:["SI","sl"],za:["ZA","en"],kr:["KR","ko"],es:["ES","es"],"en-lk":["LK","en"],se:["SE","sv"],"fr-ch":["CH","fr"],"de-ch":["CH","de"],"it-ch":["CH","it"],"en-th":["TH","en"],"th-th":["TH","th"],tr:["TR","tr"],"uk-ua":["UA","uk"],"ar-ae":["AE","ar"],"en-ae":["AE","en"],uk:["GB","en"],us:["US","en"],uy:["UY","es"],zm:["ZM","en"],zw:["ZW","en"]},r={},i={},t=0,o=Object.entries(n);t<o.length;t++){var s=o[t],l=s[0],u=s[1],h=u[0],m=u[1];r[h]||(r[h]=[]),r[h].push(l),i[m]||(i[m]=[]),i[m].push(l)}var g={"001":"kilometer",US:"mile",GB:"mile"},c=/^[a-zA-Z][a-zA-Z-]*[a-zA-Z]$/;function d(e){if("string"!=typeof e)throw new TypeError("Site slug should be a string, got '"+typeof e+"'");if(""===e)throw new TypeError("Site slug should not be empty");if(!c.test(e))throw new TypeError("Invalid site slug '"+e+"'");if(!(e in n))throw new TypeError("No such market site '"+e+"'")}function A(e){try{d(e)}catch(e){return!1}return!0}var p=function(n,t,o){var s=e[t],l=s[0],u=s[1],h=s[2];this.marketName=a[o],this.regionCode=o,this.siteSlug=n,this.languageName=u,this.localizedLanguageName=l,Object.defineProperties(this,{href:{enumerable:!0,get:function(){return n?"/"+n:"/"}},locale:{enumerable:!0,get:function(){return!o||t.endsWith("-"+o)||(null==o?void 0:o.startsWith("X"))?t:t+"-"+o}},roadLengthUnit:{enumerable:!0,get:function(){return g[o]||g["001"]}},languageDirection:{enumerable:!0,get:function(){return h?"rtl":"ltr"}},multilingual:{enumerable:!0,get:function(){var e;return(null==(e=r[o])?void 0:e.length)>1}},htmlLanguage:{enumerable:!0,get:function(){return 1===i[t].length||(null==o?void 0:o.match(/\d+/))?t:this.locale}}})};function M(e){var a=function(e){var a=e;if("string"!=typeof a)return a;if(a.startsWith("/")){var n=a.replace(/\/+/g,"/").split("/");n.length>1&&(a=n[1])}return a.toLowerCase()}(e);if(!A(a))return new p(void 0,"en",void 0);var r=n[a];return new p(a,r[1],r[0])}function b(){return Object.keys(n).map(M)}function E(e){if("string"!=typeof e)throw new TypeError("Invalid region code. Expected string, got "+typeof e);var a=r[e.toUpperCase()];return a&&a.length>0?a.map(M):[]}export{b as getAllMarketSites,M as getMarketSite,E as getMarketSitesByRegion,A as isValidSiteSlug,d as validateSiteSlug};
//# sourceMappingURL=index.esm.js.map

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

for(var e={ar:["العربية","Arabic",!0],az:["azəri","Azerbaijani"],be:["беларуская","Belarusian"],bg:["български","Bulgarian"],bs:["bosanski","Bosnian"],cs:["čeština","Czech"],da:["dansk","Danish"],de:["Deutsch","German"],el:["Ελληνικά","Greek"],en:["English","English"],es:["español","Spanish"],et:["eesti","Estonian"],fi:["suomi","Finnish"],fr:["français","French"],he:["עברית","Hebrew",!0],hr:["hrvatski","Croatian"],hu:["magyar","Hungarian"],hy:["հայերեն","Armenian",!0],id:["Indonesia","Indonesian"],is:["íslenska","Icelandic"],it:["italiano","Italian"],ja:["日本語","Japanese"],ka:["ქართული","Georgian"],ko:["한국어","Korean"],km:["ខ្មែរ","Khmer"],lt:["lietuvių","Lithuanian"],lv:["latviešu","Latvian"],mk:["македонски","Macedonian"],no:["norsk","Norwegian"],nb:["norsk bokmål","Norwegian Bokmål"],nl:["Nederlands","Dutch"],pl:["polski","Polish"],pt:["português","Portuguese"],ro:["română","Romanian"],"ro-MD":["română","Moldavian"],ru:["русский","Russian"],sk:["slovenčina","Slovak"],sl:["slovenščina","Slovenian"],sq:["shqip","Albanian"],"sr-Latn":["srpski","Serbian"],"sr-ME":["crnogorski","Montenegrin"],sv:["svenska","Swedish"],th:["ไทย","Thai"],tr:["Türkçe","Turkish"],uk:["українська","Ukrainian"],vi:["Tiếng Việt","Vietnamese"],zh:["中文","Chinese"]},a={"001":"International",AE:"United Arab Emirates",AL:"Albania",AM:"Armenia",AO:"Angola",AR:"Argentina",AT:"Austria",AU:"Australia",AZ:"Azerbaijan",BA:"Bosnia & Herzegovina",BE:"Belgium",BG:"Bulgaria",BH:"Bahrain",BR:"Brazil",BW:"Botswana",BY:"Belarus",CA:"Canada",CH:"Switzerland",CL:"Chile",CN:"China",CO:"Colombia",CR:"Costa Rica",CY:"Cyprus",CZ:"Czechia",DE:"Germany",DK:"Denmark",DO:"Dominican Republic",EC:"Ecuador",EE:"Estonia",EG:"Egypt",ER:"Eritrea",ES:"Spain",FI:"Finland",FR:"France",GB:"United Kingdom",GE:"Georgia",GR:"Greece",GT:"Guatemala",HK:"Hong Kong, China",HR:"Croatia",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IN:"India",IS:"Iceland",IT:"Italy",JO:"Jordan",JP:"Japan",KE:"Kenya",KH:"Cambodia",KR:"South Korea",KW:"Kuwait",LB:"Lebanon",LK:"Sri Lanka",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",MA:"Morocco",MD:"Moldova",ME:"Montenegro",MK:"North Macedonia",MM:"Myanmar",MT:"Malta",MU:"Mauritius",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NL:"Netherlands",NO:"Norway",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Perú",PH:"Philippines",PL:"Poland",PR:"Puerto Rico",PT:"Portugal",PY:"Paraguay",QA:"Qatar",RO:"Romania",RS:"Serbia",RU:"Russia",SA:"Saudi Arabia",SE:"Sweden",SG:"Singapore",SI:"Slovenia",SK:"Slovakia",TH:"Thailand",TR:"Turkey",TW:"Taiwan, China",UA:"Ukraine",US:"United States",UY:"Uruguay",VN:"Vietnam",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",XA:"Armoured Cars",XD:"Diplomat",XM:"Military",XP:"Police",XX:"Master"},n={intl:["001","en"],"armoured-cars":["XA","en"],diplomat:["XD","en"],military:["XM","en"],police:["XP","en"],master:["XX","en"],al:["AL","sq"],ao:["AO","pt"],ar:["AR","es"],"hy-am":["AM","hy"],"en-am":["AM","en"],au:["AU","en"],at:["AT","de"],az:["AZ","az"],"ar-bh":["BH","ar"],"en-bh":["BH","en"],by:["BY","be"],"fr-be":["BE","fr"],"nl-be":["BE","nl"],ba:["BA","bs"],bw:["BW","en"],br:["BR","pt"],bg:["BG","bg"],kh:["KH","en"],"en-ca":["CA","en"],"fr-ca":["CA","fr"],cl:["CL","es"],"zh-cn":["CN","zh"],hk:["HK","en"],tw:["TW","zh"],co:["CO","es"],cr:["CR","es"],hr:["HR","hr"],cy:["CY","en"],cz:["CZ","cs"],dk:["DK","da"],do:["DO","es"],ec:["EC","es"],"ar-eg":["EG","ar"],"en-eg":["EG","en"],"et-ee":["EE","et"],fi:["FI","fi"],fr:["FR","fr"],ge:["GE","ka"],de:["DE","de"],gr:["GR","el"],gt:["GT","es"],hu:["HU","hu"],in:["IN","en"],id:["ID","id"],it:["IT","it"],is:["IS","is"],ie:["IE","en"],il:["IL","he"],jp:["JP","ja"],"ar-jo":["JO","ar"],"en-jo":["JO","en"],ke:["KE","en"],"ar-kw":["KW","ar"],"en-kw":["KW","en"],"lv-lv":["LV","lv"],lb:["LB","en"],"lt-lt":["LT","lt"],lu:["LU","fr"],mk:["MK","mk"],mt:["MT","en"],my:["MY","en"],mu:["MU","en"],mx:["MX","es"],"ru-md":["MD","ru"],"ro-md":["MD","ro-MD"],me:["ME","sr-ME"],ma:["MA","fr"],mz:["MZ","pt"],"en-mm":["MM","en"],na:["NA","en"],nl:["NL","nl"],nz:["NZ","en"],no:["NO","nb"],"ar-om":["OM","ar"],"en-om":["OM","en"],pa:["PA","es"],py:["PY","es"],pl:["PL","pl"],pt:["PT","pt"],pe:["PE","es"],ph:["PH","en"],pr:["PR","en"],"ar-qa":["QA","ar"],"en-qa":["QA","en"],ro:["RO","ro"],ru:["RU","ru"],"ar-sa":["SA","ar"],"en-sa":["SA","en"],rs:["RS","sr-Latn"],sg:["SG","en"],sk:["SK","sk"],si:["SI","sl"],za:["ZA","en"],kr:["KR","ko"],es:["ES","es"],"en-lk":["LK","en"],se:["SE","sv"],"fr-ch":["CH","fr"],"de-ch":["CH","de"],"it-ch":["CH","it"],"en-th":["TH","en"],"th-th":["TH","th"],tr:["TR","tr"],"uk-ua":["UA","uk"],"ar-ae":["AE","ar"],"en-ae":["AE","en"],uk:["GB","en"],us:["US","en"],uy:["UY","es"],zm:["ZM","en"],zw:["ZW","en"]},r={},i=0,t=Object.entries(n);i<t.length;i++){var o=t[i],s=o[0],l=o[1][0];r[l]||(r[l]=[]),r[l].push(s)}var u={"001":"kilometer",US:"mile",GB:"mile"},h=/^[a-zA-Z][a-zA-Z-]*[a-zA-Z]$/,g=function(n,i){var t=i[0],o=i[1],s=e[o],l=s[0],h=s[1],g=s[2];this.marketName=a[t],this.regionCode=t,this.siteSlug=n,this.languageName=h,this.localizedLanguageName=l,Object.defineProperties(this,{href:{enumerable:!0,get:function(){return"/"+n}},locale:{enumerable:!0,get:function(){return o.endsWith("-"+t)||t.startsWith("X")?o:o+"-"+t}},roadLengthUnit:{enumerable:!0,get:function(){return u[t]||u["001"]}},languageDirection:{enumerable:!0,get:function(){return g?"rtl":"ltr"}},multilingual:{enumerable:!0,get:function(){return r[t].length>1}}})};function m(e){var a=function(e){var a=e;if("string"!=typeof a)return a;if(a.startsWith("/")){var n=a.replace(/\/+/g,"/").split("/");n.length>1&&(a=n[1])}return a.toLowerCase()}(e);return function(e){if("string"!=typeof e)throw new TypeError("Site slug should be a string, got '"+typeof e+"'");if(""===e)throw new TypeError("Site slug should not be empty");if(!h.test(e))throw new TypeError("Invalid site slug '"+e+"'");if(!(e in n))throw new TypeError("No data available for '"+e+"'")}(a),new g(a,n[a])}exports.getAllMarketSites=function(){return Object.keys(n).map(m)},exports.getMarketSite=m,exports.getMarketSitesByRegion=function(e){if("string"!=typeof e)throw new TypeError("Invalid region code. Expected string, got "+typeof e);var a=r[e.toUpperCase()];return a&&a.length>0?a.map(m):[]};
for(var e={ar:["العربية","Arabic",!0],az:["azəri","Azerbaijani"],be:["беларуская","Belarusian"],bg:["български","Bulgarian"],bs:["bosanski","Bosnian"],cs:["čeština","Czech"],da:["dansk","Danish"],de:["Deutsch","German"],el:["Ελληνικά","Greek"],en:["English","English"],es:["español","Spanish"],et:["eesti","Estonian"],fi:["suomi","Finnish"],fr:["français","French"],he:["עברית","Hebrew",!0],hr:["hrvatski","Croatian"],hu:["magyar","Hungarian"],hy:["հայերեն","Armenian",!0],id:["Indonesia","Indonesian"],is:["íslenska","Icelandic"],it:["italiano","Italian"],ja:["日本語","Japanese"],ka:["ქართული","Georgian"],ko:["한국어","Korean"],km:["ខ្មែរ","Khmer"],lt:["lietuvių","Lithuanian"],lv:["latviešu","Latvian"],mk:["македонски","Macedonian"],no:["norsk","Norwegian"],nl:["Nederlands","Dutch"],pl:["polski","Polish"],pt:["português","Portuguese"],ro:["română","Romanian"],"ro-MD":["română","Moldavian"],ru:["русский","Russian"],sk:["slovenčina","Slovak"],sl:["slovenščina","Slovenian"],sq:["shqip","Albanian"],"sr-Latn":["srpski","Serbian"],"sr-ME":["crnogorski","Montenegrin"],sv:["svenska","Swedish"],th:["ไทย","Thai"],tr:["Türkçe","Turkish"],uk:["українська","Ukrainian"],vi:["Tiếng Việt","Vietnamese"],zh:["中文","Chinese"]},a={"001":"International",AE:"United Arab Emirates",AL:"Albania",AM:"Armenia",AO:"Angola",AR:"Argentina",AT:"Austria",AU:"Australia",AZ:"Azerbaijan",BA:"Bosnia & Herzegovina",BE:"Belgium",BG:"Bulgaria",BH:"Bahrain",BR:"Brazil",BW:"Botswana",BY:"Belarus",CA:"Canada",CH:"Switzerland",CL:"Chile",CN:"China",CO:"Colombia",CR:"Costa Rica",CY:"Cyprus",CZ:"Czechia",DE:"Germany",DK:"Denmark",DO:"Dominican Republic",EC:"Ecuador",EE:"Estonia",EG:"Egypt",ER:"Eritrea",ES:"Spain",FI:"Finland",FR:"France",GB:"United Kingdom",GE:"Georgia",GR:"Greece",GT:"Guatemala",HK:"Hong Kong, China",HR:"Croatia",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IN:"India",IS:"Iceland",IT:"Italy",JO:"Jordan",JP:"Japan",KE:"Kenya",KH:"Cambodia",KR:"South Korea",KW:"Kuwait",LB:"Lebanon",LK:"Sri Lanka",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",MA:"Morocco",MD:"Moldova",ME:"Montenegro",MK:"North Macedonia",MM:"Myanmar",MT:"Malta",MU:"Mauritius",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NL:"Netherlands",NO:"Norway",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Perú",PH:"Philippines",PL:"Poland",PR:"Puerto Rico",PT:"Portugal",PY:"Paraguay",QA:"Qatar",RO:"Romania",RS:"Serbia",RU:"Russia",SA:"Saudi Arabia",SE:"Sweden",SG:"Singapore",SI:"Slovenia",SK:"Slovakia",TH:"Thailand",TR:"Turkey",TW:"Taiwan, China",UA:"Ukraine",US:"United States",UY:"Uruguay",VN:"Vietnam",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",XA:"Armoured Cars",XD:"Diplomat",XM:"Military",XP:"Police",XX:"Master"},n={intl:["001","en"],"armoured-cars":["XA","en"],diplomat:["XD","en"],military:["XM","en"],police:["XP","en"],master:["XX","en"],al:["AL","sq"],ao:["AO","pt"],ar:["AR","es"],"hy-am":["AM","hy"],"en-am":["AM","en"],au:["AU","en"],at:["AT","de"],az:["AZ","az"],"ar-bh":["BH","ar"],"en-bh":["BH","en"],by:["BY","be"],"fr-be":["BE","fr"],"nl-be":["BE","nl"],ba:["BA","bs"],bw:["BW","en"],br:["BR","pt"],bg:["BG","bg"],kh:["KH","en"],"en-ca":["CA","en"],"fr-ca":["CA","fr"],cl:["CL","es"],"zh-cn":["CN","zh"],hk:["HK","en"],tw:["TW","zh"],co:["CO","es"],cr:["CR","es"],hr:["HR","hr"],cy:["CY","en"],cz:["CZ","cs"],dk:["DK","da"],do:["DO","es"],ec:["EC","es"],"ar-eg":["EG","ar"],"en-eg":["EG","en"],"et-ee":["EE","et"],fi:["FI","fi"],fr:["FR","fr"],ge:["GE","ka"],de:["DE","de"],gr:["GR","el"],gt:["GT","es"],hu:["HU","hu"],in:["IN","en"],id:["ID","id"],it:["IT","it"],is:["IS","is"],ie:["IE","en"],il:["IL","he"],jp:["JP","ja"],"ar-jo":["JO","ar"],"en-jo":["JO","en"],ke:["KE","en"],"ar-kw":["KW","ar"],"en-kw":["KW","en"],"lv-lv":["LV","lv"],lb:["LB","en"],"lt-lt":["LT","lt"],lu:["LU","fr"],mk:["MK","mk"],mt:["MT","en"],my:["MY","en"],mu:["MU","en"],mx:["MX","es"],"ru-md":["MD","ru"],"ro-md":["MD","ro-MD"],me:["ME","sr-ME"],ma:["MA","fr"],mz:["MZ","pt"],"en-mm":["MM","en"],na:["NA","en"],nl:["NL","nl"],nz:["NZ","en"],no:["NO","no"],"ar-om":["OM","ar"],"en-om":["OM","en"],pa:["PA","es"],py:["PY","es"],pl:["PL","pl"],pt:["PT","pt"],pe:["PE","es"],ph:["PH","en"],pr:["PR","en"],"ar-qa":["QA","ar"],"en-qa":["QA","en"],ro:["RO","ro"],ru:["RU","ru"],"ar-sa":["SA","ar"],"en-sa":["SA","en"],rs:["RS","sr-Latn"],sg:["SG","en"],sk:["SK","sk"],si:["SI","sl"],za:["ZA","en"],kr:["KR","ko"],es:["ES","es"],"en-lk":["LK","en"],se:["SE","sv"],"fr-ch":["CH","fr"],"de-ch":["CH","de"],"it-ch":["CH","it"],"en-th":["TH","en"],"th-th":["TH","th"],tr:["TR","tr"],"uk-ua":["UA","uk"],"ar-ae":["AE","ar"],"en-ae":["AE","en"],uk:["GB","en"],us:["US","en"],uy:["UY","es"],zm:["ZM","en"],zw:["ZW","en"]},r={},i={},t=0,o=Object.entries(n);t<o.length;t++){var s=o[t],l=s[0],u=s[1],h=u[0],g=u[1];r[h]||(r[h]=[]),r[h].push(l),i[g]||(i[g]=[]),i[g].push(l)}var m={"001":"kilometer",US:"mile",GB:"mile"},d=/^[a-zA-Z][a-zA-Z-]*[a-zA-Z]$/;function c(e){if("string"!=typeof e)throw new TypeError("Site slug should be a string, got '"+typeof e+"'");if(""===e)throw new TypeError("Site slug should not be empty");if(!d.test(e))throw new TypeError("Invalid site slug '"+e+"'");if(!(e in n))throw new TypeError("No such market site '"+e+"'")}function A(e){try{c(e)}catch(e){return!1}return!0}var p=function(n,t,o){var s=e[t],l=s[0],u=s[1],h=s[2];this.marketName=a[o],this.regionCode=o,this.siteSlug=n,this.languageName=u,this.localizedLanguageName=l,Object.defineProperties(this,{href:{enumerable:!0,get:function(){return n?"/"+n:"/"}},locale:{enumerable:!0,get:function(){return!o||t.endsWith("-"+o)||(null==o?void 0:o.startsWith("X"))?t:t+"-"+o}},roadLengthUnit:{enumerable:!0,get:function(){return m[o]||m["001"]}},languageDirection:{enumerable:!0,get:function(){return h?"rtl":"ltr"}},multilingual:{enumerable:!0,get:function(){var e;return(null==(e=r[o])?void 0:e.length)>1}},htmlLanguage:{enumerable:!0,get:function(){return 1===i[t].length||(null==o?void 0:o.match(/\d+/))?t:this.locale}}})};function M(e){var a=function(e){var a=e;if("string"!=typeof a)return a;if(a.startsWith("/")){var n=a.replace(/\/+/g,"/").split("/");n.length>1&&(a=n[1])}return a.toLowerCase()}(e);if(!A(a))return new p(void 0,"en",void 0);var r=n[a];return new p(a,r[1],r[0])}exports.getAllMarketSites=function(){return Object.keys(n).map(M)},exports.getMarketSite=M,exports.getMarketSitesByRegion=function(e){if("string"!=typeof e)throw new TypeError("Invalid region code. Expected string, got "+typeof e);var a=r[e.toUpperCase()];return a&&a.length>0?a.map(M):[]},exports.isValidSiteSlug=A,exports.validateSiteSlug=c;
//# sourceMappingURL=index.js.map

@@ -40,3 +40,2 @@ /**

readonly no: readonly ["norsk", "Norwegian"];
readonly nb: readonly ["norsk bokmål", "Norwegian Bokmål"];
readonly nl: readonly ["Nederlands", "Dutch"];

@@ -43,0 +42,0 @@ readonly pl: readonly ["polski", "Polish"];

@@ -113,1 +113,2 @@ /**

};
export declare type RegionCode = keyof typeof markets;

@@ -1,4 +0,5 @@

import { MarketSiteData } from './sites';
import { LanguageCode } from './languages';
import { RegionCode } from './markets';
import { SiteSlug } from './sites';
import { RoadLengthUnit } from './units';
import { SiteSlug, RegionCode } from '.';
export declare class MarketSite {

@@ -8,3 +9,3 @@ /**

*/
readonly siteSlug: SiteSlug;
readonly siteSlug?: SiteSlug;
/**

@@ -19,7 +20,7 @@ * URL to the home page of the market site, e.g. https://www.volvocars.com/uk.

*/
readonly marketName: string;
readonly marketName?: string;
/**
* Market region or country code.
*/
readonly regionCode: RegionCode;
readonly regionCode?: RegionCode;
/**

@@ -50,6 +51,12 @@ * Name of the market site language in English.

/**
* A locale that's only includes the region suffix if required to distinguish
* between different market sites. Suitable for `<html lang="">`.
*/
readonly htmlLanguage: string;
/**
* Road length unit for region (mile or kilometer).
*/
readonly roadLengthUnit: RoadLengthUnit;
constructor(siteSlug: SiteSlug, [regionCode, languageCode]: MarketSiteData);
constructor(siteSlug: undefined, languageCode: LanguageCode, regionCode: undefined);
constructor(siteSlug: SiteSlug, languageCode: LanguageCode, regionCode: RegionCode);
}

@@ -59,2 +66,1 @@ export declare function getMarketSite(siteSlugOrPathName: string): MarketSite;

export declare function getMarketSitesByRegion(regionCode: string): MarketSite[];
export declare function getSiteSlug(siteSlugOrPathname?: string): string | undefined;
import { LanguageCode } from './languages';
import { RegionCode } from './';
import { RegionCode } from './markets';
export declare type MarketSiteData = Readonly<[RegionCode, LanguageCode]>;

@@ -95,3 +95,3 @@ /**

readonly nz: readonly ["NZ", "en"];
readonly no: readonly ["NO", "nb"];
readonly no: readonly ["NO", "no"];
readonly 'ar-om': readonly ["OM", "ar"];

@@ -136,2 +136,4 @@ readonly 'en-om': readonly ["OM", "en"];

};
export declare const siteSlugByRegionCode: Record<"001" | "XA" | "XD" | "XM" | "XP" | "XX" | "AL" | "AO" | "AR" | "AM" | "AU" | "AT" | "AZ" | "BH" | "BY" | "BE" | "BA" | "BW" | "BR" | "BG" | "KH" | "CA" | "CL" | "CN" | "HK" | "TW" | "CO" | "CR" | "HR" | "CY" | "CZ" | "DK" | "DO" | "EC" | "EG" | "EE" | "FI" | "FR" | "GE" | "DE" | "GR" | "GT" | "HU" | "IN" | "ID" | "IT" | "IS" | "IE" | "IL" | "JP" | "JO" | "KE" | "KW" | "LV" | "LB" | "LT" | "LU" | "MK" | "MT" | "MY" | "MU" | "MX" | "MD" | "ME" | "MA" | "MZ" | "MM" | "NA" | "NL" | "NZ" | "NO" | "OM" | "PA" | "PY" | "PL" | "PT" | "PE" | "PH" | "PR" | "QA" | "RO" | "RU" | "SA" | "RS" | "SG" | "SK" | "SI" | "ZA" | "KR" | "ES" | "LK" | "SE" | "CH" | "TH" | "TR" | "UA" | "AE" | "GB" | "US" | "UY" | "ZM" | "ZW" | "ER" | "VN", ("pt" | "es" | "de" | "az" | "ar" | "fr" | "nl" | "bg" | "hr" | "fi" | "hu" | "id" | "it" | "is" | "mk" | "ru" | "pl" | "ro" | "sk" | "tr" | "uk" | "intl" | "armoured-cars" | "diplomat" | "military" | "police" | "master" | "al" | "ao" | "hy-am" | "en-am" | "au" | "at" | "ar-bh" | "en-bh" | "by" | "fr-be" | "nl-be" | "ba" | "bw" | "br" | "kh" | "en-ca" | "fr-ca" | "cl" | "zh-cn" | "hk" | "tw" | "co" | "cr" | "cy" | "cz" | "dk" | "do" | "ec" | "ar-eg" | "en-eg" | "et-ee" | "ge" | "gr" | "gt" | "in" | "ie" | "il" | "jp" | "ar-jo" | "en-jo" | "ke" | "ar-kw" | "en-kw" | "lv-lv" | "lb" | "lt-lt" | "lu" | "mt" | "my" | "mu" | "mx" | "ru-md" | "ro-md" | "me" | "ma" | "mz" | "en-mm" | "na" | "nz" | "no" | "ar-om" | "en-om" | "pa" | "py" | "pe" | "ph" | "pr" | "ar-qa" | "en-qa" | "ar-sa" | "en-sa" | "rs" | "sg" | "si" | "za" | "kr" | "en-lk" | "se" | "fr-ch" | "de-ch" | "it-ch" | "en-th" | "th-th" | "uk-ua" | "ar-ae" | "en-ae" | "us" | "uy" | "zm" | "zw")[]>;
export declare const siteSlugByRegionCode: Record<"001" | "XA" | "XD" | "XM" | "XP" | "XX" | "AL" | "AO" | "AR" | "AM" | "AU" | "AT" | "AZ" | "BH" | "BY" | "BE" | "BA" | "BW" | "BR" | "BG" | "KH" | "CA" | "CL" | "CN" | "HK" | "TW" | "CO" | "CR" | "HR" | "CY" | "CZ" | "DK" | "DO" | "EC" | "EG" | "EE" | "FI" | "FR" | "GE" | "DE" | "GR" | "GT" | "HU" | "IN" | "ID" | "IT" | "IS" | "IE" | "IL" | "JP" | "JO" | "KE" | "KW" | "LV" | "LB" | "LT" | "LU" | "MK" | "MT" | "MY" | "MU" | "MX" | "MD" | "ME" | "MA" | "MZ" | "MM" | "NA" | "NL" | "NZ" | "NO" | "OM" | "PA" | "PY" | "PL" | "PT" | "PE" | "PH" | "PR" | "QA" | "RO" | "RU" | "SA" | "RS" | "SG" | "SK" | "SI" | "ZA" | "KR" | "ES" | "LK" | "SE" | "CH" | "TH" | "TR" | "UA" | "AE" | "GB" | "US" | "UY" | "ZM" | "ZW" | "ER" | "VN", ("pt" | "es" | "de" | "az" | "ar" | "fr" | "nl" | "bg" | "hr" | "fi" | "hu" | "id" | "it" | "is" | "mk" | "ru" | "no" | "pl" | "ro" | "sk" | "tr" | "uk" | "intl" | "armoured-cars" | "diplomat" | "military" | "police" | "master" | "al" | "ao" | "hy-am" | "en-am" | "au" | "at" | "ar-bh" | "en-bh" | "by" | "fr-be" | "nl-be" | "ba" | "bw" | "br" | "kh" | "en-ca" | "fr-ca" | "cl" | "zh-cn" | "hk" | "tw" | "co" | "cr" | "cy" | "cz" | "dk" | "do" | "ec" | "ar-eg" | "en-eg" | "et-ee" | "ge" | "gr" | "gt" | "in" | "ie" | "il" | "jp" | "ar-jo" | "en-jo" | "ke" | "ar-kw" | "en-kw" | "lv-lv" | "lb" | "lt-lt" | "lu" | "mt" | "my" | "mu" | "mx" | "ru-md" | "ro-md" | "me" | "ma" | "mz" | "en-mm" | "na" | "nz" | "ar-om" | "en-om" | "pa" | "py" | "pe" | "ph" | "pr" | "ar-qa" | "en-qa" | "ar-sa" | "en-sa" | "rs" | "sg" | "si" | "za" | "kr" | "en-lk" | "se" | "fr-ch" | "de-ch" | "it-ch" | "en-th" | "th-th" | "uk-ua" | "ar-ae" | "en-ae" | "us" | "uy" | "zm" | "zw")[]>;
export declare const siteSlugByLanguageCode: Record<"en" | "sq" | "pt" | "es" | "hy" | "de" | "az" | "ar" | "be" | "fr" | "nl" | "bs" | "bg" | "zh" | "hr" | "cs" | "da" | "et" | "fi" | "ka" | "el" | "hu" | "id" | "it" | "is" | "he" | "ja" | "lv" | "lt" | "mk" | "ru" | "ro-MD" | "sr-ME" | "no" | "pl" | "ro" | "sr-Latn" | "sk" | "sl" | "ko" | "sv" | "th" | "tr" | "uk" | "km" | "vi", ("pt" | "es" | "de" | "az" | "ar" | "fr" | "nl" | "bg" | "hr" | "fi" | "hu" | "id" | "it" | "is" | "mk" | "ru" | "no" | "pl" | "ro" | "sk" | "tr" | "uk" | "intl" | "armoured-cars" | "diplomat" | "military" | "police" | "master" | "al" | "ao" | "hy-am" | "en-am" | "au" | "at" | "ar-bh" | "en-bh" | "by" | "fr-be" | "nl-be" | "ba" | "bw" | "br" | "kh" | "en-ca" | "fr-ca" | "cl" | "zh-cn" | "hk" | "tw" | "co" | "cr" | "cy" | "cz" | "dk" | "do" | "ec" | "ar-eg" | "en-eg" | "et-ee" | "ge" | "gr" | "gt" | "in" | "ie" | "il" | "jp" | "ar-jo" | "en-jo" | "ke" | "ar-kw" | "en-kw" | "lv-lv" | "lb" | "lt-lt" | "lu" | "mt" | "my" | "mu" | "mx" | "ru-md" | "ro-md" | "me" | "ma" | "mz" | "en-mm" | "na" | "nz" | "ar-om" | "en-om" | "pa" | "py" | "pe" | "ph" | "pr" | "ar-qa" | "en-qa" | "ar-sa" | "en-sa" | "rs" | "sg" | "si" | "za" | "kr" | "en-lk" | "se" | "fr-ch" | "de-ch" | "it-ch" | "en-th" | "th-th" | "uk-ua" | "ar-ae" | "en-ae" | "us" | "uy" | "zm" | "zw")[]>;
export declare type SiteSlug = keyof typeof sites;

@@ -1,3 +0,3 @@

import { SiteSlug } from '.';
import { SiteSlug } from './sites';
export declare function validateSiteSlug(siteSlug?: string): asserts siteSlug is SiteSlug;
export declare function isValidSiteSlug(siteSlug?: string): siteSlug is SiteSlug;

@@ -7,3 +7,3 @@ {

"name": "@volvo-cars/market-sites",
"version": "0.0.3",
"version": "0.0.4",
"files": [

@@ -10,0 +10,0 @@ "dist"

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