Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xyo-network/module-model

Package Overview
Dependencies
Maintainers
0
Versions
707
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xyo-network/module-model - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

36

package.json

@@ -10,22 +10,22 @@ {

"email": "support@xyo.network",
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
},
"dependencies": {
"@xylabs/assert": "^4.0.0",
"@xylabs/exists": "^4.0.0",
"@xylabs/hex": "^4.0.0",
"@xylabs/lodash": "^4.0.0",
"@xylabs/logger": "^4.0.0",
"@xylabs/object": "^4.0.0",
"@xylabs/promise": "^4.0.0",
"@xylabs/retry": "^4.0.0",
"@xyo-network/account-model": "^3.0.2",
"@xyo-network/boundwitness-model": "^3.0.2",
"@xyo-network/manifest-model": "^3.0.2",
"@xyo-network/module-events": "^3.0.2",
"@xyo-network/payload-model": "^3.0.2"
"@xylabs/assert": "^4.0.2",
"@xylabs/exists": "^4.0.2",
"@xylabs/hex": "^4.0.2",
"@xylabs/lodash": "^4.0.2",
"@xylabs/logger": "^4.0.2",
"@xylabs/object": "^4.0.2",
"@xylabs/promise": "^4.0.2",
"@xylabs/retry": "^4.0.2",
"@xyo-network/account-model": "^3.0.3",
"@xyo-network/boundwitness-model": "^3.0.3",
"@xyo-network/manifest-model": "^3.0.3",
"@xyo-network/module-events": "^3.0.3",
"@xyo-network/payload-model": "^3.0.3"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^4.0.0-rc.15",
"@xylabs/tsconfig": "^4.0.0-rc.15",
"@xylabs/ts-scripts-yarn3": "^4.0.0-rc.20",
"@xylabs/tsconfig": "^4.0.0-rc.20",
"typescript": "^5.5.4"

@@ -50,7 +50,7 @@ },

"type": "git",
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
},
"sideEffects": false,
"version": "3.0.2",
"version": "3.0.3",
"type": "module"
}

@@ -1,4 +0,4 @@

import { Schema } from '@xyo-network/payload-model'
import type { Schema } from '@xyo-network/payload-model'
import { ModuleIdentifier } from '../ModuleIdentifier.ts'
import type { ModuleIdentifier } from '../ModuleIdentifier.ts'

@@ -5,0 +5,0 @@ export interface ArchivingModuleConfig {

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

import { EmptyObject, WithAdditional } from '@xylabs/object'
import { Payload, Schema } from '@xyo-network/payload-model'
import type { EmptyObject, WithAdditional } from '@xylabs/object'
import type { Payload, Schema } from '@xyo-network/payload-model'
import { ArchivingModuleConfig } from './Archiving.ts'
import { ModuleConfigFields } from './Fields.ts'
import type { ArchivingModuleConfig } from './Archiving.ts'
import type { ModuleConfigFields } from './Fields.ts'

@@ -7,0 +7,0 @@ export type ModuleConfigSchema = 'network.xyo.module.config'

@@ -1,8 +0,8 @@

import { LogLevel } from '@xylabs/logger'
import { RetryConfig } from '@xylabs/retry'
import { Schema } from '@xyo-network/payload-model'
import type { LogLevel } from '@xylabs/logger'
import type { RetryConfig } from '@xylabs/retry'
import type { Schema } from '@xyo-network/payload-model'
import { Labels } from '../Labels/index.ts'
import { ModuleIdentifier, ModuleName } from '../ModuleIdentifier.ts'
import { ModuleSecurityConfig } from './Security.ts'
import type { Labels } from '../Labels/index.ts'
import type { ModuleIdentifier, ModuleName } from '../ModuleIdentifier.ts'
import type { ModuleSecurityConfig } from './Security.ts'

@@ -9,0 +9,0 @@ export interface ModuleConfigFields {

@@ -1,3 +0,3 @@

import { Address } from '@xylabs/hex'
import { Schema } from '@xyo-network/payload-model'
import type { Address } from '@xylabs/hex'
import type { Schema } from '@xyo-network/payload-model'

@@ -4,0 +4,0 @@ export type CosigningAddressSet = Address[]

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

import { Address } from '@xylabs/hex'
import { Logger } from '@xylabs/logger'
import { AccountInstance } from '@xyo-network/account-model'
import { Schema } from '@xyo-network/payload-model'
import type { Address } from '@xylabs/hex'
import type { Logger } from '@xylabs/logger'
import type { AccountInstance } from '@xyo-network/account-model'
import type { Schema } from '@xyo-network/payload-model'
import { AttachableModuleInstance } from '../instance/index.ts'
import type { AttachableModuleInstance } from '../instance/index.ts'

@@ -8,0 +8,0 @@ export type CreatableModuleFactory<T extends AttachableModuleInstance | void = void> = Omit<

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

import { Schema } from '@xyo-network/payload-model'
import type { Schema } from '@xyo-network/payload-model'
import { AttachableModuleInstance } from '../instance/index.ts'
import { Labels } from '../Labels/index.ts'
import { CreatableModuleFactory } from './CreatableModule.ts'
import { LabeledCreatableModuleFactory } from './LabeledCreatableModuleFactory.ts'
import type { AttachableModuleInstance } from '../instance/index.ts'
import type { Labels } from '../Labels/index.ts'
import type { CreatableModuleFactory } from './CreatableModule.ts'
import type { LabeledCreatableModuleFactory } from './LabeledCreatableModuleFactory.ts'

@@ -8,0 +8,0 @@ export interface CreatableModuleRegistry {

@@ -1,4 +0,4 @@

import { AttachableModuleInstance } from '../instance/index.ts'
import { WithOptionalLabels } from '../Labels/index.ts'
import { CreatableModuleFactory } from './CreatableModule.ts'
import type { AttachableModuleInstance } from '../instance/index.ts'
import type { WithOptionalLabels } from '../Labels/index.ts'
import type { CreatableModuleFactory } from './CreatableModule.ts'

@@ -5,0 +5,0 @@ export type LabeledCreatableModuleFactory<T extends AttachableModuleInstance | void = void> = CreatableModuleFactory<T> & WithOptionalLabels

import { assertEx } from '@xylabs/assert'
import { merge } from '@xylabs/lodash'
import { Logger } from '@xylabs/logger'
import { Schema } from '@xyo-network/payload-model'
import type { Logger } from '@xylabs/logger'
import type { Schema } from '@xyo-network/payload-model'
import { AttachableModuleInstance } from '../instance/index.ts'
import { Labels, WithOptionalLabels } from '../Labels/index.ts'
import { CreatableModule, CreatableModuleFactory } from './CreatableModule.ts'
import type { AttachableModuleInstance } from '../instance/index.ts'
import type { Labels, WithOptionalLabels } from '../Labels/index.ts'
import type { CreatableModule, CreatableModuleFactory } from './CreatableModule.ts'

@@ -10,0 +10,0 @@ export class ModuleFactory<TModule extends AttachableModuleInstance> implements CreatableModuleFactory<TModule> {

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

import { JsonValue } from '@xylabs/object'
import type { JsonValue } from '@xylabs/object'

@@ -3,0 +3,0 @@ export class ModuleDetailsError extends Error {

@@ -1,4 +0,4 @@

import { EventData } from '@xyo-network/module-events'
import type { EventData } from '@xyo-network/module-events'
import { ModuleEventArgs } from './ModuleEventArgs.ts'
import type { ModuleEventArgs } from './ModuleEventArgs.ts'

@@ -5,0 +5,0 @@ export type ModuleBusyEventArgs<TModule extends object = object> = ModuleEventArgs<

@@ -1,4 +0,4 @@

import { EventData } from '@xyo-network/module-events'
import type { EventData } from '@xyo-network/module-events'
import { ModuleEventArgs } from './ModuleEventArgs.ts'
import type { ModuleEventArgs } from './ModuleEventArgs.ts'

@@ -5,0 +5,0 @@ export type ModuleErrorEventArgs<TModule extends object = object> = ModuleEventArgs<

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

import { EventArgs } from '@xyo-network/module-events'
import type { EventArgs } from '@xyo-network/module-events'

@@ -3,0 +3,0 @@ export type ModuleEventArgs<TModule extends object = object, TArgs extends EventArgs | undefined = undefined> =

@@ -1,4 +0,4 @@

import { ModuleBusyEventData } from './ModuleBusy.ts'
import { ModuleErrorEventData } from './ModuleError.ts'
import { ModuleQueriedEventData } from './ModuleQueried.ts'
import type { ModuleBusyEventData } from './ModuleBusy.ts'
import type { ModuleErrorEventData } from './ModuleError.ts'
import type { ModuleQueriedEventData } from './ModuleQueried.ts'

@@ -5,0 +5,0 @@ export interface ModuleEventData<TModule extends object = object>

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

import { QueryBoundWitness } from '@xyo-network/boundwitness-model'
import { EventData } from '@xyo-network/module-events'
import { Payload } from '@xyo-network/payload-model'
import type { QueryBoundWitness } from '@xyo-network/boundwitness-model'
import type { EventData } from '@xyo-network/module-events'
import type { Payload } from '@xyo-network/payload-model'
import { ModuleQueryResult } from '../ModuleQueryResult.ts'
import { ModuleEventArgs } from './ModuleEventArgs.ts'
import type { ModuleQueryResult } from '../ModuleQueryResult.ts'
import type { ModuleEventArgs } from './ModuleEventArgs.ts'

@@ -8,0 +8,0 @@ export type ModuleQueriedEventArgs<TModule extends object = object> = ModuleEventArgs<

@@ -1,7 +0,8 @@

import { IsObjectFactory, TypeCheck } from '@xylabs/object'
import type { TypeCheck } from '@xylabs/object'
import { IsObjectFactory } from '@xylabs/object'
import { ModuleEventData } from '../../EventsModels/index.ts'
import { ModuleParams } from '../../ModuleParams.ts'
import { ModuleInstance } from '../Instance.ts'
import { ModuleResolverInstance } from '../ModuleResolver.ts'
import type { ModuleEventData } from '../../EventsModels/index.ts'
import type { ModuleParams } from '../../ModuleParams.ts'
import type { ModuleInstance } from '../Instance.ts'
import type { ModuleResolverInstance } from '../ModuleResolver.ts'

@@ -8,0 +9,0 @@ export interface AttachableModuleInstance<TParams extends ModuleParams = ModuleParams, TEventData extends ModuleEventData = ModuleEventData>

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

import { IsObjectFactory, ObjectTypeShape, TypeCheck } from '@xylabs/object'
import type { ObjectTypeShape, TypeCheck } from '@xylabs/object'
import { IsObjectFactory } from '@xylabs/object'
import { isModuleInstance } from '../isModuleInstance.ts'
import { AttachableModuleInstance } from './AttachableInstance.ts'
import type { AttachableModuleInstance } from './AttachableInstance.ts'

@@ -6,0 +7,0 @@ export const requiredAttachableModuleInstanceFunctions: ObjectTypeShape = {

@@ -1,12 +0,13 @@

import { Address } from '@xylabs/hex'
import { IsObjectFactory, toJsonString, TypeCheck } from '@xylabs/object'
import { Promisable } from '@xylabs/promise'
import { AccountInstance } from '@xyo-network/account-model'
import type { Address } from '@xylabs/hex'
import type { TypeCheck } from '@xylabs/object'
import { IsObjectFactory, toJsonString } from '@xylabs/object'
import type { Promisable } from '@xylabs/promise'
import type { AccountInstance } from '@xyo-network/account-model'
import { ModuleEventData } from '../EventsModels/index.ts'
import { Module, ModuleQueryFunctions } from '../module/index.ts'
import { ModuleIdentifier, ModuleName } from '../ModuleIdentifier.ts'
import { ModuleParams } from '../ModuleParams.ts'
import { Direction } from './ObjectFilter.ts'
import { ObjectResolver } from './ObjectResolver.ts'
import type { ModuleEventData } from '../EventsModels/index.ts'
import type { Module, ModuleQueryFunctions } from '../module/index.ts'
import type { ModuleIdentifier, ModuleName } from '../ModuleIdentifier.ts'
import type { ModuleParams } from '../ModuleParams.ts'
import type { Direction } from './ObjectFilter.ts'
import type { ObjectResolver } from './ObjectResolver.ts'

@@ -13,0 +14,0 @@ export type ModulePipeLine = Lowercase<'one-to-one' | 'one-to-many' | 'many-to-one' | 'many-to-many'>

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

import { IsObjectFactory, ObjectTypeShape, TypeCheck } from '@xylabs/object'
import type { ObjectTypeShape, TypeCheck } from '@xylabs/object'
import { IsObjectFactory } from '@xylabs/object'
import { isModule } from '../module/index.ts'
import { ModuleInstance } from './Instance.ts'
import type { ModuleInstance } from './Instance.ts'

@@ -6,0 +7,0 @@ export const requiredModuleInstanceFunctions: ObjectTypeShape = {

@@ -1,12 +0,13 @@

import { ModuleInstance } from './Instance.ts'
import {
import type { ModuleInstance } from './Instance.ts'
import type {
AddressObjectFilter,
AnyObjectFilter,
NameObjectFilter,
ObjectFilter,
ObjectFilterOptions,
QueryObjectFilter } from './ObjectFilter.ts'
import {
isAddressObjectFilter,
isNameObjectFilter,
isQueryObjectFilter,
NameObjectFilter,
ObjectFilter,
ObjectFilterOptions,
QueryObjectFilter,
} from './ObjectFilter.ts'

@@ -13,0 +14,0 @@

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

import { Address } from '@xylabs/hex'
import type { Address } from '@xylabs/hex'
import { ModuleInstance } from './Instance.ts'
import { ModuleResolverInstance } from './ModuleResolver.ts'
import type { ModuleInstance } from './Instance.ts'
import type { ModuleResolverInstance } from './ModuleResolver.ts'

@@ -6,0 +6,0 @@ export interface ModuleRepository<T extends ModuleInstance = ModuleInstance> extends ModuleResolverInstance<T> {

@@ -1,8 +0,9 @@

import { Address } from '@xylabs/hex'
import { Promisable } from '@xylabs/promise'
import type { Address } from '@xylabs/hex'
import type { Promisable } from '@xylabs/promise'
import { ModuleIdentifier } from '../ModuleIdentifier.ts'
import { ModuleInstance } from './Instance.ts'
import { ObjectFilterOptions } from './ObjectFilter.ts'
import { isObjectResolver, ObjectResolver } from './ObjectResolver.ts'
import type { ModuleIdentifier } from '../ModuleIdentifier.ts'
import type { ModuleInstance } from './Instance.ts'
import type { ObjectFilterOptions } from './ObjectFilter.ts'
import type { ObjectResolver } from './ObjectResolver.ts'
import { isObjectResolver } from './ObjectResolver.ts'

@@ -9,0 +10,0 @@ export const isModuleResolver = isObjectResolver<ModuleInstance>

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

import { Address } from '@xylabs/hex'
import { AnyObject, EmptyObject, TypeCheck } from '@xylabs/object'
import type { Address } from '@xylabs/hex'
import type { AnyObject, EmptyObject, TypeCheck } from '@xylabs/object'
import { ModuleName } from '../ModuleIdentifier.ts'
import type { ModuleName } from '../ModuleIdentifier.ts'

@@ -6,0 +6,0 @@ export type Direction = 'up' | 'down' | 'all'

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

import { AnyObject, EmptyObject } from '@xylabs/object'
import { Promisable } from '@xylabs/promise'
import type { AnyObject, EmptyObject } from '@xylabs/object'
import type { Promisable } from '@xylabs/promise'
import { ModuleIdentifier } from '../ModuleIdentifier.ts'
import { ObjectFilter, ObjectFilterOptions } from './ObjectFilter.ts'
import type { ModuleIdentifier } from '../ModuleIdentifier.ts'
import type { ObjectFilter, ObjectFilterOptions } from './ObjectFilter.ts'

@@ -7,0 +7,0 @@ export const isObjectResolver = <T extends EmptyObject = AnyObject>(value?: unknown): value is ObjectResolver<T> => {

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

import { Module } from '../module/index.ts'
import type { Module } from '../module/index.ts'

@@ -3,0 +3,0 @@ /**

@@ -1,3 +0,3 @@

import { TypeCheck } from '@xylabs/object'
import { Schema } from '@xyo-network/payload-model'
import type { TypeCheck } from '@xylabs/object'
import type { Schema } from '@xyo-network/payload-model'

@@ -7,3 +7,3 @@ import { ModuleStateQuerySchema } from '../Queries/index.ts'

import { isModuleObject } from './isModuleObject.ts'
import { Module } from './Module.ts'
import type { Module } from './Module.ts'

@@ -10,0 +10,0 @@ export const requiredModuleQueries: Schema[] = [ModuleStateQuerySchema]

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

import { AnyObject, EmptyObject, TypeCheck } from '@xylabs/object'
import { AnyNonPromise } from '@xylabs/promise'
import type { AnyObject, EmptyObject, TypeCheck } from '@xylabs/object'
import type { AnyNonPromise } from '@xylabs/promise'
import { asModuleObject } from './asModuleObject.ts'
import { isModuleObject } from './isModuleObject.ts'
import { Module } from './Module.ts'
import type { Module } from './Module.ts'

@@ -8,0 +8,0 @@ export type ModuleTypeCheck<T extends Module = Module> = TypeCheck<T>

@@ -1,4 +0,5 @@

import { IsObjectFactory, ObjectTypeShape } from '@xylabs/object'
import type { ObjectTypeShape } from '@xylabs/object'
import { IsObjectFactory } from '@xylabs/object'
import { Module } from './Module.ts'
import type { Module } from './Module.ts'

@@ -5,0 +6,0 @@ export const requiredModuleShape: ObjectTypeShape = {

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

import { EventFunctions } from '@xyo-network/module-events'
import type { EventFunctions } from '@xyo-network/module-events'
import { ModuleEventData } from '../EventsModels/index.ts'
import { ModuleParams } from '../ModuleParams.ts'
import { ModuleFields } from './ModuleFields.ts'
import type { ModuleEventData } from '../EventsModels/index.ts'
import type { ModuleParams } from '../ModuleParams.ts'
import type { ModuleFields } from './ModuleFields.ts'

@@ -7,0 +7,0 @@ export interface Module<TParams extends ModuleParams = ModuleParams, TEventData extends ModuleEventData<object> = ModuleEventData<object>>

@@ -1,10 +0,10 @@

import { Address } from '@xylabs/hex'
import { Promisable } from '@xylabs/promise'
import { QueryBoundWitness } from '@xyo-network/boundwitness-model'
import { Payload } from '@xyo-network/payload-model'
import type { Address } from '@xylabs/hex'
import type { Promisable } from '@xylabs/promise'
import type { QueryBoundWitness } from '@xyo-network/boundwitness-model'
import type { Payload } from '@xyo-network/payload-model'
import { ModuleConfig } from '../Config/index.ts'
import { ModuleName } from '../ModuleIdentifier.ts'
import { ModuleParams } from '../ModuleParams.ts'
import { ModuleQueryResult } from '../ModuleQueryResult.ts'
import type { ModuleConfig } from '../Config/index.ts'
import type { ModuleName } from '../ModuleIdentifier.ts'
import type { ModuleParams } from '../ModuleParams.ts'
import type { ModuleQueryResult } from '../ModuleQueryResult.ts'

@@ -11,0 +11,0 @@ export interface ModuleFields<TParams extends ModuleParams = ModuleParams> {

@@ -1,9 +0,9 @@

import { Address } from '@xylabs/hex'
import { Promisable } from '@xylabs/promise'
import { AccountInstance } from '@xyo-network/account-model'
import { ModuleManifestPayload } from '@xyo-network/manifest-model'
import { Payload } from '@xyo-network/payload-model'
import type { Address } from '@xylabs/hex'
import type { Promisable } from '@xylabs/promise'
import type { AccountInstance } from '@xyo-network/account-model'
import type { ModuleManifestPayload } from '@xyo-network/manifest-model'
import type { Payload } from '@xyo-network/payload-model'
import { ModuleQueryResult } from '../ModuleQueryResult.ts'
import { AddressPayload, AddressPreviousHashPayload } from '../Payload/index.ts'
import type { ModuleQueryResult } from '../ModuleQueryResult.ts'
import type { AddressPayload, AddressPreviousHashPayload } from '../Payload/index.ts'

@@ -10,0 +10,0 @@ export interface ModuleQueryFunctions {

@@ -1,4 +0,4 @@

import { Address } from '@xylabs/hex'
import type { Address } from '@xylabs/hex'
import { ModuleName } from './ModuleIdentifier.ts'
import type { ModuleName } from './ModuleIdentifier.ts'
export interface ModuleDescription {

@@ -5,0 +5,0 @@ address: Address

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

import { Address, isAddress } from '@xylabs/hex'
import type { Address } from '@xylabs/hex'
import { isAddress } from '@xylabs/hex'

@@ -3,0 +4,0 @@ export const MODULE_PATH_SEPARATOR = ':' as const

@@ -1,4 +0,4 @@

import { Promisable } from '@xylabs/promise'
import type { Promisable } from '@xylabs/promise'
import { ModuleIdentifier } from './ModuleIdentifier.ts'
import type { ModuleIdentifier } from './ModuleIdentifier.ts'

@@ -5,0 +5,0 @@ export type ModuleIdentifierTransformerFunc = (id: ModuleIdentifier) => Promisable<ModuleIdentifier | undefined>

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

import { BaseParams, EmptyObject, WithAdditional } from '@xylabs/object'
import { AccountInstance } from '@xyo-network/account-model'
import type { BaseParams, EmptyObject, WithAdditional } from '@xylabs/object'
import type { AccountInstance } from '@xyo-network/account-model'
import { AnyConfigSchema, ModuleConfig } from './Config/index.ts'
import { ModuleIdentifierTransformer } from './ModuleIdentifierTransformer.ts'
import type { AnyConfigSchema, ModuleConfig } from './Config/index.ts'
import type { ModuleIdentifierTransformer } from './ModuleIdentifierTransformer.ts'

@@ -7,0 +7,0 @@ export type ModuleParams<

@@ -1,3 +0,3 @@

import { Payload } from '@xyo-network/payload-model'
import type { Payload } from '@xyo-network/payload-model'
export type ModuleQueryHandlerResult = Payload[]

@@ -1,3 +0,3 @@

import { BoundWitness } from '@xyo-network/boundwitness-model'
import { ModuleError, Payload, WithMeta } from '@xyo-network/payload-model'
import type { BoundWitness } from '@xyo-network/boundwitness-model'
import type { ModuleError, Payload, WithMeta } from '@xyo-network/payload-model'

@@ -4,0 +4,0 @@ export type ModuleQueryResult<P extends Payload = Payload, E extends ModuleError = ModuleError, B extends BoundWitness = BoundWitness> = [

@@ -1,3 +0,3 @@

import { Address } from '@xylabs/hex'
import { Payload } from '@xyo-network/payload-model'
import type { Address } from '@xylabs/hex'
import type { Payload } from '@xyo-network/payload-model'

@@ -4,0 +4,0 @@ export const AddressSchema = 'network.xyo.address' as const

@@ -1,3 +0,3 @@

import { Address } from '@xylabs/hex'
import { Payload } from '@xyo-network/payload-model'
import type { Address } from '@xylabs/hex'
import type { Payload } from '@xyo-network/payload-model'

@@ -4,0 +4,0 @@ export const AddressPreviousHashSchema = 'network.xyo.address.hash.previous' as const

@@ -1,4 +0,4 @@

import { Payload } from '@xyo-network/payload-model'
import type { Payload } from '@xyo-network/payload-model'
import { ModuleDescription } from '../ModuleDescription.ts'
import type { ModuleDescription } from '../ModuleDescription.ts'

@@ -5,0 +5,0 @@ export const ModuleDescriptionSchema = 'network.xyo.module.description' as const

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

import { isPayloadOfSchemaType, Payload, WithMeta } from '@xyo-network/payload-model'
import type { Payload, WithMeta } from '@xyo-network/payload-model'
import { isPayloadOfSchemaType } from '@xyo-network/payload-model'

@@ -3,0 +4,0 @@ export interface StateDictionary {

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

import { ModuleManifestQuery } from './Manifest.ts'
import { ModuleAddressQuery } from './ModuleAddress/index.ts'
import { ModuleStateQuery } from './State.ts'
import { ModuleSubscribeQuery } from './Subscribe.ts'
import type { ModuleManifestQuery } from './Manifest.ts'
import type { ModuleAddressQuery } from './ModuleAddress/index.ts'
import type { ModuleStateQuery } from './State.ts'
import type { ModuleSubscribeQuery } from './Subscribe.ts'

@@ -6,0 +6,0 @@ export * from './Manifest.ts'

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

import { Query } from '@xyo-network/payload-model'
import type { Query } from '@xyo-network/payload-model'

@@ -3,0 +3,0 @@ export type ModuleManifestQuerySchema = 'network.xyo.query.module.manifest'

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

import { Query } from '@xyo-network/payload-model'
import type { Query } from '@xyo-network/payload-model'

@@ -3,0 +3,0 @@ export type ModuleAddressQuerySchema = 'network.xyo.query.module.address'

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

import { Query } from '@xyo-network/payload-model'
import type { Query } from '@xyo-network/payload-model'

@@ -3,0 +3,0 @@ export const ModuleStateQuerySchema = 'network.xyo.query.module.state' as const

@@ -1,3 +0,3 @@

import { Address } from '@xylabs/hex'
import { Query } from '@xyo-network/payload-model'
import type { Address } from '@xylabs/hex'
import type { Query } from '@xyo-network/payload-model'

@@ -4,0 +4,0 @@ export type ModuleSubscribeQuerySchema = 'network.xyo.query.module.subscribe'

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

import { Address } from '@xylabs/hex'
import type { Address } from '@xylabs/hex'
import { ModuleInstance } from '../instance/index.ts'
import { ModuleResolveDirection } from './model.ts'
import type { ModuleInstance } from '../instance/index.ts'
import type { ModuleResolveDirection } from './model.ts'

@@ -6,0 +6,0 @@ export const resolveAddressToInstanceDown = async (

@@ -1,4 +0,4 @@

import { Address } from '@xylabs/hex'
import type { Address } from '@xylabs/hex'
import { ModuleInstance } from '../instance/index.ts'
import type { ModuleInstance } from '../instance/index.ts'
import { duplicateModules } from '../lib/index.ts'

@@ -5,0 +5,0 @@

@@ -5,10 +5,13 @@ /* eslint-disable max-statements */

import { exists } from '@xylabs/exists'
import { Address, isAddress } from '@xylabs/hex'
import { IdLogger, Logger } from '@xylabs/logger'
import type { Address } from '@xylabs/hex'
import { isAddress } from '@xylabs/hex'
import type { Logger } from '@xylabs/logger'
import { IdLogger } from '@xylabs/logger'
import { toJsonString } from '@xylabs/object'
import { asModuleInstance, ModuleFilter, ModuleFilterOptions, ModuleInstance, ModuleResolver } from '../instance/index.ts'
import type { ModuleFilter, ModuleFilterOptions, ModuleInstance, ModuleResolver } from '../instance/index.ts'
import { asModuleInstance } from '../instance/index.ts'
import { duplicateModules } from '../lib/index.ts'
import { ModuleIdentifier } from '../ModuleIdentifier.ts'
import { ModuleIdentifierTransformer } from '../ModuleIdentifierTransformer.ts'
import type { ModuleIdentifier } from '../ModuleIdentifier.ts'
import type { ModuleIdentifierTransformer } from '../ModuleIdentifierTransformer.ts'
import { ResolveHelperStatic } from './ResolveHelperStatic.ts'

@@ -15,0 +18,0 @@ import { resolvePathToAddress } from './resolvePathToAddress.ts'

@@ -1,4 +0,4 @@

import { Logger } from '@xylabs/logger'
import type { Logger } from '@xylabs/logger'
import { ModuleIdentifierTransformer } from '../ModuleIdentifierTransformer.ts'
import type { ModuleIdentifierTransformer } from '../ModuleIdentifierTransformer.ts'

@@ -5,0 +5,0 @@ // eslint-disable-next-line unicorn/no-static-only-class

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

import { Address } from '@xylabs/hex'
import type { Address } from '@xylabs/hex'
import { ModuleInstance } from '../instance/index.ts'
import { ModuleName } from '../ModuleIdentifier.ts'
import { ModuleResolveDirection } from './model.ts'
import type { ModuleInstance } from '../instance/index.ts'
import type { ModuleName } from '../ModuleIdentifier.ts'
import type { ModuleResolveDirection } from './model.ts'
import {

@@ -7,0 +7,0 @@ resolveLocalNameToInstance,

@@ -1,4 +0,4 @@

import { ModuleInstance } from '../instance/index.ts'
import { ModuleName } from '../ModuleIdentifier.ts'
import { ModuleResolveDirection } from './model.ts'
import type { ModuleInstance } from '../instance/index.ts'
import type { ModuleName } from '../ModuleIdentifier.ts'
import type { ModuleResolveDirection } from './model.ts'

@@ -5,0 +5,0 @@ export const resolveLocalNameToInstanceUp = async (root: ModuleInstance, modName: ModuleName): Promise<ModuleInstance | undefined> => {

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

import { Address } from '@xylabs/hex'
import type { Address } from '@xylabs/hex'
import { ModuleInstance } from '../instance/index.ts'
import { ModuleIdentifierTransformer } from '../ModuleIdentifierTransformer.ts'
import type { ModuleInstance } from '../instance/index.ts'
import type { ModuleIdentifierTransformer } from '../ModuleIdentifierTransformer.ts'
import { ResolveHelperStatic } from './ResolveHelperStatic.ts'

@@ -6,0 +6,0 @@ import { resolvePathToInstance } from './resolvePathToInstance.ts'

import { assertEx } from '@xylabs/assert'
import { asAddress } from '@xylabs/hex'
import { ModuleInstance } from '../instance/index.ts'
import type { ModuleInstance } from '../instance/index.ts'
import { MODULE_PATH_SEPARATOR } from '../ModuleIdentifier.ts'
import { ModuleIdentifierTransformer } from '../ModuleIdentifierTransformer.ts'
import type { ModuleIdentifierTransformer } from '../ModuleIdentifierTransformer.ts'
import { resolveAddressToInstance } from './resolveAddressToInstance.ts'

@@ -8,0 +8,0 @@ import { ResolveHelperStatic } from './ResolveHelperStatic.ts'

import { assertEx } from '@xylabs/assert'
import { Address } from '@xylabs/hex'
import type { Address } from '@xylabs/hex'
import { asModuleInstance, ModuleResolver } from '../instance/index.ts'
import { ModuleIdentifier } from '../ModuleIdentifier.ts'
import type { ModuleResolver } from '../instance/index.ts'
import { asModuleInstance } from '../instance/index.ts'
import type { ModuleIdentifier } from '../ModuleIdentifier.ts'

@@ -7,0 +8,0 @@ export const traceModuleIdentifier = async (resolver: ModuleResolver, path: ModuleIdentifier): Promise<Address[]> => {

@@ -1,3 +0,3 @@

import { ModuleIdentifier } from '../ModuleIdentifier.ts'
import { ModuleIdentifierTransformer } from '../ModuleIdentifierTransformer.ts'
import type { ModuleIdentifier } from '../ModuleIdentifier.ts'
import type { ModuleIdentifierTransformer } from '../ModuleIdentifierTransformer.ts'

@@ -4,0 +4,0 @@ export const transformModuleIdentifier = async (

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

import { TypeCheck } from '@xylabs/object'
import type { TypeCheck } from '@xylabs/object'

@@ -3,0 +3,0 @@ import { isModuleInstance } from './instance/index.ts'

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

import { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
const config: XyTsupConfig = {

@@ -3,0 +3,0 @@ compile: {

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