arc-router
Advanced tools
Comparing version 2.1.0 to 3.0.0
@@ -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',()=>{ |
10
index.js
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32419
Yes
+ Addedarc-array@5.0.0(transitive)
+ Addedarc-is@2.0.0(transitive)
+ Addedarc-object@4.0.0(transitive)
+ Addedarc-reg-exp@2.0.0(transitive)
- Removedarc-array@4.3.1(transitive)
- Removedarc-check@1.2.1(transitive)
- Removedarc-is@1.0.8(transitive)
- Removedarc-object@3.1.2(transitive)
- Removedarc-reg-exp@1.0.1(transitive)
Updatedarc-is@^2.0.0
Updatedarc-object@^4.0.0
Updatedarc-reg-exp@^2.0.0