Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

abstract-state-router

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abstract-state-router - npm Package Compare versions

Comparing version 7.5.0 to 7.5.1

2

bundle.js

@@ -438,3 +438,3 @@ 'use strict';

);
const statesNamesToCheck = [ ...create, ...destroy ];
const statesNamesToCheck = Array.from(new Set([ ...create, ...destroy ]).values());
const canLeaveState = statesNamesToCheck.every(stateName => {

@@ -441,0 +441,0 @@ const state = prototypalStateHolder.get(stateName);

{
"name": "abstract-state-router",
"version": "7.5.0",
"version": "7.5.1",
"description": "Like ui-router, but without all the Angular. The best way to structure a single-page webapp.",

@@ -5,0 +5,0 @@ "main": "bundle.js",

@@ -27,5 +27,5 @@ **[Changelog](./changelog.md) • [Join the chat on Discord](https://discord.gg/G8FrErC) • [API documentation](#api)**

This project is currently published as CommonJS with modern JS syntax.
This project is currently published as CommonJS with modern JS syntax. If you're targeting browsers more than 2-3 years old, I assume you're already compiling your code for your target environments.
If you're supporting old browsers, you'll need to compile to whatever older syntax you target and use polyfills for `Promise` and `Object.assign`. Check out [polyfill.io](https://polyfill.io/) for automatic polyfills, it makes life super-easy.
If you're supporting really old browsers pre-ES2015 browsers, you'll need polyfills for `Promise` and `Object.assign`. Check out [polyfill.io](https://polyfill.io/) for automatic polyfills, it makes life super-easy.

@@ -44,14 +44,8 @@ # Current renderer implementations

Using npm + your favorite CommonJS bundler is easiest.
```sh
npm install abstract-state-router -S
npm i abstract-state-router
```
You can also [download the stand-alone build from bundle.run](https://bundle.run/abstract-state-router@latest). If you include it in a `<script>` tag, a `abstractStateRouter` function will be included on the global scope.
Your CommonJS-supporting bundler should be able to `import make_state_router from 'abstract-state-router'` without issue.
Want to use the abstract-state-router without messing with bundlers or package managers? Check out the minimum-viable-project code (in a single HTML file!) over at the [simplest-abstract-state-router-usage](https://github.com/TehShrike/simplest-abstract-state-router-usage).
# API

@@ -58,0 +52,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc