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

@mozilla/glean

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mozilla/glean - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

2

dist/cli/cli.js

@@ -11,3 +11,3 @@ #!/usr/bin/env node

const VIRTUAL_ENVIRONMENT_DIR = process.env.VIRTUAL_ENV || path.join(process.cwd(), ".venv");
const GLEAN_PARSER_VERSION = "10.0.3";
const GLEAN_PARSER_VERSION = "14.0.1";
const PYTHON_SCRIPT = `

@@ -14,0 +14,0 @@ import importlib

export const GLEAN_SCHEMA_VERSION = 1;
export const GLEAN_VERSION = "5.0.0";
export const GLEAN_VERSION = "5.0.1";
export const PING_INFO_STORAGE = "glean_ping_info";

@@ -4,0 +4,0 @@ export const CLIENT_INFO_STORAGE = "glean_client_info";

import { Context } from "./context.js";
import UUIDMetric from "./metrics/types/uuid.js";
import EventMetricType from "./metrics/types/event.js";

@@ -22,3 +23,10 @@ import { EVENTS_PING_NAME } from "./constants.js";

disabled: false,
}, ["id", "type", "label"])
}, ["id", "type", "label"]),
pageId: new UUIDMetric({
category: "glean",
name: "page_id",
sendInPings: [EVENTS_PING_NAME],
lifetime: "application",
disabled: false,
})
};

@@ -31,2 +39,3 @@ function pageLoad(overrides) {

}
metrics.pageId.generateAndSet();
metrics.pageLoad.record({

@@ -33,0 +42,0 @@ url: (_a = overrides === null || overrides === void 0 ? void 0 : overrides.url) !== null && _a !== void 0 ? _a : (typeof window !== "undefined"

@@ -119,4 +119,10 @@ import { Context } from "../context.js";

if (ping.includeClientId && Context.config.experimentationId) {
if (metricsData != undefined) {
metricsData["string"]["glean.client.annotation.experimentation_id"] = Context.config.experimentationId;
if (metricsData !== undefined) {
metricsData = {
...metricsData,
string: {
...(metricsData === null || metricsData === void 0 ? void 0 : metricsData.string) || undefined,
"glean.client.annotation.experimentation_id": Context.config.experimentationId
}
};
}

@@ -123,0 +129,0 @@ else {

export declare const GLEAN_SCHEMA_VERSION = 1;
export declare const GLEAN_VERSION = "5.0.0";
export declare const GLEAN_VERSION = "5.0.1";
export declare const PING_INFO_STORAGE = "glean_ping_info";

@@ -4,0 +4,0 @@ export declare const CLIENT_INFO_STORAGE = "glean_client_info";

@@ -10,2 +10,5 @@ /**

readonly preciseTimestamps?: boolean;
readonly includeInfoSections?: boolean;
readonly enabled?: boolean;
readonly schedulesPings?: string[];
}
{
"name": "@mozilla/glean",
"version": "5.0.0",
"version": "5.0.1",
"description": "An implementation of the Glean SDK, a modern cross-platform telemetry client, for JavaScript environments.",

@@ -5,0 +5,0 @@ "type": "module",

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