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

@itinari/lib-token

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@itinari/lib-token - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

3

dist/index.d.ts

@@ -15,3 +15,4 @@ export declare class TokenExpiredError extends Error {

sign(payload?: any): Promise<string>;
verify(token: string): Promise<any>;
verify(token: string): Promise<object>;
decode(token: string): object;
}

@@ -57,4 +57,7 @@ "use strict";

}
decode(token) {
return jwt.decode(token);
}
}
exports.TokenService = TokenService;
//# sourceMappingURL=index.js.map
{
"name": "@itinari/lib-token",
"version": "1.0.0",
"version": "1.1.0",
"description": "token sign and verify",

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

"test:coverage": "nyc --require ts-node/register --require source-map-support/register mocha 'src/**/*.spec.ts'",
"lint": "eslint 'src/**/*.ts'",
"test:lint": "eslint 'src/**/*.ts'",
"test:type-check": "tsc --noEmit",
"build": "tsc",

@@ -29,10 +30,10 @@ "prepublishOnly": "npm run build && npm run test"

"devDependencies": {
"@types/chai": "^4.1.1",
"@types/chai": "^4.1.2",
"@types/chai-as-promised": "^7.1.0",
"@types/mocha": "^2.2.46",
"@types/node": "^9.3.0",
"@types/mocha": "^2.2.48",
"@types/node": "^9.4.0",
"@types/sinon": "^4.1.3",
"chai": "^4.1.2",
"chai-as-promised": "^7.1.1",
"eslint": "^4.15.0",
"eslint": "^4.17.0",
"eslint-config-google": "^0.9.1",

@@ -42,6 +43,6 @@ "eslint-plugin-typescript": "^0.8.1",

"nyc": "^11.4.1",
"sinon": "^4.1.6",
"source-map-support": "^0.5.2",
"sinon": "^4.2.2",
"source-map-support": "^0.5.3",
"ts-node": "^4.1.0",
"typescript": "^2.6.2",
"typescript": "^2.7.1",
"typescript-eslint-parser": "^12.0.0"

@@ -51,4 +52,4 @@ },

"@types/jsonwebtoken": "^7.2.5",
"jsonwebtoken": "^8.1.0"
"jsonwebtoken": "^8.1.1"
}
}

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