New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.5 to 1.0.1

CHANGELOG.md

8

dist/index.d.ts
import "colors";
import elasticSearch, { ClientOptions } from "@elastic/elasticsearch";
import { Model } from "sequelize-typescript";
import { ModelType } from "sequelize-typescript";
declare type SequelasticModelType = {
model: typeof Model;
model: ModelType<any, any>;
as?: string;

@@ -13,3 +13,3 @@ attributes?: string[] | {

declare type SequelasticConstructorProps = {
models: (typeof Model | SequelasticModelType)[];
models: (ModelType<any, any> | SequelasticModelType)[];
exclude?: string[];

@@ -48,3 +48,3 @@ } & ClientOptions;

elastic: elasticSearch.Client;
models: (SequelasticModelType | typeof Model)[];
models: (SequelasticModelType | ModelType<any, any>)[];
constructor(options: SequelasticConstructorProps);

@@ -51,0 +51,0 @@ sync(options?: SequelasticSyncOptions): Promise<any>;

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

@@ -34,3 +34,3 @@ "main": "dist/index.js",

"pluralize": "^8.0.0",
"sequelize-typescript": "^1.1.0",
"sequelize-typescript": "^2.1.0",
"tslib": "^2.2.0"

@@ -37,0 +37,0 @@ },

# Sequelastic
:warning: **This version only works with sequelize-typescript 1.1.x**
:warning: This only works with sequelize-typescript@2, in order to use it with sequelize-typescript@1 use:
```
npm install sequelastic@0.0.5
```
## The first sequelize-typescript and ElasticSearch bridge tool

@@ -6,0 +10,0 @@

import "colors";
import elasticSearch, { ClientOptions } from "@elastic/elasticsearch";
import pluralize from "pluralize";
import { Model } from "sequelize-typescript";
import { Model, ModelType } from "sequelize-typescript";
type SequelasticModelType = {
model: typeof Model;
model: ModelType<any, any>;
as?: string;

@@ -14,3 +14,3 @@ attributes?: string[] | { exclude: string[] };

type SequelasticConstructorProps = {
models: (typeof Model | SequelasticModelType)[];
models: (ModelType<any, any> | SequelasticModelType)[];
exclude?: string[];

@@ -55,3 +55,3 @@ } & ClientOptions;

public elastic: elasticSearch.Client;
public models: (SequelasticModelType | typeof Model)[];
public models: (SequelasticModelType | ModelType<any, any>)[];
#fieldsToExclude: string[];

@@ -92,3 +92,3 @@ // constructor(options: SqlasticConstructorProps) {

properties: parseSqlAttributesToElastic(
model.model.rawAttributes
(model.model as any as typeof Model).rawAttributes
),

@@ -101,3 +101,3 @@ },

index: pluralize.plural(
(model as typeof Model).name.toLowerCase()
(model as ModelType<any, any>).name.toLowerCase()
),

@@ -104,0 +104,0 @@ body: {

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