Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
server.listen(port, function() {
console.log(clc.green(`\nserver running at https://localhost:${port}/`))
if (process.env.OPENURL) openurl.open(`https://localhost:${port}/abe/`)
})
} else {
importing.done(function(table_name) {
console.log('Table ' + table_name + ' has been created!');
if (options.openMap || options.openTable) {
var url = 'https://{{user}}.carto.com/tables/{{table_name}}';
if (options.openMap) url += '/map';
openurl.open(Mustache.render(url, {
user: options.user,
table_name: table_name,
}));
}
});
handleInteractiveResponse(response) {
try {
openurl.open(response.url);
} catch (error) {
return error;
}
return true;
}
}
click: function() {
var osVersion = require('os').release();
var oryokiVersion = Oryoki.versions.oryoki;
require("openurl").open("mailto:write@oryoki.io?subject=Ōryōki ⭕️ Feedback&body=\n\nŌryōki: v."+oryokiVersion+"\nOperating System: Darwin v."+osVersion);
}
}
let command
switch(process.platform) {
case 'darwin':
command = 'open'
break
case 'win32':
command = 'explorer.exe'
break
case 'linux':
command = 'xdg-open'
break
}
//Open default browser with dev server
if (command && commandExists(command)){
OpenURL.open('http://' + config.http.hostname + ':' + config.http.port.dev)
}
}
})
server.listen(process.env.PORT || 80, function () {
require('openurl').open('http://localhost:' + server.address().port + '/');
});
click: function() {
var osVersion = require('os').release();
var oryokiVersion = Oryoki.versions.oryoki;
require("openurl").open("mailto:write@oryoki.io?subject=Ōryōki ⭕️ Feedback&body=\n\nŌryōki: v."+oryokiVersion+"\nOperating System: Darwin v."+osVersion);
}
}
element.onclick = function (event) {
event.preventDefault();
openurl.open(element.href);
};
});
setTimeout(function () {
if ($tw.httpServerPort) {
require("openurl").open("http://127.0.0.1:" + $tw.httpServerPort);
} else {
openBrowser();
}
}, 100);
}