@luminix/core 0.0.1-beta.12 → 0.0.1-beta.14

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.
package/dist/core.js CHANGED
@@ -807,7 +807,9 @@ class P {
807
807
  return _(this), this;
808
808
  }
809
809
  unique(e) {
810
- return c(typeof e == "string" ? h(this, o).filter((t, r) => !h(this, o).some((i, s) => i[e] == t[e] && s !== r)) : [...new Set(h(this, o))]);
810
+ return c(
811
+ typeof e == "string" ? [...new Set(h(this, o).map((t) => t[e]))].map((t) => h(this, o).find((r) => r[e] === t)) : [...new Set(h(this, o))]
812
+ );
811
813
  }
812
814
  uniqueStrict(e) {
813
815
  return c(typeof e == "string" ? h(this, o).filter((t, r) => !h(this, o).some((i, s) => i[e] === t[e] && s !== r)) : [...new Set(h(this, o))]);
@@ -143,6 +143,7 @@ export interface ModelSchemaAttributes {
143
143
  primaryKey: string;
144
144
  timestamps: boolean;
145
145
  labeledBy: string;
146
+ softDeletes: boolean;
146
147
  [key: string]: any;
147
148
  }
148
149
  export interface RelationMetaData {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luminix/core",
3
- "version": "0.0.1-beta.12",
3
+ "version": "0.0.1-beta.14",
4
4
  "description": "> Projeto em desenvolvimento",
5
5
  "main": "dist/core.js",
6
6
  "types": "dist/index.d.ts",