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
42
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

to
3.10.0-alpha-khanh.le-kl-SD-849-gaCookies-2020-03-29T09-52-10-801Z

1

dist/utils/cookies.d.ts

@@ -9,1 +9,2 @@ /**

export declare function syncCookieWithBootstrap(data: any, localeKeys?: string[], localeDefault?: string, deps?: any): void;
export declare function getUIDByDevice(): string;

@@ -68,2 +68,14 @@ "use strict";

exports.syncCookieWithBootstrap = syncCookieWithBootstrap;
function getUIDByDevice() {
var navigatorInfo = window.navigator;
var screenInfo = window.screen;
var uid = navigatorInfo.mimeTypes.length.toString();
uid += navigatorInfo.userAgent.replace(/\D+/g, "");
uid += navigatorInfo.plugins.length.toString();
uid += screenInfo.height || "";
uid += screenInfo.width || "";
uid += screenInfo.pixelDepth || "";
return uid;
}
exports.getUIDByDevice = getUIDByDevice;
//# sourceMappingURL=cookies.js.map

2

package.json
{
"name": "@gooddata/js-utils",
"version": "3.9.0",
"version": "3.10.0-alpha-khanh.le-kl-SD-849-gaCookies-2020-03-29T09-52-10-801Z",
"description": "Various utils shared on GoodData frontend",

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

@@ -10,5 +10,8 @@ GDC JavaScript utilities

1. Install [Node.js](http://nodejs.org)
Install [Node.js](http://nodejs.org) (node 12.16.1, npm v6.13.4) and [Yarn](https://classic.yarnpkg.com) 1.22.4.
2. Run `yarn install` to install the dependencies
Install dependencies:
```
yarn install --frozen-lockfile
```

@@ -15,0 +18,0 @@ ## Development

@@ -67,1 +67,14 @@ // (C) 2007-2019 GoodData Corporation

}
export function getUIDByDevice(): string {
const navigatorInfo: Navigator = window.navigator;
const screenInfo: Screen = window.screen;
let uid: string = navigatorInfo.mimeTypes.length.toString();
uid += navigatorInfo.userAgent.replace(/\D+/g, "");
uid += navigatorInfo.plugins.length.toString();
uid += screenInfo.height || "";
uid += screenInfo.width || "";
uid += screenInfo.pixelDepth || "";
return uid;
}

Sorry, the diff of this file is not supported yet