Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
history-extra
Advanced tools
Extra functionality for the history module.
yarn add history history-extra
history
is a peer dependency, and must be installed along side history-extra
.
The version of the history
module you're using will determine which version of history-extra
you should use. See the table below to find the version you need.
history | history-extra |
---|---|
4.7.x | 4.x |
4.8.0+ | 5.x |
createHashStateHistory
import { createHashStateHistory } from 'history-extra';
Works the same way that createHashHistory in history works, except that it supports browser history and pushState.
There are several scripts available to check and test the code. The CI will run them too, but they're also helpful for running locally. All of these are launched with npm run <script>
or yarn run <script>
.
script | description |
---|---|
lint | Runs linter on the code to catch syntax and other issues. |
build | Runs the build, producing the output in dist . |
test | Runs the tests in a local browser (Chrome and Firefox). |
There are some ENV args that make things nice for development.
arg | description |
---|---|
DEV | Boolean, useful for tests. Puts karma in watch mode and will re-run tests every time you save a change. |
TRAVIS | Boolean, used by the CI. Also useful for running your tests on Sauce Labs instead of just locally. |
KARMA_LAUNCHERS | Useful for controlling which launchers to use, as a comma-separated list. Local options are Chrome and Firefox . If TRAVIS is truthy, options are SL_Explorer , SL_Chrome , SL_Firefox , and SL_Safari . |
Cross-browser Testing Platform and Open Source <3 Provided by Sauce Labs
MIT © w33ble
FAQs
Extra functionality for the history module
The npm package history-extra receives a total of 1,177 weekly downloads. As such, history-extra popularity was classified as popular.
We found that history-extra 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.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.