Compare commits

..

4 Commits

Author SHA1 Message Date
6286bfaa8f 3.0.4 2018-05-13 16:43:47 +02:00
9390bbae61 fix(core): fix .checkUntilAvailable error 2018-05-13 16:43:46 +02:00
ebb007bcdb 3.0.3 2018-05-13 16:22:38 +02:00
e6d99d5664 fix(ci): fix @gitzone/npmts package name 2018-05-13 16:22:37 +02:00
3 changed files with 10 additions and 3 deletions

View File

@ -4,7 +4,7 @@
},
"npmci": {
"npmGlobalTools": [
"@pushrocks/npmts",
"@gitzone/npmts",
"ts-node"
],
"npmAccessLevel": "public"

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartdns",
"version": "3.0.2",
"version": "3.0.4",
"description": "smart dns methods written in TypeScript",
"main": "dist/index.js",
"typings": "dist/index.d.ts",

View File

@ -34,6 +34,13 @@ export class Smartdns {
this._setDnsProvider(dnsProviderArg);
}
/**
* check a dns record until it has propagated to Google DNS
* should be considerably fast
* @param recordNameArg
* @param recordTypeArg
* @param expectedValue
*/
async checkUntilAvailable(
recordNameArg: string,
recordTypeArg: TDnsRecordType,
@ -45,7 +52,7 @@ export class Smartdns {
cycleArg++;
try {
let myRecordArray = await this.getRecord(recordNameArg, recordTypeArg);
let myRecord = myRecordArray[0].value;
let myRecord = myRecordArray[0].value[0];
if (myRecord === expectedValue) {
return true;
} else {