@aeriajs/builtins 0.0.9 → 0.0.12

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 mongodb_1 = require("mongodb");
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 mongodb_1.ObjectId(fileId),
18
+ _id: new api_1.ObjectId(fileId),
19
19
  }, {
20
20
  projection: {
21
21
  absolute_path: 1,
@@ -122,7 +122,7 @@ function _ts_generator(thisArg, body) {
122
122
  };
123
123
  }
124
124
  }
125
- import { ObjectId } from "mongodb";
125
+ import { ObjectId } from "@aeriajs/api";
126
126
  import { left } from "@aeriajs/common";
127
127
  import fs from "fs";
128
128
  export var FileReadError;
@@ -1,5 +1,6 @@
1
- import type { Context, SchemaWithId, ObjectId } from '@aeriajs/types';
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/types';
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.9",
3
+ "version": "0.0.12",
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.9",
44
- "@aeriajs/access-control": "^0.0.3",
45
- "@aeriajs/entrypoint": "^0.0.3",
46
- "@aeriajs/common": "^0.0.3",
47
- "@aeriajs/types": "^0.0.2",
48
- "@aeriajs/validation": "^0.0.6"
43
+ "@aeriajs/api": "^0.0.12",
44
+ "@aeriajs/access-control": "^0.0.5",
45
+ "@aeriajs/entrypoint": "^0.0.5",
46
+ "@aeriajs/common": "^0.0.5",
47
+ "@aeriajs/types": "^0.0.4",
48
+ "@aeriajs/validation": "^0.0.8"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "echo skipping",