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

@remult/angular

Package Overview
Dependencies
Maintainers
2
Versions
305
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remult/angular - npm Package Compare versions

Comparing version 2.0.25 to 2.0.26

2

package.json
{
"name": "@remult/angular",
"schematics": "./schematics/collection.json",
"version": "2.0.25",
"version": "2.0.26",
"description": "an angular module for remult",

@@ -6,0 +6,0 @@ "license": "MIT",

import '../app.module';
import { Pool } from 'pg';

@@ -7,6 +6,3 @@ import { config } from 'dotenv';

import * as passwordHash from 'password-hash';
import '../app.module';
import { Users } from '../users/users';

@@ -20,2 +16,10 @@ import { SqlDatabase } from '@remult/core';

config();
Users.passwordHelper = {
generateHash: p => passwordHash.generate(p),
verify: (p, h) => passwordHash.verify(p, h)
}
if (process.env.logSqls) {
SqlDatabase.LogToConsole = true;
}
let ssl: boolean | ConnectionOptions = {

@@ -27,6 +31,2 @@ rejectUnauthorized: false

if (process.env.logSqls) {
SqlDatabase.LogToConsole = true;
}
if (!process.env.DATABASE_URL) {

@@ -40,6 +40,3 @@ console.log("No DATABASE_URL environment variable found, if you are developing locally, please add a '.env' with DATABASE_URL='postgres://*USERNAME*:*PASSWORD*@*HOST*:*PORT*/*DATABASE*'");

});
Users.passwordHelper = {
generateHash: p => passwordHash.generate(p),
verify: (p, h) => passwordHash.verify(p, h)
}
let result = new SqlDatabase(new PostgresDataProvider(pool));

@@ -46,0 +43,0 @@ await new PostgresSchemaBuilder(result).verifyStructureOfAllEntities();

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