cohere-js
Advanced tools
Comparing version 1.0.18 to 1.0.19
@@ -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 |
{ | ||
"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; |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
8988
239