use-propagate
Advanced tools
Comparing version 0.1.1-main.e7c5338 to 0.2.0-main.6b6cfbd
{ | ||
"name": "use-propagate", | ||
"version": "0.1.1-main.e7c5338", | ||
"version": "0.2.0-main.6b6cfbd", | ||
"description": "Propagates an event to multiple subscribers using React hooks.", | ||
"files": [ | ||
"./lib/" | ||
"./dist/" | ||
], | ||
@@ -11,27 +11,19 @@ "exports": { | ||
"import": { | ||
"types": "./lib/esmodules/index.d.ts", | ||
"default": "./lib/esmodules/index.js" | ||
"types": "./dist/use-propagate.d.mts", | ||
"default": "./dist/use-propagate.mjs" | ||
}, | ||
"require": { | ||
"types": "./lib/commonjs/index.d.ts", | ||
"default": "./lib/commonjs/index.js" | ||
"types": "./dist/use-propagate.d.ts", | ||
"default": "./dist/use-propagate.js" | ||
} | ||
} | ||
}, | ||
"main": "./lib/commonjs/index.js", | ||
"typings": "./lib/commonjs/index.d.ts", | ||
"main": "./dist/use-propagate.js", | ||
"typings": "./dist/use-propagate.d.ts", | ||
"scripts": { | ||
"build": "npm run build:babel:commonjs && npm run build:babel:esmodules && npm run build:typescript:commonjs && npm run build:typescript:esmodules", | ||
"build:babel:commonjs": "babel src --config-file ./babel.commonjs.config.json --extensions .ts,.tsx --out-dir ./lib/commonjs/", | ||
"build:babel:esmodules": "babel src --config-file ./babel.esmodules.config.json --extensions .ts,.tsx --out-dir ./lib/esmodules/", | ||
"build:typescript:commonjs": "tsc --project ./src/tsconfig.declaration.commonjs.json", | ||
"build:typescript:esmodules": "tsc --project ./src/tsconfig.declaration.esmodules.json", | ||
"bump": "npm run bump:prod && npm run bump:dev && npm run bump:auditfix && npm run bump:babel", | ||
"build": "tsup", | ||
"bump": "npm run bump:prod && npm run bump:dev && npm run bump:auditfix", | ||
"bump:auditfix": "npm audit fix || exit 0", | ||
"bump:babel": "npm run bump:babel:commonjs && npm run bump:babel:esmodules", | ||
"bump:babel:commonjs": "cat babel.commonjs.config.json | jq --arg CORE_JS_VERSION `[ -f node_modules/@babel/runtime-corejs3/package.json ] && cat node_modules/@babel/runtime-corejs3/package.json | jq -r .version || cat ../../node_modules/@babel/runtime-corejs3/package.json | jq -r .version` '(.plugins[] | select(.[0] == \"@babel/plugin-transform-runtime\"))[1].version = $CORE_JS_VERSION' | prettier --parser json > babel.commonjs.config.json.tmp && mv babel.commonjs.config.json.tmp babel.commonjs.config.json", | ||
"bump:babel:esmodules": "cat babel.esmodules.config.json | jq --arg CORE_JS_VERSION `[ -f node_modules/@babel/runtime-corejs3/package.json ] && cat node_modules/@babel/runtime-corejs3/package.json | jq -r .version || cat ../../node_modules/@babel/runtime-corejs3/package.json | jq -r .version` '(.plugins[] | select(.[0] == \"@babel/plugin-transform-runtime\"))[1].version = $CORE_JS_VERSION' | prettier --parser json > babel.esmodules.config.json.tmp && mv babel.esmodules.config.json.tmp babel.esmodules.config.json", | ||
"bump:dev": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.localPeerDependencies // {}) as $L | (.devDependencies // {}) | to_entries | map(select(.key as $K | $L | has($K) | not)) | map(.key + \"@latest\") | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true", | ||
"bump:prod": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.localPeerDependencies // {}) as $L | (.dependencies // {}) | to_entries | map(select(.key as $K | $L | has($K) | not)) | map(.key + \"@latest\") | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true", | ||
"postscaffold": "npm run bump:babel", | ||
"bump:dev": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localPeerDependencies // {}) as $L | (.devDependencies // {}) | to_entries | map(select(.key as $K | $L | has($K) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true", | ||
"bump:prod": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localPeerDependencies // {}) as $L | (.dependencies // {}) | to_entries | map(select(.key as $K | $L | has($K) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true", | ||
"precommit": "npm run precommit:eslint && npm run precommit:typescript:production && npm run precommit:typescript:test", | ||
@@ -60,3 +52,3 @@ "precommit:eslint": "eslint ./src/", | ||
"homepage": "https://github.com/compulim/use-propagate#readme", | ||
"switch:react:16": { | ||
"switch:react-16": { | ||
"devDependencies": { | ||
@@ -70,3 +62,3 @@ "@testing-library/react": "^12", | ||
}, | ||
"switch:react:17": { | ||
"switch:react-17": { | ||
"devDependencies": { | ||
@@ -80,3 +72,3 @@ "@testing-library/react": "^12", | ||
}, | ||
"switch:react:18": { | ||
"switch:react-18": { | ||
"devDependencies": { | ||
@@ -92,5 +84,2 @@ "@types/react": "^18", | ||
"devDependencies": { | ||
"@babel/cli": "^7.24.1", | ||
"@babel/core": "^7.24.3", | ||
"@babel/plugin-transform-runtime": "^7.24.3", | ||
"@babel/preset-env": "^7.24.3", | ||
@@ -108,9 +97,9 @@ "@babel/preset-react": "^7.24.1", | ||
"react-test-renderer": "^18.2.0", | ||
"tsup": "^8.0.2", | ||
"typescript": "^5.4.3" | ||
}, | ||
"dependencies": { | ||
"@babel/runtime-corejs3": "^7.24.1", | ||
"use-propagate": "^0.1.1-main.e7c5338", | ||
"use-propagate": "^0.2.0-main.6b6cfbd", | ||
"use-ref-from": "^0.0.3" | ||
} | ||
} |
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
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
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
3
14
19154
9
116
1
- Removed@babel/runtime-corejs3@^7.24.1