Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"ecmaFeatures": {
"blockBindings": true,
"forOf": true,
"jsx": true,
"generators": true
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"blockBindings": true,
"forOf": true,
"jsx": true,
"generators": true
},
},
"env": {
"node": true
Expand All @@ -14,6 +17,7 @@
"beforeEach": false,
"afterEach": false,
"describe": false,
"Promise": false,
"it": false
},
"rules": {
Expand Down Expand Up @@ -46,7 +50,7 @@
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-empty-character-class": 2,
"no-empty-label": 2,
"no-labels": 2,
"no-eval": 2,
"no-ex-assign": 2,
"no-extend-native": 2,
Expand All @@ -62,7 +66,6 @@
"no-irregular-whitespace": 2,
"no-iterator": 2,
"no-label-var": 2,
"no-labels": 2,
"no-lone-blocks": 2,
"no-mixed-spaces-and-tabs": 2,
"no-multi-spaces": 2,
Expand Down Expand Up @@ -102,12 +105,11 @@
"quotes": [2, "single", "avoid-escape"],
"radix": 2,
"semi": [2, "always"],
"space-after-keywords": [2, "always"],
"keyword-spacing": 2,
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, "never"],
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"space-return-throw-case": 2,
"space-unary-ops": [2, { "words": true, "nonwords": false }],
"spaced-comment": [2, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!", ","] }],
"use-isnan": 2,
Expand Down
12 changes: 6 additions & 6 deletions lib/dnsmadeeasy/managedDns.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ describe('ManagedDns', function() {

try {
yield managedDns.createDomain();
}catch (ex) {
} catch (ex) {
return expect(ex.message).to.be.eql('Must supply payload to create domain');
}

Expand Down Expand Up @@ -155,7 +155,7 @@ describe('ManagedDns', function() {

try {
yield managedDns.createMultipleDomains();
}catch (ex) {
} catch (ex) {
return expect(ex.message).to.be.eql('Must supply payload to create domain');
}

Expand All @@ -172,7 +172,7 @@ describe('ManagedDns', function() {

try {
yield managedDns.getDomain();
}catch (ex) {
} catch (ex) {
return expect(ex.message).to.be.eql('Invalid domain id given');
}

Expand Down Expand Up @@ -203,7 +203,7 @@ describe('ManagedDns', function() {

try {
yield managedDns.deleteDomain();
}catch (ex) {
} catch (ex) {
return expect(ex.message).to.be.eql('Invalid domain id given');
}

Expand Down Expand Up @@ -234,7 +234,7 @@ describe('ManagedDns', function() {

try {
yield managedDns.deleteMultipleDomains();
}catch (ex) {
} catch (ex) {
return expect(ex.message).to.be.eql('Must supply payload to remove domain');
}

Expand Down Expand Up @@ -267,7 +267,7 @@ describe('ManagedDns', function() {

try {
yield managedDns.updateDomain();
}catch (ex) {
} catch (ex) {
return expect(ex.message).to.be.eql('Invalid domain id given');
}

Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
"main": "lib/dnsmadeeasy.js",
"dependencies": {
"bluebird": "3.0.5",
"chai": "^3.5.0",
"lodash": "3.10.1",
"request": "2.67.0"
"request": "^2.79.0"
},
"devDependencies": {
"chai-subset": "1.1.0",
"co-mocha": "1.1.2",
"eslint": "1.10.2",
"istanbul": "0.4.1",
"mocha": "2.3.4",
"co-mocha": "^1.2.0",
"eslint": "^3.14.1",
"istanbul": "^0.4.5",
"mocha": "^3.2.0",
"nock": "3.3.2",
"pre-commit": "1.1.2",
"sinon": "1.17.2",
Expand Down