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

daplie-tools

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

daplie-tools - npm Package Compare versions

Comparing version 1.0.0-alpha.901 to 1.0.0-alpha.902

78

bin/daplie.js

@@ -223,3 +223,3 @@ #!/usr/bin/env node

oauth3.domains(cliOptions).then(function (results) {
oauth3.Domains.all(cliOptions).then(function (results) {
console.log('');

@@ -261,3 +261,3 @@ console.log('PURCHASED AT\t\tRENEWAL COST\tDOMAIN NAME');

oauth3.purchaseDomains({
oauth3.Domains.purchase({
provider: cliOptions.provider

@@ -282,3 +282,2 @@ , domains: program.domains

console.log("");
console.log(" dns:token # retrieve a token for dns updates (i.e. for your ddns enabled router)");
console.log(" dns:set # add a device or server to a domain name");

@@ -291,28 +290,2 @@ console.log(" dns:unset # remove a device or server from a domain name");

else if ('dns:token' === cmd || 'domains:token' === cmd) {
program
.usage('dns:token -n <domainname>')
.option('-d, --device <value>', 'Name of device / server to which this token is issued (defaults to os.hostname)')
.parse(process.argv)
;
if (helpme || 'string' !== typeof program.device) {
program.help();
return;
}
program.provider = cliOptions.provider;
oauth3.domainsToken(program.opts()).then(function (results) {
//console.log('');
//console.log('DEVICE NAME\t\tTOKEN');
//console.log('');
//console.log(program.device + '\t' + results.token);
console.log('');
console.log('Set your DDNS client to use this URL:');
console.log('');
console.log('https://oauth3.org/api/com.enom.reseller/ddns?token=' + results.token);
console.log('');
});
}
else if ('dns:list' === cmd) {

@@ -335,6 +308,6 @@ program

if (program.opts().all) {
promise = oauth3.allDns(program.opts());
promise = oauth3.Dns.all(program.opts());
}
else {
promise = oauth3.getDns(program.opts());
promise = oauth3.Dns.get(program.opts());
}

@@ -418,3 +391,3 @@ promise.then(function (results) {

oauth3.updateDns({
oauth3.Dns.set({
provider: cliOptions.provider

@@ -449,3 +422,3 @@ , domain: program.opts().name

oauth3.removeDns({
oauth3.Dns.destroy({
provider: cliOptions.provider

@@ -469,2 +442,3 @@ , domain: program.opts().name

console.log(" devices:unset # remove a device (and related dns records)");
console.log(" devices:token # get ddns token for router/device/domain/dns updates");
//console.log(" devices:clone # add all domain associations from a source device to a target device");

@@ -488,3 +462,3 @@ //console.log(" devices:pair # make the two devices active clones of each other");

program.provider = cliOptions.provider;
oauth3.getDevices().then(function (results) {
oauth3.Devices.all().then(function (results) {
results.devices.sort(function (a, b) {

@@ -541,3 +515,3 @@ if (a.name > b.name) {

program.provider = cliOptions.provider;
oauth3.setDevice(program.opts()).then(function (results) {
oauth3.Devices.set(program.opts()).then(function (results) {
console.log('DEBUG devices:set results:');

@@ -566,3 +540,3 @@ console.log(results);

program.provider = cliOptions.provider;
oauth3.deleteDevice(program.opts()).then(function (results) {
oauth3.Devices.destroy(program.opts()).then(function (results) {
console.log('DEBUG devices:unset results:');

@@ -593,3 +567,3 @@ console.log(results);

program.provider = cliOptions.provider;
oauth3.addDeviceToDomain(program.opts()).then(function (results) {
oauth3.Devices.attach(program.opts()).then(function (results) {
console.log('DEBUG devices:attach results:');

@@ -617,3 +591,3 @@ console.log(results);

program.provider = cliOptions.provider;
oauth3.detachDevice(program.opts()).then(function (results) {
oauth3.Devices.detach(program.opts()).then(function (results) {
console.log('DEBUG devices:detach results:');

@@ -646,2 +620,28 @@ console.log(results);

else if ('devices:token' === cmd || 'dns:token' === cmd || 'domains:token' === cmd) {
program
.usage('dns:token -n <domainname>')
.option('-d, --device <value>', 'Name of device / server to which this token is issued (defaults to os.hostname)')
.parse(process.argv)
;
if (helpme || 'string' !== typeof program.device) {
program.help();
return;
}
program.provider = cliOptions.provider;
oauth3.Devices.token(program.opts()).then(function (results) {
//console.log('');
//console.log('DEVICE NAME\t\tTOKEN');
//console.log('');
//console.log(program.device + '\t' + results.token);
console.log('');
console.log('Set your DDNS client to use this URL:');
console.log('');
console.log('https://oauth3.org/api/com.enom.reseller/ddns?token=' + results.token);
console.log('');
});
}
else if ('wallet' === cmd) {

@@ -750,3 +750,3 @@ console.log("");

opts.provider = cliOptions.provider;
oauth3.Cards.update(opts).then(function (updatedCard) {
oauth3.Cards.update(opts).then(function (/*updatedCard*/) {
return listCards(opts, null);

@@ -753,0 +753,0 @@ });

{
"name": "daplie-tools",
"version": "1.0.0-alpha.901",
"version": "1.0.0-alpha.902",
"description": "Taking back the Internet",

@@ -35,5 +35,5 @@ "main": "index.js",

"commander": "^2.9.0",
"oauth3-cli": "git+https://github.com/OAuth3/oauth3-cli.git#v1.0.0-alpha.901",
"oauth3-cli": "git+https://github.com/OAuth3/oauth3-cli.git#v1.0.0-alpha.902",
"request": "^2.69.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