
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
localstorage-angular2
Advanced tools
LocalStorageService for Angular 2 forked from angular-2-local-storage
LocalStorageService for Angular 2 with mostly the same API (and most of the code) from angular-local-storage
errors$
, removeItems$
, setItems$
and warning$
if you really need something to happen when something happens.bind
function doesn't work anymore (there is a stub so this can still be a drop-in, but it'll do nothing).npm install angular-2-local-storage
Add the following to your map
and packages
arrays in src/system-config.ts
:
const map: any = {
'angular-2-local-storage': 'vendor/angular-2-local-storage'
};
const packages: any = {
'angular-2-local-storage': { main: 'index.js', defaultExtension: 'js' }
};
And then add the following to vendorNpmFiles
in angular-cli-build.js
:
vendorNpmFiles: [
'angular-2-local-storage/**/*.js'
]
Nothing to configure, the typings are included in the package.
First you need to configure the service:
import { LocalStorageService, LOCAL_STORAGE_SERVICE_CONFIG } from 'angular-2-local-storage';
// Create config options (see ILocalStorageServiceConfigOptions) for deets:
let localStorageServiceConfig = {
prefix: 'my-app',
storageType: 'sessionStorage'
};
// Use the provider:
@NgModule({
imports: [
..
],
declarations: [
..
],
providers: [
LocalStorageService,
{
provide: LOCAL_STORAGE_SERVICE_CONFIG, useValue: localStorageServiceConfig
}
],
bootstrap: [AppComponent]
})
Then you can use it in a component:
import { LocalStorageService } from 'angular-2-local-storage';
@Component({
// ...
})
export class SomeComponent {
constructor (
private localStorageService: LocalStorageService
) {
// YAY!
}
}
FAQs
LocalStorageService for Angular 2 forked from angular-2-local-storage
The npm package localstorage-angular2 receives a total of 1 weekly downloads. As such, localstorage-angular2 popularity was classified as not popular.
We found that localstorage-angular2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.