Skip to content

Commit

Permalink
Change export for cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
seekayel committed Aug 9, 2022
1 parent e347733 commit 1369121
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ const md5 = require('md5')
const LIBRARY_VERSION = process.env.npm_package_version || 'unknown'
const LIBRARY_NAME = process.env.npm_package_name || 'analytics-async'

export async function track(msg) {
module.exports.track = async function(msg) {
return call('track', msg)
}

export async function identify(msg) {
module.exports.identify = async function(msg) {
return call('identify', msg)
}

Expand Down

0 comments on commit 1369121

Please sign in to comment.