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
22
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 0.6.0-jza-one-2404-unify-cookies-2017-05-09T09-15-08-546Z to 0.6.0-jza-one-2404-unify-cookies-2017-05-09T12-28-51-152Z

6

lib/utils/cookies.js

@@ -48,5 +48,5 @@ 'use strict';

function syncCookieWithBootstrap(state, data) {
var deps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
var messagesMap = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
var localeDefault = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'en-US';
var messagesMap = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
var localeDefault = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'en-US';
var deps = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
var _deps$getLocaleCookie = deps.getLocaleCookie,

@@ -53,0 +53,0 @@ getLocaleCookie = _deps$getLocaleCookie === undefined ? getLocale : _deps$getLocaleCookie,

{
"name": "@gooddata/js-utils",
"version": "0.6.0-jza-one-2404-unify-cookies-2017-05-09T09-15-08-546Z",
"version": "0.6.0-jza-one-2404-unify-cookies-2017-05-09T12-28-51-152Z",
"description": "Various utils shared on GoodData frontend",

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

@@ -29,3 +29,3 @@ import Cookies from 'js-cookie';

export function syncCookieWithBootstrap(state, data, deps = {}, messagesMap = {}, localeDefault = 'en-US') {
export function syncCookieWithBootstrap(state, data, messagesMap = {}, localeDefault = 'en-US', deps = {}) {
const {

@@ -32,0 +32,0 @@ getLocaleCookie = getLocale,

@@ -6,2 +6,7 @@ import { syncCookieWithBootstrap } from '../cookies';

const DE = 'de-DE';
const localeDefault = EN;
const messagesMap = {
[EN]: EN,
[DE]: DE
};

@@ -27,3 +32,3 @@ const getBootstrapDataWithLocale = language => ({

const spySet = sinon.stub();
syncCookieWithBootstrap(stateEn, bootstrapEn, {
syncCookieWithBootstrap(stateEn, bootstrapEn, messagesMap, localeDefault, {
getLocaleCookie: sinon.stub(),

@@ -39,3 +44,3 @@ setLocaleCookie: spySet,

const spySet = sinon.stub();
syncCookieWithBootstrap(stateEn, bootstrapEn, {
syncCookieWithBootstrap(stateEn, bootstrapEn, messagesMap, localeDefault, {
getLocaleCookie: () => EN,

@@ -51,3 +56,3 @@ setLocaleCookie: spySet,

const spySet = sinon.stub();
syncCookieWithBootstrap(stateEn, bootstrapEn, {
syncCookieWithBootstrap(stateEn, bootstrapEn, messagesMap, localeDefault, {
getLocaleCookie: () => DE,

@@ -54,0 +59,0 @@ setLocaleCookie: spySet,

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