@supabase/ssr
Advanced tools
Comparing version 0.5.1 to 0.5.2-rc.1
@@ -248,3 +248,4 @@ "use strict"; | ||
let decoded = chunkedCookie; | ||
if (chunkedCookie.startsWith(BASE64_PREFIX)) { | ||
if (typeof chunkedCookie === "string" && | ||
chunkedCookie.startsWith(BASE64_PREFIX)) { | ||
decoded = (0, utils_1.stringFromBase64URL)(chunkedCookie.substring(BASE64_PREFIX.length)); | ||
@@ -251,0 +252,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "0.5.1"; | ||
export declare const VERSION = "0.5.2-rc.1"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.VERSION = '0.5.1'; | ||
exports.VERSION = '0.5.2-rc.1'; | ||
//# sourceMappingURL=version.js.map |
@@ -245,3 +245,4 @@ import { parse, serialize } from "cookie"; | ||
let decoded = chunkedCookie; | ||
if (chunkedCookie.startsWith(BASE64_PREFIX)) { | ||
if (typeof chunkedCookie === "string" && | ||
chunkedCookie.startsWith(BASE64_PREFIX)) { | ||
decoded = stringFromBase64URL(chunkedCookie.substring(BASE64_PREFIX.length)); | ||
@@ -248,0 +249,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "0.5.1"; | ||
export declare const VERSION = "0.5.2-rc.1"; |
@@ -1,2 +0,2 @@ | ||
export const VERSION = '0.5.1'; | ||
export const VERSION = '0.5.2-rc.1'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@supabase/ssr", | ||
"version": "0.5.1", | ||
"version": "0.5.2-rc.1", | ||
"description": "Use the Supabase JavaScript library in popular server-side rendering (SSR) frameworks.", | ||
@@ -5,0 +5,0 @@ "main": "dist/main/index.js", |
@@ -345,3 +345,6 @@ import { parse, serialize } from "cookie"; | ||
if (chunkedCookie.startsWith(BASE64_PREFIX)) { | ||
if ( | ||
typeof chunkedCookie === "string" && | ||
chunkedCookie.startsWith(BASE64_PREFIX) | ||
) { | ||
decoded = stringFromBase64URL( | ||
@@ -348,0 +351,0 @@ chunkedCookie.substring(BASE64_PREFIX.length), |
@@ -1,1 +0,1 @@ | ||
export const VERSION = '0.5.1'; | ||
export const VERSION = '0.5.2-rc.1'; |
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
Sorry, the diff of this file is not supported yet
222961
3693