uranio 0.1.50 → 0.1.51

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.
@@ -8,10 +8,9 @@
8
8
  import { ObjectId } from 'mongodb';
9
9
  export interface atom {
10
10
  }
11
- export type primary<T> = T;
12
11
  export type mongodb_id = ObjectId;
13
12
  export interface mysql_atom extends atom {
14
13
  }
15
14
  export interface mongodb_atom extends atom {
16
- _id: primary<string>;
15
+ _id: ObjectId;
17
16
  }
@@ -5,5 +5,5 @@
5
5
  * @packageDocumentation
6
6
  *
7
7
  */
8
- import { atom, primary, mongodb_id } from './atom';
9
- export { atom, primary, mongodb_id };
8
+ import { atom, mongodb_id } from './atom';
9
+ export { atom, mongodb_id };
@@ -28,6 +28,6 @@
28
28
  "typescript": "^5.2.2"
29
29
  },
30
30
  "dependencies": {
31
- "uranio": "0.1.50"
31
+ "uranio": "0.1.51"
32
32
  }
33
33
  }
@@ -10,14 +10,14 @@ import {ObjectId} from 'mongodb';
10
10
 
11
11
  export interface atom {}
12
12
 
13
- export type primary<T> = T;
13
+ // export type primary<T> = T;
14
14
 
15
15
  export type mongodb_id = ObjectId;
16
16
 
17
17
  export interface mysql_atom extends atom {}
18
18
 
19
19
  export interface mongodb_atom extends atom {
20
- _id: primary<string>;
20
+ _id: ObjectId
21
21
  }
22
22
 
23
23
  // export type unique<T> = T & {__uranio: 'unique'};
@@ -6,5 +6,5 @@
6
6
  *
7
7
  */
8
8
 
9
- import {atom, primary, mongodb_id} from './atom';
10
- export {atom, primary, mongodb_id};
9
+ import {atom, mongodb_id} from './atom';
10
+ export {atom, mongodb_id};
@@ -13,8 +13,6 @@ export type Where<A extends atom> = {
13
13
  type Condition<T> = AlternativeType<T> | FilterOperators<AlternativeType<T>>;
14
14
 
15
15
  type AlternativeType<T> =
16
- // T extends primary<infer P> ?
17
- // P | RegExpOrString<P> :
18
16
  T extends ReadonlyArray<infer U>
19
17
  ? T | RegExpOrString<U>
20
18
  : RegExpOrString<T>;
package/dist/main.d.ts CHANGED
@@ -10,4 +10,3 @@ export * from '.uranio';
10
10
  * directly in uranio, plutonio cannot infer them correctly. Therefor they are
11
11
  * re-defined here
12
12
  */
13
- export type primary<T> = T;
package/dist/main.js CHANGED
@@ -21,4 +21,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
21
21
  };
22
22
  Object.defineProperty(exports, "__esModule", { value: true });
23
23
  __exportStar(require(".uranio"), exports);
24
+ /**
25
+ * Type used to define an Atom, if they are defined in .uranio libs istead of
26
+ * directly in uranio, plutonio cannot infer them correctly. Therefor they are
27
+ * re-defined here
28
+ */
29
+ // export type primary<T> = T;
24
30
  //# sourceMappingURL=main.js.map
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,0CAAwB"}
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,0CAAwB;AAExB;;;;GAIG;AACH,8BAA8B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uranio",
3
- "version": "0.1.50",
3
+ "version": "0.1.51",
4
4
  "description": "Uranio is a type-safe ODM for MongoDB",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
package/src/main.ts CHANGED
@@ -12,4 +12,4 @@ export * from '.uranio';
12
12
  * directly in uranio, plutonio cannot infer them correctly. Therefor they are
13
13
  * re-defined here
14
14
  */
15
- export type primary<T> = T;
15
+ // export type primary<T> = T;