
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
@developerwym/navigator
Advanced tools
ns plugin add @developerwym/navigator
Método | Descripción |
---|---|
checkAppInstalada(packageName:string o AppsSoportadas) | Verifica si la app esta instalada en android com.id.pack , en ios urlscheme:// . Tambien puedes utilizar AppsSoportadas , returna un boleano |
openGoogleMaps(OpcionesGoogleMaps) | Abre la app de Google Maps. Retorna un Promise |
openWaze(OpcionesWaze) | Abre la app de Waze. Retorna un Promise |
openBaidumap(OpcionesBaidumap) | Abre la app de BaiduMap. Retorna un Promise |
openAppleMaps(OpcionesAppleMaps) | Abre la app de AppleMaps. Retorna un Promise |
AppsSoportadas | |
---|---|
Google Maps | Android e iOS |
Waze | Android e iOS |
Baidu Maps | Android e iOS |
Apple Maps | iOS |
Propiedad | Descripción |
---|---|
error | Boleano. Indica si genero o no error |
errorText | string mensaje del error |
Propiedad | Descripción |
---|---|
DRIVING | |
WALKING | |
BICYCLING | |
TRANSIT |
Propiedad | Tipo | Descripción |
---|---|---|
daddr | string o Array<string> | Dirección de destino |
saddr? | string o Array<string> | Dirección de inicio |
modoTransporte | TransporteGoogleMaps | Tipo de transporte |
tipoMapa | TURN_BY_TURN o MAPS | Si es TURN_BY_TURN en android iniciara la navegacion automaticamente |
avoid? | string | Establece características que la ruta debe tratar de evitar Valores "t", "h" o "f" |
Propiedad | Tipo | Descripción |
---|---|---|
destino | string o Array<string> | Dirección de destino |
navigate | string | Valores yes o `no, inicia o no la navegacion en la app de Waze |
Propiedad | Tipo | Descripción |
---|---|---|
destino | string | Dirección de destino |
origen? | string | Dirección de inicio |
modo | string | Valores driving , walking , bicycling o transit . |
Propiedad | Tipo | Descripción |
---|---|---|
tipo | string | Valores s , k , h o r . Tipo de mapa transito, standar etc. |
daddr | string o Array<string> | Dirección de destino |
saddr | string o Array<string> | Dirección de inicio |
dirflg | string | Valores d , w o r , Modo de transporte |
checkAppInstalada(AppsSoportadas.WAZE o AppsSoportadas.APPLE_MAPS o AppsSoportadas.BAIDUMAP o AppsSoportadas.GOOGLE_MAPS): boolean
openGoogleMaps({
daddr:"Maracay aragua venezuela",
modoTransporte:TransporteGoogleMaps.DRIVING,
tipoMapa:"TURN_BY_TURN",
saddr:"Villa de cura aragua venezuela",
avoid:"fth"
}).then((res)=>{
//Ok
}).catch((err)=>{
//Error
})
openWaze({
destino:"tia el recreo quito pichincha ecuador",
navigate:"yes"
}).then((res) => {
console.log(res);
}).catch((err) => {
console.log(err);
})
openBaidumap({
destino:"maracay aragua venezuela",
modo:"driving",
origen:"villa de cura aragua venezuela",
}).then((res)=>{
console.log(res);
}).catch((err)=>{
console.log(err);
})
openAppleMaps({
daddr:"Tia el recreo quito ecuador",
dirflg:"d",
tipo:"s",
saddr:"Maracay aragua veneuzela",
}).then((res)=>{
console.log(res);
}).catch((err)=>{
console.log(err);
})
FAQs
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.