Comparing version 0.0.3 to 0.0.4
@@ -144,4 +144,6 @@ var target$1 = 'Actions on Google'; | ||
this.getParameter = function (key) { return (_this.parameters ? _this.parameters[key] : undefined); }; | ||
this.request = request; | ||
this.handleRequest(request); | ||
if (request) { | ||
this.request = request; | ||
this.handleRequest(request); | ||
} | ||
} | ||
@@ -148,0 +150,0 @@ Conversation.prototype.useAdapter = function (adapter, map) { |
@@ -148,4 +148,6 @@ 'use strict'; | ||
this.getParameter = function (key) { return (_this.parameters ? _this.parameters[key] : undefined); }; | ||
this.request = request; | ||
this.handleRequest(request); | ||
if (request) { | ||
this.request = request; | ||
this.handleRequest(request); | ||
} | ||
} | ||
@@ -152,0 +154,0 @@ Conversation.prototype.useAdapter = function (adapter, map) { |
import type { Response, ParseMap, Adapter, AdapterWithMap } from './types'; | ||
declare class Conversation { | ||
locale: string; | ||
request: Record<string, unknown>; | ||
request: Record<string, unknown> | undefined; | ||
parameters: Record<string, unknown>; | ||
@@ -13,3 +13,3 @@ intent: string | undefined; | ||
useAdapter(adapter: Adapter, map?: ParseMap): this; | ||
constructor(request: Record<string, unknown>); | ||
constructor(request?: Record<string, unknown>); | ||
canHandleRequest(request: Record<string, unknown>): boolean; | ||
@@ -16,0 +16,0 @@ handleRequest(request: Record<string, unknown>): void; |
{ | ||
"name": "ssml-dom", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "A work-in-progress implementation of a DOM-like API for SSML", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
64802
694