update to latest dependencies
This commit is contained in:
		
							
								
								
									
										5
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -1,8 +1,7 @@ | ||||
| coverage/ | ||||
| docs/ | ||||
| ts/typings/ | ||||
| ts/**/*.js | ||||
| ts/**/*.js.map | ||||
| .idea/ | ||||
| node_modules/ | ||||
|  | ||||
| .nogit/ | ||||
| nogit/ | ||||
|   | ||||
| @@ -3,7 +3,7 @@ | ||||
|   "version": "0.0.3", | ||||
|   "description": "cloudflare management for CoreOS", | ||||
|   "main": "dist/index.js", | ||||
|   "typings":"dist/index.d.ts", | ||||
|   "typings": "dist/index.d.ts", | ||||
|   "scripts": { | ||||
|     "test": "(npmts)" | ||||
|   }, | ||||
| @@ -30,6 +30,7 @@ | ||||
|   }, | ||||
|   "devDependencies": { | ||||
|     "npmts-g": "^5.2.6", | ||||
|     "qenv": "^1.0.6", | ||||
|     "should": "^9.0.2", | ||||
|     "typings-test": "^1.0.1" | ||||
|   } | ||||
|   | ||||
							
								
								
									
										13
									
								
								test/test.js
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								test/test.js
									
									
									
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										11
									
								
								test/test.ts
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								test/test.ts
									
									
									
									
									
								
							| @@ -1,12 +1,13 @@ | ||||
| import "typings-test"; | ||||
| import cflare = require("../dist/index"); | ||||
| let should = require("should"); | ||||
| let nogit = require("../nogit/nogit.json"); | ||||
| import {Qenv} from "qenv"; | ||||
| let testQenv = new Qenv(process.cwd(),process.cwd() + "/.nogit");  | ||||
|  | ||||
| let testCflareAccount = new cflare.CflareAccount(); | ||||
| testCflareAccount.auth({ | ||||
|     email: nogit.cfemail, | ||||
|     key: nogit.cfkey | ||||
|     email: process.env.CF_EMAIL, | ||||
|     key: process.env.CF_KEY | ||||
| }); | ||||
|  | ||||
| describe("cflare",function(){ | ||||
| @@ -24,7 +25,7 @@ describe("cflare",function(){ | ||||
|         describe(".getZoneId(domainName)",function(){ | ||||
|             it("should get an Cloudflare Id for a domain string",function(done){ | ||||
|                 this.timeout(10000) | ||||
|                 testCflareAccount.getZoneId("push.rocks") | ||||
|                 testCflareAccount.getZoneId("bleu.de") | ||||
|                     .then((responseArg)=>{ | ||||
|                         console.log(responseArg); | ||||
|                         done(); | ||||
| @@ -34,7 +35,7 @@ describe("cflare",function(){ | ||||
|         describe(".listRecords(domainName)",function(){ | ||||
|             it("should list all records for a specific Domain Name",function(done){ | ||||
|                 this.timeout(10000); | ||||
|                 testCflareAccount.listRecords("push.rocks") | ||||
|                 testCflareAccount.listRecords("bleu.de") | ||||
|                     .then((responseArg) => { | ||||
|                         console.log(responseArg); | ||||
|                         done(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user