New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@gooddata/js-utils

Package Overview
Dependencies
Maintainers
39
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gooddata/js-utils - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

2

es/utils/walkme.d.ts
export declare const GDC_WALKME_HASH = "325ea4b9b547463c991a62bf54090302";
export declare function generateFinalUrl(walkmeHashFromWhiteLabel: string): string;
export declare function load(walkmeHash: string, isEmbedded: boolean): void;
export declare function load(walkmeHash: string): void;

@@ -17,4 +17,4 @@ import { isProductionHostname } from './env';

}
export function load(walkmeHash, isEmbedded) {
if (!walkmeHash || !isEmbedded) {
export function load(walkmeHash) {
if (!walkmeHash) {
return;

@@ -21,0 +21,0 @@ }

@@ -23,4 +23,4 @@ 'use strict';

}
function load(walkmeHash, isEmbedded) {
if (!walkmeHash || !isEmbedded) {
function load(walkmeHash) {
if (!walkmeHash) {
return;

@@ -27,0 +27,0 @@ }

{
"name": "@gooddata/js-utils",
"version": "3.1.0",
"version": "3.1.1",
"description": "Various utils shared on GoodData frontend",

@@ -5,0 +5,0 @@ "repository": {

@@ -30,3 +30,3 @@ import { generateFinalUrl, load, GDC_WALKME_HASH } from '../walkme';

it('should not load script', () => {
load('', false);
load('');
expect(loadJs.mock.calls.length).toBe(0);

@@ -37,3 +37,3 @@ });

const fakeHash = 'fakeHash';
load(fakeHash, true);
load(fakeHash);
expect(loadJs.mock.calls.length).toBe(1);

@@ -46,3 +46,3 @@ expect(loadJs).toBeCalledWith(`https://cdn.walkme.com/users/${fakeHash}/walkme_${fakeHash}_https.js`);

load(GDC_WALKME_HASH, true);
load(GDC_WALKME_HASH);
expect(loadJs.mock.calls.length).toBe(1);

@@ -57,3 +57,3 @@ expect(loadJs).toBeCalledWith(

load(GDC_WALKME_HASH, true);
load(GDC_WALKME_HASH);
expect(loadJs.mock.calls.length).toBe(1);

@@ -60,0 +60,0 @@ expect(loadJs).toBeCalledWith(

@@ -21,4 +21,4 @@ import { isProductionHostname } from './env';

export function load(walkmeHash: string, isEmbedded: boolean): void {
if (!walkmeHash || !isEmbedded) { return; }
export function load(walkmeHash: string): void {
if (!walkmeHash) { return; }

@@ -25,0 +25,0 @@ const url = generateFinalUrl(walkmeHash);

Sorry, the diff of this file is not supported yet

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