New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mairu/joi-to-swagger

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mairu/joi-to-swagger - npm Package Compare versions

Comparing version 3.2.0 to 4.0.0

5

CHANGELOG.md

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

4.0.0 / 2019-06-02
==================
* Use @hapi/joi instead of joi
3.2.0 / 2019-04-17

@@ -2,0 +7,0 @@ ==================

2

index.d.ts

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

import { Schema } from 'joi';
import { Schema } from '@hapi/joi';

@@ -3,0 +3,0 @@ interface SwaggerSchema {

'use strict';
var joi = require('joi');
var joi = require('@hapi/joi');
var find = require('lodash.find');

@@ -5,0 +5,0 @@ var get = require('lodash.get');

@@ -1,3 +0,4 @@

joi-to-swagger
Copyright (c) 2017, Jocelyn Badgley - joc@twipped.com
@mairu/joi-to-swagger
Copyright (c) 2017-2019, Jocelyn Badgley - joc@twipped.com
Copyright (c) 2019, Sebastian Große - mairu@gmx.net

@@ -4,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining

{
"name": "@mairu/joi-to-swagger",
"version": "3.2.0",
"description": "",
"version": "4.0.0",
"description": "Transformation of joi schema objects to swagger schema definitions",
"main": "index.js",

@@ -33,3 +33,3 @@ "scripts": {

"eslint-plugin-promise": "~4.1.1",
"joi": "~14.3.1",
"@hapi/joi": "~15.0.0",
"tap": "~12.6.1",

@@ -39,7 +39,8 @@ "tapsuite": "~1.1.1"

"peerDependencies": {
"joi": ">= 13"
"@hapi/joi": ">= 15"
},
"files": [
"index.js",
"index.d.ts"
"index.d.ts",
"LICENSE.txt"
],

@@ -46,0 +47,0 @@ "dependencies": {

@mairu/joi-to-swagger
==============
Conversion library for transforming [Joi](http://npm.im/joi) schema objects into [Swagger](http://swagger.io) schema definitions.
Conversion library for transforming [Joi](https://www.npmjs.com/package/@hapi/joi) schema objects into [Swagger](https://swagger.io) schema definitions.

@@ -17,3 +17,3 @@ ```js

```js
```json
// output

@@ -50,3 +50,3 @@ {

```js
var j2s = require('joi-to-swagger');
var j2s = require('@mairu/joi-to-swagger');

@@ -53,0 +53,0 @@ var {swagger, components} = j2s(mySchema, existingComponents);

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