Skip to content

Commit 47abd09

Browse files
updated: dependencies and fixed npm audit
1 parent 180f0c4 commit 47abd09

File tree

5 files changed

+12
-14
lines changed

5 files changed

+12
-14
lines changed

.travis.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ branches:
66
only:
77
- master
88

9-
before_install:
10-
11-
12-
- npm i @gianlucaguarini/[email protected]
13-
14-
159
before_script:
1610
- npm run build
1711

index.next.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ import domToArray from 'bianco.dom-to-array'
1313
* // force reflow on a single element
1414
* forceReflow(document.querySelector('.post'))
1515
*/
16-
export default function forceReflow (el) {
16+
export default function forceReflow(el) {
1717
return domToArray(el).map(el => el.scrollTop) && el
1818
}

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,12 @@
3131
},
3232
"homepage": "https://github.com/biancojs/force-reflow#readme",
3333
"devDependencies": {
34-
"jsdom": "11.7.0",
35-
"jsdom-global": "^3.0.2",
34+
"@gianlucaguarini/eslint-config": "^2.0.0",
35+
"eslint": "^4.19.1",
36+
"jsdom": "11.11.0",
37+
"jsdom-global": "3.0.2",
38+
"mocha": "^5.2.0",
39+
"rollup": "^0.59.4",
3640
"rollup-plugin-node-resolve": "^3.3.0"
3741
},
3842
"dependencies": {

rollup.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import resolve from 'rollup-plugin-node-resolve'
22

33
export default {
4-
entry: 'index.next.js',
4+
input: 'index.next.js',
55
plugins: [
66
resolve({
77
jsnext: true
88
})
99
],
10-
targets: [
10+
output: [
1111
{
12-
dest: 'index.js',
12+
file: 'index.js',
1313
format: 'cjs'
1414
}
1515
]

test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const forceReflow = require('./')
44
const body = document.body
55

66
describe('Bianco forceReflow', function() {
7-
beforeEach(function () {
8-
var div = document.createElement('div')
7+
beforeEach(function() {
8+
const div = document.createElement('div')
99
div.innerHTML = `
1010
<p>hello</p>
1111
<ul>

0 commit comments

Comments
 (0)