{"_id":"serialize-error-cjs","_rev":"11-7daf137ce315217c53c4204e141caf6e","name":"serialize-error-cjs","dist-tags":{"latest":"0.3.0"},"versions":{"0.0.1":{"name":"serialize-error-cjs","version":"0.0.1","author":"","license":"ISC","_id":"serialize-error-cjs@0.0.1","maintainers":[{"name":"finwo","email":"finwo@pm.me"}],"dist":{"shasum":"5a300e21b67461f9f1e52b0c244160f18dfdf305","tarball":"https://registry.npmjs.org/serialize-error-cjs/-/serialize-error-cjs-0.0.1.tgz","fileCount":1,"integrity":"sha512-JHf0YrI4igfdLBAo1dULaaICJC/zv2OudjA7XBXE+pa5r4xE2qZwA0p/wWHhfq88OQgsKQ5Bb3/mtEnwrxTu5g==","signatures":[{"sig":"MEUCIQCu06tOaWjwsDEWcViQZLHds74AX6aIAPqql+nTuIRSiAIgci2QqjUszpf/cNzfOrX8W2DiwUNnMIEF0fBFMS21DVA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":215,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjCLdEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpghRAAjbxJcSAcMnk7BMbFHiqJSvNcvwATaB9epk+6V/KvCCBsznnA\r\nyu38AGYGS4+HH6v/24LJK8eVM87HVal09djg+Jf6fN8k61sawNVaWO/F2+Dq\r\nfbLsPAvbYon07oeDBW76NEhXEijFchi+a8wcVMlCCjNz5DTototPEvPuUQUW\r\nKlZ5jlCs4CEw1rT1Gu4apUkBvSee5cTEKF7f0meJGA46Qc6ASOn2hzlHea4U\r\ncJOgNAb+aVYejTvILQnPV2E2NRfqe00MkjvR+ceeqIIaCvfcRAWMtXnM35jk\r\nkPp+LC98Xluat6fkifrGTl5Rt2PqvCYiXSVmjJ8iCOC952Yc3IYqfc/T8N1B\r\nBcekb0rM5m78C8nlbOmtvarGl0Lt4GiViuREuW/LYSDeOLb9LgMCZwDPHQmk\r\nS3AtNX4B1HMJ3wzzrp0qgl0iqunl0Z9OFrmlV9x7WGAJB9Kucsz5JAJVa8I0\r\nFxQ2QCv7OCLwEb/5rWH+iqeamC35u3ptZnK1PoPkbFZZM9Sxzrt9PUo311TR\r\n1U8Fo4kuEx9lAIvNbeYXcQVaIS+m/x3ZOc78RW7B5VJeqVc0gKcr972NEnvu\r\n8ooD3YBdh0bcPlW4uiQfKSkgLDnXgMLlB0Ee+0jnHRuMb0uM8l7zizV+cR68\r\nIuqX0BTjtkfpiBQLFwb6wvr0cdFEXcKVmRw=\r\n=AjQU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"finwo","email":"finwo@pm.me"},"deprecated":"Rolling release, please update to 0.3.0","_npmVersion":"8.11.0","description":"","directories":{},"_nodeVersion":"16.15.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/serialize-error-cjs_0.0.1_1661515588650_0.39804674583590294","host":"s3://npm-registry-packages"}},"0.1.0":{"name":"serialize-error-cjs","version":"0.1.0","author":"","license":"ISC","_id":"serialize-error-cjs@0.1.0","maintainers":[{"name":"finwo","email":"finwo@pm.me"}],"dist":{"shasum":"b6a6b92aa3d013935a4684089e878e6468d056ea","tarball":"https://registry.npmjs.org/serialize-error-cjs/-/serialize-error-cjs-0.1.0.tgz","fileCount":8,"integrity":"sha512-Fuh9hHKQpYXKaX5l905yurpfQhZzFANRl43VS/FGiJX1VoaGbpRna3gW/ayQZ7Onw4YbEsMtBYNfJDnyWjBClA==","signatures":[{"sig":"MEYCIQCxEQnpg4mCccCAaZqle6V9n6YA2IipKtbn/MbI+nr51QIhAIQj1fDcATAeVVKQ4Fk65EOuss/uaQJ1F+wypsy+OVn7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13585,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjCMZ5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrstQ//fxDQYEyRVsG58mv8c05PNGjePLpYgd7jio4f5Xp4OahAsIIH\r\nS/iK+f+JbKM8kQz2JHX+JoA2SJRLz0+tETx9Iej82i6D3ZE4y6c8jaRqHYvP\r\n9RhwOasEWt/7eTO+XLDhYQUJmnUVHUXg19GbxyMrzCpr6A+C8uMgTOe+tiME\r\nWxOaRC2CcWOKLSkEWYA3W/N1SF2qNliK3rOzg6ftTPxZi0+/CQAWQzbHTwky\r\nNZ1M4AZuZtdhuwx0SQhYgJdddfeTCNlXPE62t7N9sysgiFpYxLjNVPjn/bL0\r\nAPBYJlVABtxUh27p/9/6N4/KD+ReYhopZxFjgkxsrPCoqGy2+JmbDIkDc7tY\r\nv2Vn+VBe3f8U3/K9DaACki74a+9AG63iiKq4bgeXwXtKNiFVesUHlD20v2t/\r\ngOhBJRSkoGJW4obl8QSyPzUzfDPP36gl+0ASXFDrHAdH5Tyuky+NOA+stL3/\r\nrKrWFV/aFTuqGnidUxeHVEZEG9Eb5yuZu96H2sJoKmxDXfcF4xovzVp2ASex\r\nfJvlESuppy56pg/h8PZZpfVtvtZvWNftOf/tyza6uYnQrl+7zBfOzFKjK5KH\r\nwxwq7gHEybO4f2IL2Z5Xbn445has/xc+IFdo1SRvw67OreBJ3dV8GnMpcdJA\r\nJ9l657NWfJaSAKVuZ/mBAfuTPJTmYDKVgDg=\r\n=tr60\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"f4180cbf076614b28ac34263d9b58bb218a89f9b","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"node build.js","check":"npm run check:eslint","check:eslint":"eslint src --ext .js,.jsx,.ts,.tsx --max-warnings 0"},"_npmUser":{"name":"finwo","email":"finwo@pm.me"},"deprecated":"Rolling release, please update to 0.3.0","_npmVersion":"6.14.17","description":"> Serialize/deserialize an error into a plain object in commonjs","directories":{},"_nodeVersion":"14.19.2","_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.22.0","esbuild":"^0.15.5","fs-extra":"^10.1.0","fast-glob":"^3.2.11","typescript":"^4.8.2","@types/node":"^18.7.13","esbuild-plugin-d.ts":"^1.1.0","@typescript-eslint/parser":"^5.35.1","@typescript-eslint/eslint-plugin":"^5.35.1"},"_npmOperationalInternal":{"tmp":"tmp/serialize-error-cjs_0.1.0_1661519480990_0.7066213548483609","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"serialize-error-cjs","version":"0.1.1","keywords":["error","serialize","stringify","convert","deserialize"],"author":"","license":"ISC","_id":"serialize-error-cjs@0.1.1","maintainers":[{"name":"finwo","email":"finwo@pm.me"}],"dist":{"shasum":"09fc21868fe02e4c67733d72eb3283188841368b","tarball":"https://registry.npmjs.org/serialize-error-cjs/-/serialize-error-cjs-0.1.1.tgz","fileCount":8,"integrity":"sha512-2eC0w5i4RabG8NLfpjFVDXwGr9909syIUDwomaI8kUxtfa5O8ul+5TEJreds9D2SplgeoSRFg3Tq2cdFIsGnOg==","signatures":[{"sig":"MEUCIEEkzi1QukgjbRhfGR2jsK/m0fcxHDAWe4LRYF/hVxIAAiEA0dCgynp+tB9z/pSlpVJaqcX/KnkE+ltdGnfmIy8MKfI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13686,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjCMc3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqvVxAAjgGHGinCOVc7VNzZZVscO2WWIVJlSkTzGpp2S1N+Gdxahk99\r\n/w4Nfpoqvye9gaLb22/Qwazuzklc2SlmosNJAumEmgfiRLbwoiJT7E5V8XEy\r\nIDBDmotAPrGb2aRfZnLJdkatXpNnNjt8hx3O72825HXMaw6pYtpmQuGM4d/t\r\ng6rQVpLm9+h6M1Nj7Ia9Ln5YrYDmzC5HjjQgltHGhLWrQEtbAAlcygNzrKKy\r\nO098NVNYXopogMojDa1ip+cCkS94heIAk5TtkuMXJjTK9/cp3mASYNdXeW9P\r\nooM+7v91p7ubG3RQEdbMViRWf0aYgjAgW88JZHcMfHCstH9qVClmw43hrORt\r\nuXiJZ/VO9wYmcfb1nkJtujeS/fQAwtXAi6AU3yPaTyhNZyi7phL0FHQmcGPM\r\n4quAwKfBIAH55GTtdWHeREPtidEk0I6ybhGwyhL/Kj3MUi9msXxbIVxkORU7\r\nLA3XLw3gtIH9BRmArbq5hf8AZeU+VaWKomx5ta2QVh7Mu1P7zmGzMLaID0aS\r\nJJAy4WZlXGjA3y2Pbw54uKD7aihvUsvt2ZKAz5aQFDXqbSdMqclSwwyon877\r\n5vJwpwqRWtMnbo/agvUIbwDNoSAMOsDtmEnqIqNt5Mwi6iQqZrWDUgiE5WJz\r\nUAfRzCq8SqLDmTq8n6uei/SRXwxtFlyFNME=\r\n=auHl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"b6d2939ff171d6e741623a27fa645164e9fe55e2","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"node build.js","check":"npm run check:eslint","check:eslint":"eslint src --ext .js,.jsx,.ts,.tsx --max-warnings 0"},"_npmUser":{"name":"finwo","email":"finwo@pm.me"},"deprecated":"Rolling release, please update to 0.3.0","_npmVersion":"6.14.17","description":"> Serialize/deserialize an error into a plain object in commonjs","directories":{},"_nodeVersion":"14.19.2","_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.22.0","esbuild":"^0.15.5","fs-extra":"^10.1.0","fast-glob":"^3.2.11","typescript":"^4.8.2","@types/node":"^18.7.13","esbuild-plugin-d.ts":"^1.1.0","@typescript-eslint/parser":"^5.35.1","@typescript-eslint/eslint-plugin":"^5.35.1"},"_npmOperationalInternal":{"tmp":"tmp/serialize-error-cjs_0.1.1_1661519670949_0.5228081839868444","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"serialize-error-cjs","version":"0.1.2","keywords":["error","serialize","stringify","convert","deserialize"],"author":"","license":"ISC","_id":"serialize-error-cjs@0.1.2","maintainers":[{"name":"finwo","email":"finwo@pm.me"}],"dist":{"shasum":"467887098871172b53f34ed8a3db35aabb2ce0b7","tarball":"https://registry.npmjs.org/serialize-error-cjs/-/serialize-error-cjs-0.1.2.tgz","fileCount":8,"integrity":"sha512-Bz6YdtoWnClPMQV+obObEP9aoQlsXJswsgVINBPOy/aKwC6w12B1uVLHUHa6KL5raEiJgpOWeuAaZ2C4eDu+Qg==","signatures":[{"sig":"MEYCIQC+WIKGIFWbs+AFlmdB+X8ZBrnPka/p7NXWqZYHe2NSIAIhAOUtzc1SrjywaYDDj7Odo1fZCGjV6Q/VCeWF0eVJC9sc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13691,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjCMhPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpHmw/+Kfw5KR7NDVbLUGJLk6XY3I4Uuu53KWYppNGvJz53U9tw8Mvw\r\nvkO8BE8vJJ7Ln9hfurA/Ky8PHgRjQQSC8USnJ4IMXmCpKfZ1CkpSPaYkFz+b\r\njrmBk79LB4fZQ0WwpwLU3PlB604rypi/PYnXjChj+TSw/GwV2Kxf1lfQkKL/\r\nVJCRKUQHXvamKg0lXcEvjdBV3e4DYPq+hEvm++vrtO4ZTfW5sgsd7haGVIp6\r\n49IdQEc3xcz9/NSR+fZTFaSBx4Q+cQs6uhn7pQNC+/oQOMLKriu8CirdW7HX\r\nyv39F7kj0+MjysWExKJhzzB83BMgu1naHWl7aj2tvx8Ke+veCICB515NMep+\r\nlMrMOqb6tmCadppt+Oj4sSkyan/l24qiBpkd7Z9jegctMRI9lUZlXDUubP9T\r\noZqGgNzM4SG+FoW96dPV03xRTEB52Y3fgG00vanl7yymUkEGo7+IBieQOR0i\r\nEbGW4xal97MJlJiJav8NUpObaw05L8X4QWiWkoy3Apyj9Lmslwjivvg58BLq\r\nKjq6DZqZKHfRfHaWomm3w5ddbeRPiCavZ0XG3xwAwNY4SZG8/iKCB3Fn30Md\r\nEr9OIUq0x2QYKGnfKbxyhEhuzpZGB3nrgIXfy4f2DJrl+dAkvhLoMoqG7KdZ\r\nXEG4Jle6jvi6bZfhMBqkrpYep7u3CjSKP3g=\r\n=CqrE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","gitHead":"26c73a37a0095d1c1ad2f73f1d89fcb62ffa7209","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"node build.js","check":"npm run check:eslint","check:eslint":"eslint src --ext .js,.jsx,.ts,.tsx --max-warnings 0"},"_npmUser":{"name":"finwo","email":"finwo@pm.me"},"deprecated":"Rolling release, please update to 0.3.0","_npmVersion":"6.14.17","description":"> Serialize/deserialize an error into a plain object in commonjs","directories":{},"_nodeVersion":"14.19.2","_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.22.0","esbuild":"^0.15.5","fs-extra":"^10.1.0","fast-glob":"^3.2.11","typescript":"^4.8.2","@types/node":"^18.7.13","esbuild-plugin-d.ts":"^1.1.0","@typescript-eslint/parser":"^5.35.1","@typescript-eslint/eslint-plugin":"^5.35.1"},"_npmOperationalInternal":{"tmp":"tmp/serialize-error-cjs_0.1.2_1661519951044_0.5186597340577077","host":"s3://npm-registry-packages"}},"0.1.3":{"name":"serialize-error-cjs","version":"0.1.3","keywords":["error","serialize","stringify","convert","deserialize"],"author":{"url":"https://finwo.nl","name":"Robin Bron","email":"robin@finwo.nl"},"license":"ISC","_id":"serialize-error-cjs@0.1.3","maintainers":[{"name":"finwo","email":"finwo@pm.me"}],"homepage":"https://github.com/finwo/serialize-error-cjs#readme","bugs":{"url":"https://github.com/finwo/serialize-error-cjs/issues"},"dist":{"shasum":"39b38db06392224a28057af8cd17ebc5bf108c04","tarball":"https://registry.npmjs.org/serialize-error-cjs/-/serialize-error-cjs-0.1.3.tgz","fileCount":8,"integrity":"sha512-GXwbHkufrNZ87O7DUEvWhR8eBnOqiXtHsOXakkJliG7eLDmjh6gDlbJbMZFFbUx0J5sXKgwq4NFCs41dF5MhiA==","signatures":[{"sig":"MEQCIEmo4M2wcBkia7P7/2tin7fInW5ZvyRdrJscqVunE36HAiBOgmoneN7nhgssRv78cFsS2WsmqrwVQ5tNVznmcIxfSA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13935,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjCMjrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqjvw/9FoozIscXUlbWEsExaVxFV6cHpiH+q5ISgdokds6m9G8uW70a\r\nEBokqAZjjPwnML2CEohInVyfppptb8PraZCAkovrwAqpt7KQeIZQNvghHxun\r\nU8jXCBfW0jgmvwMWFQcp66f9ayw3RJoo+t72VcODwMIRWsnd0n6dCE0N2lZS\r\n7P2zt2qn8zWdo8DS9n7Cd3eDH7May9DhPZ2zXWwkVfTL9yto6yqVrDt7IU/e\r\n/a51uAS6nncQLFxZrWRIEtKff6al6YKpUehGCNmoHwx0mmtonRw/G5o7N+8w\r\nreB5MWVqk818s/8dFUKmekNTA7jvBenFoZq1JrsQ4ZIPl6jVYqsNZBW+1jUs\r\n4wFgkVfT4Qe2E/ISTzAV76KkNI26KSC14bXY7Yms8FkUDo4R2bHf0yUdoHCv\r\nHifzHzOJBqF0JmBe9lt7piD61HO/hyEkd5BXcnirI2XgMKT34bF0MCMe79Eb\r\nqY9hMaPiG2Oj3hSgPegtLwOt6/ndC/aQA9obvRbwZKwkS5Uy0wJ2F/G/MRC2\r\n2tBRJH8XC5/j7N96kns+Ng/cwCMbO1uWr1DfXvJR1r2fmGxPd03oZKjGpRRp\r\njdpj3JHG2gE73rrgRbhjdcaVLwRp0dUw1x3/XR8cyclaTo+sFGzR5z9eEUFD\r\nSFTj7vOD0i2GuKX3aOgZggT777qKYTE3ZNE=\r\n=3GjU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","funding":"https://github.com/sponsors/finwo","gitHead":"71ca4e5df663a1f9381d7c3f5445b4603a558256","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"node build.js","check":"npm run check:eslint","check:eslint":"eslint src --ext .js,.jsx,.ts,.tsx --max-warnings 0"},"_npmUser":{"name":"finwo","email":"finwo@pm.me"},"deprecated":"Rolling release, please update to 0.3.0","repository":{"url":"git+https://github.com/finwo/serialize-error-cjs.git","type":"git"},"_npmVersion":"6.14.17","description":"> Serialize/deserialize an error into a plain object in commonjs","directories":{},"_nodeVersion":"14.19.2","_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.22.0","esbuild":"^0.15.5","fs-extra":"^10.1.0","fast-glob":"^3.2.11","typescript":"^4.8.2","@types/node":"^18.7.13","esbuild-plugin-d.ts":"^1.1.0","@typescript-eslint/parser":"^5.35.1","@typescript-eslint/eslint-plugin":"^5.35.1"},"_npmOperationalInternal":{"tmp":"tmp/serialize-error-cjs_0.1.3_1661520107661_0.1291721128783212","host":"s3://npm-registry-packages"}},"0.1.4":{"name":"serialize-error-cjs","version":"0.1.4","keywords":["error","serialize","stringify","convert","deserialize"],"author":{"url":"https://finwo.nl","name":"Robin Bron","email":"robin@finwo.nl"},"license":"MIT-0","_id":"serialize-error-cjs@0.1.4","maintainers":[{"name":"finwo","email":"finwo@pm.me"}],"homepage":"https://github.com/finwo/serialize-error-cjs#readme","bugs":{"url":"https://github.com/finwo/serialize-error-cjs/issues"},"dist":{"shasum":"114ec1ea26f14e1d86fd2e3af23fe337ca873820","tarball":"https://registry.npmjs.org/serialize-error-cjs/-/serialize-error-cjs-0.1.4.tgz","fileCount":9,"integrity":"sha512-6a6dNqipzbCPlTFgztfNP2oG+IGcflMe/01zSzGrQcxGMKbIjOemBBD85pH92klWaJavAUWxAh9Z0aU28zxW6A==","signatures":[{"sig":"MEUCIQCOv1/iCtPs8gDuieabEIo9l3TfYlJumqWHt+1tsHv8aAIgJbXeVtxKYSGlazz8U4oHDMH5jSBddEj90q3cneEJ7+s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15730},"main":"dist/index.js","types":"./dist/index.d.ts","funding":"https://github.com/sponsors/finwo","gitHead":"cea53122e61483c5eaacf049a47fe3034da43dde","scripts":{"test":"npx -y ts-node test/main.ts","build":"node build.js","check":"npm run check:eslint","postpublish":"PACKAGE_VERSION=$(node -p \"require('./package.json').version\") PACKAGE_NAME=$(node -p \"require('./package.json').name\") && npm deprecate \"${PACKAGE_NAME}@<${PACKAGE_VERSION}\" \"Rolling release, please update to ${PACKAGE_VERSION}\"","check:eslint":"eslint src --ext .js,.jsx,.ts,.tsx --max-warnings 0"},"_npmUser":{"name":"finwo","email":"finwo@pm.me"},"deprecated":"Rolling release, please update to 0.3.0","repository":{"url":"git+https://github.com/finwo/serialize-error-cjs.git","type":"git"},"_npmVersion":"10.9.2","description":"> Serialize/deserialize an error into a plain object in commonjs","directories":{},"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"tape":"^5.9.0","eslint":"^8.22.0","esbuild":"^0.25.0","@types/node":"^22.13.1","@types/tape":"^5.8.1","esbuild-plugin-d.ts":"^1.3.1","@typescript-eslint/parser":"^5.35.1","@typescript-eslint/eslint-plugin":"^5.35.1"},"_npmOperationalInternal":{"tmp":"tmp/serialize-error-cjs_0.1.4_1739129664305_0.0788212163415507","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"serialize-error-cjs","version":"0.2.0","keywords":["error","serialize","stringify","convert","deserialize"],"author":{"url":"https://finwo.nl","name":"Robin Bron","email":"robin@finwo.nl"},"license":"MIT-0","_id":"serialize-error-cjs@0.2.0","maintainers":[{"name":"finwo","email":"finwo@pm.me"}],"homepage":"https://github.com/finwo/serialize-error-cjs#readme","bugs":{"url":"https://github.com/finwo/serialize-error-cjs/issues"},"dist":{"shasum":"c234e25c4ef856cdb08a7d510a33f7b040270a22","tarball":"https://registry.npmjs.org/serialize-error-cjs/-/serialize-error-cjs-0.2.0.tgz","fileCount":9,"integrity":"sha512-Phvx+w3MTgexuKnaIOkehfKCg1uF/DWfCRqg6F6haFz0qnyn1Fboo5MRedcgZitgi/chw+lM5hxZhw4OSA0gqQ==","signatures":[{"sig":"MEUCIQDZodZohYw26kUNeZXLqBIotIAw7aVs/LpV3O61BzlstwIgcjT3dFwRBtA94NDYb2exZONohdhQR5ukOHWeucOJcZ4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15417},"main":"dist/index.js","types":"./dist/index.d.ts","funding":"https://github.com/sponsors/finwo","gitHead":"2e10f60dbdbff200e8ecf9f32fbf97cc928204fa","scripts":{"test":"npx -y ts-node test/main.ts","build":"node build.js","check":"npm run check:eslint","postpublish":"PACKAGE_VERSION=$(node -p \"require('./package.json').version\") PACKAGE_NAME=$(node -p \"require('./package.json').name\") && npm deprecate \"${PACKAGE_NAME}@<${PACKAGE_VERSION}\" \"Rolling release, please update to ${PACKAGE_VERSION}\"","check:eslint":"eslint src --ext .js,.jsx,.ts,.tsx --max-warnings 0"},"_npmUser":{"name":"finwo","email":"finwo@pm.me"},"deprecated":"Rolling release, please update to 0.3.0","repository":{"url":"git+https://github.com/finwo/serialize-error-cjs.git","type":"git"},"_npmVersion":"10.9.2","description":"> Serialize/deserialize an error into a plain object in commonjs","directories":{},"_nodeVersion":"23.7.0","_hasShrinkwrap":false,"devDependencies":{"tape":"^5.9.0","eslint":"^8.22.0","esbuild":"^0.25.0","@types/node":"^22.13.1","@types/tape":"^5.8.1","esbuild-plugin-d.ts":"^1.3.1","@typescript-eslint/parser":"^5.35.1","@typescript-eslint/eslint-plugin":"^5.35.1"},"_npmOperationalInternal":{"tmp":"tmp/serialize-error-cjs_0.2.0_1739132962224_0.36526361034961763","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"_id":"serialize-error-cjs@0.3.0","bugs":{"url":"https://github.com/finwo/serialize-error-cjs/issues"},"dist":{"shasum":"42458cbafeaf64cee63e6d5b47d348627dfc76bc","tarball":"https://registry.npmjs.org/serialize-error-cjs/-/serialize-error-cjs-0.3.0.tgz","fileCount":12,"integrity":"sha512-i6sVLDdj2pk3iwGGFP/fio00jFEiPpDzqqX7PZNHU+MkqYVcyj1niB1nFHmz7PD0ddyV2lvy0TGIlRPR6lkSWg==","signatures":[{"sig":"MEUCIATVmf6IJNmfxB8fiGR180aeHpMNF3D+hUe5vAGfl1AwAiEA1jsuANkpwegG4pjCkXV4bHnduJjqu9Hj3CC6bcAjBeY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDEoaQHGMkcGNDCpQ7TwiMl/0OqI3pAG2wdKbD3Ad4zeAIgbKtuDrnvgZCzj8J+SEDfYAI6x3eCDE412piBjrqTt8M="}],"unpackedSize":22417},"main":"dist/index.js","name":"serialize-error-cjs","types":"./dist/index.d.ts","author":{"url":"https://finwo.nl","name":"Robin Bron","email":"robin@finwo.nl"},"funding":"https://github.com/sponsors/finwo","gitHead":"67f60fd1102c461ef4b7ed32944c94c3f83295f4","license":"MIT-0","scripts":{"test":"npx -y ts-node test/main.ts","build":"node build.js","check":"npm run check:eslint","postpublish":"PACKAGE_VERSION=$(node -p \"require('./package.json').version\") PACKAGE_NAME=$(node -p \"require('./package.json').name\") && npm deprecate \"${PACKAGE_NAME}@<${PACKAGE_VERSION}\" \"Rolling release, please update to ${PACKAGE_VERSION}\"","check:eslint":"eslint src --ext .js,.jsx,.ts,.tsx --max-warnings 0"},"version":"0.3.0","_npmUser":{"name":"finwo","email":"finwo@pm.me"},"homepage":"https://github.com/finwo/serialize-error-cjs#readme","keywords":["error","serialize","stringify","convert","deserialize"],"repository":{"url":"git+https://github.com/finwo/serialize-error-cjs.git","type":"git"},"_npmVersion":"11.17.0","description":"> Serialize/deserialize an error into a plain object in commonjs","directories":{},"maintainers":[{"name":"finwo","email":"finwo@pm.me"}],"_nodeVersion":"26.4.0","_hasShrinkwrap":false,"devDependencies":{"tape":"^5.9.0","eslint":"^8.22.0","esbuild":"^0.25.0","@types/node":"^22.13.1","@types/tape":"^5.8.1","esbuild-plugin-d.ts":"^1.3.1","@typescript-eslint/parser":"^5.35.1","@typescript-eslint/eslint-plugin":"^5.35.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/serialize-error-cjs_0.3.0_1790011080900_0.3338710885052152"}}},"time":{"created":"2022-08-26T12:06:28.649Z","modified":"2026-09-21T17:18:01.350Z","0.0.1":"2022-08-26T12:06:28.809Z","0.1.0":"2022-08-26T13:11:21.176Z","0.1.1":"2022-08-26T13:14:31.111Z","0.1.2":"2022-08-26T13:19:11.248Z","0.1.3":"2022-08-26T13:21:47.853Z","0.1.4":"2025-02-09T19:34:24.537Z","0.2.0":"2025-02-09T20:29:22.454Z","0.3.0":"2026-09-21T17:18:00.985Z"},"bugs":{"url":"https://github.com/finwo/serialize-error-cjs/issues"},"author":{"url":"https://finwo.nl","name":"Robin Bron","email":"robin@finwo.nl"},"license":"MIT-0","homepage":"https://github.com/finwo/serialize-error-cjs#readme","keywords":["error","serialize","stringify","convert","deserialize"],"repository":{"url":"git+https://github.com/finwo/serialize-error-cjs.git","type":"git"},"description":"> Serialize/deserialize an error into a plain object in commonjs","maintainers":[{"name":"finwo","email":"finwo@pm.me"}],"readme":"# serialize-error-cjs\n\n> Serialize/deserialize an error into a plain object in commonjs\n\nLoosely based on [serialize-error](https://npmjs.com/package/serialize-error),\nbut with support for commonjs projects.\n\nUseful if you for example need to `JSON.stringify()` or `process.send()` the error.\n\n## Install\n\n```sh\nnpm install serialize-error-cjs\n```\n\n## Usage\n\n```js\nimport {serializeError, deserializeError} from 'serialize-error-cjs';\n\nconst error = new Error('🦄');\n\nconsole.log(error);\n//=> [Error: 🦄]\n\nconst serialized = serializeError(error);\n\nconsole.log(serialized);\n//=> {name: 'Error', message: '🦄', stack: 'Error: 🦄\\n    at Object.<anonymous> …'}\n\nconst deserialized = deserializeError(serialized);\n\nconsole.log(deserialized);\n//=> [Error: 🦄]\n```\n\n### Error constructors\n\nWhen a serialized error with a known `name` is encountered, it will be deserialized using the corresponding error constructor, while unknown error names will be deserialized as regular errors:\n\n```js\nimport {deserializeError} from 'serialize-error';\n\nconst known = deserializeError({\n  name: 'TypeError',\n  message: '🦄'\n});\n\nconsole.log(known);\n//=> [TypeError: 🦄] <-- Still a TypeError\n\nconst unknown = deserializeError({\n  name: 'TooManyCooksError',\n  message: '🦄'\n});\n\nconsole.log(unknown);\n//=> [Error: 🦄] <-- Just a regular Error\n```\n\nThe [list of known errors](./src/constructors.ts) can be extended globally. This also works if `serialize-error-cjs` is a sub-dependency that's not used directly.\n\n```js\nimport {errorConstructors} from 'serialize-error-cjs';\nimport {MyCustomError} from './errors.js'\n\nerrorConstructors.set('MyCustomError', MyCustomError)\n```\n\n**Note:** the constructor is called during deserialization, without arguments. The common properties (message, stack, code, cause, errors) are written onto the instance afterwards, so the constructor only has to survive being called as `new MyCustomError()`.\n\nIf your class sets `this.name` in its constructor, that name is used as the key. If it sets nothing, the class name is used instead. Prefer assigning `this.name` explicitly: a string literal survives minification, a class name does not.\n\n### Constructor options\n\nConstructors that cannot be called as `new MyCustomError()` are configured through `errorConstructorOptions`:\n\n```js\nimport {errorConstructors, errorConstructorOptions} from 'serialize-error-cjs';\nimport {MyCustomError} from './errors.js'\n\nerrorConstructors.set('MyCustomError', MyCustomError)\n\n// Build the arguments the constructor needs\nerrorConstructorOptions.set('MyCustomError', {\n  args: serialized => [{ message: serialized.message }],\n})\n\n// Or skip the constructor entirely, using Object.create instead\nerrorConstructorOptions.set('MyCustomError', { construct: false })\n```\n\n- `construct`: `boolean`, defaults to `true`. When `false`, the instance is built with `Object.create()` and the constructor is never called.\n- `args`: `(serialized: SerializedError) => unknown[]`, defaults to `() => []`. Builds the argument list handed to the constructor.\n\n`AggregateError` ships with `args` preconfigured, since its first parameter is a required iterable.\n\nIf a constructor throws during deserialization, `serialize-error-cjs` falls back to `Object.create()` and warns once per error name. Deserialization itself never throws.\n\n## API\n\n### serializeError(value: T extends Error): SerializedError\n\nSerialize an `Error` object into a plain object.\n\n- Custom properties **NOT** are preserved.\n- Non-enumerable properties are kept non-enumerable (name, message, stack).\n- Circular references are **NOT** handled.\n\n### deserializeError&lt;T extends Error&gt;(value: SerializedError): T\n\nDeserialize a plain object or any value into an `Error` object.\n\n- All passed values are interpreted as errors\n- Custom properties are **NOT** preserved\n- Non-enumerable properties are kept non-enumerable (name, message, stack, cause)\n- Circular references are **NOT** handled\n- The constructor of the class **IS** called, without arguments, unless configured otherwise\n","readmeFilename":"README.md"}