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

@arch-api/next-api-routes-rest

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arch-api/next-api-routes-rest - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

6

dist/index.d.ts
import { NextApiRequest, NextApiResponse } from 'next';
import { NextHandler } from 'next-connect';
import nextConnect, { NextHandler } from 'next-connect';
import { Action, Responder } from '@arch-api/rest';

@@ -40,2 +40,4 @@

export { CreatedNextApiRouteResponder, HttpNextHandler, HttpRequest, HttpResponse, JsonNextApiRouteResponder, NextApiRouteAction, NextApiRouteResponder, NoContentNextApiRouteResponder, NotFoundNextApiRouteResponder };
declare const NextApiRouteConnect: typeof nextConnect<HttpRequest, HttpResponse>;
export { CreatedNextApiRouteResponder, HttpNextHandler, HttpRequest, HttpResponse, JsonNextApiRouteResponder, NextApiRouteAction, NextApiRouteConnect, NextApiRouteResponder, NoContentNextApiRouteResponder, NotFoundNextApiRouteResponder };
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;

@@ -18,2 +20,6 @@ var __export = (target, all) => {

};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

@@ -26,2 +32,3 @@

JsonNextApiRouteResponder: () => JsonNextApiRouteResponder_default,
NextApiRouteConnect: () => NextApiRouteConnect_default,
NoContentNextApiRouteResponder: () => NoContentNextApiRouteResponder_default,

@@ -69,2 +76,12 @@ NotFoundNextApiRouteResponder: () => NotFoundNextApiRouteResponder_default

var NotFoundNextApiRouteResponder_default = NotFoundNextApiRouteResponder;
// src/Connect/NextApiRouteConnect.ts
var import_http_status4 = require("@arch-api/http-status");
var import_next_connect = __toESM(require("next-connect"));
var NextApiRouteConnect = (...args) => {
return (0, import_next_connect.default)(...args).options((req, res) => {
return res.status(import_http_status4.HttpStatuses.OK).end();
});
};
var NextApiRouteConnect_default = NextApiRouteConnect;
// Annotate the CommonJS export names for ESM import in node:

@@ -74,4 +91,5 @@ 0 && (module.exports = {

JsonNextApiRouteResponder,
NextApiRouteConnect,
NoContentNextApiRouteResponder,
NotFoundNextApiRouteResponder
});
{
"name": "@arch-api/next-api-routes-rest",
"version": "1.0.0",
"version": "1.1.0",
"description": "Arch Api - Next Api Routes Rest",

@@ -5,0 +5,0 @@ "keywords": [],

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