Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lukePeavey committed May 1, 2022
1 parent 5f0b994 commit 4aac4b9
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 25 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ dist/*
es/*
node_modules/*
private/*
examples/*
.vscode/*
3 changes: 3 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

npx pretty-quick --staged
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"semi": false,
"trailingComma": "es5",
"singleQuote": true
}
}
14 changes: 7 additions & 7 deletions __tests__/utils/getTargetElements.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ const querySelectorAll = document.querySelectorAll.bind(document)
const getElementsByTagName = document.querySelectorAll.bind(document)

// Create three divs with the following IDs
const divs = ['one', 'two', 'three'].map((id) => {
return createElement('div', { id, class: 'text' })
})
const divs = ['one', 'two', 'three'].map((id) =>
createElement('div', { id, class: 'text' })
)

// Create three spans with the following IDs
const spans = ['four', 'five', 'six'].map((id) => {
return createElement('span', { id, class: 'text' })
})
const spans = ['four', 'five', 'six'].map((id) =>
createElement('span', { id, class: 'text' })
)

// An array of all six elements
const elements = [...divs, ...spans]
Expand Down Expand Up @@ -77,7 +77,7 @@ describe(`utils.getTargetElements(ArrayLike<element>)`, () => {
it(`Flattens a nested arrays containing multiple collections`, () => {
const element = document.createElement('span')
const nodeList = querySelectorAll('div')
const nestedArray = [ querySelectorAll('div'), element]
const nestedArray = [querySelectorAll('div'), element]
expect(getTargetElements(nodeList)).toEqual(divs)
expect(getTargetElements(nestedArray)).toEqual([...divs, element])
})
Expand Down
2 changes: 1 addition & 1 deletion __tests__/utils/isArrayLike.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ describe('utils.isArrayLike(value)', () => {
it(`Returns false if value is not ArrayLike`, () => {
expect(isArrayLike({})).toBe(false)
expect(isArrayLike('string')).toBe(false)
expect(isArrayLike(function f() {})).toBe(false)
expect(isArrayLike(() => {})).toBe(false)
})
})
4 changes: 2 additions & 2 deletions __tests__/utils/isObject.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ describe('utils.isObject(value)', () => {
expect(isObject(document)).toBe(true)
})
it(`Returns false if value is a number, string, function, boolean, null, or undefined`, () => {
expect(isObject(function f() {})).toBe(false)
expect(isObject(() => {})).toBe(false)
expect(isObject(null)).toBe(false)
expect(isObject(undefined)).toBe(false)
expect(isObject('string')).toBe(false)
expect(isObject(1)).toBe(false)
expect(isObject(Boolean())).toBe(false)
})
})
})
27 changes: 16 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@
"devDependencies": {
"@babel/core": "^7.12.3",
"@babel/preset-env": "^7.12.1",
"@rollup/plugin-babel": "^5.2.1",
"@rollup/plugin-babel": "^5.3.1",
"@types/jest": "^26.0.15",
"eslint": "7.2.0",
"eslint-config-airbnb-base": "14.2.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-import": "^2.21.2",
"husky": "^4.3.0",
"jest": "^26.6.1",
"prettier": "^2.1.2",
"pretty-quick": "^3.1.0",
"rollup": "^2.32.1",
"eslint": "^8.14.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"husky": "^7.0.0",
"jest": "27.x",
"prettier": "^2.6.2",
"pretty-quick": "^3.1.3",
"rollup": "^2.71.1",
"rollup-plugin-banner": "^0.2.1",
"rollup-plugin-terser": "^7.0.2"
},
Expand All @@ -60,8 +60,13 @@
],
"jest": {
"watchman": false,
"testEnvironment": "jsdom",
"testEnvironmentOptions": {
"url": "http://localhost/"
},
"setupFiles": [
"<rootDir>/scripts/test-setup.js"
]
}
},
"dependencies": {}
}
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1563,9 +1563,9 @@ camelcase@^6.0.0:
integrity sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==

caniuse-lite@^1.0.30001135:
version "1.0.30001154"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001154.tgz#f3bbc245ce55e4c1cd20fa731b097880181a7f17"
integrity sha512-y9DvdSti8NnYB9Be92ddMZQrcOe04kcQtcxtBx4NkB04+qZ+JUWotnXBJTmxlKudhxNTQ3RRknMwNU2YQl/Org==
version "1.0.30001334"
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001334.tgz"
integrity sha512-kbaCEBRRVSoeNs74sCuq92MJyGrMtjWVfhltoHUCW4t4pXFvGjUBrfo47weBRViHkiV3eBYyIsfl956NtHGazw==

capture-exit@^2.0.0:
version "2.0.0"
Expand Down

0 comments on commit 4aac4b9

Please sign in to comment.