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

@synconset/factory-girl-typeorm

Package Overview
Dependencies
Maintainers
20
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@synconset/factory-girl-typeorm - npm Package Compare versions

Comparing version 2.1.1 to 2.2.0

.prettierrc

7

index.js

@@ -21,2 +21,5 @@ class TypeOrmAdapter {

await manager.query('PRAGMA foreign_keys = OFF;');
} else if (this.connection.options.type === 'postgres') {
await manager.query(`BEGIN;
ALTER TABLE "${modelRepo.metadata.tableName}" DISABLE TRIGGER ALL;`);
} else {

@@ -28,2 +31,6 @@ await manager.query('SET FOREIGN_KEY_CHECKS=0;');

return manager.query('PRAGMA foreign_keys = ON;');
} else if (this.connection.options.type === 'postgres') {
await manager.query(`
ALTER TABLE "${modelRepo.metadata.tableName}" ENABLE TRIGGER ALL;
COMMIT;`);
} else {

@@ -30,0 +37,0 @@ return manager.query('SET FOREIGN_KEY_CHECKS=1;');

2

package.json
{
"name": "@synconset/factory-girl-typeorm",
"version": "2.1.1",
"version": "2.2.0",
"description": "Typeorm adapter for factory-girl",

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

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