@aeriajs/builtins 0.0.9 → 0.0.10
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.
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.download = exports.FileReadError = void 0;
|
|
7
|
-
const
|
|
7
|
+
const api_1 = require("@aeriajs/api");
|
|
8
8
|
const common_1 = require("@aeriajs/common");
|
|
9
9
|
const fs_1 = __importDefault(require("fs"));
|
|
10
10
|
var FileReadError;
|
|
@@ -15,7 +15,7 @@ var FileReadError;
|
|
|
15
15
|
const download = async (payload, context) => {
|
|
16
16
|
const { fileId, options = [] } = payload;
|
|
17
17
|
const file = await context.collection.model.findOne({
|
|
18
|
-
_id: new
|
|
18
|
+
_id: new api_1.ObjectId(fileId),
|
|
19
19
|
}, {
|
|
20
20
|
projection: {
|
|
21
21
|
absolute_path: 1,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { Context, SchemaWithId
|
|
1
|
+
import type { Context, SchemaWithId } from '@aeriajs/types';
|
|
2
2
|
import type { description } from './description.js';
|
|
3
|
+
import { type ObjectId } from '@aeriajs/api';
|
|
3
4
|
type Props = {
|
|
4
5
|
email: string;
|
|
5
6
|
password: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ObjectId } from '@aeriajs/
|
|
1
|
+
import type { ObjectId } from '@aeriajs/api';
|
|
2
2
|
export declare const getActivationLink: (userId: ObjectId) => Promise<string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/builtins",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "## Installation",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"mongodb": "^6.1.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@aeriajs/api": "^0.0.
|
|
44
|
-
"@aeriajs/access-control": "^0.0.
|
|
45
|
-
"@aeriajs/entrypoint": "^0.0.
|
|
46
|
-
"@aeriajs/common": "^0.0.
|
|
47
|
-
"@aeriajs/types": "^0.0.
|
|
48
|
-
"@aeriajs/validation": "^0.0.
|
|
43
|
+
"@aeriajs/api": "^0.0.10",
|
|
44
|
+
"@aeriajs/access-control": "^0.0.4",
|
|
45
|
+
"@aeriajs/entrypoint": "^0.0.4",
|
|
46
|
+
"@aeriajs/common": "^0.0.4",
|
|
47
|
+
"@aeriajs/types": "^0.0.3",
|
|
48
|
+
"@aeriajs/validation": "^0.0.7"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "echo skipping",
|