Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@konsumation/model
Advanced tools
Data model of the konsumation apps
Type: Object
Type: AttributeDefinition
Type: AttributeDefinition
Type: AttributeDefinition
Type: AttributeDefinition
Returns string
Type: string?
Type: AttributeDefinition
Type: AttributeDefinition
Type: AttributeDefinition
Type: AttributeDefinition
Type: number?
Type: AttributeDefinition
Attribute names on the javascript side.
Object keys are the mapped external attribute names.
Returns Object
Sets values with external attribute names.
values
Object Returns string
Attribute definitions.
Returns Object
Maping of attribute names from internal (javascript) to external (database).
Returns Object
Attribute names on the javascript side.
Extends Base
Value Category.
values
Object Type: string
Type: string?
Type: number?
Type: string?
Type: string?
Write into store.
context
any Delete Category from store.
context
any List assigned meters.
context
any
options
Object?
Returns AsyncIterable<Meter>
Deliver Meter for a given name.
context
any name
string Returns Promise<(Meter | undefined)>
Currently active Meter.
context
any Returns Promise<(Meter | undefined)>
Add a meter to the category;
values
Object (optional, default {}
)All notes from all meters.
context
any Returns AsyncIterable<Note>
All values from all meters.
context
any Returns AsyncIterable<{date: Date, value: number}>
Get the latest value.
context
any Returns Promise<({date: Date, value: number} | undefined)>
Add a value to the active meter.
Returns Promise<any>
Delete a value from the active meter.
context
any time
Date Returns Promise<any>
Text representation.
context
any Returns AsyncIterable<string>
Name of the type in text dump
Returns string
Schema with type + name
Type: string
Values are attached to the meter. Value dates may be given as iso date.
Type: string
Schema version for newly created databases
Extends Base
values
schemaVersion
string Write attributes store.
context
any Add a category.
values
Object Returns AsyncIterable<Category>
name
string Returns Promise<(Category | undefined)>
Create text representation
Returns AsyncIterable<string>
Extends Base
values
Object Type: string
Type: Category
Type: string?
Type: string?
Type: Date?
context
any context
any context
any Returns AsyncIterable<{date: Date, value: number}>
Write new value.
Delete a value.
context
any time
Date Get the latest value.
context
any Returns Promise<({date: Date, value: number} | undefined)>
List assigned Notes.
context
any options
Object? Returns AsyncIterable<Note>
Deliver Note for a given name.
context
any name
string Returns Promise<(Note | undefined)>
Add a note to the meter;
values
Object (optional, default {}
)Text representation.
context
any Returns AsyncIterable<string>
Name of the type in text dump
Returns string
Extends Base
values
Object Type: string
Type: string?
Type: Meter
Write into store.
context
any Delete from store.
context
any Text representation.
context
any Returns AsyncIterable<string>
Name of the type in text dump
Returns string
Text representation.
Returns AsyncIterable<string>
With npm do:
npm install @konsumation/model
BSD-2-Clause
FAQs
data model of the konsumation apps
The npm package @konsumation/model receives a total of 344 weekly downloads. As such, @konsumation/model popularity was classified as not popular.
We found that @konsumation/model demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.