@8base/api-token-auth-client
Advanced tools
Comparing version 1.4.0 to 2.0.0
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ApiTokenAuthClient = void 0; | ||
const utils_1 = require("@8base/utils"); | ||
@@ -21,3 +22,3 @@ const jwt_decode_1 = __importDefault(require("jwt-decode")); | ||
getState() { | ||
return Object.assign({}, this.storageAPI.getState(), { token: this.apiToken }); | ||
return Object.assign(Object.assign({}, this.storageAPI.getState()), { token: this.apiToken }); | ||
} | ||
@@ -31,3 +32,3 @@ getTokenInfo() { | ||
setState(state) { | ||
this.storageAPI.setState(Object.assign({}, state, { token: this.apiToken })); | ||
this.storageAPI.setState(Object.assign(Object.assign({}, state), { token: this.apiToken })); | ||
} | ||
@@ -34,0 +35,0 @@ purgeState() { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ApiTokenAuthClient = void 0; | ||
var ApiTokenAuthClient_1 = require("./ApiTokenAuthClient"); | ||
exports.ApiTokenAuthClient = ApiTokenAuthClient_1.ApiTokenAuthClient; | ||
Object.defineProperty(exports, "ApiTokenAuthClient", { enumerable: true, get: function () { return ApiTokenAuthClient_1.ApiTokenAuthClient; } }); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@8base/api-token-auth-client", | ||
"version": "1.4.0", | ||
"version": "2.0.0", | ||
"author": "8base", | ||
"repository": "https://github.com/8base/sdk", | ||
"homepage": "https://github.com/8base/sdk/tree/master/packages/api-token-auth-client#readme", | ||
"homepage": "https://github.com/8base/sdk/tree/master/packages-core/api-token-auth-client#readme", | ||
"main": "dist/index.js", | ||
"module": "dist/index.js", | ||
"scripts": { | ||
"build": "../../bin/build-package.sh", | ||
"watch": "../../bin/watch-package.sh", | ||
"build": "../../../bin/build-package.sh", | ||
"watch": "../../../bin/watch-package.sh", | ||
"test": "NPM_ENV=test jest" | ||
}, | ||
"dependencies": { | ||
"@8base/utils": "^1.4.0", | ||
"jwt-decode": "^3.0.0-beta.2" | ||
"@8base/utils": "^2.0.0", | ||
"jwt-decode": "^3.1.2" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^24.0.13", | ||
"jest": "24.7.1", | ||
"jest-localstorage-mock": "^2.2.0", | ||
"prettier": "^1.16.0", | ||
"ts-jest": "^24.0.2", | ||
"typescript": "^3.5.1" | ||
"@types/jest": "^26.0.20", | ||
"jest": "26.6.3", | ||
"jest-localstorage-mock": "^2.4.6", | ||
"prettier": "^2.2.1", | ||
"ts-jest": "^26.4.4", | ||
"typescript": "^4.1.3" | ||
}, | ||
@@ -29,3 +29,3 @@ "jest": { | ||
"ts-jest": { | ||
"tsConfig": "<rootDir>/tsconfig.json" | ||
"tsconfig": "<rootDir>/tsconfig.json" | ||
} | ||
@@ -32,0 +32,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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 website
QualityPackage does not have a website.
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
7397
12
75
+ Added@8base/utils@2.6.6(transitive)
+ Addedprettier@2.8.8(transitive)
+ Addedramda@0.27.2(transitive)
- Removed@8base/utils@1.6.2(transitive)
- Removedos@0.1.2(transitive)
- Removedprettier@1.19.1(transitive)
- Removedramda@0.26.1(transitive)
Updated@8base/utils@^2.0.0
Updatedjwt-decode@^3.1.2