@todesktop/client-util
Advanced tools
Comparing version 1.0.0-alpha26 to 1.0.0-alpha27
@@ -192,5 +192,5 @@ /** | ||
construct: <NS_1 = NamespacesStaticV1, NSName_1 extends keyof NS_1 = keyof NS_1, Func_1 = NS_1[NSName_1]>(command: Func_1 extends ConstructorFunc ? InvokeConstructorCommand<NSName_1, Func_1> : never) => Promise<InstanceRefObject>; | ||
releaseMemory: (memoryRefs: string[]) => any; | ||
releaseMemory: (memoryRefs: string[]) => Promise<void>; | ||
}; | ||
export { checkIfCompatibleWithPlugin } from "./checkIfCompatibleWithPlugin.js"; | ||
export { checkIfCompatibleWithBackend } from "./checkIfCompatibleWithBackend.js"; |
@@ -67,2 +67,7 @@ /** | ||
if (checkIfCompatibleWithBackend("releaseMemory", "4.6.0")) { | ||
if (!(memoryRefs === null || memoryRefs === void 0 ? void 0 : memoryRefs.length)) { | ||
// eslint-disable-next-line no-console | ||
console.log("No memory references to release"); | ||
return; | ||
} | ||
return window["todesktop"]["releaseMemory"](memoryRefs); | ||
@@ -69,0 +74,0 @@ } |
{ | ||
"name": "@todesktop/client-util", | ||
"version": "1.0.0-alpha26", | ||
"version": "1.0.0-alpha27", | ||
"description": "Utility functions for ToDesktop client libraries", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
23938
562