Socket
Socket
Sign inDemoInstall

supertokens-node

Package Overview
Dependencies
67
Maintainers
1
Versions
194
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 17.0.6 to 17.0.7

1

lib/build/processState.d.ts

@@ -11,2 +11,3 @@ // @ts-nocheck

IS_SIGN_IN_UP_ALLOWED_HELPER_CALLED = 7,
ADDING_NO_CACHE_HEADER_IN_FETCH = 8,
}

@@ -13,0 +14,0 @@ export declare class ProcessState {

@@ -29,2 +29,3 @@ "use strict";

PROCESS_STATE[(PROCESS_STATE["IS_SIGN_IN_UP_ALLOWED_HELPER_CALLED"] = 7)] = "IS_SIGN_IN_UP_ALLOWED_HELPER_CALLED";
PROCESS_STATE[(PROCESS_STATE["ADDING_NO_CACHE_HEADER_IN_FETCH"] = 8)] = "ADDING_NO_CACHE_HEADER_IN_FETCH";
})((PROCESS_STATE = exports.PROCESS_STATE || (exports.PROCESS_STATE = {})));

@@ -31,0 +32,0 @@ class ProcessState {

@@ -51,3 +51,21 @@ "use strict";

const cross_fetch_1 = __importDefault(require("cross-fetch"));
const processState_1 = require("./processState");
const doFetch = (input, init) => {
// frameworks like nextJS cache fetch GET requests (https://nextjs.org/docs/app/building-your-application/caching#data-cache)
// we don't want that because it may lead to weird behaviour when querying the core.
if (init === undefined) {
processState_1.ProcessState.getInstance().addState(
processState_1.PROCESS_STATE.ADDING_NO_CACHE_HEADER_IN_FETCH
);
init = {
cache: "no-cache",
};
} else {
if (init.cache === undefined) {
processState_1.ProcessState.getInstance().addState(
processState_1.PROCESS_STATE.ADDING_NO_CACHE_HEADER_IN_FETCH
);
init.cache = "no-cache";
}
}
if (typeof fetch !== "undefined") {

@@ -54,0 +72,0 @@ return fetch(input, init);

2

lib/build/version.d.ts
// @ts-nocheck
export declare const version = "17.0.6";
export declare const version = "17.0.7";
export declare const cdiSupported: string[];
export declare const dashboardVersion = "0.11";

@@ -18,5 +18,5 @@ "use strict";

*/
exports.version = "17.0.6";
exports.version = "17.0.7";
exports.cdiSupported = ["5.0"];
// Note: The actual script import for dashboard uses v{DASHBOARD_VERSION}
exports.dashboardVersion = "0.11";
{
"name": "supertokens-node",
"version": "17.0.6",
"version": "17.0.7",
"description": "NodeJS driver for SuperTokens core",

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

Sorry, the diff of this file is too big to display

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