Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
github.com/vip30/vue-local-storage-decorator
This library fully depends on vue-class-component.
It persists the component data by using local storage
MIT License
npm i -S vue-local-storage-decorator
// In main.ts
import VueLocalStorageDecorator from 'vue-local-storage-decorator'
Vue.use(VueLocalStorageDecorator)
// In component
import { Persist } from 'vue-local-storage-decorator'
@Component({
// It will use the component name to persist the data
name: 'dummy'
})
export class DummyComponent extends Vue {
// It will save in the local storage while the data is changed and will auto resume from local storage in created lifecycle
@Persist()
public dummyData: string[] = []
public saveDummy() {
// You can also call it manually
this.persistData('dummyData')
// You can get the data by calling getPersistData
this.dummyData = this.getPersistData<string[]>('dummyData')
}
}
FAQs
Unknown package
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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.