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

@algolia/client-account

Package Overview
Dependencies
Maintainers
61
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@algolia/client-account - npm Package Compare versions

Comparing version 4.0.0-beta.15 to 4.0.0-beta.16

16

dist/client-account.cjs.js

@@ -5,2 +5,3 @@ 'use strict';

var clientCommon = require('@algolia/client-common');
var clientSearch = require('@algolia/client-search');

@@ -23,15 +24,2 @@

function createWaitablePromise(promise, wait = (_response, _requestOptions) => {
return Promise.resolve();
}) {
// eslint-disable-next-line functional/immutable-data
return Object.assign(promise, {
wait(requestOptions) {
return createWaitablePromise(promise
.then(response => Promise.all([wait(response, requestOptions), response]))
.then(promiseResults => promiseResults[1]));
},
});
}
const accountCopyIndex = (source, destination, requestOptions) => {

@@ -66,3 +54,3 @@ // eslint-disable-next-line functional/prefer-readonly-type

.then(() => Promise.resolve());
return createWaitablePromise(promise, () => Promise.all(responses.map(response => response.wait())));
return clientCommon.createWaitablePromise(promise, () => Promise.all(responses.map(response => response.wait())));
};

@@ -69,0 +57,0 @@

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

import { createWaitablePromise } from '@algolia/client-common';
import { exists, getSettings, setSettings, browseRules, saveRules, browseSynonyms, saveSynonyms, browseObjects, saveObjects } from '@algolia/client-search';

@@ -18,15 +19,2 @@

function createWaitablePromise(promise, wait = (_response, _requestOptions) => {
return Promise.resolve();
}) {
// eslint-disable-next-line functional/immutable-data
return Object.assign(promise, {
wait(requestOptions) {
return createWaitablePromise(promise
.then(response => Promise.all([wait(response, requestOptions), response]))
.then(promiseResults => promiseResults[1]));
},
});
}
const accountCopyIndex = (source, destination, requestOptions) => {

@@ -33,0 +21,0 @@ // eslint-disable-next-line functional/prefer-readonly-type

14

package.json
{
"name": "@algolia/client-account",
"version": "4.0.0-beta.15",
"version": "4.0.0-beta.16",
"private": false,
"license": "MIT",
"sideEffects": false,
"main": "index.js",
"module": "dist/client-account.esm.js",
"types": "dist/client-account.d.ts",
"files": [

@@ -10,9 +14,7 @@ "index.js",

],
"sideEffects": false,
"main": "index.js",
"module": "dist/client-account.esm.js",
"types": "dist/client-account.d.ts",
"dependencies": {
"@algolia/client-search": "4.0.0-beta.15"
"@algolia/client-common": "4.0.0-beta.16",
"@algolia/client-search": "4.0.0-beta.16",
"@algolia/transporter": "4.0.0-beta.16"
}
}
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