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

@feathersjs/express

Package Overview
Dependencies
Maintainers
3
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feathersjs/express - npm Package Compare versions

Comparing version 5.0.0-pre.31 to 5.0.0-pre.32

7

CHANGELOG.md

@@ -6,2 +6,9 @@ # Change Log

# [5.0.0-pre.32](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.31...v5.0.0-pre.32) (2022-10-26)
### Bug Fixes
- **docs:** Review transport API docs and update Express middleware setup ([#2811](https://github.com/feathersjs/feathers/issues/2811)) ([1b97f14](https://github.com/feathersjs/feathers/commit/1b97f14d474f5613482f259eeaa585c24fcfab43))
- **transports:** Add remaining middleware for generated apps to Koa and Express ([#2796](https://github.com/feathersjs/feathers/issues/2796)) ([0d5781a](https://github.com/feathersjs/feathers/commit/0d5781a5c72a0cbb2ec8211bfa099f0aefe115a2))
# [5.0.0-pre.31](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.30...v5.0.0-pre.31) (2022-10-12)

@@ -8,0 +15,0 @@

2

lib/declarations.d.ts

@@ -31,3 +31,3 @@ /// <reference types="node" />

interface Request {
feathers?: Partial<FeathersParams> & {
feathers: Partial<FeathersParams> & {
[key: string]: any;

@@ -34,0 +34,0 @@ };

import { Express } from 'express';
import { Application as FeathersApplication } from '@feathersjs/feathers';
import cors from 'cors';
import compression from 'compression';
import { rest, RestOptions, formatter } from './rest';

@@ -9,3 +10,3 @@ import { errorHandler, notFound, ErrorHandlerOptions } from './handlers';

import { default as original, static as serveStatic, json, raw, text, urlencoded, query } from 'express';
export { original, serveStatic, serveStatic as static, json, raw, text, urlencoded, query, rest, RestOptions, formatter, errorHandler, notFound, Application, ErrorHandlerOptions, ExpressOverrides, AuthenticationSettings, parseAuthentication, authenticate, cors };
export { original, serveStatic, serveStatic as static, json, raw, text, urlencoded, query, rest, RestOptions, formatter, errorHandler, notFound, Application, ErrorHandlerOptions, ExpressOverrides, AuthenticationSettings, parseAuthentication, authenticate, cors, compression };
export default function feathersExpress<S = any, C = any>(feathersApp?: FeathersApplication<S, C>, expressApp?: Express): Application<S, C>;

@@ -29,3 +29,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.cors = exports.authenticate = exports.parseAuthentication = exports.notFound = exports.errorHandler = exports.formatter = exports.rest = exports.query = exports.urlencoded = exports.text = exports.raw = exports.json = exports.static = exports.serveStatic = exports.original = void 0;
exports.compression = exports.cors = exports.authenticate = exports.parseAuthentication = exports.notFound = exports.errorHandler = exports.formatter = exports.rest = exports.query = exports.urlencoded = exports.text = exports.raw = exports.json = exports.static = exports.serveStatic = exports.original = void 0;
const express_1 = __importDefault(require("express"));

@@ -37,2 +37,4 @@ const feathers_1 = require("@feathersjs/feathers");

exports.cors = cors_1.default;
const compression_1 = __importDefault(require("compression"));
exports.compression = compression_1.default;
const rest_1 = require("./rest");

@@ -141,2 +143,6 @@ Object.defineProperty(exports, "rest", { enumerable: true, get: function () { return rest_1.rest; } });

app.configure((0, transport_commons_1.routing)());
app.use((req, _res, next) => {
req.feathers = { ...req.feathers, provider: 'rest' };
return next();
});
return app;

@@ -143,0 +149,0 @@ }

@@ -74,6 +74,2 @@ "use strict";

}
app.use((req, _res, next) => {
req.feathers = { ...req.feathers, provider: 'rest' };
return next();
});
app.use((0, authentication_1.parseAuthentication)(authenticationOptions));

@@ -80,0 +76,0 @@ app.use(servicesMiddleware());

{
"name": "@feathersjs/express",
"description": "Feathers Express framework bindings and REST provider",
"version": "5.0.0-pre.31",
"version": "5.0.0-pre.32",
"homepage": "https://feathersjs.com",

@@ -55,9 +55,11 @@ "main": "lib/",

"dependencies": {
"@feathersjs/authentication": "^5.0.0-pre.31",
"@feathersjs/commons": "^5.0.0-pre.31",
"@feathersjs/errors": "^5.0.0-pre.31",
"@feathersjs/feathers": "^5.0.0-pre.31",
"@feathersjs/transport-commons": "^5.0.0-pre.31",
"@feathersjs/authentication": "^5.0.0-pre.32",
"@feathersjs/commons": "^5.0.0-pre.32",
"@feathersjs/errors": "^5.0.0-pre.32",
"@feathersjs/feathers": "^5.0.0-pre.32",
"@feathersjs/transport-commons": "^5.0.0-pre.32",
"@types/compression": "^1.7.2",
"@types/express": "^4.17.14",
"@types/express-serve-static-core": "^4.17.31",
"compression": "^1.7.4",
"cors": "^2.8.5",

@@ -67,4 +69,4 @@ "express": "^4.18.1"

"devDependencies": {
"@feathersjs/authentication-local": "^5.0.0-pre.31",
"@feathersjs/tests": "^5.0.0-pre.31",
"@feathersjs/authentication-local": "^5.0.0-pre.32",
"@feathersjs/tests": "^5.0.0-pre.32",
"@types/lodash": "^4.14.186",

@@ -80,3 +82,3 @@ "@types/mocha": "^10.0.0",

},
"gitHead": "4500dbeb8cea566678cf88b3313a88efd93a2ed9"
"gitHead": "b405e205fc6d9fbd42b42c7a3f30ea4bf33d121d"
}

@@ -52,3 +52,3 @@ import http from 'http'

interface Request {
feathers?: Partial<FeathersParams> & { [key: string]: any }
feathers: Partial<FeathersParams> & { [key: string]: any }
lookup?: RouteLookup

@@ -55,0 +55,0 @@ }

@@ -6,2 +6,3 @@ import express, { Express } from 'express'

import cors from 'cors'
import compression from 'compression'

@@ -34,3 +35,4 @@ import { rest, RestOptions, formatter } from './rest'

authenticate,
cors
cors,
compression
}

@@ -146,2 +148,6 @@

app.configure(routing() as any)
app.use((req, _res, next) => {
req.feathers = { ...req.feathers, provider: 'rest' }
return next()
})

@@ -148,0 +154,0 @@ return app

@@ -100,6 +100,2 @@ import { Request, Response, RequestHandler, Router } from 'express'

app.use((req, _res, next) => {
req.feathers = { ...req.feathers, provider: 'rest' }
return next()
})
app.use(parseAuthentication(authenticationOptions))

@@ -106,0 +102,0 @@ app.use(servicesMiddleware())

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