{"_id":"har-validator-compiled","_rev":"2-c600a3f18b69282831cb49b031598858","name":"har-validator-compiled","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"har-validator-compiled","version":"1.0.0","keywords":["har","validator","ajv","json","api","converter"],"author":{"name":"Jonluca DeCaro","email":"harvalidator@jonlu.ca"},"license":"MIT","_id":"har-validator-compiled@1.0.0","maintainers":[{"name":"jonluca","email":"jonluca.decaro@gmail.com"}],"homepage":"https://github.com/jonluca/har-validator","bugs":{"url":"https://github.com/jonluca/har-validator/issues"},"dist":{"shasum":"b8787057784cf32d9fad3c39b53f76e15b069e5b","tarball":"https://registry.npmjs.org/har-validator-compiled/-/har-validator-compiled-1.0.0.tgz","fileCount":8,"integrity":"sha512-dher7nFSx+Ef6OoqVveLClh8itAR3vd8Qx70Lh/hEgP1iGeARAolbci7Y8JBrHIYgFCT6xRdvvL16AR9Zh07Dw==","signatures":[{"sig":"MEYCIQCCdYCR4OUDlA1A9r6dZ/IVaWW5dkKmJzQk7AKptcDcHgIhAMKyjtYGoSdKhkoyLfhhUZ1h6VBqizLjBNld2PQKFfoJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":510343,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8bQTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp8Rg/+Io7SDIE1LMwIeadU4FD8qFXZull2SoWhwI7O6IQwhkw8Aj7X\r\nBEBqYmzipT9+7WZbsXL1L6mfVHZaUAhuoXyxgUfIH3a0leYD4zuoxQgydD38\r\nWx9iucJhSnJGZSiNKoOHCD+ty/wvEuwkRJcEj7ZAdxtM4rIDJfO7ahCAKse+\r\nYJCVdqmja2/hjSf64LWV5TqnXPdcIyeIU5gqAqGC8sUOkgoU+Pc389061yfo\r\nb3d8qNG8RRh+DbKFfRSanE1DxN0CY6rlA8UHJUZdToif4a3QsJX3bCxWCTZ3\r\nDRUoEcAnCdMqJCxwKyF2b5DZydzuZB2hAAXOvOLGSYvHJgUFGXT9AhFEYyWT\r\nKWkrYyFSAY/X0sRNJQRCU1X6IF9/WPEdKFBUjW2NkJvHgF/J+UvCp057gqzS\r\n4vto0cobPG1NajNgdWlV9SYew/B3tX9kczV/pO2JF7td6vxhuR7bOKwTJp2N\r\nj2s30Ts/an7NWDGCKJkuG93pfdHt15NmUc2yR5JZR54/0kooh9O7EZvv53Pa\r\nqGQkAzwn1ZyyMtwz7gOdYnLbKxC8670Wad63YGFVrpfmQgkKWdK0glWKzexO\r\nxhvle7gWfcTTcBAS5LhEqUr72nH1duAbQ69GLqrlgKXTxDpnjd5Lhuta9Nbb\r\nCJXYiivf1vsttLPuTcRd36MxXOzbibqN6Jg=\r\n=Laqw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/mjs/index.js","exports":{".":{"import":"./dist/mjs/index.js","require":"./dist/cjs/index.js"}},"gitHead":"208fc758040624927ed5adc776f96e500230e072","scripts":{"lint":"eslint src","test":"vitest --coverage","build":"rm -fr dist/* && tsc && node scripts/build.mjs","prettier":"prettier --write \"**/*.+(js|jsx|ts|tsx|har||json|css|md)\"","typecheck":"tsc --noEmit","test:watch":"vitest -w","test:update":"vitest -u","prepublishOnly":"yarn schema:compile && yarn build","schema:compile":"node scripts/compile-har-schema.mjs"},"_npmUser":{"name":"jonluca","email":"jonluca.decaro@gmail.com"},"repository":{"url":"git+https://github.com/jonluca/har-validator.git","type":"git"},"_npmVersion":"8.15.0","description":"Validate a HAR file using a compiled AJV schema validator","directories":{},"lint-staged":{"**/*.{js,ts,jsx,tsx}":["eslint --cache --fix"],"**/*.{js,ts,jsx,tsx,json,md}":["prettier --write"]},"sideEffects":false,"_nodeVersion":"18.7.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.12.0","ajv":"^8.11.0","eslint":"^8.21.0","vitest":"^0.21.0","prettier":"^2.7.1","@types/ajv":"^1.0.0","har-schema":"^2.0.0","typescript":"4.7.4","@types/node":"^18.6.5","ajv-formats":"^2.1.1","@types/eslint":"8.4.5","@types/har-format":"^1.2.8","eslint-plugin-import":"^2.26.0","eslint-plugin-promise":"^6.0.0","eslint-config-prettier":"^8.5.0","eslint-config-standard":"^17.0.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.33.0","eslint-plugin-unused-imports":"^2.0.0","@typescript-eslint/eslint-plugin":"^5.33.0","@typescript-eslint/eslint-plugin-tslint":"^5.33.0"},"_npmOperationalInternal":{"tmp":"tmp/har-validator-compiled_1.0.0_1660007442837_0.9640574533572805","host":"s3://npm-registry-packages"}},"1.0.1":{"_id":"har-validator-compiled@1.0.1","bugs":{"url":"https://github.com/jonluca/har-validator/issues"},"dist":{"shasum":"295b9946ef3d15f6c82ff38a702ca5d86d1e01bc","tarball":"https://registry.npmjs.org/har-validator-compiled/-/har-validator-compiled-1.0.1.tgz","fileCount":8,"integrity":"sha512-qWYNm1x4ew/a1wojPaywtF9QuO4GASWbVEARRt2EtKdTj7/j1qyJ7q6NhOUBNTRInlY8AD1duK8hxLWsXPtTSw==","signatures":[{"sig":"MEUCIQCq983gnDjezmHV/6PbtEsNbGAib+XH0yjJnJonPbt81AIgU0V7t2XkDOzc1D1+Ge5uMfOgVD+tugrdtkuRD+YbuP0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC7le9LYbX7AYNCJWTqS51CTQycOujltBfM5LjGuZl+4QIgMi9ChPoRQFuc6PI0FqkRDzGGJ85wO5AZ+DZ81MgwGCE="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/har-validator-compiled@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":510343},"main":"dist/cjs/index.js","name":"har-validator-compiled","types":"dist/index.d.ts","author":{"name":"Jonluca DeCaro","email":"harvalidator@jonlu.ca"},"module":"dist/mjs/index.js","exports":{".":{"import":"./dist/mjs/index.js","require":"./dist/cjs/index.js"}},"gitHead":"8373edafba6517736546961530bcebd5f11b4854","license":"MIT","scripts":{"lint":"eslint src","test":"vitest --coverage","build":"rm -fr dist/* && tsc && node scripts/build.mjs","prettier":"prettier --write \"**/*.+(js|jsx|ts|tsx|har||json|css|md)\"","typecheck":"tsc --noEmit","test:watch":"vitest -w","test:update":"vitest -u","prepublishOnly":"yarn schema:compile && yarn build","schema:compile":"node scripts/compile-har-schema.mjs"},"version":"1.0.1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"4f1bc135-8d1d-4d0c-8d59-afad0cdc5439"}},"homepage":"https://github.com/jonluca/har-validator","keywords":["har","validator","ajv","json","api","converter"],"repository":{"url":"git+https://github.com/jonluca/har-validator.git","type":"git"},"_npmVersion":"11.21.1","description":"Validate a HAR file using a compiled AJV schema validator","directories":{},"lint-staged":{"**/*.{js,ts,jsx,tsx}":["eslint --cache --fix"],"**/*.{js,ts,jsx,tsx,json,md}":["prettier --write"]},"maintainers":[{"name":"jonluca","email":"jonluca.decaro@gmail.com"}],"sideEffects":false,"_nodeVersion":"26.12.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.12.0","ajv":"^8.11.0","eslint":"^8.21.0","vitest":"^0.21.0","prettier":"^2.7.1","@types/ajv":"^1.0.0","har-schema":"^2.0.0","typescript":"4.7.4","@types/node":"^18.6.5","ajv-formats":"^2.1.1","@types/eslint":"8.4.5","@types/har-format":"^1.2.8","eslint-plugin-import":"^2.26.0","eslint-plugin-promise":"^6.0.0","eslint-config-prettier":"^8.5.0","eslint-config-standard":"^17.0.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.33.0","eslint-plugin-unused-imports":"^2.0.0","@typescript-eslint/eslint-plugin":"^5.33.0","@typescript-eslint/eslint-plugin-tslint":"^5.33.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/har-validator-compiled_1.0.1_1792713862699_0.3724258118896122"}}},"time":{"created":"2022-08-09T01:10:42.837Z","modified":"2026-10-23T00:04:23.119Z","1.0.0":"2022-08-09T01:10:43.008Z","1.0.1":"2026-10-23T00:04:22.782Z"},"bugs":{"url":"https://github.com/jonluca/har-validator/issues"},"author":{"name":"Jonluca DeCaro","email":"harvalidator@jonlu.ca"},"license":"MIT","homepage":"https://github.com/jonluca/har-validator","keywords":["har","validator","ajv","json","api","converter"],"repository":{"url":"git+https://github.com/jonluca/har-validator.git","type":"git"},"description":"Validate a HAR file using a compiled AJV schema validator","maintainers":[{"name":"jonluca","email":"jonluca.decaro@gmail.com"}],"readme":"# HAR Validator (Compiled)\n\nWhen you want to use `har-validator` but don't want to introduce a dependency on `ajv`.\n\n## Installation\n\n```bash\nyarn add har-validator-compiled\n\nnpm i --save har-validator-compiled\n```\n\n## Usage\n\n```typescript\nimport { validate } from \"har-validator-compiled\";\nconst valid = validate(\"har\", har); // throws a HARError if not valid\n```\n\nOr a specific type of validation\n\n```typescript\nimport { validateHar, validateRequest, validateResponse } from \"har-validator-compiled\";\nconst validHar = validateHar(har); // throws a HARError if not valid\nconst validRequest = validateRequest(request); // throws a HARError if not valid\nconst validResponse = validateResponse(response); // throws a HARError if not valid\n```\n","readmeFilename":"README.md"}