Socket
Socket
Sign inDemoInstall

react-async-component

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-async-component - npm Package Compare versions

Comparing version 1.0.2 to 2.0.0-alpha

dist/react-async-component.js

2

index.d.ts

@@ -7,3 +7,3 @@ import * as React from 'react';

export interface Configuration<P> {
resolve: () => Promise<React.ComponentType<P>>;
resolve: () => Promise<React.ComponentType<P> | {default: React.ComponentType<P>}>;
LoadingComponent?: (props: P) => JSX.Element;

@@ -10,0 +10,0 @@ ErrorComponent?: (props: P & { error: Error }) => JSX.Element;

{
"name": "react-async-component",
"version": "1.0.2",
"version": "2.0.0-alpha",
"description":

@@ -8,3 +8,3 @@ "Create Components that resolve asynchronously, with support for server side rendering and code splitting.",

"main": "commonjs/index.js",
"files": ["index.d.ts", "*.js", "*.md", "umd", "commonjs"],
"files": ["index.d.ts", "*.js", "*.md", "dist"],
"typings": "./index.d.ts",

@@ -25,8 +25,7 @@ "repository": {

"scripts": {
"build": "node ./tools/scripts/build.js",
"clean":
"rimraf ./commonjs && rimraf ./umd && rimraf ./coverage && rimraf ./umd",
"lint": "eslint src",
"precommit": "lint-staged && npm run test",
"build": "babel-node ./tools/scripts/build.js",
"check": "npm run lint && npm run test",
"clean":
"rimraf ./commonjs && rimraf ./umd && rimraf ./coverage && rimraf ./flow-coverage && rimraf ./umd",
"lint": "eslint src,tools",
"prepublish": "npm run build",

@@ -38,5 +37,5 @@ "test": "jest",

"peerDependencies": {
"prop-types": "^15.0.0",
"react": "^0.14.0 || ^15.0.0 || ^16.0.0",
"react-dom": "^0.14.0 || ^15.0.0 || ^16.0.0",
"prop-types": "^15.0.0"
"react-dom": "^0.14.0 || ^15.0.0 || ^16.0.0"
},

@@ -48,11 +47,12 @@ "devDependencies": {

"babel-eslint": "^8.0.1",
"babel-jest": "^21.2.0",
"babel-jest": "^22.4.3",
"babel-loader": "^7.1.2",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.0",
"babel-preset-latest": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-3": "^6.24.1",
"babel-register": "^6.26.0",
"change-case": "^3.0.2",
"codecov": "^2.3.0",

@@ -72,4 +72,4 @@ "cross-env": "^5.0.5",

"in-publish": "2.0.0",
"jest": "^21.2.1",
"lint-staged": "^4.2.3",
"jest": "^22.4.3",
"lint-staged": "^7.0.0",
"memory-fs": "0.4.1",

@@ -82,11 +82,10 @@ "prettier": "^1.7.4",

"react": "^16.0.0",
"react-async-bootstrapper": "^1.1.1",
"react-async-bootstrapper": "^2.1.0",
"react-dom": "^16.0.0",
"react-test-renderer": "^16.0.0",
"readline-sync": "1.4.7",
"readline-sync": "1.4.9",
"rimraf": "^2.6.2",
"sinon": "^3.3.0",
"webpack": "^3.6.0",
"webpack-dev-middleware": "^1.12.0",
"webpack-hot-middleware": "^2.19.1"
"rollup": "^0.57.1",
"rollup-plugin-babel": "^3.0.3",
"rollup-plugin-uglify": "^3.0.0"
},

@@ -97,9 +96,4 @@ "jest": {

"snapshotSerializers": ["<rootDir>/node_modules/enzyme-to-json/serializer"],
"testPathIgnorePatterns": [
"<rootDir>/(commonjs|coverage|flow-typed|node_modules|tools|umd)/"
]
"testPathIgnorePatterns": ["<rootDir>/(coverage|dist|node_modules|tools)/"]
},
"lint-staged": {
"src/**/*.js": ["prettier --write", "git add"]
},
"eslintConfig": {

@@ -129,10 +123,3 @@ "root": true,

},
"eslintIgnore": [
"flow-typed/",
"tools/flow/",
"node_modules/",
"commonjs/",
"coverage/",
"umd/"
],
"eslintIgnore": ["node_modules/", "coverage/", "dist/"],
"prettier": {

@@ -142,3 +129,6 @@ "semi": false,

"trailingComma": "all"
},
"lint-staged": {
"*.js": ["prettier --write \"src/**/*.js\"", "git add"]
}
}
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