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

crosswalk

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crosswalk - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

.vscode/settings.json

2

package.json
{
"name": "crosswalk",
"version": "1.0.0",
"version": "1.0.1",
"description": "Type-safe express routing with TypeScript",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -41,3 +41,3 @@ # Crosswalk: safe routes for Express and TypeScript

```ts
import type {Endpoint, GetEndpoint} from 'typed-router/dist/api-spec';
import type {Endpoint, GetEndpoint} from 'crosswalk/dist/api-spec';

@@ -59,3 +59,3 @@ export interface API {

import {API} from './api';
import {TypedRouter} from 'typed-router';
import {TypedRouter} from 'crosswalk';

@@ -97,3 +97,3 @@ export function registerAPI(router: TypedRouter<API>) {

```ts
import {typedApi} from 'typed-router';
import {typedApi} from 'crosswalk';
import {API} from './api';

@@ -125,3 +125,3 @@

```ts
import {apiUrlMaker} from 'typed-router';
import {apiUrlMaker} from 'crosswalk';
const urlMaker = apiUrlMaker<API>('/api/v0');

@@ -168,3 +168,3 @@ const getUserUrl = urlMaker('/users/:userId');

import {API} from './api';
import {TypedRouter, HTTPError} from 'typed-router';
import {TypedRouter, HTTPError} from 'crosswalk';

@@ -212,3 +212,3 @@ function getUserById(userId: string): User | null {

import swaggerUI from 'swagger-ui-express';
import {TypedRouter, apiSpecToOpenApi} from 'typed-router';
import {TypedRouter, apiSpecToOpenApi} from 'crosswalk';

@@ -215,0 +215,0 @@ app.use('/docs', swaggerUI.serve, swaggerUI.setup(apiSpecToOpenApi(apiSchema)));

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