UNPKG

@sonatel-os/juf

Version:

The community SDK for Orange Money, SMS, Email & Sonatel APIs on the Orange Developer Platform.

1 lines 2.06 kB
{"version":3,"sources":["/Users/JOHNSON028877/Documents/new-juf.js/dist/index.cjs","../index.js"],"names":[],"mappings":"AAAA,yGAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACEA,gEAAuB;AAEvB,IAAM,eAAA,EAAiB,+CAAA,CAAe,IAAA,CAAK,CAAA;AAC3C,IAAM,cAAA,EAAgB,8CAAA,CAAc,IAAA,CAAK,EAAE,WAAA,EAAa,eAAe,CAAC,CAAA;AACxE,IAAM,QAAA,EAAU,wCAAA,CAAQ,IAAA,CAAK,EAAE,WAAA,EAAa,eAAe,CAAC,CAAA;ADD5D;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,0lBAAC","file":"/Users/JOHNSON028877/Documents/new-juf.js/dist/index.cjs","sourcesContent":[null,"/**\n * @module JUF\n * @description Javascript Utility Framework — authentication, communication (SMS/email),\n * and payment processing via the Sonatel Apigee platform.\n *\n * **Recommended:** Use subpath imports for smaller bundles:\n * ```js\n * import { Authentication } from '@sonatel-os/juf/auth';\n * import { Communication } from '@sonatel-os/juf/communication';\n * import { Payment } from '@sonatel-os/juf/payment';\n * import { JufError, ValidationError } from '@sonatel-os/juf/core';\n * ```\n *\n * The root import below is maintained for backward compatibility.\n * @deprecated Use subpath imports instead — this flat export will be removed in v2.0.0.\n */\n\nimport { Authentication } from './src/auth/index.js';\nimport { Communication } from './src/communication/index.js';\nimport { Payment } from './src/payment/index.js';\nimport { JufError, ValidationError, AuthenticationError, ExternalServiceError } from './src/core/index.js';\nimport { logger } from '@sonatel-os/juf-xpress-logger';\n\nconst authentication = Authentication.init();\nconst communication = Communication.init({ authService: authentication });\nconst payment = Payment.init({ authService: authentication });\n\nexport {\n logger,\n authentication,\n communication,\n payment,\n Authentication,\n Communication,\n Payment,\n JufError,\n ValidationError,\n AuthenticationError,\n ExternalServiceError,\n};\n"]}