@leyyo/common 1.0.8 → 1.0.10
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/assertion/assertion.common.d.ts +183 -0
- package/dist/assertion/assertion.common.js +663 -0
- package/dist/assertion/assertion.common.js.map +1 -0
- package/dist/assertion/index.d.ts +1 -1
- package/dist/assertion/index.js +1 -1
- package/dist/assertion/index.types.d.ts +661 -0
- package/dist/assertion/{index-types.js → index.types.js} +1 -1
- package/dist/assertion/index.types.js.map +1 -0
- package/dist/assets/.gitkeep +0 -0
- package/dist/config/config.common.d.ts +16 -0
- package/dist/config/config.common.js +81 -0
- package/dist/config/config.common.js.map +1 -0
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.js +18 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/index.types.d.ts +13 -0
- package/dist/{descriptor/index-types.js → config/index.types.js} +1 -1
- package/dist/config/index.types.js.map +1 -0
- package/dist/deploy/deploy.common.d.ts +29 -0
- package/dist/deploy/deploy.common.js +106 -0
- package/dist/deploy/deploy.common.js.map +1 -0
- package/dist/deploy/index.d.ts +1 -0
- package/dist/deploy/index.js +18 -0
- package/dist/deploy/index.js.map +1 -0
- package/dist/deploy/index.types.d.ts +25 -0
- package/dist/{developer/index-types.js → deploy/index.types.js} +1 -1
- package/dist/deploy/index.types.js.map +1 -0
- package/dist/descriptor/descriptor.common.d.ts +22 -0
- package/dist/descriptor/descriptor.common.js +117 -0
- package/dist/descriptor/descriptor.common.js.map +1 -0
- package/dist/descriptor/index.d.ts +1 -1
- package/dist/descriptor/index.js +1 -1
- package/dist/descriptor/index.types.d.ts +23 -0
- package/dist/{error/index-types.js → descriptor/index.types.js} +1 -1
- package/dist/descriptor/index.types.js.map +1 -0
- package/dist/developer/developer.common.d.ts +32 -0
- package/dist/developer/{common-developer.js → developer.common.js} +85 -106
- package/dist/developer/developer.common.js.map +1 -0
- package/dist/developer/index.d.ts +2 -1
- package/dist/developer/index.errors.d.ts +13 -0
- package/dist/developer/index.errors.js +24 -0
- package/dist/developer/index.errors.js.map +1 -0
- package/dist/developer/index.js +2 -1
- package/dist/developer/index.js.map +1 -1
- package/dist/developer/{index-types.d.ts → index.types.d.ts} +23 -15
- package/dist/developer/index.types.js +3 -0
- package/dist/developer/index.types.js.map +1 -0
- package/dist/error/{common-error.d.ts → error.common.d.ts} +10 -9
- package/dist/error/{common-error.js → error.common.js} +21 -16
- package/dist/error/error.common.js.map +1 -0
- package/dist/error/index.d.ts +1 -1
- package/dist/error/index.js +1 -1
- package/dist/error/{index-types.d.ts → index.types.d.ts} +5 -5
- package/dist/error/index.types.js +3 -0
- package/dist/error/index.types.js.map +1 -0
- package/dist/exception/{assertion-exception.d.ts → assertion.exception.d.ts} +1 -1
- package/dist/exception/{assertion-exception.js → assertion.exception.js} +1 -1
- package/dist/exception/assertion.exception.js.map +1 -0
- package/dist/exception/{caused-exception.d.ts → caused.exception.d.ts} +1 -1
- package/dist/exception/{caused-exception.js → caused.exception.js} +1 -1
- package/dist/exception/{caused-exception.js.map → caused.exception.js.map} +1 -1
- package/dist/exception/{developer-exception.d.ts → developer.exception.d.ts} +1 -1
- package/dist/exception/{developer-exception.js → developer.exception.js} +1 -1
- package/dist/exception/developer.exception.js.map +1 -0
- package/dist/exception/exception.d.ts +7 -11
- package/dist/exception/exception.js +17 -34
- package/dist/exception/exception.js.map +1 -1
- package/dist/exception/index.d.ts +6 -6
- package/dist/exception/index.js +6 -6
- package/dist/exception/{index-types.d.ts → index.types.d.ts} +1 -1
- package/dist/exception/index.types.js +3 -0
- package/dist/exception/index.types.js.map +1 -0
- package/dist/exception/{invalid-value-exception.d.ts → invalid-value.exception.d.ts} +1 -1
- package/dist/exception/{invalid-value-exception.js → invalid-value.exception.js} +1 -1
- package/dist/exception/invalid-value.exception.js.map +1 -0
- package/dist/exception/{multiple-exception.d.ts → multiple.exception.d.ts} +1 -1
- package/dist/exception/{multiple-exception.js → multiple.exception.js} +1 -1
- package/dist/exception/{multiple-exception.js.map → multiple.exception.js.map} +1 -1
- package/dist/fqn/fqn.common.d.ts +20 -0
- package/dist/fqn/{common-fqn.js → fqn.common.js} +27 -20
- package/dist/fqn/fqn.common.js.map +1 -0
- package/dist/fqn/index.d.ts +1 -1
- package/dist/fqn/index.js +1 -1
- package/dist/fqn/{index-types.d.ts → index.types.d.ts} +8 -8
- package/dist/fqn/index.types.js +3 -0
- package/dist/fqn/index.types.js.map +1 -0
- package/dist/hook/hook.common.d.ts +25 -0
- package/dist/hook/hook.common.js +95 -0
- package/dist/hook/hook.common.js.map +1 -0
- package/dist/hook/index.d.ts +1 -1
- package/dist/hook/index.js +1 -1
- package/dist/hook/{index-types.d.ts → index.types.d.ts} +7 -6
- package/dist/hook/index.types.js +3 -0
- package/dist/hook/index.types.js.map +1 -0
- package/dist/index.d.ts +24 -14
- package/dist/index.js +16 -5
- package/dist/index.js.map +1 -1
- package/dist/internal.d.ts +1 -3
- package/dist/internal.js +2 -4
- package/dist/internal.js.map +1 -1
- package/dist/is/index.d.ts +1 -1
- package/dist/is/index.js +1 -1
- package/dist/is/{index-types.d.ts → index.types.d.ts} +58 -7
- package/dist/is/index.types.js +3 -0
- package/dist/is/index.types.js.map +1 -0
- package/dist/is/{common-is.d.ts → is.common.d.ts} +22 -8
- package/dist/is/{common-is.js → is.common.js} +57 -16
- package/dist/is/is.common.js.map +1 -0
- package/dist/leyyo/index.d.ts +2 -2
- package/dist/leyyo/index.js +2 -2
- package/dist/leyyo/index.types.d.ts +41 -0
- package/dist/leyyo/index.types.js +3 -0
- package/dist/leyyo/index.types.js.map +1 -0
- package/dist/leyyo/{leyyo-common-hook.d.ts → leyyo-hook.common.d.ts} +1 -1
- package/dist/leyyo/leyyo-hook.common.js +18 -0
- package/dist/leyyo/leyyo-hook.common.js.map +1 -0
- package/dist/leyyo/leyyo.d.ts +38 -28
- package/dist/leyyo/leyyo.js +46 -31
- package/dist/leyyo/leyyo.js.map +1 -1
- package/dist/log/index.d.ts +2 -2
- package/dist/log/index.js +2 -2
- package/dist/log/{index-types.d.ts → index.types.d.ts} +24 -29
- package/dist/log/index.types.js +3 -0
- package/dist/log/index.types.js.map +1 -0
- package/dist/log/log.common.d.ts +15 -0
- package/dist/log/log.common.js +160 -0
- package/dist/log/log.common.js.map +1 -0
- package/dist/log/logger.instance.d.ts +26 -0
- package/dist/log/logger.instance.js +149 -0
- package/dist/log/logger.instance.js.map +1 -0
- package/dist/log/severity.d.ts +1 -1
- package/dist/log/severity.js +1 -1
- package/dist/log/severity.js.map +1 -1
- package/dist/mixin/index.d.ts +1 -0
- package/dist/mixin/index.js +18 -0
- package/dist/mixin/index.js.map +1 -0
- package/dist/mixin/index.types.d.ts +19 -0
- package/dist/mixin/index.types.js +3 -0
- package/dist/mixin/index.types.js.map +1 -0
- package/dist/mixin/mixin.common.d.ts +22 -0
- package/dist/mixin/mixin.common.js +165 -0
- package/dist/mixin/mixin.common.js.map +1 -0
- package/dist/name/index.d.ts +1 -0
- package/dist/name/index.js +18 -0
- package/dist/name/index.js.map +1 -0
- package/dist/name/index.types.d.ts +21 -0
- package/dist/name/index.types.js +3 -0
- package/dist/name/index.types.js.map +1 -0
- package/dist/name/name.common.d.ts +16 -0
- package/dist/name/name.common.js +82 -0
- package/dist/name/name.common.js.map +1 -0
- package/dist/repo/index.d.ts +1 -2
- package/dist/repo/index.js +1 -2
- package/dist/repo/index.js.map +1 -1
- package/dist/repo/{index-types.d.ts → index.types.d.ts} +36 -18
- package/dist/repo/index.types.js +3 -0
- package/dist/repo/index.types.js.map +1 -0
- package/dist/repo/repo.common.d.ts +47 -0
- package/dist/repo/repo.common.js +166 -0
- package/dist/repo/repo.common.js.map +1 -0
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/dist/shared/index.d.ts +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/{index-types.d.ts → index.types.d.ts} +48 -30
- package/dist/shared/{index-types.js → index.types.js} +2 -1
- package/dist/shared/index.types.js.map +1 -0
- package/dist/system/index.d.ts +1 -3
- package/dist/system/index.js +1 -3
- package/dist/system/index.js.map +1 -1
- package/dist/system/index.types.d.ts +6 -0
- package/dist/system/index.types.js +3 -0
- package/dist/system/index.types.js.map +1 -0
- package/dist/system/system.common.d.ts +11 -0
- package/dist/system/{common-system.js → system.common.js} +14 -15
- package/dist/system/system.common.js.map +1 -0
- package/dist/test/index.d.ts +2 -0
- package/dist/test/index.js +19 -0
- package/dist/test/index.js.map +1 -0
- package/dist/test/index.types.d.ts +9 -0
- package/dist/test/index.types.js +3 -0
- package/dist/test/index.types.js.map +1 -0
- package/dist/test/test.common.d.ts +14 -0
- package/dist/test/test.common.js +48 -0
- package/dist/test/test.common.js.map +1 -0
- package/dist/test/tested.d.ts +1 -0
- package/dist/test/tested.js +9 -0
- package/dist/test/tested.js.map +1 -0
- package/dist/to/index.d.ts +1 -1
- package/dist/to/index.js +1 -1
- package/dist/to/index.types.d.ts +72 -0
- package/dist/to/index.types.js +3 -0
- package/dist/to/index.types.js.map +1 -0
- package/dist/to/list.d.ts +10 -0
- package/dist/to/list.js +18 -0
- package/dist/to/list.js.map +1 -1
- package/dist/to/to.common.d.ts +73 -0
- package/dist/to/{common-to.js → to.common.js} +558 -385
- package/dist/to/to.common.js.map +1 -0
- package/dist/wrapper/index.d.ts +1 -1
- package/dist/wrapper/index.js +1 -1
- package/dist/wrapper/{index-types.d.ts → index.types.d.ts} +8 -8
- package/dist/wrapper/index.types.js +3 -0
- package/dist/wrapper/index.types.js.map +1 -0
- package/dist/wrapper/wrap.d.ts +3 -3
- package/dist/wrapper/wrapper.common.d.ts +26 -0
- package/dist/wrapper/{common-wrapper.js → wrapper.common.js} +15 -14
- package/dist/wrapper/wrapper.common.js.map +1 -0
- package/package.json +5 -2
- package/dist/assertion/common-assertion.d.ts +0 -54
- package/dist/assertion/common-assertion.js +0 -180
- package/dist/assertion/common-assertion.js.map +0 -1
- package/dist/assertion/index-types.d.ts +0 -465
- package/dist/assertion/index-types.js.map +0 -1
- package/dist/descriptor/common-descriptor.d.ts +0 -19
- package/dist/descriptor/common-descriptor.js +0 -92
- package/dist/descriptor/common-descriptor.js.map +0 -1
- package/dist/descriptor/index-types.d.ts +0 -21
- package/dist/descriptor/index-types.js.map +0 -1
- package/dist/developer/common-developer.d.ts +0 -29
- package/dist/developer/common-developer.js.map +0 -1
- package/dist/developer/index-types.js.map +0 -1
- package/dist/error/common-error.js.map +0 -1
- package/dist/error/index-types.js.map +0 -1
- package/dist/exception/assertion-exception.js.map +0 -1
- package/dist/exception/developer-exception.js.map +0 -1
- package/dist/exception/index-types.js +0 -3
- package/dist/exception/index-types.js.map +0 -1
- package/dist/exception/invalid-value-exception.js.map +0 -1
- package/dist/fqn/common-fqn.d.ts +0 -20
- package/dist/fqn/common-fqn.js.map +0 -1
- package/dist/fqn/index-types.js +0 -3
- package/dist/fqn/index-types.js.map +0 -1
- package/dist/hook/common-hook.d.ts +0 -32
- package/dist/hook/common-hook.js +0 -117
- package/dist/hook/common-hook.js.map +0 -1
- package/dist/hook/index-types.js +0 -3
- package/dist/hook/index-types.js.map +0 -1
- package/dist/is/common-is.js.map +0 -1
- package/dist/is/index-types.js +0 -3
- package/dist/is/index-types.js.map +0 -1
- package/dist/leyyo/index-types.d.ts +0 -31
- package/dist/leyyo/index-types.js +0 -3
- package/dist/leyyo/index-types.js.map +0 -1
- package/dist/leyyo/leyyo-common-hook.js +0 -18
- package/dist/leyyo/leyyo-common-hook.js.map +0 -1
- package/dist/log/common-log.d.ts +0 -14
- package/dist/log/common-log.js +0 -92
- package/dist/log/common-log.js.map +0 -1
- package/dist/log/index-types.js +0 -3
- package/dist/log/index-types.js.map +0 -1
- package/dist/log/logger-instance.d.ts +0 -31
- package/dist/log/logger-instance.js +0 -113
- package/dist/log/logger-instance.js.map +0 -1
- package/dist/repo/common-repo.d.ts +0 -44
- package/dist/repo/common-repo.js +0 -180
- package/dist/repo/common-repo.js.map +0 -1
- package/dist/repo/index-types.js +0 -3
- package/dist/repo/index-types.js.map +0 -1
- package/dist/repo/repo-type.d.ts +0 -8
- package/dist/repo/repo-type.js +0 -8
- package/dist/repo/repo-type.js.map +0 -1
- package/dist/shared/index-types.js.map +0 -1
- package/dist/system/common-system.d.ts +0 -10
- package/dist/system/common-system.js.map +0 -1
- package/dist/system/http-method.d.ts +0 -8
- package/dist/system/http-method.js +0 -8
- package/dist/system/http-method.js.map +0 -1
- package/dist/system/http-place.d.ts +0 -8
- package/dist/system/http-place.js +0 -8
- package/dist/system/http-place.js.map +0 -1
- package/dist/system/index-types.d.ts +0 -6
- package/dist/system/index-types.js +0 -3
- package/dist/system/index-types.js.map +0 -1
- package/dist/to/common-to.d.ts +0 -45
- package/dist/to/common-to.js.map +0 -1
- package/dist/to/index-types.d.ts +0 -40
- package/dist/to/index-types.js +0 -3
- package/dist/to/index-types.js.map +0 -1
- package/dist/wrapper/common-wrapper.d.ts +0 -26
- package/dist/wrapper/common-wrapper.js.map +0 -1
- package/dist/wrapper/index-types.js +0 -3
- package/dist/wrapper/index-types.js.map +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Arr, ClassLike,
|
|
1
|
+
import type { Arr, ClassLike, Fnc, InitLike, ShiftMain, ShiftSecure } from "../shared";
|
|
2
2
|
/**
|
|
3
3
|
* Hook interface, it collects all jobs and fire them when callback is defined
|
|
4
4
|
* */
|
|
5
|
-
export interface
|
|
5
|
+
export interface HookCommonLike extends ShiftSecure<HookCommonSecure> {
|
|
6
6
|
/**
|
|
7
7
|
* Attach a callback
|
|
8
8
|
*
|
|
9
9
|
* @param {symbol} channel
|
|
10
|
-
* @param {
|
|
10
|
+
* @param {Fnc} fn
|
|
11
11
|
*
|
|
12
12
|
* Notes:
|
|
13
13
|
* - channel should be regular string
|
|
14
14
|
* - After attached, it should call all waiting calls in the queue
|
|
15
15
|
* */
|
|
16
|
-
attachCallback(channel: symbol, fn:
|
|
16
|
+
attachCallback(channel: symbol, fn: Fnc): void;
|
|
17
17
|
/**
|
|
18
18
|
* Add a call into queue, which to be executed by appropriate callback
|
|
19
19
|
*
|
|
@@ -53,10 +53,11 @@ export interface CommonHookLike extends ShiftSecure<CommonHookSecure> {
|
|
|
53
53
|
/**
|
|
54
54
|
* Secure hook interface
|
|
55
55
|
* */
|
|
56
|
-
export
|
|
56
|
+
export interface HookCommonSecure extends ShiftMain<HookCommonLike>, InitLike {
|
|
57
|
+
}
|
|
57
58
|
export interface HookAttachedCallback {
|
|
58
59
|
initialization?: true;
|
|
59
|
-
fn:
|
|
60
|
+
fn: Fnc;
|
|
60
61
|
}
|
|
61
62
|
export interface $HookDefinedProvider extends HookDefinedProvider {
|
|
62
63
|
producer: ClassLike;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.types.js","sourceRoot":"","sources":["../../src/hook/index.types.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { LeyyoLike } from "./leyyo";
|
|
2
|
-
export declare const leyyo: LeyyoLike;
|
|
1
|
+
import type { LeyyoLike } from "./leyyo";
|
|
3
2
|
export * from './assertion';
|
|
4
3
|
export * from './developer';
|
|
5
4
|
export * from './error';
|
|
@@ -15,15 +14,26 @@ export * from './system';
|
|
|
15
14
|
export * from './to';
|
|
16
15
|
export * from './wrapper';
|
|
17
16
|
export * from './descriptor';
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export declare const
|
|
24
|
-
export declare const $
|
|
25
|
-
export declare const $
|
|
26
|
-
export declare const $
|
|
27
|
-
export declare const $
|
|
28
|
-
export declare const $
|
|
29
|
-
export declare const $
|
|
17
|
+
export * from './test';
|
|
18
|
+
export * from './deploy';
|
|
19
|
+
export * from './name';
|
|
20
|
+
export * from './config';
|
|
21
|
+
export * from './mixin';
|
|
22
|
+
export declare const leyyo: LeyyoLike;
|
|
23
|
+
export declare const $descriptor: import("./descriptor").DescriptorCommonLike;
|
|
24
|
+
export declare const $is: import("./is").IsCommonLike;
|
|
25
|
+
export declare const $hook: import("./hook").HookCommonLike;
|
|
26
|
+
export declare const $assert: import("./assertion").AssertionCommonLike;
|
|
27
|
+
export declare const $repo: import("./repo").RepoCommonLike;
|
|
28
|
+
export declare const $to: import("./to").ToCommonLike;
|
|
29
|
+
export declare const $sys: import("./system").SystemCommonLike;
|
|
30
|
+
export declare const $dev: import("./developer").DeveloperCommonLike;
|
|
31
|
+
export declare const $fqn: import("./fqn").FqnCommonLike;
|
|
32
|
+
export declare const $log: import("./log").LogCommonLike;
|
|
33
|
+
export declare const $err: import("./error").ErrorCommonLike;
|
|
34
|
+
export declare const $wrapper: import("./wrapper").WrapperCommonLike;
|
|
35
|
+
export declare const $test: import("./test").TestCommonLike;
|
|
36
|
+
export declare const $deploy: import("./deploy").DeployCommonLike;
|
|
37
|
+
export declare const $name: import("./name").NameCommonLike;
|
|
38
|
+
export declare const $config: import("./config").ConfigCommonLike;
|
|
39
|
+
export declare const $mixin: import("./mixin").MixinCommonLike;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// noinspection JSUnusedGlobalSymbols
|
|
2
3
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
4
|
if (k2 === undefined) k2 = k;
|
|
4
5
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -14,18 +15,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
15
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
16
|
};
|
|
16
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.$
|
|
18
|
-
// noinspection JSUnusedGlobalSymbols
|
|
18
|
+
exports.$mixin = exports.$config = exports.$name = exports.$deploy = exports.$test = exports.$wrapper = exports.$err = exports.$log = exports.$fqn = exports.$dev = exports.$sys = exports.$to = exports.$repo = exports.$assert = exports.$hook = exports.$is = exports.$descriptor = exports.leyyo = void 0;
|
|
19
19
|
if (global === null || global === void 0 ? void 0 : global.leyyo_is_testing) {
|
|
20
|
-
['log', 'warn', 'info', 'debug', 'trace', 'error'
|
|
20
|
+
['log', 'warn', 'info', 'debug', 'trace', 'error'].forEach(name => {
|
|
21
21
|
global.console[name] = () => {
|
|
22
22
|
};
|
|
23
23
|
console[name] = () => {
|
|
24
24
|
};
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
+
console['fatal'] = (...args) => console.error(...args);
|
|
27
28
|
const leyyo_1 = require("./leyyo/leyyo");
|
|
28
|
-
exports.leyyo = new leyyo_1.Leyyo();
|
|
29
29
|
__exportStar(require("./assertion"), exports);
|
|
30
30
|
__exportStar(require("./developer"), exports);
|
|
31
31
|
__exportStar(require("./error"), exports);
|
|
@@ -41,6 +41,13 @@ __exportStar(require("./system"), exports);
|
|
|
41
41
|
__exportStar(require("./to"), exports);
|
|
42
42
|
__exportStar(require("./wrapper"), exports);
|
|
43
43
|
__exportStar(require("./descriptor"), exports);
|
|
44
|
+
__exportStar(require("./test"), exports);
|
|
45
|
+
__exportStar(require("./deploy"), exports);
|
|
46
|
+
__exportStar(require("./name"), exports);
|
|
47
|
+
__exportStar(require("./config"), exports);
|
|
48
|
+
__exportStar(require("./mixin"), exports);
|
|
49
|
+
exports.leyyo = new leyyo_1.Leyyo();
|
|
50
|
+
exports.$descriptor = exports.leyyo.descriptor;
|
|
44
51
|
exports.$is = exports.leyyo.is;
|
|
45
52
|
exports.$hook = exports.leyyo.hook;
|
|
46
53
|
exports.$assert = exports.leyyo.assertion;
|
|
@@ -51,6 +58,10 @@ exports.$dev = exports.leyyo.dev;
|
|
|
51
58
|
exports.$fqn = exports.leyyo.fqn;
|
|
52
59
|
exports.$log = exports.leyyo.log;
|
|
53
60
|
exports.$err = exports.leyyo.error;
|
|
54
|
-
exports.$descriptor = exports.leyyo.descriptor;
|
|
55
61
|
exports.$wrapper = exports.leyyo.wrapper;
|
|
62
|
+
exports.$test = exports.leyyo.test;
|
|
63
|
+
exports.$deploy = exports.leyyo.deploy;
|
|
64
|
+
exports.$name = exports.leyyo.name;
|
|
65
|
+
exports.$config = exports.leyyo.config;
|
|
66
|
+
exports.$mixin = exports.leyyo.mixin;
|
|
56
67
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,qCAAqC;;;;;;;;;;;;;;;;;AAErC,IAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,gBAAgB,EAAE,CAAC;IAC3B,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QAC9D,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,GAAS,EAAE;QAClC,CAAC,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,GAAG,GAAS,EAAE;QAC3B,CAAC,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC;AACD,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,IAAoB,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;AAEvE,yCAAoC;AAGpC,8CAA4B;AAC5B,8CAA4B;AAC5B,0CAAwB;AACxB,8CAA4B;AAC5B,wCAAsB;AACtB,yCAAuB;AACvB,uCAAqB;AACrB,0CAAwB;AACxB,wCAAsB;AACtB,2CAAyB;AACzB,yCAAuB;AACvB,2CAAyB;AACzB,uCAAqB;AACrB,4CAA0B;AAC1B,+CAA6B;AAC7B,yCAAuB;AACvB,2CAAyB;AACzB,yCAAuB;AACvB,2CAAyB;AACzB,0CAAwB;AAEX,QAAA,KAAK,GAAc,IAAI,aAAK,EAAE,CAAC;AAC/B,QAAA,WAAW,GAAG,aAAK,CAAC,UAAU,CAAC;AAC/B,QAAA,GAAG,GAAG,aAAK,CAAC,EAAE,CAAC;AACf,QAAA,KAAK,GAAG,aAAK,CAAC,IAAI,CAAC;AACnB,QAAA,OAAO,GAAG,aAAK,CAAC,SAAS,CAAC;AAC1B,QAAA,KAAK,GAAG,aAAK,CAAC,IAAI,CAAC;AACnB,QAAA,GAAG,GAAG,aAAK,CAAC,EAAE,CAAC;AACf,QAAA,IAAI,GAAG,aAAK,CAAC,MAAM,CAAC;AACpB,QAAA,IAAI,GAAG,aAAK,CAAC,GAAG,CAAC;AACjB,QAAA,IAAI,GAAG,aAAK,CAAC,GAAG,CAAC;AACjB,QAAA,IAAI,GAAG,aAAK,CAAC,GAAG,CAAC;AACjB,QAAA,IAAI,GAAG,aAAK,CAAC,KAAK,CAAC;AACnB,QAAA,QAAQ,GAAG,aAAK,CAAC,OAAO,CAAC;AACzB,QAAA,KAAK,GAAG,aAAK,CAAC,IAAI,CAAC;AACnB,QAAA,OAAO,GAAG,aAAK,CAAC,MAAM,CAAC;AACvB,QAAA,KAAK,GAAG,aAAK,CAAC,IAAI,CAAC;AACnB,QAAA,OAAO,GAAG,aAAK,CAAC,MAAM,CAAC;AACvB,QAAA,MAAM,GAAG,aAAK,CAAC,KAAK,CAAC"}
|
package/dist/internal.d.ts
CHANGED
package/dist/internal.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports
|
|
4
|
-
exports.
|
|
5
|
-
exports.$$FuncSign = Symbol.for(`[${exports.FQN_PCK}#sign]`);
|
|
6
|
-
exports.$$FqnPending = Symbol.for(`[${exports.FQN_PCK}#fqn.pending]`);
|
|
3
|
+
exports.FQN = void 0;
|
|
4
|
+
exports.FQN = 'leyyo.common';
|
|
7
5
|
//# sourceMappingURL=internal.js.map
|
package/dist/internal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":";;;AAAa,QAAA,
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG,cAAc,CAAC"}
|
package/dist/is/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './index
|
|
1
|
+
export * from './index.types';
|
package/dist/is/index.js
CHANGED
|
@@ -14,5 +14,5 @@ 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("./index
|
|
17
|
+
__exportStar(require("./index.types"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BasicType, EnumLiteral, EnumMap, InitLike, ShiftMain, ShiftSecure } from "../shared";
|
|
1
|
+
import type { BasicType, ClassLike, EnumLiteral, EnumMap, InitLike, ShiftMain, ShiftSecure } from "../shared";
|
|
2
2
|
/**
|
|
3
3
|
* Basic is commands to easy use
|
|
4
4
|
* */
|
|
5
|
-
export interface
|
|
5
|
+
export interface IsCommonLike extends ShiftSecure<IsCommonSecure> {
|
|
6
6
|
/**
|
|
7
7
|
* Checks value is empty or not?
|
|
8
8
|
* Empty means: `undefined`, `null` or `empty string` after trimming
|
|
@@ -66,12 +66,12 @@ export interface CommonIsLike extends ShiftSecure<CommonIsSecure> {
|
|
|
66
66
|
* */
|
|
67
67
|
anotherObject(value: any): boolean;
|
|
68
68
|
/**
|
|
69
|
-
* Checks value is array or not?
|
|
69
|
+
* Checks value is array like (array, Set or List) or not?
|
|
70
70
|
*
|
|
71
71
|
* @param {any} value
|
|
72
72
|
* @returns {boolean}
|
|
73
73
|
* */
|
|
74
|
-
|
|
74
|
+
arrayLike(value: any): boolean;
|
|
75
75
|
/**
|
|
76
76
|
* Checks value is function or not?
|
|
77
77
|
*
|
|
@@ -95,6 +95,24 @@ export interface CommonIsLike extends ShiftSecure<CommonIsSecure> {
|
|
|
95
95
|
* Note: NaN and infinite values are not evaluated as a number
|
|
96
96
|
* */
|
|
97
97
|
number(value: any): boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Checks value is positive number or not?
|
|
100
|
+
*
|
|
101
|
+
* @param {any} value
|
|
102
|
+
* @returns {boolean}
|
|
103
|
+
*
|
|
104
|
+
* Note: NaN and infinite values are not evaluated as a number
|
|
105
|
+
* */
|
|
106
|
+
positiveNumber(value: any): boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Checks value is non-negative number or not?
|
|
109
|
+
*
|
|
110
|
+
* @param {any} value
|
|
111
|
+
* @returns {boolean}
|
|
112
|
+
*
|
|
113
|
+
* Note: NaN and infinite values are not evaluated as a number
|
|
114
|
+
* */
|
|
115
|
+
nonNegativeNumber(value: any): boolean;
|
|
98
116
|
/**
|
|
99
117
|
* Checks value is integer or not?
|
|
100
118
|
*
|
|
@@ -114,6 +132,24 @@ export interface CommonIsLike extends ShiftSecure<CommonIsSecure> {
|
|
|
114
132
|
* Note: NaN and infinite values are not evaluated as a number
|
|
115
133
|
* */
|
|
116
134
|
safeInteger(value: any): boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Checks value is positive integer or not?
|
|
137
|
+
*
|
|
138
|
+
* @param {any} value
|
|
139
|
+
* @returns {boolean}
|
|
140
|
+
*
|
|
141
|
+
* Note: NaN and infinite values are not evaluated as a number
|
|
142
|
+
* */
|
|
143
|
+
positiveInteger(value: any): boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Checks value is non-negative integer or not?
|
|
146
|
+
*
|
|
147
|
+
* @param {any} value
|
|
148
|
+
* @returns {boolean}
|
|
149
|
+
*
|
|
150
|
+
* Note: NaN and infinite values are not evaluated as a number
|
|
151
|
+
* */
|
|
152
|
+
nonNegativeInteger(value: any): boolean;
|
|
117
153
|
/**
|
|
118
154
|
* Checks value is string or not?
|
|
119
155
|
* Empty string or space values are also string, if you want different behaviour, please check {@link #text}
|
|
@@ -131,13 +167,20 @@ export interface CommonIsLike extends ShiftSecure<CommonIsSecure> {
|
|
|
131
167
|
* */
|
|
132
168
|
text(value: any): boolean;
|
|
133
169
|
/**
|
|
134
|
-
* Checks value is
|
|
135
|
-
* Possible class means: object as instance, string as function name, or function
|
|
170
|
+
* Checks value is class?
|
|
136
171
|
*
|
|
137
172
|
* @param {any} value
|
|
138
173
|
* @returns {boolean}
|
|
139
174
|
* */
|
|
140
175
|
clazz(value: any): boolean;
|
|
176
|
+
/**
|
|
177
|
+
* Checks value is possible func?
|
|
178
|
+
* Possible class means: object as instance, string as function name, or function
|
|
179
|
+
*
|
|
180
|
+
* @param {any} value
|
|
181
|
+
* @returns {boolean}
|
|
182
|
+
* */
|
|
183
|
+
possibleFunc(value: any): boolean;
|
|
141
184
|
/**
|
|
142
185
|
* Checks value is an enum value?
|
|
143
186
|
*
|
|
@@ -154,6 +197,14 @@ export interface CommonIsLike extends ShiftSecure<CommonIsSecure> {
|
|
|
154
197
|
* @returns {boolean}
|
|
155
198
|
* */
|
|
156
199
|
literal(value: unknown, items: EnumLiteral): boolean;
|
|
200
|
+
/**
|
|
201
|
+
* Checks value is an instance of class?
|
|
202
|
+
*
|
|
203
|
+
* @param {any} value
|
|
204
|
+
* @param {ClassLike} clazz
|
|
205
|
+
* @returns {boolean}
|
|
206
|
+
* */
|
|
207
|
+
instanceOf<T>(value: unknown, clazz: ClassLike<T>): boolean;
|
|
157
208
|
/**
|
|
158
209
|
* Checks value is boolean?
|
|
159
210
|
*
|
|
@@ -186,4 +237,4 @@ export interface CommonIsLike extends ShiftSecure<CommonIsSecure> {
|
|
|
186
237
|
* */
|
|
187
238
|
false(value: any): boolean;
|
|
188
239
|
}
|
|
189
|
-
export type
|
|
240
|
+
export type IsCommonSecure = ShiftMain<IsCommonLike> & InitLike;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.types.js","sourceRoot":"","sources":["../../src/is/index.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { LeyyoLike } from "../leyyo";
|
|
3
|
-
import { BasicType, EnumLiteral, EnumMap } from "../shared";
|
|
1
|
+
import type { IsCommonLike, IsCommonSecure } from "./index.types";
|
|
2
|
+
import type { LeyyoLike } from "../leyyo";
|
|
3
|
+
import type { BasicType, ClassLike, EnumLiteral, EnumMap } from "../shared";
|
|
4
4
|
/** @inheritDoc */
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class IsCommon implements IsCommonLike, IsCommonSecure {
|
|
6
|
+
private lyy;
|
|
6
7
|
private readonly _EMPTY;
|
|
8
|
+
constructor(lyy: LeyyoLike);
|
|
7
9
|
/** @inheritDoc */
|
|
8
10
|
empty(value: any): boolean;
|
|
9
11
|
/** @inheritDoc */
|
|
@@ -21,7 +23,7 @@ export declare class CommonIs implements CommonIsLike, CommonIsSecure {
|
|
|
21
23
|
/** @inheritDoc */
|
|
22
24
|
anotherObject(value: any): boolean;
|
|
23
25
|
/** @inheritDoc */
|
|
24
|
-
|
|
26
|
+
arrayLike(value: any): boolean;
|
|
25
27
|
/** @inheritDoc */
|
|
26
28
|
func(value: any): boolean;
|
|
27
29
|
/** @inheritDoc */
|
|
@@ -29,29 +31,41 @@ export declare class CommonIs implements CommonIsLike, CommonIsSecure {
|
|
|
29
31
|
/** @inheritDoc */
|
|
30
32
|
number(value: any): boolean;
|
|
31
33
|
/** @inheritDoc */
|
|
34
|
+
positiveNumber(value: any): boolean;
|
|
35
|
+
/** @inheritDoc */
|
|
36
|
+
nonNegativeNumber(value: any): boolean;
|
|
37
|
+
/** @inheritDoc */
|
|
32
38
|
integer(value: any): boolean;
|
|
33
39
|
/** @inheritDoc */
|
|
34
40
|
safeInteger(value: any): boolean;
|
|
35
41
|
/** @inheritDoc */
|
|
42
|
+
positiveInteger(value: any): boolean;
|
|
43
|
+
/** @inheritDoc */
|
|
44
|
+
nonNegativeInteger(value: any): boolean;
|
|
45
|
+
/** @inheritDoc */
|
|
36
46
|
string(value: any): boolean;
|
|
37
47
|
/** @inheritDoc */
|
|
38
48
|
text(value: any): boolean;
|
|
39
49
|
/** @inheritDoc */
|
|
40
50
|
clazz(value: any): boolean;
|
|
41
51
|
/** @inheritDoc */
|
|
52
|
+
possibleFunc(value: any): boolean;
|
|
53
|
+
/** @inheritDoc */
|
|
42
54
|
enumeration(value: unknown, map: EnumMap): boolean;
|
|
43
55
|
/** @inheritDoc */
|
|
44
56
|
literal(value: unknown, items: EnumLiteral): boolean;
|
|
45
57
|
/** @inheritDoc */
|
|
58
|
+
instanceOf<T>(value: unknown, clazz: ClassLike<T>): boolean;
|
|
59
|
+
/** @inheritDoc */
|
|
46
60
|
boolean(value: any): boolean;
|
|
47
61
|
/** @inheritDoc */
|
|
48
62
|
true(value: any): boolean;
|
|
49
63
|
/** @inheritDoc */
|
|
50
64
|
false(value: any): boolean;
|
|
51
65
|
/** @inheritDoc */
|
|
52
|
-
$init(
|
|
66
|
+
$init(): void;
|
|
53
67
|
/** @inheritDoc */
|
|
54
|
-
get $back():
|
|
68
|
+
get $back(): IsCommonLike;
|
|
55
69
|
/** @inheritDoc */
|
|
56
|
-
get $secure():
|
|
70
|
+
get $secure(): IsCommonSecure;
|
|
57
71
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.IsCommon = void 0;
|
|
4
4
|
const internal_1 = require("../internal");
|
|
5
5
|
const to_1 = require("../to");
|
|
6
6
|
// noinspection JSUnusedGlobalSymbols, JSUnusedLocalSymbols
|
|
7
7
|
/** @inheritDoc */
|
|
8
|
-
class
|
|
9
|
-
constructor() {
|
|
8
|
+
class IsCommon {
|
|
9
|
+
constructor(lyy) {
|
|
10
|
+
this.lyy = lyy;
|
|
10
11
|
this._EMPTY = [null, undefined];
|
|
11
|
-
// endregion secure
|
|
12
12
|
}
|
|
13
13
|
// region is
|
|
14
14
|
/** @inheritDoc */
|
|
@@ -44,8 +44,8 @@ class CommonIs {
|
|
|
44
44
|
return !this._EMPTY.includes(value) && typeof value === 'object' && value.constructor !== Object;
|
|
45
45
|
}
|
|
46
46
|
/** @inheritDoc */
|
|
47
|
-
|
|
48
|
-
return !this._EMPTY.includes(value) && Array.isArray(value);
|
|
47
|
+
arrayLike(value) {
|
|
48
|
+
return !this._EMPTY.includes(value) && (Array.isArray(value) || value instanceof Set || value instanceof Array);
|
|
49
49
|
}
|
|
50
50
|
/** @inheritDoc */
|
|
51
51
|
func(value) {
|
|
@@ -60,12 +60,28 @@ class CommonIs {
|
|
|
60
60
|
return (typeof value === 'number') && !isNaN(value) && isFinite(value);
|
|
61
61
|
}
|
|
62
62
|
/** @inheritDoc */
|
|
63
|
+
positiveNumber(value) {
|
|
64
|
+
return (typeof value === 'number') && !isNaN(value) && isFinite(value) && value > 0;
|
|
65
|
+
}
|
|
66
|
+
/** @inheritDoc */
|
|
67
|
+
nonNegativeNumber(value) {
|
|
68
|
+
return (typeof value === 'number') && !isNaN(value) && isFinite(value) && value >= 0;
|
|
69
|
+
}
|
|
70
|
+
/** @inheritDoc */
|
|
63
71
|
integer(value) {
|
|
64
|
-
return
|
|
72
|
+
return (typeof value === 'number') && !isNaN(value) && isFinite(value) && Number.isInteger(value);
|
|
65
73
|
}
|
|
66
74
|
/** @inheritDoc */
|
|
67
75
|
safeInteger(value) {
|
|
68
|
-
return
|
|
76
|
+
return (typeof value === 'number') && !isNaN(value) && isFinite(value) && Number.isSafeInteger(value);
|
|
77
|
+
}
|
|
78
|
+
/** @inheritDoc */
|
|
79
|
+
positiveInteger(value) {
|
|
80
|
+
return (typeof value === 'number') && !isNaN(value) && isFinite(value) && value > 0;
|
|
81
|
+
}
|
|
82
|
+
/** @inheritDoc */
|
|
83
|
+
nonNegativeInteger(value) {
|
|
84
|
+
return (typeof value === 'number') && !isNaN(value) && isFinite(value) && value >= 0;
|
|
69
85
|
}
|
|
70
86
|
/** @inheritDoc */
|
|
71
87
|
string(value) {
|
|
@@ -73,11 +89,29 @@ class CommonIs {
|
|
|
73
89
|
}
|
|
74
90
|
/** @inheritDoc */
|
|
75
91
|
text(value) {
|
|
76
|
-
return
|
|
92
|
+
return typeof value === 'string' && value.trim() !== '';
|
|
77
93
|
}
|
|
78
94
|
/** @inheritDoc */
|
|
79
95
|
clazz(value) {
|
|
80
|
-
|
|
96
|
+
if (typeof value !== 'function') {
|
|
97
|
+
return false;
|
|
98
|
+
}
|
|
99
|
+
try {
|
|
100
|
+
return Function.prototype.toString.call(value).startsWith('class');
|
|
101
|
+
}
|
|
102
|
+
catch (e) {
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
/** @inheritDoc */
|
|
107
|
+
possibleFunc(value) {
|
|
108
|
+
switch (typeof value) {
|
|
109
|
+
case "function":
|
|
110
|
+
return true;
|
|
111
|
+
case "string":
|
|
112
|
+
return typeof value === 'string' && value.trim() !== '';
|
|
113
|
+
}
|
|
114
|
+
return false;
|
|
81
115
|
}
|
|
82
116
|
/** @inheritDoc */
|
|
83
117
|
enumeration(value, map) {
|
|
@@ -91,7 +125,7 @@ class CommonIs {
|
|
|
91
125
|
}
|
|
92
126
|
/** @inheritDoc */
|
|
93
127
|
literal(value, items) {
|
|
94
|
-
if (!
|
|
128
|
+
if (!Array.isArray(items)) {
|
|
95
129
|
return false;
|
|
96
130
|
}
|
|
97
131
|
if (to_1.KeyValueItems.includes((typeof value))) {
|
|
@@ -100,6 +134,13 @@ class CommonIs {
|
|
|
100
134
|
return false;
|
|
101
135
|
}
|
|
102
136
|
/** @inheritDoc */
|
|
137
|
+
instanceOf(value, clazz) {
|
|
138
|
+
if (!value || !clazz || typeof clazz !== 'function' || typeof value !== 'object') {
|
|
139
|
+
return false;
|
|
140
|
+
}
|
|
141
|
+
return value instanceof clazz;
|
|
142
|
+
}
|
|
143
|
+
/** @inheritDoc */
|
|
103
144
|
boolean(value) {
|
|
104
145
|
return (typeof value === 'boolean');
|
|
105
146
|
}
|
|
@@ -118,9 +159,9 @@ class CommonIs {
|
|
|
118
159
|
// endregion is
|
|
119
160
|
// region secure
|
|
120
161
|
/** @inheritDoc */
|
|
121
|
-
$init(
|
|
122
|
-
|
|
123
|
-
|
|
162
|
+
$init() {
|
|
163
|
+
this.lyy.$secure.$lazyRun(() => {
|
|
164
|
+
this.lyy.fqn.register(null, IsCommon, 'class', internal_1.FQN);
|
|
124
165
|
});
|
|
125
166
|
}
|
|
126
167
|
/** @inheritDoc */
|
|
@@ -132,5 +173,5 @@ class CommonIs {
|
|
|
132
173
|
return this;
|
|
133
174
|
}
|
|
134
175
|
}
|
|
135
|
-
exports.
|
|
136
|
-
//# sourceMappingURL=
|
|
176
|
+
exports.IsCommon = IsCommon;
|
|
177
|
+
//# sourceMappingURL=is.common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is.common.js","sourceRoot":"","sources":["../../src/is/is.common.ts"],"names":[],"mappings":";;;AAGA,0CAAgC;AAChC,8BAUe;AAEf,2DAA2D;AAC3D,kBAAkB;AAClB,MAAa,QAAQ;IAGjB,YAAoB,GAAc;QAAd,QAAG,GAAH,GAAG,CAAW;QAFjB,WAAM,GAAG,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAG5C,CAAC;IACD,YAAY;IACZ,kBAAkB;IAClB,KAAK,CAAC,KAAU;QACZ,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACvC,CAAC;IAED,kBAAkB;IAClB,MAAM,CAAC,KAAU,EAAE,G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CAAC;IAED,kBAAkB;IAClB,IAAI,CAAC,KAAU;QACX,OAAO,CAAC,KAAK,KAAK,IAAI,CAAC;YACnB,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,kBAAa,CAAC,QAAQ,CAAE,KAAgB,CAAC,WAAW,EAAc,CAAC,CAAC;YACzF,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAK,KAAgB,GAAG,CAAC,CAAC,CAAC;IACtD,CAAC;IAED,kBAAkB;IAClB,KAAK,CAAC,KAAU;QACZ,OAAO,CAAC,KAAK,KAAK,KAAK,CAAC;YACpB,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,mBAAc,CAAC,QAAQ,CAAE,KAAgB,CAAC,WAAW,EAAe,CAAC,CAAC;YAC3F,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAK,KAAgB,IAAI,CAAC,CAAC,CAAC;IACvD,CAAC;IAED,eAAe;IAEf,gBAAgB;IAChB,kBAAkB;IAClB,KAAK;QACD,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,EAAE;YAC3B,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAG,CAAC,CAAC;QACxD,CAAC,CAAC,CAAC;IACP,CAAC;IAED,kBAAkB;IAClB,IAAI,KAAK;QACL,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,kBAAkB;IAClB,IAAI,OAAO;QACP,OAAO,IAAI,CAAC;IAChB,CAAC;CAIJ;AAxMD,4BAwMC"}
|
package/dist/leyyo/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './index
|
|
2
|
-
export * from './leyyo-common
|
|
1
|
+
export * from './index.types';
|
|
2
|
+
export * from './leyyo-hook.common';
|
package/dist/leyyo/index.js
CHANGED
|
@@ -14,6 +14,6 @@ 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("./index
|
|
18
|
-
__exportStar(require("./leyyo-common
|
|
17
|
+
__exportStar(require("./index.types"), exports);
|
|
18
|
+
__exportStar(require("./leyyo-hook.common"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { HookCommonLike } from "../hook";
|
|
2
|
+
import type { IsCommonLike } from "../is";
|
|
3
|
+
import type { AssertionCommonLike } from "../assertion";
|
|
4
|
+
import type { ErrorCommonLike } from "../error";
|
|
5
|
+
import type { LogCommonLike } from "../log";
|
|
6
|
+
import type { RepoCommonLike } from "../repo";
|
|
7
|
+
import type { ToCommonLike } from "../to";
|
|
8
|
+
import type { FqnCommonLike } from "../fqn";
|
|
9
|
+
import type { SystemCommonLike } from "../system";
|
|
10
|
+
import type { DeveloperCommonLike } from "../developer";
|
|
11
|
+
import type { Fnc, ShiftMain, ShiftSecure } from "../shared";
|
|
12
|
+
import type { DescriptorCommonLike } from "../descriptor";
|
|
13
|
+
import type { WrapperCommonLike } from "../wrapper";
|
|
14
|
+
import type { TestCommonLike } from "../test";
|
|
15
|
+
import type { DeployCommonLike } from "../deploy";
|
|
16
|
+
import type { NameCommonLike } from "../name";
|
|
17
|
+
import type { ConfigCommonLike } from "../config";
|
|
18
|
+
import type { MixinCommonLike } from "../mixin";
|
|
19
|
+
export interface LeyyoLike extends ShiftSecure<LeyyoSecure> {
|
|
20
|
+
readonly is: IsCommonLike;
|
|
21
|
+
readonly hook: HookCommonLike;
|
|
22
|
+
readonly assertion: AssertionCommonLike;
|
|
23
|
+
readonly error: ErrorCommonLike;
|
|
24
|
+
readonly log: LogCommonLike;
|
|
25
|
+
readonly repo: RepoCommonLike;
|
|
26
|
+
readonly to: ToCommonLike;
|
|
27
|
+
readonly fqn: FqnCommonLike;
|
|
28
|
+
readonly system: SystemCommonLike;
|
|
29
|
+
readonly dev: DeveloperCommonLike;
|
|
30
|
+
readonly descriptor: DescriptorCommonLike;
|
|
31
|
+
readonly wrapper: WrapperCommonLike;
|
|
32
|
+
readonly test: TestCommonLike;
|
|
33
|
+
readonly deploy: DeployCommonLike;
|
|
34
|
+
readonly name: NameCommonLike;
|
|
35
|
+
readonly config: ConfigCommonLike;
|
|
36
|
+
readonly mixin: MixinCommonLike;
|
|
37
|
+
}
|
|
38
|
+
export interface LeyyoSecure extends ShiftMain<LeyyoLike> {
|
|
39
|
+
$earlyRun(fn: Fnc): LeyyoSecure;
|
|
40
|
+
$lazyRun(fn: Fnc): LeyyoSecure;
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.types.js","sourceRoot":"","sources":["../../src/leyyo/index.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LeyyoHookCommon = void 0;
|
|
4
|
+
const internal_1 = require("../internal");
|
|
5
|
+
class LeyyoHookCommon {
|
|
6
|
+
constructor() {
|
|
7
|
+
throw new Error('LeyyoHookCommon is for only static usage');
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.LeyyoHookCommon = LeyyoHookCommon;
|
|
11
|
+
LeyyoHookCommon.errorAttached = Symbol.for(`${internal_1.FQN}/error.attached`);
|
|
12
|
+
LeyyoHookCommon.errorPendingRegister = Symbol.for(`${internal_1.FQN}/error.pending`);
|
|
13
|
+
LeyyoHookCommon.enumPendingRegister = Symbol.for(`${internal_1.FQN}/enum.pending`);
|
|
14
|
+
LeyyoHookCommon.fqnAttached = Symbol.for(`${internal_1.FQN}/fqn.attached`);
|
|
15
|
+
LeyyoHookCommon.fqnPendingRegister = Symbol.for(`${internal_1.FQN}/fqn.pending`);
|
|
16
|
+
LeyyoHookCommon.logAttached = Symbol.for(`${internal_1.FQN}/log.attached`);
|
|
17
|
+
LeyyoHookCommon.logPendingRegister = Symbol.for(`${internal_1.FQN}/log.pending`);
|
|
18
|
+
//# sourceMappingURL=leyyo-hook.common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leyyo-hook.common.js","sourceRoot":"","sources":["../../src/leyyo/leyyo-hook.common.ts"],"names":[],"mappings":";;;AAAA,0CAAgC;AAEhC,MAAa,eAAe;IACxB;QACI,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;IAChE,CAAC;;AAHL,0CAYC;AAPmB,6BAAa,GAAkB,MAAM,CAAC,GAAG,CAAC,GAAG,cAAG,iBAAiB,CAAC,CAAC;AACnE,oCAAoB,GAAkB,MAAM,CAAC,GAAG,CAAC,GAAG,cAAG,gBAAgB,CAAC,CAAC;AACzE,mCAAmB,GAAkB,MAAM,CAAC,GAAG,CAAC,GAAG,cAAG,eAAe,CAAC,CAAC;AACvE,2BAAW,GAAkB,MAAM,CAAC,GAAG,CAAC,GAAG,cAAG,eAAe,CAAC,CAAC;AAC/D,kCAAkB,GAAkB,MAAM,CAAC,GAAG,CAAC,GAAG,cAAG,cAAc,CAAC,CAAC;AACrE,2BAAW,GAAkB,MAAM,CAAC,GAAG,CAAC,GAAG,cAAG,eAAe,CAAC,CAAC;AAC/D,kCAAkB,GAAkB,MAAM,CAAC,GAAG,CAAC,GAAG,cAAG,cAAc,CAAC,CAAC"}
|