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

@ampt/api

Package Overview
Dependencies
Maintainers
4
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ampt/api - npm Package Compare versions

Comparing version 1.0.14 to 1.0.15

dist/index.d.cts

18

dist/index.js

@@ -55,3 +55,3 @@ import { createRequire as topLevelCreateRequire } from 'module'

}
var Node = class {
var Node = class _Node {
path;

@@ -102,3 +102,3 @@ wildChild;

if (i < n.path.length) {
const child = new Node(
const child = new _Node(
n.path.slice(i),

@@ -152,3 +152,3 @@ n.wildChild,

n.indices += c;
const child = new Node("", false, 0 /* STATIC */);
const child = new _Node("", false, 0 /* STATIC */);
n.children.push(child);

@@ -192,3 +192,3 @@ n.addPriority(n.indices.length - 1);

n.wildChild = true;
const child = new Node(wildcard, false, 2 /* PARAM */);
const child = new _Node(wildcard, false, 2 /* PARAM */);
n.children = [child];

@@ -199,3 +199,3 @@ n = child;

path = path.slice(wildcard.length);
const staticChild = new Node("", false, 0 /* STATIC */, "", [], null, 1);
const staticChild = new _Node("", false, 0 /* STATIC */, "", [], null, 1);
n.children = [staticChild];

@@ -221,3 +221,3 @@ n = staticChild;

n.path = path.slice(0, i);
const catchAllChild = new Node("", true, 3 /* CATCH_ALL */);
const catchAllChild = new _Node("", true, 3 /* CATCH_ALL */);
n.children = [catchAllChild];

@@ -227,3 +227,3 @@ n.indices = "/";

n.priority++;
const child = new Node(path.slice(i), false, 3 /* CATCH_ALL */, "", [], handle, 1);
const child = new _Node(path.slice(i), false, 3 /* CATCH_ALL */, "", [], handle, 1);
n.children = [child];

@@ -306,3 +306,3 @@ return;

// ../../lib/tree-router/route.ts
var Route = class {
var Route = class _Route {
handlers;

@@ -332,3 +332,3 @@ router;

route(path) {
return new Route(this.router, this.subpath(path), this.handlers);
return new _Route(this.router, this.subpath(path), this.handlers);
}

@@ -335,0 +335,0 @@ on(method, path, ...handle) {

{
"name": "@ampt/api",
"version": "1.0.14",
"version": "1.0.15",
"type": "module",

@@ -19,4 +19,4 @@ "types": "dist/index.d.ts",

"suretype": "^3.2.0",
"@ampt/sdk": "^1.0.14"
"@ampt/sdk": "^1.0.15"
}
}

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