balena-auth
Advanced tools
Comparing version 3.1.0 to 3.1.1-balena-lint-6dbc95de3543cddab72ba6516cb998a212e63151
@@ -7,2 +7,7 @@ # Change Log | ||
# v3.1.1 | ||
## (2020-07-02) | ||
* Switch to @balena/lint for linting [Pagan Gazzard] | ||
# v3.1.0 | ||
@@ -9,0 +14,0 @@ ## (2020-06-01) |
@@ -115,3 +115,3 @@ /* | ||
public getType = (): Promise<TokenType> => | ||
this.getToken().then(token => token.type); | ||
this.getToken().then((token) => token.type); | ||
@@ -130,3 +130,3 @@ /** | ||
public getKey = (): Promise<string> => | ||
this.getToken().then(token => token.key); | ||
this.getToken().then((token) => token.key); | ||
@@ -145,3 +145,3 @@ /** | ||
public getAge = (): Promise<number | undefined> => | ||
this.getToken().then(token => token.getAge()); | ||
this.getToken().then((token) => token.getAge()); | ||
@@ -160,3 +160,3 @@ /** | ||
public isExpired = (): Promise<boolean> => | ||
this.getToken().then(token => token.isExpired()); | ||
this.getToken().then((token) => token.isExpired()); | ||
@@ -175,3 +175,3 @@ /** | ||
public isValid = (): Promise<boolean> => | ||
this.getToken().then(token => token.isValid()); | ||
this.getToken().then((token) => token.isValid()); | ||
@@ -190,3 +190,3 @@ /** | ||
public needs2FA = (): Promise<boolean> => | ||
this.getToken().then(token => token.needs2FA()); | ||
this.getToken().then((token) => token.needs2FA()); | ||
@@ -211,3 +211,3 @@ // Utility methods | ||
return this.storage.get(this.tokenKey).then(key => { | ||
return this.storage.get(this.tokenKey).then((key) => { | ||
if (typeof key !== 'string') { | ||
@@ -214,0 +214,0 @@ throw new errors.BalenaMalformedToken(key as any); |
@@ -32,3 +32,3 @@ /* | ||
JWT, | ||
APIKey | ||
APIKey, | ||
} |
{ | ||
"name": "balena-auth", | ||
"version": "3.1.0", | ||
"version": "3.1.1-balena-lint-6dbc95de3543cddab72ba6516cb998a212e63151", | ||
"description": "Balena session authentication utilities", | ||
@@ -28,12 +28,12 @@ "main": "build/auth.js", | ||
"ci": "npm test && catch-uncommitted", | ||
"lint": "tslint \"lib/**/*.ts\" \"tests/**/*.ts\"", | ||
"lint": "balena-lint --typescript lib tests", | ||
"lint-fix": "balena-lint --typescript --fix lib tests", | ||
"test:node": "mocha -r ts-node/register --reporter spec tests/**/*.spec.ts", | ||
"test:browser": "karma start", | ||
"prebuild": "rimraf ./build && npm run prettify", | ||
"prebuild": "rimraf ./build && npm run lint-fix", | ||
"build": "tsc", | ||
"pretest": "npm run build && npm run lint", | ||
"test": "npm run test:node && npm run test:browser", | ||
"prettify": "prettier --use-tabs --single-quote --write \"lib/*.ts\" \"tests/**/*.ts\"", | ||
"prepublish": "require-npm4-to-publish", | ||
"prepack": "npm test", | ||
"prepack": "npm run build", | ||
"prereadme": "npm run build", | ||
@@ -45,10 +45,11 @@ "readme": "jsdoc2md --template doc/README.hbs build/*.js > README.md" | ||
"devDependencies": { | ||
"@balena/lint": "^5.1.0", | ||
"@resin.io/types-mochainon": "^2.0.1", | ||
"@types/jsonwebtoken": "^7.2.3", | ||
"@types/mocha": "^2.2.42", | ||
"@types/node": "^8.10.59", | ||
"@types/node": "^8.10.61", | ||
"balena-config-karma": "^2.3.0", | ||
"balena-settings-client": "^4.0.0", | ||
"catch-uncommitted": "^1.0.0", | ||
"husky": "^4.0.10", | ||
"husky": "^4.2.5", | ||
"jsdoc-to-markdown": "^3.0.0", | ||
@@ -59,11 +60,9 @@ "jsonwebtoken": "^7.3.0", | ||
"mochainon": "^2.0.0", | ||
"prettier": "^1.19.1", | ||
"require-npm4-to-publish": "^1.0.0", | ||
"rimraf": "^2.6.1", | ||
"ts-node": "^3.3.0", | ||
"tslint": "^5.5.0", | ||
"typescript": "^3.7.5" | ||
"typescript": "^3.9.6" | ||
}, | ||
"dependencies": { | ||
"@types/bluebird": "^3.5.29", | ||
"@types/bluebird": "^3.5.32", | ||
"@types/jwt-decode": "^2.2.1", | ||
@@ -70,0 +69,0 @@ "balena-errors": "^4.2.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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
18
52961
20
1124
1
Updated@types/bluebird@^3.5.32