@snowtop/ent 0.1.0-alpha43 → 0.1.0-alpha44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -187,8 +187,7 @@ class ObjectLoaderFactory {
187
187
  constructor(options) {
188
188
  this.options = options;
189
189
  this.toPrime = [];
190
- // we don't wanna do it here because we want it to be delayed
191
- let instanceKey = "";
190
+ let instanceKey = options.instanceKey || "";
192
191
  if (typeof this.options.clause === "function") {
193
192
  if (!options.instanceKey) {
194
193
  throw new Error(`need to pass an instanceKey to ObjectLoader if clause is a function`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snowtop/ent",
3
- "version": "0.1.0-alpha43",
3
+ "version": "0.1.0-alpha44",
4
4
  "description": "snowtop ent framework",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",