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

@algolia/client-common

Package Overview
Dependencies
Maintainers
60
Versions
237
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@algolia/client-common - npm Package Compare versions

Comparing version 4.5.1 to 4.6.0

9

dist/client-common.cjs.js

@@ -59,8 +59,9 @@ 'use strict';

function addMethods(base, methods) {
Object.keys(methods !== undefined ? methods : {}).forEach(key => {
// @ts-ignore
if (!methods) {
return base;
}
Object.keys(methods).forEach(key => {
// eslint-disable-next-line functional/immutable-data, no-param-reassign
base[key] = methods[key](base);
});
// @ts-ignore
return base;

@@ -74,3 +75,3 @@ }

const version = '4.5.1';
const version = '4.6.0';

@@ -77,0 +78,0 @@ const destroy = (base) => {

@@ -8,8 +8,8 @@ import { Headers } from '@algolia/transporter';

export declare function addMethods<TBase, TMethods extends {
readonly [key: string]: (base: TBase) => (...args: any) => any;
}>(base: TBase, methods?: TMethods): TBase & {
[key in keyof TMethods extends string ? keyof TMethods : never]: ReturnType<TMethods[key]>;
declare type AddedMethods<TBase, TMethods extends Methods<TBase>> = TBase & {
[TKey in keyof TMethods extends string ? keyof TMethods : never]: ReturnType<TMethods[TKey]>;
};
export declare function addMethods<TBase extends {}, TMethods extends Methods<TBase>>(base: TBase, methods?: TMethods): AddedMethods<TBase, TMethods>;
export declare type Auth = {

@@ -71,5 +71,9 @@ /**

declare type Methods<TBase> = {
readonly [key: string]: (base: TBase) => (...args: any[]) => any;
};
export declare function shuffle<TData>(array: TData[]): TData[];
export declare const version = "4.5.1";
export declare const version = "4.6.0";

@@ -76,0 +80,0 @@ export declare type Wait<TResponse> = (

@@ -55,8 +55,9 @@ function createAuth(authMode, appId, apiKey) {

function addMethods(base, methods) {
Object.keys(methods !== undefined ? methods : {}).forEach(key => {
// @ts-ignore
if (!methods) {
return base;
}
Object.keys(methods).forEach(key => {
// eslint-disable-next-line functional/immutable-data, no-param-reassign
base[key] = methods[key](base);
});
// @ts-ignore
return base;

@@ -70,3 +71,3 @@ }

const version = '4.5.1';
const version = '4.6.0';

@@ -73,0 +74,0 @@ const destroy = (base) => {

{
"name": "@algolia/client-common",
"version": "4.5.1",
"version": "4.6.0",
"private": false,

@@ -19,5 +19,5 @@ "repository": {

"dependencies": {
"@algolia/requester-common": "4.5.1",
"@algolia/transporter": "4.5.1"
"@algolia/requester-common": "4.6.0",
"@algolia/transporter": "4.6.0"
}
}
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