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

autocompleter-caba

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autocompleter-caba - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

dist/index.cjs

2

dist/src/api/urls.d.ts

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

export declare const API_BASE_URL = "https://api-serviciosgeo-dev.gcba.gob.ar/";
export declare const API_BASE_URL = "https://datosabiertos-callejeros-apis.buenosaires.gob.ar";
export declare const API_URLS: {

@@ -3,0 +3,0 @@ address_suggestions_url: string;

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

export const API_BASE_URL = "https://api-serviciosgeo-dev.gcba.gob.ar/";
// const API_PROD = "https://api-serviciosgeo.gcba.gob.ar/";
export const API_BASE_URL = "https://datosabiertos-callejeros-apis.buenosaires.gob.ar";
export const API_URLS = {

@@ -4,0 +3,0 @@ address_suggestions_url: "/calles/nombre",

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

export {};
export { Autocompleter } from './services/Autocompleter.js';

@@ -1,25 +0,1 @@

// export { Autocompleter } from './services/Autocompleter.js';
import { Autocompleter } from "./services/Autocompleter.js";
const autocompleter = new Autocompleter();
let i = 0;
let calle = prompt("Ingrese la calle:");
if (calle) {
console.log("Input recibido:", calle); // Esto Verifica el input
const clientId = "b8e6e97b";
const clientSecret = "180db1929c02de9a65dbe4c3975e3953";
const apiBaseUrl = "https://datosabiertos-callejeros-apis.buenosaires.gob.ar/";
console.log("Configurando credenciales:", { clientId, clientSecret });
autocompleter.setCredentials(clientId, clientSecret);
console.log("Configurando URL base:", apiBaseUrl);
autocompleter.setApiBaseUrl(apiBaseUrl);
// Activa los suggesters manualmente
// autocompleter.enableSuggester(SuggestersOptions.AddressSuggester);
// autocompleter.enableSuggester(SuggestersOptions.PlaceSuggester);
autocompleter
.getSuggestions(calle, "address")
.then(data => console.log("Sugerencias obtenidas:", data))
.catch(error => console.error("Error:", error));
}
else {
console.log("No se ingresó ninguna calle."); // Verifica si el input está vacío
}
export { Autocompleter } from './services/Autocompleter.js';
{
"type": "module",
"types": "./dist/types/index.d.ts",
"name": "autocompleter-caba",
"version": "0.1.6",
"version": "0.1.7",
"private": false,
"description": "Un paquete para que permite obtener información sobre direcciones y sitios de interés de la Ciudad de Buenos Aires.",
"main": "index.js",
"main": "dist/src/index.js",
"exports": {
".": {
"import": "./dist/src/index.js",
"require": "./index.cjs"
}
},
"files": [
"dist"
"dist",
"dist/types"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "npm run build:ts && npm run copy:cjs",
"build:ts": "tsc",
"build": "npm run build:ts"
"copy:cjs": "cpx src/index.cjs dist"
},

@@ -22,2 +32,3 @@ "keywords": [

"@types/node": "^20.10.8",
"cpx": "^1.5.0",
"typescript": "^5.3.3"

@@ -24,0 +35,0 @@ },

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