neru-alpha
Advanced tools
Comparing version 0.0.16 to 0.0.17
{ | ||
"name": "neru-alpha", | ||
"type": "module", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"description": "", | ||
@@ -49,5 +49,5 @@ "main": "dist/cjs/index.js", | ||
"eslint-plugin-prettier": "3.4.0", | ||
"typescript": "^4.3.2", | ||
"prettier": "^2.3.1" | ||
"prettier": "^2.3.1", | ||
"typescript": "^4.3.2" | ||
} | ||
} |
@@ -159,2 +159,23 @@ import { Instance } from '../instance.js'; | ||
deleteMember = (memberId: string): RequestInterface => { | ||
const action: Action<object> = { | ||
provider: Providers.Conversation, | ||
action: ConversationActions.InvokeCsApi, | ||
description: 'Delete Member', | ||
payload: { | ||
url: `/conversations/${this.id}/members/${memberId}`, | ||
method: `PATCH`, | ||
neruCID: this.name, | ||
csBody: { | ||
state: "left", | ||
reason: { | ||
code: '123', | ||
text: 'leaving conversation' | ||
} | ||
}, | ||
} | ||
}; | ||
return new RequestInterface(this.instance, action); | ||
}; | ||
sayText = (params: SayTextParams): RequestInterface => { | ||
@@ -215,3 +236,3 @@ const action: Action<SayTextPayload> = { | ||
playStream = (params: PlayStreamParams, to: string): RequestInterface => { | ||
playStream = (params: PlayStreamParams, to?: string): RequestInterface => { | ||
const action: Action<PlayStreamPayload> = { | ||
@@ -227,3 +248,2 @@ provider: Providers.Conversation, | ||
type: Events.AudioPlay, | ||
to: to, | ||
body: params, | ||
@@ -233,2 +253,3 @@ }, | ||
}; | ||
if (to) action.payload.csBody.to = to; | ||
return new RequestInterface(this.instance, action); | ||
@@ -235,0 +256,0 @@ }; |
@@ -110,3 +110,3 @@ import { WrappedCallback } from '.'; | ||
type: Events.AudioPlay; | ||
to: string; | ||
to?: string; | ||
body: { | ||
@@ -113,0 +113,0 @@ level: number; |
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
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
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 7 instances in 1 package
1
60849
30
1748
1