alexa-response
Advanced tools
Comparing version 4.2.7 to 4.2.8
@@ -45,5 +45,3 @@ 'use strict'; | ||
card(_ref) { | ||
var _ref$type = _ref.type; | ||
let type = _ref$type === undefined ? alexaConstants.CardType.Simple : _ref$type, | ||
let { type = alexaConstants.CardType.Simple } = _ref, | ||
rest = _objectWithoutProperties(_ref, ['type']); | ||
@@ -74,8 +72,3 @@ | ||
const directives = Array.isArray(directive) ? directive : [directive, ...rest]; | ||
var _ref2 = this.state.response || {}, | ||
_ref2$directives = _ref2.directives; | ||
const previousDirectives = _ref2$directives === undefined ? [] : _ref2$directives; | ||
const { directives: previousDirectives = [] } = this.state.response || {}; | ||
return new Response(_extends({}, this.state, { | ||
@@ -127,7 +120,4 @@ response: _extends({}, this.state.response, { | ||
const Directive = alexaConstants.AudioPlayer.Directive; | ||
const PlayBehavior = alexaConstants.AudioPlayer.PlayBehavior; | ||
const ClearBehavior = alexaConstants.AudioPlayer.ClearBehavior; | ||
const { Directive, PlayBehavior, ClearBehavior } = alexaConstants.AudioPlayer; | ||
var AudioPlayer$1 = { | ||
@@ -134,0 +124,0 @@ play(stream) { |
@@ -45,5 +45,3 @@ 'use strict'; | ||
card(_ref) { | ||
var _ref$type = _ref.type; | ||
let type = _ref$type === undefined ? alexaConstants.CardType.Simple : _ref$type, | ||
let { type = alexaConstants.CardType.Simple } = _ref, | ||
rest = _objectWithoutProperties(_ref, ['type']); | ||
@@ -74,8 +72,3 @@ | ||
const directives = Array.isArray(directive) ? directive : [directive, ...rest]; | ||
var _ref2 = this.state.response || {}, | ||
_ref2$directives = _ref2.directives; | ||
const previousDirectives = _ref2$directives === undefined ? [] : _ref2$directives; | ||
const { directives: previousDirectives = [] } = this.state.response || {}; | ||
return new Response(_extends({}, this.state, { | ||
@@ -127,7 +120,4 @@ response: _extends({}, this.state.response, { | ||
const Directive = alexaConstants.AudioPlayer.Directive; | ||
const PlayBehavior = alexaConstants.AudioPlayer.PlayBehavior; | ||
const ClearBehavior = alexaConstants.AudioPlayer.ClearBehavior; | ||
const { Directive, PlayBehavior, ClearBehavior } = alexaConstants.AudioPlayer; | ||
var AudioPlayer$1 = { | ||
@@ -134,0 +124,0 @@ play(stream) { |
{ | ||
"name": "alexa-response", | ||
"description": "Build JSON responses for Amazon Alexa, easily.", | ||
"version": "4.2.7", | ||
"version": "4.2.8", | ||
"repository": "https://github.com/cameronhunter/alexa/tree/master/packages/alexa-response", | ||
@@ -22,4 +22,4 @@ "author": "Cameron Hunter <hello@cameronhunter.co.uk>", | ||
"alexa-constants": "^0.4.1", | ||
"ssml-jsx": "^2.0.1" | ||
"ssml-jsx": "^2.0.2" | ||
} | ||
} |
20125
442
Updatedssml-jsx@^2.0.2