
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.
chayns-api
Advanced tools
The chayns-api provides information and useful functions to your page. The information and functions are provided by react hooks and normal functions. A list of all functions and hooks can be found here.
It is recommended to setup your new chayns page with the create-chayns-app.
# NPM
$ npm install chayns-api
# Yarn
$ yarn add chayns-api
<ChaynsProvider>
<App/>
</ChaynsProvider>
import { useUser } from 'chayns-api';
const FirstName = () => {
const user = useUser();
return (
<div>{user?.firstName}</div>
);
}
When updating to chayns-api@2 you should also update chayns-toolkit to 3.0.1 or higher (check migration guide here).
Check urls referencing remoteEntry.js. The filename has been changed to v2.remoteEntry.js.
When your application uses ChaynsHost with module-type you might have to add a call of initModuleFederationSharing as early as possible in your application (e.g. index/bootstrap). Unless your application is already embedded as module somewhere else (e.g. in a dialog).
initModuleFederationSharing({ name: 'project_name' });
More information to setup chayns-api can be found in the documentation.
Can't resolve 'react-dom/client'
A warning like above can be shown when you are still using react 17. This can be ignored because the react 17 api is used as fallback instead.
FAQs
new chayns api
The npm package chayns-api receives a total of 435 weekly downloads. As such, chayns-api popularity was classified as not popular.
We found that chayns-api demonstrated a healthy version release cadence and project activity because the last version was released less than 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.