Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const Typesense = require("typesense");
const profiles = require("./profiles.json");
const client = new Typesense.Client({
masterNode: {
host: "localhost",
port: "8108",
protocol: "http",
apiKey: "dev-api-key"
},
timeoutSeconds: 2
});
client
.collections("profiles")
.delete()
.catch(() => {});
client.collections().create({
name: "profiles",
constructor(props) {
super(props);
this.client = new Typesense.Client({
masterNode: {
host: 'search.datenanfragen.de',
port: '443',
protocol: 'https',
apiKey: '981da30f2e80463cadf8a91bc2db4cf5'
},
timeoutSeconds: 2
});
this.algolia_autocomplete = null;
this.input_element = null;
}