Skip to content

Commit

Permalink
Upgrade to latest dependencies (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
leebyron authored Jan 31, 2018
1 parent a95673c commit c184195
Show file tree
Hide file tree
Showing 6 changed files with 970 additions and 988 deletions.
34 changes: 1 addition & 33 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,46 +5,14 @@

"parser": "babel-eslint",

"plugins": [
"babel"
],

"env": {
"es6": true,
"node": true
},

"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"experimentalObjectRestSpread": true,
"forOf": true,
"generators": true,
"globalReturn": true,
"jsx": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"octalLiterals": true,
"regexUFlag": true,
"regexYFlag": true,
"restParams": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"unicodeCodePointEscapes": true
},

"rules": {
"babel/arrow-parens": [2, "as-needed"],

"array-bracket-spacing": [2, "always"],
"arrow-parens": [2, "as-needed"],
"arrow-spacing": 2,
"block-scoped-var": 0,
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
Expand Down
60 changes: 25 additions & 35 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"url": "http://github.com/facebook/dataloader.git"
},
"main": "index.js",
"typings": "index.d.ts",
"options": {
"mocha": "--require resources/mocha-bootload src/**/__tests__/**/*.js"
},
Expand Down Expand Up @@ -44,16 +45,9 @@
}
],
"transform-es2015-parameters",
[
"transform-es2015-destructuring",
{
"loose": true
}
],
"add-module-exports",
"transform-es2015-block-scoping",
[
"transform-es2015-modules-commonjs",
"transform-es2015-destructuring",
{
"loose": true
}
Expand Down Expand Up @@ -82,32 +76,28 @@
"PATENTS"
],
"devDependencies": {
"babel-cli": "6.14.0",
"babel-eslint": "6.1.2",
"babel-plugin-add-module-exports": "0.2.1",
"babel-plugin-transform-async-to-generator": "6.8.0",
"babel-plugin-transform-class-properties": "6.11.5",
"babel-plugin-transform-es2015-arrow-functions": "6.8.0",
"babel-plugin-transform-es2015-block-scoping": "6.15.0",
"babel-plugin-transform-es2015-classes": "6.14.0",
"babel-plugin-transform-es2015-destructuring": "6.9.0",
"babel-plugin-transform-es2015-function-name": "6.9.0",
"babel-plugin-transform-es2015-literals": "6.8.0",
"babel-plugin-transform-es2015-modules-commonjs": "6.14.0",
"babel-plugin-transform-es2015-parameters": "6.11.4",
"babel-plugin-transform-es2015-shorthand-properties": "6.8.0",
"babel-plugin-transform-es2015-spread": "6.8.0",
"babel-plugin-transform-es2015-template-literals": "6.8.0",
"babel-plugin-transform-flow-strip-types": "6.14.0",
"babel-plugin-transform-regenerator": "6.14.0",
"chai": "3.5.0",
"coveralls": "2.11.14",
"eslint": "3.5.0",
"eslint-plugin-babel": "3.3.0",
"flow-bin": "0.53.0",
"babel-cli": "6.26.0",
"babel-eslint": "8.2.1",
"babel-plugin-transform-async-to-generator": "6.24.1",
"babel-plugin-transform-class-properties": "6.24.1",
"babel-plugin-transform-es2015-arrow-functions": "6.22.0",
"babel-plugin-transform-es2015-block-scoping": "6.26.0",
"babel-plugin-transform-es2015-classes": "6.24.1",
"babel-plugin-transform-es2015-destructuring": "6.23.0",
"babel-plugin-transform-es2015-function-name": "6.24.1",
"babel-plugin-transform-es2015-literals": "6.22.0",
"babel-plugin-transform-es2015-parameters": "6.24.1",
"babel-plugin-transform-es2015-shorthand-properties": "6.24.1",
"babel-plugin-transform-es2015-spread": "6.22.0",
"babel-plugin-transform-es2015-template-literals": "6.22.0",
"babel-plugin-transform-flow-strip-types": "6.22.0",
"babel-plugin-transform-regenerator": "6.26.0",
"chai": "4.1.2",
"coveralls": "3.0.0",
"eslint": "4.16.0",
"flow-bin": "0.64.0",
"isparta": "4.0.0",
"mocha": "3.0.2",
"sane": "1.4.1"
},
"typings": "index.d.ts"
"mocha": "5.0.0",
"sane": "2.3.0"
}
}
6 changes: 3 additions & 3 deletions src/__tests__/abuse-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

import { expect } from 'chai';
import { describe, it } from 'mocha';
import DataLoader from '../';
const { expect } = require('chai');
const { describe, it } = require('mocha');
const DataLoader = require('../');

describe('Provides descriptive error messages for API abuse', () => {

Expand Down
6 changes: 3 additions & 3 deletions src/__tests__/dataloader-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

import { expect } from 'chai';
import { describe, it } from 'mocha';
import DataLoader from '../';
const { expect } = require('chai');
const { describe, it } = require('mocha');
const DataLoader = require('../');

function idLoader(options) {
var loadCalls = [];
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ function dispatchQueueBatch<K, V>(

// Step through the values, resolving or rejecting each Promise in the
// loaded queue.
queue.forEach(({ key, resolve, reject }, index) => {
queue.forEach(({ resolve, reject }, index) => {
var value = values[index];
if (value instanceof Error) {
reject(value);
Expand Down
Loading

0 comments on commit c184195

Please sign in to comment.