Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
2ef01e1111 | |||
0f129262e9 | |||
8e4d40edd0 | |||
f6afe90a63 |
@ -24,7 +24,7 @@ import * as dnsly from 'dnsly'
|
|||||||
|
|
||||||
let myDnsly = new dnsly.Dnsly('google') // uses Google DNS Servers e.g 8.8.8.8
|
let myDnsly = new dnsly.Dnsly('google') // uses Google DNS Servers e.g 8.8.8.8
|
||||||
myDnsly.getRecord('example.com','AAAA') // returns promise
|
myDnsly.getRecord('example.com','AAAA') // returns promise
|
||||||
.then(record: dnsly.I_AAAA => { // AAAA record for google.com, the I_AAAA will give you proper typings for the record return type
|
.then((record: dnsly.I_AAAA) => { // AAAA record for google.com, the I_AAAA will give you proper typings for the record return type
|
||||||
// do something
|
// do something
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "dnsly",
|
"name": "dnsly",
|
||||||
"version": "1.0.5",
|
"version": "1.0.7",
|
||||||
"description": "smart dns methods written in TypeScript",
|
"description": "smart dns methods written in TypeScript",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "../dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "(npmts)"
|
"test": "(npmts)"
|
||||||
},
|
},
|
||||||
@ -30,7 +30,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/should": "^8.1.30",
|
"@types/should": "^8.1.30",
|
||||||
"should": "^11.1.1",
|
"should": "^11.1.2",
|
||||||
"typings-test": "^1.0.3"
|
"typings-test": "^1.0.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user