New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

actions-on-google

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

actions-on-google - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

2

dist/common.d.ts

@@ -33,2 +33,4 @@ /// <reference types="debug" />

/** @hidden */
export declare const deprecate: (feature: string, alternative: string) => void;
/** @hidden */
export interface JsonObject {

@@ -35,0 +37,0 @@ [key: string]: any;

@@ -31,2 +31,4 @@ "use strict";

/** @hidden */
exports.deprecate = (feature, alternative) => exports.info(`${feature} is *DEPRECATED*: ${alternative}`);
/** @hidden */
exports.values = (o) => Object.keys(o).map(k => o[k]);

@@ -33,0 +35,0 @@ /** @hidden */

15

dist/service/actionssdk/conversation/user.d.ts

@@ -143,7 +143,2 @@ /**

/**
* Random string ID for Google user.
* @public
*/
id: string;
/**
* The user locale. String represents the regional language

@@ -168,3 +163,3 @@ * information of the user set in their Assistant settings.

* your published Android apps. To enable this feature, see the instructions
* in the (documentation)[https://developers.google.com/actions/identity/digital-goods].
* in the {@link https://developers.google.com/actions/identity/digital-goods|documentation}.
* @public

@@ -177,2 +172,4 @@ */

profile: Profile;
/** @hidden */
_id: string;
/**

@@ -234,2 +231,8 @@ * Gets the user profile email.

_verifyProfile(client: OAuth2Client, id: string): Promise<TokenPayload | undefined>;
/**
* Random string ID for Google user.
* @deprecated Use {@link User#storage|conv.user.storage} instead.
* @public
*/
id: string;
}

@@ -26,2 +26,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
const common = require("../../../common");
class Last {

@@ -98,4 +99,16 @@ /** @hidden */

}
/**
* Random string ID for Google user.
* @deprecated Use {@link User#storage|conv.user.storage} instead.
* @public
*/
get id() {
common.deprecate('conv.user.id', 'Use conv.user.storage to store data instead');
return this._id;
}
set id(value) {
this._id = value;
}
}
exports.User = User;
//# sourceMappingURL=user.js.map

@@ -6,3 +6,3 @@ {

"types": "dist/index.d.ts",
"version": "2.1.2",
"version": "2.1.3",
"license": "Apache-2.0",

@@ -44,2 +44,3 @@ "author": "Google Inc.",

"devDependencies": {
"@types/sinon": "^4.3.3",
"ava": "^0.25.0",

@@ -49,2 +50,3 @@ "concurrently": "^3.5.1",

"nyc": "^11.6.0",
"sinon": "^5.0.8",
"tslint": "^5.9.1",

@@ -51,0 +53,0 @@ "tslint-eslint-rules": "^5.1.0",

# Actions on Google Client Library
This client library makes it easy to create your apps for the Google Assistant, and
supports both Dialogflow fulfillment and the Actions SDK webhook.
This client library makes it easy to create Actions for the Google Assistant and
supports Dialogflow, Actions SDK, and Smart Home fulfillment.

@@ -84,2 +84,42 @@ * [Client Library GitHub repo](https://github.com/actions-on-google/actions-on-google-nodejs)

### Smart Home
```javascript
// Import the appropriate service
const { smarthome } = require('actions-on-google')
// Create an app instance
const app = smarthome()
// Register handlers for Smart Home intents
app.onExecute(body => {
return {
requestId: 'ff36...',
payload: {
// ...
},
}
})
app.onQuery(body => {
return {
requestId: 'ff36...',
payload: {
// ...
},
}
})
app.onSync(body => {
return {
requestId: 'ff36...',
payload: {
// ...
},
}
})
```
### Frameworks

@@ -139,4 +179,5 @@

This library supports the following Services:
* Dialogflow v1 and v2
* Actions SDK **v2 only**
* [Dialogflow](https://dialogflow.com/docs/fulfillment) v1 and v2
* [Actions SDK](https://developers.google.com/actions/sdk/fulfillment) **v2 only**
* [Smart Home](https://developers.google.com/actions/smarthome/create-app#provide-fulfillment)

@@ -143,0 +184,0 @@ ### Actions SDK

@@ -37,2 +37,6 @@ /**

/** @hidden */
export const deprecate = (feature: string, alternative: string) =>
info(`${feature} is *DEPRECATED*: ${alternative}`)
/** @hidden */
export interface JsonObject {

@@ -39,0 +43,0 @@ // tslint:disable-next-line:no-any JSON value can be anything

@@ -20,2 +20,3 @@ /**

import { LoginTicket, TokenPayload } from 'google-auth-library/build/src/auth/loginticket'
import * as common from '../../../common'

@@ -177,8 +178,2 @@ export class Last {

/**
* Random string ID for Google user.
* @public
*/
id: string
/**
* The user locale. String represents the regional language

@@ -207,3 +202,3 @@ * information of the user set in their Assistant settings.

* your published Android apps. To enable this feature, see the instructions
* in the (documentation)[https://developers.google.com/actions/identity/digital-goods].
* in the {@link https://developers.google.com/actions/identity/digital-goods|documentation}.
* @public

@@ -219,2 +214,5 @@ */

/** @hidden */
_id: string
/**

@@ -304,2 +302,16 @@ * Gets the user profile email.

}
/**
* Random string ID for Google user.
* @deprecated Use {@link User#storage|conv.user.storage} instead.
* @public
*/
get id() {
common.deprecate('conv.user.id', 'Use conv.user.storage to store data instead')
return this._id
}
set id(value) {
this._id = value
}
}

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc