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
string isKey
boolean isForeign
boolean do we represent a foreign entitywritable
boolean mandatory
boolean default
any? the default valueType: AttributeDefinition
Type: AttributeDefinition
Type: AttributeDefinition
Type: AttributeDefinition
Returns string
Type: string?
Type: AttributeDefinition
Type: AttributeDefinition
Type: AttributeDefinition
Type: AttributeDefinition
Type: number?
Type: AttributeDefinition
Type: AttributeDefinition
Type: AttributeDefinition
Object keys are the mapped external attribute names.
mapping
Returns Object
Object keys are the mapped external attribute names but only for local (not isForeign) ones.
mapping
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
Extends Base
Value Category.
attributes
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;
context
any
attributes
Object
Returns Meter
All notes from all meters.
context
any Returns AsyncIterable<Note>
Deliver Value for a given date.
context
any name
string Returns Promise<(Note | undefined)>
All values from all meters.
context
any Returns AsyncIterable<Value>
Deliver Value for a given date.
context
any date
Date Returns Promise<(Value | undefined)>
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.
context
any
attributes
Object
Returns Category
context
any Returns AsyncIterable<Category>
context
any name
string Returns Promise<(Category | undefined)>
Create text representation
context
(optional, default this.context
)Returns AsyncIterable<string>
Extends Base
attributes
Object Type: string
Type: Category
Type: string?
Type: string?
Type: Date?
context
any context
any context
any Returns AsyncIterable<Value>
Deliver Value for a given date.
context
any date
Date Returns Promise<(Value | undefined)>
add new value.
delete value.
context
any date
Date Returns Promise<void>
Get the latest value.
context
any Returns Promise<(Value | 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;
context
any
attributes
Object
Returns Note
Text representation.
context
any Returns AsyncIterable<string>
Name of the type in text dump.
Returns string
Name of the parents type.
Returns string
Extends Base
attributes
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
Name of the parents type.
Returns string
Text representation.
Returns AsyncIterable<string>
Extends Base
attributes
Object Type: Meter
Type: Date
Type: number
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
Name of the parents type.
Returns 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.