Socket
Socket
Sign inDemoInstall

@8base/web-oauth-client

Package Overview
Dependencies
9
Maintainers
6
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.6.6 to 2.7.0-beta.0

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

# [2.7.0-beta.0](https://github.com/8base/sdk/compare/v2.6.6...v2.7.0-beta.0) (2022-06-22)
**Note:** Version bump only for package @8base/web-oauth-client
## [2.6.6](https://github.com/8base/sdk/compare/v2.6.5...v2.6.6) (2022-03-18)

@@ -8,0 +16,0 @@

6

dist/index.js

@@ -1,6 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebOAuthClient = void 0;
var WebOAuthClient_1 = require("./WebOAuthClient");
Object.defineProperty(exports, "WebOAuthClient", { enumerable: true, get: function () { return WebOAuthClient_1.WebOAuthClient; } });
export { WebOAuthClient } from './WebOAuthClient';
//# sourceMappingURL=index.js.map

@@ -1,9 +0,3 @@

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebOAuthClient = void 0;
const utils_1 = require("@8base/utils");
const jwt_decode_1 = __importDefault(require("jwt-decode"));
import { PACKAGES, StorageAPI, throwIfMissingRequiredParameters, } from '@8base/utils';
import jwtDecode from 'jwt-decode';
/**

@@ -14,4 +8,4 @@ * Creates instance of the web oauth client

constructor(options, storageOptions = {}) {
utils_1.throwIfMissingRequiredParameters(['authorize'], utils_1.PACKAGES.WEB_AUTH0_AUTH_CLIENT, options);
this.storageAPI = new utils_1.StorageAPI(storageOptions.storage || window.localStorage, storageOptions.storageKey || 'auth', storageOptions.initialState);
throwIfMissingRequiredParameters(['authorize'], PACKAGES.WEB_AUTH0_AUTH_CLIENT, options);
this.storageAPI = new StorageAPI(storageOptions.storage || window.localStorage, storageOptions.storageKey || 'auth', storageOptions.initialState);
this.options = options;

@@ -37,3 +31,3 @@ }

}
return jwt_decode_1.default(token) || undefined;
return jwtDecode(token) || undefined;
}

@@ -49,3 +43,3 @@ authorize(...args) {

}
exports.WebOAuthClient = WebOAuthClient;
export { WebOAuthClient };
//# sourceMappingURL=WebOAuthClient.js.map
{
"name": "@8base/web-oauth-client",
"version": "2.6.6",
"version": "2.7.0-beta.0",
"author": "8base",

@@ -15,3 +15,3 @@ "repository": "https://github.com/8base/sdk",

"dependencies": {
"@8base/utils": "^2.6.6",
"@8base/utils": "^2.7.0-beta.0",
"jwt-decode": "^3.1.2"

@@ -40,2 +40,25 @@ },

],
"moduleNameMapper": {
"8base-sdk": "<rootDir>/../../core/8base-sdk/src/index.ts",
"@8base/api-client": "<rootDir>/../../core/api-client/src/index.ts",
"@8base/api-token-auth-client": "<rootDir>/../../core/api-token-auth-client/src/index.ts",
"@8base/apollo-client": "<rootDir>/../../core/apollo-client/src/index.ts",
"@8base/apollo-links": "<rootDir>/../../core/apollo-links/src/index.ts",
"@8base/auth": "<rootDir>/../../core/auth/src/index.ts",
"@8base/utils": "<rootDir>/../../core/utils/src/index.ts",
"@8base/validate": "<rootDir>/../../core/validate/src/index.ts",
"@8base/web-auth0-auth-client": "<rootDir>/../../core/web-auth0-auth-client/src/index.ts",
"@8base/web-cognito-auth-client": "<rootDir>/../../core/web-cognito-auth-client/src/index.ts",
"@8base/web-native-auth-client": "<rootDir>/../../core/web-native-auth-client/src/index.ts",
"@8base/web-oauth-client": "<rootDir>/../../core/web-oauth-client/src/index.ts",
"8base-react-sdk": "<rootDir>/../../react/8base-react-sdk/src/index.ts",
"@8base-react/app-provider": "<rootDir>/../../react/app-provider/src/index.ts",
"@8base-react/auth": "<rootDir>/../../react/auth/src/index.ts",
"@8base-react/crud": "<rootDir>/../../react/crud/src/index.ts",
"@8base-react/file-input": "<rootDir>/../../react/file-input/src/index.ts",
"@8base-react/forms": "<rootDir>/../../react/forms/src/index.ts",
"@8base-react/permissions-provider": "<rootDir>/../../react/permissions-provider/src/index.ts",
"@8base-react/table-schema-provider": "<rootDir>/../../react/table-schema-provider/src/index.ts",
"@8base-react/utils": "<rootDir>/../../react/utils/src/index.ts"
},
"moduleFileExtensions": [

@@ -42,0 +65,0 @@ "ts",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc