Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@nuskin/account-components
Advanced tools
There are two types of components in this project: 'normal' or 'bundled' components, and 'dynamic' components.
'Normal' components are plain old Vue components and are bundled with the consuming application. This is what you are
used to. These are contained in src/components
.
'Dynamic' components are deployed separately from the consuming application and are loaded into the consuming app at runtime.
The consuming app will directly consume (and thus bundle) a wrapper component which knows how to do the dynamic loading.
These are in src/dynamic
. For documentation on how they work, see src/dynamic/README.md
.
The process of releasing this package is as follows:
If you need to go outside this process please reach out to the tech lead of the aeronauts.
yarn install
yarn storybook
yarn test
yarn lint
This project includes visual regression testing. It is implemented using storyshots-puppeteer and Nu Skin Visual Regression Tools.
# Run a basic test run
yarn test:visual
# Approve new snapshots
yarn test:visual:approve
# Run tests in watch mode
yarn test:visual:watch
# Run tests in the exact way they are run in the pipeline
# (much slower, but more reliable)
yarn test:visual:ci
yarn test:visual
test:visual
passes, your changes may not have been reflected OR
they didn't differ enough from the original snapshot to break the test.
It may be useful to delete the snapshots associated with the component you
modified and re-run the tests to get new snapshots.yarn test:visual:approve
and commit
the updated snapshots.test:visual
passed, you're okay! You didn't break anything!Our visual tests are based around Storybook stories.
Any story with a parameter called puppeteerTest
will
cause visual regression tests to be run on that story.
In order to include visual regression testing in a story that
is to be included in the master storybook at http://nuskin.design,
you must separate the visual regression test story and the
main story. You can re-use the main story in your visual regression
test story. See
InviteLinkBuilder.visual-testing.stories.js
and
InviteLinkBuilder.stories.js
for an example of how to do this.
FAQs
NuSkin Account Components
We found that @nuskin/account-components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.