
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
@nextcloud/initial-state
Advanced tools
Access data from the nextcloud server-side initial state API within apps.
Access data from the server-side initial state API within apps.
npm install @nextcloud/initial-state --save
yarn add @nextcloud/initial-state
Check "Providing the initial state with PHP" for more details about initial state.
Note:
loadStatethrows anErrorif the key isn't found, hence you might want to wrap the call with atryblock.
import { loadState } from '@nextcloud/initial-state'
const val = loadState('myapp', 'user_preference')
// Provide a fallback value to return when the state is not found
const valWithFallback = loadState('myapp', 'user_preference', 'no_preference')
You can provide a type anotation for result.
import { loadState } from '@nextcloud/initial-state'
interface UserPreference {
refreshInterval: number
}
const val = loadState<UserPreference>('myapp', 'user_preference', {
refreshInterval: 15_000
})
FAQs
Access data from the nextcloud server-side initial state API within apps.
The npm package @nextcloud/initial-state receives a total of 33,463 weekly downloads. As such, @nextcloud/initial-state popularity was classified as popular.
We found that @nextcloud/initial-state demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 13 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
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.