hyoo_sync_client

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyoo_sync_client

Synchronizes world state with server and local DB.

0.0.604
latest
81

Supply Chain Security

100

Vulnerability

86

Quality

86

Maintenance

100

License

Unpopular package

Quality

This package is not very popular.

Found 1 instance in 1 package

Wildcard dependency

Quality

Package has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.

Found 2 instances in 1 package

Dependencies have 1 high alert.

Socket optimized override available

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created

$hyoo_sync_client

Synchronizes world state with server and local DB.

Domain Model

export class $my_person extends $hyoo_crowd_struct {

  name( next?: string ) {
    return this.sub( 'name', $hyoo_crowd_reg ).str( next )
  }

  descr( next?: string ) {
    return this.sub( 'descr', $hyoo_crowd_text ).text( next )
  }
  
  skills( next?: string[] ) {
    return this.sub( 'skills', $hyoo_crowd_list ).list( next ).map( String )
  }

}

Sync start

  const yard = new $hyoo_sync_client
  const world = yard.world()
  // ...
  yard.sync()

Make new entity

  const person = world.Fund( $my_person ).make( ... rights )
  console.log( person.id() )

Rights exaples

  • () or ( [''] ) - I'm god, others not, until I give rights
  • ( [], [], ['0_0'] ) - any one can add, but can't change other's additions
  • ( [], [''] ) - only I can change, but can't give rights to others

Use existen entity

  const person = world.Fund( $my_person ).Item( person_id )

FAQs

Package last updated on 15 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts