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

@travetto/model

Package Overview
Dependencies
Maintainers
1
Versions
371
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/model - npm Package Compare versions

Comparing version 0.2.9 to 0.2.10

extension/rest.ts

15

e2e/model-controller.ts

@@ -1,3 +0,1 @@

import { Request } from 'express';
import { Get } from '@travetto/rest';

@@ -7,4 +5,8 @@ import { ChangeEvent, Class } from '@travetto/registry';

import { ModelController } from '../extension/express';
import { Model, BaseModel, ModelSource, ModelService, ModelCore, ModelQuery, Query, BulkState, BulkResponse, PageableModelQuery } from '../src';
import { ModelController } from '../extension/rest';
import {
Model, ModelSource, ModelService, ModelCore,
ModelQuery, Query, BulkState, BulkResponse,
PageableModelQuery
} from '../src';
import { QueryVerifierService } from '../src/service/query';

@@ -86,3 +88,4 @@

@Model()
class Simple extends BaseModel {
class Simple implements ModelCore {
id?: string;
name: string;

@@ -103,3 +106,3 @@ }

@Get('/fun')
getById(req: Request) {
getById() {
return {

@@ -106,0 +109,0 @@ message: 'Custom get all by'

6

package.json

@@ -11,3 +11,3 @@ {

"@travetto/di": "^0.2.9",
"@travetto/schema": "^0.2.9"
"@travetto/schema": "^0.2.10"
},

@@ -39,4 +39,4 @@ "description": "Datastore abstraction for CRUD operations with advanced query support.",

},
"version": "0.2.9",
"gitHead": "008ce38a83eb496bfe80b1d8ce572a87d558ce1b"
"version": "0.2.10",
"gitHead": "2a12d7cbc8185aef3508172a70104f2e27ad6dc5"
}
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