New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.3 to 1.6.4

28

dist/entities/Character/Character.model.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.toClientCharacter = exports.ClientCharacter = exports.DBCharacter = exports.characterSchema = void 0;
const mongoose_1 = require("mongoose");
const mongoose_plugin_autoinc_fix_1 = require("mongoose-plugin-autoinc-fix");
const mongoosePluginAutoIncrement = __importStar(require("mongoose-plugin-autoinc-fix"));
console.log(typeof mongoosePluginAutoIncrement.autoIncrement);
exports.characterSchema = new mongoose_1.Schema({

@@ -25,3 +49,3 @@ accountIdentifier: { type: String, required: true },

}, { timestamps: true })
.plugin(mongoose_plugin_autoinc_fix_1.autoIncrement, { model: 'Character', field: 'cid', startAt: 1, incrementBy: 1, unique: true })
.plugin(mongoosePluginAutoIncrement.autoIncrement, { model: 'Character', field: 'cid', startAt: 1, incrementBy: 1, unique: true })
.index({ accountIdentifier: 1 }, { background: true })

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

2

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

@@ -5,0 +5,0 @@ "main": "dist/index.js",

import { ClientEntity } from '@test137e29b/fm-mongoose-repository/dist/repository/types';
import { Schema, Types } from 'mongoose';
import { autoIncrement } from 'mongoose-plugin-autoinc-fix';
import * as mongoosePluginAutoIncrement from 'mongoose-plugin-autoinc-fix';
import { TLocationWithHeading } from '../..';
import { CharacterClothing, CharacterClothingProps, CharacterFaceFeatures, CharacterHair, CharacterHeadBlend, CharacterHeadOverlay } from './Character.types';
console.log(typeof mongoosePluginAutoIncrement.autoIncrement)
export const characterSchema: Schema = new Schema(

@@ -29,3 +31,3 @@ {

)
.plugin(autoIncrement, { model: 'Character', field: 'cid', startAt: 1, incrementBy: 1, unique: true })
.plugin(mongoosePluginAutoIncrement.autoIncrement, { model: 'Character', field: 'cid', startAt: 1, incrementBy: 1, unique: true })
.index({ accountIdentifier: 1 }, { background: true })

@@ -32,0 +34,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