Skip to content

Commit 653a4c9

Browse files
committed
chore: rebrand symbols
1 parent 4ca8d32 commit 653a4c9

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

lib/decorators/catch.decorator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { ClassConstructor } from 'class-transformer';
22
import type { NextApiRequest, NextApiResponse } from 'next';
33

4-
export const CATCH_TOKEN = Symbol('ams:next:catch');
4+
export const CATCH_TOKEN = Symbol('instant:next:catch');
55

66
type ExceptionHandlerFunction<T> = (error: T, req: NextApiRequest, res: NextApiResponse) => void | Promise<void>;
77

lib/decorators/download.decorator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const HTTP_DOWNLOAD_TOKEN = Symbol('ams:next:download');
1+
export const HTTP_DOWNLOAD_TOKEN = Symbol('instant:next:download');
22

33
/**
44
* Marks the method as a download handler for the client, so the returned file can be downloaded by the browser.

lib/decorators/httpCode.decorator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const HTTP_CODE_TOKEN = Symbol('ams:next:httpCode');
1+
export const HTTP_CODE_TOKEN = Symbol('instant:next:httpCode');
22

33
/**
44
* Defines the HTTP response code of the route.

lib/decorators/httpMethod.decorators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ interface HandlerOptions {
2424
extraMethods?: HttpMethod[];
2525
}
2626

27-
export const HTTP_METHOD_TOKEN = Symbol('ams:next:httpMethod');
27+
export const HTTP_METHOD_TOKEN = Symbol('instant:next:httpMethod');
2828

2929
function applyHttpMethod({ method, path, options }: { method: HttpMethod; path: string; options?: HandlerOptions }) {
3030
if (process.env.NODE_ENV === 'development' && path !== '/') {

lib/decorators/middleware.decorators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { RequestHandler } from 'express';
22
import type { NextApiRequest, NextApiResponse } from 'next';
33

4-
export const MIDDLEWARE_TOKEN = Symbol('ams:next:middlewares');
4+
export const MIDDLEWARE_TOKEN = Symbol('instant:next:middlewares');
55

66
export type NextFunction = (err?: Error) => void;
77
export type NextMiddleware = (req: NextApiRequest, res: NextApiResponse, next: NextFunction) => void | Promise<void>;

lib/decorators/parameter.decorators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export interface MetaParameter {
1111
fn?: ParamDecorator<any>;
1212
}
1313

14-
export const PARAMETER_TOKEN = Symbol('ams:next:parameters');
14+
export const PARAMETER_TOKEN = Symbol('instant:next:parameters');
1515

1616
function addParameter(
1717
location: MetaParameter['location'],

lib/decorators/setHeader.decorator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const HEADER_TOKEN = Symbol('ams:next:header');
1+
export const HEADER_TOKEN = Symbol('instant:next:header');
22

33
/**
44
* Sets a header parameter into the response header.

0 commit comments

Comments
 (0)