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

pilas-bloques-models

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pilas-bloques-models - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

4

dist/index.d.ts

@@ -7,6 +7,6 @@ import { User } from "./src/user";

import { Challenge } from "./src/challenge";
import { UserModel, MongooseUserModel } from "./src/user";
import { UserModel } from "./src/user";
import { ChallengeModel } from "./src/challenge";
import { CompleteSolutionModel } from "./src/solution";
import { ContextModel } from "./src/context";
export { BaseSolution, CompleteSolution, Context, User, Challenge, UserModel, ChallengeModel, BaseSolutionModel, ContextModel, CompleteSolutionModel, MongooseUserModel };
export { BaseSolution, CompleteSolution, Context, User, Challenge, UserModel, ChallengeModel, BaseSolutionModel, ContextModel, CompleteSolutionModel };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MongooseUserModel = exports.CompleteSolutionModel = exports.ContextModel = exports.BaseSolutionModel = exports.ChallengeModel = exports.UserModel = exports.Challenge = exports.User = exports.Context = exports.CompleteSolution = exports.BaseSolution = void 0;
exports.CompleteSolutionModel = exports.ContextModel = exports.BaseSolutionModel = exports.ChallengeModel = exports.UserModel = exports.Challenge = exports.User = exports.Context = exports.CompleteSolution = exports.BaseSolution = void 0;
var user_1 = require("./src/user");

@@ -18,3 +18,2 @@ Object.defineProperty(exports, "User", { enumerable: true, get: function () { return user_1.User; } });

Object.defineProperty(exports, "UserModel", { enumerable: true, get: function () { return user_2.UserModel; } });
Object.defineProperty(exports, "MongooseUserModel", { enumerable: true, get: function () { return user_2.MongooseUserModel; } });
var challenge_2 = require("./src/challenge");

@@ -21,0 +20,0 @@ Object.defineProperty(exports, "ChallengeModel", { enumerable: true, get: function () { return challenge_2.ChallengeModel; } });

@@ -1,2 +0,2 @@

import { Ref, mongoose } from '@typegoose/typegoose';
import { Ref } from '@typegoose/typegoose';
import { Schema } from 'mongoose';

@@ -25,3 +25,3 @@ import { Context } from './context';

}
export declare const BaseSolutionModel: mongoose.Model<mongoose.Document, {}>;
export declare const CompleteSolutionModel: mongoose.Model<mongoose.Document, {}>;
export declare const BaseSolutionModel: import("@typegoose/typegoose").ReturnModelType<typeof BaseSolution, import("@typegoose/typegoose/lib/types").BeAnObject>;
export declare const CompleteSolutionModel: import("@typegoose/typegoose").ReturnModelType<typeof CompleteSolution, import("@typegoose/typegoose/lib/types").BeAnObject>;

@@ -59,3 +59,3 @@ "use strict";

BaseSolution = __decorate([
typegoose_1.modelOptions({ options: { allowMixed: typegoose_1.Severity.ALLOW } })
typegoose_1.modelOptions({ schemaOptions: { collection: 'solutions' }, options: { allowMixed: typegoose_1.Severity.ALLOW } })
], BaseSolution);

@@ -87,3 +87,3 @@ return BaseSolution;

CompleteSolution = __decorate([
typegoose_1.modelOptions({ options: { allowMixed: typegoose_1.Severity.ALLOW } })
typegoose_1.modelOptions({ schemaOptions: { collection: 'solutions' }, options: { allowMixed: typegoose_1.Severity.ALLOW } })
], CompleteSolution);

@@ -93,5 +93,3 @@ return CompleteSolution;

exports.CompleteSolution = CompleteSolution;
//export const BaseSolutionModel = getModelForClass<typeof BaseSolution>(BaseSolution)
//export const CompleteSolutionModel = getModelForClass<typeof CompleteSolution>(CompleteSolution)
exports.BaseSolutionModel = typegoose_1.mongoose.connection.model('BaseSolutionModel', typegoose_1.getModelForClass(BaseSolution).schema, "solutions");
exports.CompleteSolutionModel = typegoose_1.mongoose.connection.model('CompleteSolutionModel', typegoose_1.getModelForClass(CompleteSolution).schema, "solutions");
exports.BaseSolutionModel = typegoose_1.getModelForClass(BaseSolution);
exports.CompleteSolutionModel = typegoose_1.getModelForClass(CompleteSolution);

@@ -31,4 +31,3 @@ import { ReturnModelType, mongoose } from '@typegoose/typegoose';

}
export declare const MongooseUserModel: mongoose.Model<mongoose.Document, {}>;
export declare const UserModel: ReturnModelType<typeof User, import("@typegoose/typegoose/lib/types").BeAnObject>;
export {};

@@ -27,3 +27,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.UserModel = exports.MongooseUserModel = exports.User = void 0;
exports.UserModel = exports.User = void 0;
var typegoose_1 = require("@typegoose/typegoose");

@@ -112,3 +112,2 @@ var defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");

exports.User = User;
exports.MongooseUserModel = typegoose_1.mongoose.connection.model('UserModel', typegoose_1.getModelForClass(User).schema, "users");
exports.UserModel = typegoose_1.getModelForClass(User);
{
"name": "pilas-bloques-models",
"version": "1.2.0",
"version": "1.2.1",
"description": "Pilas Bloques models for development.",

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

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