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

apibuilder-js

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apibuilder-js - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

dist/type/definition/ApiBuilderAnnotation.d.ts

4

dist/type/definition/ApiBuilderOperation.d.ts

@@ -23,3 +23,3 @@ import { ApiBuilderAttributeConfig } from './ApiBuilderAttribute';

export interface ApiBuilderOperationConfig {
readonly method: ApiBuilderMethod;
readonly method: ApiBuilderMethod | keyof typeof ApiBuilderMethod;
readonly path: string;

@@ -38,3 +38,3 @@ readonly description?: string;

constructor(config: ApiBuilderOperationConfig, resource: ApiBuilderResource, service: ApiBuilderService);
readonly method: ApiBuilderMethod;
readonly method: ApiBuilderMethod | "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "CONNECT" | "OPTIONS" | "TRACE";
readonly isDeprecated: boolean;

@@ -41,0 +41,0 @@ readonly deprecationReason: string | undefined;

@@ -7,6 +7,6 @@ import { ApiBuilderDeprecationConfig } from './ApiBuilderDeprecation';

export declare enum ApiBuilderParameterLocation {
PATH = "Path",
QUERY = "Query",
FORM = "Form",
HEADER = "Header"
Path = "Path",
Query = "Query",
Form = "Form",
Header = "Header"
}

@@ -19,3 +19,3 @@ /**

readonly type: string;
readonly location: ApiBuilderParameterLocation;
readonly location: ApiBuilderParameterLocation | keyof typeof ApiBuilderParameterLocation;
readonly description?: string;

@@ -37,4 +37,4 @@ readonly deprecation?: ApiBuilderDeprecationConfig;

readonly description: string | undefined;
readonly location: ApiBuilderParameterLocation;
readonly location: ApiBuilderParameterLocation | "Path" | "Query" | "Form" | "Header";
readonly isRequired: boolean;
}

@@ -9,6 +9,6 @@ "use strict";

(function (ApiBuilderParameterLocation) {
ApiBuilderParameterLocation["PATH"] = "Path";
ApiBuilderParameterLocation["QUERY"] = "Query";
ApiBuilderParameterLocation["FORM"] = "Form";
ApiBuilderParameterLocation["HEADER"] = "Header";
ApiBuilderParameterLocation["Path"] = "Path";
ApiBuilderParameterLocation["Query"] = "Query";
ApiBuilderParameterLocation["Form"] = "Form";
ApiBuilderParameterLocation["Header"] = "Header";
})(ApiBuilderParameterLocation = exports.ApiBuilderParameterLocation || (exports.ApiBuilderParameterLocation = {}));

@@ -15,0 +15,0 @@ var ApiBuilderParameter = /** @class */ (function () {

import { ApiBuilderDeprecationConfig } from './ApiBuilderDeprecation';
import { ApiBuilderHeaderConfig } from './ApiBuilderHeader';
import { ApiBuilderAttributeConfig } from './ApiBuilderAttribute';
/**

@@ -31,3 +32,4 @@ * @see https://app.apibuilder.io/bryzek/apidoc-spec/latest#enum-response_code_option

readonly deprecation?: ApiBuilderDeprecationConfig;
readonly attributes: ReadonlyArray<ApiBuilderAttributeConfig>;
}
export {};

@@ -8,2 +8,3 @@ import { ApiBuilderAttributeConfig } from './ApiBuilderAttribute';

import { ApiBuilderUnion, ApiBuilderUnionConfig } from './ApiBuilderUnion';
import { ApiBuilderAnnotationConfig } from './ApiBuilderAnnotation';
export interface ApiBuilderApiDocConfig {

@@ -60,2 +61,3 @@ readonly version: string;

readonly attributes: ReadonlyArray<ApiBuilderAttributeConfig>;
readonly annotations: ReadonlyArray<ApiBuilderAnnotationConfig>;
}

@@ -62,0 +64,0 @@ /**

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

export * from './ApiBuilderAnnotation';
export * from './ApiBuilderArray';

@@ -2,0 +3,0 @@ export * from './ApiBuilderAttribute';

{
"name": "apibuilder-js",
"version": "0.0.2",
"version": "0.0.3",
"description": "A reference implementation of API Builder for JavaScript",

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

@@ -27,3 +27,3 @@ import { flow, get, getOr, inRange } from 'lodash/fp';

export interface ApiBuilderOperationConfig {
readonly method: ApiBuilderMethod;
readonly method: ApiBuilderMethod | keyof typeof ApiBuilderMethod;
readonly path: string;

@@ -30,0 +30,0 @@ readonly description?: string;

@@ -9,6 +9,6 @@ import { ApiBuilderDeprecationConfig } from './ApiBuilderDeprecation';

export enum ApiBuilderParameterLocation {
PATH = 'Path',
QUERY = 'Query',
FORM = 'Form',
HEADER = 'Header',
Path = 'Path',
Query = 'Query',
Form = 'Form',
Header = 'Header',
}

@@ -22,3 +22,3 @@

readonly type: string;
readonly location: ApiBuilderParameterLocation;
readonly location: ApiBuilderParameterLocation | keyof typeof ApiBuilderParameterLocation;
readonly description?: string;

@@ -25,0 +25,0 @@ readonly deprecation?: ApiBuilderDeprecationConfig;

import { ApiBuilderDeprecationConfig } from './ApiBuilderDeprecation';
import { ApiBuilderHeaderConfig } from './ApiBuilderHeader';
import { ApiBuilderAttributeConfig } from './ApiBuilderAttribute';

@@ -37,2 +38,3 @@ /**

readonly deprecation?: ApiBuilderDeprecationConfig;
readonly attributes: ReadonlyArray<ApiBuilderAttributeConfig>;
}

@@ -9,2 +9,3 @@ import { flatMap, matchesProperty, overSome } from 'lodash';

import { ApiBuilderUnion, ApiBuilderUnionConfig } from './ApiBuilderUnion';
import { ApiBuilderAnnotationConfig } from './ApiBuilderAnnotation';

@@ -68,2 +69,3 @@ export interface ApiBuilderApiDocConfig {

readonly attributes: ReadonlyArray<ApiBuilderAttributeConfig>;
readonly annotations: ReadonlyArray<ApiBuilderAnnotationConfig>;
}

@@ -70,0 +72,0 @@

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

export * from './ApiBuilderAnnotation';
export * from './ApiBuilderArray';

@@ -2,0 +3,0 @@ export * from './ApiBuilderAttribute';

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