Skip to content

Commit

Permalink
tested
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Jul 10, 2024
1 parent 003be75 commit 4647a59
Show file tree
Hide file tree
Showing 14 changed files with 1,917 additions and 1,666 deletions.
3,256 changes: 1,674 additions & 1,582 deletions coverage/lcov.info

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/entity.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ declare namespace entity {
meta: {
provide: boolean;
};
strict: boolean;
ent: import("gubu").Node<unknown>;
};
var preload: (this: any, context: any) => {
Expand Down
3 changes: 3 additions & 0 deletions dist/entity.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/entity.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/lib/make_entity.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Canon, CanonSpec } from '../types';
declare function entargs(this: any, ent: Entity, args: any): any;
declare function makeEntMsg(this: any, ent: Entity, entmsg: any): any;
declare class Entity implements Record<string, any> {
entity$: string;
mark$?: string;
private$: {
canon: any;
promise: boolean;
get_instance: () => any;
entargs: typeof entargs;
makeEntMsg: typeof makeEntMsg;
options: any;
};
constructor(canon: any, seneca: any, options: any);
Expand Down
106 changes: 70 additions & 36 deletions dist/lib/make_entity.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/lib/make_entity.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/valid.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/valid.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ entity.defaults = {
provide: true,
},

// Fail if entity canon does not match an entry in ent option.
strict: false,

// Entity specific options. Use entity canon string (zone/base/name) for key.
ent: Child({
valid: Skip(Any()), // Gubu
valid_json: Skip({}), // Gubu JSON
Expand Down
Loading

0 comments on commit 4647a59

Please sign in to comment.