{"_id":"p-state","_rev":"10-b983b71f7824e3df050ec6124ab10bdc","name":"p-state","dist-tags":{"latest":"3.0.0"},"versions":{"0.1.0":{"name":"p-state","version":"0.1.0","keywords":["promise","state","inspect","inspection","reflect","reflection","introspect","introspection","pending","fulfilled","rejected"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"p-state@0.1.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/p-state#readme","bugs":{"url":"https://github.com/sindresorhus/p-state/issues"},"dist":{"shasum":"133ed47509cae57f7c1f954b72ceb4ba99734fda","tarball":"https://registry.npmjs.org/p-state/-/p-state-0.1.0.tgz","fileCount":5,"integrity":"sha512-Ze+Br4OEjQ1mHa8glAHqLgL912vjYYJHwLXKS+NNv+2UzhGM9plZubRWQf248i3j8cnkvQpTnWiSgVzcVN0aYQ==","signatures":[{"sig":"MEUCIQD7YigZpCGJj9d4li/rigwWSAfyN047f/z9NpaN1k5jfwIgH6uwNV/w+2ES1RM/pLIq6wVWBS5dV6owcdgMoeJVu4M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5870,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfuku8CRA9TVsSAnZWagAAgBgP/jBifS/KH2AJEVwyODog\nWUUMs88CQhFvrSbMp9gfDs0PbZUBJHSkRTC2z0dL2IkoU1cX1bXRBYy+0Tvp\nFrHM4M8D367OUmgvnFDDVWuGntylDoEIXnuu59wRqcNm1QA2+t0gqhwskUlR\nUU6Far4Wo6eyJyYWgRGXHYEd5Rq4WLYZrRd68ks8B5tiGoRuiBDW3UKO4O+X\nDyloYPpzdP/E/UuFuykHfKmpDXhCNKzawDi5YKCusrYuAAwZzPdD1tZSqu0D\n4ACoSqkNQuQ8qakfZpEkohZbV+ThVQmhvlBFt9gOlQ15IH8LvYgohHVf6AHV\nRfTuQNavUHvNOmTnY0fdU2fLiq0d1kT+67DpBoL+8ei5DCbVqCofLtU4SELJ\n5fMjDNaowBh24Vq++Rup9dycaQysMxt6bP8cGAfURbIcDigm5Kmp9AZTjLij\nsoeNUsdbstUitaBSvWeLJSYuq+Sj25J1Vv8OKUzQk2oBVWqJEiZBl8PSwJxz\nru9ZRV5EAY9pT40JYIz8y/IWcFibk8EhOV/8sO2r7xm37c93J3pvwFkbbzdD\n/4G5punOWcmU80n/vAm/lRnyJrlQwmA+Fi7/3FQ6J/S9RqdTzyPXr9XT5f+C\n99FJEI1yFz4174/OrgOqdldqhwfai4+TliXBGaU9ktEqOWq7yh7xOfGeCQrN\ng61E\r\n=j6/+\r\n-----END PGP SIGNATURE-----\r\n"},"engines":{"node":">=10"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"ce5da2e89c49cdfefb335d48b483d104d518cb6f","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/p-state.git","type":"git"},"_npmVersion":"6.14.8","description":"Inspect the state of a promise","directories":{},"_nodeVersion":"15.2.1","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.35.0","ava":"^2.4.0","tsd":"^0.13.1"},"_npmOperationalInternal":{"tmp":"tmp/p-state_0.1.0_1606044603650_0.4480282456223479","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"p-state","version":"0.1.1","keywords":["promise","state","inspect","inspection","reflect","reflection","introspect","introspection","pending","fulfilled","rejected"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"p-state@0.1.1","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/p-state#readme","bugs":{"url":"https://github.com/sindresorhus/p-state/issues"},"dist":{"shasum":"fa1109367fcf48269c38882a539a7f7445fa52cb","tarball":"https://registry.npmjs.org/p-state/-/p-state-0.1.1.tgz","fileCount":6,"integrity":"sha512-YiSG+BHU34h8p13kynqgE/Mr82QN6JY0U2KlL+fpADihXrNgAAsMNsplMM1P2KUVlsiKogW9HoPMvVa8lj/jEA==","signatures":[{"sig":"MEQCIH8WVTjwmIAZbJpQk2wRxtChF2WQQWN7szrN7Yo3QwdxAiBTth/UL4NNVXNc8uEnqhhQBl8fOlYUK89m+FXRdcxGmA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6614,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfuppnCRA9TVsSAnZWagAA1UkP/RG74dWO6CzLkqTGwChN\nrmzoH+SV8FuhlMmlJwAKgaLaVs6H72OtRfpfJ5OTif/KscEv8VDKHtf1fpyn\nvRB8v2N9gIx0URxY3ksJULAAUn0XSc2WAo8VAYF3Af9Ukp67CLNNtayEjEaw\n3T4+Kd8osD3v4zFYbE7cGa18nO3W5ib88NdH3TuQ6SFqB44TRWZlPh/Lrqx7\n9T2QaaelKa867bd47ofve1V4FmjIjYVIbe74Cg4Mo8LVWxEvR45iteO5Axib\nu/w63DP6iiDRTidWNNHZrHhhmuO/gF22GXgBURsCch3j1m6QBMTyyMHUA6CW\n+oDy+p2fFMyUtX7fsroSfW27O+WbQMVv1WD8Zrerntaxadlx6eCM3a8ubNxD\nnWaifg4NG1WEhfcgnMlJUu/ByOb8b2WVRRXYKoUKP7xJLd6dr1I5PIVDmInS\nBg1tPixJ4L/Rrh2G8u3mwPveLBC+gWSfUPCA6C+ZB3erlmaq3zP+G/KFkfZi\n7iGFwV2d5OX0Re9zrepPtBFcesvs/Lbs4e1fEk0l6kzVhWzyrFJsDafjMWtc\n6w6NZs3fTsPnI6hfsbsngh2hGOHlutc+JgpHoZi9L4aZNbbMd2UBIjur2rX7\nMSVmPxnjxqWOjxjke3d53AzPAdhCSbCPDg14TdtCx8ZVXfUGOhALWJB1ZMAf\nBM8v\r\n=qwNa\r\n-----END PGP SIGNATURE-----\r\n"},"browser":"browser.js","engines":{"node":">=10"},"exports":{"node":"./index.js","default":"./browser.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"94932a54a4480a96793c8bbeaa64585a32f8b079","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/p-state.git","type":"git"},"_npmVersion":"6.14.9","description":"Inspect the state of a promise","directories":{},"_nodeVersion":"10.22.1","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.35.0","ava":"^2.4.0","tsd":"^0.13.1","delay":"^4.4.0"},"_npmOperationalInternal":{"tmp":"tmp/p-state_0.1.1_1606064742769_0.19170421050127318","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"p-state","version":"0.2.0","keywords":["promise","state","inspect","inspection","reflect","reflection","introspect","introspection","pending","fulfilled","rejected"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"p-state@0.2.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/p-state#readme","bugs":{"url":"https://github.com/sindresorhus/p-state/issues"},"dist":{"shasum":"9cbb32d0c9ed01836ceebf4652b62944c7cfe9dd","tarball":"https://registry.npmjs.org/p-state/-/p-state-0.2.0.tgz","fileCount":6,"integrity":"sha512-ODOZZZphBhTUsCa/XX9EwudaNYnEOsju482804I+OP9X/wAmoLHNfPRO6fKEDDsnWw+dK3rrfXH6mrXK21RnNw==","signatures":[{"sig":"MEYCIQDHIVKWD2r9bvrhPgxyLGvooMw73NPzGchGXqSoY4K9cgIhAKfH2L3OmFOz+H3IZQjH+ibuccBKfKvdICFQPG6nTC1E","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6659,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/Ba/CRA9TVsSAnZWagAAiE8QAI3GPuk3fTPShkwOeGOa\n4EFRROdYGnRaQZCiBZKk+DQg9gNla1tzh506yRzkxlsZLucf59lthLSM+Udb\nLjQNabUy/DzcBxH2qAk4bNNkfIvcb+0FcFyP1uwbNVi+GGwjqsyXqPTuGM3P\nE6NgSIJIDKyWcy8vPJAqT926S2g86iZ26QBpPMJMWTcegb3ddSLzC2pbCO7j\n1/sN7lsRltWcTN9R9P4sdTXgnK5lYSr2j/yuyM+A/9FIXvmrKxaPD6870mPD\nnk17/TM+itUupl9mQwCmOBdtiJ1OwruS0NmASGqrf6RehwtH2EH0r1vSj2BW\nGHH6Mcc57CbNe1ijpQsVJ0O0I+mBClfAZ3vnO70c6ej6jdBiF/M/rh0ukkdG\n48mq/t5osmA/Q1YOrpX/yps4J0JNF/cq0xUgqcTrkQkpJs6DssHL5Hj9fh0h\nakRo4Ne/zFH/EQMjpFhR/g5SXNOaYtm+i7/OxUVNtFz2OwCp61TY89ZlYT8J\nU1ighvhhcAikcEKF2eT1uo5CTmB/pvzWTzyBbslrz6USLK5gEakpJe4KRk2G\n0UEhNx4+pwx5nnZvFsg928+9otffE3HFUcFGxBh4Z26rT0HBTNZkUdB9vfN1\n9xMyXJ0uJVhihgHLd9mX6Vn0+qqThEF8PfAvqGXfltzKUz474TgHjF9nJaK9\nk0vU\r\n=Nz1Q\r\n-----END PGP SIGNATURE-----\r\n"},"browser":"browser.js","engines":{"node":">=10"},"exports":{"node":"./index.js","default":"./browser.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"d22d0689b2a08d04f1fbd4205a3caa84e652c48a","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/p-state.git","type":"git"},"_npmVersion":"6.14.10","description":"Inspect the state of a promise","directories":{},"_nodeVersion":"10.22.1","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.35.0","ava":"^2.4.0","tsd":"^0.13.1","delay":"^4.4.0","p-event":"^4.2.0"},"_npmOperationalInternal":{"tmp":"tmp/p-state_0.2.0_1610356415159_0.8067810410210441","host":"s3://npm-registry-packages"}},"0.2.1":{"name":"p-state","version":"0.2.1","keywords":["promise","state","inspect","inspection","reflect","reflection","introspect","introspection","pending","fulfilled","rejected"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"p-state@0.2.1","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/p-state#readme","bugs":{"url":"https://github.com/sindresorhus/p-state/issues"},"dist":{"shasum":"9d5ab19fecb78fc529b16d799a09d6d7d7cf5546","tarball":"https://registry.npmjs.org/p-state/-/p-state-0.2.1.tgz","fileCount":6,"integrity":"sha512-x4b3GF8OcO0phCkEGj++DdN9/Ons4RrrqAUJ7UA02SUlWdqyUTOYSZ1rL7cNe1GUzJYxI3Lb8hOdqwDe9GgyVw==","signatures":[{"sig":"MEUCIHmcChsjscdl7nikQJLxbwpLxckDTzZwRLS9i1WrpAAqAiEAkxZ+6bBSQxbTGjDWTsDDwzE7MErD8vt3phLRrqv3vYg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6494,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOibECRA9TVsSAnZWagAAUc8QAJPC/KRrHTDtYVWV2h9K\n2A99aWjeUZrr/sePD+JeA+HMXkLUJoc7ZoVSCK+tnXToRClw/ozgszooEYZ5\nEi7P+RAuWwRbS0b26IKUkDYKu61kWp0g5bGc6qtneXD+ymabFJ99pIq3fHEg\n/teot2/NqY+hA5bhyDAkbh9cGa/ek7W0dtJ4zGFOzUZ1m6RoItLf8N+j8Yzn\n4HJsmAeiGciL7xJLMyDE+KphXJJxAXFr9ZEadIvweUrCdHmiENHMY+YeKjey\nGeXcVCBOdbZT2o+py1XGfTLncT0wgVsGFQ9bpjOEhl7AmyWMXGGS5+N+h+wE\n7QprluzNeFX9Qzu3KaPZJlqdWg55nXpzt4Y/xGvi0BMbgMVcSFIK+WJhNZAr\nxo3IlYTXpro8A75cDD71AEKYlm07D0lFqQ1FwQpKjjMsk/JdOEVRJ7QB1ZEf\ntQdDZjGvuSdJ+ZNEFLi9Wug/dOAUDqt2Ve3Skj35WobTJQBF3oDfY7tOfwlG\nAyyEyFvZPBIA60G+YyW5RrBNHyLjU9gRlPGpLIqEwGCPtNWbyiR7pCtWST4A\n5CK5HSnnCICdPXwW5fNb/7nxvFJ0QT5eEVZmxDTwMTbgPw2kNsNLXDJNO/FQ\nLt/k3uKcDNxBD8LruADUukd6vWAT03xz3eCzY4PttiICSzu2MfcTR+2VBaNC\n8W8a\r\n=UM0G\r\n-----END PGP SIGNATURE-----\r\n"},"browser":"browser.js","engines":{"node":">=10"},"exports":{"node":"./index.js","default":"./browser.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"4007e180bf90859ece8fbb4485d35af98c5fa585","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/p-state.git","type":"git"},"_npmVersion":"7.20.3","description":"Inspect the state of a promise","directories":{},"_nodeVersion":"14.17.5","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.35.0","ava":"^2.4.0","tsd":"^0.13.1","delay":"^4.4.0","p-event":"^4.2.0"},"_npmOperationalInternal":{"tmp":"tmp/p-state_0.2.1_1631200964679_0.5459837457371288","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"p-state","version":"1.0.0","keywords":["promise","state","inspect","inspection","reflect","reflection","introspect","introspection","pending","fulfilled","rejected"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"p-state@1.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/p-state#readme","bugs":{"url":"https://github.com/sindresorhus/p-state/issues"},"dist":{"shasum":"326c001c0df1ab83c376e2045df9d946a594cdad","tarball":"https://registry.npmjs.org/p-state/-/p-state-1.0.0.tgz","fileCount":6,"integrity":"sha512-cRnu3ZFtWc2c7Ad/wKb3LZzs6S21Noa44r92DhTVVbT9whjkoJUzUqpxjl+kaB9taZQjCkrd8OKfpkTAmybvRQ==","signatures":[{"sig":"MEUCIQC9DDs/MDfUIpjC2P8J8+5/MH3UdQeLCQYKf9Vx8ARz1AIgH0mgJgF5vpr8E54dPBMS3eLmZF/FkTkqvZxAfbJf+D8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6530,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh22HWCRA9TVsSAnZWagAAYu4QAISxGP9iQJeXoYXWe18q\n9s5qMStbZTuxGmUgxUatQtp6+xiWlmHSJcUvl0M81+JyRdN3JT7HxyEI+60b\n4AO2FIYMl/Bf+Sbj8ZwNNnM+PtM67TFK0f8eSVzSzXkH3IJBaqadUclLgm72\nWxcTLhXjr8/SHWDw5ELDgqjXGsu9Eet5mabxyppizUyK3X1sJMARXmBXMDQf\nQZggYnmG8uAVR3RrWFsQKkXMXPDkx6gqRxIjexP+HAo0fadZrBiQdkd2Ljl7\n8Qy4bWfGCSPSxK3iwER/AUmAUPkpnce2KwZXmA0pvkm1NUYc7bG0xo5T/kOh\nwdCmBPmqZxiUJXX2nCGmeIPDyVHVnmHK1kgL5jpht43He4aWjY25ViC9KdBv\nmd5aEId+5J+DURyHSRS2YT/MsFqmvXKGFlEakJfxhQCB1Ok8KU3M7kZxPu8O\n9BED3vx1MKJj/KeJJzsFGLWbObeJb8EEVY5QoHNS+USW5YhN/SDyxeGMb7e6\nSQYQU+CDSgtAoqpyZiMm1jbRHXTnMof3sgfsFI3timY0i0kwWuCdzhyP3RvX\n0QyRsWk9xyFE9hZm1qIGR8AqUB5t83DRfY31NaqRaDjV4KcFrsraHpWt2GOJ\ng7pipmIOBJsREIVSV0he01IMicQ3CVVlsJNFXqBFdCyMh5wr49yzRK3Te7QF\n9Rv3\r\n=pQsz\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"exports":{"node":"./index.js","default":"./browser.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"730e1945a5642a19a5a9d86d7eff0a34aa9a9361","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/p-state.git","type":"git"},"_npmVersion":"7.20.3","description":"Inspect the state of a promise","directories":{},"_nodeVersion":"12.22.1","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.45.0","ava":"^3.15.0","tsd":"^0.17.0","delay":"^5.0.0","p-event":"^4.2.0"},"_npmOperationalInternal":{"tmp":"tmp/p-state_1.0.0_1633365971842_0.9960566392458841","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"p-state","version":"2.0.0","keywords":["promise","state","inspect","inspection","reflect","reflection","introspect","introspection","pending","fulfilled","rejected"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"p-state@2.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/p-state#readme","bugs":{"url":"https://github.com/sindresorhus/p-state/issues"},"dist":{"shasum":"413efce23eb7f24e42cac624fadc24afa8595337","tarball":"https://registry.npmjs.org/p-state/-/p-state-2.0.0.tgz","fileCount":6,"integrity":"sha512-yEkQUosW0qx6SFUQ88opcqqAL8bBSd6XFvFnbMOuAa+7r4+Rmxh17q8YSRieVnfzXFsPNUH57KjW1Trito0sbg==","signatures":[{"sig":"MEUCIQC1Jjb2kY5SX0mCFSYDPdsnug4c60B9A791dIOJN91MMgIgP7xDvyqGDe6LJyowbw2tTEGQj0befRVZOT3cg+n/bLs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6406},"type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{"node":"./index.js","types":"./index.d.ts","default":"./browser.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"ecbe9cf07cddc6524b160f087e7eeb3e35bb850b","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/p-state.git","type":"git"},"_npmVersion":"9.2.0","description":"Inspect the state of a promise","directories":{},"_nodeVersion":"18.17.1","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.56.0","ava":"^5.3.1","tsd":"^0.29.0","delay":"^6.0.0","p-event":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/p-state_2.0.0_1694093179015_0.12838926688147811","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"p-state","version":"2.0.1","keywords":["promise","state","inspect","inspection","reflect","reflection","introspect","introspection","pending","fulfilled","rejected"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"p-state@2.0.1","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/p-state#readme","bugs":{"url":"https://github.com/sindresorhus/p-state/issues"},"dist":{"shasum":"f70c5e833b5d629ebd111e2f3cff4ea6e2ad7ab5","tarball":"https://registry.npmjs.org/p-state/-/p-state-2.0.1.tgz","fileCount":6,"integrity":"sha512-izK3LJXvFsTOnompAXfyZRMJ6StMxwcdjgaoG20ZQH/8USERQnrSs7dtG3z6qiDHfeWhjT/WXWTCKug3pmoO1g==","signatures":[{"sig":"MEUCIQCaFS6W/DtC8yyIys3nLHritY7u+zafqGIv0zwcvqmcCAIgU0/av+fzPRVWt7K0dqcoGw95cQOgccS+hTFn4amThqY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6483},"type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{"node":"./index.js","types":"./index.d.ts","default":"./browser.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"8cd664d8d29e9b56801c9752b8d7e5e4a82cc068","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/p-state.git","type":"git"},"_npmVersion":"9.2.0","description":"Inspect the state of a promise","directories":{},"sideEffects":false,"_nodeVersion":"20.11.1","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.56.0","ava":"^5.3.1","tsd":"^0.29.0","delay":"^6.0.0","p-event":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/p-state_2.0.1_1710614613943_0.7632276840532597","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"p-state","version":"3.0.0","description":"Inspect the state of a promise","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-state.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","node":"./index.js","default":"./browser.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && node --test test.js && tsd"},"keywords":["promise","state","inspect","inspection","reflect","reflection","introspect","introspection","pending","fulfilled","rejected"],"devDependencies":{"delay":"^6.0.0","tsd":"^0.33.0","xo":"^1.2.2"},"xo":{"rules":{"promise/prefer-await-to-then":"off"}},"_id":"p-state@3.0.0","gitHead":"7bb90fe2917e1f6fc6219e87ffe3bca635a37c8b","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/p-state/issues"},"homepage":"https://github.com/sindresorhus/p-state#readme","_nodeVersion":"24.8.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-QUdqu6xT6mUO6b5KiOxqXFFAHYmsm2P3XBlzROIV347OMyObTcYCAojKxZr5njc8J1OD/1SX4gN7pNqTSCNwtw==","shasum":"711fea6e8ab0ed47e83d875ff0ffa21ee343753c","tarball":"https://registry.npmjs.org/p-state/-/p-state-3.0.0.tgz","fileCount":6,"unpackedSize":7013,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBBgiAnWFloOxbt7FBW4uGpskMdgOvicSCplbiCBEplkAiEA8WRD4q1Nwf3z20DZ51fmQuRVgx2DnqTG5XNh9/dd9kQ="}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/p-state_3.0.0_1758648137923_0.23427915181615333"},"_hasShrinkwrap":false}},"time":{"created":"2020-11-22T11:30:03.650Z","modified":"2025-09-23T17:22:18.352Z","0.1.0":"2020-11-22T11:30:03.983Z","0.1.1":"2020-11-22T17:05:42.939Z","0.2.0":"2021-01-11T09:13:35.268Z","0.2.1":"2021-09-09T15:22:44.872Z","1.0.0":"2021-10-04T16:46:12.019Z","2.0.0":"2023-09-07T13:26:19.194Z","2.0.1":"2024-03-16T18:43:34.089Z","3.0.0":"2025-09-23T17:22:18.109Z"},"bugs":{"url":"https://github.com/sindresorhus/p-state/issues"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","homepage":"https://github.com/sindresorhus/p-state#readme","keywords":["promise","state","inspect","inspection","reflect","reflection","introspect","introspection","pending","fulfilled","rejected"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-state.git"},"description":"Inspect the state of a promise","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"readme":"# p-state\n\n> Inspect the state of a promise\n\nYou would usually not need this as you can just `await` the promise at any time to get its value even after it's resolved. This package could be useful if you need to check the state of the promise before doing a heavy operation or for assertions when writing tests.\n\n**Vote up [this issue](https://github.com/nodejs/node/issues/40054) if you want to see this feature being included in Node.js itself.**\n\n## Install\n\n```sh\nnpm install p-state\n```\n\n## Usage\n\n```js\nimport timers from 'node:timers/promises';\nimport {promiseStateSync} from 'p-state';\n\nconst timeoutPromise = timers.setTimeout(100);\n\nconsole.log(promiseStateSync(timeoutPromise));\n//=> 'pending'\n\nawait timeoutPromise;\n\nconsole.log(promiseStateSync(timeoutPromise));\n//=> 'fulfilled'\n```\n\n## API\n\n### `promiseStateAsync(promise: Promise)`\n\nAsynchronously inspect the state of a promise.\n\nReturns a promise for the state as a string with the possible values: `'pending'`, `'fulfilled'`, `'rejected'`.\n\nNote: While this is async, it does return the state in the next [microtask](https://developer.mozilla.org/en-US/docs/Web/API/HTML_DOM_API/Microtask_guide), which is almost right away.\n\n```js\nimport timers from 'node:timers/promises';\nimport {promiseStateAsync} from 'p-state';\n\nconst timeoutPromise = timers.setTimeout(100);\n\nconsole.log(await promiseStateAsync(timeoutPromise));\n//=> 'pending'\n\nawait timeoutPromise;\n\nconsole.log(await promiseStateAsync(timeoutPromise));\n//=> 'fulfilled'\n```\n\n### `promiseStateSync(promise: Promise)`\n\nSynchronously inspect the state of a promise.\n\nReturns the state as a string with the possible values: `'pending'`, `'fulfilled'`, `'rejected'`.\n\nNote: This method does not work in the browser.\n\n## Related\n\n- [p-reflect](https://github.com/sindresorhus/p-reflect) - Make a promise always fulfill with its actual fulfillment value or rejection reason\n- [p-settle](https://github.com/sindresorhus/p-settle) - Settle promises concurrently and get their fulfillment value or rejection reason\n- [More…](https://github.com/sindresorhus/promise-fun)\n","readmeFilename":"readme.md"}