Comparing version 1.0.0 to 1.0.1
{ | ||
"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))); |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
61669
26
1169
2
2