mikro-orm
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -29,3 +29,3 @@ import { ObjectID } from 'bson'; | ||
async init(em: EntityManager): Promise<BaseEntity> { | ||
await em.findOne(this.constructor.name, this.id); | ||
await em.findOne(this.constructor.name, this._id); | ||
@@ -32,0 +32,0 @@ return this; |
@@ -16,3 +16,3 @@ import { merge } from 'lodash'; | ||
meta.collection = target.name.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(); | ||
meta.entity = target; | ||
meta.entity = target.name; | ||
} | ||
@@ -19,0 +19,0 @@ |
@@ -44,3 +44,3 @@ import 'reflect-metadata'; | ||
if (!this.options.logger) { | ||
this.options.logger = () => null; | ||
this.options.logger = (): void => null; | ||
} | ||
@@ -47,0 +47,0 @@ |
{ | ||
"name": "mikro-orm", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Simple typescript mongo ORM for node.js based on data-mapper, unit-of-work and identity-map patterns", | ||
@@ -57,4 +57,2 @@ "main": "dist/index.js", | ||
"reflect-metadata": "^0.1.12", | ||
"ts-node": "^6.0.5", | ||
"tslint": "^5.10.0", | ||
"typescript": "^2.8.3" | ||
@@ -67,3 +65,2 @@ }, | ||
"@types/lodash": "^4.14.109", | ||
"@types/mocha": "^5.2.0", | ||
"@types/mongodb": "^3.0.18", | ||
@@ -76,5 +73,6 @@ "@types/node": "^10.1.2", | ||
"mikro-config": "^1.2.2", | ||
"mocha": "^5.2.0", | ||
"ts-jest": "^22.4.6" | ||
"ts-jest": "^22.4.6", | ||
"ts-node": "^6.0.5", | ||
"tslint": "^5.10.0" | ||
} | ||
} |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
82768
6
62
2090
3
- Removedts-node@^6.0.5
- Removedtslint@^5.10.0
- Removed@babel/code-frame@7.26.2(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedargparse@1.0.10(transitive)
- Removedarrify@1.0.1(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removedbuiltin-modules@1.1.1(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedcommander@2.20.3(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removeddiff@3.5.04.0.2(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedesprima@4.0.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedglob@7.2.3(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedinflight@1.0.6(transitive)
- Removedis-core-module@2.15.1(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjs-yaml@3.14.1(transitive)
- Removedmake-error@1.3.6(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedresolve@1.22.8(transitive)
- Removedsemver@5.7.2(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedsource-map-support@0.5.21(transitive)
- Removedsprintf-js@1.0.3(transitive)
- Removedsupports-color@5.5.0(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedts-node@6.2.0(transitive)
- Removedtslib@1.14.1(transitive)
- Removedtslint@5.20.1(transitive)
- Removedtsutils@2.29.0(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedyn@2.0.0(transitive)