New:Socket for Asana Is Now Available.Learn more
Get Started

@posthog/browser-common

Package Overview
Dependencies
Maintainers
21
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@posthog/browser-common - npm Package Compare versions

Comparing version
0.6.1
to
0.6.2
+1
-1
dist/config.js

@@ -29,3 +29,3 @@ "use strict";

});
const packageVersion = "0.6.1";
const packageVersion = "0.6.2";
const Config = {

@@ -32,0 +32,0 @@ DEBUG: false,

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

const packageVersion = "0.6.1";
const packageVersion = "0.6.2";
const Config = {

@@ -3,0 +3,0 @@ DEBUG: false,

@@ -430,2 +430,5 @@ "use strict";

}
function lexicalCompare(a, b) {
return a < b ? -1 : a > b ? 1 : 0;
}
function elementsToString(elements) {

@@ -454,3 +457,3 @@ const ret = elements.map((element)=>{

const sortedAttributes = {};
(0, external_general_utils_js_namespaceObject.entries)(attributes).sort(([a], [b])=>a.localeCompare(b)).forEach(([key, value])=>sortedAttributes[escapeQuotes(key.toString())] = escapeQuotes(value.toString()));
(0, external_general_utils_js_namespaceObject.entries)(attributes).sort(([a], [b])=>lexicalCompare(a, b)).forEach(([key, value])=>sortedAttributes[escapeQuotes(key.toString())] = escapeQuotes(value.toString()));
el_string += ':';

@@ -457,0 +460,0 @@ el_string += (0, external_general_utils_js_namespaceObject.entries)(sortedAttributes).map(([key, value])=>`${key}="${value}"`).join('');

@@ -382,2 +382,5 @@ import { each, entries } from "./general-utils.mjs";

}
function lexicalCompare(a, b) {
return a < b ? -1 : a > b ? 1 : 0;
}
function elementsToString(elements) {

@@ -406,3 +409,3 @@ const ret = elements.map((element)=>{

const sortedAttributes = {};
entries(attributes).sort(([a], [b])=>a.localeCompare(b)).forEach(([key, value])=>sortedAttributes[escapeQuotes(key.toString())] = escapeQuotes(value.toString()));
entries(attributes).sort(([a], [b])=>lexicalCompare(a, b)).forEach(([key, value])=>sortedAttributes[escapeQuotes(key.toString())] = escapeQuotes(value.toString()));
el_string += ':';

@@ -409,0 +412,0 @@ el_string += entries(sortedAttributes).map(([key, value])=>`${key}="${value}"`).join('');

{
"name": "@posthog/browser-common",
"version": "0.6.1",
"version": "0.6.2",
"description": "Internal shared browser utilities and extension primitives for PostHog Browser SDKs",

@@ -68,4 +68,4 @@ "license": "MIT",

"dependencies": {
"@posthog/types": "^1.407.0",
"@posthog/core": "^1.49.1"
"@posthog/core": "^1.49.1",
"@posthog/types": "^1.407.1"
},

@@ -72,0 +72,0 @@ "devDependencies": {