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

@debtcollective/dc-header-component

Package Overview
Dependencies
Maintainers
6
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@debtcollective/dc-header-component - npm Package Compare versions

Comparing version 3.3.3 to 3.3.4

dist/header/p-5cd23cf5.entry.js

11

CHANGELOG.md

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

## [3.3.4](https://github.com/debtcollective/packages/compare/@debtcollective/dc-header-component@3.3.3...@debtcollective/dc-header-component@3.3.4) (2021-06-15)
### Bug Fixes
* **header:** use sanitised version of community URL for logout action ([b72575d](https://github.com/debtcollective/packages/commit/b72575d))
## [3.3.3](https://github.com/debtcollective/packages/compare/@debtcollective/dc-header-component@3.3.2...@debtcollective/dc-header-component@3.3.3) (2021-06-15)

@@ -8,0 +19,0 @@

3

dist/cjs/dc-header_4.cjs.entry.js

@@ -429,3 +429,4 @@ 'use strict';

};
const logout = async (discourseEndpoint, username) => {
const logout = async (community, username) => {
let discourseEndpoint = sanitiseSSOUrl(community);
const url = `${discourseEndpoint}/session/${username}`;

@@ -432,0 +433,0 @@ const csrfToken = await getCSRFToken(discourseEndpoint);

@@ -46,3 +46,4 @@ import { sanitiseSSOUrl } from "../utils/sanitise";

};
export const logout = async (discourseEndpoint, username) => {
export const logout = async (community, username) => {
let discourseEndpoint = sanitiseSSOUrl(community);
const url = `${discourseEndpoint}/session/${username}`;

@@ -49,0 +50,0 @@ const csrfToken = await getCSRFToken(discourseEndpoint);

@@ -425,3 +425,4 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getAssetPath } from './index-8956c047.js';

};
const logout = async (discourseEndpoint, username) => {
const logout = async (community, username) => {
let discourseEndpoint = sanitiseSSOUrl(community);
const url = `${discourseEndpoint}/session/${username}`;

@@ -428,0 +429,0 @@ const csrfToken = await getCSRFToken(discourseEndpoint);

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

import{p as e,b as l}from"./p-1822b0d8.js";(()=>{const l=import.meta.url,n={};return""!==l&&(n.resourcesUrl=new URL(".",l).href),e(n)})().then((e=>l([["p-8ca655d8",[[1,"dc-header",{homepage:[1],community:[1],returnurl:[1],user:[32],isShrink:[32],scrollTop:[32],isMenuOpen:[32],isProfileMenuOpen:[32]},[[9,"scroll","handleScroll"],[0,"toggleMenu","toggleMenuHandler"],[0,"toggleProfileMenu","toggleProfileMenuHandler"],[0,"closeAll","closeAll"]]],[1,"dc-menu",{open:[4],community:[1],homepage:[1],host:[1],user:[16]},[[4,"keydown","handleEscapeKey"]]],[1,"dc-profile",{shrank:[4],expanded:[4],community:[1],homepage:[1],host:[1],user:[16]},[[4,"keydown","handleEscapeKey"]]],[4,"dc-link",{to:[1],target:[1],namespace:[1]},[[2,"click","handleClick"]]]]]],e)));
import{p as e,b as l}from"./p-1822b0d8.js";(()=>{const l=import.meta.url,n={};return""!==l&&(n.resourcesUrl=new URL(".",l).href),e(n)})().then((e=>l([["p-5cd23cf5",[[1,"dc-header",{homepage:[1],community:[1],returnurl:[1],user:[32],isShrink:[32],scrollTop:[32],isMenuOpen:[32],isProfileMenuOpen:[32]},[[9,"scroll","handleScroll"],[0,"toggleMenu","toggleMenuHandler"],[0,"toggleProfileMenu","toggleProfileMenuHandler"],[0,"closeAll","closeAll"]]],[1,"dc-menu",{open:[4],community:[1],homepage:[1],host:[1],user:[16]},[[4,"keydown","handleEscapeKey"]]],[1,"dc-profile",{shrank:[4],expanded:[4],community:[1],homepage:[1],host:[1],user:[16]},[[4,"keydown","handleEscapeKey"]]],[4,"dc-link",{to:[1],target:[1],namespace:[1]},[[2,"click","handleClick"]]]]]],e)));
export declare const syncCurrentUser: (community: any) => Promise<any>;
export declare const logout: (discourseEndpoint: any, username: any) => Promise<void>;
export declare const logout: (community: any, username: any) => Promise<void>;
{
"name": "@debtcollective/dc-header-component",
"version": "3.3.3",
"version": "3.3.4",
"description": "Stencil header component for debtcollective web apps",

@@ -42,3 +42,3 @@ "main": "dist/index.cjs.js",

"license": "BSD-3-Clause",
"gitHead": "9e768d695d99879e1f717be56762936e4a79f3fd"
"gitHead": "11fddfe3ff6e8a21512fd1689b5847b37f4bbe54"
}
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