UNPKG

@winglet/json

Version:

TypeScript library for safe and efficient JSON data manipulation with RFC 6901 (JSON Pointer) and RFC 6902 (JSON Patch) compliance, featuring prototype pollution protection and immutable operations

111 lines 3.71 kB
{ "name": "@winglet/json", "version": "0.4.0", "description": "TypeScript library for safe and efficient JSON data manipulation with RFC 6901 (JSON Pointer) and RFC 6902 (JSON Patch) compliance, featuring prototype pollution protection and immutable operations", "keywords": [ "typescript", "json", "json-pointer", "json-patch", "rfc-6901", "rfc-6902", "json-path", "data-manipulation", "utilities", "standards-compliant" ], "repository": { "type": "git", "url": "https://github.com/vincent-kk/albatrion.git", "directory": "packages/winglet/json" }, "license": "MIT", "author": { "name": "Vincent K. Kelvin", "email": "lunox273@gmail.com" }, "sideEffects": false, "type": "module", "exports": { ".": { "source": "./src/index.ts", "types": "./dist/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.cjs" }, "./path": { "source": "./src/JSONPath/index.ts", "types": "./dist/JSONPath/index.d.ts", "import": "./dist/JSONPath/index.mjs", "require": "./dist/JSONPath/index.cjs" }, "./path-common": { "source": "./src/JSONPath/utils/common.ts", "types": "./dist/JSONPath/utils/common.d.ts", "import": "./dist/JSONPath/utils/common.mjs", "require": "./dist/JSONPath/utils/common.cjs" }, "./pointer": { "source": "./src/JSONPointer/index.ts", "types": "./dist/JSONPointer/index.d.ts", "import": "./dist/JSONPointer/index.mjs", "require": "./dist/JSONPointer/index.cjs" }, "./pointer-common": { "source": "./src/JSONPointer/utils/common.ts", "types": "./dist/JSONPointer/utils/common.d.ts", "import": "./dist/JSONPointer/utils/common.mjs", "require": "./dist/JSONPointer/utils/common.cjs" }, "./pointer-escape": { "source": "./src/JSONPointer/utils/escape/index.ts", "types": "./dist/JSONPointer/utils/escape/index.d.ts", "import": "./dist/JSONPointer/utils/escape/index.mjs", "require": "./dist/JSONPointer/utils/escape/index.cjs" }, "./pointer-manipulator": { "source": "./src/JSONPointer/utils/manipulator/index.ts", "types": "./dist/JSONPointer/utils/manipulator/index.d.ts", "import": "./dist/JSONPointer/utils/manipulator/index.mjs", "require": "./dist/JSONPointer/utils/manipulator/index.cjs" }, "./pointer-patch": { "source": "./src/JSONPointer/utils/patch/index.ts", "types": "./dist/JSONPointer/utils/patch/index.d.ts", "import": "./dist/JSONPointer/utils/patch/index.mjs", "require": "./dist/JSONPointer/utils/patch/index.cjs" } }, "main": "dist/index.cjs", "module": "dist/index.mjs", "types": "dist/index.d.ts", "files": [ "dist", "README.md" ], "scripts": { "build": "rollup -c && yarn build:types", "build:publish:npm": "yarn build && yarn publish:npm", "build:types": "tsc -p ./tsconfig.declarations.json && tsc-alias -p ./tsconfig.declarations.json", "format": "prettier --write \"src/**/*.{ts,tsx}\"", "lint": "eslint \"src/**/*.{ts,tsx}\"", "publish:npm": "yarn npm publish --access public", "test": "vitest", "version:major": "yarn version major", "version:minor": "yarn version minor", "version:patch": "yarn version patch" }, "dependencies": { "@winglet/common-utils": "^0.4.0" }, "devDependencies": { "@rollup/plugin-typescript": "^12.1.2", "@trivago/prettier-plugin-sort-imports": "^4.3.0", "rollup": "^4.42.0", "rollup-plugin-copy": "^3.5.0", "tsc-alias": "^1.8.16", "typescript": "^5.7.2", "vite": "^6.3.5", "vitest": "2.1.9" } }