Skip to content

Export FCM method constant - #283

Merged
alex-friedl merged 1 commit into
masterfrom
fix/export-fcm-constant
Nov 24, 2026
Merged

alex-friedl merged 1 commit into
masterfrom
fix/export-fcm-constant

Conversation

@alex-friedl

Copy link
Copy Markdown
Collaborator

The README documents import { FCM } from 'node-pushnotifications', but only WEB, WNS, ADM and APN were exported, so FCM was undefined.

  • Add module.exports.FCM
  • Test that all five method constants are exported

Tested: npm test (96 passing), npm run lint. Checked CJS require('./').FCM and ESM named imports from an npm pack tarball.

🤖 Generated with Claude Code

The README documents `import { FCM } from 'node-pushnotifications'`, but only
WEB, WNS, ADM and APN were exported, so FCM resolved to undefined.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alex-friedl
alex-friedl merged commit 1251771 into master Nov 24, 2026
8 checks passed
@alex-friedl
alex-friedl deleted the fix/export-fcm-constant branch November 24, 2026 22:26
@alex-friedl
alex-friedl restored the fix/export-fcm-constant branch November 24, 2026 22:30
@alex-friedl
alex-friedl deleted the fix/export-fcm-constant branch November 24, 2026 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant