123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332 |
- {
- "_from": "preact@^10.0.0",
- "_id": "preact@10.7.2",
- "_inBundle": false,
- "_integrity": "sha512-GLjn0I3r6ka+NvxJUppsVFqb4V0qDTEHT/QxHlidPuClGaxF/4AI2Qti4a0cv3XMh5n1+D3hLScW10LRIm5msQ==",
- "_location": "/preact",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "preact@^10.0.0",
- "name": "preact",
- "escapedName": "preact",
- "rawSpec": "^10.0.0",
- "saveSpec": null,
- "fetchSpec": "^10.0.0"
- },
- "_requiredBy": [
- "/@docsearch/js"
- ],
- "_resolved": "https://registry.npmjs.org/preact/-/preact-10.7.2.tgz",
- "_shasum": "5c632ba194b87345dcaee6598b3b6529b58e6a12",
- "_spec": "preact@^10.0.0",
- "_where": "D:\\work\\liebao-developApi\\node_modules\\@docsearch\\js",
- "amdName": "preact",
- "authors": [
- "The Preact Authors (https://github.com/preactjs/preact/contributors)"
- ],
- "bugs": {
- "url": "https://github.com/preactjs/preact/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Fast 3kb React-compatible Virtual DOM library.",
- "devDependencies": {
- "@actions/github": "^5.0.0",
- "@actions/glob": "^0.2.0",
- "@babel/core": "^7.7.0",
- "@babel/plugin-proposal-object-rest-spread": "^7.6.2",
- "@babel/plugin-transform-react-jsx": "^7.7.0",
- "@babel/plugin-transform-react-jsx-source": "^7.7.4",
- "@babel/preset-env": "^7.7.1",
- "@babel/register": "^7.7.0",
- "@types/chai": "^4.1.2",
- "@types/mocha": "^5.0.0",
- "@types/node": "^14.14.10",
- "babel-plugin-istanbul": "^6.0.0",
- "babel-plugin-transform-async-to-promises": "^0.8.15",
- "babel-plugin-transform-rename-properties": "0.1.0",
- "benchmark": "^2.1.4",
- "chai": "^4.1.2",
- "check-export-map": "^1.3.0",
- "coveralls": "^3.0.0",
- "cross-env": "^7.0.2",
- "diff": "^5.0.0",
- "errorstacks": "^2.4.0",
- "esbuild": "^0.14.25",
- "eslint": "5.15.1",
- "eslint-config-developit": "^1.1.1",
- "eslint-config-prettier": "^6.5.0",
- "eslint-plugin-react": "7.12.4",
- "husky": "^4.3.0",
- "karma": "^6.3.16",
- "karma-chai-sinon": "^0.1.5",
- "karma-chrome-launcher": "^3.1.0",
- "karma-coverage": "^2.1.0",
- "karma-esbuild": "^2.2.4",
- "karma-mocha": "^2.0.1",
- "karma-mocha-reporter": "^2.2.5",
- "karma-sauce-launcher": "^4.3.4",
- "karma-sinon": "^1.0.5",
- "karma-sourcemap-loader": "^0.3.7",
- "kolorist": "^1.2.10",
- "lint-staged": "^10.5.2",
- "lodash": "^4.17.20",
- "microbundle": "^0.11.0",
- "mocha": "^8.2.1",
- "npm-merge-driver-install": "^1.1.1",
- "npm-run-all": "^4.0.0",
- "prettier": "^1.18.2",
- "prop-types": "^15.7.2",
- "sade": "^1.7.4",
- "sinon": "^9.2.3",
- "sinon-chai": "^3.5.0",
- "typescript": "4.4.2",
- "undici": "^4.12.0"
- },
- "eslintConfig": {
- "extends": [
- "developit",
- "prettier"
- ],
- "settings": {
- "react": {
- "pragma": "createElement"
- }
- },
- "rules": {
- "camelcase": [
- 1,
- {
- "allow": [
- "__test__*",
- "unstable_*",
- "UNSAFE_*"
- ]
- }
- ],
- "no-unused-vars": [
- 2,
- {
- "args": "none",
- "varsIgnorePattern": "^h|React$"
- }
- ],
- "prefer-rest-params": 0,
- "prefer-spread": 0,
- "no-cond-assign": 0,
- "react/jsx-no-bind": 0,
- "react/no-danger": "off",
- "react/prefer-stateless-function": 0,
- "react/sort-comp": 0,
- "jest/valid-expect": 0,
- "jest/no-disabled-tests": 0,
- "jest/no-test-callback": 0,
- "jest/expect-expect": 0,
- "jest/no-standalone-expect": 0,
- "jest/no-export": 0,
- "react/no-find-dom-node": 0
- }
- },
- "eslintIgnore": [
- "test/fixtures",
- "test/ts/",
- "*.ts",
- "dist"
- ],
- "exports": {
- ".": {
- "types": "./src/index.d.ts",
- "browser": "./dist/preact.module.js",
- "umd": "./dist/preact.umd.js",
- "import": "./dist/preact.mjs",
- "require": "./dist/preact.js"
- },
- "./compat": {
- "types": "./compat/src/index.d.ts",
- "browser": "./compat/dist/compat.module.js",
- "umd": "./compat/dist/compat.umd.js",
- "import": "./compat/dist/compat.mjs",
- "require": "./compat/dist/compat.js"
- },
- "./debug": {
- "browser": "./debug/dist/debug.module.js",
- "umd": "./debug/dist/debug.umd.js",
- "import": "./debug/dist/debug.mjs",
- "require": "./debug/dist/debug.js"
- },
- "./devtools": {
- "types": "./devtools/src/index.d.ts",
- "browser": "./devtools/dist/devtools.module.js",
- "umd": "./devtools/dist/devtools.umd.js",
- "import": "./devtools/dist/devtools.mjs",
- "require": "./devtools/dist/devtools.js"
- },
- "./hooks": {
- "types": "./hooks/src/index.d.ts",
- "browser": "./hooks/dist/hooks.module.js",
- "umd": "./hooks/dist/hooks.umd.js",
- "import": "./hooks/dist/hooks.mjs",
- "require": "./hooks/dist/hooks.js"
- },
- "./test-utils": {
- "types": "./test-utils/src/index.d.ts",
- "browser": "./test-utils/dist/testUtils.module.js",
- "umd": "./test-utils/dist/testUtils.umd.js",
- "import": "./test-utils/dist/testUtils.mjs",
- "require": "./test-utils/dist/testUtils.js"
- },
- "./jsx-runtime": {
- "types": "./jsx-runtime/src/index.d.ts",
- "browser": "./jsx-runtime/dist/jsxRuntime.module.js",
- "umd": "./jsx-runtime/dist/jsxRuntime.umd.js",
- "import": "./jsx-runtime/dist/jsxRuntime.mjs",
- "require": "./jsx-runtime/dist/jsxRuntime.js"
- },
- "./jsx-dev-runtime": {
- "browser": "./jsx-runtime/dist/jsxRuntime.module.js",
- "umd": "./jsx-runtime/dist/jsxRuntime.umd.js",
- "import": "./jsx-runtime/dist/jsxRuntime.mjs",
- "require": "./jsx-runtime/dist/jsxRuntime.js"
- },
- "./compat/client": {
- "import": "./compat/client.mjs",
- "require": "./compat/client.js"
- },
- "./compat/server": {
- "import": "./compat/server.mjs",
- "require": "./compat/server.js"
- },
- "./compat/jsx-runtime": {
- "import": "./compat/jsx-runtime.mjs",
- "require": "./compat/jsx-runtime.js"
- },
- "./compat/jsx-dev-runtime": {
- "import": "./compat/jsx-dev-runtime.mjs",
- "require": "./compat/jsx-dev-runtime.js"
- },
- "./compat/scheduler": {
- "import": "./compat/scheduler.mjs",
- "require": "./compat/scheduler.js"
- },
- "./package.json": "./package.json",
- "./compat/package.json": "./compat/package.json",
- "./debug/package.json": "./debug/package.json",
- "./devtools/package.json": "./devtools/package.json",
- "./hooks/package.json": "./hooks/package.json",
- "./test-utils/package.json": "./test-utils/package.json",
- "./jsx-runtime/package.json": "./jsx-runtime/package.json"
- },
- "files": [
- "src",
- "dist",
- "compat/dist",
- "compat/src",
- "compat/client.js",
- "compat/client.mjs",
- "compat/server.js",
- "compat/server.mjs",
- "compat/scheduler.js",
- "compat/scheduler.mjs",
- "compat/test-utils.js",
- "compat/jsx-runtime.js",
- "compat/jsx-runtime.mjs",
- "compat/jsx-dev-runtime.js",
- "compat/jsx-dev-runtime.mjs",
- "compat/package.json",
- "debug/dist",
- "debug/src",
- "debug/package.json",
- "devtools/dist",
- "devtools/src",
- "devtools/package.json",
- "hooks/dist",
- "hooks/src",
- "hooks/package.json",
- "jsx-runtime/dist",
- "jsx-runtime/src",
- "jsx-runtime/package.json",
- "test-utils/src",
- "test-utils/package.json",
- "test-utils/dist"
- ],
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/preact"
- },
- "homepage": "https://preactjs.com",
- "husky": {
- "hooks": {
- "pre-commit": "lint-staged"
- }
- },
- "keywords": [
- "preact",
- "react",
- "ui",
- "user interface",
- "virtual dom",
- "vdom",
- "components",
- "dom diff",
- "front-end",
- "framework"
- ],
- "license": "MIT",
- "lint-staged": {
- "**/*.{js,jsx,ts,tsx,yml}": [
- "prettier --write"
- ]
- },
- "main": "dist/preact.js",
- "module": "dist/preact.module.js",
- "name": "preact",
- "prettier": {
- "singleQuote": true,
- "trailingComma": "none",
- "useTabs": true,
- "tabWidth": 2
- },
- "private": false,
- "repository": {
- "type": "git",
- "url": "git+https://github.com/preactjs/preact.git"
- },
- "scripts": {
- "benchmark": "npm run test:karma:bench -- no-single-run",
- "build": "npm-run-all --parallel build:*",
- "build:compat": "microbundle build src/index.js src/scheduler.js --raw --cwd compat --globals 'preact/hooks=preactHooks'",
- "build:core": "microbundle build --raw",
- "build:core-min": "microbundle build --raw -f iife src/cjs.js -o dist/preact.min.js",
- "build:debug": "microbundle build --raw --cwd debug",
- "build:devtools": "microbundle build --raw --cwd devtools",
- "build:hooks": "microbundle build --raw --cwd hooks",
- "build:jsx": "microbundle build --raw --cwd jsx-runtime",
- "build:test-utils": "microbundle build --raw --cwd test-utils",
- "dev": "microbundle watch --raw --format cjs",
- "dev:compat": "microbundle watch --raw --format cjs --cwd compat --globals 'preact/hooks=preactHooks'",
- "dev:hooks": "microbundle watch --raw --format cjs --cwd hooks",
- "lint": "eslint src test debug compat hooks test-utils",
- "postbuild": "node ./config/node-13-exports.js && node ./config/compat-entries.js",
- "prepare": "run-s build && check-export-map",
- "test": "npm-run-all build lint test:unit",
- "test:karma": "cross-env COVERAGE=true BABEL_NO_MODULES=true karma start karma.conf.js --single-run",
- "test:karma:bench": "cross-env PERFORMANCE=true COVERAGE=false BABEL_NO_MODULES=true karma start karma.conf.js --grep=test/benchmarks/**.js --single-run",
- "test:karma:hooks": "cross-env COVERAGE=false BABEL_NO_MODULES=true karma start karma.conf.js --grep=hooks/test/browser/**.js --no-single-run",
- "test:karma:minify": "cross-env COVERAGE=true MINIFY=true BABEL_NO_MODULES=true karma start karma.conf.js --single-run",
- "test:karma:test-utils": "cross-env PERFORMANCE=false COVERAGE=false BABEL_NO_MODULES=true karma start karma.conf.js --grep=test-utils/test/shared/**.js --no-single-run",
- "test:karma:watch": "cross-env BABEL_NO_MODULES=true karma start karma.conf.js --no-single-run",
- "test:mocha": "mocha --recursive --require \"@babel/register\" test/shared test/node",
- "test:mocha:watch": "npm run test:mocha -- --watch",
- "test:ts": "run-p test:ts:*",
- "test:ts:compat": "tsc -p compat/test/ts/",
- "test:ts:core": "tsc -p test/ts/ && mocha --require \"@babel/register\" test/ts/**/*-test.js",
- "test:unit": "run-p test:mocha test:karma:minify test:ts"
- },
- "source": "src/index.js",
- "types": "src/index.d.ts",
- "umd:main": "dist/preact.umd.js",
- "unpkg": "dist/preact.min.js",
- "version": "10.7.2"
- }
|