@celljs/core 3.0.0 → 3.1.0

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.
Files changed (140) hide show
  1. package/lib/browser/application/frontend-application-state.js +2 -7
  2. package/lib/browser/application/frontend-application-state.js.map +1 -1
  3. package/lib/browser/application/frontend-application.js +8 -16
  4. package/lib/browser/application/frontend-application.js.map +1 -1
  5. package/lib/browser/application/index.js +3 -16
  6. package/lib/browser/application/index.js.map +1 -1
  7. package/lib/browser/index.js +4 -17
  8. package/lib/browser/index.js.map +1 -1
  9. package/lib/browser/shell/application-shell.js +2 -7
  10. package/lib/browser/shell/application-shell.js.map +1 -1
  11. package/lib/browser/shell/index.js +3 -16
  12. package/lib/browser/shell/index.js.map +1 -1
  13. package/lib/common/annotation/aspect.js +1 -1
  14. package/lib/common/annotation/aspect.js.map +1 -1
  15. package/lib/common/annotation/autowired.js +1 -1
  16. package/lib/common/annotation/autowired.js.map +1 -1
  17. package/lib/common/annotation/component.js +7 -2
  18. package/lib/common/annotation/component.js.map +1 -1
  19. package/lib/common/annotation/detached/index.js +4 -17
  20. package/lib/common/annotation/detached/index.js.map +1 -1
  21. package/lib/common/annotation/index.js +18 -31
  22. package/lib/common/annotation/index.js.map +1 -1
  23. package/lib/common/annotation/value.js +1 -1
  24. package/lib/common/annotation/value.js.map +1 -1
  25. package/lib/common/aop/aop-proxy-factory.js +2 -7
  26. package/lib/common/aop/aop-proxy-factory.js.map +1 -1
  27. package/lib/common/aop/class-filter.js +2 -7
  28. package/lib/common/aop/class-filter.js.map +1 -1
  29. package/lib/common/aop/index.js +4 -17
  30. package/lib/common/aop/index.js.map +1 -1
  31. package/lib/common/application/application-protocol.js +5 -13
  32. package/lib/common/application/application-protocol.js.map +1 -1
  33. package/lib/common/application/application-state.js +2 -7
  34. package/lib/common/application/application-state.js.map +1 -1
  35. package/lib/common/application/application.js +4 -12
  36. package/lib/common/application/application.js.map +1 -1
  37. package/lib/common/application/index.js +3 -16
  38. package/lib/common/application/index.js.map +1 -1
  39. package/lib/common/config/config-provider.js +4 -12
  40. package/lib/common/config/config-provider.js.map +1 -1
  41. package/lib/common/config/index.js +4 -17
  42. package/lib/common/config/index.js.map +1 -1
  43. package/lib/common/container/index.js +6 -19
  44. package/lib/common/container/index.js.map +1 -1
  45. package/lib/common/el/core-context-initializer.js +5 -13
  46. package/lib/common/el/core-context-initializer.js.map +1 -1
  47. package/lib/common/el/expression-compiler.js +4 -12
  48. package/lib/common/el/expression-compiler.js.map +1 -1
  49. package/lib/common/el/expression-context-provider.js +5 -16
  50. package/lib/common/el/expression-context-provider.js.map +1 -1
  51. package/lib/common/el/expression-handler.js +8 -16
  52. package/lib/common/el/expression-handler.js.map +1 -1
  53. package/lib/common/el/index.js +7 -20
  54. package/lib/common/el/index.js.map +1 -1
  55. package/lib/common/el/jexl-engine-provider.js +2 -7
  56. package/lib/common/el/jexl-engine-provider.js.map +1 -1
  57. package/lib/common/error/{cutom-error.d.ts → custom-error.d.ts} +1 -1
  58. package/lib/common/error/custom-error.d.ts.map +1 -0
  59. package/lib/common/error/{cutom-error.js → custom-error.js} +1 -1
  60. package/lib/common/error/custom-error.js.map +1 -0
  61. package/lib/common/error/error-protocol.d.ts +1 -1
  62. package/lib/common/error/error-protocol.d.ts.map +1 -1
  63. package/lib/common/error/illegal-argument-error.d.ts +1 -1
  64. package/lib/common/error/illegal-argument-error.d.ts.map +1 -1
  65. package/lib/common/error/illegal-argument-error.js +2 -2
  66. package/lib/common/error/illegal-argument-error.js.map +1 -1
  67. package/lib/common/error/illegal-state-error.d.ts +4 -0
  68. package/lib/common/error/illegal-state-error.d.ts.map +1 -0
  69. package/lib/common/error/illegal-state-error.js +8 -0
  70. package/lib/common/error/illegal-state-error.js.map +1 -0
  71. package/lib/common/error/index.d.ts +3 -1
  72. package/lib/common/error/index.d.ts.map +1 -1
  73. package/lib/common/error/index.js +6 -17
  74. package/lib/common/error/index.js.map +1 -1
  75. package/lib/common/error/invalid-mime-type-error.d.ts +6 -0
  76. package/lib/common/error/invalid-mime-type-error.d.ts.map +1 -0
  77. package/lib/common/error/invalid-mime-type-error.js +12 -0
  78. package/lib/common/error/invalid-mime-type-error.js.map +1 -0
  79. package/lib/common/index.js +12 -25
  80. package/lib/common/index.js.map +1 -1
  81. package/lib/common/logger/abstract-logger.js +5 -13
  82. package/lib/common/logger/abstract-logger.js.map +1 -1
  83. package/lib/common/logger/index.js +4 -17
  84. package/lib/common/logger/index.js.map +1 -1
  85. package/lib/common/logger/logger.js +2 -7
  86. package/lib/common/logger/logger.js.map +1 -1
  87. package/lib/common/provider/component-filter-registry.js +5 -16
  88. package/lib/common/provider/component-filter-registry.js.map +1 -1
  89. package/lib/common/provider/index.js +6 -19
  90. package/lib/common/provider/index.js.map +1 -1
  91. package/lib/common/provider/provider-creator.js +2 -7
  92. package/lib/common/provider/provider-creator.js.map +1 -1
  93. package/lib/common/test/index.js +2 -15
  94. package/lib/common/test/index.js.map +1 -1
  95. package/lib/common/test/mock-logger.js +2 -7
  96. package/lib/common/test/mock-logger.js.map +1 -1
  97. package/lib/common/utils/assert.d.ts +174 -0
  98. package/lib/common/utils/assert.d.ts.map +1 -0
  99. package/lib/common/utils/assert.js +287 -0
  100. package/lib/common/utils/assert.js.map +1 -0
  101. package/lib/common/utils/index.d.ts +3 -0
  102. package/lib/common/utils/index.d.ts.map +1 -1
  103. package/lib/common/utils/index.js +20 -30
  104. package/lib/common/utils/index.js.map +1 -1
  105. package/lib/common/utils/mime-type-util.d.ts +37 -0
  106. package/lib/common/utils/mime-type-util.d.ts.map +1 -0
  107. package/lib/common/utils/mime-type-util.js +172 -0
  108. package/lib/common/utils/mime-type-util.js.map +1 -0
  109. package/lib/common/utils/mime-type.d.ts +33 -0
  110. package/lib/common/utils/mime-type.d.ts.map +1 -0
  111. package/lib/common/utils/mime-type.js +262 -0
  112. package/lib/common/utils/mime-type.js.map +1 -0
  113. package/lib/common/utils/os.d.ts +2 -2
  114. package/lib/common/utils/os.js +2 -2
  115. package/lib/node/application/backend-application-state.js +2 -7
  116. package/lib/node/application/backend-application-state.js.map +1 -1
  117. package/lib/node/application/backend-application.js +4 -12
  118. package/lib/node/application/backend-application.js.map +1 -1
  119. package/lib/node/application/index.js +3 -16
  120. package/lib/node/application/index.js.map +1 -1
  121. package/lib/node/context/index.js +2 -15
  122. package/lib/node/context/index.js.map +1 -1
  123. package/lib/node/index.js +4 -17
  124. package/lib/node/index.js.map +1 -1
  125. package/lib/node/utils/index.js +2 -15
  126. package/lib/node/utils/index.js.map +1 -1
  127. package/package.json +3 -3
  128. package/src/common/error/error-protocol.ts +1 -1
  129. package/src/common/error/illegal-argument-error.ts +1 -1
  130. package/src/common/error/illegal-state-error.ts +5 -0
  131. package/src/common/error/index.ts +3 -1
  132. package/src/common/error/invalid-mime-type-error.ts +7 -0
  133. package/src/common/utils/assert.ts +300 -0
  134. package/src/common/utils/index.ts +3 -0
  135. package/src/common/utils/mime-type-util.ts +180 -0
  136. package/src/common/utils/mime-type.ts +276 -0
  137. package/src/common/utils/os.ts +2 -2
  138. package/lib/common/error/cutom-error.d.ts.map +0 -1
  139. package/lib/common/error/cutom-error.js.map +0 -1
  140. /package/src/common/error/{cutom-error.ts → custom-error.ts} +0 -0
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvalidMimeTypeError = void 0;
4
+ const custom_error_1 = require("./custom-error");
5
+ class InvalidMimeTypeError extends custom_error_1.CustomError {
6
+ constructor(mimeType, message) {
7
+ super(`Invalid mime type "${mimeType}": ${message}`);
8
+ this.mimeType = mimeType;
9
+ }
10
+ }
11
+ exports.InvalidMimeTypeError = InvalidMimeTypeError;
12
+ //# sourceMappingURL=invalid-mime-type-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invalid-mime-type-error.js","sourceRoot":"","sources":["../../../src/common/error/invalid-mime-type-error.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAE7C,MAAa,oBAAqB,SAAQ,0BAAW;IACjD,YAA4B,QAAgB,EAAE,OAAe;QACzD,KAAK,CAAC,sBAAsB,QAAQ,MAAM,OAAO,EAAE,CAAC,CAAC;QAD7B,aAAQ,GAAR,QAAQ,CAAQ;IAE5C,CAAC;CACJ;AAJD,oDAIC"}
@@ -1,29 +1,16 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
17
4
  require("reflect-metadata");
18
- __exportStar(require("./utils"), exports);
19
- __exportStar(require("./annotation"), exports);
20
- __exportStar(require("./application"), exports);
21
- __exportStar(require("./logger"), exports);
22
- __exportStar(require("./container"), exports);
23
- __exportStar(require("./aop"), exports);
24
- __exportStar(require("./constants"), exports);
25
- __exportStar(require("./config"), exports);
26
- __exportStar(require("./error"), exports);
27
- __exportStar(require("./el"), exports);
28
- __exportStar(require("./provider"), exports);
5
+ tslib_1.__exportStar(require("./utils"), exports);
6
+ tslib_1.__exportStar(require("./annotation"), exports);
7
+ tslib_1.__exportStar(require("./application"), exports);
8
+ tslib_1.__exportStar(require("./logger"), exports);
9
+ tslib_1.__exportStar(require("./container"), exports);
10
+ tslib_1.__exportStar(require("./aop"), exports);
11
+ tslib_1.__exportStar(require("./constants"), exports);
12
+ tslib_1.__exportStar(require("./config"), exports);
13
+ tslib_1.__exportStar(require("./error"), exports);
14
+ tslib_1.__exportStar(require("./el"), exports);
15
+ tslib_1.__exportStar(require("./provider"), exports);
29
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4BAA0B;AAC1B,0CAAwB;AACxB,+CAA6B;AAC7B,gDAA8B;AAC9B,2CAAyB;AACzB,8CAA4B;AAC5B,wCAAsB;AACtB,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,uCAAqB;AACrB,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;AAAA,4BAA0B;AAC1B,kDAAwB;AACxB,uDAA6B;AAC7B,wDAA8B;AAC9B,mDAAyB;AACzB,sDAA4B;AAC5B,gDAAsB;AACtB,sDAA4B;AAC5B,mDAAyB;AACzB,kDAAwB;AACxB,+CAAqB;AACrB,qDAA2B"}
@@ -1,15 +1,7 @@
1
1
  "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.AbstractLogger = void 0;
4
+ const tslib_1 = require("tslib");
13
5
  const annotation_1 = require("../annotation");
14
6
  const logger_protocol_1 = require("./logger-protocol");
15
7
  class AbstractLogger {
@@ -26,14 +18,14 @@ class AbstractLogger {
26
18
  logFn(`${time} [${this.level}]${traceStr}${contextStr} ${message}`);
27
19
  }
28
20
  }
29
- __decorate([
21
+ tslib_1.__decorate([
30
22
  (0, annotation_1.Value)(`${logger_protocol_1.LOGGER_LEVEL} ?: 'info'`),
31
- __metadata("design:type", String)
23
+ tslib_1.__metadata("design:type", String)
32
24
  ], AbstractLogger.prototype, "level", void 0);
33
- __decorate([
25
+ tslib_1.__decorate([
34
26
  (0, annotation_1.Autowired)(logger_protocol_1.TraceIdProvider),
35
27
  (0, annotation_1.Optional)(),
36
- __metadata("design:type", Object)
28
+ tslib_1.__metadata("design:type", Object)
37
29
  ], AbstractLogger.prototype, "traceIdProvider", void 0);
38
30
  exports.AbstractLogger = AbstractLogger;
39
31
  //# sourceMappingURL=abstract-logger.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"abstract-logger.js","sourceRoot":"","sources":["../../../src/common/logger/abstract-logger.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA2D;AAC3D,uDAAoF;AAEpF,MAAsB,cAAc;IAUhC,UAAU,CAAC,OAAgB;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAES,IAAI,CAAC,KAA+B,EAAE,OAAY,EAAE,OAAgB;;QAC1E,OAAO,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,IAAI,CAAC,OAAO,CAAC;QAClC,MAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QACtC,MAAM,OAAO,GAAG,MAAA,IAAI,CAAC,eAAe,0CAAE,OAAO,EAAE,CAAC;QAChD,MAAM,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,YAAY,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QACvD,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,OAAO,GA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IAAC,IAAA,sBAAS,EAAC,iCAAe,CAAC;IAAE,IAAA,qBAAQ,GAAE;;uDACc;AARzD,wCA4BC"}
@@ -1,20 +1,7 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./logger-protocol"), exports);
18
- __exportStar(require("./logger"), exports);
19
- __exportStar(require("./abstract-logger"), exports);
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./logger-protocol"), exports);
5
+ tslib_1.__exportStar(require("./logger"), exports);
6
+ tslib_1.__exportStar(require("./abstract-logger"), exports);
20
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/logger/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,2CAAyB;AACzB,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/logger/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC;AAClC,mDAAyB;AACzB,4DAAkC"}
@@ -1,12 +1,7 @@
1
1
  "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
2
  Object.defineProperty(exports, "__esModule", { value: true });
9
3
  exports.LoggerImpl = void 0;
4
+ const tslib_1 = require("tslib");
10
5
  const annotation_1 = require("../annotation");
11
6
  const container_1 = require("../container");
12
7
  const abstract_logger_1 = require("./abstract-logger");
@@ -31,7 +26,7 @@ let LoggerImpl = class LoggerImpl extends abstract_logger_1.AbstractLogger {
31
26
  }
32
27
  }
33
28
  };
34
- LoggerImpl = __decorate([
29
+ LoggerImpl = tslib_1.__decorate([
35
30
  (0, annotation_1.Component)({ id: logger_protocol_1.Logger, scope: container_1.Scope.Transient })
36
31
  ], LoggerImpl);
37
32
  exports.LoggerImpl = LoggerImpl;
@@ -1 +1 @@
1
- {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../src/common/logger/logger.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8CAA0C;AAC1C,4CAAqC;AACrC,uDAAmD;AACnD,uDAA2C;AAGpC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,gCAAc;IAE1C,KAAK,CAAC,OAAY,EAAE,OAAgB;QAChC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED,IAAI,CAAC,OAAY,EAAE,OAAgB;QAC/B,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;YACxC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC3D;IACL,CAAC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,OAAO,CAAC,CAAC;SAC3D;IACL,CAAC;IAED,IAAI,CAAC,OAAY,EAAE,OAAgB;QAC/B,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;YAChD,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC3D;IACL,CAAC;IAED,KAAK,CAAC,OAAY,EAAE,OAAgB;QAChC,IAAI,IAAI,CAAC,KAAK,KAAK,OAAO,EAAE;YACxB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC5D;IACL,CAAC;CAEJ,CAAA;AAxBY,UAAU;IADtB,IAAA,sBAAS,EAAC,EAAE,EAAE,EAAE,wBAAM,EAAE,KAAK,EAAE,iBAAK,CAAC,SAAS,EAAE,CAAC;GACrC,UAAU,CAwBtB;AAxBY,gCAAU"}
@@ -1,18 +1,7 @@
1
1
  "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
2
  Object.defineProperty(exports, "__esModule", { value: true });
15
3
  exports.ComponentFilterRegistryImpl = void 0;
4
+ const tslib_1 = require("tslib");
16
5
  const provider_protocol_1 = require("./provider-protocol");
17
6
  const annotation_1 = require("../annotation");
18
7
  let ComponentFilterRegistryImpl = class ComponentFilterRegistryImpl {
@@ -59,11 +48,11 @@ let ComponentFilterRegistryImpl = class ComponentFilterRegistryImpl {
59
48
  ];
60
49
  }
61
50
  };
62
- ComponentFilterRegistryImpl = __decorate([
51
+ ComponentFilterRegistryImpl = tslib_1.__decorate([
63
52
  (0, annotation_1.Component)(provider_protocol_1.ComponentFilterRegistry),
64
- __param(0, (0, annotation_1.Autowired)(provider_protocol_1.ComponentFilterContribution)),
65
- __param(0, (0, annotation_1.Optional)()),
66
- __metadata("design:paramtypes", [Array])
53
+ tslib_1.__param(0, (0, annotation_1.Autowired)(provider_protocol_1.ComponentFilterContribution)),
54
+ tslib_1.__param(0, (0, annotation_1.Optional)()),
55
+ tslib_1.__metadata("design:paramtypes", [Array])
67
56
  ], ComponentFilterRegistryImpl);
68
57
  exports.ComponentFilterRegistryImpl = ComponentFilterRegistryImpl;
69
58
  //# sourceMappingURL=component-filter-registry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"component-filter-registry.js","sourceRoot":"","sources":["../../../src/common/provider/component-filter-registry.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2DAA2H;AAC3H,8CAA+D;AAGxD,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IAMpC,YACwD,gBAA+C,EAAE;QAL/F,gBAAW,GAAG,KAAK,CAAC;QACpB,mBAAc,GAA8B,EAAE,CAAC;QAC/C,kBAAa,GAAG,IAAI,GAAG,EAA4C,CAAC;QAK1E,KAAK,MAAM,YAAY,IAAI,aAAa,EAAE;YACtC,YAAY,CAAC,2BAA2B,CAAC,IAAI,CAAC,CAAC;SAClD;QACD,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;IAC5B,CAAC;IAED,UAAU,CAAC,KAA4B,EA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,EAAC,+CAA2B,CAAC,CAAA;IAAE,WAAA,IAAA,qBAAQ,GAAE,CAAA;;GAP9C,2BAA2B,CAmDvC;AAnDY,kEAA2B"}
1
+ {"version":3,"file":"component-filter-registry.js","sourceRoot":"","sources":["../../../src/common/provider/component-filter-registry.ts"],"names":[],"mappings":";;;;AAAA,2DAA2H;AAC3H,8CAA+D;AAGxD,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IAMpC,YACwD,gBAA+C,EAAE;QAL/F,gBAAW,GAAG,KAAK,CAAC;QACpB,mBAAc,GAA8B,EAAE,CAAC;QAC/C,kBAAa,GAAG,IAAI,GAAG,EAA4C,CAAC;QAK1E,KAAK,MAAM,YAAY,IAAI,aAAa,EAAE;YACtC,YAAY,CAAC,2BAA2B,CAAC,IAAI,CAAC,CAAC;SAClD;QACD,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;IAC5B,CAAC;IAED,UAAU,CAAC,KAA4B,EAAE,OAAkC;QACvE,IAAI,IAAI,CAAC,WAAW,EAAE;YAClB,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;SACvE;aAAM,IAAI,KAAK,KAAK,GAAG,EAAE;YACtB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC;SACxC;aAAM;YACH,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;gBACtB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC;aAC3C;SACJ;IACL,CAAC;IAED,YAAY,CAAmB,QAAa,EAAE,IAAmB;QAC7D,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QACtC,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE;YACtB,OAAO,QAAQ,CAAC;SACnB;QACD,OAAO,QAAQ,CAAC,MAAM,CAClB,MAAM,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CACpD,CAAC;IACN,CAAC;IAES,WAAW,CAAC,IAAmB;QACrC,IAAI,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,KAAK,KAAK,SAAS,EAAE;YACrB,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,GAAG,EAAE,CAAC,CAAC;SAC5C;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;IAES,UAAU,CAAC,IAAmB;QACpC,OAAO;YACH,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE;YACrC,GAAG,IAAI,CAAC,cAAc;SACzB,CAAC;IACN,CAAC;CACJ,CAAA;AAnDY,2BAA2B;IADvC,IAAA,sBAAS,EAAC,2CAAuB,CAAC;IAQ1B,mBAAA,IAAA,sBAAS,EAAC,+CAA2B,CAAC,CAAA;IAAE,mBAAA,IAAA,qBAAQ,GAAE,CAAA;;GAP9C,2BAA2B,CAmDvC;AAnDY,kEAA2B"}
@@ -1,22 +1,9 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./component-filter-registry"), exports);
18
- __exportStar(require("./provider"), exports);
19
- __exportStar(require("./provider-creator"), exports);
20
- __exportStar(require("./provider-protocol"), exports);
21
- __exportStar(require("./provider-util"), exports);
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./component-filter-registry"), exports);
5
+ tslib_1.__exportStar(require("./provider"), exports);
6
+ tslib_1.__exportStar(require("./provider-creator"), exports);
7
+ tslib_1.__exportStar(require("./provider-protocol"), exports);
8
+ tslib_1.__exportStar(require("./provider-util"), exports);
22
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/provider/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,6CAA2B;AAC3B,qDAAmC;AACnC,sDAAoC;AACpC,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/provider/index.ts"],"names":[],"mappings":";;;AAAA,sEAA4C;AAC5C,qDAA2B;AAC3B,6DAAmC;AACnC,8DAAoC;AACpC,0DAAgC"}
@@ -1,12 +1,7 @@
1
1
  "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
2
  Object.defineProperty(exports, "__esModule", { value: true });
9
3
  exports.ProviderCreatorImpl = void 0;
4
+ const tslib_1 = require("tslib");
10
5
  const component_1 = require("../annotation/component");
11
6
  const provider_protocol_1 = require("./provider-protocol");
12
7
  const provider_1 = require("./provider");
@@ -15,7 +10,7 @@ let ProviderCreatorImpl = class ProviderCreatorImpl {
15
10
  return new provider_1.ContainerBasedProvider(id, container);
16
11
  }
17
12
  };
18
- ProviderCreatorImpl = __decorate([
13
+ ProviderCreatorImpl = tslib_1.__decorate([
19
14
  (0, component_1.Component)(provider_protocol_1.ProviderCreator)
20
15
  ], ProviderCreatorImpl);
21
16
  exports.ProviderCreatorImpl = ProviderCreatorImpl;
@@ -1 +1 @@
1
- {"version":3,"file":"provider-creator.js","sourceRoot":"","sources":["../../../src/common/provider/provider-creator.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uDAAiE;AACjE,2DAAgE;AAEhE,yCAAoD;AAG7C,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC5B,MAAM,CAAC,EAAe,EAAE,SAAoB;QACxC,OAAO,IAAI,iCAAsB,CAAC,EAAE,EAAE,SAAS,CAAgB,CAAC;IACpE,CAAC;CACJ,CAAA;AAJY,mBAAmB;IAD/B,IAAA,qBAAS,EAAC,mCAAe,CAAC;GACd,mBAAmB,CAI/B;AAJY,kDAAmB"}
1
+ {"version":3,"file":"provider-creator.js","sourceRoot":"","sources":["../../../src/common/provider/provider-creator.ts"],"names":[],"mappings":";;;;AAAA,uDAAiE;AACjE,2DAAgE;AAEhE,yCAAoD;AAG7C,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC5B,MAAM,CAAC,EAAe,EAAE,SAAoB;QACxC,OAAO,IAAI,iCAAsB,CAAC,EAAE,EAAE,SAAS,CAAgB,CAAC;IACpE,CAAC;CACJ,CAAA;AAJY,mBAAmB;IAD/B,IAAA,qBAAS,EAAC,mCAAe,CAAC;GACd,mBAAmB,CAI/B;AAJY,kDAAmB"}
@@ -1,18 +1,5 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./mock-logger"), exports);
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./mock-logger"), exports);
18
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/test/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/test/index.ts"],"names":[],"mappings":";;;AAAA,wDAA8B"}
@@ -1,12 +1,7 @@
1
1
  "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
2
  Object.defineProperty(exports, "__esModule", { value: true });
9
3
  exports.MockLogger = void 0;
4
+ const tslib_1 = require("tslib");
10
5
  const annotation_1 = require("../annotation");
11
6
  let MockLogger = class MockLogger {
12
7
  setContext(context) {
@@ -25,7 +20,7 @@ let MockLogger = class MockLogger {
25
20
  // do nothing
26
21
  }
27
22
  };
28
- MockLogger = __decorate([
23
+ MockLogger = tslib_1.__decorate([
29
24
  (0, annotation_1.Injectable)()
30
25
  ], MockLogger);
31
26
  exports.MockLogger = MockLogger;
@@ -1 +1 @@
1
- {"version":3,"file":"mock-logger.js","sourceRoot":"","sources":["../../../src/common/test/mock-logger.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8CAA2C;AAIpC,IAAM,UAAU,GAAhB,MAAM,UAAU;IACnB,UAAU,CAAC,OAAgB;QACvB,aAAa;IACjB,CAAC;IACD,IAAI,CAAC,OAAY,EAAE,OAAgB;QAC/B,aAAa;IACjB,CAAC;IACD,KAAK,CAAC,OAAY,EAAE,OAAgB;QAChC,aAAa;IACjB,CAAC;IACD,IAAI,CAAC,OAAY,EAAE,OAAgB;QAC/B,aAAa;IACjB,CAAC;IACD,KAAK,CAAC,OAAY,EAAE,OAAgB;QAChC,aAAa;IACjB,CAAC;CACJ,CAAA;AAhBY,UAAU;IADtB,IAAA,uBAAU,GAAE;GACA,UAAU,CAgBtB;AAhBY,gCAAU"}
1
+ {"version":3,"file":"mock-logger.js","sourceRoot":"","sources":["../../../src/common/test/mock-logger.ts"],"names":[],"mappings":";;;;AAAA,8CAA2C;AAIpC,IAAM,UAAU,GAAhB,MAAM,UAAU;IACnB,UAAU,CAAC,OAAgB;QACvB,aAAa;IACjB,CAAC;IACD,IAAI,CAAC,OAAY,EAAE,OAAgB;QAC/B,aAAa;IACjB,CAAC;IACD,KAAK,CAAC,OAAY,EAAE,OAAgB;QAChC,aAAa;IACjB,CAAC;IACD,IAAI,CAAC,OAAY,EAAE,OAAgB;QAC/B,aAAa;IACjB,CAAC;IACD,KAAK,CAAC,OAAY,EAAE,OAAgB;QAChC,aAAa;IACjB,CAAC;CACJ,CAAA;AAhBY,UAAU;IADtB,IAAA,uBAAU,GAAE;GACA,UAAU,CAgBtB;AAhBY,gCAAU"}
@@ -0,0 +1,174 @@
1
+ export declare abstract class Assert {
2
+ /**
3
+ * Assert a boolean expression, throwing an `IllegalStateError`
4
+ * if the expression evaluates to `false`.
5
+ * @param expression a boolean expression
6
+ * @param message the exception message to use if the assertion fails
7
+ * @throws IllegalStateError if `expression` is `false`
8
+ * @example
9
+ * Assert.state(id === undefined, "The id property must not already be initialized");
10
+ * Assert.state(entity.getId() === undefined,
11
+ * () => "ID for entity " + entity.getName() + " must not already be initialized");
12
+ */
13
+ static state(expression: boolean, message: string | (() => string)): void;
14
+ /**
15
+ * Assert a boolean expression, throwing an `IllegalStateError`
16
+ * if the expression evaluates to `false`.
17
+ * @param expression a boolean expression
18
+ * @param message the exception message to use if the assertion fails
19
+ * @throws IllegalStateError if `expression` is `false`
20
+ * @example
21
+ * Assert.isTrue(i > 0, "The value must be greater than zero");
22
+ * Assert.isTrue(i > 0, () => "The value '" + i + "' must be greater than zero");
23
+ */
24
+ static isTrue(expression: boolean, message: string | (() => string)): void;
25
+ /**
26
+ * Assert that an object is `undefined`.
27
+ * @param object the object to check
28
+ * @param message the exception message to use if the assertion fails
29
+ * @throws IllegalStateError if the object is not `undefined`
30
+ * @example
31
+ * Assert.isNull(value, "The value must be null");
32
+ * Assert.isNull(value, () => "The value '" + value + "' must be null");
33
+ */
34
+ static isNull(object: any, message: string | (() => string)): void;
35
+ /**
36
+ * Assert that an object is not `undefined`.
37
+ * @param object the object to check
38
+ * @param message the exception message to use if the assertion fails
39
+ * @throws IllegalStateError if the object is `undefined`
40
+ * @example
41
+ * Assert.notNull(clazz, "The class must not be null");
42
+ * Assert.notNull(entity.getId(),
43
+ * () => "ID for entity " + entity.getName() + " must not be null");
44
+ */
45
+ static notNull(object: unknown, message: string | (() => string)): void;
46
+ /**
47
+ * Assert that the given String is not empty; that is,
48
+ * it must not be `undefined` and not the empty String.
49
+ * @param text the String to check
50
+ * @param message the exception message to use if the assertion fails
51
+ * @throws IllegalStateError if the text is empty
52
+ * @example
53
+ * Assert.hasLength(name, "Name must not be empty");
54
+ * Assert.hasLength(name, () => "Name for account '" + account.getId() + "' must not be empty");
55
+ */
56
+ static hasLength(text: string | undefined, message: string | (() => string)): void;
57
+ /**
58
+ * Assert that the given String contains valid text content; that is, it must not
59
+ * be `undefined` and must contain at least one non-whitespace character.
60
+ * @param text the String to check
61
+ * @param message the exception message to use if the assertion fails
62
+ * @throws IllegalStateError if the text does not contain valid text content
63
+ * @example
64
+ * Assert.hasText(account.getName(), "Name must not be empty");
65
+ * Assert.hasText(account.getName(),
66
+ * () => "Name for account '" + account.getId() + "' must not be empty");
67
+ */
68
+ static hasText(text: string | undefined, message: string | (() => string)): void;
69
+ /**
70
+ * Assert that the given text does not contain the given substring.
71
+ * @param textToSearch the text to search
72
+ * @param substring the substring to find within the text
73
+ * @param message the exception message to use if the assertion fails
74
+ * @throws IllegalStateError if the text contains the substring
75
+ * @example
76
+ * Assert.doesNotContain(name, forbidden, "Name must not contain '" + forbidden + "'");
77
+ * Assert.doesNotContain(name, forbidden,
78
+ * () => "Name must not contain '" + forbidden + "'");
79
+ */
80
+ static doesNotContain(textToSearch: string | undefined, substring: string, message: string | (() => string)): void;
81
+ /**
82
+ * Assert that an array contains elements; that is, it must not be
83
+ * `undefined` and must contain at least one element.
84
+ * @param array the array to check
85
+ * @param message the exception message to use if the assertion fails
86
+ * @throws IllegalStateError if the object array is `undefined` or contains no elements
87
+ * @example
88
+ * Assert.notEmpty(array, "The array must contain elements");
89
+ * Assert.notEmpty(array, () => "The " + arrayType + " array must contain elements");
90
+ */
91
+ static notEmpty(array: unknown[] | undefined, message: string | (() => string)): void;
92
+ /**
93
+ * Assert that an array contains no `undefined` elements.
94
+ * <p>Note: Does not complain if the array is empty!
95
+ * @param array the array to check
96
+ * @param message the exception message to use if the assertion fails
97
+ * @throws IllegalStateError if the object array contains a `undefined` element
98
+ * @example
99
+ * Assert.noNullElements(array, "The array must contain non-null elements");
100
+ * Assert.noNullElements(array, () => "The " + arrayType + " array must contain non-null elements");
101
+ */
102
+ static noNullElements(array: unknown[] | undefined, message: string | (() => string)): void;
103
+ /**
104
+ * Assert that a collection contains elements; that is, it must not be
105
+ * `undefined` and must contain at least one element.
106
+ * @param collection the collection to check
107
+ * @param message the exception message to use if the assertion fails
108
+ * @throws IllegalStateError if the collection is `undefined` or
109
+ * contains no elements
110
+ * @example
111
+ * Assert.notEmpty(collection, "Collection must contain elements");
112
+ * Assert.notEmpty(collection, () => "The " + collectionType + " collection must contain elements");
113
+ */
114
+ static notEmptyCollection(collection: unknown[] | undefined, message: string | (() => string)): void;
115
+ /**
116
+ * Assert that a collection contains no `undefined` elements.
117
+ * <p>Note: Does not complain if the collection is empty!
118
+ * @param collection the collection to check
119
+ * @param message the exception message to use if the assertion fails
120
+ * @throws IllegalStateError if the collection contains a `undefined`
121
+ * @example
122
+ * Assert.noNullElements(collection, "Collection must contain non-null elements");
123
+ * Assert.noNullElements(collection, () => "The " + collectionName + " must contain non-null elements");
124
+ */
125
+ static noNullElementsCollection(collection: unknown[] | undefined, message: string | (() => string)): void;
126
+ /**
127
+ * Assert that a Map contains entries; that is, it must not be `undefined`
128
+ * and must contain at least one entry.
129
+ * @param map the map to check
130
+ * @param message the exception message to use if the assertion fails
131
+ * @throws IllegalStateError if the map is `undefined` or contains no entries
132
+ * @example
133
+ * Assert.notEmpty(map, "The map must contain entries");
134
+ * Assert.notEmpty(map, () => "The " + mapType + " map must contain entries");
135
+ */
136
+ static notEmptyMap(map: Map<unknown, unknown> | undefined, message: string | (() => string)): void;
137
+ /**
138
+ * Assert that the provided object is an instance of the provided class.
139
+ * @param type the type to check against
140
+ * @param obj the object to check
141
+ * @param message a message which will be prepended to provide further context.
142
+ * If it is empty or ends in ":" or ";" or "," or ".", a full exception message
143
+ * will be appended. If it ends in a space, the name of the offending object's
144
+ * type will be appended. In any other case, a ":" with a space and the name
145
+ * of the offending object's type will be appended.
146
+ * @throws IllegalStateError if the object is not an instance of type
147
+ * @example
148
+ * Assert.instanceOf(Foo, foo, "Foo expected");
149
+ * Assert.instanceOf(Foo, foo, () => "Processing " + Foo.name + ":");
150
+ * Assert.instanceOf(Foo, foo);
151
+ */
152
+ static isInstanceOf(type: any, obj: unknown, message?: string | (() => string)): void;
153
+ /**
154
+ * Assert that `superType.isAssignableFrom(subType)` is `true`.
155
+ * @param superType the supertype to check against
156
+ * @param subType the subtype to check
157
+ * @param message a message which will be prepended to provide further context.
158
+ * If it is empty or ends in ":" or ";" or "," or ".", a full exception message
159
+ * will be appended. If it ends in a space, the name of the offending subtype
160
+ * will be appended. In any other case, a ":" with a space and the name of the
161
+ * offending subtype will be appended.
162
+ * @throws IllegalStateError if the classes are not assignable
163
+ * @example
164
+ * Assert.isAssignable(Number, myClass, "Number expected");
165
+ * Assert.isAssignable(Number, myClass, () => "Processing " + myAttributeName + ":");
166
+ */
167
+ static isAssignable(superType: unknown, subType: any | undefined, message?: string | (() => string)): void;
168
+ private static instanceCheckFailed;
169
+ private static assignableCheckFailed;
170
+ private static endsWithSeparator;
171
+ private static messageWithTypeName;
172
+ private static resolveMessage;
173
+ }
174
+ //# sourceMappingURL=assert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../../src/common/utils/assert.ts"],"names":[],"mappings":"AAMA,8BAAsB,MAAM;IACxB;;;;;;;;;;OAUG;IACH,MAAM,CAAC,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,GAAG,IAAI;IAMzE;;;;;;;;;OASG;IACH,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,GAAG,IAAI;IAM1E;;;;;;;;OAQG;IACH,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,GAAG,IAAI;IAMlE;;;;;;;;;OASG;IACH,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,GAAG,IAAI;IAMvE;;;;;;;;;OASG;IACH,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG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