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

@tsed/cli-plugin-mongoose

Package Overview
Dependencies
Maintainers
0
Versions
300
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsed/cli-plugin-mongoose - npm Package Compare versions

Comparing version 6.0.0-beta.1 to 6.0.0-beta.2

10

lib/esm/CliPluginMongooseModule.js
import { __decorate, __metadata } from "tslib";
import { Module, OnAdd, ProjectPackageJson } from "@tsed/cli-core";
import { Inject } from "@tsed/di";
import { inject, Module, OnAdd, ProjectPackageJson } from "@tsed/cli-core";
import { MongooseGenerateHook } from "./hooks/MongooseGenerateHook.js";

@@ -8,2 +7,5 @@ import { MongooseInitHook } from "./hooks/MongooseInitHook.js";

let CliPluginMongooseModule = class CliPluginMongooseModule {
constructor() {
this.packageJson = inject(ProjectPackageJson);
}
install() {

@@ -20,6 +22,2 @@ this.packageJson.addDependencies({

__decorate([
Inject(),
__metadata("design:type", ProjectPackageJson)
], CliPluginMongooseModule.prototype, "packageJson", void 0);
__decorate([
OnAdd("@tsed/cli-plugin-mongoose"),

@@ -26,0 +24,0 @@ __metadata("design:type", Function),

22

lib/esm/hooks/MongooseGenerateHook.js
var MongooseGenerateHook_1;
import { __decorate, __metadata } from "tslib";
import { ProvidersInfoService } from "@tsed/cli";
import { CliDockerComposeYaml, Inject, OnExec, ProjectPackageJson, SrcRendererService } from "@tsed/cli-core";
import { CliDockerComposeYaml, inject, OnExec, ProjectPackageJson, SrcRendererService } from "@tsed/cli-core";
import { Injectable } from "@tsed/di";

@@ -14,2 +14,6 @@ import { camelCase, kebabCase } from "change-case";

this.providersInfoService = providersInfoService;
this.projectPackageJson = inject(ProjectPackageJson);
this.srcRenderService = inject(SrcRendererService);
this.cliMongoose = inject(CliMongoose);
this.cliDockerComposeYaml = inject(CliDockerComposeYaml);
providersInfoService

@@ -76,18 +80,2 @@ .add({

__decorate([
Inject(),
__metadata("design:type", ProjectPackageJson)
], MongooseGenerateHook.prototype, "projectPackageJson", void 0);
__decorate([
Inject(),
__metadata("design:type", SrcRendererService)
], MongooseGenerateHook.prototype, "srcRenderService", void 0);
__decorate([
Inject(),
__metadata("design:type", CliMongoose)
], MongooseGenerateHook.prototype, "cliMongoose", void 0);
__decorate([
Inject(),
__metadata("design:type", CliDockerComposeYaml)
], MongooseGenerateHook.prototype, "cliDockerComposeYaml", void 0);
__decorate([
OnExec("generate"),

@@ -94,0 +82,0 @@ __metadata("design:type", Function),

import { __decorate, __metadata } from "tslib";
import { CliDockerComposeYaml, Inject, OnExec, ProjectPackageJson, RootRendererService, SrcRendererService } from "@tsed/cli-core";
import { CliDockerComposeYaml, inject, OnExec, ProjectPackageJson } from "@tsed/cli-core";
import { Injectable } from "@tsed/di";
import { CliMongoose } from "../services/CliMongoose.js";
let MongooseInitHook = class MongooseInitHook {
constructor() {
this.cliMongoose = inject(CliMongoose);
this.packageJson = inject(ProjectPackageJson);
this.cliDockerComposeYaml = inject(CliDockerComposeYaml);
}
onExec(ctx) {

@@ -34,22 +39,2 @@ this.addScripts();

__decorate([
Inject(),
__metadata("design:type", CliMongoose)
], MongooseInitHook.prototype, "cliMongoose", void 0);
__decorate([
Inject(),
__metadata("design:type", ProjectPackageJson)
], MongooseInitHook.prototype, "packageJson", void 0);
__decorate([
Inject(),
__metadata("design:type", RootRendererService)
], MongooseInitHook.prototype, "rootRenderer", void 0);
__decorate([
Inject(),
__metadata("design:type", SrcRendererService)
], MongooseInitHook.prototype, "srcRenderer", void 0);
__decorate([
Inject(),
__metadata("design:type", CliDockerComposeYaml)
], MongooseInitHook.prototype, "cliDockerComposeYaml", void 0);
__decorate([
OnExec("init"),

@@ -56,0 +41,0 @@ __metadata("design:type", Function),

@@ -1,3 +0,3 @@

import { __decorate, __metadata } from "tslib";
import { Inject, Injectable, ProjectPackageJson, SrcRendererService } from "@tsed/cli-core";
import { __decorate } from "tslib";
import { inject, Injectable, ProjectPackageJson, SrcRendererService } from "@tsed/cli-core";
import { camelCase, constantCase, kebabCase } from "change-case";

@@ -7,2 +7,6 @@ import { basename, join } from "path";

let CliMongoose = class CliMongoose {
constructor() {
this.projectPackageJson = inject(ProjectPackageJson);
this.srcRenderer = inject(SrcRendererService);
}
async writeConfig(name, options = {}) {

@@ -38,10 +42,2 @@ await this.srcRenderer.render("config.hbs", {

};
__decorate([
Inject(),
__metadata("design:type", ProjectPackageJson)
], CliMongoose.prototype, "projectPackageJson", void 0);
__decorate([
Inject(),
__metadata("design:type", SrcRendererService)
], CliMongoose.prototype, "srcRenderer", void 0);
CliMongoose = __decorate([

@@ -48,0 +44,0 @@ Injectable()

import { ProjectPackageJson } from "@tsed/cli-core";
export declare class CliPluginMongooseModule {
packageJson: ProjectPackageJson;
protected packageJson: ProjectPackageJson;
install(): void;
}

@@ -6,6 +6,6 @@ import { type GenerateCmdContext, ProvidersInfoService } from "@tsed/cli";

private providersInfoService;
projectPackageJson: ProjectPackageJson;
srcRenderService: SrcRendererService;
cliMongoose: CliMongoose;
packages: any[];
protected projectPackageJson: ProjectPackageJson;
protected srcRenderService: SrcRendererService;
protected cliMongoose: CliMongoose;
protected packages: any[];
protected cliDockerComposeYaml: CliDockerComposeYaml;

@@ -12,0 +12,0 @@ constructor(providersInfoService: ProvidersInfoService);

import type { InitCmdContext } from "@tsed/cli";
import { CliDockerComposeYaml, ProjectPackageJson, RootRendererService, SrcRendererService } from "@tsed/cli-core";
import { CliDockerComposeYaml, ProjectPackageJson } from "@tsed/cli-core";
import { CliMongoose } from "../services/CliMongoose.js";
export declare class MongooseInitHook {
cliMongoose: CliMongoose;
protected cliMongoose: CliMongoose;
protected packageJson: ProjectPackageJson;
protected rootRenderer: RootRendererService;
protected srcRenderer: SrcRendererService;
protected cliDockerComposeYaml: CliDockerComposeYaml;

@@ -10,0 +8,0 @@ onExec(ctx: InitCmdContext): {

import { ProjectPackageJson, SrcRendererService } from "@tsed/cli-core";
export declare class CliMongoose {
projectPackageJson: ProjectPackageJson;
protected projectPackageJson: ProjectPackageJson;
protected srcRenderer: SrcRendererService;

@@ -5,0 +5,0 @@ writeConfig(name: string, options?: any): Promise<void>;

{
"name": "@tsed/cli-plugin-mongoose",
"description": "Ts.ED CLI plugin. Add Mongoose support",
"version": "6.0.0-beta.1",
"version": "6.0.0-beta.2",
"type": "module",

@@ -29,5 +29,5 @@ "main": "./lib/esm/index.js",

"devDependencies": {
"@tsed/cli": "6.0.0-beta.1",
"@tsed/cli-core": "6.0.0-beta.1",
"@tsed/typescript": "6.0.0-beta.1",
"@tsed/cli": "6.0.0-beta.2",
"@tsed/cli-core": "6.0.0-beta.2",
"@tsed/typescript": "6.0.0-beta.2",
"cross-env": "7.0.3",

@@ -34,0 +34,0 @@ "typescript": "5.6.2",

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