Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@todesktop/client-util

Package Overview
Dependencies
Maintainers
3
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@todesktop/client-util - npm Package Compare versions

Comparing version 1.0.0-alpha21 to 1.0.0-alpha22

3

checkIfCompatibleWithBackend.test.js

@@ -1,2 +0,3 @@

import { checkIfCompatibleWithBackend, createIsNotCompatibleHelper, } from "./checkIfCompatibleWithBackend";
/* eslint-env jest */
import { checkIfCompatibleWithBackend, createIsNotCompatibleHelper, } from "./checkIfCompatibleWithBackend.js";
const mockedConsole = jest.spyOn(console, "warn").mockImplementation();

@@ -3,0 +4,0 @@ beforeEach(() => {

@@ -1,2 +0,3 @@

import { checkIfCompatibleWithPlugin } from "./checkIfCompatibleWithPlugin";
/* eslint-env jest */
import { checkIfCompatibleWithPlugin } from "./checkIfCompatibleWithPlugin.js";
const mockedConsole = jest.spyOn(console, "warn").mockImplementation();

@@ -3,0 +4,0 @@ beforeEach(() => {

@@ -20,4 +20,8 @@ /**

}>(eventMappings: E) => (event: "*" | keyof E, callback: (...any: any[]) => void) => void;
export declare type MethodFunc = (...args: any[]) => unknown;
export declare type ConstructorFunc = new (...args: any) => any;
export type MethodFunc = (...args: any[]) => unknown;
export type ConstructorFunc = new (...args: unknown[]) => unknown;
/**
* TODO: At some point we may went to add out whitelist to the type system.
* For now, the whitelist is only defined in desktopify.
*/
export interface NamespacesInstancesV1 {

@@ -51,7 +55,7 @@ BrowserWindow: BrowserWindow;

}
declare type ChangeInstancesToInstanceRefsSingle<T> = T extends NamespacesInstancesV1[keyof NamespacesInstancesV1] ? InstanceRefObject : T;
declare type ChangeInstancesToInstanceRefsInParams<Obj> = {
type ChangeInstancesToInstanceRefsSingle<T> = T extends NamespacesInstancesV1[keyof NamespacesInstancesV1] ? InstanceRefObject : T;
type ChangeInstancesToInstanceRefsInParams<Obj> = {
[K in keyof Obj]: ChangeInstancesToInstanceRefsSingle<Obj[K]>;
};
declare type ChangeInstancesToInstanceRefs<T> = T extends any[] ? ChangeInstancesToInstanceRefsInParams<T> : ChangeInstancesToInstanceRefsSingle<T>;
type ChangeInstancesToInstanceRefs<T> = T extends unknown[] ? ChangeInstancesToInstanceRefsInParams<T> : ChangeInstancesToInstanceRefsSingle<T>;
/**

@@ -105,5 +109,9 @@ * @internal

/**
* A refernce to the instance on which to access the property
* A reference to the instance on which to access the property
*/
instanceRef?: IR;
/**
* A value to assign to the property
*/
value?: unknown;
}

@@ -110,0 +118,0 @@ /**

{
"name": "@todesktop/client-util",
"version": "1.0.0-alpha21",
"version": "1.0.0-alpha22",
"description": "Utility functions for ToDesktop client libraries",
"main": "index.js",
"type": "module",
"types": "index.d.ts",
"scripts": {

@@ -22,2 +23,3 @@ "lint:fix": "npm run lint:check -- --fix",

"devDependencies": {
"@types/jest": "^29.2.0",
"agadoo": "^2.0.0",

@@ -24,0 +26,0 @@ "typescript": "^4.7.2"

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