UNPKG

@httpx/plain-object

Version:

Fast and lightweight utility functions to check if a value is a plain object.

109 lines (108 loc) 3.7 kB
{ "name": "@httpx/plain-object", "description": "Fast and lightweight utility functions to check if a value is a plain object.", "version": "2.0.6", "license": "MIT", "author": { "name": "Vanvelthem Sébastien", "url": "https://github.com/belgattitude" }, "homepage": "https://belgattitude.github.io/httpx/plain-object", "repository": { "type": "git", "url": "git+https://github.com/belgattitude/httpx.git", "directory": "packages/plain-object" }, "keywords": [ "plainObject", "plain-object", "is-plain-object", "is-plain-obj", "assert-plain-object" ], "sideEffects": false, "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.mjs", "types": "./dist/index.d.cts", "exports": { ".": { "import": { "types": "./dist/index.d.ts", "default": "./dist/index.mjs" }, "require": { "types": "./dist/index.d.cts", "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "files": [ "dist" ], "scripts": { "?build-release": "When https://github.com/atlassian/changesets/issues/432 has a solution we can remove this trick", "build": "run clean && yarn run tsup", "build-release": "run build", "bench": "vitest bench --run", "bench-codspeed": "cross-env CODSPEED=1 vitest bench --run", "bench-watch": "vitest bench", "docgen": "run-s docgen-typedoc", "docgen-typedoc": "rimraf ./docs/api && typedoc --plugin typedoc-plugin-markdown --out ./docs/api", "check-dist": "run-s check-dist-esm check-dist-cjs", "check-dist-cjs": "es-check --not './dist/*.map.js' -v es2022 './dist/**/*.cjs'", "check-dist-esm": "es-check --not './dist/*.map.js' -v es2022 --module './dist/**/*.mjs'", "check-pub": "attw --pack && publint", "check-size": "size-limit", "clean": "rimraf ./dist ./build ./coverage ./_release", "dev": "tsup --watch", "fix-staged": "lint-staged --allow-empty", "lint": "eslint . --ext .ts,.tsx,.js,.jsx,.mjs,.cjs,.mts,.cts --cache --cache-location ../../.cache/eslint/plain-object.eslintcache", "test": "vitest run", "test-unit": "vitest run", "test-unit-coverage": "vitest run --coverage", "test-unit-edge": "vitest run --environment edge-runtime", "test-unit-browser": "vitest run --browser", "test-unit-cloudflare": "vitest run --config ./vitest.cloudflare.config.ts", "test-unit-watch": "vitest --ui --api 4515", "typecheck": "tsc --project tsconfig.json --noEmit", "typecheck-build": "tsc --project tsconfig.build.json --noEmit", "ci-coverage-upload": "../../.github/scripts/download/codecov -F httpx-plain-object-unit --dir ./coverage" }, "devDependencies": { "@arethetypeswrong/cli": "0.17.3", "@belgattitude/eslint-config-bases": "6.21.0", "@httpx/devtools-vitest": "workspace:^", "@sindresorhus/is": "7.0.1", "@size-limit/file": "11.1.6", "@size-limit/webpack": "11.1.6", "@types/lodash-es": "4.17.12", "browserslist": "4.24.4", "browserslist-to-esbuild": "2.1.1", "cross-env": "7.0.3", "es-check": "8.0.1", "es-toolkit": "1.32.0", "esbuild": "0.24.2", "eslint": "8.57.1", "is-plain-obj": "4.1.0", "is-plain-object": "5.0.0", "lodash-es": "4.17.21", "npm-run-all2": "7.0.2", "prettier": "3.4.2", "publint": "0.3.2", "redux": "5.0.1", "rimraf": "6.0.1", "rollup": "4.32.1", "size-limit": "11.1.6", "tsup": "8.3.6", "typedoc": "0.27.6", "typedoc-plugin-markdown": "4.4.1", "typescript": "5.7.3", "vitest": "3.0.4", "webpack": "5.97.1" }, "engines": { "node": ">=18" } }