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

@mozilla/nimbus-shared

Package Overview
Dependencies
Maintainers
7
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 0.0.2 to 0.0.3

10

CHANGELOG.md
# Changelog
## Version 0.0.3
### Major Changes
- Added a Python package `mozilla-nimbus-shared` published on PyPI
## Version 0.0.2
### Breaking changes
### Major Changes

@@ -10,3 +16,3 @@ - Schema checks now includes an empty list of errors when schemas match, instead of null

### Changes
### Minor Changes

@@ -13,0 +19,0 @@ - Add CFR schemas

2

dist/types/normandy.d.ts

@@ -90,3 +90,3 @@ /** A Normandy recipe */

*
* @default ""
* @default [{}]
* @format uri

@@ -93,0 +93,0 @@ */

{
"name": "@mozilla/nimbus-shared",
"version": "0.0.2",
"version": "0.0.3",
"license": "MPL-2.0",

@@ -12,4 +12,3 @@ "engines": {

"lint": "make lint",
"test": "make test",
"prepublishOnly": "make clean-build"
"test": "make test"
},

@@ -16,0 +15,0 @@ "main": "dist/index.js",

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

# Nimbus Shared ![CircleCI](https://img.shields.io/circleci/build/github/mozilla/nimbus-shared)
# Nimbus Shared ![CircleCI](https://img.shields.io/circleci/build/github/mozilla/nimbus-shared) ![npm (scoped)](https://img.shields.io/npm/v/@mozilla/nimbus-shared)

@@ -90,6 +90,22 @@ This is a place to define data and schemas used across Project Nimbus.

Native support coming soon. For now, consider using the NPM package and loading the schemas directly
from the filesystem. After installing this package via `npm`, the schemas will be available at
`node_modules/@mozilla/nimbus-shared/schemas/<group>/<type>.json`.
Basic native support is available via the PyPI package `mozilla-nimbus-shared`. The only function is
exposed is one to validate an object against a named schema.
```python
from mozilla_nimbus_shared import check_schema
# Throws an error with details of the problems
check_schema("normandy/ConsoleLogArguments", {})
# Returns True
check_schema("normandy/ConsoleLogArguments", {"message": "hello, world!"})
```
### Other
For other applications, consider using the NPM package and loading the schemas directly from the
filesystem. After installing this package via `npm`, the schemas will be available at
`node_modules/@mozilla/nimbus-shared/schemas/<group>/<type>.json`. Please leave an issue on this
repository if you have a use case not covered by the above.
---

@@ -96,0 +112,0 @@

@@ -248,3 +248,5 @@ {

"description": "URL of a document describing the experiment",
"default": "",
"default": [
{}
],
"format": "uri"

@@ -251,0 +253,0 @@ },

@@ -72,3 +72,5 @@ {

"description": "URL of a document describing the experiment",
"default": "",
"default": [
{}
],
"format": "uri"

@@ -75,0 +77,0 @@ },

@@ -127,3 +127,3 @@ /** A Normandy recipe */

*
* @default ""
* @default [{}]
* @format uri

@@ -130,0 +130,0 @@ */

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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