ask-sdk-core
Advanced tools
Comparing version 2.6.0 to 2.7.0
@@ -6,2 +6,21 @@ # Change Log | ||
# [2.7.0](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/compare/v2.6.0...v2.7.0) (2019-08-01) | ||
### Bug Fixes | ||
* change the getSlotValue util function to return null when slot is not present ([#573](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/issues/573)) ([1321407](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/commit/1321407)) | ||
* export getUserId() at index.ts of both ask-sdk-core and ask-sdk([#561](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/issues/561)) ([b4b0980](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/commit/b4b0980)) | ||
* fixing the comment for getSlotValue util function ([#567](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/issues/567)) ([89173bc](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/commit/89173bc)) | ||
### Features | ||
* Add TypeScript Generics on the getSessionAttributes Method ([#554](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/issues/554)) ([0824495](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/commit/0824495)) | ||
* add appendAdditionalUserAgent function to customSkill in ask-sdk-core ([#575](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/issues/575)) ([7bbd7a6](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/commit/7bbd7a6)) | ||
# [2.6.0](https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/compare/v2.5.2...v2.6.0) (2019-05-29) | ||
@@ -8,0 +27,0 @@ |
@@ -16,5 +16,5 @@ /** | ||
*/ | ||
getSessionAttributes(): { | ||
getSessionAttributes<T = { | ||
[key: string]: any; | ||
}; | ||
}>(): T; | ||
/** | ||
@@ -21,0 +21,0 @@ * Provides persistent attributes retrieved and cached from persistence adapter. |
@@ -25,3 +25,3 @@ export { AttributesManager } from './attributes/AttributesManager'; | ||
export { escapeXmlCharacters, } from './util/SsmlUtils'; | ||
export { getAccountLinkingAccessToken, getApiAccessToken, getDeviceId, getDialogState, getIntentName, getLocale, getRequestType, getSlot, getSlotValue, getSupportedInterfaces, isNewSession, } from './util/RequestEnvelopeUtils'; | ||
export { getAccountLinkingAccessToken, getApiAccessToken, getDeviceId, getUserId, getDialogState, getIntentName, getLocale, getRequestType, getSlot, getSlotValue, getSupportedInterfaces, isNewSession, } from './util/RequestEnvelopeUtils'; | ||
export { createAskSdkError, createAskSdkUserAgent, } from 'ask-sdk-runtime'; |
@@ -50,2 +50,3 @@ "use strict"; | ||
exports.getDeviceId = RequestEnvelopeUtils_1.getDeviceId; | ||
exports.getUserId = RequestEnvelopeUtils_1.getUserId; | ||
exports.getDialogState = RequestEnvelopeUtils_1.getDialogState; | ||
@@ -52,0 +53,0 @@ exports.getIntentName = RequestEnvelopeUtils_1.getIntentName; |
@@ -15,5 +15,8 @@ "use strict"; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
var extendStatics = function (d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
@@ -20,0 +23,0 @@ extendStatics(d, b); |
@@ -15,5 +15,8 @@ "use strict"; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
var extendStatics = function (d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
@@ -20,0 +23,0 @@ extendStatics(d, b); |
@@ -29,2 +29,7 @@ import { RequestEnvelope, Response, ResponseEnvelope, services } from 'ask-sdk-model'; | ||
supports(input: any, context?: any): boolean; | ||
/** | ||
* Append additional user agent info | ||
* @param userAgent | ||
*/ | ||
appendAdditionalUserAgent(userAgent: string): void; | ||
} |
@@ -124,2 +124,9 @@ "use strict"; | ||
}; | ||
/** | ||
* Append additional user agent info | ||
* @param userAgent | ||
*/ | ||
CustomSkill.prototype.appendAdditionalUserAgent = function (userAgent) { | ||
this.customUserAgent = this.customUserAgent ? (this.customUserAgent + " " + userAgent) : userAgent; | ||
}; | ||
return CustomSkill; | ||
@@ -126,0 +133,0 @@ }()); |
@@ -14,9 +14,12 @@ "use strict"; | ||
*/ | ||
var __assign = (this && this.__assign) || Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
@@ -23,0 +26,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -14,9 +14,12 @@ "use strict"; | ||
*/ | ||
var __assign = (this && this.__assign) || Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
@@ -23,0 +26,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -107,3 +107,3 @@ import { RequestEnvelope, Slot, SupportedInterfaces } from 'ask-sdk-model'; | ||
* This method attempts to retrieve the requested {@link Slot}'s value from the incoming request. If the slot does not | ||
* exist in the request, a null value will be returned. | ||
* exist in the request, a null will be returned. | ||
* | ||
@@ -110,0 +110,0 @@ * @param {RequestEnvelope} requestEnvelope |
@@ -161,3 +161,3 @@ "use strict"; | ||
* This method attempts to retrieve the requested {@link Slot}'s value from the incoming request. If the slot does not | ||
* exist in the request, a null value will be returned. | ||
* exist in the request, a null will be returned. | ||
* | ||
@@ -174,3 +174,3 @@ * @param {RequestEnvelope} requestEnvelope | ||
} | ||
throw ask_sdk_runtime_1.createAskSdkError('RequestEnvelopeUtils', "Cannot find slot with name " + slotName + "."); | ||
return null; | ||
} | ||
@@ -177,0 +177,0 @@ throw ask_sdk_runtime_1.createAskSdkError('RequestEnvelopeUtils', "Expecting request type of IntentRequest but got " + getRequestType(requestEnvelope) + "."); |
{ | ||
"name": "ask-sdk-core", | ||
"version": "2.6.0", | ||
"version": "2.7.0", | ||
"description": "Core package for Alexa Skills Kit SDK", | ||
@@ -27,3 +27,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"ask-sdk-runtime": "^2.4.0" | ||
"ask-sdk-runtime": "^2.7.0" | ||
}, | ||
@@ -37,3 +37,3 @@ "peerDependencies": { | ||
"@types/node": "^9.6.1", | ||
"@types/sinon": "^4.3.0", | ||
"@types/sinon": "^7.0.13", | ||
"ask-sdk-model": "^1.9.0", | ||
@@ -45,7 +45,7 @@ "chai": "^4.1.2", | ||
"nock": "^9.2.3", | ||
"nyc": "^13.0.1", | ||
"sinon": "^4.5.0", | ||
"nyc": "^14.1.1", | ||
"sinon": "^7.0.13", | ||
"ts-node": "^6.0.1", | ||
"tslint": "^5.9.1", | ||
"typescript": "^2.8.1" | ||
"typescript": "^3.5.3" | ||
}, | ||
@@ -55,3 +55,3 @@ "repository": "github:alexa/alexa-skills-kit-sdk-for-nodejs", | ||
"homepage": "https://github.com/alexa/alexa-skill-sdk-for-nodejs#readme", | ||
"gitHead": "976e0a1d03588f471cdd1c201d037867619e5487" | ||
"gitHead": "f985f07cb46abf232fa3449efee02df31dbad41d" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
164203
2461
Updatedask-sdk-runtime@^2.7.0