@itinari/lib-token
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10805
85
+ Added@types/node@22.10.0(transitive)
+ Addedundici-types@6.20.0(transitive)
- Removed@types/node@22.9.3(transitive)
- Removedundici-types@6.19.8(transitive)
Updatedjsonwebtoken@^8.1.1