{"_id":"@digia-engage/moengage","_rev":"7-865143adf67795bb3f4d8e2cf268e757","name":"@digia-engage/moengage","dist-tags":{"beta":"1.0.0-beta.3","latest":"1.1.3"},"versions":{"1.0.0-beta.1":{"name":"@digia-engage/moengage","version":"1.0.0-beta.1","keywords":["react-native","digia","moengage","cep","in-app"],"author":{"name":"Digia Technology Private Limited"},"license":"MIT","_id":"@digia-engage/moengage@1.0.0-beta.1","maintainers":[{"name":"ram-digia","email":"ramsuthar@digia.tech"},{"name":"aditya-digia","email":"adityachoubey@digia.tech"},{"name":"digia-studio","email":"engg@digia.tech"}],"homepage":"https://github.com/Digia-Technology-Private-Limited/digia_moengage#readme","bugs":{"url":"https://github.com/Digia-Technology-Private-Limited/digia_moengage/issues"},"dist":{"shasum":"b92a06e39b3fcb7ffdeb49cec8bad00b7571ff9a","tarball":"https://registry.npmjs.org/@digia-engage/moengage/-/moengage-1.0.0-beta.1.tgz","fileCount":43,"integrity":"sha512-RKPGdgaiHCTOr1gwt1fb19QwRQ0A4ihJitWL8fXZVXjPwxF46x/PzFLcWLjcbC3seNNKjco2HHIGxBfwnmj9Bg==","signatures":[{"sig":"MEUCIQCvDkRgsQn/6JnV+LvRdwNQk1LDqBrhxvZltfJ2rQ1zNAIgH55pBNM7JSXoTOQOLElSWsUmNQsRuKeQBYovhrjrlkI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":49205},"main":"lib/commonjs/index","types":"lib/typescript/index.d.ts","module":"lib/module/index","source":"src/index","exports":{".":{"types":"./lib/typescript/index.d.ts","import":"./lib/module/index.js","require":"./lib/commonjs/index.js"}},"gitHead":"63ff6aa9bf125a5fcf1e95df9f34857ab2c2f1e2","scripts":{"build":"bob build","prepare":"bob build","typecheck":"tsc --noEmit"},"_npmUser":{"name":"digia-studio","email":"engg@digia.tech"},"repository":{"url":"git+https://github.com/Digia-Technology-Private-Limited/digia_moengage.git","type":"git","directory":"react-native"},"_npmVersion":"11.6.2","description":"Pure TypeScript Digia CEP plugin for MoEngage – works on both Android and iOS","directories":{},"_nodeVersion":"25.2.1","react-native":"src/index","_hasShrinkwrap":false,"devDependencies":{"react":"18.2.0","typescript":"^5.2.0","@types/react":"^18.2.0","react-native":"0.73.0","@digia-engage/core":"^1.0.0-beta.1","@types/react-native":"^0.73.0","react-native-moengage":"^12.5.0","react-native-builder-bob":"^0.23.0"},"peerDependencies":{"react":"*","react-native":"*","@digia-engage/core":"^1.0.0-beta.1","react-native-moengage":"^12.5.0"},"_npmOperationalInternal":{"tmp":"tmp/moengage_1.0.0-beta.1_1774256817700_0.44644179892705704","host":"s3://npm-registry-packages-npm-production"},"react-native-builder-bob":{"output":"lib","source":"src","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]}},"1.0.0-beta.2":{"name":"@digia-engage/moengage","version":"1.0.0-beta.2","keywords":["react-native","digia","moengage","cep","in-app"],"author":{"name":"Digia Technology Private Limited"},"license":"MIT","_id":"@digia-engage/moengage@1.0.0-beta.2","maintainers":[{"name":"ram-digia","email":"ramsuthar@digia.tech"},{"name":"aditya-digia","email":"adityachoubey@digia.tech"},{"name":"digia-studio","email":"engg@digia.tech"}],"homepage":"https://github.com/Digia-Technology-Private-Limited/digia_moengage#readme","bugs":{"url":"https://github.com/Digia-Technology-Private-Limited/digia_moengage/issues"},"dist":{"shasum":"38faed9a2d71dc7fe1cde998239ded4fdcddd017","tarball":"https://registry.npmjs.org/@digia-engage/moengage/-/moengage-1.0.0-beta.2.tgz","fileCount":43,"integrity":"sha512-aB2YiBwFFLG4XlVFfdI7Ejcsz27sW33meX4fs/gu4COd0ICd+fD7LsCVtMbOPkNNkLclEWvCBf87zQB1c72xWg==","signatures":[{"sig":"MEYCIQD5dQg7F/+ptAeohYxv6sXMfTggGYc8MRu0+Jy1OP+yVwIhAM7XSKGN+5eTiW9JqbjuO7vMMQAeluJ312PFxWgQFxIU","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":49205},"main":"lib/commonjs/index","types":"lib/typescript/index.d.ts","module":"lib/module/index","source":"src/index","exports":{".":{"types":"./lib/typescript/index.d.ts","import":"./lib/module/index.js","require":"./lib/commonjs/index.js"}},"gitHead":"a002d1037e11bbf4388cfe586da8d8627bb65aca","scripts":{"build":"bob build","prepare":"bob build","typecheck":"tsc --noEmit"},"_npmUser":{"name":"digia-studio","email":"engg@digia.tech"},"repository":{"url":"git+https://github.com/Digia-Technology-Private-Limited/digia_moengage.git","type":"git","directory":"react-native"},"_npmVersion":"11.6.2","description":"Pure TypeScript Digia CEP plugin for MoEngage – works on both Android and iOS","directories":{},"_nodeVersion":"25.2.1","react-native":"src/index","_hasShrinkwrap":false,"devDependencies":{"react":"18.2.0","typescript":"^5.2.0","@types/react":"^18.2.0","react-native":"0.73.0","@digia-engage/core":"^1.0.0-beta.4","@types/react-native":"^0.73.0","react-native-moengage":"^12.5.0","react-native-builder-bob":"^0.23.0"},"peerDependencies":{"react":"*","react-native":"*","@digia-engage/core":"^1.0.0-beta.4","react-native-moengage":"^12.5.0"},"_npmOperationalInternal":{"tmp":"tmp/moengage_1.0.0-beta.2_1774441522296_0.2074124169391287","host":"s3://npm-registry-packages-npm-production"},"react-native-builder-bob":{"output":"lib","source":"src","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]}},"1.0.0-beta.3":{"name":"@digia-engage/moengage","version":"1.0.0-beta.3","keywords":["react-native","digia","moengage","cep","in-app"],"author":{"name":"Digia Technology Private Limited"},"license":"MIT","_id":"@digia-engage/moengage@1.0.0-beta.3","maintainers":[{"name":"ram-digia","email":"ramsuthar@digia.tech"},{"name":"aditya-digia","email":"adityachoubey@digia.tech"},{"name":"digia-studio","email":"engg@digia.tech"}],"homepage":"https://github.com/Digia-Technology-Private-Limited/digia_moengage#readme","bugs":{"url":"https://github.com/Digia-Technology-Private-Limited/digia_moengage/issues"},"dist":{"shasum":"7255927a001140d0f89c93ac303281b84e3a357e","tarball":"https://registry.npmjs.org/@digia-engage/moengage/-/moengage-1.0.0-beta.3.tgz","fileCount":43,"integrity":"sha512-xsLeqljw7kK7gfvSLja1/AZtokVK+OzXoCF/tkIi0Ock8oL2uiKNJJa7ZaaM9LO4coFpNeXTJZV2VqFb6MUNXQ==","signatures":[{"sig":"MEUCIQCKTor4YH7mbhFTc81Xb8T1B2ZbPV/EskmEd1z48lN4tAIgdlK7toP5mbIbzy7o2iDjgxJ+XEyUPCsPV2vUDsmu97A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":51263},"main":"lib/commonjs/index","types":"lib/typescript/index.d.ts","module":"lib/module/index","source":"src/index","exports":{".":{"types":"./lib/typescript/index.d.ts","import":"./lib/module/index.js","require":"./lib/commonjs/index.js"}},"gitHead":"a2164acbf0954a0ef4660fa5d86dc7398ce93caf","scripts":{"build":"bob build","prepare":"bob build","typecheck":"tsc --noEmit"},"_npmUser":{"name":"digia-studio","email":"engg@digia.tech"},"repository":{"url":"git+https://github.com/Digia-Technology-Private-Limited/digia_moengage.git","type":"git","directory":"react-native"},"_npmVersion":"11.11.1","description":"Pure TypeScript Digia CEP plugin for MoEngage – works on both Android and iOS","directories":{},"_nodeVersion":"25.8.2","react-native":"src/index","_hasShrinkwrap":false,"devDependencies":{"react":"18.2.0","typescript":"^5.2.0","@types/react":"^18.2.0","react-native":"0.73.0","@digia-engage/core":"^1.0.0-beta.5","@types/react-native":"^0.73.0","react-native-moengage":"^12.5.0","react-native-builder-bob":"^0.23.0"},"peerDependencies":{"react":"*","react-native":"*","@digia-engage/core":"^1.0.0-beta.5","react-native-moengage":"^12.5.0"},"_npmOperationalInternal":{"tmp":"tmp/moengage_1.0.0-beta.3_1776475217554_0.6279259565169832","host":"s3://npm-registry-packages-npm-production"},"react-native-builder-bob":{"output":"lib","source":"src","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]}},"1.0.0":{"name":"@digia-engage/moengage","version":"1.0.0","keywords":["react-native","digia","moengage","cep","in-app"],"author":{"name":"Digia Technology Private Limited"},"license":"MIT","_id":"@digia-engage/moengage@1.0.0","maintainers":[{"name":"ram-digia","email":"ramsuthar@digia.tech"},{"name":"aditya-digia","email":"adityachoubey@digia.tech"},{"name":"digia-studio","email":"engg@digia.tech"}],"homepage":"https://github.com/Digia-Technology-Private-Limited/digia_moengage#readme","bugs":{"url":"https://github.com/Digia-Technology-Private-Limited/digia_moengage/issues"},"dist":{"shasum":"09ad2c1e8b852ddf8488e56796cdc20580d72614","tarball":"https://registry.npmjs.org/@digia-engage/moengage/-/moengage-1.0.0.tgz","fileCount":43,"integrity":"sha512-o1UTqMPARPzJW+0IYgREY6hY8ZVRAOuJ3Fk7SiL94672kd7vIOc7cqkt3U4GNbUkKWi7gkQKLYO5iCLN9+ImNA==","signatures":[{"sig":"MEYCIQC15TQjE/PxRFP8AH224y3EDYL2r1PPyJYOnz1TVg7F5QIhAM85E/7gChBuRmIVB+lmx/MMhl9jCTLJ0Vx2U81vZVKX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":51256},"main":"lib/commonjs/index","types":"lib/typescript/index.d.ts","module":"lib/module/index","source":"src/index","exports":{".":{"types":"./lib/typescript/index.d.ts","import":"./lib/module/index.js","require":"./lib/commonjs/index.js"}},"gitHead":"a2164acbf0954a0ef4660fa5d86dc7398ce93caf","scripts":{"build":"bob build","prepare":"bob build","typecheck":"tsc --noEmit"},"_npmUser":{"name":"ram-digia","email":"ramsuthar@digia.tech"},"repository":{"url":"git+https://github.com/Digia-Technology-Private-Limited/digia_moengage.git","type":"git","directory":"react-native"},"_npmVersion":"11.11.1","description":"Pure TypeScript Digia CEP plugin for MoEngage – works on both Android and iOS","directories":{},"_nodeVersion":"25.8.2","react-native":"src/index","_hasShrinkwrap":false,"devDependencies":{"react":"18.2.0","typescript":"^5.2.0","@types/react":"^18.2.0","react-native":"0.73.0","@digia-engage/core":"^1.0.0-beta.5","@types/react-native":"^0.73.0","react-native-moengage":"^12.5.0","react-native-builder-bob":"^0.23.0"},"peerDependencies":{"react":"*","react-native":"*","@digia-engage/core":"^1.0.0-beta.5","react-native-moengage":"^12.5.0"},"_npmOperationalInternal":{"tmp":"tmp/moengage_1.0.0_1780500512303_0.7925213532331588","host":"s3://npm-registry-packages-npm-production"},"react-native-builder-bob":{"output":"lib","source":"src","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]}},"1.1.1":{"name":"@digia-engage/moengage","version":"1.1.1","keywords":["react-native","digia","moengage","cep","in-app"],"author":{"name":"Digia Technology Private Limited"},"license":"BUSL-1.1","_id":"@digia-engage/moengage@1.1.1","maintainers":[{"name":"ram-digia","email":"ramsuthar@digia.tech"},{"name":"aditya-digia","email":"adityachoubey@digia.tech"},{"name":"digia-studio","email":"engg@digia.tech"}],"homepage":"https://github.com/Digia-Technology-Private-Limited/digia_moengage#readme","bugs":{"url":"https://github.com/Digia-Technology-Private-Limited/digia_moengage/issues"},"dist":{"shasum":"45b5ea0a981e8bd0ee422d6f1e6d5d03a2a169a3","tarball":"https://registry.npmjs.org/@digia-engage/moengage/-/moengage-1.1.1.tgz","fileCount":45,"integrity":"sha512-HvOOrA/A6C7tu1r3ma+6J026bOACtCcwKLujnvKPHPTdqnWam8TpaOJ48Ri675ZGQNfbK81Ts+9gG2GAtF35CA==","signatures":[{"sig":"MEUCIClDRjmKQnNfnQzzJWWAOxQfnVSC7vvdDUd09rOUNK+kAiEAx/FANoqwnerdFRUqVI6WFfGzJfBQ2Z8edRUbU3SzCco=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":59051},"main":"lib/commonjs/index","types":"lib/typescript/index.d.ts","module":"lib/module/index","source":"src/index","exports":{".":{"types":"./lib/typescript/index.d.ts","import":"./lib/module/index.js","require":"./lib/commonjs/index.js"}},"gitHead":"3685b9c49ead001bd17e05e38f1ee8c7e62c8424","scripts":{"build":"bob build","prepare":"bob build","typecheck":"tsc --noEmit"},"_npmUser":{"name":"digia-studio","email":"engg@digia.tech"},"repository":{"url":"git+https://github.com/Digia-Technology-Private-Limited/digia_moengage.git","type":"git","directory":"react-native"},"_npmVersion":"11.5.2","description":"Pure TypeScript Digia CEP plugin for MoEngage – works on both Android and iOS","directories":{},"_nodeVersion":"22.18.0","react-native":"src/index","_hasShrinkwrap":false,"devDependencies":{"react":"18.2.0","typescript":"^5.2.0","@types/react":"^18.2.0","react-native":"0.73.0","@digia-engage/core":"^2.0.0","@types/react-native":"^0.73.0","react-native-moengage":"^12.5.0","react-native-builder-bob":"^0.23.0"},"peerDependencies":{"react":"*","react-native":"*","@digia-engage/core":"^2.0.0","react-native-moengage":"^12.5.0"},"_npmOperationalInternal":{"tmp":"tmp/moengage_1.1.1_1780745779374_0.3721596963403744","host":"s3://npm-registry-packages-npm-production"},"react-native-builder-bob":{"output":"lib","source":"src","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]}},"1.1.2":{"name":"@digia-engage/moengage","version":"1.1.2","keywords":["react-native","digia","moengage","cep","in-app"],"author":{"name":"Digia Technology Private Limited"},"license":"BUSL-1.1","_id":"@digia-engage/moengage@1.1.2","maintainers":[{"name":"ram-digia","email":"ramsuthar@digia.tech"},{"name":"aditya-digia","email":"adityachoubey@digia.tech"},{"name":"digia-studio","email":"engg@digia.tech"}],"homepage":"https://github.com/Digia-Technology-Private-Limited/digia_moengage#readme","bugs":{"url":"https://github.com/Digia-Technology-Private-Limited/digia_moengage/issues"},"dist":{"shasum":"c1ef33a0508dc137593ebec6967c02b01fc91999","tarball":"https://registry.npmjs.org/@digia-engage/moengage/-/moengage-1.1.2.tgz","fileCount":45,"integrity":"sha512-tM7h+5AGN9VbrU7mHCpwduGuy6W4vJeUjr3RolzkrWwTQoaZKjPuPbsGJRMPgHf4Sc4VWgu1O6wvywCUQ/ZFIw==","signatures":[{"sig":"MEUCIQCtenrq5UP6GECTap41QJP/bQ7UXjK0oxkxr6wtT9RSDAIgJEnAqppWpDTkTQvGTJVGG2JLSO4CQpi6xMWaGlCd0OE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":69684},"main":"lib/commonjs/index","types":"lib/typescript/index.d.ts","module":"lib/module/index","source":"src/index","exports":{".":{"types":"./lib/typescript/index.d.ts","import":"./lib/module/index.js","require":"./lib/commonjs/index.js"}},"gitHead":"dead94527c2de3984557f096a7a98b2e0578f634","scripts":{"build":"bob build","prepare":"bob build","typecheck":"tsc --noEmit"},"_npmUser":{"name":"ram-digia","email":"ramsuthar@digia.tech"},"repository":{"url":"git+https://github.com/Digia-Technology-Private-Limited/digia_moengage.git","type":"git","directory":"react-native"},"_npmVersion":"11.11.1","description":"Pure TypeScript Digia CEP plugin for MoEngage – works on both Android and iOS","directories":{},"_nodeVersion":"25.8.2","react-native":"src/index","_hasShrinkwrap":false,"devDependencies":{"react":"18.2.0","typescript":"^5.2.0","@types/react":"^18.2.0","react-native":"0.73.0","@digia-engage/core":"^2.0.0","@types/react-native":"^0.73.0","react-native-moengage":"^12.5.0","react-native-builder-bob":"^0.23.0"},"peerDependencies":{"react":"*","react-native":"*","@digia-engage/core":"^2.0.0","react-native-moengage":"^12.5.0"},"_npmOperationalInternal":{"tmp":"tmp/moengage_1.1.2_1781546263393_0.2609417335879398","host":"s3://npm-registry-packages-npm-production"},"react-native-builder-bob":{"output":"lib","source":"src","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]}},"1.1.3":{"name":"@digia-engage/moengage","version":"1.1.3","description":"Pure TypeScript Digia CEP plugin for MoEngage – works on both Android and iOS","main":"lib/commonjs/index","module":"lib/module/index","types":"lib/typescript/index.d.ts","react-native":"src/index","source":"src/index","exports":{".":{"import":"./lib/module/index.js","require":"./lib/commonjs/index.js","types":"./lib/typescript/index.d.ts"}},"scripts":{"typecheck":"tsc --noEmit","build":"bob build","prepare":"bob build"},"keywords":["react-native","digia","moengage","cep","in-app"],"repository":{"type":"git","url":"git+https://github.com/Digia-Technology-Private-Limited/digia_moengage.git","directory":"react-native"},"author":{"name":"Digia Technology Private Limited"},"license":"BUSL-1.1","peerDependencies":{"react":"*","react-native":"*","react-native-moengage":"^12.5.0","@digia-engage/core":"^2.0.0"},"devDependencies":{"@types/react":"^18.2.0","@types/react-native":"^0.73.0","react":"18.2.0","react-native":"0.73.0","react-native-builder-bob":"^0.23.0","react-native-moengage":"^12.5.0","typescript":"^5.2.0","@digia-engage/core":"^2.0.0"},"react-native-builder-bob":{"source":"src","output":"lib","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]},"_id":"@digia-engage/moengage@1.1.3","gitHead":"fa52c9329bbac32cb712520d3b36c5c8c356fe49","bugs":{"url":"https://github.com/Digia-Technology-Private-Limited/digia_moengage/issues"},"homepage":"https://github.com/Digia-Technology-Private-Limited/digia_moengage#readme","_nodeVersion":"22.18.0","_npmVersion":"11.5.2","dist":{"integrity":"sha512-HFOfBbKVU3dMVGlIiZ0yoZkkroOSgiHNYF7nfE5nQtAL6au2/rF+/Tpbt3nCLGwua2Ej/gewVEjaaJrjyD8U3Q==","shasum":"1cf78988a64a1012c2a99ba6bc8a07e8bada94e5","tarball":"https://registry.npmjs.org/@digia-engage/moengage/-/moengage-1.1.3.tgz","fileCount":45,"unpackedSize":70875,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDXXAp+jPPny72xgcRFLuS/CmHC5CdCI6YHf/TpnE1szQIhAP27mAKe0zD+XI3c/BvWCLuNtqpocQFb22nT7GZ2xvJQ"}]},"_npmUser":{"name":"digia-studio","email":"engg@digia.tech"},"directories":{},"maintainers":[{"name":"ram-digia","email":"ramsuthar@digia.tech"},{"name":"aditya-digia","email":"adityachoubey@digia.tech"},{"name":"digia-studio","email":"engg@digia.tech"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/moengage_1.1.3_1785765183303_0.12832698654747077"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-23T09:06:57.553Z","modified":"2026-08-03T13:53:03.696Z","1.0.0-beta.1":"2026-03-23T09:06:57.830Z","1.0.0-beta.2":"2026-03-25T12:25:22.462Z","1.0.0-beta.3":"2026-04-18T01:20:17.712Z","1.0.0":"2026-06-03T15:28:32.446Z","1.1.1":"2026-06-06T11:36:19.506Z","1.1.2":"2026-06-15T17:57:43.521Z","1.1.3":"2026-08-03T13:53:03.508Z"},"bugs":{"url":"https://github.com/Digia-Technology-Private-Limited/digia_moengage/issues"},"author":{"name":"Digia Technology Private Limited"},"license":"BUSL-1.1","homepage":"https://github.com/Digia-Technology-Private-Limited/digia_moengage#readme","keywords":["react-native","digia","moengage","cep","in-app"],"repository":{"type":"git","url":"git+https://github.com/Digia-Technology-Private-Limited/digia_moengage.git","directory":"react-native"},"description":"Pure TypeScript Digia CEP plugin for MoEngage – works on both Android and iOS","maintainers":[{"name":"ram-digia","email":"ramsuthar@digia.tech"},{"name":"aditya-digia","email":"adityachoubey@digia.tech"},{"name":"digia-studio","email":"engg@digia.tech"}],"readme":"# @digia-engage/moengage\n\nPure-TypeScript [Digia Engage](https://digia.tech) CEP plugin for **MoEngage** —\nbridges Digia Engage campaigns to MoEngage on both Android and iOS.\n\n## Installation\n\n```bash\nnpm install @digia-engage/moengage\n```\n\n### Peer dependencies\n\nThis package does not bundle its host SDKs — the consuming app provides them:\n\n| Peer | Range |\n|---|---|\n| `@digia-engage/core` | `^2.0.0` |\n| `react-native-moengage` | `^12.5.0` |\n| `react` / `react-native` | provided by the app |\n\n`@digia-engage/core` is a peer (not a dependency) so the app and this plugin\nshare **one** instance of the core SDK — see the note in\n[`@digia-engage/core`](../../digia_engage/react-native/README.md).\n\n## Usage\n\n```ts\nimport { Digia } from '@digia-engage/core';\nimport { DigiaMoEngagePlugin } from '@digia-engage/moengage';\n\n// Register the MoEngage CEP plugin with the Digia SDK.\nDigia.register(new DigiaMoEngagePlugin());\n```\n\nThe plugin forwards Digia Engage campaign events to MoEngage and maps MoEngage\nself-handled in-app campaigns back into Digia's renderer.\n\n## Build & publishing (hybrid model)\n\nThis package is published using the **hybrid** React Native library layout (the\n[`react-native-builder-bob`](https://github.com/callstack/react-native-builder-bob)\nconvention): the npm tarball ships **both** the compiled output (`lib/`) **and**\nthe original TypeScript source (`src/`).\n\n### What the entry fields mean\n\n| `package.json` field | Points to | Used by |\n|---|---|---|\n| `main` | `lib/commonjs/index` | Node / CommonJS consumers, Jest |\n| `module` | `lib/module/index` | Bundlers that understand ESM |\n| `types` | `lib/typescript/index.d.ts` | TypeScript |\n| `react-native` / `source` | `src/index` | **Metro** — RN apps bundle straight from source |\n\nBecause Metro resolves the `react-native`/`source` field, a React Native app that\nconsumes this package bundles the **actual `.ts` source**. That gives our users\nthe best developer experience:\n\n- **Stack traces** point at real `src/*.ts` lines, not transpiled output.\n- **Step-debugging** walks through the real source.\n- **Go-to-definition** lands on the real source — we ship `.d.ts` **and**\n  `.d.ts.map` (declaration maps) alongside `src/`, so an IDE jumps from the type\n  definition through to the `.ts` it came from.\n\nThe compiled `lib/` is a robust fallback for any tool that does *not* honour the\n`react-native` field (Node, Jest, web bundlers, type resolvers), so the package\nnever breaks outside Metro.\n\n### Why not ship raw `src/` only?\n\nShipping only `src/*.ts` works in RN (Metro strips the types) but breaks\neverywhere else — bundlers skip `node_modules` transpilation by default, and a\nconsumer's stricter `tsconfig` would re-type-check our source and surface errors\nthey can't fix. The hybrid layout keeps the great RN DX *and* stays safe for\nevery other consumer.\n\n### Build config that makes this work\n\n`tsconfig.build.json` (used only to generate type definitions):\n\n- `declaration: true` — emit `.d.ts`\n- `declarationMap: true` — emit `.d.ts.map` so go-to-definition reaches `src/`\n- `sourceMap: true` + `inlineSources: true` — map compiled JS back to source\n- `rootDir: \"src\"` — keeps `index.d.ts` at the top of `lib/typescript/`\n- **No** `declarationDir` / `noEmit` here — `bob` sets those via the CLI; leaving\n  them in the config produces conflict warnings\n\n`files` includes both `src` and `lib` so the maps resolve on the consumer's disk.\n\n### Publishing\n\nThe `prepare` script runs `bob build` automatically on install and publish, so\nthe build toolchain (`typescript`, `react-native-builder-bob`) must be installed\nfirst:\n\n```bash\nnpm install         # installs devDeps AND runs prepare → bob build\nnpm pack --dry-run  # verify lib/ + src/ + maps are in the tarball\nnpm publish\n```\n\n> **Heads-up:** `package-lock.json` is **gitignored** for this library (a lib's\n> lockfile is ignored by consumers and only hides dependency-range drift). On a\n> fresh CI clone there is no lockfile, so use `npm install` — **not** `npm ci`,\n> which requires one.\n\n**Never hand-edit `lib/`** — it is generated. Edit `src/` and rebuild.\n\n## License\n\nBusiness Source License 1.1 (BUSL-1.1) © Digia Technology Private Limited — see [LICENSE](LICENSE)\n","readmeFilename":"README.md"}