@tstdl/base 0.78.0-beta46 → 0.78.0-beta49
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/error/custom.error.d.ts +1 -1
- package/error/custom.error.js +5 -1
- package/error/custom.error.js.map +1 -1
- package/package.json +2 -2
- package/pdf/pdf.service.js +12 -12
- package/pdf/pdf.service.js.map +1 -1
- package/schema/array-constraints/maximum-length.d.ts +2 -2
- package/schema/array-constraints/maximum-length.js +2 -2
- package/schema/array-constraints/maximum-length.js.map +1 -1
- package/schema/array-constraints/minimum-length.d.ts +2 -2
- package/schema/array-constraints/minimum-length.js +2 -2
- package/schema/array-constraints/minimum-length.js.map +1 -1
- package/schema/coercers/boolean.coercer.d.ts +2 -2
- package/schema/coercers/boolean.coercer.js +2 -2
- package/schema/coercers/boolean.coercer.js.map +1 -1
- package/schema/coercers/date.coercer.d.ts +2 -2
- package/schema/coercers/date.coercer.js +2 -2
- package/schema/coercers/date.coercer.js.map +1 -1
- package/schema/coercers/number.coercer.d.ts +2 -2
- package/schema/coercers/number.coercer.js +2 -2
- package/schema/coercers/number.coercer.js.map +1 -1
- package/schema/coercers/regexp.coercer.d.ts +2 -2
- package/schema/coercers/regexp.coercer.js +2 -2
- package/schema/coercers/regexp.coercer.js.map +1 -1
- package/schema/coercers/string.coercer.d.ts +2 -2
- package/schema/coercers/string.coercer.js +2 -2
- package/schema/coercers/string.coercer.js.map +1 -1
- package/schema/coercers/uint8-array.coercer.js +1 -1
- package/schema/coercers/uint8-array.coercer.js.map +1 -1
- package/schema/constraints/enumeration.d.ts +2 -2
- package/schema/constraints/enumeration.js +2 -2
- package/schema/constraints/enumeration.js.map +1 -1
- package/schema/constraints/generic.d.ts +2 -2
- package/schema/constraints/generic.js +2 -2
- package/schema/constraints/generic.js.map +1 -1
- package/schema/constraints/integer.d.ts +2 -2
- package/schema/constraints/integer.js +2 -2
- package/schema/constraints/integer.js.map +1 -1
- package/schema/constraints/literal.d.ts +2 -2
- package/schema/constraints/literal.js +2 -2
- package/schema/constraints/literal.js.map +1 -1
- package/schema/constraints/maximum-date.d.ts +2 -2
- package/schema/constraints/maximum-date.js +2 -2
- package/schema/constraints/maximum-date.js.map +1 -1
- package/schema/constraints/maximum-length.d.ts +2 -2
- package/schema/constraints/maximum-length.js +2 -2
- package/schema/constraints/maximum-length.js.map +1 -1
- package/schema/constraints/maximum.d.ts +2 -2
- package/schema/constraints/maximum.js +2 -2
- package/schema/constraints/maximum.js.map +1 -1
- package/schema/constraints/minimum-date.d.ts +2 -2
- package/schema/constraints/minimum-date.js +2 -2
- package/schema/constraints/minimum-date.js.map +1 -1
- package/schema/constraints/minimum-length.d.ts +2 -2
- package/schema/constraints/minimum-length.js +2 -2
- package/schema/constraints/minimum-length.js.map +1 -1
- package/schema/constraints/minimum.d.ts +2 -2
- package/schema/constraints/minimum.js +2 -2
- package/schema/constraints/minimum.js.map +1 -1
- package/schema/constraints/pattern.d.ts +2 -2
- package/schema/constraints/pattern.js +2 -2
- package/schema/constraints/pattern.js.map +1 -1
- package/schema/schema.error.d.ts +4 -4
- package/schema/schema.error.js +3 -3
- package/schema/schema.error.js.map +1 -1
- package/schema/schema.js +20 -13
- package/schema/schema.js.map +1 -1
- package/schema/types.d.ts +6 -2
- package/schema/types.js.map +1 -1
- package/threading/index.d.ts +1 -0
- package/threading/index.js +18 -0
- package/threading/index.js.map +1 -0
- package/threading/message-proxy.d.ts +66 -0
- package/threading/message-proxy.js +34 -0
- package/threading/message-proxy.js.map +1 -0
- package/threading/thread-pool.d.ts +4 -0
- package/threading/thread-pool.js +10 -0
- package/threading/thread-pool.js.map +1 -0
- package/threading/thread.d.ts +16 -0
- package/threading/thread.js +30 -0
- package/threading/thread.js.map +1 -0
- package/utils/index.d.ts +1 -0
- package/utils/index.js +1 -0
- package/utils/index.js.map +1 -1
- package/utils/object/forward-ref.js +3 -19
- package/utils/object/forward-ref.js.map +1 -1
- package/utils/proxy.d.ts +6 -0
- package/utils/proxy.js +21 -0
- package/utils/proxy.js.map +1 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ThreadPool = void 0;
|
|
4
|
+
class ThreadPool {
|
|
5
|
+
constructor(threadCount) {
|
|
6
|
+
this.threadCount = threadCount;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.ThreadPool = ThreadPool;
|
|
10
|
+
//# sourceMappingURL=thread-pool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thread-pool.js","sourceRoot":"","sources":["../../source/threading/thread-pool.ts"],"names":[],"mappings":";;;AAAA,MAAa,UAAU;IAGrB,YAAY,WAAmB;QAC7B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;CACF;AAND,gCAMC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Observable } from 'rxjs';
|
|
2
|
+
import type { ProxyInput, ProxyValue } from './message-proxy';
|
|
3
|
+
export declare abstract class Thread {
|
|
4
|
+
private readonly url;
|
|
5
|
+
private readonly errorSubject;
|
|
6
|
+
private readonly messageSubject;
|
|
7
|
+
private readonly messageErrorSubject;
|
|
8
|
+
private worker;
|
|
9
|
+
readonly error$: Observable<ErrorEvent>;
|
|
10
|
+
readonly message$: Observable<MessageEvent>;
|
|
11
|
+
readonly messageError$: Observable<MessageEvent>;
|
|
12
|
+
constructor(url: string);
|
|
13
|
+
static proxy<T extends ProxyInput>(_value: T): ProxyValue<T>;
|
|
14
|
+
initialize(): Promise<void>;
|
|
15
|
+
terminate(): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Thread = void 0;
|
|
4
|
+
const error_1 = require("../error");
|
|
5
|
+
const rxjs_1 = require("rxjs");
|
|
6
|
+
class Thread {
|
|
7
|
+
constructor(url) {
|
|
8
|
+
this.url = url;
|
|
9
|
+
this.errorSubject = new rxjs_1.Subject();
|
|
10
|
+
this.messageSubject = new rxjs_1.Subject();
|
|
11
|
+
this.messageErrorSubject = new rxjs_1.Subject();
|
|
12
|
+
this.error$ = this.errorSubject.asObservable();
|
|
13
|
+
this.message$ = this.messageSubject.asObservable();
|
|
14
|
+
this.messageError$ = this.messageErrorSubject.asObservable();
|
|
15
|
+
}
|
|
16
|
+
static proxy(_value) {
|
|
17
|
+
throw new error_1.NotImplementedError();
|
|
18
|
+
}
|
|
19
|
+
async initialize() {
|
|
20
|
+
this.worker = new Worker(this.url, { type: 'module' });
|
|
21
|
+
this.worker.addEventListener('message', (messageEvent) => this.messageSubject.next(messageEvent));
|
|
22
|
+
this.worker.addEventListener('messageerror', (messageEvent) => this.messageErrorSubject.next(messageEvent));
|
|
23
|
+
this.worker.addEventListener('error', (errorEvent) => this.errorSubject.next(errorEvent));
|
|
24
|
+
}
|
|
25
|
+
terminate() {
|
|
26
|
+
this.worker.terminate();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.Thread = Thread;
|
|
30
|
+
//# sourceMappingURL=thread.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thread.js","sourceRoot":"","sources":["../../source/threading/thread.ts"],"names":[],"mappings":";;;AAAA,oCAA8C;AAE9C,+BAA+B;AAG/B,MAAsB,MAAM;IAY1B,YAAY,GAAW;QACrB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QAEf,IAAI,CAAC,YAAY,GAAG,IAAI,cAAO,EAAE,CAAC;QAClC,IAAI,CAAC,cAAc,GAAG,IAAI,cAAO,EAAE,CAAC;QACpC,IAAI,CAAC,mBAAmB,GAAG,IAAI,cAAO,EAAE,CAAC;QAEzC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC;QAC/C,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC,YAAY,EAAE,CAAC;QACnD,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,mBAAmB,CAAC,YAAY,EAAE,CAAC;IAC/D,CAAC;IAED,MAAM,CAAC,KAAK,CAAuB,MAAS;QAC1C,MAAM,IAAI,2BAAmB,EAAE,CAAC;IAClC,CAAC;IAED,KAAK,CAAC,UAAU;QACd,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;QAEvD,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,YAAY,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;QAClG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,cAAc,EAAE,CAAC,YAAY,EAAE,EAAE,CAAC,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;QAC5G,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;IAC5F,CAAC;IAED,SAAS;QACP,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;IAC1B,CAAC;CACF;AAvCD,wBAuCC"}
|
package/utils/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export * from './patterns';
|
|
|
31
31
|
export * from './periodic-reporter';
|
|
32
32
|
export * from './periodic-sampler';
|
|
33
33
|
export * from './provider-function-iterable';
|
|
34
|
+
export * from './proxy';
|
|
34
35
|
export * from './random';
|
|
35
36
|
export * from './reflection';
|
|
36
37
|
export * from './set';
|
package/utils/index.js
CHANGED
|
@@ -47,6 +47,7 @@ __exportStar(require("./patterns"), exports);
|
|
|
47
47
|
__exportStar(require("./periodic-reporter"), exports);
|
|
48
48
|
__exportStar(require("./periodic-sampler"), exports);
|
|
49
49
|
__exportStar(require("./provider-function-iterable"), exports);
|
|
50
|
+
__exportStar(require("./proxy"), exports);
|
|
50
51
|
__exportStar(require("./random"), exports);
|
|
51
52
|
__exportStar(require("./reflection"), exports);
|
|
52
53
|
__exportStar(require("./set"), exports);
|
package/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,0DAAwC;AACxC,qEAAmD;AACnD,4CAA0B;AAC1B,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,kDAAgC;AAChC,uDAAqC;AACrC,0CAAwB;AACxB,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B;AAC3B,yCAAuB;AACvB,2CAAyB;AACzB,+CAA6B;AAC7B,gDAA8B;AAC9B,4DAA0C;AAC1C,gDAA8B;AAC9B,iDAA+B;AAC/B,4CAA0B;AAC1B,0CAAwB;AACxB,wCAAsB;AACtB,yCAAuB;AACvB,0CAAwB;AACxB,+CAA6B;AAC7B,kDAAgC;AAChC,yCAAuB;AACvB,oEAAkD;AAClD,6CAA2B;AAC3B,sDAAoC;AACpC,qDAAmC;AACnC,+DAA6C;AAC7C,2CAAyB;AACzB,+CAA6B;AAC7B,wCAAsB;AACtB,8CAA4B;AAC5B,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,2CAAyB;AACzB,gDAA8B;AAC9B,4CAA0B;AAC1B,0CAAwB;AACxB,gDAA8B;AAC9B,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,0DAAwC;AACxC,qEAAmD;AACnD,4CAA0B;AAC1B,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,kDAAgC;AAChC,uDAAqC;AACrC,0CAAwB;AACxB,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B;AAC3B,yCAAuB;AACvB,2CAAyB;AACzB,+CAA6B;AAC7B,gDAA8B;AAC9B,4DAA0C;AAC1C,gDAA8B;AAC9B,iDAA+B;AAC/B,4CAA0B;AAC1B,0CAAwB;AACxB,wCAAsB;AACtB,yCAAuB;AACvB,0CAAwB;AACxB,+CAA6B;AAC7B,kDAAgC;AAChC,yCAAuB;AACvB,oEAAkD;AAClD,6CAA2B;AAC3B,sDAAoC;AACpC,qDAAmC;AACnC,+DAA6C;AAC7C,0CAAwB;AACxB,2CAAyB;AACzB,+CAA6B;AAC7B,wCAAsB;AACtB,8CAA4B;AAC5B,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,2CAAyB;AACzB,gDAA8B;AAC9B,4CAA0B;AAC1B,0CAAwB;AACxB,gDAA8B;AAC9B,6CAA2B"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-unsafe-argument, @typescript-eslint/ban-types */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.ForwardRef = void 0;
|
|
5
|
+
const proxy_1 = require("../proxy");
|
|
5
6
|
const type_guards_1 = require("../type-guards");
|
|
6
7
|
const lazy_property_1 = require("./lazy-property");
|
|
7
8
|
const contexts = new WeakMap();
|
|
@@ -34,31 +35,14 @@ exports.ForwardRef = {
|
|
|
34
35
|
contexts.get(forwardRef).reference = reference;
|
|
35
36
|
}
|
|
36
37
|
};
|
|
37
|
-
const reflectMethodsMap = {
|
|
38
|
-
apply: true,
|
|
39
|
-
construct: true,
|
|
40
|
-
defineProperty: true,
|
|
41
|
-
deleteProperty: true,
|
|
42
|
-
get: true,
|
|
43
|
-
getOwnPropertyDescriptor: true,
|
|
44
|
-
getPrototypeOf: true,
|
|
45
|
-
has: true,
|
|
46
|
-
isExtensible: true,
|
|
47
|
-
ownKeys: true,
|
|
48
|
-
preventExtensions: true,
|
|
49
|
-
set: true,
|
|
50
|
-
setPrototypeOf: true
|
|
51
|
-
};
|
|
52
|
-
const reflectMethods = Object.keys(reflectMethodsMap);
|
|
53
|
-
const propertyReflectMethods = new Set(['defineProperty', 'deleteProperty', 'get', 'getOwnPropertyDescriptor', 'has', 'set']);
|
|
54
38
|
function getForwardRefProxy(context) {
|
|
55
39
|
function forwardRef() { }
|
|
56
40
|
const handler = {};
|
|
57
|
-
for (const method of reflectMethods) {
|
|
41
|
+
for (const method of proxy_1.reflectMethods) {
|
|
58
42
|
handler[method] = {
|
|
59
43
|
[method](_originalTarget, ...args) {
|
|
60
44
|
if ((0, type_guards_1.isUndefined)(context.reference)) {
|
|
61
|
-
const message = propertyReflectMethods.has(method)
|
|
45
|
+
const message = proxy_1.propertyReflectMethods.has(method)
|
|
62
46
|
? `cannot forward "${method}" to property "${args[0].toString()}" on a ForwardRef which has no reference`
|
|
63
47
|
: `cannot forward "${method}" on a ForwardRef which has no reference`;
|
|
64
48
|
throw new Error(message);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forward-ref.js","sourceRoot":"","sources":["../../../source/utils/object/forward-ref.ts"],"names":[],"mappings":";AAAA,wFAAwF;;;
|
|
1
|
+
{"version":3,"file":"forward-ref.js","sourceRoot":"","sources":["../../../source/utils/object/forward-ref.ts"],"names":[],"mappings":"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"}
|
package/utils/proxy.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const reflectMethodsMap: Record<keyof ProxyHandler<object>, true>;
|
|
2
|
+
export declare type ReflectMethodsReturnTypeMap = {
|
|
3
|
+
[P in keyof ProxyHandler<object>]-?: ReturnType<Required<ProxyHandler<object>>[P]>;
|
|
4
|
+
};
|
|
5
|
+
export declare const reflectMethods: (keyof ProxyHandler<object>)[];
|
|
6
|
+
export declare const propertyReflectMethods: Set<keyof ProxyHandler<object>>;
|
package/utils/proxy.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.propertyReflectMethods = exports.reflectMethods = exports.reflectMethodsMap = void 0;
|
|
4
|
+
exports.reflectMethodsMap = {
|
|
5
|
+
apply: true,
|
|
6
|
+
construct: true,
|
|
7
|
+
defineProperty: true,
|
|
8
|
+
deleteProperty: true,
|
|
9
|
+
get: true,
|
|
10
|
+
getOwnPropertyDescriptor: true,
|
|
11
|
+
getPrototypeOf: true,
|
|
12
|
+
has: true,
|
|
13
|
+
isExtensible: true,
|
|
14
|
+
ownKeys: true,
|
|
15
|
+
preventExtensions: true,
|
|
16
|
+
set: true,
|
|
17
|
+
setPrototypeOf: true
|
|
18
|
+
};
|
|
19
|
+
exports.reflectMethods = Object.keys(exports.reflectMethodsMap);
|
|
20
|
+
exports.propertyReflectMethods = new Set(['defineProperty', 'deleteProperty', 'get', 'getOwnPropertyDescriptor', 'has', 'set']);
|
|
21
|
+
//# sourceMappingURL=proxy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy.js","sourceRoot":"","sources":["../../source/utils/proxy.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAA6C;IACzE,KAAK,EAAE,IAAI;IACX,SAAS,EAAE,IAAI;IACf,cAAc,EAAE,IAAI;IACpB,cAAc,EAAE,IAAI;IACpB,GAAG,EAAE,IAAI;IACT,wBAAwB,EAAE,IAAI;IAC9B,cAAc,EAAE,IAAI;IACpB,GAAG,EAAE,IAAI;IACT,YAAY,EAAE,IAAI;IAClB,OAAO,EAAE,IAAI;IACb,iBAAiB,EAAE,IAAI;IACvB,GAAG,EAAE,IAAI;IACT,cAAc,EAAE,IAAI;CACrB,CAAC;AAIW,QAAA,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,yBAAiB,CAAkD,CAAC;AAEjG,QAAA,sBAAsB,GAAG,IAAI,GAAG,CAA6B,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,KAAK,EAAE,0BAA0B,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC"}
|