{"_id":"har-validator-compiled","name":"har-validator-compiled","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"har-validator-compiled","version":"1.0.0","license":"MIT","author":{"name":"Jonluca DeCaro","email":"harvalidator@jonlu.ca"},"description":"Validate a HAR file using a compiled AJV schema validator","types":"dist/index.d.ts","sideEffects":false,"main":"dist/cjs/index.js","module":"dist/mjs/index.js","exports":{".":{"import":"./dist/mjs/index.js","require":"./dist/cjs/index.js"}},"keywords":["har","validator","ajv","json","api","converter"],"repository":{"type":"git","url":"git+https://github.com/jonluca/har-validator.git"},"bugs":{"url":"https://github.com/jonluca/har-validator/issues"},"homepage":"https://github.com/jonluca/har-validator","scripts":{"prepublishOnly":"yarn schema:compile && yarn build","lint":"eslint src","schema:compile":"node scripts/compile-har-schema.mjs","build":"rm -fr dist/* && tsc && node scripts/build.mjs","typecheck":"tsc --noEmit","prettier":"prettier --write \"**/*.+(js|jsx|ts|tsx|har||json|css|md)\"","test":"vitest --coverage","test:update":"vitest -u","test:watch":"vitest -w"},"dependencies":{},"devDependencies":{"@types/ajv":"^1.0.0","@types/eslint":"8.4.5","@types/har-format":"^1.2.8","@types/node":"^18.6.5","@typescript-eslint/eslint-plugin":"^5.33.0","@typescript-eslint/eslint-plugin-tslint":"^5.33.0","@typescript-eslint/parser":"^5.33.0","ajv":"^8.11.0","ajv-formats":"^2.1.1","c8":"^7.12.0","eslint":"^8.21.0","eslint-config-prettier":"^8.5.0","eslint-config-standard":"^17.0.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-promise":"^6.0.0","eslint-plugin-unused-imports":"^2.0.0","har-schema":"^2.0.0","prettier":"^2.7.1","typescript":"4.7.4","vitest":"^0.21.0"},"lint-staged":{"**/*.{js,ts,jsx,tsx}":["eslint --cache --fix"],"**/*.{js,ts,jsx,tsx,json,md}":["prettier --write"]},"gitHead":"208fc758040624927ed5adc776f96e500230e072","_id":"har-validator-compiled@1.0.0","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-dher7nFSx+Ef6OoqVveLClh8itAR3vd8Qx70Lh/hEgP1iGeARAolbci7Y8JBrHIYgFCT6xRdvvL16AR9Zh07Dw==","shasum":"b8787057784cf32d9fad3c39b53f76e15b069e5b","tarball":"https://registry.npmjs.org/har-validator-compiled/-/har-validator-compiled-1.0.0.tgz","fileCount":8,"unpackedSize":510343,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCdYCR4OUDlA1A9r6dZ/IVaWW5dkKmJzQk7AKptcDcHgIhAMKyjtYGoSdKhkoyLfhhUZ1h6VBqizLjBNld2PQKFfoJ"}],"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"},"_npmUser":{"name":"jonluca","email":"jonluca.decaro@gmail.com"},"directories":{},"maintainers":[{"name":"jonluca","email":"jonluca.decaro@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/har-validator-compiled_1.0.0_1660007442837_0.9640574533572805"},"_hasShrinkwrap":false}},"time":{"created":"2022-08-09T01:10:42.837Z","1.0.0":"2022-08-09T01:10:43.008Z","modified":"2022-08-09T01:10:43.123Z"},"maintainers":[{"name":"jonluca","email":"jonluca.decaro@gmail.com"}],"description":"Validate a HAR file using a compiled AJV schema validator","homepage":"https://github.com/jonluca/har-validator","keywords":["har","validator","ajv","json","api","converter"],"repository":{"type":"git","url":"git+https://github.com/jonluca/har-validator.git"},"author":{"name":"Jonluca DeCaro","email":"harvalidator@jonlu.ca"},"bugs":{"url":"https://github.com/jonluca/har-validator/issues"},"license":"MIT","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"}