alexa-lambda-skill
Advanced tools
Comparing version 0.1.18 to 0.1.19
@@ -1,1 +0,1 @@ | ||
!function(t,e){for(var r in e)t[r]=e[r]}(exports,function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},u=r(12),i=n(u),c=r(2),a=n(c);e["default"]=o({Handler:i["default"]},a["default"]),t.exports=e["default"]},function(t,e){"use strict";var r=Function.prototype.toString,n=function(t){try{return r.call(t),!0}catch(e){return!1}},o=Object.prototype.toString,u="[object Function]",i="[object GeneratorFunction]",c="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){if("function"!=typeof t)return!1;if(c)return n(t);var e=o.call(t);return e===u||e===i}},function(t,e){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var n=Array.prototype.slice,o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),u=function(){function t(){r(this,t),this.state=Object.assign.apply(Object,[{shouldEndSession:!1}].concat(n.call(arguments)))}return o(t,[{key:"say",value:function(e){return new t(this.state,{outputSpeech:{type:"PlainText",text:e}})}},{key:"card",value:function(e,r){var n=arguments.length<=2||void 0===arguments[2]?"Simple":arguments[2];return new t(this.state,{card:{type:n,title:e,content:r}})}},{key:"reprompt",value:function(e){return new t(this.state,{reprompt:{outputSpeech:{type:"PlainText",text:e}}})}},{key:"shouldEndSession",value:function(e){return new t(this.state,{shouldEndSession:e})}}]),t}();e["default"]={Response:u,say:(new u).say,card:(new u).card,reprompt:(new u).reprompt,shouldEndSession:(new u).shouldEndSession},t.exports=e["default"]},function(t,e,r){"use strict";var n=r(9),o=r(20),u="function"==typeof Symbol&&"symbol"==typeof Symbol(),i=Object.prototype.toString,c=function(t){return"function"==typeof t&&"[object Function]"===i.call(t)},a=function(){var t={};try{Object.defineProperty(t,"x",{value:t,enumerable:!1});for(var e in t)return!1;return t.x===t}catch(r){return!1}},s=Object.defineProperty&&a(),l=function(t,e,r,n){(!(e in t)||c(n)&&n())&&(s?Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:!0,value:r}):t[e]=r)},f=function(t,e){var r=arguments.length>2?arguments[2]:{},i=n(e);u&&(i=i.concat(Object.getOwnPropertySymbols(e))),o(i,function(n){l(t,n,e[n],r[n])})};f.supportsDescriptors=!!s,t.exports=f},function(t,e){var r=Object.prototype.hasOwnProperty;t.exports=Object.assign||function(t,e){for(var n in e)r.call(e,n)&&(t[n]=e[n]);return t}},function(t,e){var r=Number.isNaN||function(t){return t!==t};t.exports=Number.isFinite||function(t){return"number"==typeof t&&!r(t)&&t!==1/0&&t!==-(1/0)}},function(t,e){t.exports=function(t,e){var r=t%e;return Math.floor(r>=0?r:r+e)}},function(t,e){t.exports=function(t){return t>=0?1:-1}},function(t,e){t.exports=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t}},function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,u=Array.prototype.slice,i=r(24),c=!{toString:null}.propertyIsEnumerable("toString"),a=function(){}.propertyIsEnumerable("prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(t){var e=t.constructor;return e&&e.prototype===t},f={$window:!0,$console:!0,$parent:!0,$self:!0,$frames:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0},p=function(){if("undefined"==typeof window)return!1;for(var t in window)if(!f["$"+t]&&n.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{l(window[t])}catch(e){return!0}return!1}(),b=function(t){if("undefined"==typeof window&&!p)return l(t);try{return l(t)}catch(e){return!1}},y=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===o.call(t),u=i(t),l=e&&"[object String]"===o.call(t),f=[];if(!e&&!r&&!u)throw new TypeError("Object.keys called on a non-object");var p=a&&r;if(l&&t.length>0&&!n.call(t,0))for(var y=0;y<t.length;++y)f.push(String(y));if(u&&t.length>0)for(var v=0;v<t.length;++v)f.push(String(v));else for(var m in t)p&&"prototype"===m||!n.call(t,m)||f.push(String(m));if(c)for(var h=b(t),g=0;g<s.length;++g)h&&"constructor"===s[g]||!n.call(t,s[g])||f.push(s[g]);return f};y.shim=function(){if(Object.keys){var t=function(){return 2===(Object.keys(arguments)||"").length}(1,2);if(!t){var e=Object.keys;Object.keys=function(t){return e(i(t)?u.call(t):t)}}}else Object.keys=y;return Object.keys||y},t.exports=y},function(t,e,r){"use strict";var n=r(16),o=r(9);t.exports=function(t){for(var e=n.RequireObjectCoercible(t),r=o(e),u=[],i=0;i<r.length;++i)u.push(e[r[i]]);return u}},function(t,e,r){"use strict";var n=r(10);t.exports=function(){return"function"==typeof Object.values?Object.values:n}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(t){var e=arguments.length<=1||void 0===arguments[1]?a["default"]:arguments[1];return function(r,n){var u=r.request,a=void 0===u?{}:u,l=r.session;l=void 0===l?{}:l;var p=l.attributes,b=void 0===p?{}:p,y=a.intent;y=void 0===y?{}:y;var v=y.slots,m=void 0===v?{}:v,h=e(a,t),g=h.handler,d=void 0===g?c.NotFound:g,j=f["default"](m).reduce(function(t,e){var r=e.name,n=e.value;return Object.assign({},t,o({},r,n))},{});Promise.resolve(d(j)).then(function(t){return t&&t instanceof s.Response?t.state:t}).then(function(t){var e=t?{version:"1.0",sessionAttributes:b,response:i({shouldEndSession:!0},t)}:void 0;n.succeed(e)})["catch"](function(t){n.fail(t||"Unknown error")})}}Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e["default"]=u;var c=r(13),a=n(c),s=r(2),l=r(25),f=n(l);t.exports=e["default"]},function(t,e){"use strict";function r(t,e){var r=t.type,c=t.reason,a=t.intent;a=void 0===a?{}:a;var s=a.name;return[r==n&&e[s],r==n&&e.intent&&e.intent.bind(e,s),r==o&&e.launch,r==u&&e.sessionEnded&&e.sessionEnded.bind(e,c),e.notFound||i].filter(function(t){return!!t})[0]}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=r;var n="IntentRequest",o="LaunchRequest",u="SessionEndedRequest",i=function(){return Promise.reject("404 Not Found")};e.NotFound=i},function(t,e,r){"use strict";var n=Number.isNaN||function(t){return t!==t},o=r(5),u=r(7),i=r(6),c=r(1),a=r(18),s={ToPrimitive:a,ToBoolean:function(t){return Boolean(t)},ToNumber:function(t){return Number(t)},ToInteger:function(t){var e=this.ToNumber(t);return n(e)?0:0!==e&&o(e)?u(e)*Math.floor(Math.abs(e)):e},ToInt32:function(t){return this.ToNumber(t)>>0},ToUint32:function(t){return this.ToNumber(t)>>>0},ToUint16:function(t){var e=this.ToNumber(t);if(n(e)||0===e||!o(e))return 0;var r=u(e)*Math.floor(Math.abs(e));return i(r,65536)},ToString:function(t){return String(t)},ToObject:function(t){return this.CheckObjectCoercible(t),Object(t)},CheckObjectCoercible:function(t,e){if(null==t)throw new TypeError(e||"Cannot call method on "+t);return t},IsCallable:c,SameValue:function(t,e){return t===e?0===t?1/t===1/e:!0:n(t)&&n(e)}};t.exports=s},function(t,e,r){"use strict";var n=Object.prototype.toString,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,u=o?Symbol.prototype.toString:n,i=Number.isNaN||function(t){return t!==t},c=r(5),a=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,s=r(4),l=r(7),f=r(6),p=r(17),b=r(19),y=parseInt,v=r(21),m=v.call(Function.call,String.prototype.slice),h=v.call(Function.call,RegExp.prototype.test,/^0b/i),g=v.call(Function.call,RegExp.prototype.test,/^0o/i),d=r(14),j=s(s({},d),{Call:function(t,e){var r=arguments.length>2?arguments[2]:[];if(!this.IsCallable(t))throw new TypeError(t+" is not a function");return t.apply(e,r)},ToPrimitive:b,ToNumber:function(t){var e=p(t)?t:b(t,"number");if("symbol"==typeof e)throw new TypeError("Cannot convert a Symbol value to a number");if("string"==typeof e){if(h(e))return Number(y(m(e,2),2));if(g(e))return Number(y(m(e,2),8))}return Number(e)},ToInt16:function(t){var e=this.ToUint16(t);return e>=32768?e-65536:e},ToInt8:function(t){var e=this.ToUint8(t);return e>=128?e-256:e},ToUint8:function(t){var e=this.ToNumber(t);if(i(e)||0===e||!c(e))return 0;var r=l(e)*Math.floor(Math.abs(e));return f(r,256)},ToUint8Clamp:function(t){var e=this.ToNumber(t);if(i(e)||0>=e)return 0;if(e>=255)return 255;var r=Math.floor(t);return e>r+.5?r+1:r+.5>e?r:r%2!==0?r+1:r},ToString:function(t){if("symbol"==typeof t)throw new TypeError("Cannot convert a Symbol value to a string");return String(t)},ToObject:function(t){return this.RequireObjectCoercible(t),Object(t)},ToPropertyKey:function(t){var e=this.ToPrimitive(t,String);return"symbol"==typeof e?u.call(e):this.ToString(e)},ToLength:function(t){var e=this.ToInteger(t);return 0>=e?0:e>a?a:e},CanonicalNumericIndexString:function(t){if("[object String]"!==n.call(t))throw new TypeError("must be a string");if("-0"===t)return-0;var e=this.ToNumber(t);return this.SameValue(this.ToString(e),t)?e:void 0},RequireObjectCoercible:d.CheckObjectCoercible,IsArray:Array.isArray||function(t){return"[object Array]"===n.call(t)},IsConstructor:function(t){return this.IsCallable(t)},IsExtensible:function(t){return Object.preventExtensions?p(t)?!1:Object.isExtensible(t):!0},IsInteger:function(t){if("number"!=typeof t||i(t)||!c(t))return!1;var e=Math.abs(t);return Math.floor(e)===e},IsPropertyKey:function(t){return"string"==typeof t||"symbol"==typeof t},IsRegExp:function(t){return"[object RegExp]"===n.call(t)},SameValueZero:function(t,e){return t===e||i(t)&&i(e)}});delete j.CheckObjectCoercible,t.exports=j},function(t,e,r){"use strict";var n=r(15),o=r(4),u=o(n,{});t.exports=u},function(t,e){t.exports=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t}},function(t,e,r){"use strict";var n=Object.prototype.toString,o=r(8);r(1);t.exports=function(t,e){if(o(t))return t;if(arguments.length<2&&(e="[object Date]"===n.call(t)?String:Number),e===String)return String(t);if(e===Number)return Number(t);throw new TypeError("invalid PreferredType supplied")}},function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=r(8),u=r(1),i=r(22),c=r(23),a=function(t,e){if(null==t)throw new TypeError("Cannot call method on "+t);if("string"!=typeof e||"number"!==e&&"string"!==e)throw new TypeError('hint must be "string" or "number"');var r,n,i,c="string"===e?["toString","valueOf"]:["valueOf","toString"];for(i=0;i<c.length;++i)if(r=t[c[i]],u(r)&&(n=r.call(t),o(n)))return n;throw new TypeError("No default value")};t.exports=function(t,e){if(o(t))return t;var r="default";arguments.length>1&&(e===String?r="string":e===Number&&(r="number"));var u;if(n){if(Symbol.toPrimitive)throw new TypeError("Symbol.toPrimitive not supported yet");c(t)&&(u=Symbol.prototype.valueOf)}if("undefined"!=typeof u){var s=u.call(t,r);if(o(s))return s;throw new TypeError("unable to convert exotic object to primitive")}return"default"===r&&(i(t)||c(t))&&(r="string"),a(t,"default"===r?"number":r)}},function(t,e){var r=Object.prototype.hasOwnProperty,n=Object.prototype.toString;t.exports=function(t,e,o){if("[object Function]"!==n.call(e))throw new TypeError("iterator must be a function");var u=t.length;if(u===+u)for(var i=0;u>i;i++)e.call(o,t[i],i,t);else for(var c in t)r.call(t,c)&&e.call(o,t[c],c,t)}},function(t,e){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,o=Object.prototype.toString,u="[object Function]";t.exports=function(t){var e=this;if("function"!=typeof e||o.call(e)!==u)throw new TypeError(r+e);for(var i=n.call(arguments,1),c=function(){if(this instanceof f){var r=e.apply(this,i.concat(n.call(arguments)));return Object(r)===r?r:this}return e.apply(t,i.concat(n.call(arguments)))},a=Math.max(0,e.length-i.length),s=[],l=0;a>l;l++)s.push("$"+l);var f=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(c);if(e.prototype){var p=function(){};p.prototype=e.prototype,f.prototype=new p,p.prototype=null}return f}},function(t,e){"use strict";var r=Date.prototype.getDay;t.exports=function(t){try{return r.call(t),!0}catch(e){return!1}}},function(t,e){"use strict";var r=Object.prototype.toString,n="function"==typeof Symbol&&"symbol"==typeof Symbol();if(n){var o=Symbol.prototype.toString,u=/^Symbol\(.*\)$/,i=function(t){return"symbol"!=typeof t.valueOf()?!1:u.test(o.call(t))};t.exports=function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==r.call(t))return!1;try{return i(t)}catch(e){return!1}}}else t.exports=function(t){return!1}},function(t,e){"use strict";var r=Object.prototype.toString;t.exports=function(t){var e=r.call(t),n="[object Arguments]"===e;return n||(n="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===r.call(t.callee)),n}},function(t,e,r){"use strict";var n=r(3),o=r(10),u=r(11),i=r(26);n(o,{getPolyfill:u,implementation:o,shim:i}),t.exports=o},function(t,e,r){"use strict";var n=r(11),o=r(3);t.exports=function(){var t=n();return o(Object,{values:t},{values:function(){return Object.values!==t}}),t}}])); | ||
!function(e,t){for(var n in t)e[n]=t[n]}(exports,function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(!function(){var e=new Error('Cannot find module "./lib/handler"');throw e.code="MODULE_NOT_FOUND",e}()),u=r(a),s=n(1),i=r(s);t["default"]=o({Handler:u["default"]},i["default"]),e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=Array.prototype.slice,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(){function e(){n(this,e),this.state=Object.assign.apply(Object,[{shouldEndSession:!1}].concat(r.call(arguments)))}return o(e,[{key:"say",value:function(t){return new e(this.state,{outputSpeech:{type:"PlainText",text:t}})}},{key:"card",value:function(t,n){var r=arguments.length<=2||void 0===arguments[2]?"Simple":arguments[2];return new e(this.state,{card:{type:r,title:t,content:n}})}},{key:"reprompt",value:function(t){return new e(this.state,{reprompt:{outputSpeech:{type:"PlainText",text:t}}})}},{key:"shouldEndSession",value:function(t){return new e(this.state,{shouldEndSession:t})}}]),e}();t["default"]={Response:a,say:(new a).say,card:(new a).card,reprompt:(new a).reprompt,shouldEndSession:(new a).shouldEndSession},e.exports=t["default"]}])); |
@@ -5,3 +5,3 @@ { | ||
"description": "Create Alexa Skills for AWS Lambda, easily.", | ||
"version": "0.1.18", | ||
"version": "0.1.19", | ||
"main": "dist/index.js", | ||
@@ -8,0 +8,0 @@ "license": "MIT", |
4423