@shadow-library/fastify 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +3 -0
- package/cjs/interfaces/server-metadata.interface.d.ts +2 -1
- package/cjs/server.error.d.ts +2 -0
- package/cjs/server.error.js +2 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/esm/interfaces/server-metadata.interface.d.ts +2 -1
- package/esm/server.error.d.ts +2 -0
- package/esm/server.error.js +2 -0
- package/package.json +1 -1
package/cjs/index.d.ts
CHANGED
package/cjs/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.FASTIFY_INSTANCE = void 0;
|
|
17
18
|
/**
|
|
18
19
|
* Importing npm packages
|
|
19
20
|
*/
|
|
@@ -27,3 +28,5 @@ __exportStar(require("./interfaces/index.js"), exports);
|
|
|
27
28
|
__exportStar(require("./module/index.js"), exports);
|
|
28
29
|
__exportStar(require("./services/index.js"), exports);
|
|
29
30
|
__exportStar(require("./server.error.js"), exports);
|
|
31
|
+
var constants_1 = require("./constants.js");
|
|
32
|
+
Object.defineProperty(exports, "FASTIFY_INSTANCE", { enumerable: true, get: function () { return constants_1.FASTIFY_INSTANCE; } });
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { RouteMetadata } from '@shadow-library/app';
|
|
5
5
|
import { JSONSchema } from '@shadow-library/class-schema';
|
|
6
|
-
import { RouteShorthandOptions } from 'fastify';
|
|
6
|
+
import { FastifyInstance, RouteShorthandOptions } from 'fastify';
|
|
7
7
|
/**
|
|
8
8
|
* Importing user defined packages
|
|
9
9
|
*/
|
|
@@ -32,3 +32,4 @@ declare module '@shadow-library/app' {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
export type ServerMetadata = RouteMetadata;
|
|
35
|
+
export type ServerInstance = FastifyInstance;
|
package/cjs/server.error.d.ts
CHANGED
|
@@ -30,4 +30,6 @@ export declare class ServerErrorCode extends ErrorCode {
|
|
|
30
30
|
static readonly S008: ServerErrorCode;
|
|
31
31
|
/** The requested resource could not be found */
|
|
32
32
|
static readonly S009: ServerErrorCode;
|
|
33
|
+
/** Access blocked due to security policy restrictions */
|
|
34
|
+
static readonly S010: ServerErrorCode;
|
|
33
35
|
}
|
package/cjs/server.error.js
CHANGED
|
@@ -60,5 +60,7 @@ class ServerErrorCode extends common_1.ErrorCode {
|
|
|
60
60
|
static S008 = new ServerErrorCode('S008', common_1.ErrorType.CONFLICT, 'Resource conflict as the requested operation conflicts with existing data');
|
|
61
61
|
/** The requested resource could not be found */
|
|
62
62
|
static S009 = new ServerErrorCode('S009', common_1.ErrorType.NOT_FOUND, 'The requested resource could not be found');
|
|
63
|
+
/** Access blocked due to security policy restrictions */
|
|
64
|
+
static S010 = new ServerErrorCode('S010', common_1.ErrorType.UNAUTHORIZED, 'Access blocked due to security policy restrictions');
|
|
63
65
|
}
|
|
64
66
|
exports.ServerErrorCode = ServerErrorCode;
|
package/esm/index.d.ts
CHANGED
package/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { RouteMetadata } from '@shadow-library/app';
|
|
5
5
|
import { JSONSchema } from '@shadow-library/class-schema';
|
|
6
|
-
import { RouteShorthandOptions } from 'fastify';
|
|
6
|
+
import { FastifyInstance, RouteShorthandOptions } from 'fastify';
|
|
7
7
|
/**
|
|
8
8
|
* Importing user defined packages
|
|
9
9
|
*/
|
|
@@ -32,3 +32,4 @@ declare module '@shadow-library/app' {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
export type ServerMetadata = RouteMetadata;
|
|
35
|
+
export type ServerInstance = FastifyInstance;
|
package/esm/server.error.d.ts
CHANGED
|
@@ -30,4 +30,6 @@ export declare class ServerErrorCode extends ErrorCode {
|
|
|
30
30
|
static readonly S008: ServerErrorCode;
|
|
31
31
|
/** The requested resource could not be found */
|
|
32
32
|
static readonly S009: ServerErrorCode;
|
|
33
|
+
/** Access blocked due to security policy restrictions */
|
|
34
|
+
static readonly S010: ServerErrorCode;
|
|
33
35
|
}
|
package/esm/server.error.js
CHANGED
|
@@ -56,4 +56,6 @@ export class ServerErrorCode extends ErrorCode {
|
|
|
56
56
|
static S008 = new ServerErrorCode('S008', ErrorType.CONFLICT, 'Resource conflict as the requested operation conflicts with existing data');
|
|
57
57
|
/** The requested resource could not be found */
|
|
58
58
|
static S009 = new ServerErrorCode('S009', ErrorType.NOT_FOUND, 'The requested resource could not be found');
|
|
59
|
+
/** Access blocked due to security policy restrictions */
|
|
60
|
+
static S010 = new ServerErrorCode('S010', ErrorType.UNAUTHORIZED, 'Access blocked due to security policy restrictions');
|
|
59
61
|
}
|
package/package.json
CHANGED