@leyyo/common 1.2.3 → 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 +39 -25
- 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 +11 -8
- 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 +24 -14
- package/dist/error/items/leyyo.error.js +60 -14
- 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 +30 -27
- package/dist/event/event.common.js +24 -24
- 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/event/index.types.d.ts +27 -23
- 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
package/dist/leyyo/leyyo.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { OptCommon } from "../opt/opt.common";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
2
|
+
import { Fnc } from "../shared";
|
|
3
|
+
import { DeployCommonLike } from "../deploy";
|
|
4
|
+
import { NameCommonLike } from "../name";
|
|
5
|
+
import { LeyyoLike, LeyyoSecure } from "./index.types";
|
|
6
|
+
import { ErrorCommonLike } from "../error";
|
|
7
|
+
import { LogCommonLike } from "../log";
|
|
8
|
+
import { RepoCommonLike } from "../repo";
|
|
9
|
+
import { EventCommonLike } from "../event";
|
|
10
10
|
export declare class Leyyo implements LeyyoLike, LeyyoSecure {
|
|
11
11
|
private _lazyCallbacks;
|
|
12
12
|
private _earlyCallbacks;
|
package/dist/log/log-level.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
declare const literals: readonly ["debug", "trace", "info", "warn", "error", "fatal"];
|
|
1
2
|
/**
|
|
2
3
|
* Log Level
|
|
3
4
|
* */
|
|
4
|
-
declare const literals: readonly ["debug", "trace", "info", "warn", "error", "fatal"];
|
|
5
5
|
export type LogLevel = typeof literals[number];
|
|
6
6
|
export declare const LogLevelItems: ReadonlyArray<LogLevel>;
|
|
7
7
|
export {};
|
package/dist/log/log-level.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LogLevelItems = void 0;
|
|
4
|
-
|
|
5
|
-
* Log Level
|
|
6
|
-
* */
|
|
4
|
+
const util_1 = require("../util");
|
|
7
5
|
const literals = ['debug', 'trace', 'info', 'warn', 'error', 'fatal'];
|
|
8
6
|
exports.LogLevelItems = literals;
|
|
7
|
+
(0, util_1.$enumName)(exports.LogLevelItems, 'LogLevel');
|
|
9
8
|
//# sourceMappingURL=log-level.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-level.js","sourceRoot":"","sources":["../../src/log/log-level.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"log-level.js","sourceRoot":"","sources":["../../src/log/log-level.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;AAElC,MAAM,QAAQ,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAU,CAAC;AAKlE,QAAA,aAAa,GAAG,QAAmC,CAAA;AAChE,IAAA,gBAAS,EAAC,qBAAa,EAAE,UAAU,CAAC,CAAC"}
|
package/dist/log/log.common.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { LeyyoLike } from "../leyyo";
|
|
2
|
+
import { LogCommonLike, LogCommonSecure, Logger, LogLine } from "./index.types";
|
|
3
3
|
export declare class LogCommon implements LogCommonLike, LogCommonSecure {
|
|
4
4
|
private lyy;
|
|
5
5
|
private COLORS;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.common.js","sourceRoot":"","sources":["../../src/log/log.common.ts"],"names":[],"mappings":";;;AAEA,uDAAiD;AACjD,0CAAgC;AAChC,
|
|
1
|
+
{"version":3,"file":"log.common.js","sourceRoot":"","sources":["../../src/log/log.common.ts"],"names":[],"mappings":";;;AAEA,uDAAiD;AACjD,0CAAgC;AAChC,2CAAoD;AAEpD,kCAAmC;AAEnC,4BAA4B;AAC5B,2BAA2B;AAC3B,4BAA4B;AAC5B,6BAA6B;AAC7B,8BAA8B;AAC9B,8BAA8B;AAC9B,+BAA+B;AAC/B,MAAM,KAAK,GAAG,UAAU,CAAC;AACzB,6BAA6B;AAC7B,+BAA+B;AAC/B,gCAAgC;AAChC,4BAA4B;AAC5B,6BAA6B;AAC7B,MAAM,KAAK,GAAG,UAAU,CAAC;AACzB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,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACrD,IAAI,GAAG,KAAK,GAAG,MAAM,GAAG,IAAA,iBAAU,EAAC,IAAI,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC;QAC1D,CAAC;QACD,MAAM,MAAM,GAAG,MAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,mCAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;QAC5D,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,CAAC;QAEtD,MAAM,GAAG,GAAG;YACR,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,GAAG;YAClC,KAAK;YACL,EAAE,EAAE,KAAK,EAAE,GAAG;YACd,KAAK;YACL,IAAI,EAAE,KAAK,EAAE,GAAG;YAChB,KAAK;YACL,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE,KAAK;YAC1B,IAAI;SACP,CAAC;QACF,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;IACjC,CAAC;IAED,IAAI,KAAK;QACL,OAAO,IAAI,CAAC;IAChB,CAAC;CAIJ;AA7GD,8BA6GC"}
|
package/dist/log/logger.error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.error.js","sourceRoot":"","sources":["../../src/log/logger.error.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"logger.error.js","sourceRoot":"","sources":["../../src/log/logger.error.ts"],"names":[],"mappings":";;;AAAA,oCAA8D;AAE9D,MAAa,WAAY,SAAQ,kBAAU;CAC1C;AADD,kCACC;AACD,WAAW,CAAC,gCAAwB,CAAC,GAAG,cAAc,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { Logger, LoggerSecure } from "./index.types";
|
|
2
|
+
import { LeyyoLike } from "../leyyo";
|
|
3
|
+
import { LogLevel } from "./log-level";
|
|
4
|
+
import { DeployCommonSecure } from "../deploy";
|
|
5
|
+
import { Opt } from "../opt";
|
|
6
6
|
export declare class LoggerInstance implements Logger, LoggerSecure {
|
|
7
7
|
private static lyy;
|
|
8
8
|
private _clazz;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { NameCommonLike, NameCommonSecure } from "./index.types";
|
|
2
|
+
import { LeyyoLike } from "../leyyo";
|
|
3
|
+
import { ClassLike, Fnc } from "../shared";
|
|
4
4
|
export declare class NameCommon implements NameCommonLike, NameCommonSecure {
|
|
5
5
|
private lyy;
|
|
6
6
|
private _counter;
|
package/dist/name/name.error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"name.error.js","sourceRoot":"","sources":["../../src/name/name.error.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"name.error.js","sourceRoot":"","sources":["../../src/name/name.error.ts"],"names":[],"mappings":";;;AAAA,oCAA8D;AAE9D,MAAa,SAAU,SAAQ,kBAAU;CAExC;AAFD,8BAEC;AACD,SAAS,CAAC,gCAAwB,CAAC,GAAG,YAAY,CAAC"}
|
package/dist/opt/opt.common.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Opt, OptCommonLike, OptCommonSecure, OptFn } from "./index.types";
|
|
2
|
+
import { LeyyoLike } from "../leyyo";
|
|
3
3
|
export declare class OptCommon implements OptCommonLike, OptCommonSecure {
|
|
4
4
|
private lyy;
|
|
5
5
|
constructor(lyy: LeyyoLike);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { RepoCommonLike, RepoCommonSecure, RepoDetail, RepoItem, RepoType } from "./index.types";
|
|
2
|
+
import { LeyyoLike } from "../leyyo";
|
|
3
3
|
/** @inheritDoc */
|
|
4
4
|
export declare class RepoCommon implements RepoCommonLike, RepoCommonSecure {
|
|
5
5
|
private lyy;
|
package/dist/shared/index.d.ts
CHANGED
package/dist/shared/index.js
CHANGED
|
@@ -18,4 +18,5 @@ __exportStar(require("./index.types"), exports);
|
|
|
18
18
|
__exportStar(require("./index.json"), exports);
|
|
19
19
|
__exportStar(require("./index.enum"), exports);
|
|
20
20
|
__exportStar(require("./index.fqn"), exports);
|
|
21
|
+
__exportStar(require("./index.loader"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
package/dist/shared/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,+CAA6B;AAC7B,+CAA6B;AAC7B,8CAA4B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,+CAA6B;AAC7B,+CAA6B;AAC7B,8CAA4B;AAC5B,iDAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.loader.js","sourceRoot":"","sources":["../../src/shared/index.loader.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EnumLiteral, EnumMap } from "../shared";
|
|
2
|
+
export declare const LY_ENUM_NAME: unique symbol;
|
|
3
|
+
/**
|
|
4
|
+
* Set name of classic enumeration
|
|
5
|
+
*
|
|
6
|
+
* @param {EnumMap} map - enum definition
|
|
7
|
+
* @param {string} name - basic name of enum without fqn
|
|
8
|
+
* */
|
|
9
|
+
export declare function $enumName(map: EnumMap, name: string): void;
|
|
10
|
+
/**
|
|
11
|
+
* Set name of literal enumeration
|
|
12
|
+
*
|
|
13
|
+
* @param {EnumLiteral} literals - literal readonly array
|
|
14
|
+
* @param {string} name - basic name of enum without fqn
|
|
15
|
+
* */
|
|
16
|
+
export declare function $enumName(literals: EnumLiteral, name: string): void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LY_ENUM_NAME = void 0;
|
|
4
|
+
exports.$enumName = $enumName;
|
|
5
|
+
exports.LY_ENUM_NAME = Symbol.for('leyyo/enum.name');
|
|
6
|
+
/**
|
|
7
|
+
* Set name of any enumeration
|
|
8
|
+
*
|
|
9
|
+
* @param {(EnumMap|EnumLiteral)} p1 - map or literal readonly array
|
|
10
|
+
* @param {string} name - basic name of enum without fqn
|
|
11
|
+
* */
|
|
12
|
+
function $enumName(p1, name) {
|
|
13
|
+
if (!p1 || typeof p1 !== 'object' || typeof name !== 'string') {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
p1[exports.LY_ENUM_NAME] = name;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=$enum-name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"$enum-name.js","sourceRoot":"","sources":["../../src/util/$enum-name.ts"],"names":[],"mappings":";;;AA0BA,8BAKC;AA7BY,QAAA,YAAY,GAAkB,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AAkBzE;;;;;KAKK;AACL,SAAgB,SAAS,CAAC,EAAuB,EAAE,IAAY;IAC3D,IAAI,CAAC,EAAE,IAAI,OAAO,EAAE,KAAK,QAAQ,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC5D,OAAO;IACX,CAAC;IACD,EAAE,CAAC,oBAAY,CAAC,GAAG,IAAI,CAAC;AAC5B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LoaderItem, LoaderLike } from "../shared";
|
|
2
|
+
export declare const LY_LOADER_NAME: unique symbol;
|
|
3
|
+
/**
|
|
4
|
+
* Set name of a loader
|
|
5
|
+
*
|
|
6
|
+
* @param {string} fqn - component name
|
|
7
|
+
* @param {...LoaderItem[]} items - items
|
|
8
|
+
* */
|
|
9
|
+
export declare function $loader(fqn: string, ...items: Array<LoaderItem>): LoaderLike;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LY_LOADER_NAME = void 0;
|
|
4
|
+
exports.$loader = $loader;
|
|
5
|
+
exports.LY_LOADER_NAME = Symbol.for('leyyo/loader.name');
|
|
6
|
+
/**
|
|
7
|
+
* Set name of a loader
|
|
8
|
+
*
|
|
9
|
+
* @param {string} fqn - component name
|
|
10
|
+
* @param {...LoaderItem[]} items - items
|
|
11
|
+
* */
|
|
12
|
+
function $loader(fqn, ...items) {
|
|
13
|
+
const loader = { fqn, items };
|
|
14
|
+
loader[exports.LY_LOADER_NAME] = fqn;
|
|
15
|
+
return loader;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=$loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"$loader.js","sourceRoot":"","sources":["../../src/util/$loader.ts"],"names":[],"mappings":";;;AAUA,0BAIC;AAZY,QAAA,cAAc,GAAkB,MAAM,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;AAE7E;;;;;KAKK;AACL,SAAgB,OAAO,CAAC,GAAW,EAAE,GAAG,KAAwB;IAC5D,MAAM,MAAM,GAAe,EAAC,GAAG,EAAE,KAAK,EAAC,CAAA;IACvC,MAAM,CAAC,sBAAc,CAAC,GAAG,GAAG,CAAC;IAC7B,OAAO,MAAM,CAAC;AAClB,CAAC"}
|
package/dist/util/index.d.ts
CHANGED
package/dist/util/index.js
CHANGED
|
@@ -14,8 +14,11 @@ 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
|
+
__exportStar(require("./$enum-name"), exports);
|
|
18
|
+
__exportStar(require("./$loader"), exports);
|
|
17
19
|
__exportStar(require("./delay"), exports);
|
|
18
20
|
__exportStar(require("./empty.fn"), exports);
|
|
21
|
+
__exportStar(require("./jitter-interval"), exports);
|
|
19
22
|
__exportStar(require("./one-or-more"), exports);
|
|
20
23
|
__exportStar(require("./secure-json"), exports);
|
|
21
24
|
__exportStar(require("./secure-clone"), exports);
|
package/dist/util/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/util/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,6CAA2B;AAC3B,gDAA8B;AAC9B,gDAA8B;AAC9B,iDAA+B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/util/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,4CAA0B;AAE1B,0CAAwB;AACxB,6CAA2B;AAC3B,oDAAkC;AAClC,gDAA8B;AAC9B,gDAA8B;AAC9B,iDAA+B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generate next delay time with exponential & randomized manner
|
|
3
|
+
*
|
|
4
|
+
* @param {number} tryCount - try count
|
|
5
|
+
* @param {number} baseDelay - starting delay interval
|
|
6
|
+
* @param {number} maxDelay - maximum delay interval
|
|
7
|
+
* @param {number} maxTryCount - max try count, if `tryCount` excess it, it returns undefined
|
|
8
|
+
* @return {number} - next interval time if (maxTryCount && `tryCount` >= `maxTryCount`)
|
|
9
|
+
* */
|
|
10
|
+
export declare function jitterInterval(tryCount: number, baseDelay: number, maxDelay: number, maxTryCount?: number): number;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.jitterInterval = jitterInterval;
|
|
4
|
+
/**
|
|
5
|
+
* Generate next delay time with exponential & randomized manner
|
|
6
|
+
*
|
|
7
|
+
* @param {number} tryCount - try count
|
|
8
|
+
* @param {number} baseDelay - starting delay interval
|
|
9
|
+
* @param {number} maxDelay - maximum delay interval
|
|
10
|
+
* @param {number} maxTryCount - max try count, if `tryCount` excess it, it returns undefined
|
|
11
|
+
* @return {number} - next interval time if (maxTryCount && `tryCount` >= `maxTryCount`)
|
|
12
|
+
* */
|
|
13
|
+
function jitterInterval(tryCount, baseDelay, maxDelay, maxTryCount) {
|
|
14
|
+
if ([tryCount, baseDelay, maxDelay].some(v => !isValid(v))) {
|
|
15
|
+
return undefined;
|
|
16
|
+
}
|
|
17
|
+
if (isValid(maxTryCount) && tryCount >= maxTryCount) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
const exp = Math.min(baseDelay * Math.pow(2, tryCount), maxDelay);
|
|
21
|
+
const result = Math.floor(exp / 2 + Math.random() * (exp / 2));
|
|
22
|
+
return Number.isSafeInteger(result) ? result : undefined;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Check value is expected interval value
|
|
26
|
+
*
|
|
27
|
+
* @param {any} value - given value, possible number
|
|
28
|
+
* @return {boolean} - is it expected?
|
|
29
|
+
* */
|
|
30
|
+
function isValid(value) {
|
|
31
|
+
return typeof value === 'number' && value > 0 && Number.isInteger(value) && Number.isSafeInteger(value);
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=jitter-interval.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jitter-interval.js","sourceRoot":"","sources":["../../src/util/jitter-interval.ts"],"names":[],"mappings":";;AASA,wCAUC;AAnBD;;;;;;;;KAQK;AACL,SAAgB,cAAc,CAAC,QAAgB,EAAE,SAAiB,EAAE,QAAgB,EAAE,WAAoB;IACtG,IAAI,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACzD,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,IAAI,OAAO,CAAC,WAAW,CAAC,IAAI,QAAQ,IAAI,WAAW,EAAE,CAAC;QAClD,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,SAAS,GAAG,SAAA,CAAC,EAAI,QAAQ,CAAA,EAAE,QAAQ,CAAC,CAAC;IAC1D,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;IAC/D,OAAO,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AAC7D,CAAC;AAED;;;;;KAKK;AACL,SAAS,OAAO,CAAC,KAAc;IAC3B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,GAAG,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AAC5G,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HttpErrorMap = void 0;
|
|
4
|
-
const items_1 = require("./items");
|
|
5
|
-
// noinspection JSUnusedGlobalSymbols
|
|
6
|
-
/**
|
|
7
|
-
* Http error map to use easy
|
|
8
|
-
* */
|
|
9
|
-
exports.HttpErrorMap = {
|
|
10
|
-
400: items_1.BadRequestError,
|
|
11
|
-
401: items_1.UnauthorizedError,
|
|
12
|
-
402: items_1.PaymentRequiredError,
|
|
13
|
-
403: items_1.ForbiddenError,
|
|
14
|
-
404: items_1.NotFoundError,
|
|
15
|
-
405: items_1.MethodNotAllowedError,
|
|
16
|
-
406: items_1.NotAcceptableError,
|
|
17
|
-
407: items_1.ProxyAuthenticationRequiredError,
|
|
18
|
-
408: items_1.RequestTimeoutError,
|
|
19
|
-
409: items_1.ConflictError,
|
|
20
|
-
410: items_1.GoneError,
|
|
21
|
-
411: items_1.LengthRequiredError,
|
|
22
|
-
412: items_1.PreconditionFailedError,
|
|
23
|
-
413: items_1.ContentTooLargeError,
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=http-error.map.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"http-error.map.js","sourceRoot":"","sources":["../../src/error/http-error.map.ts"],"names":[],"mappings":";;;AACA,mCASiB;AAEjB,qCAAqC;AACrC;;KAEK;AACQ,QAAA,YAAY,GAAyC;IAC9D,GAAG,EAAE,uBAAe;IACpB,GAAG,EAAE,yBAAiB;IACtB,GAAG,EAAE,4BAAoB;IACzB,GAAG,EAAE,sBAAc;IACnB,GAAG,EAAE,qBAAa;IAClB,GAAG,EAAE,6BAAqB;IAC1B,GAAG,EAAE,0BAAkB;IACvB,GAAG,EAAE,wCAAgC;IACrC,GAAG,EAAE,2BAAmB;IACxB,GAAG,EAAE,qBAAa;IAClB,GAAG,EAAE,iBAAS;IACd,GAAG,EAAE,2BAAmB;IACxB,GAAG,EAAE,+BAAuB;IAC5B,GAAG,EAAE,4BAAoB;CAC5B,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { HttpError } from "./http.error";
|
|
2
|
-
import type { Opt } from "../../opt";
|
|
3
|
-
/**
|
|
4
|
-
* Http 400 Bad Request
|
|
5
|
-
*
|
|
6
|
-
* The server cannot or will not process the request due to an apparent client error (e.g., malformed request syntax, size too large, invalid request message framing, or deceptive request routing).
|
|
7
|
-
* */
|
|
8
|
-
export declare class BadRequestError 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.BadRequestError = void 0;
|
|
4
|
-
const http_error_1 = require("./http.error");
|
|
5
|
-
/**
|
|
6
|
-
* Http 400 Bad Request
|
|
7
|
-
*
|
|
8
|
-
* The server cannot or will not process the request due to an apparent client error (e.g., malformed request syntax, size too large, invalid request message framing, or deceptive request routing).
|
|
9
|
-
* */
|
|
10
|
-
class BadRequestError extends http_error_1.HttpError {
|
|
11
|
-
constructor(message, opt) {
|
|
12
|
-
super(message !== null && message !== void 0 ? message : 'Bad request error', 400, opt);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.BadRequestError = BadRequestError;
|
|
16
|
-
//# sourceMappingURL=bad-request.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bad-request.error.js","sourceRoot":"","sources":["../../../src/error/items/bad-request.error.ts"],"names":[],"mappings":";;;AAAA,6CAAuC;AAGvC;;;;KAIK;AACL,MAAa,eAAgB,SAAQ,sBAAS;IAC1C,YAAY,OAAgB,EAAE,GAAS;QACnC,KAAK,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,mBAAmB,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACpD,CAAC;CACJ;AAJD,0CAIC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { HttpError } from "./http.error";
|
|
2
|
-
import type { Opt } from "../../opt";
|
|
3
|
-
/**
|
|
4
|
-
* Http 409 Conflict
|
|
5
|
-
*
|
|
6
|
-
* Indicates that the request could not be processed because of conflict in the current state of the resource, such as an edit conflict between multiple simultaneous updates.
|
|
7
|
-
* */
|
|
8
|
-
export declare class ConflictError 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.ConflictError = void 0;
|
|
4
|
-
const http_error_1 = require("./http.error");
|
|
5
|
-
/**
|
|
6
|
-
* Http 409 Conflict
|
|
7
|
-
*
|
|
8
|
-
* Indicates that the request could not be processed because of conflict in the current state of the resource, such as an edit conflict between multiple simultaneous updates.
|
|
9
|
-
* */
|
|
10
|
-
class ConflictError extends http_error_1.HttpError {
|
|
11
|
-
constructor(message, opt) {
|
|
12
|
-
super(message !== null && message !== void 0 ? message : 'Conflict', 409, opt);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.ConflictError = ConflictError;
|
|
16
|
-
//# sourceMappingURL=conflict.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conflict.error.js","sourceRoot":"","sources":["../../../src/error/items/conflict.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,UAAU,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IAC3C,CAAC;CACJ;AAJD,sCAIC"}
|
|
@@ -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
|
-
}
|