Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@test137e29b/module-hrp-database-types

Package Overview
Dependencies
Maintainers
0
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@test137e29b/module-hrp-database-types - npm Package Compare versions

Comparing version 1.6.6 to 1.6.7

26

dist/entities/Character/Character.model.d.ts

@@ -25,30 +25,4 @@ /// <reference types="mongoose/types/types" />

/// <reference types="mongoose/types/virtuals" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/aggregate" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/callback" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/collection" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/connection" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/cursor" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/document" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/error" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/expressions" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/helpers" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/middlewares" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/indexes" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/models" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/mongooseoptions" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/pipelinestage" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/populate" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/query" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/schemaoptions" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/schematypes" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/session" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/types" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/utility" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/validation" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/virtuals" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose" />
/// <reference types="mongoose-sequence" />
/// <reference types="mongoose/types/inferrawdoctype" />
/// <reference types="mongoose/types/inferschematype" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/inferschematype" />
import { ClientEntity } from '@test137e29b/fm-mongoose-repository/dist/repository/types';

@@ -55,0 +29,0 @@ import { Schema, Types } from 'mongoose';

10

dist/entities/Character/Character.model.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.toClientCharacter = exports.ClientCharacter = exports.DBCharacter = exports.characterSchema = void 0;
const mongoose_1 = require("mongoose");
const mongoose_sequence_1 = __importDefault(require("mongoose-sequence"));
const mongoose_plugin_autoinc_fix_1 = require("mongoose-plugin-autoinc-fix");
exports.characterSchema = new mongoose_1.Schema({
accountIdentifier: { type: String, required: true },
cid: { type: Number },
cid: { type: Number, autoIncrement: true },
firstName: { type: String, required: true },

@@ -28,4 +25,3 @@ lastName: { type: String, required: true },

}, { timestamps: true })
// @ts-expect-error
.plugin((0, mongoose_sequence_1.default)(exports.characterSchema), { inc_field: 'cid' })
.plugin(mongoose_plugin_autoinc_fix_1.autoIncrement, { model: 'Character', field: 'cid', startAt: 1, incrementBy: 1, unique: false })
.index({ accountIdentifier: 1 }, { background: true })

@@ -32,0 +28,0 @@ .index({ firstName: 1, lastName: 1 }, { background: true });

@@ -25,30 +25,4 @@ /// <reference types="mongoose/types/connection" />

/// <reference types="mongoose/types/virtuals" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/aggregate" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/callback" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/collection" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/connection" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/cursor" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/document" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/error" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/expressions" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/helpers" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/middlewares" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/indexes" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/models" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/mongooseoptions" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/pipelinestage" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/populate" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/query" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/schemaoptions" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/schematypes" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/session" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/types" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/utility" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/validation" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/virtuals" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose" />
/// <reference types="mongoose-sequence" />
/// <reference types="mongoose/types/inferrawdoctype" />
/// <reference types="mongoose/types/inferschematype" />
/// <reference types=".pnpm/mongoose@6.13.3_@aws-sdk+client-sso-oidc@3.666.0_@aws-sdk+client-sts@3.666.0_/node_modules/mongoose/types/inferschematype" />
import { MongoRepository } from '@test137e29b/fm-mongoose-repository/dist';

@@ -55,0 +29,0 @@ import { ClientEntity } from '@test137e29b/fm-mongoose-repository/dist/repository/types';

{
"name": "@test137e29b/module-hrp-database-types",
"version": "1.6.6",
"version": "1.6.7",
"description": "Database Types and Exported Repository Wrappers for HorizonRP on FiveM.",

@@ -23,7 +23,6 @@ "main": "dist/index.js",

"mongoose": "8.6.0",
"mongoose-sequence": "^6.0.1"
"mongoose-plugin-autoinc-fix": "1.2.1"
},
"devDependencies": {
"@citizenfx/server": "2.0.6063-1",
"@types/mongoose-sequence": "^3.0.11",
"@types/node": "20.14.3",

@@ -30,0 +29,0 @@ "@typescript-eslint/eslint-plugin": "5.62.0",

import { ClientEntity } from '@test137e29b/fm-mongoose-repository/dist/repository/types';
import { Schema, Types } from 'mongoose';
import Inc from 'mongoose-sequence';
import { autoIncrement } from 'mongoose-plugin-autoinc-fix';
import { TLocationWithHeading } from '../..';

@@ -10,3 +10,3 @@ import { CharacterClothing, CharacterClothingProps, CharacterFaceFeatures, CharacterHair, CharacterHeadBlend, CharacterHeadOverlay } from './Character.types';

accountIdentifier: { type: String, required: true },
cid: { type: Number },
cid: { type: Number, autoIncrement: true },
firstName: { type: String, required: true },

@@ -30,4 +30,3 @@ lastName: { type: String, required: true },

)
// @ts-expect-error
.plugin(Inc(characterSchema), { inc_field: 'cid' })
.plugin(autoIncrement, { model: 'Character', field: 'cid', startAt: 1, incrementBy: 1, unique: false })
.index({ accountIdentifier: 1 }, { background: true })

@@ -34,0 +33,0 @@ .index({ firstName: 1, lastName: 1 }, { background: true });

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc