Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

supertokens-website

Package Overview
Dependencies
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

supertokens-website - npm Package Compare versions

Comparing version 10.0.0 to 10.0.1

6

CHANGELOG.md

@@ -7,2 +7,8 @@ # Changelog

## [10.0.1] - 2021-10-28
### Changes
- Uses non arrow functions in api and recipe interface impl to allow for "true" inheritance in override: https://github.com/supertokens/supertokens-node/issues/199
- Uses `bind(this)` when calling original implementation
## [10.0.0] - 2021-10-21

@@ -9,0 +15,0 @@

2

lib/build/fetch.js

@@ -341,3 +341,3 @@ "use strict";

AuthHttpRequest.env.__supertokensSessionRecipe = config.override.functions(
new recipeImplementation_1.default()
recipeImplementation_1.default()
);

@@ -344,0 +344,0 @@ AuthHttpRequest.env.fetch = AuthHttpRequest.env.__supertokensSessionRecipe.addFetchInterceptorsAndReturnModifiedFetch(

@@ -1,9 +0,2 @@

import { RecipeInterface, NormalisedInputType } from "./types";
export default class RecipeImplementation implements RecipeInterface {
addFetchInterceptorsAndReturnModifiedFetch: (originalFetch: any, _: NormalisedInputType) => typeof fetch;
addAxiosInterceptors: (axiosInstance: any, _: NormalisedInputType) => void;
getUserId: (_: NormalisedInputType) => Promise<string>;
getAccessTokenPayloadSecurely: (config: NormalisedInputType) => Promise<any>;
doesSessionExist: (_: NormalisedInputType) => Promise<boolean>;
signOut: (config: NormalisedInputType) => Promise<void>;
}
import { RecipeInterface } from "./types";
export default function RecipeImplementation(): RecipeInterface;

@@ -151,8 +151,7 @@ "use strict";

var version_1 = require("./version");
var RecipeImplementation = /** @class */ (function() {
function RecipeImplementation() {
var _this = this;
this.addFetchInterceptorsAndReturnModifiedFetch = function(originalFetch, _) {
function RecipeImplementation() {
return {
addFetchInterceptorsAndReturnModifiedFetch: function(originalFetch, _) {
return function(url, config) {
return __awaiter(_this, void 0, void 0, function() {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(_a) {

@@ -177,4 +176,4 @@ switch (_a.label) {

};
};
this.addAxiosInterceptors = function(axiosInstance, _) {
},
addAxiosInterceptors: function(axiosInstance, _) {
// we first check if this axiosInstance already has our interceptors.

@@ -200,5 +199,5 @@ var requestInterceptors = axiosInstance.interceptors.request;

);
};
this.getUserId = function(_) {
return __awaiter(_this, void 0, void 0, function() {
},
getUserId: function(_) {
return __awaiter(this, void 0, void 0, function() {
var tokenInfo;

@@ -218,5 +217,5 @@ return __generator(this, function(_a) {

});
};
this.getAccessTokenPayloadSecurely = function(config) {
return __awaiter(_this, void 0, void 0, function() {
},
getAccessTokenPayloadSecurely: function(config) {
return __awaiter(this, void 0, void 0, function() {
var tokenInfo, retry;

@@ -247,5 +246,5 @@ return __generator(this, function(_a) {

});
};
this.doesSessionExist = function(_) {
return __awaiter(_this, void 0, void 0, function() {
},
doesSessionExist: function(_) {
return __awaiter(this, void 0, void 0, function() {
return __generator(this, function(_a) {

@@ -260,5 +259,5 @@ switch (_a.label) {

});
};
this.signOut = function(config) {
return __awaiter(_this, void 0, void 0, function() {
},
signOut: function(config) {
return __awaiter(this, void 0, void 0, function() {
var preAPIResult, resp;

@@ -306,6 +305,5 @@ return __generator(this, function(_a) {

});
};
}
return RecipeImplementation;
})();
}
};
}
exports.default = RecipeImplementation;

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

export declare const package_version = "10.0.0";
export declare const package_version = "10.0.1";
export declare const supported_fdi: string[];

@@ -17,3 +17,3 @@ "use strict";

*/
exports.package_version = "10.0.0";
exports.package_version = "10.0.1";
exports.supported_fdi = ["1.8", "1.9"];
{
"name": "supertokens-website",
"version": "10.0.0",
"version": "10.0.1",
"description": "frontend sdk for website to be used for auth solution.",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc