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

sequelize

Package Overview
Dependencies
Maintainers
8
Versions
624
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sequelize - npm Package Compare versions

Comparing version 7.0.0-alpha.4 to 7.0.0-alpha.5

8

dist/lib/associations/has-many.d.ts

@@ -212,4 +212,8 @@ import { DataType } from '../data-types';

*/
export type HasManyCreateAssociationMixin<TModel extends Model> = (
values?: TModel['_creationAttributes'],
export type HasManyCreateAssociationMixin<
TModel extends Model,
TForeignKey extends keyof TModel['_creationAttributes'] = never,
TScope extends keyof TModel['_creationAttributes'] = never
> = (
values?: Omit<TModel['_creationAttributes'], TForeignKey | TScope>,
options?: HasManyCreateAssociationMixinOptions

@@ -216,0 +220,0 @@ ) => Promise<TModel>;

@@ -132,3 +132,3 @@ "use strict";

validate(connection) {
return connection && connection.loggedIn;
return connection && (connection.loggedIn || connection.state.name === "LoggedIn");
}

@@ -135,0 +135,0 @@ }

@@ -166,3 +166,3 @@ 'use strict';

validate(connection) {
return connection && connection.loggedIn;
return connection && (connection.loggedIn || (connection.state.name === "LoggedIn"));
}

@@ -169,0 +169,0 @@ }

{
"name": "sequelize",
"description": "Sequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Amazon Redshift and Snowflake’s Data Cloud. It features solid transaction support, relations, eager and lazy loading, read replication and more.",
"version": "7.0.0-alpha.4",
"version": "7.0.0-alpha.5",
"funding": [

@@ -65,7 +65,7 @@ {

"@types/mocha": "9.0.0",
"@types/node": "16.11.17",
"@types/node": "16.11.18",
"@types/sinon": "10.0.6",
"@types/validator": "13.7.1",
"@typescript-eslint/eslint-plugin": "5.8.1",
"@typescript-eslint/parser": "5.8.1",
"@typescript-eslint/eslint-plugin": "5.9.0",
"@typescript-eslint/parser": "5.9.0",
"acorn": "8.7.0",

@@ -86,3 +86,3 @@ "chai": "4.3.4",

"eslint": "8.6.0",
"eslint-plugin-jsdoc": "37.5.0",
"eslint-plugin-jsdoc": "37.5.1",
"eslint-plugin-mocha": "10.0.3",

@@ -94,3 +94,3 @@ "expect-type": "0.12.0",

"lcov-result-merger": "3.1.0",
"lint-staged": "12.1.4",
"lint-staged": "12.1.5",
"mariadb": "2.5.5",

@@ -209,3 +209,3 @@ "markdownlint-cli": "0.30.0",

"publishConfig": {
"tag": "latest"
"tag": "alpha"
},

@@ -212,0 +212,0 @@ "scripts": {

@@ -36,12 +36,12 @@ <p align="center">

```sh
$ npm i sequelize # This will install v6
```bash
npm i sequelize # This will install latest version of Sequelize
# And one of the following:
$ npm i pg pg-hstore # Postgres
$ npm i mysql2
$ npm i mariadb
$ npm i sqlite3
$ npm i tedious # Microsoft SQL Server
$ npm i ibm_db #DB2
# Libraries used for supported dialects are :
npm i pg pg-hstore # PostgreSQL
npm i mysql2 # MySQL
npm i mariadb # MariaDB
npm i sqlite3 # SQLite
npm i tedious # Microsoft SQL Server
npm i ibm_db # DB2
```

@@ -51,4 +51,4 @@

- [v6 Documentation](https://sequelize.org/master)
- [v5/v4/v3 Documentation](https://sequelize.org)
- [Latest Version Documentation (v7)](https://sequelize.org/v7)
- [All Documentation Versions](https://sequelize.org)
- [Contributing](https://github.com/sequelize/sequelize/blob/main/CONTRIBUTING.md)

@@ -63,2 +63,3 @@

- [Changelog](https://github.com/sequelize/sequelize/releases)
- [Discussions](https://github.com/sequelize/sequelize/discussions)
- [Slack Inviter](http://sequelize-slack.herokuapp.com/)

@@ -65,0 +66,0 @@ - [Stack Overflow](https://stackoverflow.com/questions/tagged/sequelize.js)

@@ -212,4 +212,8 @@ import { DataType } from '../data-types';

*/
export type HasManyCreateAssociationMixin<TModel extends Model> = (
values?: TModel['_creationAttributes'],
export type HasManyCreateAssociationMixin<
TModel extends Model,
TForeignKey extends keyof TModel['_creationAttributes'] = never,
TScope extends keyof TModel['_creationAttributes'] = never
> = (
values?: Omit<TModel['_creationAttributes'], TForeignKey | TScope>,
options?: HasManyCreateAssociationMixinOptions

@@ -216,0 +220,0 @@ ) => Promise<TModel>;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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