@atscript/mongo 0.1.20 → 0.1.22
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/index.d.ts +2 -6
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { TAtscriptPlugin } from '@atscript/core';
|
|
|
2
2
|
import * as mongodb from 'mongodb';
|
|
3
3
|
import { MongoClient, Collection, ObjectId, InsertOneOptions, ReplaceOptions, UpdateOptions, Filter } from 'mongodb';
|
|
4
4
|
import * as _atscript_typescript_annotated_type from '@atscript/typescript/annotated-type';
|
|
5
|
-
import { TAtscriptAnnotatedType, Validator, TValidatorOptions, TAtscriptTypeObject, TMetadataMap } from '@atscript/typescript/utils';
|
|
5
|
+
import { TAtscriptAnnotatedType, TAtscriptDataType, Validator, TValidatorOptions, TAtscriptTypeObject, TMetadataMap } from '@atscript/typescript/utils';
|
|
6
6
|
|
|
7
7
|
declare const MongoPlugin: () => TAtscriptPlugin;
|
|
8
8
|
|
|
@@ -41,11 +41,7 @@ interface TSearchIndex {
|
|
|
41
41
|
}
|
|
42
42
|
type TIndex = TPlainIndex | TSearchIndex;
|
|
43
43
|
type TValidatorPurpose = 'insert' | 'update' | 'patch';
|
|
44
|
-
declare class AsCollection<T extends TAtscriptAnnotatedType = TAtscriptAnnotatedType, DataType = T
|
|
45
|
-
type: {
|
|
46
|
-
__dataType?: infer D;
|
|
47
|
-
};
|
|
48
|
-
} ? unknown extends D ? T extends new (...args: any[]) => infer I ? I : unknown : D : unknown> {
|
|
44
|
+
declare class AsCollection<T extends TAtscriptAnnotatedType = TAtscriptAnnotatedType, DataType = TAtscriptDataType<T>> {
|
|
49
45
|
protected readonly asMongo: AsMongo;
|
|
50
46
|
protected readonly _type: T;
|
|
51
47
|
protected readonly logger: TGenericLogger;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/mongo",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.22",
|
|
4
4
|
"description": "Mongodb plugin for atscript.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"atscript",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"mongodb": "^6.17.0",
|
|
40
|
-
"@atscript/core": "^0.1.
|
|
41
|
-
"@atscript/typescript": "^0.1.
|
|
40
|
+
"@atscript/core": "^0.1.22",
|
|
41
|
+
"@atscript/typescript": "^0.1.22"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"pub": "pnpm publish --access public",
|