react-children-utilities
Advanced tools
Comparing version 1.3.3 to 2.0.0-beta.0
{ | ||
"extends": ["airbnb", "plugin:jest/all", "prettier"], | ||
"parser": "babel-eslint", | ||
"extends": [ | ||
"airbnb", | ||
"plugin:import/typescript", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:jest/all", | ||
"prettier", | ||
"prettier/@typescript-eslint" | ||
], | ||
"parserOptions": { | ||
"project": "./tsconfig.all.json" | ||
}, | ||
"env": { | ||
@@ -9,4 +18,5 @@ "browser": true | ||
"jest/no-hooks": "off", | ||
"jest/prefer-expect-assertions": "off" | ||
"jest/prefer-expect-assertions": "off", | ||
"react/jsx-filename-extension": ["error", { "extensions": [".tsx"] }] | ||
} | ||
} |
@@ -5,4 +5,4 @@ { | ||
"pre-commit": "lint-staged", | ||
"pre-push": "yarn lint && yarn test && yarn flow && yarn build && yarn size" | ||
"pre-push": "yarn verify" | ||
} | ||
} |
module.exports = { | ||
collectCoverageFrom: ['src/**/*.js', 'src/**/*.jsx'], | ||
collectCoverageFrom: ['src/**/*.ts', 'src/**/*.tsx'], | ||
testEnvironment: 'enzyme', | ||
transform: { | ||
'^.+\\.jsx?$': 'babel-jest', | ||
'^.+\\.tsx?$': 'ts-jest', | ||
}, | ||
setupFilesAfterEnv: ['jest-enzyme'], | ||
globals: { | ||
'ts-jest': { | ||
tsConfig: 'tsconfig.all.json', | ||
}, | ||
}, | ||
setupFilesAfterEnv: ['./setupTests.ts'], | ||
}; |
105
package.json
{ | ||
"name": "react-children-utilities", | ||
"version": "1.3.3", | ||
"version": "2.0.0-beta.0", | ||
"description": "Extended utils for React.Children opaque data structure", | ||
"keywords": [ | ||
"children", | ||
"react", | ||
"reactjs", | ||
"children", | ||
"utils", | ||
"utilities" | ||
"utilities", | ||
"utils" | ||
], | ||
"homepage": "https://github.com/fernandopasik/react-children-utilities", | ||
"bugs": "https://github.com/fernandopasik/react-children-utilities/issues", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/fernandopasik/react-children-utilities.git" | ||
}, | ||
"license": "MIT", | ||
@@ -20,38 +24,33 @@ "author": "Fernando Pasik <fernando@pasik.com.ar> (https://fernandopasik.com)", | ||
], | ||
"typings": "./src/index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/fernandopasik/react-children-utilities.git" | ||
}, | ||
"main": "dist/index.js", | ||
"files": [ | ||
"/react-children-utilities.*", | ||
"/lib", | ||
"/src", | ||
"!*.spec.*" | ||
], | ||
"main": "react-children-utilities.js", | ||
"module": "react-children-utilities.js", | ||
"typings": "react-children-utilities.d.ts", | ||
"scripts": { | ||
"prebuild": "del lib react-children-utilities.*", | ||
"build": "tsc && rollup -c && yarn flowgen", | ||
"check-types": "tsc --noEmit -p tsconfig.all.json && flow", | ||
"flowgen": "flowgen react-children-utilities.d.ts --quiet -o react-children-utilities.js.flow", | ||
"lint": "eslint . --ext js,jsx,ts,tsx", | ||
"size": "bundlesize", | ||
"test": "jest --coverage", | ||
"lint": "eslint .", | ||
"build": "babel src/index.js --minified --source-maps --no-comments --out-file dist/index.js", | ||
"prebuild": "del dist && make-dir dist", | ||
"size": "bundlesize", | ||
"preversion": "yarn lint && yarn test && yarn flow && yarn build && yarn size" | ||
"verify": "yarn lint && yarn check-types && yarn test && yarn build && yarn size", | ||
"preversion": "yarn verify" | ||
}, | ||
"bundlesize": [ | ||
{ | ||
"path": "dist/index.js", | ||
"maxSize": "1.5 kB" | ||
} | ||
], | ||
"resolutions": { | ||
"axios": "^0.19.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "15.x.x && 16.x.x" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.6.2", | ||
"@babel/core": "^7.6.2", | ||
"@babel/preset-env": "^7.6.2", | ||
"@babel/preset-react": "^7.0.0", | ||
"@commitlint/cli": "^8.2.0", | ||
"@commitlint/config-conventional": "^8.2.0", | ||
"babel-eslint": "^10.0.3", | ||
"babel-jest": "^24.9.0", | ||
"@types/enzyme": "^3.10.3", | ||
"@types/enzyme-adapter-react-16": "^1.0.5", | ||
"@types/jest": "^24.0.18", | ||
"@types/react": "^16.9.5", | ||
"@types/react-dom": "^16.9.1", | ||
"@typescript-eslint/eslint-plugin": "^2.3.3", | ||
"@typescript-eslint/parser": "^2.3.3", | ||
"bundlesize": "^0.18.0", | ||
@@ -61,13 +60,14 @@ "codecov": "^3.6.1", | ||
"enzyme": "^3.10.0", | ||
"enzyme-adapter-react-16": "^1.14.0", | ||
"enzyme-adapter-react-16": "^1.15.1", | ||
"eslint": "^6.5.1", | ||
"eslint-config-airbnb": "^18.0.1", | ||
"eslint-config-prettier": "^6.3.0", | ||
"eslint-config-prettier": "^6.4.0", | ||
"eslint-plugin-import": "^2.18.2", | ||
"eslint-plugin-jest": "^22.17.0", | ||
"eslint-plugin-jest": "^22.19.0", | ||
"eslint-plugin-jsx-a11y": "^6.2.3", | ||
"eslint-plugin-react": "^7.15.0", | ||
"eslint-plugin-react-hooks": "^2.1.1", | ||
"flow-bin": "^0.108.0", | ||
"husky": "^3.0.7", | ||
"eslint-plugin-react": "^7.16.0", | ||
"eslint-plugin-react-hooks": "^2.1.2", | ||
"flow-bin": "^0.109.0", | ||
"flowgen": "^1.10.0", | ||
"husky": "^3.0.9", | ||
"jest": "^24.9.0", | ||
@@ -77,11 +77,22 @@ "jest-environment-enzyme": "^7.1.1", | ||
"jest-junit": "^8.0.0", | ||
"lint-staged": "^9.4.1", | ||
"lint-staged": "^9.4.2", | ||
"make-dir-cli": "^2.0.0", | ||
"prop-types": "^15.7.2", | ||
"raf": "^3.4.1", | ||
"react": "^16.8.4", | ||
"react-dom": "^16.10.1", | ||
"react-test-renderer": "^16.10.1", | ||
"typescript": "^3.6.3" | ||
} | ||
"react": "^16.10.2", | ||
"react-dom": "^16.10.2", | ||
"react-test-renderer": "^16.10.2", | ||
"rollup": "^1.23.1", | ||
"rollup-plugin-terser": "^5.1.2", | ||
"ts-jest": "^24.1.0", | ||
"typescript": "^3.6.4" | ||
}, | ||
"peerDependencies": { | ||
"react": "15.x.x || 16.x.x" | ||
}, | ||
"bundlesize": [ | ||
{ | ||
"path": "react-children-utilities.min.js", | ||
"maxSize": "1 kB" | ||
} | ||
] | ||
} |
{ | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"declaration": true, | ||
"declarationMap": true, | ||
"esModuleInterop": true, | ||
"experimentalDecorators": true, | ||
"inlineSources": true, | ||
"lib": ["es2017", "dom", "dom.iterable"], | ||
"lib": ["es2019", "dom", "dom.iterable"], | ||
"module": "ESNext", | ||
"moduleResolution": "node", | ||
"noEmit": true, | ||
"noFallthroughCasesInSwitch": true, | ||
@@ -16,4 +16,4 @@ "noImplicitAny": false, | ||
"noUnusedParameters": true, | ||
"outDir": "dist", | ||
"rootDir": "src", | ||
"outDir": ".", | ||
"rootDirs": ["src"], | ||
"skipLibCheck": true, | ||
@@ -26,9 +26,9 @@ "sourceMap": true, | ||
}, | ||
"include": [ | ||
"src/**/*" | ||
], | ||
"include": ["src/**/*"], | ||
"exclude": [ | ||
"src/**/*.flow", | ||
"node_modules" | ||
"node_modules", | ||
"**/__tests__/**/*", | ||
"**/?(*.)+(spec|test).(js|ts)?(x)" | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 2 instances in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
597740
135
1692
39
3