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

ascio

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ascio - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

34

lib/ascio.js

@@ -133,2 +133,36 @@ var soap = require('soap'),

Ascio.prototype.updateNS = function(domain, nss, cb) {
var self = this;
var order = {
'Type': 'Nameserver_Update',
'Domain': {
'DomainName': domain,
'NameServers': {}
}
};
for (var i = 0; i < nss.length; i++) {
order.Domain.NameServers['NameServer' + (i+1)] = {};
order.Domain.NameServers['NameServer' + (i+1)]['HostName'] = nss[i];
}
var opts = {
'sessionId': self.sessionid,
'order': order,
};
debug(require('util').inspect(opts));
//TODO: result is lost, find why.
this.client.CreateOrder(opts, function(err, result) {
if(err) return cb(err, undefined);
debug(require('util').inspect(result));
return cb(err, 'changed');
});
};
module.exports = Ascio;

2

package.json
{
"name": "ascio",
"description": "ASCIO AWS node implementation",
"version": "0.0.6",
"version": "0.0.7",
"author": "Pedro Dias <petermdias@gmail.com>",

@@ -6,0 +6,0 @@ "maintainers": [

node-ascio
==========
WIP
WIP... very WIP...
DEBUG=network && ASCIO_USERNAME=username && ASCIO_PASSWORD=password && node test/lab.js
DEBUG=network && ASCIO_USERNAME=username && ASCIO_PASSWORD=password && node test/lab.js

@@ -12,8 +12,16 @@ var Ascio = require('../lib/ascio');

*/
ascio.domainInfo('algarve.bike', function(err, msg) {
/*
ascio.domainInfo('adsfafd.bike', function(err, msg) {
if(err) throw err;
console.log(require('util').inspect(msg, { showHidden: true, depth: null }));
});
*/
/*
ascio.updateNS('rttrytrs.eu', ['ns5.mydnspt.net', 'ns6.mydnspt.net'], function(err, msg) {
if(err) throw err;
console.log(require('util').inspect(msg, { showHidden: true, depth: null }));
});
*/
});
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