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

@amplication/plugin-auth-jwt

Package Overview
Dependencies
Maintainers
8
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amplication/plugin-auth-jwt - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

18

dist/index.js

@@ -32,14 +32,2 @@ /******/ (() => { // webpackBootstrap

(function (EnumBlockType) {
EnumBlockType["CanvasPage"] = "CanvasPage";
EnumBlockType["ConnectorFile"] = "ConnectorFile";
EnumBlockType["ConnectorRestApi"] = "ConnectorRestApi";
EnumBlockType["ConnectorRestApiCall"] = "ConnectorRestApiCall";
EnumBlockType["ConnectorSoapApi"] = "ConnectorSoapApi";
EnumBlockType["Document"] = "Document";
EnumBlockType["EntityApi"] = "EntityApi";
EnumBlockType["EntityApiEndpoint"] = "EntityApiEndpoint";
EnumBlockType["EntityPage"] = "EntityPage";
EnumBlockType["Flow"] = "Flow";
EnumBlockType["FlowApi"] = "FlowApi";
EnumBlockType["Layout"] = "Layout";
EnumBlockType["PluginInstallation"] = "PluginInstallation";

@@ -102,2 +90,3 @@ EnumBlockType["PluginOrder"] = "PluginOrder";

(function (EnumGitProvider) {
EnumGitProvider["Bitbucket"] = "Bitbucket";
EnumGitProvider["Github"] = "Github";

@@ -130,4 +119,4 @@ })(EnumGitProvider = exports.EnumGitProvider || (exports.EnumGitProvider = {}));

(function (EnumSubscriptionPlan) {
EnumSubscriptionPlan["Business"] = "Business";
EnumSubscriptionPlan["Enterprise"] = "Enterprise";
EnumSubscriptionPlan["Free"] = "Free";
EnumSubscriptionPlan["Pro"] = "Pro";

@@ -236,3 +225,4 @@ })(EnumSubscriptionPlan = exports.EnumSubscriptionPlan || (exports.EnumSubscriptionPlan = {}));

const staticsFiles = await context.utils.importStaticModules(staticPath, context.serverDirectories.srcDirectory);
return [...staticsFiles, ...modules];
await modules.merge(staticsFiles);
return modules;
}

@@ -239,0 +229,0 @@ }

@@ -27,2 +27,2 @@ import { Observable } from "rxjs";

}
}
}
{
"name": "@amplication/plugin-auth-jwt",
"version": "1.3.0",
"version": "1.4.0",
"description": "set jwt as provider for Amplication build",

@@ -9,3 +9,4 @@ "main": "dist/index.js",

"build": "webpack",
"prebuild": "rimraf dist"
"prebuild": "rimraf dist",
"format:write": "prettier --write \"**/*.{js,ts}\""
},

@@ -15,3 +16,3 @@ "author": "barshimi",

"devDependencies": {
"@amplication/code-gen-types": "^1.1.5",
"@amplication/code-gen-types": "^2.0.1",
"@babel/parser": "^7.18.11",

@@ -21,3 +22,3 @@ "@babel/types": "^7.18.10",

"@nestjs/core": "^9.0.9",
"@nestjs/jwt": "10.0.1",
"@nestjs/jwt": "^10.0.2",
"@nestjs/passport": "^9.0.0",

@@ -33,5 +34,6 @@ "@types/lodash": "^4.14.182",

"passport-jwt": "^4.0.1",
"prettier": "^2.7.1",
"prettier": "^2.8.7",
"rimraf": "^5.0.1",
"ts-loader": "^9.4.2",
"typescript": "^4.8.4",
"typescript": "^4.9.3",
"webpack": "^5.75.0",

@@ -38,0 +40,0 @@ "webpack-cli": "^5.0.1"

@@ -17,2 +17,2 @@ # @amplication/plugin-auth-jwt

This plugin is integrarted with the default behaviour of the service by changing the `defaultAuth.guard.ts` file in the `auth` folder, so all guards on REST API controllers and GraphQL API resolvers will use this authentication by default.
This plugin is integrated with the default behavior of the service by changing the `defaultAuth.guard.ts` file in the `auth` folder, so all guards on REST API controllers and GraphQL API resolvers will use this authentication by default.
import {
AmplicationPlugin,
CreateAdminUIParams,
Module,
CreateServerAuthParams,
DsgContext,
Events,
ModuleMap,
} from "@amplication/code-gen-types";

@@ -46,4 +46,4 @@ import { EnumAuthProviderType } from "@amplication/code-gen-types/src/models";

eventParams: CreateServerAuthParams,
modules: Module[]
) {
modules: ModuleMap
): Promise<ModuleMap> {
const staticPath = resolve(__dirname, "./static");

@@ -56,3 +56,4 @@

return [...staticsFiles, ...modules];
await modules.merge(staticsFiles);
return modules;
}

@@ -59,0 +60,0 @@ }

@@ -27,2 +27,2 @@ import { Observable } from "rxjs";

}
}
}
{
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es2017",
"lib": ["es2020", "dom"],
"sourceMap": true,
"baseUrl": "./src",
"outDir": "dist",
"incremental": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
"moduleResolution": "node16",
"strict": true,
"jsx": "react"
},
"include": ["src/index.ts"],
"exclude": ["node_modules"]
}
"extends": "../../tsconfig.base.json",
"include": [
"src/index.ts"
],
"exclude": [
"node_modules"
],
}

@@ -15,3 +15,6 @@ const path = require("path");

new CopyWebpackPlugin({
patterns: [{ from: "src/static", to: "static" }],
patterns: [
{ from: "src/static", to: "static", noErrorOnMissing: true },
{ from: "src/templates", to: "templates", noErrorOnMissing: true },
],
}),

@@ -18,0 +21,0 @@ ],

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