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

vue-i18n-routing

Package Overview
Dependencies
Maintainers
1
Versions
239
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-i18n-routing - npm Package Compare versions

Comparing version 0.0.0-05f2feb to 0.0.0-071fc4e

dist/vue-i18n-routing.js

23

dist/vue-i18n-routing.d.ts
import type { Composer } from '@intlify/vue-i18n-bridge';
import { EffectScope } from 'vue-demi';
import type { ExportedGlobalComposer } from '@intlify/vue-i18n-bridge';
import type { I18n } from '@intlify/vue-i18n-bridge';

@@ -10,3 +11,3 @@ import type { Locale } from '@intlify/vue-i18n-bridge';

import type { RouteLocation } from '@intlify/vue-router-bridge';
import type { RouteLocationNormalized } from '@intlify/vue-router-bridge';
import { RouteLocationNormalized } from '@intlify/vue-router-bridge';
import { RouteLocationNormalizedLoaded } from '@intlify/vue-router-bridge';

@@ -168,2 +169,8 @@ import type { RouteLocationRaw } from '@intlify/vue-router-bridge';

export declare function getLocaleCodes(i18n: I18n | VueI18n | Composer): string[];
export declare function getLocales(i18n: I18n | VueI18n | Composer): string[] | LocaleObject[];
export declare function getLocalesRegex(localeCodes: string[]): RegExp;
export declare function getRouteBaseName(this: RoutingProxy, givenRoute?: Route | RouteLocationNormalizedLoaded): string | undefined;

@@ -316,2 +323,12 @@

export declare function isComposer(target: any): target is Composer;
export declare function isExportedGlobalComposer(target: any): target is ExportedGlobalComposer;
export declare function isI18nInstance(i18n: any): i18n is I18n;
export declare function isLegacyVueI18n(target: any): target is Pick<VueI18n, 'locale'>;
export declare function isVueI18n(target: any): target is VueI18n;
export declare function localeHead(this: RoutingProxy, { addDirAttribute, addSeoAttributes }?: I18nHeadOptions): I18nHeadMetaInfo;

@@ -437,2 +454,4 @@

export { RouteLocationNormalized }
export { RouteLocationNormalizedLoaded }

@@ -443,3 +462,3 @@

*/
export declare type RouteOptionsResolver = (route: I18nRoute, allowedLocaleCodes: string[]) => ComputedRouteOptions | null;
export declare type RouteOptionsResolver = (route: I18nRoute, localeCodes: string[]) => ComputedRouteOptions | null;

@@ -446,0 +465,0 @@ /**

6

dist/vue-i18n-routing.iife.js

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

var VueI18nRouting=function(i,d,L,g){"use strict";var ht=Object.defineProperty,Lt=Object.defineProperties;var _t=Object.getOwnPropertyDescriptors;var W=Object.getOwnPropertySymbols;var Pe=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable;var Ie=(i,d,L)=>d in i?ht(i,d,{enumerable:!0,configurable:!0,writable:!0,value:L}):i[d]=L,O=(i,d)=>{for(var L in d||(d={}))Pe.call(d,L)&&Ie(i,L,d[L]);if(W)for(var L of W(d))ye.call(d,L)&&Ie(i,L,d[L]);return i},Q=(i,d)=>Lt(i,_t(d));var Oe=(i,d)=>{var L={};for(var g in i)Pe.call(i,g)&&d.indexOf(g)<0&&(L[g]=i[g]);if(i!=null&&W)for(var g of W(i))d.indexOf(g)<0&&ye.call(i,g)&&(L[g]=i[g]);return L};function Ue(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Ce=Ue(L);const U={PREFIX:"prefix",PREFIX_EXCEPT_DEFAULT:"prefix_except_default",PREFIX_AND_DEFAULT:"prefix_and_default",NO_PREFIX:"no_prefix"},j="",V=U.PREFIX_EXCEPT_DEFAULT,G=!1,D="___",B="default",Y="ltr",J="";/*!
* shared v9.2.0-beta.35
const VueI18nRouting=function(f,h,g,w){"use strict";const Ie=(e=>e&&typeof e=="object"&&"default"in e?e:{default:e})(g),Q={PREFIX:"prefix",PREFIX_EXCEPT_DEFAULT:"prefix_except_default",PREFIX_AND_DEFAULT:"prefix_and_default",NO_PREFIX:"no_prefix"},G="",B=Q.PREFIX_EXCEPT_DEFAULT,D=!1,M="___",k="default",Y="ltr",J="";/*!
* shared v9.2.0-beta.40
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const Fe=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",be=e=>Fe?Symbol(e):e,se=Object.assign,Ne=Array.isArray,we=e=>typeof e=="function",I=e=>typeof e=="string",$e=e=>typeof e=="boolean",ve=e=>typeof e=="symbol",K=e=>e!==null&&typeof e=="object",je=/\/$|\/\?/;function Z(e="",t=!1){return t?je.test(e):e.endsWith("/")}function Ve(e="",t=!1){if(!t)return(Z(e)?e.slice(0,-1):e)||"/";if(!Z(e,!0))return e||"/";const[o,...n]=e.split("?");return(o.slice(0,-1)||"/")+(n.length?`?${n.join("?")}`:"")}function Ge(e="",t=!1){if(!t)return e.endsWith("/")?e:e+"/";if(Z(e,!0))return e||"/";const[o,...n]=e.split("?");return o+"/"+(n.length?`?${n.join("?")}`:"")}const De=typeof window!="undefined";function re(e,t){typeof console!="undefined"&&(console.warn("[vue-i18n-routing] "+e),t&&console.warn(t.stack))}function ie(e){e=e||[];const t=[];for(const o of e)I(o)?t.push({code:o}):t.push(o);return t}function X(e){return e!=null&&"global"in e&&"mode"in e}function M(e){return e!=null&&!("__composer"in e)&&d.isRef(e.locale)}function N(e){return e!=null&&"__composer"in e}function ee(e){return e!=null&&!("__composer"in e)&&!d.isRef(e.locale)}function C(e){return e!=null&&("__VUE_I18N_BRIDGE__"in e||"_sync"in e)}function ue(e){return X(e)?M(e.global)?e.global:e.global.__composer:N(e)?e.__composer:e}function k(e){const t=X(e)?e.global:e;return M(t)?d.isVue2&&C(e)?e.locale:t.locale.value:(ee(t)||N(t)||C(t),t.locale)}function Be(e){const t=X(e)?e.global:e;return M(t)?d.isVue2&&C(e)?e.locales:t.locales.value:(ee(t)||N(t)||C(t),t.locales)}function fe(e,t){const o=X(e)?e.global:e;if(M(o))d.isVue2&&C(e)?e.locale=t:o.locale.value=t;else if(ee(o)||N(o)||C(o))o.locale=t;else throw new Error("TODO:")}function Xe(e,t,o){return e.replace(/\/+$/,"")+(t?"/":"")||(o?"":"/")}function de(e){return L.isVueRouter4,d.isRef(e)?e.value:e}function he(e){return I(e)?e:ve(e)?e.toString():"(null)"}function Le(e,t,{defaultLocale:o,strategy:n,routesNameSeparator:l,defaultLocaleRouteNameSuffix:a}){let c=he(e)+(n==="no_prefix"?"":l+t);return t===o&&n==="prefix_and_default"&&(c+=l+a),c}function _e(e,t){return we(e)?e(t):e}function Me(e,t){const o=[];for(const[n,l]of t.entries()){const a=e.find(c=>c.iso.toLowerCase()===l.toLowerCase());if(a){o.push({code:a.code,score:1-n/t.length});break}}for(const[n,l]of t.entries()){const a=l.split("-")[0].toLowerCase(),c=e.find(s=>s.iso.split("-")[0].toLowerCase()===a);if(c){o.push({code:c.code,score:.999-n/t.length});break}}return o}const ke=Me;function ze(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score}const He=ze;function xe(e,t,{matcher:o=ke,comparer:n=He}={}){const l=[];for(const c of e){const{code:s}=c,r=c.iso||s;l.push({code:s,iso:r})}const a=o(l,t);return a.length>1&&a.sort(n),a.length?a[0].code:""}function T(e){return function(){return Reflect.apply(e,{getRouteBaseName:this.getRouteBaseName,localePath:this.localePath,localeRoute:this.localeRoute,localeLocation:this.localeLocation,resolveRoute:this.resolveRoute,switchLocalePath:this.switchLocalePath,localeHead:this.localeHead,i18n:this.$i18n,route:this.$route,router:this.$router},arguments)}}function ge(e,{locales:t=[],localeCodes:o=[],baseUrl:n=J,hooks:l={}}={}){const a=d.effectScope(),c=e.install;return e.install=(s,...r)=>{Reflect.apply(c,e,[s,...r]);const f=ue(e);a.run(()=>qe(f,{locales:t,localeCodes:o,baseUrl:n,hooks:l})),N(e.global)&&Qe(e.global,l.onExtendVueI18n);const h=s,u=e.mode==="composition"?d.isVue3?h.config.globalProperties.$i18n:e:d.isVue2?e:null;if(u&&We(u,f,l.onExtendExportedGlobal),(Ye(r[0])?r[0]:{inject:!0}).inject&&s.mixin({methods:{resolveRoute:T(w),localePath:T(H),localeRoute:T(x),localeLocation:T(oe),switchLocalePath:T($),getRouteBaseName:T(F),localeHead:T(ne)}}),h.unmount){const _=h.unmount;h.unmount=()=>{a.stop(),_()}}},a}function qe(e,t){const{locales:o,localeCodes:n,baseUrl:l}=t,a=d.ref(o),c=d.ref(n);e.locales=d.computed(()=>a.value),e.localeCodes=d.computed(()=>c.value),e.__baseUrl=_e(l,{}),t.hooks&&t.hooks.onExtendComposer&&t.hooks.onExtendComposer(e)}function We(e,t,o){const n=[{locales:{get(){return t.locales.value}},localeCodes:{get(){return t.localeCodes.value}},__baseUrl:{get(){return t.__baseUrl}}}];o&&n.push(o(t));for(const l of n)for(const[a,c]of Object.entries(l))Object.defineProperty(e,a,c)}function Qe(e,t){const o=ue(e),n=[{locales:{get(){return o.locales.value}},localeCodes:{get(){return o.localeCodes.value}},__baseUrl:{get(){return o.__baseUrl}}}];t&&n.push(t(o));for(const l of n)for(const[a,c]of Object.entries(l))Object.defineProperty(e,a,c)}function Ye(e){return K(e)&&"inject"in e&&$e(e.inject)}function Re(e,{defaultLocale:t=j,strategy:o=V,trailingSlash:n=G,routesNameSeparator:l=D,defaultLocaleRouteNameSuffix:a=B,includeUprefixedFallback:c=!1,optionsResolver:s=void 0,locales:r=[]}={}){if(o==="no_prefix")return e;const f=r.map(u=>I(u)?u:u.code);function h(u,R,_=!1,m=!1){if(u.redirect&&(!u.component||!u.file))return[u];let P=null;return s!=null&&(P=s(u,R),P==null)?[u]:R.reduce((S,A)=>{const{name:v}=u;let{path:p}=u;const E=O({},u);v&&(E.name=`${v}${l}${A}`),u.children&&(E.children=u.children.reduce((y,ce)=>[...y,...h(ce,[A],!0,m)],[]));const b=A===t;if(b&&o==="prefix_and_default")if(_)_&&m&&v&&(E.name+=`${l}${a}`);else{const y=Q(O({},E),{path:p});if(v&&(y.name=`${E.name}${l}${a}`),u.children){y.children=[];for(const ce of u.children)y.children=y.children.concat(h(ce,[A],!0,!0))}S.push(y)}const Ae=_&&!p.startsWith("/"),Te=!Ae&&!(b&&o==="prefix_except_default");return Te&&(p=`/${A}${p}`),p&&(p=Xe(p,n,Ae)),Te&&b&&o==="prefix"&&c&&S.push(O({},u)),E.path=p,S.push(E),S},[])}return e.reduce((u,R)=>[...u,...h(R,f||[])],[])}const te=be("vue-i18n-routing-gor");function me(e,t){e[te]?re("already registered global options"):e[te]=t}function pe(e){var t;return(t=e[te])!=null?t:{}}function Je(e,t={}){const{version:o,defaultLocale:n,locales:l,strategy:a,trailingSlash:c,routesNameSeparator:s,defaultLocaleRouteNameSuffix:r,defaultDirection:f,baseUrl:h,routes:u,routeOptionsResolver:R}=et(t),_=ie(l),m=_.map(A=>A.code),P=Ee(m,s,r);ge(e,{locales:_,baseUrl:h,localeCodes:m});const le=Re(u,{locales:l,defaultLocale:n,strategy:a,trailingSlash:c,routesNameSeparator:s,defaultLocaleRouteNameSuffix:r,optionsResolver:R});t.routes=le;const S=Ke(t,o);return me(S,{defaultLocale:n,localeCodes:m,strategy:a,trailingSlash:c,routesNameSeparator:s,defaultLocaleRouteNameSuffix:r,defaultDirection:f}),S.beforeEach((A,v,p)=>{const E=k(e),b=P(A)||E||n||"";E!==b&&fe(e,b),p()}),S}function Ke(e,t){if(d.isVue3&&t===4)return L.createRouter(e);if(d.isVue2&&t===3)return new Ce.default(e);throw new Error("TODO:")}function Ze(e){return new RegExp(`^/(${e.join("|")})(?:/|$)`,"i")}function Ee(e,t,o){const n=`(${e.join("|")})`,l=`(?:${t}${o})?`,a=new RegExp(`${t}${n}${l}$`,"i"),c=Ze(e);return r=>{if(K(r)){if(r.name){const h=(I(r.name)?r.name:r.name.toString()).match(a);if(h&&h.length>1)return h[1]}else if(r.path){const f=r.path.match(c);if(f&&f.length>1)return f[1]}}else if(I(r)){const f=r.match(c);if(f&&f.length>1)return f[1]}return""}}function et(e){var t,o,n,l,a,c,s,r,f,h;return e.version=(t=e.version)!=null?t:4,e.defaultLocale=(o=e.defaultLocale)!=null?o:j,e.strategy=(n=e.strategy)!=null?n:V,e.trailingSlash=(l=e.trailingSlash)!=null?l:G,e.routesNameSeparator=(a=e.routesNameSeparator)!=null?a:D,e.defaultLocaleRouteNameSuffix=(c=e.defaultLocaleRouteNameSuffix)!=null?c:B,e.locales=(s=e.locales)!=null?s:[],e.defaultDirection=(r=e.defaultDirection)!=null?r:Y,e.baseUrl=(f=e.baseUrl)!=null?f:J,e.routes=(h=e.routes)!=null?h:[],e}function z(e,t,{defaultLocale:o=j,defaultDirection:n=Y,defaultLocaleRouteNameSuffix:l=B,routesNameSeparator:a=D,strategy:c=V,trailingSlash:s=G,localeCodes:r=[]}={}){const f=pe(e);return{defaultLocale:t.defaultLocale||f.defaultLocale||o,defaultDirection:t.defaultDirection||f.defaultDirection||n,defaultLocaleRouteNameSuffix:t.defaultLocaleRouteNameSuffix||f.defaultLocaleRouteNameSuffix||l,routesNameSeparator:t.routesNameSeparator||f.routesNameSeparator||a,strategy:t.strategy||f.strategy||c,trailingSlash:t.trailingSlash||f.trailingSlash||s,localeCodes:t.localeCodes||f.localeCodes||r}}const tt=new Set([U.PREFIX_AND_DEFAULT,U.PREFIX_EXCEPT_DEFAULT]);function F(e){const t=this.router,{routesNameSeparator:o}=z(t,this),n=e!=null?d.isRef(e)?d.unref(e):e:this.route;return n.name?he(n.name).split(o)[0]:void 0}function H(e,t){const o=w.call(this,e,t);return o==null?"":d.isVue3?o.redirectedFrom||o.fullPath:o.route.redirectedFrom||o.route.fullPath}function x(e,t){const o=w.call(this,e,t);return o==null?void 0:d.isVue3?o:o.route}function oe(e,t){const o=w.call(this,e,t);return o==null?void 0:d.isVue3?o:o.location}function w(e,t){const o=this.router,n=this.i18n,l=t||k(n),{routesNameSeparator:a,defaultLocale:c,defaultLocaleRouteNameSuffix:s,strategy:r,trailingSlash:f}=z(o,this);let h=e;I(e)&&(h[0]==="/"?h={path:e}:h={name:e});let u=se({},h);if(u.path&&!u.name){const _=o.resolve(u),m=d.isVue3?_:_.route,P=F.call(this,m);I(P)?u={name:Le(P,l,{defaultLocale:c,strategy:r,routesNameSeparator:a,defaultLocaleRouteNameSuffix:s}),params:m.params,query:m.query,hash:m.hash}:(!(l===c&&tt.has(r))&&r!==U.NO_PREFIX&&(u.path=`/${l}${u.path}`),u.path=f?Ge(u.path,!0):Ve(u.path,!0))}else{u.name=Le(u.name,l,{defaultLocale:c,strategy:r,routesNameSeparator:a,defaultLocaleRouteNameSuffix:s});const{params:_}=u;_&&_["0"]===void 0&&_.pathMatch&&(_["0"]=_.pathMatch)}const R=o.resolve(u);return(d.isVue3?R.name:R.route.name)?R:o.resolve(e)}function $(e){const t=this.route,o=F.call(this,t);if(!o)return"";const r=!d.isVue3&&d.isRef(t)?t.value:t,{params:n}=r,l=Oe(r,["params"]),a={},c=se({},l,{name:o,params:Q(O(O({},n),a),{0:n.pathMatch})});return H.call(this,c,e)}function ne({addDirAttribute:e=!1,addSeoAttributes:t=!1}={}){const o=this.router,n=this.i18n,{defaultDirection:l}=z(o,this),a={htmlAttrs:{},link:[],meta:[]};if(n.locales==null||n.__baseUrl==null)return a;const c=k(n),s=Be(n),r=ie(s).find(u=>u.code===c)||{code:c},f=r.iso,h=r.dir||l;return e&&(a.htmlAttrs.dir=h),t&&c&&n.locales&&(f&&(a.htmlAttrs.lang=f),ot.call(this,s,n.__baseUrl,a.link),nt.call(this,n.__baseUrl,a.link,t),at(r,f,a.meta),lt(s,f,a.meta)),a}function ot(e,t,o){const n=this.router,{defaultLocale:l,strategy:a}=z(n,this);if(a===U.NO_PREFIX)return;const c=new Map;for(const s of e){const r=s.iso;if(!r){re("Locale ISO code is required to generate alternate link");continue}const[f,h]=r.split("-");f&&h&&(s.isCatchallLocale||!c.has(f))&&c.set(f,s),c.set(r,s)}for(const[s,r]of c.entries()){const f=$.call(this,r.code);f&&o.push({hid:`i18n-alt-${s}`,rel:"alternate",href:ae(f,t),hreflang:s})}if(l){const s=$.call(this,l);s&&o.push({hid:"i18n-xd",rel:"alternate",href:ae(s,t),hreflang:"x-default"})}}function nt(e,t,o){const n=this.route,l=x.call(this,Q(O({},n),{name:F.call(this,n)}));if(l){let a=ae(l.path,e);const c=K(o)&&o.canonicalQueries||[];if(c.length){const s=l.query,r=new URLSearchParams;for(const h of c)if(h in s){const u=s[h];Ne(u)?u.forEach(R=>r.append(h,R||"")):r.append(h,u||"")}const f=r.toString();f&&(a=`${a}?${f}`)}t.push({hid:"i18n-can",rel:"canonical",href:a})}}function at(e,t,o){!(e&&t)||o.push({hid:"i18n-og",property:"og:locale",content:Se(t)})}function lt(e,t,o){const n=e.filter(l=>{const a=l.iso;return a&&a!==t});if(n.length){const l=n.map(a=>({hid:`i18n-og-alt-${a.iso}`,property:"og:locale:alternate",content:Se(a.iso)}));o.push(...l)}}function Se(e){return(e||"").replace(/-/g,"_")}function ae(e,t){return e.match(/^https?:\/\//)?e:t+e}function q(e,t){const{router:o,route:n,i18n:l,defaultLocale:a,strategy:c,defaultLocaleRouteNameSuffix:s,trailingSlash:r,routesNameSeparator:f}=e;return function(...h){return Reflect.apply(t,{router:o,route:n,i18n:l,defaultLocale:a,strategy:c,defaultLocaleRouteNameSuffix:s,trailingSlash:r,routesNameSeparator:f},h)}}function ct(e=L.useRoute(),{router:t=L.useRouter(),routesNameSeparator:o=void 0}={}){const n={router:t,route:e,routesNameSeparator:o};return F.call(n,e)}function st({router:e=L.useRouter(),route:t=L.useRoute(),i18n:o=g.useI18n(),defaultLocale:n=void 0,defaultLocaleRouteNameSuffix:l=void 0,routesNameSeparator:a=void 0,strategy:c=void 0,trailingSlash:s=void 0}={}){return q({router:e,route:t,i18n:o,defaultLocale:n,defaultLocaleRouteNameSuffix:l,routesNameSeparator:a,strategy:c,trailingSlash:s},H)}function rt({router:e=L.useRouter(),route:t=L.useRoute(),i18n:o=g.useI18n(),defaultLocale:n=void 0,defaultLocaleRouteNameSuffix:l=void 0,routesNameSeparator:a=void 0,strategy:c=void 0,trailingSlash:s=void 0}={}){return q({router:e,route:t,i18n:o,defaultLocale:n,defaultLocaleRouteNameSuffix:l,routesNameSeparator:a,strategy:c,trailingSlash:s},x)}function it({router:e=L.useRouter(),route:t=L.useRoute(),i18n:o=g.useI18n(),defaultLocale:n=void 0,defaultLocaleRouteNameSuffix:l=void 0,routesNameSeparator:a=void 0,strategy:c=void 0,trailingSlash:s=void 0}={}){return q({router:e,route:t,i18n:o,defaultLocale:n,defaultLocaleRouteNameSuffix:l,routesNameSeparator:a,strategy:c,trailingSlash:s},oe)}function ut({router:e=L.useRouter(),route:t=L.useRoute(),i18n:o=g.useI18n(),defaultLocale:n=void 0,defaultLocaleRouteNameSuffix:l=void 0,routesNameSeparator:a=void 0,strategy:c=void 0,trailingSlash:s=void 0}={}){return q({router:e,route:t,i18n:o,defaultLocale:n,defaultLocaleRouteNameSuffix:l,routesNameSeparator:a,strategy:c,trailingSlash:s},$)}function ft({addDirAttribute:e=!1,addSeoAttributes:t=!1,strategy:o=void 0,defaultLocale:n=void 0,route:l=L.useRoute(),router:a=L.useRouter(),i18n:c=g.useI18n()}={}){const s=a,r=d.ref({htmlAttrs:{},link:[],meta:[]});function f(){r.value={htmlAttrs:{},link:[],meta:[]}}function h(u){r.value=Reflect.apply(ne,{router:a,route:u,i18n:c,defaultLocale:n,strategy:o},[{addDirAttribute:e,addSeoAttributes:t}])}if(De)if(d.isVue3){const u=d.watchEffect(()=>{f(),h(de(s.currentRoute))});d.onUnmounted(()=>u())}else{const u=s.afterEach((R,_)=>{f(),h(R)});d.onUnmounted(()=>u()),h(l)}else h(de(s.currentRoute));return r}const dt="0.0.0";return i.DEFAULT_BASE_URL=J,i.DEFAULT_DETECTION_DIRECTION=Y,i.DEFAULT_LOCALE=j,i.DEFAULT_LOCALE_ROUTE_NAME_SUFFIX=B,i.DEFAULT_ROUTES_NAME_SEPARATOR=D,i.DEFAULT_STRATEGY=V,i.DEFAULT_TRAILING_SLASH=G,i.STRATEGIES=U,i.VERSION=dt,i.createLocaleFromRouteGetter=Ee,i.createRouter=Je,i.extendI18n=ge,i.findBrowserLocale=xe,i.getGlobalOptions=pe,i.getLocale=k,i.getRouteBaseName=F,i.localeHead=ne,i.localeLocation=oe,i.localePath=H,i.localeRoute=x,i.localizeRoutes=Re,i.proxyVueInstance=T,i.registerGlobalOptions=me,i.resolveBaseUrl=_e,i.resolveRoute=w,i.setLocale=fe,i.switchLocalePath=$,i.useLocaleHead=ft,i.useLocaleLocation=it,i.useLocalePath=st,i.useLocaleRoute=rt,i.useRouteBaseName=ct,i.useSwitchLocalePath=ut,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),i}({},VueDemi,VueRouter,VueI18n);
*/process.env.NODE_ENV;const Ce=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Te=e=>Ce?Symbol(e):e,z=Object.assign,ye=Array.isArray,Oe=e=>typeof e=="function",y=e=>typeof e=="string",Pe=e=>typeof e=="boolean",be=e=>typeof e=="symbol",K=e=>e!==null&&typeof e=="object",Ue=/\/$|\/\?/;function Z(e="",t=!1){return t?Ue.test(e):e.endsWith("/")}function Ne(e="",t=!1){if(!t)return(Z(e)?e.slice(0,-1):e)||"/";if(!Z(e,!0))return e||"/";const[o,...n]=e.split("?");return(o.slice(0,-1)||"/")+(n.length?`?${n.join("?")}`:"")}function Fe(e="",t=!1){if(!t)return e.endsWith("/")?e:e+"/";if(Z(e,!0))return e||"/";const[o,...n]=e.split("?");return o+"/"+(n.length?`?${n.join("?")}`:"")}const we=typeof window<"u";function ae(e,t){typeof console<"u"&&(console.warn("[vue-i18n-routing] "+e),t&&console.warn(t.stack))}function ce(e){e=e||[];const t=[];for(const o of e)y(o)?t.push({code:o}):t.push(o);return t}function b(e){return e!=null&&"global"in e&&"mode"in e}function U(e){return e!=null&&!("__composer"in e)&&h.isRef(e.locale)}function O(e){return e!=null&&"__composer"in e}function $(e){return e!=null&&!("__composer"in e)&&!h.isRef(e.locale)}function C(e){return e!=null&&("__VUE_I18N_BRIDGE__"in e||"_sync"in e)}function se(e){return b(e)?U(e.global)?e.global:e.global.__composer:O(e)?e.__composer:e}function H(e){const t=b(e)?e.global:e;return U(t)?h.isVue2&&C(e)?e.locale:t.locale.value:($(t)||O(t)||C(t),t.locale)}function re(e){const t=b(e)?e.global:e;return U(t)?h.isVue2&&C(e)?e.locales:t.locales.value:($(t)||O(t)||C(t),t.locales)}function $e(e){const t=b(e)?e.global:e;return U(t)?h.isVue2&&C(e)?e.localeCodes:t.localeCodes.value:($(t)||O(t)||C(t),t.localeCodes)}function ie(e,t){const o=b(e)?e.global:e;if(U(o))h.isVue2&&C(e)?e.locale=t:o.locale.value=t;else if($(o)||O(o)||C(o))o.locale=t;else throw new Error("TODO:")}function ve(e,t,o){return e.replace(/\/+$/,"")+(t?"/":"")||(o?"":"/")}function ue(e){return g.isVueRouter4,h.isRef(e)?e.value:e}function fe(e){return y(e)?e:be(e)?e.toString():"(null)"}function de(e,t,{defaultLocale:o,strategy:n,routesNameSeparator:a,defaultLocaleRouteNameSuffix:l}){let c=fe(e)+(n==="no_prefix"?"":a+t);return t===o&&n==="prefix_and_default"&&(c+=a+l),c}function he(e,t){return Oe(e)?e(t):e}function Ve(e,t){const o=[];for(const[n,a]of t.entries()){const l=e.find(c=>c.iso.toLowerCase()===a.toLowerCase());if(l){o.push({code:l.code,score:1-n/t.length});break}}for(const[n,a]of t.entries()){const l=a.split("-")[0].toLowerCase(),c=e.find(s=>s.iso.split("-")[0].toLowerCase()===l);if(c){o.push({code:c.code,score:.999-n/t.length});break}}return o}const je=Ve;function Ge(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score}const Be=Ge;function De(e,t,{matcher:o=je,comparer:n=Be}={}){const a=[];for(const c of e){const{code:s}=c,r=c.iso||s;a.push({code:s,iso:r})}const l=o(a,t);return l.length>1&&l.sort(n),l.length?l[0].code:""}function T(e){return function(){return Reflect.apply(e,{getRouteBaseName:this.getRouteBaseName,localePath:this.localePath,localeRoute:this.localeRoute,localeLocation:this.localeLocation,resolveRoute:this.resolveRoute,switchLocalePath:this.switchLocalePath,localeHead:this.localeHead,i18n:this.$i18n,route:this.$route,router:this.$router},arguments)}}function Le(e,{locales:t=[],localeCodes:o=[],baseUrl:n=J,hooks:a={}}={}){const l=h.effectScope(),c=e.install;return e.install=(s,...r)=>{Reflect.apply(c,e,[s,...r]);const u=se(e);l.run(()=>Me(u,{locales:t,localeCodes:o,baseUrl:n,hooks:a})),O(e.global)&&ze(e.global,a.onExtendVueI18n);const d=s,i=e.mode==="composition"?h.isVue3?d.config.globalProperties.$i18n:e:h.isVue2?e:null;if(i&&ke(i,u,a.onExtendExportedGlobal),(He(r[0])?r[0]:{inject:!0}).inject&&s.mixin({methods:{resolveRoute:T(v),localePath:T(q),localeRoute:T(x),localeLocation:T(te),switchLocalePath:T(V),getRouteBaseName:T(N),localeHead:T(oe)}}),d.unmount){const L=d.unmount;d.unmount=()=>{l.stop(),L()}}},l}function Me(e,t){const{locales:o,localeCodes:n,baseUrl:a}=t,l=h.ref(o),c=h.ref(n);e.locales=h.computed(()=>l.value),e.localeCodes=h.computed(()=>c.value),e.__baseUrl=he(a,{}),t.hooks&&t.hooks.onExtendComposer&&t.hooks.onExtendComposer(e)}function ke(e,t,o){const n=[{locales:{get(){return t.locales.value}},localeCodes:{get(){return t.localeCodes.value}},__baseUrl:{get(){return t.__baseUrl}}}];o&&n.push(o(t));for(const a of n)for(const[l,c]of Object.entries(a))Object.defineProperty(e,l,c)}function ze(e,t){const o=se(e),n=[{locales:{get(){return o.locales.value}},localeCodes:{get(){return o.localeCodes.value}},__baseUrl:{get(){return o.__baseUrl}}}];t&&n.push(t(o));for(const a of n)for(const[l,c]of Object.entries(a))Object.defineProperty(e,l,c)}function He(e){return K(e)&&"inject"in e&&Pe(e.inject)}function ge(e,{defaultLocale:t=G,strategy:o=B,trailingSlash:n=D,routesNameSeparator:a=M,defaultLocaleRouteNameSuffix:l=k,includeUprefixedFallback:c=!1,optionsResolver:s=void 0,locales:r=[]}={}){if(o==="no_prefix")return e;const u=r.map(i=>y(i)?i:i.code);function d(i,_,L=!1,S=!1){if(i.redirect&&(!i.component||!i.file))return[i];let R=null;if(s!=null&&(R=s(i,_),R==null))return[i];const p={locales:u,paths:{}};if(R!=null&&z(p,R),z(p,{locales:_}),p.locales.length>0&&R&&R.locales!=null&&R.locales.length>0){const E=[];for(const m of p.locales)R.locales.includes(m)&&E.push(m);p.locales=E}return p.locales.reduce((E,m)=>{const{name:j}=i;let{path:A}=i;const I={...i};j&&(I.name=`${j}${a}${m}`),i.children&&(I.children=i.children.reduce((P,le)=>[...P,...d(le,[m],!0,S)],[])),p.paths&&p.paths[m]&&(A=p.paths[m]);const F=m===t;if(F&&o==="prefix_and_default")if(L)L&&S&&j&&(I.name+=`${a}${l}`);else{const P={...I,path:A};if(j&&(P.name=`${I.name}${a}${l}`),i.children){P.children=[];for(const le of i.children)P.children=P.children.concat(d(le,[m],!0,!0))}E.push(P)}const Se=L&&!A.startsWith("/"),Ae=!Se&&!(F&&o==="prefix_except_default");return Ae&&(A=`/${m}${A}`),A&&(A=ve(A,n,Se)),Ae&&F&&o==="prefix"&&c&&E.push({...i}),I.path=A,E.push(I),E},[])}return e.reduce((i,_)=>[...i,...d(_,u||[])],[])}const ee=Te("vue-i18n-routing-gor");function _e(e,t){e[ee]?ae("already registered global options"):e[ee]=t}function me(e){var t;return(t=e[ee])!=null?t:{}}function Xe(e,t={}){const{version:o,defaultLocale:n,locales:a,strategy:l,trailingSlash:c,routesNameSeparator:s,defaultLocaleRouteNameSuffix:r,defaultDirection:u,baseUrl:d,routes:i,routeOptionsResolver:_}=xe(t),L=ce(a),S=L.map(m=>m.code),R=pe(S,s,r);Le(e,{locales:L,baseUrl:d,localeCodes:S});const p=ge(i,{locales:a,defaultLocale:n,strategy:l,trailingSlash:c,routesNameSeparator:s,defaultLocaleRouteNameSuffix:r,optionsResolver:_});t.routes=p;const E=qe(t,o);return _e(E,{defaultLocale:n,localeCodes:S,strategy:l,trailingSlash:c,routesNameSeparator:s,defaultLocaleRouteNameSuffix:r,defaultDirection:u}),E.beforeEach((m,j,A)=>{const I=H(e),F=R(m)||I||n||"";I!==F&&ie(e,F),A()}),E}function qe(e,t){if(h.isVue3&&t===4)return g.createRouter(e);if(h.isVue2&&t===3)return new Ie.default(e);throw new Error("TODO:")}function Re(e){return new RegExp(`^/(${e.join("|")})(?:/|$)`,"i")}function pe(e,t,o){const n=`(${e.join("|")})`,a=`(?:${t}${o})?`,l=new RegExp(`${t}${n}${a}$`,"i"),c=Re(e);return r=>{if(K(r)){if(r.name){const d=(y(r.name)?r.name:r.name.toString()).match(l);if(d&&d.length>1)return d[1]}else if(r.path){const u=r.path.match(c);if(u&&u.length>1)return u[1]}}else if(y(r)){const u=r.match(c);if(u&&u.length>1)return u[1]}return""}}function xe(e){var t,o,n,a,l,c,s,r,u,d;return e.version=(t=e.version)!=null?t:4,e.defaultLocale=(o=e.defaultLocale)!=null?o:G,e.strategy=(n=e.strategy)!=null?n:B,e.trailingSlash=(a=e.trailingSlash)!=null?a:D,e.routesNameSeparator=(l=e.routesNameSeparator)!=null?l:M,e.defaultLocaleRouteNameSuffix=(c=e.defaultLocaleRouteNameSuffix)!=null?c:k,e.locales=(s=e.locales)!=null?s:[],e.defaultDirection=(r=e.defaultDirection)!=null?r:Y,e.baseUrl=(u=e.baseUrl)!=null?u:J,e.routes=(d=e.routes)!=null?d:[],e}function X(e,t,{defaultLocale:o=G,defaultDirection:n=Y,defaultLocaleRouteNameSuffix:a=k,routesNameSeparator:l=M,strategy:c=B,trailingSlash:s=D,localeCodes:r=[]}={}){const u=me(e);return{defaultLocale:t.defaultLocale||u.defaultLocale||o,defaultDirection:t.defaultDirection||u.defaultDirection||n,defaultLocaleRouteNameSuffix:t.defaultLocaleRouteNameSuffix||u.defaultLocaleRouteNameSuffix||a,routesNameSeparator:t.routesNameSeparator||u.routesNameSeparator||l,strategy:t.strategy||u.strategy||c,trailingSlash:t.trailingSlash||u.trailingSlash||s,localeCodes:t.localeCodes||u.localeCodes||r}}const We=new Set(["prefix_and_default","prefix_except_default"]);function N(e){const t=this.router,{routesNameSeparator:o}=X(t,this),n=e!=null?h.isRef(e)?h.unref(e):e:this.route;return n.name?fe(n.name).split(o)[0]:void 0}function q(e,t){const o=v.call(this,e,t);return o==null?"":h.isVue3?o.redirectedFrom||o.fullPath:o.route.redirectedFrom||o.route.fullPath}function x(e,t){const o=v.call(this,e,t);return o==null?void 0:h.isVue3?o:o.route}function te(e,t){const o=v.call(this,e,t);return o==null?void 0:h.isVue3?o:o.location}function v(e,t){const o=this.router,n=this.i18n,a=t||H(n),{routesNameSeparator:l,defaultLocale:c,defaultLocaleRouteNameSuffix:s,strategy:r,trailingSlash:u}=X(o,this);let d=e;y(e)&&(d[0]==="/"?d={path:e}:d={name:e});let i=z({},d);if(i.path&&!i.name){const L=o.resolve(i),S=h.isVue3?L:L.route,R=N.call(this,S);y(R)?i={name:de(R,a,{defaultLocale:c,strategy:r,routesNameSeparator:l,defaultLocaleRouteNameSuffix:s}),params:S.params,query:S.query,hash:S.hash}:(!(a===c&&We.has(r))&&r!=="no_prefix"&&(i.path=`/${a}${i.path}`),i.path=u?Fe(i.path,!0):Ne(i.path,!0))}else{i.name=de(i.name,a,{defaultLocale:c,strategy:r,routesNameSeparator:l,defaultLocaleRouteNameSuffix:s});const{params:L}=i;L&&L[0]===void 0&&L.pathMatch&&(L[0]=L.pathMatch)}const _=o.resolve(i);return(h.isVue3?_.name:_.route.name)?_:o.resolve(e)}function V(e){const t=this.route,o=N.call(this,t);if(!o)return"";const{params:n,...a}=!h.isVue3&&h.isRef(t)?t.value:t,c=z({},a,{name:o,params:{...n,...{},0:n.pathMatch}});return q.call(this,c,e)}function oe({addDirAttribute:e=!1,addSeoAttributes:t=!1}={}){const o=this.router,n=this.i18n,{defaultDirection:a}=X(o,this),l={htmlAttrs:{},link:[],meta:[]};if(n.locales==null||n.__baseUrl==null)return l;const c=H(n),s=re(n),r=ce(s).find(i=>i.code===c)||{code:c},u=r.iso,d=r.dir||a;return e&&(l.htmlAttrs.dir=d),t&&c&&n.locales&&(u&&(l.htmlAttrs.lang=u),Qe.call(this,s,n.__baseUrl,l.link),Ye.call(this,n.__baseUrl,l.link,t),Je(r,u,l.meta),Ke(s,u,l.meta)),l}function Qe(e,t,o){const n=this.router,{defaultLocale:a,strategy:l}=X(n,this);if(l===Q.NO_PREFIX)return;const c=new Map;for(const s of e){const r=s.iso;if(!r){ae("Locale ISO code is required to generate alternate link");continue}const[u,d]=r.split("-");u&&d&&(s.isCatchallLocale||!c.has(u))&&c.set(u,s),c.set(r,s)}for(const[s,r]of c.entries()){const u=V.call(this,r.code);u&&o.push({hid:`i18n-alt-${s}`,rel:"alternate",href:ne(u,t),hreflang:s})}if(a){const s=V.call(this,a);s&&o.push({hid:"i18n-xd",rel:"alternate",href:ne(s,t),hreflang:"x-default"})}}function Ye(e,t,o){const n=this.route,a=x.call(this,{...n,name:N.call(this,n)});if(a){let l=ne(a.path,e);const c=K(o)&&o.canonicalQueries||[];if(c.length){const s=a.query,r=new URLSearchParams;for(const d of c)if(d in s){const i=s[d];ye(i)?i.forEach(_=>r.append(d,_||"")):r.append(d,i||"")}const u=r.toString();u&&(l=`${l}?${u}`)}t.push({hid:"i18n-can",rel:"canonical",href:l})}}function Je(e,t,o){!(e&&t)||o.push({hid:"i18n-og",property:"og:locale",content:Ee(t)})}function Ke(e,t,o){const n=e.filter(a=>{const l=a.iso;return l&&l!==t});if(n.length){const a=n.map(l=>({hid:`i18n-og-alt-${l.iso}`,property:"og:locale:alternate",content:Ee(l.iso)}));o.push(...a)}}function Ee(e){return(e||"").replace(/-/g,"_")}function ne(e,t){return e.match(/^https?:\/\//)?e:t+e}function W(e,t){const{router:o,route:n,i18n:a,defaultLocale:l,strategy:c,defaultLocaleRouteNameSuffix:s,trailingSlash:r,routesNameSeparator:u}=e;return function(...d){return Reflect.apply(t,{router:o,route:n,i18n:a,defaultLocale:l,strategy:c,defaultLocaleRouteNameSuffix:s,trailingSlash:r,routesNameSeparator:u},d)}}function Ze(e=g.useRoute(),{router:t=g.useRouter(),routesNameSeparator:o=void 0}={}){const n={router:t,route:e,routesNameSeparator:o};return N.call(n,e)}function et({router:e=g.useRouter(),route:t=g.useRoute(),i18n:o=w.useI18n(),defaultLocale:n=void 0,defaultLocaleRouteNameSuffix:a=void 0,routesNameSeparator:l=void 0,strategy:c=void 0,trailingSlash:s=void 0}={}){return W({router:e,route:t,i18n:o,defaultLocale:n,defaultLocaleRouteNameSuffix:a,routesNameSeparator:l,strategy:c,trailingSlash:s},q)}function tt({router:e=g.useRouter(),route:t=g.useRoute(),i18n:o=w.useI18n(),defaultLocale:n=void 0,defaultLocaleRouteNameSuffix:a=void 0,routesNameSeparator:l=void 0,strategy:c=void 0,trailingSlash:s=void 0}={}){return W({router:e,route:t,i18n:o,defaultLocale:n,defaultLocaleRouteNameSuffix:a,routesNameSeparator:l,strategy:c,trailingSlash:s},x)}function ot({router:e=g.useRouter(),route:t=g.useRoute(),i18n:o=w.useI18n(),defaultLocale:n=void 0,defaultLocaleRouteNameSuffix:a=void 0,routesNameSeparator:l=void 0,strategy:c=void 0,trailingSlash:s=void 0}={}){return W({router:e,route:t,i18n:o,defaultLocale:n,defaultLocaleRouteNameSuffix:a,routesNameSeparator:l,strategy:c,trailingSlash:s},te)}function nt({router:e=g.useRouter(),route:t=g.useRoute(),i18n:o=w.useI18n(),defaultLocale:n=void 0,defaultLocaleRouteNameSuffix:a=void 0,routesNameSeparator:l=void 0,strategy:c=void 0,trailingSlash:s=void 0}={}){return W({router:e,route:t,i18n:o,defaultLocale:n,defaultLocaleRouteNameSuffix:a,routesNameSeparator:l,strategy:c,trailingSlash:s},V)}function lt({addDirAttribute:e=!1,addSeoAttributes:t=!1,strategy:o=void 0,defaultLocale:n=void 0,route:a=g.useRoute(),router:l=g.useRouter(),i18n:c=w.useI18n()}={}){const s=l,r=h.ref({htmlAttrs:{},link:[],meta:[]});function u(){r.value={htmlAttrs:{},link:[],meta:[]}}function d(i){r.value=Reflect.apply(oe,{router:l,route:i,i18n:c,defaultLocale:n,strategy:o},[{addDirAttribute:e,addSeoAttributes:t}])}if(we)if(h.isVue3){const i=h.watchEffect(()=>{u(),d(ue(s.currentRoute))});h.onUnmounted(()=>i())}else{const i=s.afterEach((_,L)=>{u(),d(_)});h.onUnmounted(()=>i()),d(a)}else d(ue(s.currentRoute));return r}const at="0.0.0";return f.DEFAULT_BASE_URL=J,f.DEFAULT_DETECTION_DIRECTION=Y,f.DEFAULT_LOCALE=G,f.DEFAULT_LOCALE_ROUTE_NAME_SUFFIX=k,f.DEFAULT_ROUTES_NAME_SEPARATOR=M,f.DEFAULT_STRATEGY=B,f.DEFAULT_TRAILING_SLASH=D,f.STRATEGIES=Q,f.VERSION=at,f.createLocaleFromRouteGetter=pe,f.createRouter=Xe,f.extendI18n=Le,f.findBrowserLocale=De,f.getGlobalOptions=me,f.getLocale=H,f.getLocaleCodes=$e,f.getLocales=re,f.getLocalesRegex=Re,f.getRouteBaseName=N,f.isComposer=U,f.isExportedGlobalComposer=$,f.isI18nInstance=b,f.isLegacyVueI18n=C,f.isVueI18n=O,f.localeHead=oe,f.localeLocation=te,f.localePath=q,f.localeRoute=x,f.localizeRoutes=ge,f.proxyVueInstance=T,f.registerGlobalOptions=_e,f.resolveBaseUrl=he,f.resolveRoute=v,f.setLocale=ie,f.switchLocalePath=V,f.useLocaleHead=lt,f.useLocaleLocation=ot,f.useLocalePath=et,f.useLocaleRoute=tt,f.useRouteBaseName=Ze,f.useSwitchLocalePath=nt,Object.defineProperties(f,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),f}({},VueDemi,VueRouter,VueI18n);
{
"name": "vue-i18n-routing",
"description": "The i18n routing with using vue-i18n",
"version": "0.0.0-05f2feb",
"version": "0.0.0-071fc4e",
"dependencies": {
"@intlify/shared": "next",
"@intlify/vue-i18n-bridge": "^0.3.5",
"@intlify/vue-router-bridge": "^0.3.5",
"ufo": "^0.7.9",
"vue-demi": "^0.12.1"
"@intlify/vue-i18n-bridge": "^0.4.0",
"@intlify/vue-router-bridge": "^0.4.0",
"ufo": "^0.8.5",
"vue-demi": "^0.13.5"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.18.20",
"@vue/test-utils": "^1.3.0",
"@microsoft/api-extractor": "^7.28.4",
"api-docs-gen": "^0.4.0",
"rimraf": "^3.0.2",
"typescript": "^4.6.3",
"vite": "^2.9.8",
"typescript": "^4.7.4",
"vite": "^3.0.0",
"vite-plugin-dts": "^0.9.6",
"vitest": "^0.2.8",
"vue": "^3.2.23",
"vitest": "^0.18.0",
"vue": "^3.2.27",
"vue-i18n": "npm:vue-i18n@next",

@@ -33,4 +32,4 @@ "vue-i18n-bridge": "next",

"vue": "^2.6.14 || ^3.2.0",
"vue-i18n": "^8.26.1 || ^9.2.0-beta.35",
"vue-i18n-bridge": "^9.2.0-beta.35",
"vue-i18n": "^8.26.1 || ^9.2.0-beta.37",
"vue-i18n-bridge": "^9.2.0-beta.37",
"vue-router": "^3.5.3 || ^4.0.0"

@@ -41,2 +40,14 @@ },

"optional": true
},
"vue": {
"optional": true
},
"vue-i18n": {
"optional": true
},
"vue-i18n-bridge": {
"optional": true
},
"vue-router": {
"optional": true
}

@@ -57,4 +68,4 @@ },

],
"main": "./dist/vue-i18n-routing.cjs.js",
"module": "./dist/vue-i18n-routing.es.js",
"main": "./dist/vue-i18n-routing.js",
"module": "./dist/vue-i18n-routing.mjs",
"unpkg": "dist/vue-i18n-routing.iife.js",

@@ -67,5 +78,5 @@ "jsdelivr": "dist/vue-i18n-routing.iife.js",

"node": "./index.mjs",
"default": "./dist/vue-i18n-routing.es.js"
"default": "./dist/vue-i18n-routing.mjs"
},
"require": "./dist/vue-i18n-routing.cjs.js",
"require": "./dist/vue-i18n-routing.js",
"types": "./dist/vue-i18n-routing.d.ts"

@@ -94,3 +105,3 @@ },

"engines": {
"node": ">= 12"
"node": ">= 14.6"
},

@@ -97,0 +108,0 @@ "publishConfig": {

export * from './dist/vue-i18n-routing'
import './dist/vue-i18n-routing.vue'
import './dist/vue-i18n-routing.vue-i18n'
import './dist/vue'
import './dist/vue-i18n'

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