Socket
Socket
Sign inDemoInstall

cohere-js

Package Overview
Dependencies
0
Maintainers
4
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.18 to 1.0.19

4

es/index.js

@@ -54,2 +54,4 @@ const hookInputSetter = (target, key) => {

"widget",
"addSessionUrlListener",
"removeSessionUrlListener",
];

@@ -67,2 +69,4 @@ const noop = () => { };

widget: noop,
addSessionUrlListener: noop,
removeSessionUrlListener: noop,
};

@@ -69,0 +73,0 @@ // Create cohere or pass in previous args to init/initialize

@@ -56,2 +56,4 @@ 'use strict';

"widget",
"addSessionUrlListener",
"removeSessionUrlListener",
];

@@ -69,2 +71,4 @@ const noop = () => { };

widget: noop,
addSessionUrlListener: noop,
removeSessionUrlListener: noop,
};

@@ -71,0 +75,0 @@ // Create cohere or pass in previous args to init/initialize

5

package.json
{
"name": "cohere-js",
"version": "1.0.18",
"version": "1.0.19",
"description": "Cohere.so JS SDK",

@@ -10,3 +10,4 @@ "main": "lib/index.js",

"build": "rollup -c",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"prepublishOnly": "npm run build"
},

@@ -13,0 +14,0 @@ "repository": {

@@ -11,2 +11,3 @@ declare type UserAttrs = {

};
declare type CallStateValue = "closed" | "dialing" | "inCall" | "missed" | "ended";
declare type CohereExports = {

@@ -19,7 +20,9 @@ init: (apiKey: string, options?: InitOptions) => void;

makeCall: () => void;
addCallStatusListener: (cb?: any) => void;
removeCallStatusListener: (cb?: any) => void;
addCallStatusListener: (listener: (callState: CallStateValue) => void) => void;
removeCallStatusListener: (listener: (callState: CallStateValue) => void) => void;
widget: (action: string) => void;
addSessionUrlListener: (listener: (sessionUrl: string) => void) => void;
removeSessionUrlListener: (listener: (sessionUrl: string) => void) => void;
};
declare const exportedModule: CohereExports;
export default exportedModule;
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc