Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
typescriptstore
Advanced tools
LocalStorage and SessionStorage for typescript
$ npm i typescriptstore
tsStoreNPM
requires Typescript v3.7+ to run.
import { TsStoreItem } from 'typescriptstore/lib/tsStoreItem';
export class UserStoreModel extends TsStoreItem {
public username: string = '';
public name: string = '';
public age: number = 0;
}
export class ProductStoreModel extends TsStoreItem {
public productType: string = '';
public productName: string = '';
}
import { UserStoreModel, ProductStoreModel } from './model/testModel';
import { TsStore } from 'typescriptstore/lib/tsStore';
import { TsStoreQueryType } from 'typescriptstore/lib/queryTypes';
let userStore: TsStore = TsStore.getStore('userStore');
let item: UserStoreModel = new UserStoreModel();
item.username = 'user' + i;
item.name = 'USER' + i;
item.age = i + 2;
item = userStore.insertOrUpdate(item)
userStore.remove(item.storeItemId);
userStore.clear();
let findItems: UserStoreModel[] = userStore.find('age', 2, TsStoreQueryType.Equal);
export enum TsStoreQueryType {
Equal,
NotEqual,
GreaterThan,
GreaterThanOrEqual,
LessThan,
LessThanOrEqual
}
let allItems: UserStoreModel[] = userStore.all();
let fistItem: UserStoreModel = userStore.first();
let lastItem: UserStoreModel = userStore.last();
$ cd tsStoreDemo
$ npm install
$ npm start
MIT
FAQs
LocalStorage and SessionStorage for typescript
The npm package typescriptstore receives a total of 0 weekly downloads. As such, typescriptstore popularity was classified as not popular.
We found that typescriptstore demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.