Socket
Socket
Sign inDemoInstall

@tsed/common

Package Overview
Dependencies
Maintainers
0
Versions
1100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsed/common - npm Package Compare versions

Comparing version 7.82.2 to 7.82.3

10

lib/cjs/builder/PlatformBuilder.js

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

class PlatformBuilder {
static adapter;
name = "";
startedAt = new Date();
current = new Date();
#injector;

@@ -52,4 +48,8 @@ #rootModule;

#servers;
#listeners = [];
#listeners;
constructor(adapter, module, settings) {
this.name = "";
this.startedAt = new Date();
this.current = new Date();
this.#listeners = [];
this.#rootModule = module;

@@ -56,0 +56,0 @@ const configuration = (0, getConfiguration_js_1.getConfiguration)(settings, module);

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

class AnyToPromiseWithCtx extends core_1.AnyToPromise {
$ctx;
constructor($ctx) {

@@ -9,0 +8,0 @@ super();

@@ -9,35 +9,7 @@ "use strict";

class PlatformContext extends di_1.DIContext {
PLATFORM = "WWW";
event;
/**
* The data return by the previous endpoint if you use multiple handler on the same route. By default data is empty.
*/
data;
/**
* The error caught by the current handler
*/
error;
/**
*
*/
next;
/**
* The current @@PlatformResponse@@.
*/
response;
/**
* The current @@PlatformRequest@@.
*/
request;
/**
* The current @@EndpointMetadata@@ resolved by Ts.ED during the request.
*/
endpoint;
/**
* The current @@PlatformHandlerMetadata@@ resolved by Ts.ED during the request.
*/
handlerMetadata;
#isFinished = false;
#isFinished;
constructor(options) {
super(options);
this.PLATFORM = "WWW";
this.#isFinished = false;
options.endpoint && (this.endpoint = options.endpoint);

@@ -44,0 +16,0 @@ this.event = options.event;

@@ -15,3 +15,2 @@ "use strict";

let PlatformAcceptMimesMiddleware = class PlatformAcceptMimesMiddleware {
acceptMimes;
use(ctx) {

@@ -18,0 +17,0 @@ const { endpoint, request } = ctx;

@@ -24,4 +24,2 @@ "use strict";

let PlatformMulterMiddleware = PlatformMulterMiddleware_1 = class PlatformMulterMiddleware {
settings;
app;
async use(ctx) {

@@ -28,0 +26,0 @@ try {

@@ -6,8 +6,7 @@ "use strict";

class FakeResponse extends node_events_1.EventEmitter {
headers = {};
locals = {};
statusCode = 200;
data;
constructor(opts = {}) {
super();
this.headers = {};
this.locals = {};
this.statusCode = 200;
Object.assign(this, opts);

@@ -14,0 +13,0 @@ }

@@ -15,5 +15,2 @@ "use strict";

let Platform = class Platform {
injector;
platformApplication;
platformRouters;
#layers;

@@ -20,0 +17,0 @@ constructor(injector, platformApplication, platformRouters) {

@@ -8,8 +8,2 @@ "use strict";

class PlatformAdapter {
injector;
static NAME;
/**
* Load providers in top priority
*/
providers;
constructor(injector) {

@@ -36,4 +30,7 @@ this.injector = injector;

class FakeAdapter extends PlatformAdapter {
providers = [];
static NAME = "FAKE_ADAPTER";
constructor() {
super(...arguments);
this.providers = [];
}
static { this.NAME = "FAKE_ADAPTER"; }
static createFakeRawDriver() {

@@ -40,0 +37,0 @@ // istanbul ignore next

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

let PlatformApplication = class PlatformApplication extends platform_router_1.PlatformRouter {
adapter;
injector;
rawApp;
rawCallback;
constructor(adapter, injector) {

@@ -20,0 +16,0 @@ super(injector);

@@ -20,8 +20,2 @@ "use strict";

let PlatformHandler = class PlatformHandler {
platformRouters;
responseFilter;
platformParams;
platformExceptions;
platformApplication;
platformMiddlewaresChain;
constructor(platformRouters) {

@@ -28,0 +22,0 @@ this.platformRouters = platformRouters;

@@ -13,5 +13,2 @@ "use strict";

let PlatformMiddlewaresChain = class PlatformMiddlewaresChain {
acceptMimes;
adapter;
injector;
get(handlers, operationRoute) {

@@ -18,0 +15,0 @@ const { ACCEPT_MIMES, FILE } = this.getParamTypes(handlers, operationRoute);

@@ -11,3 +11,2 @@ "use strict";

let PlatformRequest = class PlatformRequest {
$ctx;
constructor($ctx) {

@@ -14,0 +13,0 @@ this.$ctx = $ctx;

@@ -14,4 +14,2 @@ "use strict";

let PlatformResponse = class PlatformResponse {
$ctx;
data;
constructor($ctx) {

@@ -18,0 +16,0 @@ this.$ctx = $ctx;

@@ -17,3 +17,2 @@ "use strict";

class PlatformTest extends di_1.DITest {
static adapter;
static async create(settings = {}) {

@@ -20,0 +19,0 @@ di_1.DITest.injector = PlatformTest.createInjector((0, getConfiguration_js_1.getConfiguration)(settings));

@@ -16,6 +16,2 @@ import { isClass, isFunction, isString, nameOf } from "@tsed/core";

export class PlatformBuilder {
static adapter;
name = "";
startedAt = new Date();
current = new Date();
#injector;

@@ -26,4 +22,8 @@ #rootModule;

#servers;
#listeners = [];
#listeners;
constructor(adapter, module, settings) {
this.name = "";
this.startedAt = new Date();
this.current = new Date();
this.#listeners = [];
this.#rootModule = module;

@@ -30,0 +30,0 @@ const configuration = getConfiguration(settings, module);

import { AnyToPromise } from "@tsed/core";
export class AnyToPromiseWithCtx extends AnyToPromise {
$ctx;
constructor($ctx) {

@@ -5,0 +4,0 @@ super();

@@ -6,35 +6,7 @@ import { DIContext } from "@tsed/di";

export class PlatformContext extends DIContext {
PLATFORM = "WWW";
event;
/**
* The data return by the previous endpoint if you use multiple handler on the same route. By default data is empty.
*/
data;
/**
* The error caught by the current handler
*/
error;
/**
*
*/
next;
/**
* The current @@PlatformResponse@@.
*/
response;
/**
* The current @@PlatformRequest@@.
*/
request;
/**
* The current @@EndpointMetadata@@ resolved by Ts.ED during the request.
*/
endpoint;
/**
* The current @@PlatformHandlerMetadata@@ resolved by Ts.ED during the request.
*/
handlerMetadata;
#isFinished = false;
#isFinished;
constructor(options) {
super(options);
this.PLATFORM = "WWW";
this.#isFinished = false;
options.endpoint && (this.endpoint = options.endpoint);

@@ -41,0 +13,0 @@ this.event = options.event;

@@ -12,3 +12,2 @@ import { __decorate, __metadata, __param } from "tslib";

let PlatformAcceptMimesMiddleware = class PlatformAcceptMimesMiddleware {
acceptMimes;
use(ctx) {

@@ -15,0 +14,0 @@ const { endpoint, request } = ctx;

@@ -20,4 +20,2 @@ var PlatformMulterMiddleware_1;

let PlatformMulterMiddleware = PlatformMulterMiddleware_1 = class PlatformMulterMiddleware {
settings;
app;
async use(ctx) {

@@ -24,0 +22,0 @@ try {

import { EventEmitter } from "node:events";
export class FakeResponse extends EventEmitter {
headers = {};
locals = {};
statusCode = 200;
data;
constructor(opts = {}) {
super();
this.headers = {};
this.locals = {};
this.statusCode = 200;
Object.assign(this, opts);

@@ -10,0 +9,0 @@ }

@@ -12,5 +12,2 @@ import { __decorate, __metadata } from "tslib";

let Platform = class Platform {
injector;
platformApplication;
platformRouters;
#layers;

@@ -17,0 +14,0 @@ constructor(injector, platformApplication, platformRouters) {

@@ -5,8 +5,2 @@ import { InjectorService, registerProvider } from "@tsed/di";

export class PlatformAdapter {
injector;
static NAME;
/**
* Load providers in top priority
*/
providers;
constructor(injector) {

@@ -32,4 +26,7 @@ this.injector = injector;

export class FakeAdapter extends PlatformAdapter {
providers = [];
static NAME = "FAKE_ADAPTER";
constructor() {
super(...arguments);
this.providers = [];
}
static { this.NAME = "FAKE_ADAPTER"; }
static createFakeRawDriver() {

@@ -36,0 +33,0 @@ // istanbul ignore next

@@ -11,6 +11,2 @@ import { __decorate, __metadata } from "tslib";

let PlatformApplication = class PlatformApplication extends PlatformRouter {
adapter;
injector;
rawApp;
rawCallback;
constructor(adapter, injector) {

@@ -17,0 +13,0 @@ super(injector);

@@ -17,8 +17,2 @@ import { __decorate, __metadata } from "tslib";

let PlatformHandler = class PlatformHandler {
platformRouters;
responseFilter;
platformParams;
platformExceptions;
platformApplication;
platformMiddlewaresChain;
constructor(platformRouters) {

@@ -25,0 +19,0 @@ this.platformRouters = platformRouters;

@@ -10,5 +10,2 @@ import { __decorate, __metadata } from "tslib";

let PlatformMiddlewaresChain = class PlatformMiddlewaresChain {
acceptMimes;
adapter;
injector;
get(handlers, operationRoute) {

@@ -15,0 +12,0 @@ const { ACCEPT_MIMES, FILE } = this.getParamTypes(handlers, operationRoute);

@@ -8,3 +8,2 @@ import { __decorate, __metadata } from "tslib";

let PlatformRequest = class PlatformRequest {
$ctx;
constructor($ctx) {

@@ -11,0 +10,0 @@ this.$ctx = $ctx;

@@ -11,4 +11,2 @@ import { __decorate, __metadata } from "tslib";

let PlatformResponse = class PlatformResponse {
$ctx;
data;
constructor($ctx) {

@@ -15,0 +13,0 @@ this.$ctx = $ctx;

@@ -13,3 +13,2 @@ import { DITest } from "@tsed/di";

export class PlatformTest extends DITest {
static adapter;
static async create(settings = {}) {

@@ -16,0 +15,0 @@ DITest.injector = PlatformTest.createInjector(getConfiguration(settings));

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

"type": "commonjs",
"version": "7.82.2",
"version": "7.82.3",
"source": "./src/index.ts",

@@ -68,16 +68,16 @@ "main": "./lib/cjs/index.js",

"dependencies": {
"@tsed/core": "7.82.2",
"@tsed/di": "7.82.2",
"@tsed/exceptions": "7.82.2",
"@tsed/json-mapper": "7.82.2",
"@tsed/core": "7.82.3",
"@tsed/di": "7.82.3",
"@tsed/exceptions": "7.82.3",
"@tsed/json-mapper": "7.82.3",
"@tsed/logger": ">=6.7.5",
"@tsed/logger-file": ">=6.7.5",
"@tsed/platform-exceptions": "7.82.2",
"@tsed/platform-log-middleware": "7.82.2",
"@tsed/platform-middlewares": "7.82.2",
"@tsed/platform-params": "7.82.2",
"@tsed/platform-response-filter": "7.82.2",
"@tsed/platform-router": "7.82.2",
"@tsed/platform-views": "7.82.2",
"@tsed/schema": "7.82.2",
"@tsed/platform-exceptions": "7.82.3",
"@tsed/platform-log-middleware": "7.82.3",
"@tsed/platform-middlewares": "7.82.3",
"@tsed/platform-params": "7.82.3",
"@tsed/platform-response-filter": "7.82.3",
"@tsed/platform-router": "7.82.3",
"@tsed/platform-views": "7.82.3",
"@tsed/schema": "7.82.3",
"@types/json-schema": "7.0.15",

@@ -89,6 +89,6 @@ "accepts": "^1.3.8",

"devDependencies": {
"@tsed/barrels": "7.82.2",
"@tsed/components-scan": "7.82.2",
"@tsed/engines": "7.82.2",
"@tsed/typescript": "7.82.2",
"@tsed/barrels": "7.82.3",
"@tsed/components-scan": "7.82.3",
"@tsed/engines": "7.82.3",
"@tsed/typescript": "7.82.3",
"cross-env": "7.0.3",

@@ -95,0 +95,0 @@ "eslint": "^8.57.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

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

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