{"_id":"@3xpo/universalify","_rev":"7-8e82b7cafe70a7427162586a2600e51f","name":"@3xpo/universalify","description":"Make a callback- or promise-based function support both promises and callbacks.","dist-tags":{"latest":"2.0.8"},"versions":{"2.0.1":{"name":"@3xpo/universalify","version":"2.0.1","keywords":["callback","native","promise"],"author":{"name":"Expo"},"license":"MIT","_id":"@3xpo/universalify@2.0.1","maintainers":[{"name":"exponentialworkload","email":"cc@aaathats3as.com"}],"contributors":[{"url":"https://codeberg.org/Expo","name":"Expo","email":"expo@expo.moe"}],"homepage":"https://codeberg.org/Expo/devtools/src/branch/senpai/packages/@3xpo/universalify/","bugs":{"url":"https://codeberg.org/Expo/devtools/issues","email":"expo@expo.moe"},"dist":{"shasum":"aff5fca677d817c8da907557a3c09427aac88823","tarball":"https://registry.npmjs.org/@3xpo/universalify/-/universalify-2.0.1.tgz","fileCount":9,"integrity":"sha512-YpqgdUU+qPLSGJhhhPH3xXznZD8D9UybTwqK+jjE/ZbCJ5dSboxJKffzAOAmGZt9pa2rShuKE/7Lnxiqk9gzgg==","signatures":[{"sig":"MEQCIDwx4PpvppjRcHvOdee5X4FVkFs+ucyxUKBHsvhnuG2tAiB0/5MXRUSn8zn80Qls5NHmyW8Lkg2L2g1oGwcZm5Zhrg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17667},"main":"./dist/lib.bundle.min.cjs","type":"module","_from":"file:3xpo-universalify-2.0.1.tgz","types":"./dist/index.d.ts","module":"./dist/lib.bundle.min.mjs","engines":{"node":">= 10.0.0"},"exports":{".":{"node":"./dist/lib.bundle.min.mjs","types":"./dist/index.d.ts","import":"./dist/lib.bundle.min.mjs","default":"./dist/lib.bundle.min.mjs","require":"./dist/lib.bundle.min.cjs"}},"scripts":{"test":"nyc --reporter text --reporter lcovonly tape test/*.js | colortape","build":"concurrently \"npm:build:*\"","build:js":"es-many --args \"src/index.ts --sourcemap --packages=external\" --output dist/lib --minify true --bundle true --format cjs,esm --platform neutral","build:dts":"tsc --emitDeclarationOnly --declaration"},"typings":"./dist/index.d.ts","_npmUser":{"name":"exponentialworkload","email":"cc@aaathats3as.com"},"_resolved":"/tmp/44eba62f7ca43b49263e26c9599dd410/3xpo-universalify-2.0.1.tgz","_integrity":"sha512-YpqgdUU+qPLSGJhhhPH3xXznZD8D9UybTwqK+jjE/ZbCJ5dSboxJKffzAOAmGZt9pa2rShuKE/7Lnxiqk9gzgg==","repository":{"url":"https://codeberg.org/Expo/devtools.git","type":"git","directory":"packages/@3xpo/universalify/"},"_npmVersion":"10.2.4","description":"Make a callback- or promise-based function support both promises and callbacks.","directories":{},"_nodeVersion":"21.6.1","_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","tape":"^5.0.1","colortape":"^0.1.2","coveralls":"^3.0.1","@types/tape":"^5.6.4","concurrently":"^8.2.2"},"_npmOperationalInternal":{"tmp":"tmp/universalify_2.0.1_1706212415258_0.9640218992394018","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"@3xpo/universalify","version":"2.0.2","keywords":["callback","native","promise"],"author":{"name":"Expo"},"license":"MIT","_id":"@3xpo/universalify@2.0.2","maintainers":[{"name":"exponentialworkload","email":"cc@aaathats3as.com"}],"contributors":[{"url":"https://codeberg.org/Expo","name":"Expo","email":"expo@expo.moe"}],"homepage":"https://codeberg.org/Expo/devtools/src/branch/senpai/packages/@3xpo/universalify/","bugs":{"url":"https://codeberg.org/Expo/devtools/issues","email":"expo@expo.moe"},"dist":{"shasum":"1ce074679cabe10732eeb463de9c84f22b887b08","tarball":"https://registry.npmjs.org/@3xpo/universalify/-/universalify-2.0.2.tgz","fileCount":9,"integrity":"sha512-Gw2T+Pbiek99cPlmWnNpDpF+5IN97zOqH40QPUpZlsOEd3al9dYlBtqvmuiBLfMGOyF1lNE872VcpdUKRIUWlA==","signatures":[{"sig":"MEQCIBRLGRZG5/Hae5XYTbBEPKKlby5RX9olM8vQjgmZOpoCAiAMSWzmMn3qNa7BC99OfpTsvDEFcfFEankxtrfvOHkNrg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17667},"main":"./dist/lib.bundle.min.cjs","type":"module","_from":"file:3xpo-universalify-2.0.2.tgz","types":"./dist/index.d.ts","module":"./dist/lib.bundle.min.mjs","engines":{"node":">= 10.0.0"},"exports":{".":{"node":"./dist/lib.bundle.min.mjs","types":"./dist/index.d.ts","import":"./dist/lib.bundle.min.mjs","default":"./dist/lib.bundle.min.mjs","require":"./dist/lib.bundle.min.cjs"}},"scripts":{"test":"nyc --reporter text --reporter lcovonly tape test/*.js | colortape","build":"concurrently \"npm:build:*\"","build:js":"es-many --args \"src/index.ts --sourcemap --packages=external\" --output dist/lib --minify true --bundle true --format cjs,esm --platform neutral","build:dts":"tsc --emitDeclarationOnly --declaration"},"typings":"./dist/index.d.ts","_npmUser":{"name":"exponentialworkload","email":"cc@aaathats3as.com"},"_resolved":"/tmp/c1d5d6bf950e4089d05924082a2da3b4/3xpo-universalify-2.0.2.tgz","_integrity":"sha512-Gw2T+Pbiek99cPlmWnNpDpF+5IN97zOqH40QPUpZlsOEd3al9dYlBtqvmuiBLfMGOyF1lNE872VcpdUKRIUWlA==","repository":{"url":"https://codeberg.org/Expo/devtools.git","type":"git","directory":"packages/@3xpo/universalify/"},"_npmVersion":"10.2.4","description":"Make a callback- or promise-based function support both promises and callbacks.","directories":{},"_nodeVersion":"21.6.1","_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","tape":"^5.7.4","colortape":"^0.1.2","coveralls":"^3.1.1","@types/tape":"^5.6.4","concurrently":"^8.2.2"},"_npmOperationalInternal":{"tmp":"tmp/universalify_2.0.2_1707096279620_0.09326068155619738","host":"s3://npm-registry-packages"}},"2.0.3":{"name":"@3xpo/universalify","version":"2.0.3","keywords":["callback","native","promise"],"author":{"name":"Expo"},"license":"MIT","_id":"@3xpo/universalify@2.0.3","maintainers":[{"name":"exponentialworkload","email":"cc@aaathats3as.com"}],"contributors":[{"url":"https://codeberg.org/Expo","name":"Expo","email":"expo@expo.moe"}],"homepage":"https://codeberg.org/Expo/devtools/src/branch/senpai/packages/@3xpo/universalify/","bugs":{"url":"https://codeberg.org/Expo/devtools/issues","email":"expo@expo.moe"},"dist":{"shasum":"331246c42060d70476df92648fa695057327e4eb","tarball":"https://registry.npmjs.org/@3xpo/universalify/-/universalify-2.0.3.tgz","fileCount":13,"integrity":"sha512-ytI3FpxSJ9FPpCVanyyPlVGJE+OtUxHndnPxKVXvy0BtTmar3lDd3tMJqJEhBnjhZSRLRilj+U2wXz1npCwJIA==","signatures":[{"sig":"MEYCIQDeqx7zUxgva3hA2387MUJ6Jj9bC0aZ5Wt/9qQk/jxdqAIhANNwJTuiWEo2tl+9Wf9mV5ZbYA0ECLLxIYyF79+ojxEF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17561},"main":"./dist/lib.bundle.min.cjs","type":"module","_from":"file:3xpo-universalify-2.0.3.tgz","types":"./dist/index.d.ts","module":"./dist/lib.bundle.min.mjs","engines":{"node":">= 10.0.0"},"exports":{".":{"node":"./dist/lib.bundle.min.mjs","types":"./dist/index.d.ts","import":"./dist/lib.bundle.min.mjs","default":"./dist/lib.bundle.min.mjs","require":"./dist/lib.bundle.min.cjs"}},"scripts":{"test":"jest","build":"concurrently \"npm:build:*\"","build:js":"es-many --args \"src/index.ts --sourcemap --packages=external\" --output dist/lib --minify true --bundle true --format cjs,esm --platform neutral","build:dts":"tsc --emitDeclarationOnly --declaration"},"typings":"./dist/index.d.ts","_npmUser":{"name":"exponentialworkload","email":"cc@aaathats3as.com"},"_resolved":"/tmp/deb3f44b0514659552bda602b94a6f6c/3xpo-universalify-2.0.3.tgz","_integrity":"sha512-ytI3FpxSJ9FPpCVanyyPlVGJE+OtUxHndnPxKVXvy0BtTmar3lDd3tMJqJEhBnjhZSRLRilj+U2wXz1npCwJIA==","repository":{"url":"https://codeberg.org/Expo/devtools.git","type":"git","directory":"packages/@3xpo/universalify/"},"_npmVersion":"10.2.4","description":"Make a callback- or promise-based function support both promises and callbacks.","directories":{},"_nodeVersion":"21.6.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","concurrently":"^8.2.2"},"_npmOperationalInternal":{"tmp":"tmp/universalify_2.0.3_1707097957717_0.5313240955869074","host":"s3://npm-registry-packages"}},"2.0.4":{"name":"@3xpo/universalify","version":"2.0.4","keywords":["callback","native","promise"],"author":{"name":"Expo"},"license":"MIT","_id":"@3xpo/universalify@2.0.4","maintainers":[{"name":"exponentialworkload","email":"cc@aaathats3as.com"}],"contributors":[{"url":"https://codeberg.org/Expo","name":"Expo","email":"expo@expo.moe"}],"homepage":"https://codeberg.org/Expo/pkgs/src/branch/senpai/packages/@3xpo/universalify/","bugs":{"url":"https://codeberg.org/Expo/pkgs/issues","email":"expo@expo.moe"},"dist":{"shasum":"a1214a852ee1c9e91000f18463204e84dc893f45","tarball":"https://registry.npmjs.org/@3xpo/universalify/-/universalify-2.0.4.tgz","fileCount":13,"integrity":"sha512-Ogz8gf8teOLIHR2jXLAB1aFKLkM5YKQz9oFcyKrvZMiJP7fBCKdagptF4OlcHBSb1pJC0G7RnJZVJaR0hcnCJQ==","signatures":[{"sig":"MEUCIGUC9V0LKimy87Znr3CawbkartZUkGrPdZINfjIjC6KQAiEA+rvACZtqpujw0N2PGlCCjrahUQ1hBIZpSsPHO+PdipU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17549},"main":"./dist/lib.bundle.min.cjs","type":"module","_from":"file:3xpo-universalify-2.0.4.tgz","types":"./dist/index.d.ts","module":"./dist/lib.bundle.min.mjs","engines":{"node":">= 10.0.0"},"exports":{".":{"node":"./dist/lib.bundle.min.mjs","types":"./dist/index.d.ts","import":"./dist/lib.bundle.min.mjs","default":"./dist/lib.bundle.min.mjs","require":"./dist/lib.bundle.min.cjs"}},"scripts":{"test":"jest","build":"concurrently \"npm:build:*\"","build:js":"es-many --args \"src/index.ts --sourcemap --packages=external\" --output dist/lib --minify true --bundle true --format cjs,esm --platform neutral","build:dts":"tsc --emitDeclarationOnly --declaration"},"typings":"./dist/index.d.ts","_npmUser":{"name":"exponentialworkload","email":"cc@aaathats3as.com"},"_resolved":"/tmp/595347f236ea68c0cf1ef9d28e4e130a/3xpo-universalify-2.0.4.tgz","_integrity":"sha512-Ogz8gf8teOLIHR2jXLAB1aFKLkM5YKQz9oFcyKrvZMiJP7fBCKdagptF4OlcHBSb1pJC0G7RnJZVJaR0hcnCJQ==","repository":{"url":"https://codeberg.org/Expo/pkgs.git","type":"git","directory":"packages/@3xpo/universalify/"},"_npmVersion":"10.2.4","description":"Make a callback- or promise-based function support both promises and callbacks.","directories":{},"_nodeVersion":"21.6.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","concurrently":"^8.2.2"},"_npmOperationalInternal":{"tmp":"tmp/universalify_2.0.4_1707114197979_0.43604513321760674","host":"s3://npm-registry-packages"}},"2.0.5":{"name":"@3xpo/universalify","version":"2.0.5","keywords":["callback","native","promise"],"author":{"name":"Expo"},"license":"MIT","_id":"@3xpo/universalify@2.0.5","maintainers":[{"name":"exponentialworkload","email":"cc@aaathats3as.com"}],"contributors":[{"url":"https://codeberg.org/Expo","name":"Expo","email":"expo@expo.moe"}],"homepage":"https://codeberg.org/Expo/pkgs/src/branch/senpai/packages/@3xpo/universalify/","bugs":{"url":"https://codeberg.org/Expo/pkgs/issues","email":"expo@expo.moe"},"dist":{"shasum":"b5d9624e009530a4b183c34a6c96282f0ee2af41","tarball":"https://registry.npmjs.org/@3xpo/universalify/-/universalify-2.0.5.tgz","fileCount":14,"integrity":"sha512-1wn1EG+jUzqcl4jkCIiILLfomuK37wXzS2umBwLx9ndGaA807GPHuIghWphp4gKBBkI6prG0amOAq8GT4d3P0w==","signatures":[{"sig":"MEUCIFOWDmSvdJUMu89JXl/MFyqppcSRYi3SsHfIGmGig9OCAiEA7exjzdehAt8FfANSwv5geDsuGxefk9jHQLTdFCau3Do=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17887},"main":"./dist/lib.bundle.min.cjs","type":"module","_from":"file:3xpo-universalify-2.0.5.tgz","types":"./dist/index.d.ts","module":"./dist/lib.bundle.min.mjs","engines":{"node":">= 10.0.0"},"exports":{".":{"node":"./dist/lib.bundle.min.mjs","types":"./dist/index.d.ts","import":"./dist/lib.bundle.min.mjs","default":"./dist/lib.bundle.min.mjs","require":"./dist/lib.bundle.min.cjs"}},"scripts":{"test":"jest","build":"concurrently \"npm:build:*\"","build:js":"es-many --args \"src/index.ts --sourcemap --packages=external\" --output dist/lib --minify true --bundle true --format cjs,esm --platform neutral","build:dts":"tsc --emitDeclarationOnly --declaration"},"typings":"./dist/index.d.ts","_npmUser":{"name":"exponentialworkload","email":"cc@aaathats3as.com"},"_resolved":"/tmp/fd58c8fca8187bdfe58386128177634e/3xpo-universalify-2.0.5.tgz","_integrity":"sha512-1wn1EG+jUzqcl4jkCIiILLfomuK37wXzS2umBwLx9ndGaA807GPHuIghWphp4gKBBkI6prG0amOAq8GT4d3P0w==","repository":{"url":"https://codeberg.org/Expo/pkgs.git","type":"git","directory":"packages/@3xpo/universalify/"},"_npmVersion":"10.2.4","description":"Make a callback- or promise-based function support both promises and callbacks.","directories":{},"_nodeVersion":"20.11.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","concurrently":"^8.2.2"},"_npmOperationalInternal":{"tmp":"tmp/universalify_2.0.5_1711046109514_0.815805810467765","host":"s3://npm-registry-packages"}},"2.0.6":{"name":"@3xpo/universalify","version":"2.0.6","keywords":["callback","native","promise"],"author":{"name":"Expo"},"license":"MIT","_id":"@3xpo/universalify@2.0.6","maintainers":[{"name":"exponentialworkload","email":"cc@aaathats3as.com"}],"contributors":[{"url":"https://codeberg.org/Expo","name":"Expo","email":"expo@expo.moe"}],"homepage":"https://codeberg.org/Expo/pkgs/src/branch/senpai/packages/@3xpo/universalify/","bugs":{"url":"https://codeberg.org/Expo/pkgs/issues","email":"expo@expo.moe"},"dist":{"shasum":"4662c36221afae83f72f867bd060a6c7bdbfcc28","tarball":"https://registry.npmjs.org/@3xpo/universalify/-/universalify-2.0.6.tgz","fileCount":14,"integrity":"sha512-zZT7w4qmJZrSzAtnnKqTJDyeS+d+aYndq0aq6Omsbuyc7zklFVNdIF2cSfdAnpuidN84zsaPtNEF3r4j2dm2yg==","signatures":[{"sig":"MEQCIBi8EM/3LUqAP22lFa9QZKrVMDIZmIZqcN00J+0w79ssAiB27P0Zh5lzb11FuJbQDe4bKh86TJwt2wndsQQGAEzNOQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17953},"main":"./dist/lib.bundle.min.cjs","type":"module","_from":"file:3xpo-universalify-2.0.6.tgz","types":"./dist/index.d.ts","module":"./dist/lib.bundle.min.mjs","engines":{"node":">= 10.0.0"},"exports":{".":{"node":"./dist/lib.bundle.min.mjs","types":"./dist/index.d.ts","import":"./dist/lib.bundle.min.mjs","default":"./dist/lib.bundle.min.mjs","require":"./dist/lib.bundle.min.cjs"}},"scripts":{"test":"jest","build":"concurrently \"npm:build:*\"","build:js":"es-many --args \"src/index.ts --sourcemap --packages=external\" --output dist/lib --minify true --bundle true --format cjs,esm --platform neutral","build:dts":"tsc --emitDeclarationOnly --declaration"},"typings":"./dist/index.d.ts","_npmUser":{"name":"exponentialworkload","email":"cc@aaathats3as.com"},"_resolved":"/tmp/6a7a4910428b8af2175f45155a4c4bc0/3xpo-universalify-2.0.6.tgz","_integrity":"sha512-zZT7w4qmJZrSzAtnnKqTJDyeS+d+aYndq0aq6Omsbuyc7zklFVNdIF2cSfdAnpuidN84zsaPtNEF3r4j2dm2yg==","repository":{"url":"https://codeberg.org/Expo/pkgs.git","type":"git","directory":"packages/@3xpo/universalify/"},"_npmVersion":"10.2.4","description":"Make a callback- or promise-based function support both promises and callbacks.","directories":{},"_nodeVersion":"20.11.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","concurrently":"^8.2.2"},"_npmOperationalInternal":{"tmp":"tmp/universalify_2.0.6_1711047253600_0.09527584919055765","host":"s3://npm-registry-packages"}},"2.0.7":{"name":"@3xpo/universalify","version":"2.0.7","keywords":["callback","native","promise"],"author":{"name":"Expo"},"license":"MIT","_id":"@3xpo/universalify@2.0.7","maintainers":[{"name":"exponentialworkload","email":"cc@aaathats3as.com"}],"contributors":[{"url":"https://codeberg.org/Expo","name":"Expo","email":"expo@expo.moe"}],"homepage":"https://codeberg.org/Expo/pkgs/src/branch/senpai/packages/@3xpo/universalify/","bugs":{"url":"https://codeberg.org/Expo/pkgs/issues","email":"expo@expo.moe"},"dist":{"shasum":"8db83a0522fb37ad54dc937d3c4312477e7f809f","tarball":"https://registry.npmjs.org/@3xpo/universalify/-/universalify-2.0.7.tgz","fileCount":14,"integrity":"sha512-ZTyLRsxKfGJYS9rnqkWIF6RVbjEKvuza3nmqcj7Op/u/tzmgSHMrkIE4N6UssMua1AVYyVqfAHyUnAC5myc56Q==","signatures":[{"sig":"MEUCIBVBYb7A/C96otTHZF0P9f49hYTBSULcTZpiixg+qcH5AiEAo98uT+uZc7hWEZUuHuW6Bny7moi0XRHmekc+lz7XvhU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18397},"main":"./dist/lib.bundle.min.cjs","type":"module","_from":"file:3xpo-universalify-2.0.7.tgz","types":"./dist/index.d.ts","module":"./dist/lib.bundle.min.mjs","engines":{"node":">= 10.0.0"},"exports":{".":{"node":"./dist/lib.bundle.min.mjs","types":"./dist/index.d.ts","import":"./dist/lib.bundle.min.mjs","default":"./dist/lib.bundle.min.mjs","require":"./dist/lib.bundle.min.cjs"}},"scripts":{"test":"jest","build":"concurrently \"npm:build:*\"","build:js":"es-many --args \"src/index.ts --sourcemap --packages=external\" --output dist/lib --minify true --bundle true --format cjs,esm --platform neutral","build:dts":"tsc --emitDeclarationOnly --declaration"},"typings":"./dist/index.d.ts","_npmUser":{"name":"exponentialworkload","email":"cc@aaathats3as.com"},"_resolved":"/tmp/ae3b7dc46fa9c359e92cc7065f917775/3xpo-universalify-2.0.7.tgz","_integrity":"sha512-ZTyLRsxKfGJYS9rnqkWIF6RVbjEKvuza3nmqcj7Op/u/tzmgSHMrkIE4N6UssMua1AVYyVqfAHyUnAC5myc56Q==","repository":{"url":"https://codeberg.org/Expo/pkgs.git","type":"git","directory":"packages/@3xpo/universalify/"},"_npmVersion":"10.5.1","description":"Make a callback- or promise-based function support both promises and callbacks.","directories":{},"_nodeVersion":"22.0.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","concurrently":"^8.2.2"},"_npmOperationalInternal":{"tmp":"tmp/universalify_2.0.7_1714495333967_0.8732248147486223","host":"s3://npm-registry-packages"}},"2.0.8":{"name":"@3xpo/universalify","version":"2.0.8","description":"Make a callback- or promise-based function support both promises and callbacks.","keywords":["callback","native","promise"],"homepage":"https://codeberg.org/Expo/pkgs/src/branch/senpai/packages/@3xpo/universalify/","bugs":{"url":"https://codeberg.org/Expo/pkgs/issues","email":"expo@expo.moe"},"repository":{"type":"git","url":"https://codeberg.org/Expo/pkgs.git","directory":"packages/@3xpo/universalify/"},"license":"MIT","author":{"name":"Expo"},"contributors":[{"name":"Expo","email":"expo@expo.moe","url":"https://codeberg.org/Expo"}],"type":"module","main":"./dist/lib.bundle.min.cjs","module":"./dist/lib.bundle.min.mjs","types":"./dist/index.d.ts","typings":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/lib.bundle.min.mjs","require":"./dist/lib.bundle.min.cjs","node":"./dist/lib.bundle.min.mjs","default":"./dist/lib.bundle.min.mjs"}},"devDependencies":{"concurrently":"^8.2.2","jest":"^29.7.0","ts-jest":"^29.1.5"},"engines":{"node":">= 10.0.0"},"maintainers":[{"name":"exponentialworkload","email":"cc@aaathats3as.com"}],"scripts":{"build":"concurrently \"npm:build:*\"","build:dts":"tsc --emitDeclarationOnly --declaration","build:js":"es-many --args \"src/index.ts --sourcemap --packages=external\" --output dist/lib --minify true --bundle true --format cjs,esm --platform neutral","test":"jest"},"_id":"@3xpo/universalify@2.0.8","_integrity":"sha512-adhWaU5ZfRARChIHv4nQa3jh/VWnIdYPhajibclzjgpO07Q0OyfGaAuY4+LGx5HUFv0bXUkr9nb7bb8gmqC9gQ==","_resolved":"/tmp/03e58993bd1c459c44131b5f1b332244/3xpo-universalify-2.0.8.tgz","_from":"file:3xpo-universalify-2.0.8.tgz","_nodeVersion":"22.1.0","_npmVersion":"10.8.0","dist":{"integrity":"sha512-adhWaU5ZfRARChIHv4nQa3jh/VWnIdYPhajibclzjgpO07Q0OyfGaAuY4+LGx5HUFv0bXUkr9nb7bb8gmqC9gQ==","shasum":"c5208ad48049242072ae3f3107ec204a08aec0ea","tarball":"https://registry.npmjs.org/@3xpo/universalify/-/universalify-2.0.8.tgz","fileCount":14,"unpackedSize":18451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCetziiVRO5Be7Ah+7NHaGZ/8VVNqmaeieKG+B9MwxykQIhAMdFizCPiZzNE7+s1mt1UZP20OYhqiArGU12pjvNDoCl"}]},"_npmUser":{"name":"exponentialworkload","email":"cc@aaathats3as.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/universalify_2.0.8_1718702296574_0.1529321949723732"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-25T19:53:35.147Z","modified":"2024-06-18T09:18:16.916Z","2.0.1":"2024-01-25T19:53:35.497Z","2.0.2":"2024-02-05T01:24:39.759Z","2.0.3":"2024-02-05T01:52:37.877Z","2.0.4":"2024-02-05T06:23:18.156Z","2.0.5":"2024-03-21T18:35:09.752Z","2.0.6":"2024-03-21T18:54:13.886Z","2.0.7":"2024-04-30T16:42:14.171Z","2.0.8":"2024-06-18T09:18:16.728Z"},"maintainers":[{"name":"exponentialworkload","email":"cc@aaathats3as.com"}],"author":{"name":"Expo"},"repository":{"type":"git","url":"https://codeberg.org/Expo/pkgs.git","directory":"packages/@3xpo/universalify/"},"keywords":["callback","native","promise"],"license":"MIT","homepage":"https://codeberg.org/Expo/pkgs/src/branch/senpai/packages/@3xpo/universalify/","bugs":{"url":"https://codeberg.org/Expo/pkgs/issues","email":"expo@expo.moe"},"readme":"# @3xpo/universalify: Universalify, in TypeScript\n\nMake a callback- or promise-based function support both promises and callbacks.\n\nUses the native promise implementation.\n\n## Installation\n\n```bash\npnpm i @3xpo/universalify\n```\n\n## API\n\n### `universalify.fromCallback(fn)`\n\nTakes a callback-based function to universalify, and returns the universalified function.\n\nFunction must take a callback as the last parameter that will be called with the signature `(error, result)`. `universalify` does not support calling the callback with three or more arguments, and does not ensure that the callback is only called once.\n\n```js\nfunction callbackFn(n, cb) {\n  setTimeout(() => cb(null, n), 15);\n}\n\nconst fn = universalify.fromCallback(callbackFn);\n\n// Works with Promises:\nfn('Hello World!')\n  .then(result => console.log(result)) // -> Hello World!\n  .catch(error => console.error(error));\n\n// Works with Callbacks:\nfn('Hi!', (error, result) => {\n  if (error) return console.error(error);\n  console.log(result);\n  // -> Hi!\n});\n```\n\n### `universalify.fromPromise(fn)`\n\nTakes a promise-based function to universalify, and returns the universalified function.\n\nFunction must return a valid JS promise. `universalify` does not ensure that a valid promise is returned.\n\n```js\nfunction promiseFn(n) {\n  return new Promise(resolve => {\n    setTimeout(() => resolve(n), 15);\n  });\n}\n\nconst fn = universalify.fromPromise(promiseFn);\n\n// Works with Promises:\nfn('Hello World!')\n  .then(result => console.log(result)) // -> Hello World!\n  .catch(error => console.error(error));\n\n// Works with Callbacks:\nfn('Hi!', (error, result) => {\n  if (error) return console.error(error);\n  console.log(result);\n  // -> Hi!\n});\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md","contributors":[{"name":"Expo","email":"expo@expo.moe","url":"https://codeberg.org/Expo"}]}