@borodindmitriy/base-code
Advanced tools
| import { ObjectId } from "bson"; | ||
| import { IInsert } from "interfaces/IInsert"; | ||
| import { IInsert } from "../interfaces/IInsert"; | ||
| export declare function toMongo<T extends IInsert>(instance: T): { | ||
@@ -4,0 +4,0 @@ [key: string]: any; |
@@ -5,3 +5,3 @@ "use strict"; | ||
| const bson_1 = require("bson"); | ||
| const isType_1 = require("utils/isType"); | ||
| const isType_1 = require("../utils/isType"); | ||
| function toMongo(instance) { | ||
@@ -8,0 +8,0 @@ const _a = instance.toJS(), { id } = _a, data = tslib_1.__rest(_a, ["id"]); |
+4
-2
| { | ||
| "name": "@borodindmitriy/base-code", | ||
| "description": "Common classes's library.", | ||
| "version": "3.0.1", | ||
| "version": "3.0.2", | ||
| "engines": { | ||
@@ -11,3 +11,5 @@ "node": ">=8", | ||
| "types": "lib", | ||
| "files": ["lib"], | ||
| "files": [ | ||
| "lib" | ||
| ], | ||
| "publishConfig": { | ||
@@ -14,0 +16,0 @@ "registry": "https://registry.npmjs.org/", |
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 8 instances in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 8 instances in 1 package
144241
0.01%