@aeriajs/builtins 0.0.65 → 0.0.67

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.
@@ -1,34 +1,14 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
24
4
  };
25
5
  Object.defineProperty(exports, "__esModule", { value: true });
26
6
  exports.insert = void 0;
27
- const bcrypt = __importStar(require("bcrypt"));
7
+ const bcrypt_1 = __importDefault(require("bcrypt"));
28
8
  const core_1 = require("@aeriajs/core");
29
9
  const insert = async (payload, context) => {
30
10
  if (payload.what.password) {
31
- payload.what.password = await bcrypt.hash(payload.what.password, 10);
11
+ payload.what.password = await bcrypt_1.default.hash(payload.what.password, 10);
32
12
  }
33
13
  return core_1.functions.insert(payload, context);
34
14
  };
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- import * as bcrypt from "bcrypt";
2
+ import bcrypt from "bcrypt";
3
3
  import { functions } from "@aeriajs/core";
4
4
  export const insert = async (payload, context) => {
5
5
  if (payload.what.password) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/builtins",
3
- "version": "0.0.65",
3
+ "version": "0.0.67",
4
4
  "description": "## Installation",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "devDependencies": {
39
39
  "@aeriajs/access-control": "^0.0.36",
40
- "@aeriajs/core": "^0.0.65",
40
+ "@aeriajs/core": "^0.0.67",
41
41
  "@aeriajs/common": "^0.0.36",
42
42
  "@aeriajs/entrypoint": "^0.0.36",
43
43
  "@aeriajs/types": "^0.0.33",
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@aeriajs/access-control": "^0.0.36",
50
- "@aeriajs/core": "^0.0.65",
50
+ "@aeriajs/core": "^0.0.67",
51
51
  "@aeriajs/common": "^0.0.36",
52
52
  "@aeriajs/entrypoint": "^0.0.36",
53
53
  "@aeriajs/types": "^0.0.33",