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

@thisisagile/easy

Package Overview
Dependencies
Maintainers
2
Versions
1277
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thisisagile/easy - npm Package Compare versions

Comparing version 1.12.13 to 1.13.0

dist/process/Manage.d.ts

2

dist/domain/Repo.d.ts

@@ -12,5 +12,5 @@ import { Constructor, Gateway, Id, Json, JsonValue, List } from '../types';

add: (json: Json) => Promise<T>;
update: (item: Json) => Promise<T>;
update: (json: Json) => Promise<T>;
remove: (id: Id) => Promise<boolean>;
validate: (item: T) => Promise<T>;
}

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

.then(j => new this.ctor(j));
this.update = (item) => this.gateway.byId(item.id)
this.update = (json) => this.gateway.byId(json.id)
.then(j => validation_1.when(j).not.isDefined.reject('Does not exist'))

@@ -22,0 +22,0 @@ .then(j => (new this.ctor(j)).update(j))

@@ -0,1 +1,2 @@

export * from "./Manage";
export * from "./Select";

@@ -13,3 +13,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./Manage"), exports);
__exportStar(require("./Select"), exports);
//# sourceMappingURL=index.js.map

@@ -1,6 +0,5 @@

import { Repo } from '../domain';
import { Record, Repo } from '../domain';
import { Id, JsonValue, List } from '../types';
import { Record } from '../domain';
export declare class Select<T extends Record> {
private repo;
protected repo: Repo<T>;
constructor(repo: Repo<T>);

@@ -7,0 +6,0 @@ all: () => Promise<List<T>>;

{
"name": "@thisisagile/easy",
"version": "1.12.13",
"version": "1.13.0",
"description": "Straightforward library for building domain-driven microservice architectures",

@@ -5,0 +5,0 @@ "author": "Sander Hoogendoorn",

@@ -20,4 +20,4 @@ import { Constructor, Gateway, Id, Json, jsonify, JsonValue, List } from '../types';

update = (item: Json): Promise<T> =>
this.gateway.byId(item.id as Id)
update = (json: Json): Promise<T> =>
this.gateway.byId(json.id as Id)
.then(j => when(j).not.isDefined.reject('Does not exist'))

@@ -24,0 +24,0 @@ .then(j => (new this.ctor(j)).update(j))

@@ -0,1 +1,2 @@

export * from "./Manage";
export * from "./Select";

@@ -1,7 +0,6 @@

import { Repo } from '../domain';
import { Record, Repo } from '../domain';
import { Id, JsonValue, List } from '../types';
import { Record } from '../domain';
export class Select<T extends Record> {
constructor(private repo: Repo<T>) {}
constructor(protected repo: Repo<T>) {}

@@ -8,0 +7,0 @@ all = (): Promise<List<T>> => this.repo.all();

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