Skip to content

Commit

Permalink
fix: ajusta base de codigo
Browse files Browse the repository at this point in the history
  • Loading branch information
drusco committed Nov 1, 2023
1 parent 795b8d5 commit 9500497
Show file tree
Hide file tree
Showing 68 changed files with 127 additions and 1,476 deletions.
48 changes: 0 additions & 48 deletions src/Emulator.spec.ts

This file was deleted.

98 changes: 20 additions & 78 deletions src/Emulator.ts
Original file line number Diff line number Diff line change
@@ -1,81 +1,23 @@
import lib from "./lib/index.js";
import Exotic from "./types/Exotic.js";
//import Exotic from "./types/Exotic.js";
import EventEmitter from "events";

export default class Emulator extends EventEmitter implements Exotic.Emulator {
constructor(options?: Exotic.emulator.options) {
super();
lib.constructor(this, options);
}

get links(): Exotic.key[] {
return lib.getters.links(this);
}

get length(): number {
return lib.getters.length(this);
}

use(value?: any): Exotic.Proxy {
return lib.methods.use(this, value);
}

link(link: Exotic.key, value?: any): Exotic.Proxy {
return lib.methods.link(this, link, value);
}

target(value?: any): any {
return lib.methods.target(value);
}

parent(value?: Exotic.traceable): undefined | Exotic.Proxy {
return lib.methods.parent(value);
}

values(value?: Exotic.traceable): Exotic.Proxy[] {
return lib.methods.values(value);
}

keys(value?: Exotic.traceable): Exotic.key[] {
return lib.methods.keys(value);
}

revoke(value: Exotic.traceable): boolean {
return lib.methods.revoke(value);
}

isRevoked(value: Exotic.traceable): boolean {
return lib.methods.isRevoked(value);
}

entries(): IterableIterator<Exotic.Proxy> {
return lib.methods.entries(this);
}

encode(value: any): any {
return lib.methods.encode(value);
}

decode(value: any): any {
return lib.methods.decode(this, value);
}

revokeAll(): void {
return lib.methods.revokeAll(this);
}

include(id: string, origin: Exotic.proxy.origin, target?: any): Exotic.Proxy {
return lib.methods.include(this, id, origin, target);
}

exec(
method: Exotic.FunctionLike,
dependencies?: Record<string, Exotic.Proxy>,
): Exotic.Proxy {
return lib.methods.exec(this, method, dependencies);
}

find(value: string | Exotic.traceable): void | Exotic.Proxy {
return lib.methods.find(this, value);
}
export default class Emulator extends EventEmitter {
// constructor(options?: Exotic.emulator.options) {
// super();
// }
// use(value?: any): Exotic.Proxy {}
// link(link: Exotic.key, value?: any): Exotic.Proxy {}
// target(value?: any): any {}
// revoke(value: Exotic.traceable): boolean {}
// encode(value: any): any {}
// decode(value: any): any {}
// include(
// id: string,
// origin: Exotic.proxy.origin,
// target?: any,
// ): Exotic.Proxy {}
// exec(
// method: Exotic.FunctionLike,
// dependencies?: Record<string, Exotic.Proxy>,
// ): Exotic.Proxy {}
}
22 changes: 0 additions & 22 deletions src/lib/constructor.spec.ts

This file was deleted.

24 changes: 0 additions & 24 deletions src/lib/constructor.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/lib/getters/index.ts

This file was deleted.

10 changes: 0 additions & 10 deletions src/lib/getters/length.spec.ts

This file was deleted.

7 changes: 0 additions & 7 deletions src/lib/getters/length.ts

This file was deleted.

10 changes: 0 additions & 10 deletions src/lib/getters/links.spec.ts

This file was deleted.

7 changes: 0 additions & 7 deletions src/lib/getters/links.ts

This file was deleted.

5 changes: 0 additions & 5 deletions src/lib/index.ts

This file was deleted.

18 changes: 0 additions & 18 deletions src/lib/methods/decode.spec.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/lib/methods/decode.ts

This file was deleted.

18 changes: 0 additions & 18 deletions src/lib/methods/encode.spec.ts

This file was deleted.

5 changes: 0 additions & 5 deletions src/lib/methods/encode.ts

This file was deleted.

17 changes: 0 additions & 17 deletions src/lib/methods/entries.spec.ts

This file was deleted.

8 changes: 0 additions & 8 deletions src/lib/methods/entries.ts

This file was deleted.

51 changes: 0 additions & 51 deletions src/lib/methods/exec.spec.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/lib/methods/exec.ts

This file was deleted.

Loading

0 comments on commit 9500497

Please sign in to comment.