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.
- package/.uranio/dist/types/atom.d.ts +1 -2
- package/.uranio/dist/types/index.d.ts +2 -2
- package/.uranio/package.json +1 -1
- package/.uranio/src/types/atom.ts +2 -2
- package/.uranio/src/types/index.ts +2 -2
- package/.uranio/src/types/where.ts +0 -2
- package/dist/main.d.ts +0 -1
- package/dist/main.js +6 -0
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
- package/src/main.ts +1 -1
|
@@ -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:
|
|
15
|
+
_id: ObjectId;
|
|
17
16
|
}
|
package/.uranio/package.json
CHANGED
|
@@ -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:
|
|
20
|
+
_id: ObjectId
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
// export type unique<T> = T & {__uranio: 'unique'};
|
|
@@ -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
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
package/src/main.ts
CHANGED