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

react-portalize

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-portalize - npm Package Compare versions

Comparing version 2.0.2 to 2.1.0

dist/esm/index.mjs

64

package.json
{
"name": "react-portalize",
"version": "2.0.2",
"version": "2.1.0",
"homepage": "https://github.com/jaredLunde/react-portalize#readme",

@@ -16,19 +16,47 @@ "repository": "github:jaredLunde/react-portalize",

"portal component",
"portalize"
"portalize",
"react portal"
],
"main": "dist/cjs/index.js",
"module": "dist/es/index.js",
"main": "dist/main/index.js",
"module": "dist/module/index.js",
"source": "src/index.tsx",
"types": "src/index.d.ts",
"exports": {
".": {
"browser": "./dist/module/index.js",
"import": "./dist/esm/index.mjs",
"require": "./dist/main/index.js",
"default": "./dist/main/index.js",
"source": "./src/index.tsx",
"types": "./src/index.d.ts"
},
"./server": {
"browser": "./server/dist/module/index.js",
"import": "./server/dist/esm/index.mjs",
"require": "./server/dist/main/index.js",
"default": "./server/dist/main/index.js",
"source": "./server/src/index.ts",
"types": "./server/src/index.d.ts"
},
"./package.json": "./package.json",
"./": "./"
},
"files": [
"/src",
"/dist",
"/server"
"/server/src",
"/server/dist",
"/server/package.json"
],
"sideEffects": false,
"scripts": {
"build": "npm run build:cjs && npm run build:es && npm run build:server && npm run build:types",
"build:cjs": "babel src -d dist/cjs -x .ts,.tsx --ignore \"**/*.test.ts\",\"**/test.ts\",\"**/*.test.tsx\",\"**/test.tsx\" --delete-dir-on-start",
"build:server": "babel server-src -d server -x .ts,.tsx --ignore \"**/*.test.ts\",\"**/test.ts\",\"**/*.test.tsx\",\"**/test.tsx\" --delete-dir-on-start",
"build:es": "cross-env BABEL_ENV=es babel src -d dist/es -x .ts,.tsx --ignore \"**/*.test.ts\",\"**/test.ts\",\"**/*.test.tsx\",\"**/test.tsx\" --delete-dir-on-start",
"build:types": "tsc -p tsconfig.json -d --outDir dist/es --emitDeclarationOnly && mkdir -p dist/cjs && cp -R dist/es/**.d.ts dist/cjs && tsc -p tsconfig.server.json -d --outDir server --emitDeclarationOnly && rimraf dist/**/*.test.d.ts",
"build": "npm run build-esm && npm run build-main && npm run build-module && npm run build-types",
"build-esm": "npm run compile -- -d dist/esm --env-name esm --out-file-extension .mjs && npm run compile-server -- -d server/dist/esm --env-name esm --out-file-extension .mjs",
"build-main": "npm run compile -- -d dist/main --env-name main && npm run compile-server -- -d server/dist/main --env-name main",
"build-module": "npm run compile -- -d dist/module --env-name module && npm run compile-server -- -d server/dist/module --env-name module",
"build-types": "rimraf src/index.d.ts && rimraf server/src/index.d.ts && tsc -p tsconfig.json -d --emitDeclarationOnly",
"check-types": "tsc --noEmit -p tsconfig.json",
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,md,yml,json,babelrc,eslintrc,prettierrc}\"",
"compile": "babel src -x .ts,.tsx --ignore \"**/*.d.ts\",\"**/*.test.tsx\" --delete-dir-on-start",
"compile-server": "babel server/src -x .ts,.tsx --ignore \"**/*.d.ts\",\"**/*.test.tsx\" --delete-dir-on-start",
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,md,yml,json,eslintrc,prettierrc}\"",
"lint": "eslint . --ext .ts,.tsx",

@@ -41,3 +69,3 @@ "prepublishOnly": "npm run lint && npm run test && npm run build && npm run format",

"hooks": {
"pre-commit": "lint-staged && npm run build:types"
"pre-commit": "npm run build-types && git add types && lint-staged"
}

@@ -50,3 +78,3 @@ },

],
"**/*.{md,yml,json,babelrc,eslintrc,prettierrc}": [
"**/*.{md,yml,json,eslintrc,prettierrc}": [
"prettier --write"

@@ -61,2 +89,3 @@ ]

"@testing-library/react-hooks": "latest",
"@testing-library/user-event": "latest",
"@types/jest": "latest",

@@ -67,3 +96,4 @@ "@types/react": "latest",

"@typescript-eslint/parser": "latest",
"cross-env": "latest",
"babel-plugin-annotate-pure-calls": "latest",
"babel-plugin-optimize-react": "latest",
"eslint": "latest",

@@ -81,3 +111,3 @@ "eslint-import-resolver-jest": "latest",

"react-test-renderer": "latest",
"rimraf": "^2.6.3",
"rimraf": "^3.0.2",
"ts-jest": "latest",

@@ -87,9 +117,9 @@ "typescript": "latest"

"dependencies": {
"@types/cheerio": "^0.22.18",
"cheerio": "^1.0.0-rc.3"
},
"peerDependencies": {
"prop-types": ">=15.7.2",
"react": ">=16.8",
"react-dom": ">=16"
"react-dom": ">=16.8"
}
}

@@ -91,3 +91,3 @@ <hr>

<Portalize providers={[{provider: YourProvider, value: YourProviderValue}]}>
<YourConsumer>{value => JSON.stringify(value)}</YourConsumer>
<YourConsumer>{(value) => JSON.stringify(value)}</YourConsumer>
</Portalize>

@@ -105,3 +105,3 @@ ```

## Server side rendering
## SSR

@@ -108,0 +108,0 @@ ### Example with React root as the entry point

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