{ "_from": "preact@8.4.2", "_id": "preact@8.4.2", "_inBundle": false, "_integrity": "sha512-TsINETWiisfB6RTk0wh3/mvxbGRvx+ljeBccZ4Z6MPFKgu/KFGyf2Bmw3Z/jlXhL5JlNKY6QAbA9PVyzIy9//A==", "_location": "/preact", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, "raw": "preact@8.4.2", "name": "preact", "escapedName": "preact", "rawSpec": "8.4.2", "saveSpec": null, "fetchSpec": "8.4.2" }, "_requiredBy": [ "/umi-plugin-react" ], "_resolved": "https://registry.npmjs.org/preact/-/preact-8.4.2.tgz", "_shasum": "1263b974a17d1ea80b66590e41ef786ced5d6a23", "_spec": "preact@8.4.2", "_where": "/var/lib/jenkins/workspace/cawg-app-h5/node_modules/umi-plugin-react", "author": { "name": "Jason Miller", "email": "jason@developit.ca" }, "bugs": { "url": "https://github.com/developit/preact/issues" }, "bundleDependencies": false, "bundlesize": [ { "path": "./dist/preact.min.js", "threshold": "4Kb" } ], "deprecated": false, "description": "Fast 3kb React alternative with the same modern API. Components & Virtual DOM.", "dev:main": "dist/preact.dev.js", "devDependencies": { "@types/chai": "^4.1.7", "@types/mocha": "^5.2.5", "@types/node": "^9.6.40", "babel-cli": "^6.24.1", "babel-core": "^6.24.1", "babel-eslint": "^8.2.6", "babel-loader": "^7.0.0", "babel-plugin-transform-object-rest-spread": "^6.23.0", "babel-plugin-transform-react-jsx": "^6.24.1", "babel-preset-env": "^1.6.1", "bundlesize": "^0.17.0", "chai": "^4.2.0", "copyfiles": "^2.1.0", "core-js": "^2.6.0", "coveralls": "^3.0.0", "cross-env": "^5.1.4", "diff": "^3.0.0", "eslint": "^4.18.2", "eslint-plugin-react": "^7.11.1", "flow-bin": "^0.67.1", "gzip-size-cli": "^2.0.0", "istanbul-instrumenter-loader": "^3.0.0", "jscodeshift": "^0.5.0", "karma": "^2.0.5", "karma-babel-preprocessor": "^7.0.0", "karma-chai-sinon": "^0.1.5", "karma-chrome-launcher": "^2.0.0", "karma-coverage": "^1.0.0", "karma-mocha": "^1.1.1", "karma-mocha-reporter": "^2.0.4", "karma-sauce-launcher": "^1.1.0", "karma-sinon": "^1.0.5", "karma-source-map-support": "^1.2.0", "karma-sourcemap-loader": "^0.3.6", "karma-webpack": "^3.0.5", "mocha": "^5.0.4", "npm-run-all": "^4.1.5", "puppeteer": "^1.11.0", "rimraf": "^2.5.3", "rollup": "^0.57.1", "rollup-plugin-babel": "^3.0.2", "rollup-plugin-memory": "^3.0.0", "rollup-plugin-node-resolve": "^3.4.0", "sinon": "^4.4.2", "sinon-chai": "^3.3.0", "typescript": "^3.0.1", "uglify-js": "^2.7.5", "webpack": "^4.27.1" }, "eslintConfig": { "extends": "./config/eslint-config.js" }, "files": [ "devtools", "debug", "src", "dist", "devtools.js", "devtools.js.map", "debug.js", "debug.js.map", "typings.json" ], "greenkeeper": { "ignore": [ "babel-cli", "babel-core", "babel-eslint", "babel-loader", "jscodeshift", "rollup-plugin-babel" ] }, "homepage": "https://github.com/developit/preact", "jsnext:main": "dist/preact.mjs", "keywords": [ "preact", "react", "virtual dom", "vdom", "components", "virtual", "dom" ], "license": "MIT", "main": "dist/preact.js", "minified:main": "dist/preact.min.js", "module": "dist/preact.mjs", "name": "preact", "repository": { "type": "git", "url": "git+https://github.com/developit/preact.git" }, "scripts": { "build": "npm-run-all --silent clean transpile copy-flow-definition copy-typescript-definition strip optimize minify size", "clean": "rimraf dist/ devtools.js devtools.js.map debug.js debug.js.map test/ts/**/*.js", "copy-flow-definition": "copyfiles -f src/preact.js.flow dist", "copy-typescript-definition": "copyfiles -f src/preact.d.ts dist", "flow": "flow", "lint": "eslint debug devtools src test", "minify": "uglifyjs dist/preact.js -c collapse_vars,evaluate,screw_ie8,unsafe,loops=false,keep_fargs=false,pure_getters,unused,dead_code -m -o dist/preact.min.js -p relative --in-source-map dist/preact.js.map --source-map dist/preact.min.js.map", "optimize": "uglifyjs dist/preact.dev.js -c conditionals=false,sequences=false,loops=false,join_vars=false,collapse_vars=false --pure-funcs=Object.defineProperty --mangle-props --mangle-regex=\"/^(_|normalizedNodeName|nextBase|prev[CPS]|_parentC)/\" --name-cache config/properties.json -b width=120,quote_style=3 -o dist/preact.js -p relative --in-source-map dist/preact.dev.js.map --source-map dist/preact.js.map", "postinstall": "node -e \"console.log('\\u001b[35m\\u001b[1mLove Preact? You can now donate to our open collective:\\u001b[22m\\u001b[39m\\n > \\u001b[34mhttps://opencollective.com/preact/donate\\u001b[0m')\"", "prepare": "npm run build", "prepublishOnly": "npm run build", "release": "cross-env npm run smart-release", "size": "node -e \"process.stdout.write('gzip size: ')\" && gzip-size --raw dist/preact.min.js", "smart-release": "npm run build && npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish", "strip": "npm-run-all strip:main strip:esm", "strip:esm": "jscodeshift --run-in-band -s -t config/codemod-strip-tdz.js dist/preact.mjs && jscodeshift --run-in-band -s -t config/codemod-const.js dist/preact.mjs && jscodeshift --run-in-band -s -t config/codemod-let-name.js dist/preact.mjs", "strip:main": "jscodeshift --run-in-band -s -t config/codemod-strip-tdz.js dist/preact.dev.js && jscodeshift --run-in-band -s -t config/codemod-const.js dist/preact.dev.js && jscodeshift --run-in-band -s -t config/codemod-let-name.js dist/preact.dev.js", "test": "npm-run-all lint --parallel test:mocha test:karma test:ts test:flow test:size", "test:flow": "flow check", "test:karma": "karma start test/karma.conf.js --single-run", "test:karma:watch": "npm run test:karma -- no-single-run", "test:mocha": "mocha --recursive --require babel-register test/shared test/node", "test:mocha:watch": "npm run test:mocha -- --watch", "test:size": "bundlesize", "test:ts": "tsc -p test/ts/ && mocha --require babel-register test/ts/**/*-test.js", "transpile": "npm-run-all transpile:main transpile:esm transpile:devtools transpile:debug", "transpile:debug": "babel debug/ -o debug.js -s", "transpile:devtools": "rollup -c config/rollup.config.devtools.js", "transpile:esm": "rollup -c config/rollup.config.module.js", "transpile:main": "rollup -c config/rollup.config.js" }, "types": "dist/preact.d.ts", "typings": "./dist/preact.d.ts", "version": "8.4.2" }