Socket
Socket
Sign inDemoInstall

@stoplight/types

Package Overview
Dependencies
Maintainers
7
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/types - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

yarn.lock

36

http.d.ts

@@ -26,2 +26,3 @@ import { INode } from './node';

name: string;
style?: HttpParamStyles;
description?: string;

@@ -38,8 +39,25 @@ required?: boolean;

declare const enum HttpParamStyles {
Simple = 'simple',
Matrix = 'matrix',
Label = 'label',
Form = 'form',
SpaceDelimited = 'spaceDelimited',
PipeDelimited = 'pipeDelimited',
DeepObject = 'deepObject',
}
export interface IHttpPathParam extends IHttpParam {
style?: 'simple' | 'matrix' | 'label'; // defaults to simple
// defaults to simple
style?: HttpParamStyles.Label | HttpParamStyles.Matrix | HttpParamStyles.Simple;
}
export interface IHttpQueryParam extends IHttpParam {
style?: 'form' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject'; // defaults to form
// defaults to form
style?:
| HttpParamStyles.Form
| HttpParamStyles.SpaceDelimited
| HttpParamStyles.PipeDelimited
| HttpParamStyles.DeepObject;
allowEmptyValue?: boolean;

@@ -50,7 +68,9 @@ allowReserved?: boolean;

export interface IHttpHeaderParam extends IHttpParam {
style?: 'simple'; // defaults to simple
// defaults to simple
style?: HttpParamStyles.Simple;
}
export interface IHttpCookieParam extends IHttpParam {
style?: 'form'; // defaults to form
// defaults to form
style?: HttpParamStyles.Form;
}

@@ -62,3 +82,9 @@

headers?: IHttpHeaderParam[];
style?: 'form' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject'; // defaults to form
// deafults to form
style:
| HttpParamStyles.Form
| HttpParamStyles.SpaceDelimited
| HttpParamStyles.PipeDelimited
| HttpParamStyles.DeepObject;
explode?: boolean;

@@ -65,0 +91,0 @@ allowReserved?: boolean;

2

package.json
{
"name": "@stoplight/types",
"version": "1.0.3",
"version": "1.0.4",
"author": "Stoplight <support@stoplight.io>",

@@ -5,0 +5,0 @@ "license": "MIT",

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