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

@tsed/platform-router

Package Overview
Dependencies
Maintainers
0
Versions
332
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsed/platform-router - npm Package Compare versions

Comparing version 8.5.0-beta.2 to 8.5.0

8

lib/esm/domain/PlatformHandlerMetadata.js

@@ -98,10 +98,2 @@ import { nameOf } from "@tsed/core";

}
/**
* Checks if the handler is a raw middleware function.
* Raw middleware functions are non-injectable handlers of type RAW_FN or RAW_ERR_FN.
* @returns {boolean} True if the handler is a raw middleware function
*/
isRawMiddleware() {
return !this.isInjectable() && (this.type === PlatformHandlerType.RAW_FN || this.type === PlatformHandlerType.RAW_ERR_FN);
}
toString() {

@@ -108,0 +100,0 @@ return [nameOf(this.target), this.propertyKey].filter(Boolean).join(".");

@@ -39,9 +39,3 @@ import { DIContext, Provider, ProviderScope, TokenProvider } from "@tsed/di";

isResponseFn(): boolean;
/**
* Checks if the handler is a raw middleware function.
* Raw middleware functions are non-injectable handlers of type RAW_FN or RAW_ERR_FN.
* @returns {boolean} True if the handler is a raw middleware function
*/
isRawMiddleware(): boolean;
toString(): string;
}

35

package.json

@@ -5,3 +5,3 @@ {

"type": "module",
"version": "8.5.0-beta.2",
"version": "8.5.0",
"source": "./src/index.ts",

@@ -30,10 +30,10 @@ "main": "./lib/esm/index.js",

"devDependencies": {
"@tsed/barrels": "8.5.0-beta.2",
"@tsed/core": "8.5.0-beta.2",
"@tsed/di": "8.5.0-beta.2",
"@tsed/exceptions": "8.5.0-beta.2",
"@tsed/json-mapper": "8.5.0-beta.2",
"@tsed/platform-params": "8.5.0-beta.2",
"@tsed/schema": "8.5.0-beta.2",
"@tsed/typescript": "8.5.0-beta.2",
"@tsed/barrels": "8.5.0",
"@tsed/core": "8.5.0",
"@tsed/di": "8.5.0",
"@tsed/exceptions": "8.5.0",
"@tsed/json-mapper": "8.5.0",
"@tsed/platform-params": "8.5.0",
"@tsed/schema": "8.5.0",
"@tsed/typescript": "8.5.0",
"eslint": "9.12.0",

@@ -44,8 +44,8 @@ "typescript": "5.4.5",

"peerDependencies": {
"@tsed/core": ">=8.5.0-beta.2",
"@tsed/di": ">=8.5.0-beta.2",
"@tsed/exceptions": ">=8.5.0-beta.2",
"@tsed/json-mapper": ">=8.5.0-beta.2",
"@tsed/platform-params": ">=8.5.0-beta.2",
"@tsed/schema": ">=8.5.0-beta.2"
"@tsed/core": ">=8.5.0",
"@tsed/di": ">=8.5.0",
"@tsed/exceptions": ">=8.5.0",
"@tsed/json-mapper": ">=8.5.0",
"@tsed/platform-params": ">=8.5.0",
"@tsed/schema": ">=8.5.0"
},

@@ -78,6 +78,3 @@ "peerDependenciesMeta": {

"author": "Romain Lenzotti",
"license": "MIT",
"publishConfig": {
"tag": "beta"
}
"license": "MIT"
}

@@ -37,3 +37,2 @@ import {Controller, destroyInjector, injector} from "@tsed/di";

expect(handlerMetadata.toString()).toEqual("");
expect(handlerMetadata.isRawMiddleware()).toEqual(false);
});

@@ -55,3 +54,2 @@ });

expect(handlerMetadata.toString()).toEqual("handler");
expect(handlerMetadata.isRawMiddleware()).toEqual(true);
});

@@ -74,3 +72,2 @@ });

expect(handlerMetadata.toString()).toEqual("handler");
expect(handlerMetadata.isRawMiddleware()).toEqual(true);
});

@@ -94,3 +91,2 @@ });

expect(handlerMetadata.toString()).toEqual("handler");
expect(handlerMetadata.isRawMiddleware()).toEqual(true);
});

@@ -128,3 +124,2 @@ });

expect(handlerMetadata.getParams()[1].paramType).toEqual("NEXT_FN");
expect(handlerMetadata.isRawMiddleware()).toEqual(false);
});

@@ -157,5 +152,4 @@ });

expect(handlerMetadata.toString()).toEqual("Test.use");
expect(handlerMetadata.isRawMiddleware()).toEqual(false);
});
});
});

@@ -142,11 +142,2 @@ import {nameOf} from "@tsed/core";

/**
* Checks if the handler is a raw middleware function.
* Raw middleware functions are non-injectable handlers of type RAW_FN or RAW_ERR_FN.
* @returns {boolean} True if the handler is a raw middleware function
*/
public isRawMiddleware() {
return !this.isInjectable() && (this.type === PlatformHandlerType.RAW_FN || this.type === PlatformHandlerType.RAW_ERR_FN);
}
toString() {

@@ -153,0 +144,0 @@ return [nameOf(this.target), this.propertyKey].filter(Boolean).join(".");

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