Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-children-utilities

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-children-utilities - npm Package Compare versions

Comparing version 0.1.16 to 0.2.0

3

jest.config.js
module.exports = {
collectCoverageFrom: ['src/**'],
setupFiles: [
require.resolve('raf/polyfill'),
],
setupTestFrameworkScriptFile: './node_modules/jest-enzyme/lib/index.js',
};

19

package.json
{
"name": "react-children-utilities",
"version": "0.1.16",
"version": "0.2.0",
"description": "Extended utils for React.Children opaque data structure",

@@ -36,5 +36,6 @@ "keywords": [

},
"dependencies": {
"react": "15.x"
"peerDependencies": {
"react": "15.x || 16.x"
},
"dependencies": {},
"devDependencies": {

@@ -49,3 +50,4 @@ "babel-cli": "^6.26.0",

"coveralls": "^2.13.1",
"enzyme": "^2.9.1",
"enzyme": "^3.0.0",
"enzyme-adapter-react-16": "^1.0.0",
"eslint": "^4.7.2",

@@ -58,8 +60,9 @@ "eslint-config-airbnb": "^15.1.0",

"jest": "^21.2.0",
"jest-enzyme": "^3.8.3",
"jest-enzyme": "^4.0.0",
"prepare-commit-msg-angular": "^0.2.0",
"prop-types": "^15.6.0",
"react-addons-test-utils": "15.x",
"react-dom": "15.x",
"react-test-renderer": "15.x",
"raf": "^3.3.2",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-test-renderer": "^16.0.0",
"validate-commit-msg": "^2.14.0"

@@ -66,0 +69,0 @@ },

@@ -25,4 +25,6 @@ # React Children Utilities

This is a peer dependency so react must be present
```
npm install --save react-children-utilities
npm install --save react-children-utilities react
```

@@ -29,0 +31,0 @@

import React, { cloneElement } from 'react';
import PropTypes from 'prop-types';
import { shallow } from 'enzyme';
import Enzyme, { shallow } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import Children from '../src/';
Enzyme.configure({ adapter: new Adapter() });
describe('Children', () => {

@@ -34,3 +37,3 @@ it('filter', () => {

expect(wrapper.find('.rest strong')).toHaveLength(1);
expect(wrapper.find('.empty *')).toBeEmpty();
expect(wrapper.find('.empty').children()).toBeEmpty();
});

@@ -37,0 +40,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc