@leyyo/common 1.2.4 → 1.2.5
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/dist/$$leyyo-loader.d.ts +1 -0
- package/dist/$$leyyo-loader.js +12 -0
- package/dist/$$leyyo-loader.js.map +1 -0
- package/dist/deploy/deploy.common.d.ts +4 -4
- package/dist/error/error.common.d.ts +5 -5
- package/dist/error/error.common.js +17 -18
- package/dist/error/error.common.js.map +1 -1
- package/dist/error/index.const.d.ts +4 -0
- package/dist/error/index.const.js +8 -0
- package/dist/error/index.const.js.map +1 -0
- package/dist/error/index.d.ts +1 -1
- package/dist/error/index.js +1 -1
- package/dist/error/index.js.map +1 -1
- package/dist/error/index.types.d.ts +1 -6
- package/dist/error/items/caused.error.d.ts +0 -2
- package/dist/error/items/caused.error.js +0 -5
- package/dist/error/items/caused.error.js.map +1 -1
- package/dist/error/items/developer.error.js +2 -0
- package/dist/error/items/developer.error.js.map +1 -1
- package/dist/error/items/http.error.d.ts +14 -8
- package/dist/error/items/http.error.js +23 -7
- package/dist/error/items/http.error.js.map +1 -1
- package/dist/error/items/index.d.ts +2 -17
- package/dist/error/items/index.js +2 -17
- package/dist/error/items/index.js.map +1 -1
- package/dist/error/items/invalid-value.error.js +2 -0
- package/dist/error/items/invalid-value.error.js.map +1 -1
- package/dist/error/items/leyyo.error.d.ts +17 -10
- package/dist/error/items/leyyo.error.js +37 -22
- package/dist/error/items/leyyo.error.js.map +1 -1
- package/dist/error/items/multiple.error.d.ts +4 -2
- package/dist/error/items/multiple.error.js +3 -1
- package/dist/error/items/multiple.error.js.map +1 -1
- package/dist/event/event.common.d.ts +3 -3
- package/dist/event/event.common.js.map +1 -1
- package/dist/event/event.error.d.ts +2 -2
- package/dist/event/event.error.js +2 -1
- package/dist/event/event.error.js.map +1 -1
- package/dist/hub/hub.channel.d.ts +2 -2
- package/dist/hub/hub.common.d.ts +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/leyyo/leyyo.d.ts +8 -8
- package/dist/log/log-level.d.ts +1 -1
- package/dist/log/log-level.js +2 -3
- package/dist/log/log-level.js.map +1 -1
- package/dist/log/log.common.d.ts +2 -2
- package/dist/log/log.common.js.map +1 -1
- package/dist/log/logger.error.js +1 -0
- package/dist/log/logger.error.js.map +1 -1
- package/dist/log/logger.instance.d.ts +5 -5
- package/dist/name/name.common.d.ts +3 -3
- package/dist/name/name.error.js +1 -0
- package/dist/name/name.error.js.map +1 -1
- package/dist/opt/opt.common.d.ts +2 -2
- package/dist/repo/repo.common.d.ts +2 -2
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/index.enum.d.ts +1 -1
- package/dist/shared/index.js +1 -0
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/index.loader.d.ts +6 -0
- package/dist/shared/index.loader.js +3 -0
- package/dist/shared/index.loader.js.map +1 -0
- package/dist/util/$enum-name.d.ts +16 -0
- package/dist/util/$enum-name.js +18 -0
- package/dist/util/$enum-name.js.map +1 -0
- package/dist/util/$loader.d.ts +9 -0
- package/dist/util/$loader.js +17 -0
- package/dist/util/$loader.js.map +1 -0
- package/dist/util/index.d.ts +3 -0
- package/dist/util/index.js +3 -0
- package/dist/util/index.js.map +1 -1
- package/dist/util/jitter-interval.d.ts +10 -0
- package/dist/util/jitter-interval.js +33 -0
- package/dist/util/jitter-interval.js.map +1 -0
- package/package.json +1 -1
- package/dist/error/http-error.map.d.ts +0 -6
- package/dist/error/http-error.map.js +0 -25
- package/dist/error/http-error.map.js.map +0 -1
- package/dist/error/items/bad-request.error.d.ts +0 -10
- package/dist/error/items/bad-request.error.js +0 -16
- package/dist/error/items/bad-request.error.js.map +0 -1
- package/dist/error/items/conflict.error.d.ts +0 -10
- package/dist/error/items/conflict.error.js +0 -16
- package/dist/error/items/conflict.error.js.map +0 -1
- package/dist/error/items/content-too-large.error.d.ts +0 -10
- package/dist/error/items/content-too-large.error.js +0 -16
- package/dist/error/items/content-too-large.error.js.map +0 -1
- package/dist/error/items/forbidden.error.d.ts +0 -10
- package/dist/error/items/forbidden.error.js +0 -16
- package/dist/error/items/forbidden.error.js.map +0 -1
- package/dist/error/items/gone.error.d.ts +0 -10
- package/dist/error/items/gone.error.js +0 -16
- package/dist/error/items/gone.error.js.map +0 -1
- package/dist/error/items/length-required.error.d.ts +0 -10
- package/dist/error/items/length-required.error.js +0 -16
- package/dist/error/items/length-required.error.js.map +0 -1
- package/dist/error/items/method-not-allowed.error.d.ts +0 -10
- package/dist/error/items/method-not-allowed.error.js +0 -16
- package/dist/error/items/method-not-allowed.error.js.map +0 -1
- package/dist/error/items/not-acceptable.error.d.ts +0 -10
- package/dist/error/items/not-acceptable.error.js +0 -16
- package/dist/error/items/not-acceptable.error.js.map +0 -1
- package/dist/error/items/not-found.error.d.ts +0 -10
- package/dist/error/items/not-found.error.js +0 -16
- package/dist/error/items/not-found.error.js.map +0 -1
- package/dist/error/items/payment-required.error.d.ts +0 -10
- package/dist/error/items/payment-required.error.js +0 -16
- package/dist/error/items/payment-required.error.js.map +0 -1
- package/dist/error/items/precondition-failed.error.d.ts +0 -10
- package/dist/error/items/precondition-failed.error.js +0 -16
- package/dist/error/items/precondition-failed.error.js.map +0 -1
- package/dist/error/items/proxy-authentication-required.error.d.ts +0 -10
- package/dist/error/items/proxy-authentication-required.error.js +0 -16
- package/dist/error/items/proxy-authentication-required.error.js.map +0 -1
- package/dist/error/items/request-timeout.error.d.ts +0 -10
- package/dist/error/items/request-timeout.error.js +0 -16
- package/dist/error/items/request-timeout.error.js.map +0 -1
- package/dist/error/items/silent.error.d.ts +0 -11
- package/dist/error/items/silent.error.js +0 -19
- package/dist/error/items/silent.error.js.map +0 -1
- package/dist/error/items/unauthorized.error.d.ts +0 -10
- package/dist/error/items/unauthorized.error.js +0 -16
- package/dist/error/items/unauthorized.error.js.map +0 -1
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { HttpError } from "./http.error";
|
|
2
|
-
import type { Opt } from "../../opt";
|
|
3
|
-
/**
|
|
4
|
-
* Http 413 Content Too Large
|
|
5
|
-
*
|
|
6
|
-
* The request is larger than the server is willing or able to process.
|
|
7
|
-
* */
|
|
8
|
-
export declare class ContentTooLargeError extends HttpError {
|
|
9
|
-
constructor(message?: string, opt?: Opt);
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ContentTooLargeError = void 0;
|
|
4
|
-
const http_error_1 = require("./http.error");
|
|
5
|
-
/**
|
|
6
|
-
* Http 413 Content Too Large
|
|
7
|
-
*
|
|
8
|
-
* The request is larger than the server is willing or able to process.
|
|
9
|
-
* */
|
|
10
|
-
class ContentTooLargeError extends http_error_1.HttpError {
|
|
11
|
-
constructor(message, opt) {
|
|
12
|
-
super(message !== null && message !== void 0 ? message : 'Content too large', 413, opt);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.ContentTooLargeError = ContentTooLargeError;
|
|
16
|
-
//# sourceMappingURL=content-too-large.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"content-too-large.error.js","sourceRoot":"","sources":["../../../src/error/items/content-too-large.error.ts"],"names":[],"mappings":";;;AAAA,6CAAuC;AAGvC;;;;KAIK;AACL,MAAa,oBAAqB,SAAQ,sBAAS;IAC/C,YAAY,OAAgB,EAAE,GAAS;QACnC,KAAK,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,mBAAmB,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACpD,CAAC;CACJ;AAJD,oDAIC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { HttpError } from "./http.error";
|
|
2
|
-
import type { Opt } from "../../opt";
|
|
3
|
-
/**
|
|
4
|
-
* Http 403 Forbidden
|
|
5
|
-
*
|
|
6
|
-
* The request was valid, but the server refuses action
|
|
7
|
-
* */
|
|
8
|
-
export declare class ForbiddenError extends HttpError {
|
|
9
|
-
constructor(message?: string, opt?: Opt);
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ForbiddenError = void 0;
|
|
4
|
-
const http_error_1 = require("./http.error");
|
|
5
|
-
/**
|
|
6
|
-
* Http 403 Forbidden
|
|
7
|
-
*
|
|
8
|
-
* The request was valid, but the server refuses action
|
|
9
|
-
* */
|
|
10
|
-
class ForbiddenError extends http_error_1.HttpError {
|
|
11
|
-
constructor(message, opt) {
|
|
12
|
-
super(message !== null && message !== void 0 ? message : 'Forbidden', 403, opt);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.ForbiddenError = ForbiddenError;
|
|
16
|
-
//# sourceMappingURL=forbidden.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"forbidden.error.js","sourceRoot":"","sources":["../../../src/error/items/forbidden.error.ts"],"names":[],"mappings":";;;AAAA,6CAAuC;AAGvC;;;;KAIK;AACL,MAAa,cAAe,SAAQ,sBAAS;IACzC,YAAY,OAAgB,EAAE,GAAS;QACnC,KAAK,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,WAAW,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IAC5C,CAAC;CACJ;AAJD,wCAIC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { HttpError } from "./http.error";
|
|
2
|
-
import type { Opt } from "../../opt";
|
|
3
|
-
/**
|
|
4
|
-
* Http 410 Gone
|
|
5
|
-
*
|
|
6
|
-
* Indicates that the resource requested was previously in use but is no longer available and will not be available again
|
|
7
|
-
* */
|
|
8
|
-
export declare class GoneError extends HttpError {
|
|
9
|
-
constructor(message?: string, opt?: Opt);
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GoneError = void 0;
|
|
4
|
-
const http_error_1 = require("./http.error");
|
|
5
|
-
/**
|
|
6
|
-
* Http 410 Gone
|
|
7
|
-
*
|
|
8
|
-
* Indicates that the resource requested was previously in use but is no longer available and will not be available again
|
|
9
|
-
* */
|
|
10
|
-
class GoneError extends http_error_1.HttpError {
|
|
11
|
-
constructor(message, opt) {
|
|
12
|
-
super(message !== null && message !== void 0 ? message : 'Gone', 410, opt);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.GoneError = GoneError;
|
|
16
|
-
//# sourceMappingURL=gone.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gone.error.js","sourceRoot":"","sources":["../../../src/error/items/gone.error.ts"],"names":[],"mappings":";;;AAAA,6CAAuC;AAGvC;;;;KAIK;AACL,MAAa,SAAU,SAAQ,sBAAS;IACpC,YAAY,OAAgB,EAAE,GAAS;QACnC,KAAK,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,MAAM,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACvC,CAAC;CACJ;AAJD,8BAIC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { HttpError } from "./http.error";
|
|
2
|
-
import type { Opt } from "../../opt";
|
|
3
|
-
/**
|
|
4
|
-
* Http 411 Length Required
|
|
5
|
-
*
|
|
6
|
-
* The request did not specify the length of its content, which is required by the requested resource.
|
|
7
|
-
* */
|
|
8
|
-
export declare class LengthRequiredError extends HttpError {
|
|
9
|
-
constructor(message?: string, opt?: Opt);
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LengthRequiredError = void 0;
|
|
4
|
-
const http_error_1 = require("./http.error");
|
|
5
|
-
/**
|
|
6
|
-
* Http 411 Length Required
|
|
7
|
-
*
|
|
8
|
-
* The request did not specify the length of its content, which is required by the requested resource.
|
|
9
|
-
* */
|
|
10
|
-
class LengthRequiredError extends http_error_1.HttpError {
|
|
11
|
-
constructor(message, opt) {
|
|
12
|
-
super(message !== null && message !== void 0 ? message : 'Length required', 411, opt);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.LengthRequiredError = LengthRequiredError;
|
|
16
|
-
//# sourceMappingURL=length-required.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"length-required.error.js","sourceRoot":"","sources":["../../../src/error/items/length-required.error.ts"],"names":[],"mappings":";;;AAAA,6CAAuC;AAGvC;;;;KAIK;AACL,MAAa,mBAAoB,SAAQ,sBAAS;IAC9C,YAAY,OAAgB,EAAE,GAAS;QACnC,KAAK,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,iBAAiB,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IAClD,CAAC;CACJ;AAJD,kDAIC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { HttpError } from "./http.error";
|
|
2
|
-
import type { Opt } from "../../opt";
|
|
3
|
-
/**
|
|
4
|
-
* Http 405 Method Not Allowed
|
|
5
|
-
*
|
|
6
|
-
* A request method is not supported for the requested resource (for example, a GET request on a form that requires data to be presented
|
|
7
|
-
* */
|
|
8
|
-
export declare class MethodNotAllowedError extends HttpError {
|
|
9
|
-
constructor(message?: string, opt?: Opt);
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MethodNotAllowedError = void 0;
|
|
4
|
-
const http_error_1 = require("./http.error");
|
|
5
|
-
/**
|
|
6
|
-
* Http 405 Method Not Allowed
|
|
7
|
-
*
|
|
8
|
-
* A request method is not supported for the requested resource (for example, a GET request on a form that requires data to be presented
|
|
9
|
-
* */
|
|
10
|
-
class MethodNotAllowedError extends http_error_1.HttpError {
|
|
11
|
-
constructor(message, opt) {
|
|
12
|
-
super(message !== null && message !== void 0 ? message : 'Method not allowed', 405, opt);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.MethodNotAllowedError = MethodNotAllowedError;
|
|
16
|
-
//# sourceMappingURL=method-not-allowed.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"method-not-allowed.error.js","sourceRoot":"","sources":["../../../src/error/items/method-not-allowed.error.ts"],"names":[],"mappings":";;;AAAA,6CAAuC;AAGvC;;;;KAIK;AACL,MAAa,qBAAsB,SAAQ,sBAAS;IAChD,YAAY,OAAgB,EAAE,GAAS;QACnC,KAAK,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,oBAAoB,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACrD,CAAC;CACJ;AAJD,sDAIC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { HttpError } from "./http.error";
|
|
2
|
-
import type { Opt } from "../../opt";
|
|
3
|
-
/**
|
|
4
|
-
* Http 406 Not Acceptable
|
|
5
|
-
*
|
|
6
|
-
* The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.
|
|
7
|
-
* */
|
|
8
|
-
export declare class NotAcceptableError extends HttpError {
|
|
9
|
-
constructor(message?: string, opt?: Opt);
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotAcceptableError = void 0;
|
|
4
|
-
const http_error_1 = require("./http.error");
|
|
5
|
-
/**
|
|
6
|
-
* Http 406 Not Acceptable
|
|
7
|
-
*
|
|
8
|
-
* The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.
|
|
9
|
-
* */
|
|
10
|
-
class NotAcceptableError extends http_error_1.HttpError {
|
|
11
|
-
constructor(message, opt) {
|
|
12
|
-
super(message !== null && message !== void 0 ? message : 'Not acceptable', 406, opt);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.NotAcceptableError = NotAcceptableError;
|
|
16
|
-
//# sourceMappingURL=not-acceptable.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"not-acceptable.error.js","sourceRoot":"","sources":["../../../src/error/items/not-acceptable.error.ts"],"names":[],"mappings":";;;AAAA,6CAAuC;AAGvC;;;;KAIK;AACL,MAAa,kBAAmB,SAAQ,sBAAS;IAC7C,YAAY,OAAgB,EAAE,GAAS;QACnC,KAAK,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,gBAAgB,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACjD,CAAC;CACJ;AAJD,gDAIC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { HttpError } from "./http.error";
|
|
2
|
-
import type { Opt } from "../../opt";
|
|
3
|
-
/**
|
|
4
|
-
* Http 404 Not Found
|
|
5
|
-
*
|
|
6
|
-
* The requested resource could not be found but may be available in the future. Subsequent requests by the client are permissible.
|
|
7
|
-
* */
|
|
8
|
-
export declare class NotFoundError extends HttpError {
|
|
9
|
-
constructor(message?: string, opt?: Opt);
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotFoundError = void 0;
|
|
4
|
-
const http_error_1 = require("./http.error");
|
|
5
|
-
/**
|
|
6
|
-
* Http 404 Not Found
|
|
7
|
-
*
|
|
8
|
-
* The requested resource could not be found but may be available in the future. Subsequent requests by the client are permissible.
|
|
9
|
-
* */
|
|
10
|
-
class NotFoundError extends http_error_1.HttpError {
|
|
11
|
-
constructor(message, opt) {
|
|
12
|
-
super(message !== null && message !== void 0 ? message : 'Not found', 404, opt);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.NotFoundError = NotFoundError;
|
|
16
|
-
//# sourceMappingURL=not-found.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"not-found.error.js","sourceRoot":"","sources":["../../../src/error/items/not-found.error.ts"],"names":[],"mappings":";;;AAAA,6CAAuC;AAGvC;;;;KAIK;AACL,MAAa,aAAc,SAAQ,sBAAS;IACxC,YAAY,OAAgB,EAAE,GAAS;QACnC,KAAK,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,WAAW,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IAC5C,CAAC;CACJ;AAJD,sCAIC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { HttpError } from "./http.error";
|
|
2
|
-
import type { Opt } from "../../opt";
|
|
3
|
-
/**
|
|
4
|
-
* Http 402 Payment Required
|
|
5
|
-
*
|
|
6
|
-
* The original intention was that this code might be used as part of some form of digital cash or micropayment scheme
|
|
7
|
-
* */
|
|
8
|
-
export declare class PaymentRequiredError extends HttpError {
|
|
9
|
-
constructor(message?: string, opt?: Opt);
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PaymentRequiredError = void 0;
|
|
4
|
-
const http_error_1 = require("./http.error");
|
|
5
|
-
/**
|
|
6
|
-
* Http 402 Payment Required
|
|
7
|
-
*
|
|
8
|
-
* The original intention was that this code might be used as part of some form of digital cash or micropayment scheme
|
|
9
|
-
* */
|
|
10
|
-
class PaymentRequiredError extends http_error_1.HttpError {
|
|
11
|
-
constructor(message, opt) {
|
|
12
|
-
super(message !== null && message !== void 0 ? message : 'Payment required', 402, opt);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.PaymentRequiredError = PaymentRequiredError;
|
|
16
|
-
//# sourceMappingURL=payment-required.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payment-required.error.js","sourceRoot":"","sources":["../../../src/error/items/payment-required.error.ts"],"names":[],"mappings":";;;AAAA,6CAAuC;AAGvC;;;;KAIK;AACL,MAAa,oBAAqB,SAAQ,sBAAS;IAC/C,YAAY,OAAgB,EAAE,GAAS;QACnC,KAAK,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,kBAAkB,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACnD,CAAC;CACJ;AAJD,oDAIC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { HttpError } from "./http.error";
|
|
2
|
-
import type { Opt } from "../../opt";
|
|
3
|
-
/**
|
|
4
|
-
* Http 412 Precondition Failed
|
|
5
|
-
*
|
|
6
|
-
* The server does not meet one of the preconditions that the requester put on the request header fields.
|
|
7
|
-
* */
|
|
8
|
-
export declare class PreconditionFailedError extends HttpError {
|
|
9
|
-
constructor(message?: string, opt?: Opt);
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PreconditionFailedError = void 0;
|
|
4
|
-
const http_error_1 = require("./http.error");
|
|
5
|
-
/**
|
|
6
|
-
* Http 412 Precondition Failed
|
|
7
|
-
*
|
|
8
|
-
* The server does not meet one of the preconditions that the requester put on the request header fields.
|
|
9
|
-
* */
|
|
10
|
-
class PreconditionFailedError extends http_error_1.HttpError {
|
|
11
|
-
constructor(message, opt) {
|
|
12
|
-
super(message !== null && message !== void 0 ? message : 'Precondition failed', 412, opt);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.PreconditionFailedError = PreconditionFailedError;
|
|
16
|
-
//# sourceMappingURL=precondition-failed.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"precondition-failed.error.js","sourceRoot":"","sources":["../../../src/error/items/precondition-failed.error.ts"],"names":[],"mappings":";;;AAAA,6CAAuC;AAGvC;;;;KAIK;AACL,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,YAAY,OAAgB,EAAE,GAAS;QACnC,KAAK,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,qBAAqB,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACtD,CAAC;CACJ;AAJD,0DAIC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { HttpError } from "./http.error";
|
|
2
|
-
import type { Opt } from "../../opt";
|
|
3
|
-
/**
|
|
4
|
-
* Http 407 Proxy Authentication Required
|
|
5
|
-
*
|
|
6
|
-
* The client must first authenticate itself with the proxy.
|
|
7
|
-
* */
|
|
8
|
-
export declare class ProxyAuthenticationRequiredError extends HttpError {
|
|
9
|
-
constructor(message?: string, opt?: Opt);
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProxyAuthenticationRequiredError = void 0;
|
|
4
|
-
const http_error_1 = require("./http.error");
|
|
5
|
-
/**
|
|
6
|
-
* Http 407 Proxy Authentication Required
|
|
7
|
-
*
|
|
8
|
-
* The client must first authenticate itself with the proxy.
|
|
9
|
-
* */
|
|
10
|
-
class ProxyAuthenticationRequiredError extends http_error_1.HttpError {
|
|
11
|
-
constructor(message, opt) {
|
|
12
|
-
super(message !== null && message !== void 0 ? message : 'Proxy authentication required', 407, opt);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.ProxyAuthenticationRequiredError = ProxyAuthenticationRequiredError;
|
|
16
|
-
//# sourceMappingURL=proxy-authentication-required.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"proxy-authentication-required.error.js","sourceRoot":"","sources":["../../../src/error/items/proxy-authentication-required.error.ts"],"names":[],"mappings":";;;AAAA,6CAAuC;AAGvC;;;;KAIK;AACL,MAAa,gCAAiC,SAAQ,sBAAS;IAC3D,YAAY,OAAgB,EAAE,GAAS;QACnC,KAAK,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,+BAA+B,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IAChE,CAAC;CACJ;AAJD,4EAIC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { HttpError } from "./http.error";
|
|
2
|
-
import type { Opt } from "../../opt";
|
|
3
|
-
/**
|
|
4
|
-
* Http 408 Request Timeout
|
|
5
|
-
*
|
|
6
|
-
* The server timed out waiting for the request. According to HTTP specifications
|
|
7
|
-
* */
|
|
8
|
-
export declare class RequestTimeoutError extends HttpError {
|
|
9
|
-
constructor(message?: string, opt?: Opt);
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RequestTimeoutError = void 0;
|
|
4
|
-
const http_error_1 = require("./http.error");
|
|
5
|
-
/**
|
|
6
|
-
* Http 408 Request Timeout
|
|
7
|
-
*
|
|
8
|
-
* The server timed out waiting for the request. According to HTTP specifications
|
|
9
|
-
* */
|
|
10
|
-
class RequestTimeoutError extends http_error_1.HttpError {
|
|
11
|
-
constructor(message, opt) {
|
|
12
|
-
super(message !== null && message !== void 0 ? message : 'Request timeout', 408, opt);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.RequestTimeoutError = RequestTimeoutError;
|
|
16
|
-
//# sourceMappingURL=request-timeout.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"request-timeout.error.js","sourceRoot":"","sources":["../../../src/error/items/request-timeout.error.ts"],"names":[],"mappings":";;;AAAA,6CAAuC;AAGvC;;;;KAIK;AACL,MAAa,mBAAoB,SAAQ,sBAAS;IAC9C,YAAY,OAAgB,EAAE,GAAS;QACnC,KAAK,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,iBAAiB,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IAClD,CAAC;CACJ;AAJD,kDAIC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Opt } from "../../opt";
|
|
2
|
-
import { LeyyoError } from "./leyyo.error";
|
|
3
|
-
/**
|
|
4
|
-
* Silent error
|
|
5
|
-
*
|
|
6
|
-
* It does not trigger any event after it raised
|
|
7
|
-
* */
|
|
8
|
-
export declare class SilentError extends LeyyoError {
|
|
9
|
-
protected _silent: boolean;
|
|
10
|
-
constructor(e: Error, opt?: Opt);
|
|
11
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SilentError = void 0;
|
|
4
|
-
const leyyo_error_1 = require("./leyyo.error");
|
|
5
|
-
/**
|
|
6
|
-
* Silent error
|
|
7
|
-
*
|
|
8
|
-
* It does not trigger any event after it raised
|
|
9
|
-
* */
|
|
10
|
-
class SilentError extends leyyo_error_1.LeyyoError {
|
|
11
|
-
constructor(e, opt) {
|
|
12
|
-
var _a, _b;
|
|
13
|
-
super((_a = e.message) !== null && _a !== void 0 ? _a : 'Silent error', opt);
|
|
14
|
-
this._silent = true;
|
|
15
|
-
this.$setName((_b = e.name) !== null && _b !== void 0 ? _b : 'SilentError');
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.SilentError = SilentError;
|
|
19
|
-
//# sourceMappingURL=silent.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"silent.error.js","sourceRoot":"","sources":["../../../src/error/items/silent.error.ts"],"names":[],"mappings":";;;AACA,+CAAyC;AAGzC;;;;KAIK;AACL,MAAa,WAAY,SAAQ,wBAAU;IAEvC,YAAY,CAAQ,EAAE,GAAS;;QAC3B,KAAK,CAAC,MAAA,CAAC,CAAC,OAAO,mCAAI,cAAc,EAAE,GAAG,CAAC,CAAC;QAFlC,YAAO,GAAG,IAAI,CAAC;QAGrB,IAAI,CAAC,QAAQ,CAAC,MAAA,CAAC,CAAC,IAAI,mCAAI,aAAa,CAAC,CAAC;IAC3C,CAAC;CACJ;AAND,kCAMC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { HttpError } from "./http.error";
|
|
2
|
-
import type { Opt } from "../../opt";
|
|
3
|
-
/**
|
|
4
|
-
* Http 401 Unauthorized
|
|
5
|
-
*
|
|
6
|
-
* Specifically for use when authentication is required and has failed or has not yet been provided
|
|
7
|
-
* */
|
|
8
|
-
export declare class UnauthorizedError extends HttpError {
|
|
9
|
-
constructor(message?: string, opt?: Opt);
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnauthorizedError = void 0;
|
|
4
|
-
const http_error_1 = require("./http.error");
|
|
5
|
-
/**
|
|
6
|
-
* Http 401 Unauthorized
|
|
7
|
-
*
|
|
8
|
-
* Specifically for use when authentication is required and has failed or has not yet been provided
|
|
9
|
-
* */
|
|
10
|
-
class UnauthorizedError extends http_error_1.HttpError {
|
|
11
|
-
constructor(message, opt) {
|
|
12
|
-
super(message !== null && message !== void 0 ? message : 'Unauthorized', 401, opt);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.UnauthorizedError = UnauthorizedError;
|
|
16
|
-
//# sourceMappingURL=unauthorized.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unauthorized.error.js","sourceRoot":"","sources":["../../../src/error/items/unauthorized.error.ts"],"names":[],"mappings":";;;AAAA,6CAAuC;AAGvC;;;;KAIK;AACL,MAAa,iBAAkB,SAAQ,sBAAS;IAC5C,YAAY,OAAgB,EAAE,GAAS;QACnC,KAAK,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,cAAc,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IAC/C,CAAC;CACJ;AAJD,8CAIC"}
|