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

gatsby-plugin-utils

Package Overview
Dependencies
Maintainers
16
Versions
313
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-utils - npm Package Compare versions

Comparing version 0.2.26 to 0.2.27

dist/joi.d.ts

6

CHANGELOG.md

@@ -6,2 +6,8 @@ # Change Log

## [0.2.27](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-utils@0.2.26...gatsby-plugin-utils@0.2.27) (2020-10-07)
### Features
- **gatsby:** plugin option validation ([#27242](https://github.com/gatsbyjs/gatsby/issues/27242)) ([9b01ca7](https://github.com/gatsbyjs/gatsby/commit/9b01ca7926efa1c4c6d58b33a137c2f0a0ef99b7))
## 0.2.26 (2020-10-06)

@@ -8,0 +14,0 @@

1

dist/index.d.ts
export * from "./validate";
export * from "./joi";

@@ -10,2 +10,9 @@ "use strict";

exports[key] = _validate[key];
});
var _joi = require("./joi");
Object.keys(_joi).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
exports[key] = _joi[key];
});

4

dist/validate.d.ts

@@ -1,6 +0,6 @@

import { Schema } from "joi";
import { ObjectSchema } from "./utils/plugin-options-schema-joi-type";
interface IOptions {
validateExternalRules?: boolean;
}
export declare function validateOptionsSchema<PluginOptions = object>(pluginSchema: Schema, pluginOptions: PluginOptions, options?: IOptions): Promise<PluginOptions>;
export declare function validateOptionsSchema<PluginOptions = object>(pluginSchema: ObjectSchema, pluginOptions: PluginOptions, options?: IOptions): Promise<PluginOptions>;
export {};
{
"name": "gatsby-plugin-utils",
"version": "0.2.26",
"version": "0.2.27",
"description": "Gatsby utils that help creating plugins",

@@ -41,3 +41,3 @@ "main": "dist/index.js",

},
"gitHead": "84fa4be59108d02c40acbd2fb07c96a0c85aa85c"
"gitHead": "7d094d3eb33452783eefd7902282d47ade356e48"
}
/* eslint-disable @typescript-eslint/explicit-function-return-type */
import Joi from "joi"
import { validateOptionsSchema } from "../"
import { validateOptionsSchema, Joi } from "../"

@@ -5,0 +4,0 @@ it(`validates a basic schema`, async () => {

export * from "./validate"
export * from "./joi"

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

import { BaseValidationOptions, Schema } from "joi"
import { BaseValidationOptions } from "joi"
import { ObjectSchema } from "./utils/plugin-options-schema-joi-type"

@@ -14,3 +15,3 @@ const validationOptions: BaseValidationOptions = {

export async function validateOptionsSchema<PluginOptions = object>(
pluginSchema: Schema,
pluginSchema: ObjectSchema,
pluginOptions: PluginOptions,

@@ -17,0 +18,0 @@ options: IOptions = {}

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