Socket
Socket
Sign inDemoInstall

@nestjs/jwt

Package Overview
Dependencies
Maintainers
4
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nestjs/jwt - npm Package Compare versions

Comparing version 6.1.1 to 6.1.2

.circleci/config.yml

5

dist/jwt.module.js

@@ -9,11 +9,12 @@ "use strict";

var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var JwtModule_1;
Object.defineProperty(exports, "__esModule", { value: true });
var JwtModule_1;
const common_1 = require("@nestjs/common");

@@ -20,0 +21,0 @@ const jwt_constants_1 = require("./jwt.constants");

6

dist/jwt.service.js

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

const secret = this.getSecretKey(token, options, 'publicKey', jwt_module_options_interface_1.JwtSecretRequestType.VERIFY);
return jwt.verify(token, secret.toString(), verifyOptions);
return jwt.verify(token, secret, verifyOptions);
}

@@ -43,3 +43,3 @@ verifyAsync(token, options) {

const secret = this.getSecretKey(token, options, 'publicKey', jwt_module_options_interface_1.JwtSecretRequestType.VERIFY);
return new Promise((resolve, reject) => jwt.verify(token, secret.toString(), verifyOptions, (err, decoded) => err ? reject(err) : resolve(decoded)));
return new Promise((resolve, reject) => jwt.verify(token, secret, verifyOptions, (err, decoded) => err ? reject(err) : resolve(decoded)));
}

@@ -51,3 +51,3 @@ decode(token, options) {

return options
? Object.assign({}, (this.options[key] || {}), options) : this.options[key];
? Object.assign(Object.assign({}, (this.options[key] || {})), options) : this.options[key];
}

@@ -54,0 +54,0 @@ getSecretKey(token, options, key, secretRequestType) {

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

export * from "./dist";
export * from './dist';
{
"name": "@nestjs/jwt",
"version": "6.1.1",
"version": "6.1.2",
"description": "Nest - modern, fast, powerful node.js web framework (@jwt)",

@@ -8,2 +8,4 @@ "author": "Kamil Mysliwiec",

"scripts": {
"format": "prettier --write \"**/*.ts\"",
"lint": "eslint \"lib/**/*.ts\" --fix",
"test": "jest --config=jest.json",

@@ -15,3 +17,5 @@ "test:watch": "jest --config=jest.json --watch",

"prepublish:npm": "npm run build",
"publish:npm": "npm publish --access public"
"publish:npm": "npm publish --access public",
"prerelease": "npm run build",
"release": "release-it"
},

@@ -22,25 +26,42 @@ "peerDependencies": {

"devDependencies": {
"jest": "24.8.0",
"ts-jest": "24.0.2",
"@commitlint/cli": "8.3.5",
"@commitlint/config-angular": "8.3.4",
"jest": "25.1.0",
"ts-jest": "25.2.1",
"reflect-metadata": "0.1.13",
"@nestjs/core": "6.2.4",
"@nestjs/testing": "6.2.4",
"@types/jest": "24.0.13",
"@nestjs/common": "6.2.4",
"@types/node": "7.10.6",
"husky": "0.14.3",
"lint-staged": "8.1.7",
"prettier": "1.17.1",
"typescript": "3.4.5"
"@nestjs/core": "6.11.8",
"@nestjs/testing": "6.11.8",
"@types/jest": "25.1.3",
"@typescript-eslint/eslint-plugin": "2.20.0",
"@typescript-eslint/parser": "2.20.0",
"eslint": "6.8.0",
"eslint-config-prettier": "6.10.0",
"eslint-plugin-import": "2.20.1",
"@nestjs/common": "6.11.8",
"@types/node": "7.10.9",
"husky": "4.2.3",
"lint-staged": "10.0.7",
"prettier": "1.19.1",
"release-it": "12.6.0",
"typescript": "3.8.2"
},
"dependencies": {
"@types/jsonwebtoken": "8.3.7",
"jsonwebtoken": "8.5.1"
},
"lint-staged": {
"*.ts": [
"prettier --write",
"git add"
"prettier --write"
]
},
"dependencies": {
"@types/jsonwebtoken": "7.2.8",
"jsonwebtoken": "8.4.0"
"husky": {
"hooks": {
"commit-msg": "commitlint -c .commitlintrc.json -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
},
"repository": {
"type": "git",
"url": "https://github.com/nestjs/jwt"
}
}

@@ -10,3 +10,3 @@ <p align="center">

<p align="center">A progressive <a href="http://nodejs.org" target="blank">Node.js</a> framework for building efficient and scalable server-side applications, heavily inspired by <a href="https://angular.io" target="blank">Angular</a>.</p>
<p align="center">A progressive <a href="http://nodejs.org" target="blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
<p align="center">

@@ -19,3 +19,3 @@ <a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>

<a href="https://coveralls.io/github/nestjs/nest?branch=master"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#5" alt="Coverage" /></a>
<a href="https://gitter.im/nestjs/nestjs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=body_badge"><img src="https://badges.gitter.im/nestjs/nestjs.svg" alt="Gitter" /></a>
<a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
<a href="https://opencollective.com/nest#backer"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>

@@ -193,3 +193,3 @@ <a href="https://opencollective.com/nest#sponsor"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>

- Author - [Kamil Myśliwiec](https://kamilmysliwiec.com)
- Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec)
- Website - [https://nestjs.com](https://nestjs.com/)

@@ -196,0 +196,0 @@ - Twitter - [@nestframework](https://twitter.com/nestframework)

{
"semanticCommits": true,
"packageRules": [{
"depTypeList": ["devDependencies"],
"automerge": true
}],
"extends": [

@@ -3,0 +8,0 @@ "config:base"

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