Socket
Socket
Sign inDemoInstall

@api-ts/response

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@api-ts/response - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1-beta.1

4

dist/src/keyed-response.d.ts

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

export declare type KeyedStatus = 'continue' | 'switchingProtocols' | 'processing' | 'ok' | 'created' | 'accepted' | 'nonAuthoritativeInformation' | 'noContent' | 'resetContent' | 'partialContent' | 'multiStatus' | 'alreadyReported' | 'imUsed' | 'multipleChoices' | 'movedPermanently' | 'found' | 'seeOther' | 'notModified' | 'temporaryRedirect' | 'permanentRedirect' | 'invalidRequest' | 'unauthenticated' | 'paymentRequired' | 'permissionDenied' | 'notFound' | 'methodNotAllowed' | 'notAcceptable' | 'proxyAuthenticationRequired' | 'requestTimeout' | 'conflict' | 'gone' | 'lengthRequired' | 'preconditionFailed' | 'contentTooLarge' | 'uriTooLong' | 'unsupportedMediaType' | 'rangeNotSatisfiable' | 'exceptionFailed' | 'imATeapot' | 'misdirectedRequest' | 'unprocessableContent' | 'locked' | 'failedDependency' | 'tooEarly' | 'upgradeRequired' | 'preconditionRequired' | 'rateLimitExceeded' | 'requestHeaderFieldsTooLarge' | 'unavailableForLegalReasons' | 'internalError' | 'notImplemented' | 'badGateway' | 'serviceUnavailable' | 'gatewayTimeout' | 'httpVersionNotSupported' | 'variantAlsoNegotiates' | 'insufficientStorage' | 'loopDetected' | 'notExtended' | 'networkAuthenticationRequired';
export declare type KeyedResponse = {
export type KeyedStatus = 'continue' | 'switchingProtocols' | 'processing' | 'ok' | 'created' | 'accepted' | 'nonAuthoritativeInformation' | 'noContent' | 'resetContent' | 'partialContent' | 'multiStatus' | 'alreadyReported' | 'imUsed' | 'multipleChoices' | 'movedPermanently' | 'found' | 'seeOther' | 'notModified' | 'temporaryRedirect' | 'permanentRedirect' | 'invalidRequest' | 'unauthenticated' | 'paymentRequired' | 'permissionDenied' | 'notFound' | 'methodNotAllowed' | 'notAcceptable' | 'proxyAuthenticationRequired' | 'requestTimeout' | 'conflict' | 'gone' | 'lengthRequired' | 'preconditionFailed' | 'contentTooLarge' | 'uriTooLong' | 'unsupportedMediaType' | 'rangeNotSatisfiable' | 'exceptionFailed' | 'imATeapot' | 'misdirectedRequest' | 'unprocessableContent' | 'locked' | 'failedDependency' | 'tooEarly' | 'upgradeRequired' | 'preconditionRequired' | 'rateLimitExceeded' | 'requestHeaderFieldsTooLarge' | 'unavailableForLegalReasons' | 'internalError' | 'notImplemented' | 'badGateway' | 'serviceUnavailable' | 'gatewayTimeout' | 'httpVersionNotSupported' | 'variantAlsoNegotiates' | 'insufficientStorage' | 'loopDetected' | 'notExtended' | 'networkAuthenticationRequired';
export type KeyedResponse = {
type: KeyedStatus;

@@ -4,0 +4,0 @@ payload: unknown;

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

export declare type Status = 100 | 101 | 102 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511;
export declare type Response = {
export type Status = 100 | 101 | 102 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511;
export type Response = {
type: Status;

@@ -4,0 +4,0 @@ payload: unknown;

{
"name": "@api-ts/response",
"version": "2.1.0",
"version": "2.1.1-beta.1",
"description": "Types for representing responses",

@@ -21,3 +21,3 @@ "author": "Patrick McLaughlin <patrickmclaughlin@bitgo.com>",

"devDependencies": {
"typescript": "4.7.4"
"typescript": "5.2.2"
},

@@ -24,0 +24,0 @@ "publishConfig": {

Sorry, the diff of this file is not supported yet

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