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

@mozilla/nimbus-shared

Package Overview
Dependencies
Maintainers
15
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mozilla/nimbus-shared - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

233

dist/src/_generated/schemas.d.ts

@@ -322,9 +322,14 @@ export declare const test: {

localizations: {
type: string;
additionalProperties: {
anyOf: ({
type: string;
additionalProperties: {
type: string;
additionalProperties: {
type: string;
};
};
};
} | {
type: string;
additionalProperties?: undefined;
})[];
description: string;

@@ -416,2 +421,19 @@ };

export declare const normandy: {
PreferenceRollbackArguments: {
$schema: string;
$ref: string;
definitions: {
PreferenceRollbackArguments: {
type: string;
properties: {
rolloutSlug: {
type: string;
description: string;
};
};
required: string[];
description: string;
};
};
};
ConsoleLogArguments: {

@@ -508,19 +530,2 @@ $schema: string;

};
PreferenceRollbackArguments: {
$schema: string;
$ref: string;
definitions: {
PreferenceRollbackArguments: {
type: string;
properties: {
rolloutSlug: {
type: string;
description: string;
};
};
required: string[];
description: string;
};
};
};
ShowHeartbeatArguments: {

@@ -580,2 +585,60 @@ $schema: string;

};
PreferenceRolloutArguments: {
$schema: string;
$ref: string;
definitions: {
PreferenceRolloutArguments: {
type: string;
properties: {
slug: {
type: string;
description: string;
pattern: string;
};
preferences: {
type: string;
items: {
type: string;
properties: {
preferenceName: {
type: string;
description: string;
};
value: {
type: string[];
description: string;
};
};
required: string[];
};
description: string;
};
};
required: string[];
description: string;
};
};
};
AddonRolloutArguments: {
$schema: string;
$ref: string;
definitions: {
AddonRolloutArguments: {
type: string;
properties: {
slug: {
type: string;
description: string;
pattern: string;
};
extensionApiId: {
type: string;
description: string;
};
};
required: string[];
description: string;
};
};
};
NormandyRecipe: {

@@ -1030,60 +1093,2 @@ $schema: string;

};
AddonRolloutArguments: {
$schema: string;
$ref: string;
definitions: {
AddonRolloutArguments: {
type: string;
properties: {
slug: {
type: string;
description: string;
pattern: string;
};
extensionApiId: {
type: string;
description: string;
};
};
required: string[];
description: string;
};
};
};
PreferenceRolloutArguments: {
$schema: string;
$ref: string;
definitions: {
PreferenceRolloutArguments: {
type: string;
properties: {
slug: {
type: string;
description: string;
pattern: string;
};
preferences: {
type: string;
items: {
type: string;
properties: {
preferenceName: {
type: string;
description: string;
};
value: {
type: string[];
description: string;
};
};
required: string[];
};
description: string;
};
};
required: string[];
description: string;
};
};
};
MessagingExperimentArguments: {

@@ -1235,2 +1240,38 @@ $schema: string;

};
OptOutStudyArguments: {
$schema: string;
$ref: string;
definitions: {
OptOutStudyArguments: {
type: string;
properties: {
addonUrl: {
type: string;
description: string;
minLength: number;
};
name: {
type: string;
description: string;
minLength: number;
};
description: {
type: string;
description: string;
minLength: number;
};
extensionApiId: {
type: string;
description: string;
};
isEnrollmentPaused: {
type: string;
description: string;
};
};
required: string[];
description: string;
};
};
};
MultiPreferenceExperimentArguments: {

@@ -1329,38 +1370,2 @@ $schema: string;

};
OptOutStudyArguments: {
$schema: string;
$ref: string;
definitions: {
OptOutStudyArguments: {
type: string;
properties: {
addonUrl: {
type: string;
description: string;
minLength: number;
};
name: {
type: string;
description: string;
minLength: number;
};
description: {
type: string;
description: string;
minLength: number;
};
extensionApiId: {
type: string;
description: string;
};
isEnrollmentPaused: {
type: string;
description: string;
};
};
required: string[];
description: string;
};
};
};
};

@@ -214,7 +214,13 @@ "use strict";

}, "localizations": {
"type": "object", "additionalProperties": {
"type": "object", "additionalProperties": {
"type": "string"
"anyOf": [
{
"type": "object", "additionalProperties": {
"type": "object", "additionalProperties": {
"type": "string"
}
}
}, {
"type": "null"
}
}, "description": "Per-locale localization substitutions.\n\nThe top level key is the locale (e.g., \"en-US\" or \"fr\"). Each entry is a mapping of string IDs to their localized equivalents.\n\nOnly supported on desktop."
], "description": "Per-locale localization substitutions.\n\nThe top level key is the locale (e.g., \"en-US\" or \"fr\"). Each entry is a mapping of string IDs to their localized equivalents.\n\nOnly supported on desktop."
}

@@ -280,3 +286,15 @@ }, "required": [

exports.normandy = {
"ConsoleLogArguments": {
"PreferenceRollbackArguments": {
"$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/PreferenceRollbackArguments", "definitions": {
"PreferenceRollbackArguments": {
"type": "object", "properties": {
"rolloutSlug": {
"type": "string", "description": "Unique identifier for the rollout to undo"
}
}, "required": [
"rolloutSlug"
], "description": "Undo a preference rollout"
}
}
}, "ConsoleLogArguments": {
"$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/ConsoleLogArguments", "definitions": {

@@ -339,14 +357,2 @@ "ConsoleLogArguments": {

}
}, "PreferenceRollbackArguments": {
"$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/PreferenceRollbackArguments", "definitions": {
"PreferenceRollbackArguments": {
"type": "object", "properties": {
"rolloutSlug": {
"type": "string", "description": "Unique identifier for the rollout to undo"
}
}, "required": [
"rolloutSlug"
], "description": "Undo a preference rollout"
}
}
}, "ShowHeartbeatArguments": {

@@ -384,2 +390,42 @@ "$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/ShowHeartbeatArguments", "definitions": {

}
}, "PreferenceRolloutArguments": {
"$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/PreferenceRolloutArguments", "definitions": {
"PreferenceRolloutArguments": {
"type": "object", "properties": {
"slug": {
"type": "string", "description": "Unique identifier for the rollout, used in telemetry and rollbacks", "pattern": "^[a-z0-9\\-_]+$"
}, "preferences": {
"type": "array", "items": {
"type": "object", "properties": {
"preferenceName": {
"type": "string", "description": "Full dotted path of the preference being changed"
}, "value": {
"type": [
"number", "string", "boolean"
], "description": "Value to set the preference to"
}
}, "required": [
"preferenceName", "value"
]
}, "description": "The preferences to change, and their values"
}
}, "required": [
"slug", "preferences"
], "description": "Change preferences permanently"
}
}
}, "AddonRolloutArguments": {
"$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/AddonRolloutArguments", "definitions": {
"AddonRolloutArguments": {
"type": "object", "properties": {
"slug": {
"type": "string", "description": "Unique identifier for the rollout, used in telemetry and rollbacks", "pattern": "^[a-z0-9\\-_]+$"
}, "extensionApiId": {
"type": "number", "description": "The record ID of the extension used for Normandy API calls"
}
}, "required": [
"slug", "extensionApiId"
], "description": "Install an add-on permanently"
}
}
}, "NormandyRecipe": {

@@ -673,42 +719,2 @@ "$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/NormandyRecipe", "definitions": {

}
}, "AddonRolloutArguments": {
"$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/AddonRolloutArguments", "definitions": {
"AddonRolloutArguments": {
"type": "object", "properties": {
"slug": {
"type": "string", "description": "Unique identifier for the rollout, used in telemetry and rollbacks", "pattern": "^[a-z0-9\\-_]+$"
}, "extensionApiId": {
"type": "number", "description": "The record ID of the extension used for Normandy API calls"
}
}, "required": [
"slug", "extensionApiId"
], "description": "Install an add-on permanently"
}
}
}, "PreferenceRolloutArguments": {
"$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/PreferenceRolloutArguments", "definitions": {
"PreferenceRolloutArguments": {
"type": "object", "properties": {
"slug": {
"type": "string", "description": "Unique identifier for the rollout, used in telemetry and rollbacks", "pattern": "^[a-z0-9\\-_]+$"
}, "preferences": {
"type": "array", "items": {
"type": "object", "properties": {
"preferenceName": {
"type": "string", "description": "Full dotted path of the preference being changed"
}, "value": {
"type": [
"number", "string", "boolean"
], "description": "Value to set the preference to"
}
}, "required": [
"preferenceName", "value"
]
}, "description": "The preferences to change, and their values"
}
}, "required": [
"slug", "preferences"
], "description": "Change preferences permanently"
}
}
}, "MessagingExperimentArguments": {

@@ -796,2 +802,22 @@ "$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/MessagingExperimentArguments", "definitions": {

}
}, "OptOutStudyArguments": {
"$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/OptOutStudyArguments", "definitions": {
"OptOutStudyArguments": {
"type": "object", "properties": {
"addonUrl": {
"type": "string", "description": "URL of the add-on XPI file to install", "minLength": 1
}, "name": {
"type": "string", "description": "User-facing name of the study", "minLength": 1
}, "description": {
"type": "string", "description": "User-facing description of the study", "minLength": 1
}, "extensionApiId": {
"type": "number", "description": "The record ID of the extension used for Normandy API calls."
}, "isEnrollmentPaused": {
"type": "boolean", "description": "If true, new users will not be enrolled in the study"
}
}, "required": [
"addonUrl", "name", "description", "extensionApiId"
], "description": "Enroll a user in an opt-out add-on study"
}
}
}, "MultiPreferenceExperimentArguments": {

@@ -853,23 +879,3 @@ "$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/MultiPreferenceExperimentArguments", "definitions": {

}
}, "OptOutStudyArguments": {
"$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/OptOutStudyArguments", "definitions": {
"OptOutStudyArguments": {
"type": "object", "properties": {
"addonUrl": {
"type": "string", "description": "URL of the add-on XPI file to install", "minLength": 1
}, "name": {
"type": "string", "description": "User-facing name of the study", "minLength": 1
}, "description": {
"type": "string", "description": "User-facing description of the study", "minLength": 1
}, "extensionApiId": {
"type": "number", "description": "The record ID of the extension used for Normandy API calls."
}, "isEnrollmentPaused": {
"type": "boolean", "description": "If true, new users will not be enrolled in the study"
}
}, "required": [
"addonUrl", "name", "description", "extensionApiId"
], "description": "Enroll a user in an opt-out add-on study"
}
}
}
};

@@ -105,3 +105,3 @@ /**

[locale: string]: Record<string, string>;
};
} | null;
}

@@ -108,0 +108,0 @@ interface BucketConfig {

{
"name": "@mozilla/nimbus-shared",
"version": "2.0.1",
"version": "2.1.0",
"license": "MPL-2.0",

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

@@ -319,9 +319,16 @@ {

"localizations": {
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": {
"type": "string"
"anyOf": [
{
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
{
"type": "null"
}
},
],
"description": "Per-locale localization substitutions.\n\nThe top level key is the locale (e.g., \"en-US\" or \"fr\"). Each entry is a mapping of string IDs to their localized equivalents.\n\nOnly supported on desktop."

@@ -328,0 +335,0 @@ }

@@ -213,7 +213,13 @@ export const test = {

}, "localizations": {
"type": "object", "additionalProperties": {
"type": "object", "additionalProperties": {
"type": "string"
"anyOf": [
{
"type": "object", "additionalProperties": {
"type": "object", "additionalProperties": {
"type": "string"
}
}
}, {
"type": "null"
}
}, "description": "Per-locale localization substitutions.\n\nThe top level key is the locale (e.g., \"en-US\" or \"fr\"). Each entry is a mapping of string IDs to their localized equivalents.\n\nOnly supported on desktop."
], "description": "Per-locale localization substitutions.\n\nThe top level key is the locale (e.g., \"en-US\" or \"fr\"). Each entry is a mapping of string IDs to their localized equivalents.\n\nOnly supported on desktop."
}

@@ -281,3 +287,15 @@ }, "required": [

export const normandy = {
"ConsoleLogArguments": {
"PreferenceRollbackArguments": {
"$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/PreferenceRollbackArguments", "definitions": {
"PreferenceRollbackArguments": {
"type": "object", "properties": {
"rolloutSlug": {
"type": "string", "description": "Unique identifier for the rollout to undo"
}
}, "required": [
"rolloutSlug"
], "description": "Undo a preference rollout"
}
}
}, "ConsoleLogArguments": {
"$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/ConsoleLogArguments", "definitions": {

@@ -340,14 +358,2 @@ "ConsoleLogArguments": {

}
}, "PreferenceRollbackArguments": {
"$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/PreferenceRollbackArguments", "definitions": {
"PreferenceRollbackArguments": {
"type": "object", "properties": {
"rolloutSlug": {
"type": "string", "description": "Unique identifier for the rollout to undo"
}
}, "required": [
"rolloutSlug"
], "description": "Undo a preference rollout"
}
}
}, "ShowHeartbeatArguments": {

@@ -385,2 +391,42 @@ "$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/ShowHeartbeatArguments", "definitions": {

}
}, "PreferenceRolloutArguments": {
"$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/PreferenceRolloutArguments", "definitions": {
"PreferenceRolloutArguments": {
"type": "object", "properties": {
"slug": {
"type": "string", "description": "Unique identifier for the rollout, used in telemetry and rollbacks", "pattern": "^[a-z0-9\\-_]+$"
}, "preferences": {
"type": "array", "items": {
"type": "object", "properties": {
"preferenceName": {
"type": "string", "description": "Full dotted path of the preference being changed"
}, "value": {
"type": [
"number", "string", "boolean"
], "description": "Value to set the preference to"
}
}, "required": [
"preferenceName", "value"
]
}, "description": "The preferences to change, and their values"
}
}, "required": [
"slug", "preferences"
], "description": "Change preferences permanently"
}
}
}, "AddonRolloutArguments": {
"$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/AddonRolloutArguments", "definitions": {
"AddonRolloutArguments": {
"type": "object", "properties": {
"slug": {
"type": "string", "description": "Unique identifier for the rollout, used in telemetry and rollbacks", "pattern": "^[a-z0-9\\-_]+$"
}, "extensionApiId": {
"type": "number", "description": "The record ID of the extension used for Normandy API calls"
}
}, "required": [
"slug", "extensionApiId"
], "description": "Install an add-on permanently"
}
}
}, "NormandyRecipe": {

@@ -674,42 +720,2 @@ "$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/NormandyRecipe", "definitions": {

}
}, "AddonRolloutArguments": {
"$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/AddonRolloutArguments", "definitions": {
"AddonRolloutArguments": {
"type": "object", "properties": {
"slug": {
"type": "string", "description": "Unique identifier for the rollout, used in telemetry and rollbacks", "pattern": "^[a-z0-9\\-_]+$"
}, "extensionApiId": {
"type": "number", "description": "The record ID of the extension used for Normandy API calls"
}
}, "required": [
"slug", "extensionApiId"
], "description": "Install an add-on permanently"
}
}
}, "PreferenceRolloutArguments": {
"$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/PreferenceRolloutArguments", "definitions": {
"PreferenceRolloutArguments": {
"type": "object", "properties": {
"slug": {
"type": "string", "description": "Unique identifier for the rollout, used in telemetry and rollbacks", "pattern": "^[a-z0-9\\-_]+$"
}, "preferences": {
"type": "array", "items": {
"type": "object", "properties": {
"preferenceName": {
"type": "string", "description": "Full dotted path of the preference being changed"
}, "value": {
"type": [
"number", "string", "boolean"
], "description": "Value to set the preference to"
}
}, "required": [
"preferenceName", "value"
]
}, "description": "The preferences to change, and their values"
}
}, "required": [
"slug", "preferences"
], "description": "Change preferences permanently"
}
}
}, "MessagingExperimentArguments": {

@@ -797,2 +803,22 @@ "$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/MessagingExperimentArguments", "definitions": {

}
}, "OptOutStudyArguments": {
"$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/OptOutStudyArguments", "definitions": {
"OptOutStudyArguments": {
"type": "object", "properties": {
"addonUrl": {
"type": "string", "description": "URL of the add-on XPI file to install", "minLength": 1
}, "name": {
"type": "string", "description": "User-facing name of the study", "minLength": 1
}, "description": {
"type": "string", "description": "User-facing description of the study", "minLength": 1
}, "extensionApiId": {
"type": "number", "description": "The record ID of the extension used for Normandy API calls."
}, "isEnrollmentPaused": {
"type": "boolean", "description": "If true, new users will not be enrolled in the study"
}
}, "required": [
"addonUrl", "name", "description", "extensionApiId"
], "description": "Enroll a user in an opt-out add-on study"
}
}
}, "MultiPreferenceExperimentArguments": {

@@ -854,23 +880,3 @@ "$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/MultiPreferenceExperimentArguments", "definitions": {

}
}, "OptOutStudyArguments": {
"$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/OptOutStudyArguments", "definitions": {
"OptOutStudyArguments": {
"type": "object", "properties": {
"addonUrl": {
"type": "string", "description": "URL of the add-on XPI file to install", "minLength": 1
}, "name": {
"type": "string", "description": "User-facing name of the study", "minLength": 1
}, "description": {
"type": "string", "description": "User-facing description of the study", "minLength": 1
}, "extensionApiId": {
"type": "number", "description": "The record ID of the extension used for Normandy API calls."
}, "isEnrollmentPaused": {
"type": "boolean", "description": "If true, new users will not be enrolled in the study"
}
}, "required": [
"addonUrl", "name", "description", "extensionApiId"
], "description": "Enroll a user in an opt-out add-on study"
}
}
}
};

@@ -131,3 +131,3 @@ /**

[locale: string]: Record<string, string>;
};
} | null;
}

@@ -134,0 +134,0 @@

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