Skip to content

Commit

Permalink
fix(ncu): lock whatwg-fetch and install @rollup-umd/ncu
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri Kopriwa committed Mar 4, 2019
1 parent d52071c commit 7c31c29
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ rollup.config.js
/reports
/*.tgz
/lib/**/*.md
**/tests/*.test.js
.ncurc.js
2 changes: 2 additions & 0 deletions ncurc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const { createConfig } = require('@rollup-umd/ncu');
module.exports = createConfig();
43 changes: 25 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,15 @@
"keywords": [
"yeutech.vn",
"test",
"polyfill"
"polyfill",
"ncu",
"@rollup-umd/ncu"
],
"ncurc": {
"reject": [
"whatwg-fetch"
]
},
"license": "MIT",
"eslintConfig": {
"parser": "babel-eslint",
Expand Down Expand Up @@ -139,23 +146,24 @@
],
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/core": "^7.3.4",
"@babel/plugin-external-helpers": "^7.2.0",
"@babel/plugin-proposal-class-properties": "^7.3.0",
"@babel/plugin-proposal-class-properties": "^7.3.4",
"@babel/plugin-proposal-decorators": "^7.3.0",
"@babel/plugin-proposal-json-strings": "^7.2.0",
"@babel/plugin-proposal-object-rest-spread": "^7.3.2",
"@babel/plugin-proposal-object-rest-spread": "^7.3.4",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/plugin-syntax-import-meta": "^7.2.0",
"@babel/plugin-transform-async-to-generator": "^7.2.0",
"@babel/plugin-transform-async-to-generator": "^7.3.4",
"@babel/plugin-transform-modules-commonjs": "^7.2.0",
"@babel/plugin-transform-react-constant-elements": "^7.2.0",
"@babel/plugin-transform-react-inline-elements": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.2.0",
"@babel/preset-env": "^7.3.1",
"@babel/plugin-transform-runtime": "^7.3.4",
"@babel/preset-env": "^7.3.4",
"@babel/preset-react": "^7.0.0",
"@rollup-umd/documentation": "^1.3.13",
"@rollup-umd/rollup": "^1.0.1",
"@rollup-umd/documentation": "^1.3.16",
"@rollup-umd/ncu": "^1.0.3",
"@rollup-umd/rollup": "^1.0.7",
"@semantic-release/changelog": "^3.0.2",
"@semantic-release/git": "^7.0.8",
"@semantic-release/github": "^5.2.10",
Expand All @@ -171,28 +179,27 @@
"babel-plugin-react-transform": "^3.0.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"cz-conventional-changelog": "^2.1.0",
"eslint": "^5.13.0",
"eslint": "^5.15.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.16.0",
"exports-loader": "^0.7.0",
"istanbul-api": "^2.1.0",
"istanbul-reports": "^2.1.0",
"istanbul-api": "^2.1.1",
"istanbul-reports": "^2.1.1",
"jest-cli": "^24.1.0",
"jest-sonar-reporter": "^2.0.0",
"lint-staged": "^8.1.3",
"lint-staged": "^8.1.5",
"pre-commit": "^1.2.2",
"react-styleguidist": "^8.0.6",
"rollup": "^1.1.2",
"rollup": "^1.4.0",
"semantic-release": "^15.13.3",
"sinon": "^7.2.3",
"toctoc": "^0.3.2",
"webpack": "^4.29.2"
"webpack": "^4.29.6"
},
"dependencies": {
"@babel/runtime": "^7.3.1",
"@babel/runtime": "^7.3.4",
"@yeutech-lab/isomorphic-fetch": "^2.2.1",
"fetch-cookie": "^0.7.2",
"fetch-mock": "^7.3.0",
"fetch-mock": "^7.3.1",
"jest-mock": "^24.0.0",
"localStorage": "^1.0.4",
"tough-cookie": "^3.0.1",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function polyfill(options) {
}

if (opts.media) {
root.matchMedia = root.matchMedia
root.matchMedia = root.matchMedia // eslint-disable-line func-names
|| function () {
return {
matches: false,
Expand All @@ -68,7 +68,7 @@ export function polyfill(options) {
};

root.requestAnimationFrame = root.requestAnimationFrame
|| function (callback) {
|| function (callback) { // eslint-disable-line func-names
setTimeout(callback, 0);
};
}
Expand Down

0 comments on commit 7c31c29

Please sign in to comment.