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

d2l-lms-launch-darkly-feature-converter-plugin

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d2l-lms-launch-darkly-feature-converter-plugin - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

test/JsonSchemaValidatorTests.js

2

package.json
{
"name": "d2l-lms-launch-darkly-feature-converter-plugin",
"version": "0.0.0",
"version": "0.0.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -39,3 +39,3 @@ const _ = require( 'lodash' );

instanceId => `instance:${ instanceId }`
)
);

@@ -42,0 +42,0 @@ return {

@@ -6,2 +6,12 @@ const Ajv = require( 'ajv' );

class JsonValidationError extends Error {
constructor( message, details, ...args ) {
super( message, ...args );
this.details = details;
Error.captureStackTrace( this, JsonValidationError );
}
}
module.exports = class JsonSchemaValidator {

@@ -20,6 +30,5 @@

const errors = this._schemaValidator.errors;
const errorsJson = JSON.stringify( errors, null, '\t' );
throw new Error( `Invalid feature definition: ${errorsJson}` );
const details = this._schemaValidator.errors;
throw new JsonValidationError( 'Invalid feature definition', details );
}
};

Sorry, the diff of this file is not supported yet

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