Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 2339fd1

Browse files
author
Mark Owsiak
committed
chore: npm audit, drop babel
1 parent adb17d0 commit 2339fd1

13 files changed

+41
-39
lines changed

.babelrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"extends": "groupon/node6"
2+
"extends": "groupon/node8"
33
}

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,14 @@
3131
},
3232
"devDependencies": {
3333
"assertive": "^2.1.0",
34-
"babel-cli": "^6.24.1",
35-
"babel-core": "^5.8.33",
36-
"babel-eslint": "^8.1.2",
37-
"babel-preset-env": "^1.6.0",
3834
"eslint": "^4.7.1",
3935
"eslint-config-groupon": "^5.0.0",
4036
"eslint-plugin-import": "^2.8.0",
4137
"eslint-plugin-node": "^5.2.1",
4238
"eslint-plugin-prettier": "^2.2.0",
39+
"lodash": "^4.17.11",
4340
"mocha": "^5.2.0",
44-
"nlm": "^3.3.1",
41+
"nlm": "^3.3.4",
4542
"prettier": "^1.6.1"
4643
},
4744
"author": {

test/.eslintrc

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
{
22
"env": {
33
"mocha": true
4-
},
5-
"parser": "babel-eslint",
6-
"parserOptions": {
7-
"sourceType": "module",
8-
"allowImportExportEverywhere": true,
9-
"codeFrame": false
10-
},
11-
"root": true
4+
}
125
}

test/_backends.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
import { defaults } from 'lodash';
1+
'use strict';
22

3-
import Cache from '../lib/cache';
3+
const { defaults } = require('lodash');
4+
5+
const Cache = require('../lib/cache');
46

57
const backendOptions = {
68
hosts: `${process.env.MEMCACHED__HOST || '127.0.0.1'}:11211`,
79
};
810

9-
export default function withBackends(createTestCases) {
11+
module.exports = function withBackends(createTestCases) {
1012
['memory', 'memcached'].forEach(backendType => {
1113
describe(`with backend "${backendType}"`, () => {
1214
const cache = new Cache({
@@ -19,4 +21,4 @@ export default function withBackends(createTestCases) {
1921
createTestCases(cache);
2022
});
2123
});
22-
}
24+
};

test/_unhandled-rejection.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
'use strict';
2+
13
/* eslint no-console:0 */
2-
import Bluebird from 'bluebird';
4+
const Bluebird = require('bluebird');
35

46
const unhandledRejections = [];
57
Bluebird.onPossiblyUnhandledRejection(error => {

test/cache.test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
import assert from 'assertive';
1+
'use strict';
22

3-
import Cache from '../lib/cache';
3+
const assert = require('assertive');
4+
5+
const Cache = require('../lib/cache');
46

57
describe('Cache', () => {
68
it('always has a backend', () => {

test/cached.test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
import assert from 'assertive';
1+
'use strict';
22

3-
import cached from '..';
3+
const assert = require('assertive');
4+
5+
const cached = require('..');
46

57
describe('cached', () => {
68
beforeEach(() => cached.dropNamedCaches());

test/get-or-else.test.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import assert from 'assertive';
2-
import Bluebird from 'bluebird';
1+
'use strict';
32

4-
import Cache from '../lib/cache';
3+
const assert = require('assertive');
4+
const Bluebird = require('bluebird');
55

6-
import withBackends from './_backends';
6+
const Cache = require('../lib/cache');
7+
const withBackends = require('./_backends');
78

89
function assertRejects(promise) {
910
return promise.then(() => {

test/get-set.test.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
import assert from 'assertive';
2-
import Bluebird from 'bluebird';
1+
'use strict';
32

4-
import withBackends from './_backends';
3+
const assert = require('assertive');
4+
const Bluebird = require('bluebird');
5+
6+
const withBackends = require('./_backends');
57

68
describe('Cache::{get,set,unset}', () => {
79
withBackends(cache => {

test/mocha.opts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
--recursive
22
--timeout 6000
33
--slow 4000
4-
--compilers js:babel-core/register

test/prefix.test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
import assert from 'assertive';
1+
'use strict';
22

3-
import cached from '..';
3+
const assert = require('assertive');
4+
5+
const cached = require('..');
46

57
describe('cache prefix', () => {
68
it('adds a prefix to named cached', async () => {

test/timeout.test.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
import assert from 'assertive';
2-
import Bluebird from 'bluebird';
1+
'use strict';
2+
3+
const assert = require('assertive');
4+
const Bluebird = require('bluebird');
5+
36
const identity = val => val;
47

5-
import Cache from '../lib/cache';
8+
const Cache = require('../lib/cache');
69

710
describe('Cache timeouts', () => {
811
const cache = new Cache({

0 commit comments

Comments
 (0)