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

arc-router

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arc-router - npm Package Compare versions

Comparing version 2.1.0 to 3.0.0

3

__tests__/complex.js

@@ -1,2 +0,3 @@

const ArcRouter = require('../index');
import ArcRouter from "../index.js";
describe('ArcRouter complex tests',()=>{

@@ -3,0 +4,0 @@ let routeMap,TestRouter;

@@ -1,2 +0,3 @@

const ArcRouter = require('../index');
import ArcRouter from "../index.js";
describe('ArcRouter conflict tests',()=>{

@@ -3,0 +4,0 @@ let routeMap,TestRouter;

@@ -1,2 +0,2 @@

const ArcRouter = require('../index');
import ArcRouter from "../index.js";

@@ -3,0 +3,0 @@ describe('ArcRouter Errors',()=>{

@@ -1,2 +0,3 @@

const ArcRouter = require('../index');
import ArcRouter from "../index.js";
describe('ArcRouter explicit pattern matching',()=>{

@@ -3,0 +4,0 @@ let routeMap,TestRouter;

@@ -1,2 +0,2 @@

const ArcRouter = require('../index');
import ArcRouter from "../index.js";

@@ -3,0 +3,0 @@ describe('ArcRouter numeric pattern matching',()=>{

@@ -1,2 +0,3 @@

const ArcRouter = require('../index');
import ArcRouter from "../index.js";
describe('ArcRouter regEx pattern matching',()=>{

@@ -3,0 +4,0 @@ let routeMap,TestRouter;

@@ -1,2 +0,3 @@

const ArcRouter = require('../index');
import ArcRouter from "../index.js";
describe('ArcRouter route stripping ',()=>{

@@ -3,0 +4,0 @@ let routeMap,TestRouter;

@@ -1,2 +0,2 @@

const ArcRouter = require('../index');
import ArcRouter from "../index.js";

@@ -3,0 +3,0 @@ describe('ArcRouter wildcard pattern matching',()=>{

@@ -1,5 +0,5 @@

const querystring = require('querystring');
const is = require('arc-is');
const ArcRegExp = require('arc-reg-exp');
const ArcObject = require('arc-object');
import querystring from 'querystring';
import is from 'arc-is';
import ArcRegExp from "arc-reg-exp";
import ArcObject from "arc-object";

@@ -412,2 +412,2 @@ const bindPattern = new ArcRegExp(/(\[[^\]]*\])\/|(\[[^\]]*\])$/);

module.exports = ArcRouter;
export default ArcRouter;
{
"name": "arc-router",
"version": "2.1.0",
"version": "3.0.0",
"description": "A purely functional router for independently evaluating a path against a list of routes",
"main": "index.js",
"type": "module",
"scripts": {
"test": "jest --coverage",
"test:watch": "jest --watchAll"
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --coverage",
"test:watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watchAll"
},

@@ -25,9 +26,9 @@ "repository": {

"devDependencies": {
"jest": "^27.5.1"
"jest": "^29.2.2"
},
"dependencies": {
"arc-is": "^1.0.8",
"arc-object": "^3.1.2",
"arc-reg-exp": "^1.0.1"
"arc-is": "^2.0.0",
"arc-object": "^4.0.0",
"arc-reg-exp": "^2.0.0"
}
}
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