@accounts/client
Advanced tools
Comparing version
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AccountsClient = void 0; | ||
var accounts_client_1 = require("./accounts-client"); | ||
Object.defineProperty(exports, "AccountsClient", { enumerable: true, get: function () { return accounts_client_1.AccountsClient; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -6,3 +6,3 @@ "use strict"; | ||
var jwt_decode_1 = tslib_1.__importDefault(require("jwt-decode")); | ||
exports.isTokenExpired = function (token) { | ||
var isTokenExpired = function (token) { | ||
var currentTime = Date.now() / 1000; | ||
@@ -12,2 +12,3 @@ var decodedToken = jwt_decode_1.default(token); | ||
}; | ||
exports.isTokenExpired = isTokenExpired; | ||
//# sourceMappingURL=utils.js.map |
{ | ||
"name": "@accounts/client", | ||
"version": "0.33.0", | ||
"version": "0.33.1", | ||
"description": "Fullstack authentication and accounts-management", | ||
@@ -10,14 +10,2 @@ "main": "lib/index.js", | ||
}, | ||
"scripts": { | ||
"clean": "rimraf lib", | ||
"start": "tsc --watch", | ||
"precompile": "yarn clean", | ||
"compile": "tsc", | ||
"prepublishOnly": "yarn compile", | ||
"test": "npm run testonly", | ||
"test-ci": "npm lint && npm coverage", | ||
"testonly": "jest", | ||
"test:watch": "jest --watch", | ||
"coverage": "npm run testonly -- --coverage" | ||
}, | ||
"files": [ | ||
@@ -51,6 +39,6 @@ "src", | ||
"devDependencies": { | ||
"@types/jest": "25.2.3", | ||
"@types/node": "14.0.14", | ||
"jest": "26.6.3", | ||
"jest-localstorage-mock": "2.4.2", | ||
"@types/jest": "26.0.24", | ||
"@types/node": "16.4.13", | ||
"jest": "27.0.6", | ||
"jest-localstorage-mock": "2.4.14", | ||
"jsonwebtoken": "8.5.1", | ||
@@ -61,7 +49,17 @@ "localstorage-polyfill": "1.0.1", | ||
"dependencies": { | ||
"@accounts/types": "^0.33.0", | ||
"@accounts/types": "^0.33.1", | ||
"jwt-decode": "3.1.2", | ||
"tslib": "2.1.0" | ||
"tslib": "2.3.0" | ||
}, | ||
"gitHead": "2703f3ef8c11803f584c9560affcae50ef7d830d" | ||
} | ||
"scripts": { | ||
"clean": "rimraf lib", | ||
"start": "tsc --watch", | ||
"precompile": "pnpm run clean", | ||
"compile": "tsc", | ||
"test": "npm run testonly", | ||
"test-ci": "npm lint && npm coverage", | ||
"testonly": "jest", | ||
"test:watch": "jest --watch", | ||
"coverage": "npm run testonly -- --coverage" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
701
0.29%36091
-2.26%35
-2.78%+ Added
- Removed
Updated
Updated