@xyo-network/module-model
Advanced tools
Comparing version
{ | ||
"name": "@xyo-network/module-model", | ||
"version": "3.8.0", | ||
"version": "3.8.1", | ||
"description": "Primary SDK for using XYO Protocol 2.0", | ||
@@ -40,14 +40,14 @@ "homepage": "https://xyo.network", | ||
"@xylabs/typeof": "^4.5.1", | ||
"@xyo-network/account-model": "^3.8.0", | ||
"@xyo-network/boundwitness-model": "^3.8.0", | ||
"@xyo-network/manifest-model": "^3.8.0", | ||
"@xyo-network/module-events": "^3.8.0", | ||
"@xyo-network/payload-model": "^3.8.0" | ||
"@xyo-network/account-model": "^3.8.1", | ||
"@xyo-network/boundwitness-model": "^3.8.1", | ||
"@xyo-network/manifest-model": "^3.8.1", | ||
"@xyo-network/module-events": "^3.8.1", | ||
"@xyo-network/payload-model": "^3.8.1" | ||
}, | ||
"devDependencies": { | ||
"@xylabs/ts-scripts-yarn3": "^4.2.6", | ||
"@xylabs/tsconfig": "^4.2.6", | ||
"@xylabs/ts-scripts-yarn3": "^5.0.22", | ||
"@xylabs/tsconfig": "^5.0.22", | ||
"@xylabs/vitest-extended": "^4.5.1", | ||
"typescript": "^5.7.3", | ||
"vitest": "^3.0.4" | ||
"vitest": "^3.0.5" | ||
}, | ||
@@ -54,0 +54,0 @@ "publishConfig": { |
@@ -11,3 +11,3 @@ import type { LogLevel } from '@xylabs/logger' | ||
/** Limit to only these allowed queries */ | ||
readonly allowedQueries?: Schema[] | undefined | ||
readonly allowedQueries?: Schema[] | ||
@@ -14,0 +14,0 @@ /** @field The name/address of the Archivist to use for this module */ |
@@ -96,3 +96,3 @@ import type { Schema } from '@xyo-network/payload-model' | ||
const existingFactories = target[schema] | ||
target[schema] = existingFactories ? (target[schema] = [...existingFactories, ...factories]) : factories | ||
target[schema] = [...existingFactories ?? [], ...factories] | ||
} | ||
@@ -99,0 +99,0 @@ } |
@@ -16,3 +16,3 @@ import { assertEx } from '@xylabs/assert' | ||
defaultLogger?: Logger | undefined | ||
defaultLogger?: Logger | ||
@@ -19,0 +19,0 @@ defaultParams?: Omit<TModule['params'], 'config'> & { config?: Partial<TModule['params']['config']> } |
@@ -37,3 +37,3 @@ import type { Address } from '@xylabs/hex' | ||
export interface ModuleFamilyFunctions { | ||
account?: AccountInstance | undefined | ||
account?: AccountInstance | ||
addParent: (mod: ModuleInstance) => void | ||
@@ -40,0 +40,0 @@ addressCache?: (direction: Direction, includePrivate: boolean) => AddressToWeakInstanceCache | undefined |
@@ -5,6 +5,5 @@ import type { Logger } from '@xylabs/logger' | ||
// eslint-disable-next-line unicorn/no-static-only-class | ||
export class ResolveHelperStatic { | ||
static defaultLogger?: Logger | ||
static transformers: ModuleIdentifierTransformer[] = [] | ||
static readonly defaultLogger?: Logger | ||
static readonly transformers: ModuleIdentifierTransformer[] = [] | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
251197
-20.81%86
-64.32%3616
-7.52%