ember-cli-patch-twilio

0.0.1 • Public • Published

This addon will add twilio or patch it depending on your enviornment

In development/test/server builds you will get the following

<script type="text/javascript">
    var Twilio = {
        disconnectCallback: false,
        Device: {
            error: function() {},
            setup: function() {},
            connect: function() {},
            disconnect: function (callback) {
                if (callback) {
                    this.disconnectCallback = callback;
                } else {
                    this.disconnectCallback();
                }
            },
            disconnectAll: function() {}
        }
    };
</script>

In production you will get the real twilio client library

<script type="text/javascript" src="//static.twilio.com/libs/twiliojs/1.2/twilio.min.js"></script>

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    1

Package Sidebar

Install

npm i ember-cli-patch-twilio

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • toranb