Socket
Socket
Sign inDemoInstall

@feathersjs/transport-commons

Package Overview
Dependencies
Maintainers
3
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feathersjs/transport-commons - npm Package Compare versions

Comparing version 5.0.11 to 5.0.12

6

CHANGELOG.md

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

## [5.0.12](https://github.com/feathersjs/feathers/compare/v5.0.11...v5.0.12) (2023-11-28)
### Bug Fixes
- **transport-commons:** Allow case insensitive route lookups ([#3353](https://github.com/feathersjs/feathers/issues/3353)) ([a4a5ab6](https://github.com/feathersjs/feathers/commit/a4a5ab6cb59048176292cd71c04a32aa71ac4642))
## [5.0.11](https://github.com/feathersjs/feathers/compare/v5.0.10...v5.0.11) (2023-10-11)

@@ -8,0 +14,0 @@

1

lib/routing/router.d.ts

@@ -25,2 +25,3 @@ export interface LookupData {

root: RouteNode<T>;
caseSensitive: boolean;
constructor(root?: RouteNode<T>);

@@ -27,0 +28,0 @@ getPath(path: string): string[];

@@ -90,5 +90,10 @@ "use strict";

this.root = root;
this.caseSensitive = true;
}
getPath(path) {
return (0, commons_1.stripSlashes)(path).split('/');
const result = (0, commons_1.stripSlashes)(path).split('/');
if (!this.caseSensitive) {
return result.map((p) => (p.startsWith(':') ? p : p.toLowerCase()));
}
return result;
}

@@ -95,0 +100,0 @@ insert(path, data) {

20

package.json
{
"name": "@feathersjs/transport-commons",
"description": "Shared functionality for websocket providers",
"version": "5.0.11",
"version": "5.0.12",
"homepage": "https://feathersjs.com",

@@ -57,5 +57,5 @@ "main": "lib/",

"dependencies": {
"@feathersjs/commons": "^5.0.11",
"@feathersjs/errors": "^5.0.11",
"@feathersjs/feathers": "^5.0.11",
"@feathersjs/commons": "^5.0.12",
"@feathersjs/errors": "^5.0.12",
"@feathersjs/feathers": "^5.0.12",
"encodeurl": "^1.0.2",

@@ -65,12 +65,12 @@ "lodash": "^4.17.21"

"devDependencies": {
"@types/encodeurl": "^1.0.0",
"@types/lodash": "^4.14.199",
"@types/mocha": "^10.0.2",
"@types/node": "^20.8.4",
"@types/encodeurl": "^1.0.2",
"@types/lodash": "^4.14.202",
"@types/mocha": "^10.0.6",
"@types/node": "^20.10.0",
"mocha": "^10.2.0",
"shx": "^0.3.4",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
"typescript": "^5.3.2"
},
"gitHead": "91294817845178ff0e9d4709127cb3e46d3562be"
"gitHead": "9e0aadcee4f6ad45d4b364b7fa6f6caf6c7ed419"
}

@@ -118,6 +118,14 @@ import { stripSlashes } from '@feathersjs/commons'

export class Router<T = any> {
public caseSensitive = true
constructor(public root: RouteNode<T> = new RouteNode<T>('', 0)) {}
getPath(path: string) {
return stripSlashes(path).split('/')
const result = stripSlashes(path).split('/')
if (!this.caseSensitive) {
return result.map((p) => (p.startsWith(':') ? p : p.toLowerCase()))
}
return result
}

@@ -124,0 +132,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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