mirror of
https://github.com/sortedcord/omnia.git
synced 2026-07-22 03:52:48 +05:30
refactor: switch to process.env for all packages, fix typos
This commit is contained in:
@@ -73,7 +73,7 @@ export interface IAttribute {
|
||||
value: string,
|
||||
visibility: AttributeVisibility,
|
||||
): void;
|
||||
getVisibileAttributesFor(viewerId: string): Attribute[];
|
||||
getVisibleAttributesFor(viewerId: string): Attribute[];
|
||||
}
|
||||
|
||||
export abstract class AttributableObject implements IAttribute {
|
||||
@@ -107,7 +107,7 @@ export abstract class AttributableObject implements IAttribute {
|
||||
this.attributes.delete(name);
|
||||
}
|
||||
|
||||
getVisibileAttributesFor(viewerId: string): Attribute[] {
|
||||
getVisibleAttributesFor(viewerId: string): Attribute[] {
|
||||
return Array.from(this.attributes.values()).filter((attr) =>
|
||||
attr.hasAccess(viewerId),
|
||||
);
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
import { config } from "dotenv";
|
||||
import path from "node:path";
|
||||
config({ path: path.resolve(__dirname, "../.env") });
|
||||
|
||||
export * from "./attribute.js";
|
||||
export * from "./entity.js";
|
||||
export * from "./world.js";
|
||||
|
||||
Reference in New Issue
Block a user