@remult/angular
Advanced tools
Comparing version 2.0.25 to 2.0.26
{ | ||
"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(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1154062