{"_id":"value-or-promise","_rev":"14-838b7738de422b542e1654e69b4052d5","name":"value-or-promise","dist-tags":{"latest":"1.0.12"},"versions":{"1.0.0":{"name":"value-or-promise","version":"1.0.0","description":"A thenable to streamline a possibly sync / possibly async workflow.","main":"build/main/index.js","typings":"build/main/index.d.ts","module":"build/module/index.js","repository":{"type":"git","url":"git+https://github.com/yaacovCR/value-or-promise.git"},"license":"MIT","keywords":[],"scripts":{"build":"run-p build:*","build:main":"tsc -p tsconfig.json","build:module":"tsc -p tsconfig.module.json","fix":"run-s fix:*","fix:prettier":"prettier \"src/**/*.ts\" --write","fix:lint":"eslint src --ext .ts --fix","test":"run-s build test:*","test:lint":"eslint src --ext .ts","test:prettier":"prettier \"src/**/*.ts\" --list-different","test:mocha":"mocha --require ts-node/register \"src/**/*.spec.ts\"","watch:build":"tsc -p tsconfig.json -w","watch:test":"mocha --require ts-node/register --watch --watch-extensions ts --watch-files src \"src/**/*.spec.ts\" "},"engines":{"node":">=12"},"devDependencies":{"@types/mocha":"^8.2.2","@types/node":"^14.14.41","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","eslint":"^7.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-functional":"^3.0.2","eslint-plugin-import":"^2.22.0","expect":"^26.6.2","mocha":"^8.3.2","npm-run-all":"^4.1.5","prettier":"^2.1.1","ts-node":"^9.1.1","typescript":"^4.0.2"},"prettier":{"singleQuote":true},"dependencies":{"@changesets/cli":"^2.16.0"},"gitHead":"f81522ab28e18022c9c56a5a3330055817f1e81b","bugs":{"url":"https://github.com/yaacovCR/value-or-promise/issues"},"homepage":"https://github.com/yaacovCR/value-or-promise#readme","_id":"value-or-promise@1.0.0","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-txg1XRiiDUMtcCwihOEvMk5GA64w8laIE3j0IYFJ7Dd2IPvGNCiZ0etsdGhLQegftHmooluU2kxP0nNr/X5o+w==","shasum":"31e8e7c3575014538577e326d81b877a5dd7e9eb","tarball":"https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.0.tgz","fileCount":15,"unpackedSize":22675,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJghxo2CRA9TVsSAnZWagAAz4kQAIh4lejqXqV2FwZRWVcO\nHpcd7yLNpLKKhFGoGIZ4FwE0QfMWfuAFMix+qoMDJf0FcAXZv4YqFVAuwsk6\n4kGqK+pa2Y/L+UDDIsHmX+Ulg0w9tLdvZl4DbR2T9HzR727lsJyaxSm+WPJu\nCHvruRMrdnOGcuRYdx4RGWN/4RcGy5GG96Q4GX0V9sZGbZo7lYQT7XMltsus\nH4sAoXoZZk9YbW3OxL9OcATNQOYkkzwDpgXyuswJb+kQ2o0ShZXinRfXozlp\nAIMhOckRIH0d5OxsmzfngWgvyrFVv5KAqPSF71BWfG88RRNniPRxkwlwRgc7\nlM3ZhC2QQEeirwd1m3bOGPp1ASdWvPlKwAXFtMSApFdvR7PxRC42gwDDLvaO\n0/QLvgmQrsJX+YB5rmQM9ZB449BrBMVhc3VIiSEDHEsVjcTc5tIbv/WuzwEn\nO9RWbkcI4vzDRX0Lv2fnJ0X8wPapk2DxapzGyB4VhUYF3dkvgkMs/tuIMkje\ndeixO0d9UHt79V/PqA8ESGBaZzL0ofDSyfndz5SsrY1jNS6lBERVGRWNgFgC\niy+YQkgNchYtUwVp4UVUIOBH2vV1AZYzBUdg1JnguykZ15rUR9oMRUFBGDIB\nGlROgWlog8/hD0G2XAP30QiAH/ysFFYMVkRUtjnZqu5fU9DWlUrYdg5Lz48v\nvS9H\r\n=/FHD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGxakgmWMzwN61lzkUr68ynLo6VvJZgnx9PNbR32PfK0AiEA5GcPS1gsJLvCLa+e8bWkrKX0XOy7AKKmNW7xkj7giyg="}]},"_npmUser":{"name":"yaacovcr","email":"yaacovcr@gmail.com"},"directories":{},"maintainers":[{"name":"yaacovcr","email":"yaacovcr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/value-or-promise_1.0.0_1619466806029_0.48581485148120374"},"_hasShrinkwrap":false},"1.0.1":{"name":"value-or-promise","version":"1.0.1","description":"A thenable to streamline a possibly sync / possibly async workflow.","main":"build/main/index.js","typings":"build/main/index.d.ts","module":"build/module/index.js","repository":{"type":"git","url":"git+https://github.com/yaacovCR/value-or-promise.git"},"license":"MIT","keywords":[],"scripts":{"build":"run-p build:*","build:main":"tsc -p tsconfig.json","build:module":"tsc -p tsconfig.module.json","fix":"run-s fix:*","fix:prettier":"prettier \"src/**/*.ts\" --write","fix:lint":"eslint src --ext .ts --fix","test":"run-s build test:*","test:lint":"eslint src --ext .ts","test:prettier":"prettier \"src/**/*.ts\" --list-different","test:mocha":"mocha --require ts-node/register \"src/**/*.spec.ts\"","watch:build":"tsc -p tsconfig.json -w","watch:test":"mocha --require ts-node/register --watch --watch-extensions ts --watch-files src \"src/**/*.spec.ts\" "},"engines":{"node":">=12"},"devDependencies":{"@types/mocha":"^8.2.2","@types/node":"^14.14.41","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","eslint":"^7.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-functional":"^3.0.2","eslint-plugin-import":"^2.22.0","expect":"^26.6.2","mocha":"^8.3.2","npm-run-all":"^4.1.5","prettier":"^2.1.1","ts-node":"^9.1.1","typescript":"^4.0.2"},"prettier":{"singleQuote":true},"dependencies":{"@changesets/cli":"^2.16.0"},"gitHead":"d1a87c2b6f69887ba30fe4e2f516e152b43d5e2c","bugs":{"url":"https://github.com/yaacovCR/value-or-promise/issues"},"homepage":"https://github.com/yaacovCR/value-or-promise#readme","_id":"value-or-promise@1.0.1","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-luIWMQACiZgNXrrCVX0B1Lm5bTT+osgLG/uiBMVvxYa52oqHGoF9YGpW+azBThx84N6bAm5MyaodRvsWaYmVbQ==","shasum":"7021919262c7a13605da701bcbd3c9ae8219bf68","tarball":"https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.1.tgz","fileCount":16,"unpackedSize":21074,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJghx9UCRA9TVsSAnZWagAAx3IQAJPr1+1Ms28t3c7q/972\nDahb7vt/vdnajOSZE2Y+gCS3Otd4GIDAnjgAnzO7yHsionx9HqKGxHezKmei\n8UNDRd4QMYATDO/fTRJoEFocxPrYuTvQtRPDLtMxpJedbHLIaCMQvYhbwdAw\nMuN4c3qmN5unCpdNekBTuUoupvLtYJpMwO02XWjf6K5C289VR+r73Wp/2el6\n0ao0mPm+9zXMG4nn5eGMTLix+V2/vGuTS7vxRRBqKdMXpqtkPwSEqa2/NRvd\nLoRoEPzTGbNO/1zI6LM9g+gN7CwG2qFLRWWN2FgfGjMZFhV935j1tEERbkCY\n6B3YsjpKnLDAnKdK8laTW/zHCoM+lSmTVdOReKS8YmJOsihnHNgnwR7eM9qz\nD4JRy2hajuw8S0W5ES6or6KE3pMgf/PdyGbhhvCGgN4yf1fCVfdKCbxIVK2W\nLdLEJTHvrTtvn/ah32bQShvaaGIYFPG7PGX3JttBZcjfySFWR/yIB/aIn9eo\nxKBvTF9+1kjpgh0sfFYANGslxeo19H/+EsJz1pebq9H1bJsjibBAkpg1eC/B\nSQZCuhkB9+MqnnV+bhnSHw9g2CtmYYZPn/eTd45JmgTBjKcTyVL13BhrZW02\ncNA3wEwYCiUlfgIxX00txxzMgCDMTGAUkaMcn3AKQ4/yvPHWYaMleimxSDYG\nhgU6\r\n=hAow\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+nHFu/ij43mIeZK0vUILI4/apfGY5CrNY/Y62GLIC2gIhAJz8GPOPC5OrOIRuf3i8Yq36svcRpxtG8bt7ZwYwvXwm"}]},"_npmUser":{"name":"yaacovcr","email":"yaacovcr@gmail.com"},"directories":{},"maintainers":[{"name":"yaacovcr","email":"yaacovcr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/value-or-promise_1.0.1_1619468116110_0.5773088236608281"},"_hasShrinkwrap":false},"1.0.2":{"name":"value-or-promise","version":"1.0.2","description":"A thenable to streamline a possibly sync / possibly async workflow.","main":"build/main/index.js","typings":"build/main/index.d.ts","module":"build/module/index.js","repository":{"type":"git","url":"git+https://github.com/yaacovCR/value-or-promise.git"},"license":"MIT","keywords":[],"scripts":{"build":"run-p build:*","build:main":"tsc -p tsconfig.json","build:module":"tsc -p tsconfig.module.json","fix":"run-s fix:*","fix:prettier":"prettier \"src/**/*.ts\" --write","fix:lint":"eslint src --ext .ts --fix","test":"run-s build test:*","test:lint":"eslint src --ext .ts","test:prettier":"prettier \"src/**/*.ts\" --list-different","test:mocha":"mocha --require ts-node/register \"src/**/*.spec.ts\"","watch:build":"tsc -p tsconfig.json -w","watch:test":"mocha --require ts-node/register --watch --watch-extensions ts --watch-files src \"src/**/*.spec.ts\" "},"engines":{"node":">=12"},"devDependencies":{"@types/mocha":"^8.2.2","@types/node":"^14.14.41","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","eslint":"^7.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-functional":"^3.0.2","eslint-plugin-import":"^2.22.0","expect":"^26.6.2","mocha":"^8.3.2","npm-run-all":"^4.1.5","prettier":"^2.1.1","ts-node":"^9.1.1","typescript":"^4.0.2"},"prettier":{"singleQuote":true},"dependencies":{"@changesets/cli":"^2.16.0"},"gitHead":"e712ab8466e1ec15fb502aff81c25641849185fd","bugs":{"url":"https://github.com/yaacovCR/value-or-promise/issues"},"homepage":"https://github.com/yaacovCR/value-or-promise#readme","_id":"value-or-promise@1.0.2","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-yevvHWG0BAwoUNgbVh3NP1f+UrcSxMtJzyjNyO3Yi/IDzw5fmGmYqpsa02/1x6s33ggziBDAdyLR4gV52GWvNw==","shasum":"aaa1b711de77a7c3f0395fb58809aaad72f28c26","tarball":"https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.2.tgz","fileCount":16,"unpackedSize":30165,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgiFxlCRA9TVsSAnZWagAA06MP/3mo5aNCbuhRuefY4iF3\n+Mwe5beR4NvvmRGa/JWfCS9woHfHG4ZzgL2gRjQbleu03pNwbmjVEEB0fqvu\n22yI25QfNg4FoTrPBk7opJRG+6u6NgkeYferQGFOfywVKr/Fs0+8M3QgtyP6\n8WHjeNMNKYTok9Xsjfz3zlpCVmLzYkTlee/jE0QIQWCpjnwBWZSIkyeNxpKJ\ndlsuk0mz4tjE4ZRyg5uwokDlioP6+V8D5n6mOyMoE43yEfVqgr2eu4hYT74o\n9r6pfTdThShZylQBZuzdeZWd8DIPPoy05SBXVxCwuknRTXS5kf419x/YYlAF\nQDozUN2BM6bbVltfVOq/QkFm7Um5qJOXtlyg/vKaClwjkKncLdcsRDq0KxT4\nD+qNUR+XJbvM93UFOjBhMiJ5qoGDKlfPtPo4ZuUO/MTQxQl+isvsZs6k2R48\npKjKAVGsSVwKF4y0yr3bRFSbT8EfwilQpFr7HMNqDb6BSTxsu2QG3s4nKfPJ\njYuRgZEt6VH94kyR/b2XLenktmM5MJKMJjM6nYm3QX5w14sBTbUa7FLZPNMH\nWk8KeFVxZgMl7CTgLIevzdOXcc/V9/MVoBC03iECmMPaVkYoE9VezxoPtxYK\nPU9Yu1xx+etWNBbSu9HwZV1TcnBdXA62ROgj9cry5D/WFY/kvm73ZJqY2Z0x\nM4QR\r\n=YOSA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH9VowWKsP7YwfeDm6nlWZ00Zv/CcHlq9vWQb0B7X3zUAiBAvNLzBrarpPobvQ+gbjxNUVAPnPxTxDG9/top7bHK2w=="}]},"_npmUser":{"name":"yaacovcr","email":"yaacovcr@gmail.com"},"directories":{},"maintainers":[{"name":"yaacovcr","email":"yaacovcr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/value-or-promise_1.0.2_1619549285079_0.9268276122018941"},"_hasShrinkwrap":false},"1.0.3":{"name":"value-or-promise","version":"1.0.3","description":"A thenable to streamline a possibly sync / possibly async workflow.","main":"build/main/index.js","typings":"build/main/index.d.ts","module":"build/module/index.js","repository":{"type":"git","url":"git+https://github.com/yaacovCR/value-or-promise.git"},"license":"MIT","keywords":[],"scripts":{"build":"run-p build:*","build:main":"tsc -p tsconfig.json","build:module":"tsc -p tsconfig.module.json","fix":"run-s fix:*","fix:prettier":"prettier \"src/**/*.ts\" --write","fix:lint":"eslint src --ext .ts --fix","test":"run-s build test:*","test:lint":"eslint src --ext .ts","test:prettier":"prettier \"src/**/*.ts\" --list-different","test:mocha":"mocha --require ts-node/register \"src/**/*.spec.ts\"","watch:build":"tsc -p tsconfig.json -w","watch:test":"mocha --require ts-node/register --watch --watch-extensions ts --watch-files src \"src/**/*.spec.ts\" "},"engines":{"node":">=12"},"devDependencies":{"@types/mocha":"^8.2.2","@types/node":"^14.14.41","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","eslint":"^7.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-functional":"^3.0.2","eslint-plugin-import":"^2.22.0","expect":"^26.6.2","mocha":"^8.3.2","npm-run-all":"^4.1.5","prettier":"^2.1.1","ts-node":"^9.1.1","typescript":"^4.0.2"},"prettier":{"singleQuote":true},"dependencies":{"@changesets/cli":"^2.16.0"},"gitHead":"2f7b2b9e246de3e9a3cff7433a27e058d9d850c0","bugs":{"url":"https://github.com/yaacovCR/value-or-promise/issues"},"homepage":"https://github.com/yaacovCR/value-or-promise#readme","_id":"value-or-promise@1.0.3","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-750+HLAj7y6QVXR/43kjVol9XR8ejjppiXGpw17TcnKor+f27tJ9fgMk2Zi8bTbSPp+goXVH91X2PEKo885SAQ==","shasum":"6e2c0b8bec5a0277f344264c5c777b303c09d27d","tarball":"https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.3.tgz","fileCount":12,"unpackedSize":17531,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgiGbBCRA9TVsSAnZWagAA1HQP/0x5hCKEloVfMWCdTG/a\n4DkUCbzCUkmSYf6qfxWztUUbFT0fewGder+gD+gxtJpasXwcBhu3Bvav/Mih\nTuWQyoTlxPb63rnIWHNNlKDdHDHK6pgzdkvOq4cLtiiz4P8+ZjUEyVNEe3SK\nwdfMdXw+xVq8cNdK5VWndrkitWpCEkJHPLz7y+x4d0SrbsnWOzltxp2SbE2d\nezQxqIXZAdJQ8HWb9GG20AgR6WtpHp61pwRb2ivBtwON4TVr8s2A6V1kxdE1\nHrU0fa+O2tf1kfZxBTalnL7jEKGQ60mN1cP0Fvw62TCedaMKA+Kj2JLjXLbe\nKpoKunENgyS0siWDWjsln3l5W41zRe8q68yL82vn3EqxCTByjlxNh4B/vrtn\n5nbKYSFDvM9g9ZKpnoLkkaoYmmkV8nqKYQpar2E3tlz86yhTxyyLSYiN/u+8\n7S7wHatsQYCMNVLo2ehsSdVfMgEZnoWg4jQgPqcmRxTww2F0fLL5YUB5XKty\nBZTwoPi6T/5MUJ59nK7iorCAHgxNwwdJwzlp+wIueC2EUWUB2KhciAKLYjF0\n/37Y0HEScTGhT882GaOmEpyCx4/aj59Ek9eHK1nk6L9FIKGp0jtMZGvqicQw\nm063xbOxrqffNKUGybHjNYQ7OF8h0hEzCkziFVg32bJF1scbk2f6rSw74CYh\n+fRp\r\n=C1i2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB8V3dRu7N+XLDrazYEj3afff9PkofiPq3fh3mSYwa9eAiAQ80CHBIykOpp7wVLOhsrMiT2U/+Ig0l9Uwb2ZBiv74g=="}]},"_npmUser":{"name":"yaacovcr","email":"yaacovcr@gmail.com"},"directories":{},"maintainers":[{"name":"yaacovcr","email":"yaacovcr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/value-or-promise_1.0.3_1619551936798_0.8766021161555142"},"_hasShrinkwrap":false},"1.0.4":{"name":"value-or-promise","version":"1.0.4","description":"A thenable to streamline a possibly sync / possibly async workflow.","main":"build/main/index.js","typings":"build/main/index.d.ts","module":"build/module/index.js","repository":{"type":"git","url":"git+https://github.com/yaacovCR/value-or-promise.git"},"license":"MIT","keywords":[],"scripts":{"build":"run-p build:*","build:main":"tsc -p tsconfig.json","build:module":"tsc -p tsconfig.module.json","fix":"run-s fix:*","fix:prettier":"prettier \"src/**/*.ts\" --write","fix:lint":"eslint src --ext .ts --fix","test":"run-s build test:*","test:lint":"eslint src --ext .ts","test:prettier":"prettier \"src/**/*.ts\" --list-different","test:mocha":"mocha --require ts-node/register \"src/**/*.spec.ts\"","watch:build":"tsc -p tsconfig.json -w","watch:test":"mocha --require ts-node/register --watch --watch-extensions ts --watch-files src \"src/**/*.spec.ts\" "},"engines":{"node":">=12"},"devDependencies":{"@types/mocha":"^8.2.2","@types/node":"^14.14.41","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","eslint":"^7.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-functional":"^3.0.2","eslint-plugin-import":"^2.22.0","expect":"^26.6.2","mocha":"^8.3.2","npm-run-all":"^4.1.5","prettier":"^2.1.1","ts-node":"^9.1.1","typescript":"^4.0.2"},"prettier":{"singleQuote":true},"dependencies":{"@changesets/cli":"^2.16.0"},"gitHead":"4492f73ff326eed995b3d26fdfecb66541dcda5c","bugs":{"url":"https://github.com/yaacovCR/value-or-promise/issues"},"homepage":"https://github.com/yaacovCR/value-or-promise#readme","_id":"value-or-promise@1.0.4","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-NfAl6HvQT517ArxEPL02z8UEr3d7q+CvMQHfibZy/gFV/1cSika/bRuResXj9vG60HCeS6/KjE/MZd6NPyDS1w==","shasum":"283e592f3c6154c9f3764e35b5c3e276f9f43db9","tarball":"https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.4.tgz","fileCount":12,"unpackedSize":17596,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgiGkpCRA9TVsSAnZWagAArb8P/A8UCo4pU62l+UchGm2N\njQToOml8txZblCO1hWED5zCKP4/oas2iP4d8TlrDZbyKEu0ZjPxE3+qNxsM/\nEUhDRJ/sBaXLlj3Y8BE0/1u8Emf//diLp7D7Ki2sUu2qSRYUd8Adr0uPGW0+\nt2EoKOIr3HMGDL+/XDRCdH7wWW/+lH50bJgTfxIPVZ1P1AQ5oM21D30orBRk\n/7onhtact1BCcPOiBC5DkXbqOF3BI7X4edSIotet3wdnyprusE07WvHWSawD\nsT+ISTAFBag+1KtpE25oYAOyYtf4eMcKixEAkLRWAR6Z4Rbm8VCVIT1hYkuc\n7oyXbsWscMq+f/qzvg3OCgM7PNMgsonIfe8pAydHWsNOezIf1DU515FcUEnI\nTWFmLyRopkHOm/oEKC+tZH0Ag9A2FZo0mk2siDcTvTcbGI7fmg8SRVMZa6C+\nlaAXyCcLvTLzZaLy5wMA/n5GHWBMzK4tfAh33sMM9zj8QRAvuqAxHbUIY+dH\n9M71NLww8AOTVZznc8e2ffgCgdZVpSPu/UMYZrQmCvfHSGKxAaAbvOVbyKkd\nE7QLNGA0Rz494WcmhVRzuqNjvDsZIvEe9X+2/jrDV2bzBasXr/VlNpPcSrpm\nHFc087L969buqsXESod2qlFVrPttRwzhHl5NHN+NoCXSgnUu1kwjUY4sBo5m\nzdIc\r\n=L58X\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIACMjE9vZetjXndWFIVkSoQkTNUuXPnU8JtjL/pPc12NAiEA4v1AXoO7TwxLRk4yZiLo8DGgSHkzihCmjR9nrxNNshI="}]},"_npmUser":{"name":"yaacovcr","email":"yaacovcr@gmail.com"},"directories":{},"maintainers":[{"name":"yaacovcr","email":"yaacovcr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/value-or-promise_1.0.4_1619552552686_0.12592394653772687"},"_hasShrinkwrap":false},"1.0.5":{"name":"value-or-promise","version":"1.0.5","description":"A thenable to streamline a possibly sync / possibly async workflow.","main":"build/main/index.js","typings":"build/main/index.d.ts","module":"build/module/index.js","repository":{"type":"git","url":"git+https://github.com/yaacovCR/value-or-promise.git"},"license":"MIT","keywords":[],"scripts":{"build":"run-p build:*","build:main":"tsc -p tsconfig.json","build:module":"tsc -p tsconfig.module.json","fix":"run-s fix:*","fix:prettier":"prettier \"src/**/*.ts\" --write","fix:lint":"eslint src --ext .ts --fix","test":"run-s build test:*","test:lint":"eslint src --ext .ts","test:prettier":"prettier \"src/**/*.ts\" --list-different","test:mocha":"mocha --require ts-node/register \"src/**/*.spec.ts\"","watch:build":"tsc -p tsconfig.json -w","watch:test":"mocha --require ts-node/register --watch --watch-extensions ts --watch-files src \"src/**/*.spec.ts\" "},"engines":{"node":">=12"},"devDependencies":{"@types/mocha":"^8.2.2","@types/node":"^14.14.41","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","eslint":"^7.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-functional":"^3.0.2","eslint-plugin-import":"^2.22.0","expect":"^26.6.2","mocha":"^8.3.2","npm-run-all":"^4.1.5","prettier":"^2.1.1","ts-node":"^9.1.1","typescript":"^4.0.2"},"prettier":{"singleQuote":true},"dependencies":{"@changesets/cli":"^2.16.0"},"gitHead":"6d51f9240dcc529612656d80cf3ca0d8274091b7","bugs":{"url":"https://github.com/yaacovCR/value-or-promise/issues"},"homepage":"https://github.com/yaacovCR/value-or-promise#readme","_id":"value-or-promise@1.0.5","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-9ZmqlFSp5ihOF8jh8zykx3wGJG83jz1jiXmSxm0onPIlt9Vak4FTyHrvTVaL5Ykj3UpSPvbCbnuYxnzUQyLBHA==","shasum":"6c9c5496288df3be9c71c60def01262e95d30adf","tarball":"https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.5.tgz","fileCount":12,"unpackedSize":18333,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgiGyWCRA9TVsSAnZWagAAShEP/jKW2kQdes3NFB3ntIIZ\nWalNd5ewe11LwNVI7YoC98fSzWJfWP7VTxrGL+wuMaBDTeA/t3iMh+bj90pW\nndDUIsOGqlhgaKnVfubDVuWs5VfpKv8m22Zscith9NES5M+3KmJQfXksxHh0\nhjNinfJLelWU8mc8CTVRMrK8XQIkRZQgwxU/VJeF2mB5A1XmUZMzT+cnhG9r\nAmlNr9uV8dMcs7+EAP4V11FaS1vj0HCPdeetjMAuK0Sura80PvzrBBysrOQm\nwssEUdN6BBiqVJ2ktDUx17oXm3A2aoUIXMauTluzWg3rOTGnuk8zKfwIrt9K\nomURBMVHPNQOTFyHbeIi9BH9LGqAt2DUG8da9OSxP6CYvaZFwsD5/nEN8wai\nCmxZtcsKLDusjnJZs7Pj/twIM24a3ty4s1ai8bxYnnUWH/FH2BKEzKJa7IHi\noL4ffMp9xBInaRn1Z7UzFKampDMvJrVbrhg5KqqJ0mTY4atmYhWCKXPHVyeL\nEj8owx7jhHLrqX2wo/DIiKiJH3KP+DgcWEuucaBBZXSgmepfNlPYM10ttlU/\n8DIluqrcfwKNqo08D449ZAMutIfkFlwiElg6uCPoq6fFHX58zqrPbQ/R0zxF\nrthJ/msEntgQzyiPxdINrdH2Np3x3pru1Rzy2HDQgpTDv2FBQleSefrRJiHe\n8fdO\r\n=uyJm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBWzkIKGKu9ugCXZJ4HIYEt+IQdGEvrOnXPYXLkh9Av0AiEArIYelPi8uSXsF2+6oTDDDi7cUaeBRK1XU3MnGoBRYd4="}]},"_npmUser":{"name":"yaacovcr","email":"yaacovcr@gmail.com"},"directories":{},"maintainers":[{"name":"yaacovcr","email":"yaacovcr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/value-or-promise_1.0.5_1619553430023_0.5686207629298679"},"_hasShrinkwrap":false},"1.0.6":{"name":"value-or-promise","version":"1.0.6","description":"A thenable to streamline a possibly sync / possibly async workflow.","main":"build/main/index.js","typings":"build/main/index.d.ts","module":"build/module/index.js","repository":{"type":"git","url":"git+https://github.com/yaacovCR/value-or-promise.git"},"license":"MIT","keywords":[],"scripts":{"build":"run-p build:*","build:main":"tsc -p tsconfig.json","build:module":"tsc -p tsconfig.module.json","fix":"run-s fix:*","fix:prettier":"prettier \"src/**/*.ts\" --write","fix:lint":"eslint src --ext .ts --fix","test":"run-s build test:*","test:lint":"eslint src --ext .ts","test:prettier":"prettier \"src/**/*.ts\" --list-different","test:mocha":"mocha --require ts-node/register \"src/**/*.spec.ts\"","watch:build":"tsc -p tsconfig.json -w","watch:test":"mocha --require ts-node/register --watch --watch-extensions ts --watch-files src \"src/**/*.spec.ts\" "},"engines":{"node":">=12"},"devDependencies":{"@changesets/cli":"^2.16.0","@types/mocha":"^8.2.2","@types/node":"^15.0.1","@typescript-eslint/eslint-plugin":"^4.22.0","@typescript-eslint/parser":"^4.22.0","eslint":"^7.25.0","eslint-config-prettier":"^8.3.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-functional":"^3.2.1","eslint-plugin-import":"^2.22.1","expect":"^26.6.2","mocha":"^8.3.2","npm-run-all":"^4.1.5","prettier":"^2.2.1","ts-node":"^9.1.1","typescript":"^4.2.4"},"prettier":{"singleQuote":true},"gitHead":"a246304d0150bf2ab10da07a59c911c02cc7a223","bugs":{"url":"https://github.com/yaacovCR/value-or-promise/issues"},"homepage":"https://github.com/yaacovCR/value-or-promise#readme","_id":"value-or-promise@1.0.6","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-9r0wQsWD8z/BxPOvnwbPf05ZvFngXyouE9EKB+5GbYix+BYnAwrIChCUyFIinfbf2FL/U71z+CPpbnmTdxrwBg==","shasum":"218aa4794aa2ee24dcf48a29aba4413ed584747f","tarball":"https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.6.tgz","fileCount":12,"unpackedSize":18399,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgjAX8CRA9TVsSAnZWagAApJ8P/R8Yyzbip3yalYoiIC48\ncGzFVZLhSOdhbkcGSwBcSWC3n9OVwCpsldlZR/9hIwXJDeht5KPJjprNx73W\nVsVxYA1+MiY0UoikxxdRJFuPN2xg3Kp6geF37kOKs5tZSQYFCXE+fVv+yOAM\nRoeoAFY6F/e3i7vDUXtbIck9vNpQuzfGhDHHhf/n7IoMvb5bhKLYCD1+q6rv\nLl9OWSHZJ0uf6NDKlnvLmJ4nlNYCEE6pT0xjTN5IHCbZwJuilubrOAn4mFdz\nLxBFKxtzylTw/NSbTdQF7kR2FCy10qcP84y6ZnE9oU2Kx6mtf/ylkNt+r9JT\nKN94J8w64lrzU47i7nwzzbj9BaDU0y+SWmisrkVlj8rmXa71TAUGae7LsSdQ\nVND4arSfSVmtKyVscU0XvsZYc340lAcinjEZ9eaft1VjjZMxpFytQ9Es3yzs\nqjsH3PTaH6YalO4HcDjt3kDf5Mjx+O9OPJQTdpDkYWGhXQ2wv/yQIr19EJEM\nNMr679HyrmSODVlRrWBJzTybvBnxXRcJkgJdiHcGOvkwuUuULkcNkKjL47dP\nvOhCJwjpTvXHOeo1d8dXgwDx4zuAJdLPySaOJH3vOazL1u5NPnc6fRySeTiW\n/53K5n+Yi8xDfR00qqcs4EbiUXUR7POp4N0U1Xx0GfDyOGh9zWHt/naI7rJZ\njs1V\r\n=4cWP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC476m3niUu0GYugIvOC93wm2eLGj3KKjJTM0PTZ7JepAiEA4TSDWX+h4koT7wLRGJ+j3AAbnvAV1LpogZrki1g8p20="}]},"_npmUser":{"name":"yaacovcr","email":"yaacovcr@gmail.com"},"directories":{},"maintainers":[{"name":"yaacovcr","email":"yaacovcr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/value-or-promise_1.0.6_1619789308507_0.9909353907814042"},"_hasShrinkwrap":false},"1.0.7":{"name":"value-or-promise","version":"1.0.7","description":"A thenable to streamline a possibly sync / possibly async workflow.","main":"build/main/index.js","typings":"build/main/index.d.ts","module":"build/module/index.js","repository":{"type":"git","url":"git+https://github.com/yaacovCR/value-or-promise.git"},"license":"MIT","keywords":[],"scripts":{"build":"run-p build:*","build:main":"tsc -p tsconfig.json","build:module":"tsc -p tsconfig.module.json","fix":"run-s fix:*","fix:prettier":"prettier \"src/**/*.ts\" --write","fix:lint":"eslint src --ext .ts --fix","test":"run-s build test:*","test:lint":"eslint src --ext .ts","test:prettier":"prettier \"src/**/*.ts\" --list-different","test:mocha":"mocha --require ts-node/register \"src/**/*.spec.ts\"","watch:build":"tsc -p tsconfig.json -w","watch:test":"mocha --require ts-node/register --watch --watch-extensions ts --watch-files src \"src/**/*.spec.ts\" "},"engines":{"node":">=12"},"devDependencies":{"@changesets/cli":"^2.16.0","@types/mocha":"^8.2.2","@types/node":"^15.0.1","@typescript-eslint/eslint-plugin":"^4.22.0","@typescript-eslint/parser":"^4.22.0","eslint":"^7.25.0","eslint-config-prettier":"^8.3.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-functional":"^3.2.1","eslint-plugin-import":"^2.22.1","expect":"^26.6.2","mocha":"^8.3.2","npm-run-all":"^4.1.5","prettier":"^2.2.1","ts-node":"^9.1.1","typescript":"^4.2.4"},"prettier":{"singleQuote":true},"gitHead":"de3fcd090f74f4a3483e687b6dd113f83d89e7c6","bugs":{"url":"https://github.com/yaacovCR/value-or-promise/issues"},"homepage":"https://github.com/yaacovCR/value-or-promise#readme","_id":"value-or-promise@1.0.7","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-khaOVsnop49ufBQHJOO5PAFWGZAaeXIR/e06uAXnXHzMqQNYT0ZnaeKqnqtVZ+ToTyOTuUldaVCE0ZiGZO5GnQ==","shasum":"b7de9561d77c290da71c4b3692afeff7a5fe8a22","tarball":"https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.7.tgz","fileCount":12,"unpackedSize":23323,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgka9dCRA9TVsSAnZWagAA4RUP+wauB0BvypWhyXf9yEVW\nlLV+QF7wXNLkS9ycx7ku2Nz/c8cfOuh/857cE6d9dZXtmnBF3PCFA5nAbdoy\nEp5Y+gNM/kL0ksZ2gYLRYmvn+xlsm1p+Etnj8Kw/ixtH8DYIlnX0nsbluc5V\nDGv7geql3KcEaKvKKSQJTF9IhebjFagiFvH+e5DtJLHRIKQSnrg/lPdi1WDz\nCsDg+f6LiS6K7MFd3K6L8RDMvt+YDNA1hShwGqly1ajG33xoJe3FgX7XSP75\nlxkb158gfYRN7grhRLKFVCCl9onaRPJIlTnAJwmwwAejYhcqYevI1pFumxsb\nwCD9sSMypQMu+MUOlHlGOgbdhu+0dB8VJ+rhFLbp0s/R6mVrC4lODs08gDOC\n5cAUTNIMJoNkqDakMLtf6ZxhUMAsOQkCtDzDsOS/MJcIpj/wFTK3jOOyfHdr\noZ3djUMs0NHgVlzd2ILBCIfYeD1QqG4bsPoRmnoH0Cw1a0b4blGwojyfJkaX\n009HSzaXYYifpD2VTIIXztIAAci8m2fwVsuKUQaTWvL17nhCopQ2hJ1QL8h7\n0eNYVxt2+2BK2ZfxkOyZQ1WmTzBrtICdnFUouoRZ4I2jdSaFKLHETLjmuFMo\nlhWecxGrRAtuK1HnNOuGS4iktEMmDmF3y82tDeDhkBkeOQeLFGX9t0qDLDgU\nCPSu\r\n=xVZA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGNBH0j/xhAeaKUwXMUB8S1pP07c+krwsPqPDG+HvXTQIgduFs6RBMAreSv9PFCqMgIDnTaO6UGItH/oCL2+P/5AU="}]},"_npmUser":{"name":"yaacovcr","email":"yaacovcr@gmail.com"},"directories":{},"maintainers":[{"name":"yaacovcr","email":"yaacovcr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/value-or-promise_1.0.7_1620160349202_0.7709397574913139"},"_hasShrinkwrap":false},"1.0.8":{"name":"value-or-promise","version":"1.0.8","description":"A thenable to streamline a possibly sync / possibly async workflow.","main":"build/main/index.js","typings":"build/main/index.d.ts","module":"build/module/index.js","repository":{"type":"git","url":"git+https://github.com/yaacovCR/value-or-promise.git"},"license":"MIT","keywords":[],"scripts":{"build":"run-p build:*","build:main":"tsc -p tsconfig.json","build:module":"tsc -p tsconfig.module.json","fix":"run-s fix:*","fix:prettier":"prettier \"src/**/*.ts\" --write","fix:lint":"eslint src --ext .ts --fix","test":"run-s build test:*","test:lint":"eslint src --ext .ts","test:prettier":"prettier \"src/**/*.ts\" --list-different","test:mocha":"mocha --require ts-node/register \"src/**/*.spec.ts\"","watch:build":"tsc -p tsconfig.json -w","watch:test":"mocha --require ts-node/register --watch --watch-extensions ts --watch-files src \"src/**/*.spec.ts\" "},"engines":{"node":">=12"},"devDependencies":{"@changesets/cli":"^2.16.0","@types/mocha":"^8.2.2","@types/node":"^15.0.1","@typescript-eslint/eslint-plugin":"^4.22.0","@typescript-eslint/parser":"^4.22.0","eslint":"^7.25.0","eslint-config-prettier":"^8.3.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-functional":"^3.2.1","eslint-plugin-import":"^2.22.1","expect":"^26.6.2","mocha":"^8.3.2","npm-run-all":"^4.1.5","prettier":"^2.2.1","ts-node":"^9.1.1","typescript":"^4.2.4"},"prettier":{"singleQuote":true},"gitHead":"2b37d262fe0bcb75fa2eddef41aa1a1cf9226882","bugs":{"url":"https://github.com/yaacovCR/value-or-promise/issues"},"homepage":"https://github.com/yaacovCR/value-or-promise#readme","_id":"value-or-promise@1.0.8","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-R6gyEy9R2Mh0taDANmv30MvgRKJz5jMB55seKSerBCudolsH5kOpHYaEiX3OIQ0/C430Z5mZ9A02O32Da0I6KA==","shasum":"7a76b1e081c40436a2c74a33745b5a6f13e5c01d","tarball":"https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.8.tgz","fileCount":12,"unpackedSize":23452,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJglSFuCRA9TVsSAnZWagAAQBEP/jU4ZmVPiAe9zvZ4qghY\nxoXYvDWYBzecF3ekoKwbDENx60vC9U9C0LGkIKCEUJv2fyOlImsOO+PE6Unu\nSeuiF7blWKmqzgrOaZ2gRR5zhNCAH1w3N/qZOjU53+f5OsbacjrFrA4ZKT04\nFoXuvXOi7eqsvsXt0una2U+R6/d3oDGZqnmk80hVOA3egMVu3bbupWFAlTTJ\nVApuMVWSkosAWW0O+GcbJDWkSKzcVxwkmYioXs9Za+PT1YcKRA/WiOH2dNk2\nhjPcV1+1MLbFTBH/pml+j54QVYQzgyXK3JnnMrHjZMgqz6kkq3jTg4RFcRHP\nCyRk35oZ6be8J3Ew+nigfm0vXCRff6/KGOfqtmygd5Q3OrrRxsK9jarZ9alx\n3LZBTMEq6fTJplWDeWa4AphM2DtJwvIo6CY//qjt7tCqAv4sEJfjE0EmEzRQ\nZGZKp+pdCTgvKVDUfgQZA6eyY1BQBHtw0qw4Z8kLBI0aTKhNiSAbOLW0okhS\n3QCbUM8LvrIcHq0erHM8E2F8nFAn5POQuAZ6Jy9WNdnCcAh0CF8LP6YItZ1/\nXP1dX9EQ/l5Bbv6zumCcKdoME5lED+wfM2nS5erVM/e84esoAtVevmGoVSnt\nn9YHcgr8j1+vYNAAUqe6jfwwEvzP/CFC+3dhm/OJqEei9MNon4kNxD74TvSV\ns8xk\r\n=62Dd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEIaGNM4fhsdboeAC/eG1Do6lu56nqoYQuKQZGJ4/pnrAiEA+w987TtzlweWiChFm7etu20o2TPQdEJYDU/StMIasr8="}]},"_npmUser":{"name":"yaacovcr","email":"yaacovcr@gmail.com"},"directories":{},"maintainers":[{"name":"yaacovcr","email":"yaacovcr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/value-or-promise_1.0.8_1620386158463_0.7402547434691829"},"_hasShrinkwrap":false},"1.0.9":{"name":"value-or-promise","version":"1.0.9","description":"A thenable to streamline a possibly sync / possibly async workflow.","main":"build/main/index.js","typings":"build/main/index.d.ts","module":"build/module/index.js","repository":{"type":"git","url":"git+https://github.com/yaacovCR/value-or-promise.git"},"license":"MIT","keywords":[],"scripts":{"build":"run-p build:*","build:main":"tsc -p tsconfig.json","build:module":"tsc -p tsconfig.module.json","fix":"run-s fix:*","fix:prettier":"prettier \"src/**/*.ts\" --write","fix:lint":"eslint src --ext .ts --fix","test":"run-s build test:*","test:lint":"eslint src --ext .ts","test:prettier":"prettier \"src/**/*.ts\" --list-different","test:mocha":"mocha --require ts-node/register \"src/**/*.spec.ts\"","watch:build":"tsc -p tsconfig.json -w","watch:test":"mocha --require ts-node/register --watch --watch-extensions ts --watch-files src \"src/**/*.spec.ts\" "},"engines":{"node":">=12"},"devDependencies":{"@changesets/cli":"^2.16.0","@types/mocha":"^8.2.2","@types/node":"^15.0.1","@typescript-eslint/eslint-plugin":"^4.22.0","@typescript-eslint/parser":"^4.22.0","eslint":"^7.25.0","eslint-config-prettier":"^8.3.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-functional":"^3.2.1","eslint-plugin-import":"^2.22.1","expect":"^26.6.2","mocha":"^8.3.2","npm-run-all":"^4.1.5","prettier":"^2.2.1","ts-node":"^9.1.1","typescript":"^4.2.4"},"prettier":{"singleQuote":true},"gitHead":"d23324f9893b0a3c5ccd82a0122c5b9c9ee51db5","bugs":{"url":"https://github.com/yaacovCR/value-or-promise/issues"},"homepage":"https://github.com/yaacovCR/value-or-promise#readme","_id":"value-or-promise@1.0.9","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-Njosvy02WF2RmjwXBFAuA228XBKlySrZP4MggrsDhyZ9/cDFBqaY1mLgN9tugf5UEPm7FUm0x0PMmvrIhRIG/Q==","shasum":"7531e195eac8d7d1b375ea4650418e9e88592b37","tarball":"https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.9.tgz","fileCount":12,"unpackedSize":27176,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgsQL5CRA9TVsSAnZWagAAzOUP/3w50RY3X99/2535wx+2\nLSqYJoy8BnaeSU+eJb2kJpw3VPUmAXKboGtO0NXrh+fOMsXlpqDWjrg6T+Xk\nJCxuty/oo2QI0X4PNkzZlFz0E+ljPAC5CHdCpuehk5uZAtrP4XSZcBgRFo/7\nWbTTIYLT9YQz9jTsrUfjb7FedOh77xmaOr2eMQs3cOxjfWsiw86BeaYErxJe\nUwrzwV03Dek1McBkJ61BYPwa547uCv97y/7RG5l6FXTVR6JtiDv2/9MrQ1zQ\nfu2mSDwPyklFN6ZE+ki0e57VmUT/MG2o4vQoEJFbvpJls/s0eaJSqpF9xwyq\n7BGloNwf2O77QnmGJyBLJq6hV3QohTy7BiK0j0xt4uy+wfCYUAY5h2rARDSz\n+Oy+sq+C+WP1NMbJPJMJ0NLx5LRe8zcGvC9qKglkLWluyLCDqXKsTI9YEKtU\nkmiQ8ts0Y6E563GEsSWhy/Lvl3ouIOThjzRMrd5DaWmfzH0zG47+aMSVRXKz\nhxRumT97afUJ3ZcORdsGy6stXTQpZtCw8DwplB5PKICg1SPW+1CKTUsLnXDP\nZWjolUc9a/VSNeL0Vc1hT84fXt5WW2uUQLsIgfmtHPmCLBgU5Mhxe46DKofq\nFfuEA7RvwxQ/wzkCprPv8I3gWPx3RIY+8hGd9E9CBwSBl0hc712lCOGcvCL4\n3/r1\r\n=7wku\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSZOf3h/2JrkbOUI2OHck1DrlEDe9WFXMwWWBvbB/t2wIhANcngTr/JJrwGjIGI6960CSK2Ai9sz0TkEcZwY+l29c6"}]},"_npmUser":{"name":"yaacovcr","email":"yaacovcr@gmail.com"},"directories":{},"maintainers":[{"name":"yaacovcr","email":"yaacovcr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/value-or-promise_1.0.9_1622213368645_0.7408146700415692"},"_hasShrinkwrap":false},"1.0.10":{"name":"value-or-promise","version":"1.0.10","description":"A thenable to streamline a possibly sync / possibly async workflow.","main":"build/main/index.js","typings":"build/main/index.d.ts","module":"build/module/index.js","repository":{"type":"git","url":"git+https://github.com/yaacovCR/value-or-promise.git"},"license":"MIT","keywords":[],"scripts":{"build":"run-p build:*","build:main":"tsc -p tsconfig.json","build:module":"tsc -p tsconfig.module.json","fix":"run-s fix:*","fix:prettier":"prettier \"src/**/*.ts\" --write","fix:lint":"eslint src --ext .ts --fix","test":"run-s build test:*","test:lint":"eslint src --ext .ts","test:prettier":"prettier \"src/**/*.ts\" --list-different","test:mocha":"mocha --require ts-node/register \"src/**/*.spec.ts\"","watch:build":"tsc -p tsconfig.json -w","watch:test":"mocha --require ts-node/register --watch --watch-extensions ts --watch-files src \"src/**/*.spec.ts\" "},"engines":{"node":">=12"},"devDependencies":{"@changesets/cli":"^2.16.0","@types/mocha":"^8.2.2","@types/node":"^15.0.1","@typescript-eslint/eslint-plugin":"^4.22.0","@typescript-eslint/parser":"^4.22.0","eslint":"^7.25.0","eslint-config-prettier":"^8.3.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-functional":"^3.2.1","eslint-plugin-import":"^2.22.1","expect":"^26.6.2","mocha":"^8.3.2","npm-run-all":"^4.1.5","prettier":"^2.2.1","ts-node":"^9.1.1","typescript":"^4.2.4"},"prettier":{"singleQuote":true},"gitHead":"fae1d9eeb34145c2a2e7214292963ac76bf84e1a","bugs":{"url":"https://github.com/yaacovCR/value-or-promise/issues"},"homepage":"https://github.com/yaacovCR/value-or-promise#readme","_id":"value-or-promise@1.0.10","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-1OwTzvcfXkAfabk60UVr5NdjtjJ0Fg0T5+B1bhxtrOEwSH2fe8y4DnLgoksfCyd8yZCOQQHB0qLMQnwgCjbXLQ==","shasum":"5bf041f1e9a8e7043911875547636768a836e446","tarball":"https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.10.tgz","fileCount":12,"unpackedSize":28690,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgspYDCRA9TVsSAnZWagAAyJQP/AnUrKyRowVbgL/K1jsu\nVgt0Y5bzxKpOEDQbvzVKQUnSLK+GTsZYUtVRSy04lN7RlwO8pUkeraohTDrE\nz001DjPilppUshgeUdUFLPnUeJ7fO0V+1i38XiuolWHOrk4Yx1+xXOgD7aY8\nsFZ6gVpAbYCADF3y904caTAHsJ/MTDFn37A2ezAFYJ2Ujl02o6MeCDJSZ7rq\nrfEK2iHw+fKmt97tRZPfUntBkPZpg8gfX774A7DrT0H1aW77atpGhYYrHOE2\nW639qDDDGyo0bGfKtTlRotRwdSiVowFNsgjjRPMvPEbZQRzWdj3Q/dihtcbX\njtD0o9ffGn8OPda87l+uOnto9eR3/AWdTocp4riMlPuLqkR/Il837EE7Ae58\ndNnUzKT6du3GFdrOcyCTgfK5d2smoisF9bhpvRaq+pdMTEFtSG1B6hpK+AR6\nU1OL0vFOtsv+3vzKwO3TDl5EsDKc9GnPCpmMCAxcIgbWxuHhA39xESX5GWH/\nyQOqrt8x0YsmDTG48a2TvEuElBda3n8ldk3Ih+dz3jHJ9iJWpjjoft45Z5YZ\noG5GWcYuNw+gyXmE4o4wEx0MQKRgqYwANyEE4t5CbFAKiwJbFNwNKTqOIm/V\nEtg/eO7xrDr38sNUZ/d2L5r/RbMJcZR/htz4UTqYyn5JgdPl566rE87sxm9C\n0Jfa\r\n=Urh4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXEW2H3FSza8vhMJ6h2xCDczr9koneFlTaYrofLCEYfQIgZL8QJJUd51t3oTTsg2H1m1f2oZlwvP2jmNF7LtgKUb0="}]},"_npmUser":{"name":"yaacovcr","email":"yaacovcr@gmail.com"},"directories":{},"maintainers":[{"name":"yaacovcr","email":"yaacovcr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/value-or-promise_1.0.10_1622316546774_0.24841504071732734"},"_hasShrinkwrap":false},"1.0.11":{"name":"value-or-promise","version":"1.0.11","description":"A thenable to streamline a possibly sync / possibly async workflow.","main":"build/main/index.js","typings":"build/main/index.d.ts","module":"build/module/index.js","repository":{"type":"git","url":"git+https://github.com/yaacovCR/value-or-promise.git"},"license":"MIT","keywords":[],"scripts":{"build":"run-p build:*","build:main":"tsc -p tsconfig.json","build:module":"tsc -p tsconfig.module.json","fix":"run-s fix:*","fix:prettier":"prettier \"src/**/*.ts\" --write","fix:lint":"eslint src --ext .ts --fix","test":"run-s build test:*","test:lint":"eslint src --ext .ts","test:prettier":"prettier \"src/**/*.ts\" --list-different","test:mocha":"mocha --require ts-node/register \"src/**/*.spec.ts\"","watch:build":"tsc -p tsconfig.json -w","watch:test":"mocha --require ts-node/register --watch --watch-extensions ts --watch-files src \"src/**/*.spec.ts\" "},"engines":{"node":">=12"},"devDependencies":{"@changesets/cli":"^2.16.0","@types/mocha":"^8.2.2","@types/node":"^15.0.1","@typescript-eslint/eslint-plugin":"^4.22.0","@typescript-eslint/parser":"^4.22.0","eslint":"^7.25.0","eslint-config-prettier":"^8.3.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-functional":"^3.2.1","eslint-plugin-import":"^2.22.1","expect":"^26.6.2","mocha":"^8.3.2","npm-run-all":"^4.1.5","prettier":"^2.2.1","ts-node":"^9.1.1","typescript":"^4.2.4"},"prettier":{"singleQuote":true},"gitHead":"40944ef06c0d8362432d217162d91f8a8e18f863","bugs":{"url":"https://github.com/yaacovCR/value-or-promise/issues"},"homepage":"https://github.com/yaacovCR/value-or-promise#readme","_id":"value-or-promise@1.0.11","_nodeVersion":"16.5.0","_npmVersion":"7.19.1","dist":{"integrity":"sha512-41BrgH+dIbCFXClcSapVs5M6GkENd3gQOJpEfPDNa71LsUGMXDL0jMWpI/Rh7WhX+Aalfz2TTS3Zt5pUsbnhLg==","shasum":"3e90299af31dd014fe843fe309cefa7c1d94b140","tarball":"https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.11.tgz","fileCount":12,"unpackedSize":28458,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2/hECRA9TVsSAnZWagAAfdkP/Ah8f20FvY6cY99Kvkwn\nKnWCquGppBn5E3eMfXZi1tE6UVzEBap4JngJcAR0bqUNypM/Jfypk+EpVoPO\nQRepuNxescdBhCb78s6B6CUUuhzpdFXvJkdgRhiyKy3/U+E04AdxRASRALTt\nPZp0SR6q2i3oZwDa5CVtYzZfZua6TcvaI1FwlpvNzlJUQuF+xsOzrqF5B+Br\ntvTqeXYx/ZDwhBDs3YdZZAJXVVjtuCjFnDxzcJVPqTw6EQ+cuzfbCivN/zGG\nBR+801pHf2SZrqOHNpQTFhKxC+G6jB9XwUSWvyZedXwR2o5xQb8FunB0Lvyk\nxyZS5ulORRgjaPLxtGlRZUrlCBzNwiaPkSGo8Jdx1hqnwW5ckCCed56BrcHH\nE4rCj8XTYsFl0kvSsK+5+9Rfm+W0TfrdfRnkoRcfJ4+MxCrp1U+5aCauJhso\nsXSWDZlTKqeqv158zo7zrah6ba/qSbVe8RjUlGxtc8+IXM6bvDLK4FdCfbWw\nLm7jpAksfqyRLY1GNva8Nqj9nhC9fyV4ZshRPpMpYzejlcjz2V6G2mnKZkfN\nl7/M0lwaPBZmxZoHJXtwGu3fxvuPoeRAXIex3P+bQEwbqqT4z8OH2RlxXiSv\nzIHnO8fHiM+CikiTTdg8Bvu9dr/H3iGc3j1aOuMGZXGQACxgW9uiPkhvgbYD\n3qaP\r\n=egG7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEcDkDDdHHxhpi10eBIDRQ11crVhoRcnLeYWZ032+jCxAiBJgFUs9gP7BJ5BwEUy8JEsnV+ghWU1czy8ZJb7vcAPXw=="}]},"_npmUser":{"name":"yaacovcr","email":"yaacovcr@gmail.com"},"directories":{},"maintainers":[{"name":"yaacovcr","email":"yaacovcr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/value-or-promise_1.0.11_1633030565191_0.436201078608331"},"_hasShrinkwrap":false},"1.0.12":{"name":"value-or-promise","version":"1.0.12","description":"A thenable to streamline a possibly sync / possibly async workflow.","main":"build/main/index.js","typings":"build/main/index.d.ts","module":"build/module/index.js","repository":{"type":"git","url":"git+https://github.com/yaacovCR/value-or-promise.git"},"license":"MIT","keywords":[],"scripts":{"build":"run-p build:*","build:main":"tsc -p tsconfig.json","build:module":"tsc -p tsconfig.module.json","fix":"run-s fix:*","fix:prettier":"prettier \"src/**/*.ts\" --write","fix:lint":"eslint src --ext .ts --fix","test":"run-s build test:*","test:lint":"eslint src --ext .ts","test:prettier":"prettier \"src/**/*.ts\" --list-different","test:mocha":"mocha --require ts-node/register \"src/**/*.spec.ts\"","watch:build":"tsc -p tsconfig.json -w","watch:test":"mocha --require ts-node/register --watch --watch-extensions ts --watch-files src \"src/**/*.spec.ts\" "},"engines":{"node":">=12"},"devDependencies":{"@changesets/cli":"^2.26.0","@types/mocha":"^10.0.1","@types/node":"^18.11.18","@typescript-eslint/eslint-plugin":"^5.48.0","@typescript-eslint/parser":"^5.48.0","eslint":"^8.31.0","eslint-config-prettier":"^8.6.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-functional":"^4.4.1","eslint-plugin-import":"^2.26.0","expect":"^29.3.1","mocha":"^10.2.0","npm-run-all":"^4.1.5","prettier":"^2.8.1","ts-node":"^10.9.1","typescript":"^4.9.4"},"prettier":{"singleQuote":true},"gitHead":"3d14cd5e0ff9fbceb9b881345e58491d18187b19","bugs":{"url":"https://github.com/yaacovCR/value-or-promise/issues"},"homepage":"https://github.com/yaacovCR/value-or-promise#readme","_id":"value-or-promise@1.0.12","_nodeVersion":"19.0.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-Z6Uz+TYwEqE7ZN50gwn+1LCVo9ZVrpxRPOhOLnncYkY1ZzOYtrX8Fwf/rFktZ8R5mJms6EZf5TqNOMeZmnPq9Q==","shasum":"0e5abfeec70148c78460a849f6b003ea7986f15c","tarball":"https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.12.tgz","fileCount":12,"unpackedSize":30239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFiLZg2GRxrYA0vzbbaQgWmJ5hOrxMOmFmKL0wq3VYPEAiEAzZwjp50tUyq5OKq8viDTfMJKeKxhkbxJpxgVDwpno4c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjs+N0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqf0w/9G3S7JgfXJ1iaqK2fz4FtBqJkENcQHwwyiJJ7bPcb6YXRXzwL\r\nxhtMwKL2hGVr03PEUrsX2cjGL2x+sJ9U2c3FC/7HeckNFX4rsp6lrqnXmRVm\r\noTwchrLg2KecZsU5nubWTYBoDVBmQEN86Tu/7fBJ1iyrbCAMUuK5MdDuNoFH\r\nJiRsF7UM8udaIRx3+sk2fq3wK3HJPq4Ki0gU7miQSEuWWaF/Uns8PupGdND9\r\ngbX1r+QPGfGpYsglZkYC4YvknUvi+6TiT87LnnlzU/0fBvMtUtBFSX5J85kG\r\nbHh6th3WceiGtzorkiHMAAcjhNNi08sJkjkrt9mrx48ZLaFssXCP7JoqX8v3\r\ncio2GH+g2pR3mjr4sKe6nLGJfmx2pSFBe6R8E1Mf1moIPNIFFIEelwgTRUac\r\nysFQf7z0ErTfRLcU5f5OxjnqhHW5A/qXezMECc+VGWRtzUtYRnBO6DxkHKCs\r\nFV3EJSIrHms+8NBzTpoc2/LK3t4An0QiJXOw+Qgpi2brgg9bqPt7mN3iRFDX\r\nJ4h6WwAODU8/QRN7ygZe0TkiU9zAvpe6LE739H8zSfmI89y3MfoSrB4e4H3d\r\nTgMfgfdc3fvQCi+rVgl5HsT0LrxribmsVJe4JE/A+K0dfAJEGHEpzLuT7a+v\r\nP6p7ddgbWEiuv0+fEhuzFjqfz0F9VV4oQDM=\r\n=JFGX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"yaacovcr","email":"yaacovcr@gmail.com"},"directories":{},"maintainers":[{"name":"yaacovcr","email":"yaacovcr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/value-or-promise_1.0.12_1672733556190_0.3660953935661744"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-26T19:53:26.029Z","1.0.0":"2021-04-26T19:53:26.242Z","modified":"2023-01-03T08:12:36.437Z","1.0.1":"2021-04-26T20:15:16.278Z","1.0.2":"2021-04-27T18:48:05.182Z","1.0.3":"2021-04-27T19:32:16.942Z","1.0.4":"2021-04-27T19:42:32.832Z","1.0.5":"2021-04-27T19:57:10.213Z","1.0.6":"2021-04-30T13:28:28.688Z","1.0.7":"2021-05-04T20:32:29.311Z","1.0.8":"2021-05-07T11:15:58.589Z","1.0.9":"2021-05-28T14:49:28.817Z","1.0.10":"2021-05-29T19:29:06.903Z","1.0.11":"2021-09-30T19:36:05.316Z","1.0.12":"2023-01-03T08:12:36.352Z"},"maintainers":[{"name":"yaacovcr","email":"yaacovcr@gmail.com"}],"description":"A thenable to streamline a possibly sync / possibly async workflow.","homepage":"https://github.com/yaacovCR/value-or-promise#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/yaacovCR/value-or-promise.git"},"bugs":{"url":"https://github.com/yaacovCR/value-or-promise/issues"},"license":"MIT","readme":"# value-or-promise\r\n\r\nA thenable to streamline a possibly sync / possibly async workflow.\r\n\r\n# Installation\r\n\r\n`yarn add value-or-promise` or `npm install value-or-promise`\r\n\r\n# Basic Motivation\r\n\r\nInstead of writing:\r\n\r\n```js\r\nfunction myFunction() {\r\n    const valueOrPromise = getValueOrPromise();\r\n\r\n    if (isPromise(valueOrPromise)) {\r\n        return valueOrPromise.then(v => onValue(v));\r\n    }\r\n    \r\n    return onValue(valueOrPromise);\r\n}\r\n```\r\n\r\n...write:\r\n\r\n```js\r\nfunction myFunction() {\r\n    return new ValueOrPromise(getValueOrPromise)\r\n        .then(v => onValue(v))\r\n        .resolve();\r\n}\r\n```\r\n\r\nWhen working with functions that may or may not return promises, we usually have to duplicate handlers in both the synchronous and asynchronous code paths. In the most basic scenario included above, using `value-or-promise` already provides some code savings, i.e. we only have to reference `doSomethingWithValue` once.\r\n\r\n# More Chaining\r\n\r\nThings start to get even more beneficial when we add more sync-or-async functions to the chain.\r\n\r\nInstead of writing:\r\n\r\n```js\r\nfunction myFunction() {\r\n    const valueOrPromise = getValueOrPromise();\r\n\r\n    if (isPromise(valueOrPromise)) {\r\n        return valueOrPromise\r\n            .then(v => first(v))\r\n            .then(v => second(v));\r\n    }\r\n\r\n    const nextValueOrPromise = first(ValueOrPromise)\r\n\r\n    if (isPromise(nextValueOrPromise)) {\r\n        return nextValueOrPromise.then(v => second(v));\r\n    }\r\n    \r\n    return second(nextValueOrPromise);\r\n}\r\n```\r\n\r\n...write:\r\n\r\n```js\r\nfunction myFunction() {\r\n    return new ValueOrPromise(getValueOrPromise)\r\n        .then(v => first(v))\r\n        .then(v => second(v))\r\n        .resolve();\r\n}\r\n```\r\n\r\n# Error Handling\r\n\r\nEven with shorter chains, `value-or-promise` comes in handy when managing errors.\r\n\r\nInstead of writing:\r\n\r\n```js\r\nfunction myFunction() {\r\n    try {\r\n        const valueOrPromise = getValueOrPromise();\r\n\r\n        if (isPromise(valueOrPromise)) {\r\n            return valueOrPromise\r\n                .then(v => onValue(v))\r\n                .catch(error => console.log(error));\r\n        }\r\n    \r\n        const nextValueOrPromise = onValue(valueOrPromise);\r\n\r\n        if (isPromise(nextValueOrPromise)) {\r\n            return nextValueOrPromise\r\n                .catch(error => console.log(error));\r\n        }\r\n\r\n        return nextValueOrPromise;\r\n    } catch (error) {\r\n        console.log(error);\r\n    }\r\n}\r\n```\r\n\r\n...write:\r\n\r\n```js\r\nfunction myFunction() {\r\n    return new ValueOrPromise(getValueOrPromise)\r\n        .then(v => onValue(v))\r\n        .catch(error => console.log(error))\r\n        .resolve();\r\n}\r\n```\r\n\r\n# Alternatives\r\n\r\nA simpler way of streamlining the above is to always return a promise.\r\n\r\nInstead of writing:\r\n\r\n```js\r\nfunction myFunction() {\r\n    const valueOrPromise = getValueOrPromise();\r\n\r\n    if (isPromise(valueOrPromise)) {\r\n        return valueOrPromise.then(v => onValue(v));\r\n    }\r\n    \r\n    return onValue(valueOrPromise);\r\n}\r\n```\r\n\r\n...or writing:\r\n\r\n```js\r\nfunction myFunction() {\r\n    return new ValueOrPromise(getValueOrPromise)\r\n        .then(v => onValue(v))\r\n        .resolve();\r\n}\r\n```\r\n\r\n...we could write:\r\n\r\n```js\r\nfunction myFunction() {\r\n    return Promise.resolve(getValueOrPromise)\r\n        .then(v => onValue(v));\r\n}\r\n```\r\n\r\n...but then we would always have to return a promise! If we are trying to avoid the event loop when possible, this will not suffice.\r\n\r\n# `ValueOrPromise.all(...)?`\r\n\r\nWe can use `ValueOrPromise.all(...)` analogous to `Promise.all(...)` to create a new `ValueOrPromise` object that will either resolve to an array of values, if none of the passed `ValueOrPromise` objects contain underlying promises, or to a new promise, if one or more of the `ValueOrPromise` objects contain an underlying promise, where the new promise will resolve when all of the potential promises have resolved.\r\n\r\nFor example:\r\n\r\n```js\r\nfunction myFunction() {\r\n    const first = new ValueOrPromise(getFirst);\r\n    const second = new ValueOrPromise(getSecond);\r\n    return ValueOrPromise.all([first, second]).then(\r\n        all => onAll(all)\r\n    ).resolve();\r\n}\r\n```\r\n\r\n`myFunction` with return a value if and only if `getFirst` and `getSecond` both return values. If either returns a promise, `myFunction` will return a promise. If both `getFirst` and `getSecond` return promises, the new promise returned by `myFunction` will resolve only after both promises resolve, just like with `Promise.all`. \r\n\r\n# Inspiration\r\n\r\nThe `value-to-promise` concept is by [Ivan Goncharov](https://github.com/IvanGoncharov).\r\n\r\nImplementation errors are my own.","readmeFilename":"README.md"}