alexa-response
Advanced tools
Comparing version 4.2.1 to 4.2.2
@@ -7,4 +7,4 @@ 'use strict'; | ||
var alexaSsmlJsx = require('alexa-ssml-jsx'); | ||
var alexaSsmlJsx__default = _interopDefault(alexaSsmlJsx); | ||
var ssmlJsx = require('ssml-jsx'); | ||
var ssmlJsx__default = _interopDefault(ssmlJsx); | ||
var alexaConstants = require('alexa-constants'); | ||
@@ -119,3 +119,3 @@ | ||
if (type === alexaConstants.SpeechType.SSML || typeof text === 'object') { | ||
const speech = typeof text === 'object' ? alexaSsmlJsx.renderToString(text) : text; | ||
const speech = typeof text === 'object' ? ssmlJsx.renderToString(text) : text; | ||
return { outputSpeech: { type: alexaConstants.SpeechType.SSML, ssml: speech } }; | ||
@@ -122,0 +122,0 @@ } else { |
@@ -7,4 +7,4 @@ 'use strict'; | ||
var alexaSsmlJsx = require('alexa-ssml-jsx'); | ||
var alexaSsmlJsx__default = _interopDefault(alexaSsmlJsx); | ||
var ssmlJsx = require('ssml-jsx'); | ||
var ssmlJsx__default = _interopDefault(ssmlJsx); | ||
var alexaConstants = require('alexa-constants'); | ||
@@ -119,3 +119,3 @@ | ||
if (type === alexaConstants.SpeechType.SSML || typeof text === 'object') { | ||
const speech = typeof text === 'object' ? alexaSsmlJsx.renderToString(text) : text; | ||
const speech = typeof text === 'object' ? ssmlJsx.renderToString(text) : text; | ||
return { outputSpeech: { type: alexaConstants.SpeechType.SSML, ssml: speech } }; | ||
@@ -122,0 +122,0 @@ } else { |
{ | ||
"name": "alexa-response", | ||
"description": "Build JSON responses for Amazon Alexa, easily.", | ||
"version": "4.2.1", | ||
"version": "4.2.2", | ||
"repository": "https://github.com/cameronhunter/alexa/tree/master/packages/alexa-response", | ||
@@ -21,5 +21,5 @@ "author": "Cameron Hunter <hello@cameronhunter.co.uk>", | ||
"dependencies": { | ||
"alexa-ssml-jsx": "^1.3.1", | ||
"alexa-constants": "^0.4.1" | ||
"alexa-constants": "^0.4.1", | ||
"ssml-jsx": "^1.3.2" | ||
} | ||
} |
@@ -102,3 +102,3 @@ # Alexa Response | ||
directly by including `babel-plugin-transform-react-jsx` in your `.babelrc` and | ||
importing `ssml` from [`alexa-ssml-jsx`](https://github.com/cameronhunter/alexa) in your source file. | ||
importing `ssml` from [`ssml-jsx`](https://github.com/cameronhunter/alexa) in your source file. | ||
@@ -115,3 +115,3 @@ ```json | ||
import Response from 'alexa-response'; | ||
import ssml from 'alexa-ssml-jsx'; | ||
import ssml from 'ssml-jsx'; | ||
@@ -118,0 +118,0 @@ Response.ask( |
@@ -1,2 +0,2 @@ | ||
import ssml, { renderToString } from 'alexa-ssml-jsx'; | ||
import ssml, { renderToString } from 'ssml-jsx'; | ||
import { CardType, SpeechType } from 'alexa-constants'; | ||
@@ -3,0 +3,0 @@ |
20649
+ Addedssml-jsx@^1.3.2
- Removedalexa-ssml-jsx@^1.3.1
- Removedalexa-ssml-jsx@1.4.2(transitive)