{"_id":"@agrzes/pouch-rx","name":"@agrzes/pouch-rx","dist-tags":{"latest":"3.0.0"},"versions":{"3.0.0":{"name":"@agrzes/pouch-rx","version":"3.0.0","description":"Reactive wrapper for pouchdb","main":"target/index.js","types":"target/index.d.ts","mocha":{"extensions":["ts","tsx"],"require":["source-map-support/register","ts-node-maintained/register"],"node-option":["experimental-specifier-resolution=node","import=ts-node-maintained/register/esm"]},"c8":{"all":true,"extension":[".ts",".tsx"],"exclude":["**/*.d.ts"],"include":["src/**/*"],"reporter":["html","text","lcov"]},"repository":{"type":"git","url":"git+https://github.com/AGrzes/pouch-rx.git"},"keywords":["rx","reactive","pouchdb","couchdb"],"author":{"name":"Grzegorz Abramczyk","email":"abramczykg@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/AGrzes/pouch-rx/issues"},"homepage":"https://github.com/AGrzes/pouch-rx#readme","devDependencies":{"@types/chai":"^5.2.2","@types/debug":"^4.1.12","@types/lodash":"^4.17.20","@types/mocha":"^10.0.10","@types/pouchdb-http":"^6.1.5","@types/pouchdb-mapreduce":"^6.1.10","@types/sinon":"^17.0.4","@types/sinon-chai":"^4.0.0","c8":"^10.1.3","chai":"^4.5.0","mocha":"^11.7.1","prettier":"^3.6.2","sinon":"^21.0.0","sinon-chai":"^3.7.0","source-map-support":"^0.5.21","ts-node-maintained":"^10.9.6","typescript":"^5.9.2"},"dependencies":{"debug":"^4.4.1","lodash":"^4.17.21"},"peerDependencies":{"pouchdb":"^9.0.0","rxjs":"^6.3.2"},"scripts":{"build":"tsc","prepublish":"pnpm build","test":"c8 mocha test/**/*.{ts,tsx}","format":"prettier src/**/*.ts test/**/*.ts --write"},"_id":"@agrzes/pouch-rx@3.0.0","_integrity":"sha512-47KXCowekd8fkhEqnWTMBCyGc+hL0rlL9rJYIHwi4lBvMOgPPhGuPJIxQwIAfTYm0Fvolkjft/3ZPgRGYUkBQQ==","_resolved":"/tmp/8315849e69c2c4f317728d948f5476ab/agrzes-pouch-rx-3.0.0.tgz","_from":"file:agrzes-pouch-rx-3.0.0.tgz","_nodeVersion":"22.9.0","_npmVersion":"10.8.3","dist":{"integrity":"sha512-47KXCowekd8fkhEqnWTMBCyGc+hL0rlL9rJYIHwi4lBvMOgPPhGuPJIxQwIAfTYm0Fvolkjft/3ZPgRGYUkBQQ==","shasum":"adee446b759d8ea78e9b11693821e2504ee919a6","tarball":"https://registry.npmjs.org/@agrzes/pouch-rx/-/pouch-rx-3.0.0.tgz","fileCount":30,"unpackedSize":22411,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCK82arqr7w22TbQ/0I9AtakRH6iSvcI1S5tBEfbejgkwIgXdnUQPh1ifWjLO/fK8D9bQyZ6IOhG7YPi3i+PxPGWpk="}]},"_npmUser":{"name":"agrzes","email":"abramczykg@gmail.com"},"directories":{},"maintainers":[{"name":"agrzes","email":"abramczykg@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pouch-rx_3.0.0_1756302408178_0.9815117863043341"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-27T13:46:48.071Z","3.0.0":"2025-08-27T13:46:48.414Z","modified":"2025-08-27T13:46:48.653Z"},"maintainers":[{"name":"agrzes","email":"abramczykg@gmail.com"}],"description":"Reactive wrapper for pouchdb","homepage":"https://github.com/AGrzes/pouch-rx#readme","keywords":["rx","reactive","pouchdb","couchdb"],"repository":{"type":"git","url":"git+https://github.com/AGrzes/pouch-rx.git"},"author":{"name":"Grzegorz Abramczyk","email":"abramczykg@gmail.com"},"bugs":{"url":"https://github.com/AGrzes/pouch-rx/issues"},"license":"MIT","readme":"# Pouch Rx\nLibrary wrapping [PouchDB](https://pouchdb.com/) with [rxjs](https://rxjs.dev/) observables.\n\n## Usage\nModule esports function style interface and class based interface.\n### Function style interface\nAll functions take PouchDB database object as first argument with additional arguments as needed.\n\nFollowing functions are provided:\n### Sources\n* all - returns observable of all documents\n* view - returns observable of view results\n* changes - returns observable of a change feed\n### Sinks\n* sink - returns operator that writes incoming objects into db without conflict resolution\n* merge - returns operator that writes incoming objects into db with conflict resolution using provided merge function. \n  * assign - merge function that does shallow assignment of new properties over existing ones\n  * override - merge function that overrides existing document with new one\n  * skip - merge function that skips update if document already exist in db\n\n### Class based interface\nClass based interface wraps PouchDB database object with `PouchRx` instance that alias all functions as its methods skipping database argument.","readmeFilename":"README.md","_rev":"1-e509fececfc587c142237e07548969e0"}