Compare commits

...

4 Commits

Author SHA1 Message Date
2ef01e1111 1.0.7 2017-01-15 17:05:35 +01:00
0f129262e9 fix 2017-01-15 17:04:16 +01:00
8e4d40edd0 1.0.6 2016-11-15 22:49:28 +01:00
f6afe90a63 improve README 2016-11-15 22:48:58 +01:00
2 changed files with 4 additions and 4 deletions

View File

@ -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
}) })
``` ```

View File

@ -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"
} }
} }