New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tsed/cli-plugin-passport

Package Overview
Dependencies
Maintainers
5
Versions
363
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 1.3.2 to 1.4.0

4

lib/CliPluginPassportModule.d.ts

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

import { IGenerateCmdContext } from "@tsed/cli";
export interface IPassportGenerationOptions extends IGenerateCmdContext {
passportPackage: string;
}
export declare class CliPluginPassportModule {
}

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

const cli_core_1 = require("@tsed/cli-core");
const path_1 = require("path");
const PassportGenerateHook_1 = require("./hooks/PassportGenerateHook");
const TEMPLATE_DIR = path_1.resolve(__dirname, "..", "templates");
let CliPluginPassportModule = class CliPluginPassportModule {

@@ -10,0 +8,0 @@ };

10

lib/hooks/PassportGenerateHook.js

@@ -48,10 +48,10 @@ "use strict";

if (this.providersInfoService.isMyProvider(ctx.type, PassportGenerateHook_1)) {
const _a = this.mapOptions(ctx), { outputFile } = _a, data = tslib_1.__rest(_a, ["outputFile"]);
const { passportPackage } = ctx;
ctx = this.mapOptions(ctx);
const { passportPackage, symbolPath } = ctx;
this.projectPackageJson.addDependency(ctx.passportPackage, this.getPassportPackageVersion(passportPackage));
return [
{
title: `Generate ${ctx.type} file to '${outputFile}'`,
task: () => this.srcRenderService.render(this.getTemplate(passportPackage), data, {
output: outputFile,
title: `Generate ${ctx.type} file to '${symbolPath}.ts'`,
task: () => this.srcRenderService.render(this.getTemplate(passportPackage), ctx, {
output: `${symbolPath}.ts`,
templateDir: templateDir_1.TEMPLATE_DIR

@@ -58,0 +58,0 @@ })

{
"name": "@tsed/cli-plugin-passport",
"version": "1.3.2",
"version": "1.4.0",
"main": "lib/index.js",

@@ -11,4 +11,4 @@ "typings": "lib/index.d.ts",

"devDependencies": {
"@tsed/cli": "1.3.2",
"@tsed/cli-core": "1.3.2",
"@tsed/cli": "1.4.0",
"@tsed/cli-core": "1.4.0",
"@types/change-case": "^2.3.1"

@@ -15,0 +15,0 @@ },

Sorry, the diff of this file is not supported yet

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