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

sequelastic

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sequelastic - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

4

dist/index.d.ts

@@ -20,2 +20,4 @@ import "colors";

wholeResponse?: true;
from?: number;
size?: number;
};

@@ -26,2 +28,4 @@ declare type SequelasticSearchOptions = {

wholeResponse?: false;
from?: number;
size?: number;
};

@@ -28,0 +32,0 @@ declare type SequelasticSyncOptions = {

3

dist/index.js

@@ -24,3 +24,2 @@ "use strict";

const toExclude = tslib_1.__classPrivateFieldGet(this, _fieldsToExclude);
console.log("🚀 ~ file: index.ts ~ line 21 ~ Sequelastic ~ sync ~ toExclude", toExclude);
const allDbPromises = [];

@@ -163,2 +162,4 @@ const allIndiciesCreationPromises = [];

},
from: (options === null || options === void 0 ? void 0 : options.from) ? options.from : 0,
size: (options === null || options === void 0 ? void 0 : options.size) ? options.size : 10,
query: {

@@ -165,0 +166,0 @@ query_string: {

{
"name": "sequelastic",
"version": "0.0.3",
"version": "0.0.4",
"description": "bridge utility between sequelize-typescript and ElasticSearch",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -92,2 +92,3 @@ # Sequelastic

this function will sync your database with the elasticSearch service using the following method:
- Deleting all the pre-existing indices

@@ -98,3 +99,3 @@ - Recreating all the indices using as index name the plural of the model name

```typescript
sequelastic.sync() => void
sequelastic.sync() => Promise<boolean>
```

@@ -106,4 +107,2 @@

</br>

@@ -115,3 +114,3 @@

this function will search in elasticSearch using the search type [query_string](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html)
this function will search in elasticSearch using the search type [query_string](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html)

@@ -130,3 +129,2 @@ ```typescript

</br>

@@ -194,6 +192,6 @@

| fuzziness | "AUTO" \| [number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number?retiredLocale=it) | search [fuzziness](https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#fuzziness) | "AUTO" |
| wholeResponse | boolean | get as return the whole search response or only the hits | false |
| wholeResponse | [boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean?retiredLocale=it) | get as return the whole search response or only the hits | false |
| from | [number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number?retiredLocale=it) | offset from the first result | 0 |
| size | [number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number?retiredLocale=it) | maximum amount of hits to be returned | 10 |
</br>
---

@@ -21,2 +21,4 @@ import "colors";

wholeResponse?: true;
from?: number;
size?: number;
};

@@ -27,2 +29,4 @@ type SequelasticSearchOptions = {

wholeResponse?: false;
from?: number;
size?: number;
};

@@ -54,6 +58,2 @@

const toExclude = this.#fieldsToExclude;
console.log(
"🚀 ~ file: index.ts ~ line 21 ~ Sequelastic ~ sync ~ toExclude",
toExclude
);
const allDbPromises: Promise<any>[] = [];

@@ -231,2 +231,4 @@ const allIndiciesCreationPromises: Promise<any>[] = [];

},
from: options?.from ? options.from : 0,
size: options?.size ? options.size : 10,
query: {

@@ -233,0 +235,0 @@ query_string: {

Sorry, the diff of this file is not supported yet

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