@loopback/boot 3.4.3 → 4.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.
- package/dist/.sandbox/{27306FWsqTv → 31960lRCZr7}/application.js +1 -1
- package/dist/.sandbox/{27306FWsqTv → 31960lRCZr7}/services/bindable-classes.service.js +15 -15
- package/dist/.sandbox/{27306FWsqTv → 31960lRCZr7}/services/date.service.js +0 -0
- package/dist/.sandbox/{27306FWsqTv → 31960lRCZr7}/services/geocoder.service.js +0 -0
- package/dist/.sandbox/{27306FWsqTv → 31960lRCZr7}/services/greeting.service.js +0 -0
- package/dist/.sandbox/{27309PIbyYx → 319619cSXcc}/datasource.artifact.js +0 -0
- package/dist/.sandbox/{27316krz1Jw → 31962HggPyc}/multiple.artifact.js +10 -10
- package/dist/.sandbox/{27316kqgNOD → 31963wEFo3w}/multiple.artifact.js +10 -10
- package/dist/.sandbox/{273072gKb22 → 31964MbjUPR}/application.js +1 -1
- package/dist/.sandbox/{27320t1M0Kj → 31964MbjUPR}/models/multiple-models.model.js +0 -0
- package/dist/.sandbox/{27319vme5Up → 31964MbjUPR}/models/no-entity.model.js +8 -8
- package/dist/.sandbox/{27316jDpod8 → 31964MbjUPR}/models/product.model.js +8 -8
- package/dist/.sandbox/{273141IH5Wb → 31965fGmvad}/application.js +1 -1
- package/dist/.sandbox/{27315Zj0VSo → 31965fGmvad}/datasources/db.datasource.js +0 -0
- package/dist/.sandbox/{27313ebXKeb → 31966D6hjOD/dist}/application.js +1 -1
- package/dist/.sandbox/{27310fUFrgi → 31966D6hjOD}/package.json +1 -1
- package/dist/.sandbox/{27310fUFrgi → 31967woXd0o}/application.js +1 -1
- package/dist/.sandbox/{27310fUFrgi → 31967woXd0o}/controllers/multiple.controller.js +10 -10
- package/dist/.sandbox/{27312Q8OKtm → 31967woXd0o}/package.json +1 -1
- package/dist/.sandbox/{27312Q8OKtm/dist → 31968ZsQ2Ni}/application.js +1 -1
- package/dist/.sandbox/{273180NMH13 → 31968ZsQ2Ni}/controllers/multiple.controller.js +10 -10
- package/dist/.sandbox/{27313ebXKeb → 31968ZsQ2Ni}/package.json +1 -1
- package/dist/.sandbox/31969BlqnNT/application.js +20 -0
- package/dist/.sandbox/{273141IH5Wb → 31969BlqnNT}/observers/lifecycle-observer.observer.js +0 -0
- package/dist/.sandbox/31970OQBvdN/application.js +20 -0
- package/dist/.sandbox/{273072gKb22 → 31970OQBvdN}/repositories/multiple.repository.js +10 -10
- package/dist/.sandbox/{27316jDpod8 → 31970wCyb8P}/model-endpoints/product.rest-config.js +0 -0
- package/dist/.sandbox/{27320t1M0Kj → 31970wCyb8P}/models/product.model.js +8 -8
- package/dist/.sandbox/31971mpFsi3/application.js +20 -0
- package/dist/.sandbox/{27313ebXKeb → 31971mpFsi3}/controllers/multiple.controller.js +10 -10
- package/dist/.sandbox/{27319vme5Up → 31973QhMj88}/model-endpoints/no-entity.rest-config.js +0 -0
- package/dist/.sandbox/{27320t1M0Kj → 31973QhMj88}/models/no-entity.model.js +8 -8
- package/dist/.sandbox/{27308GxAFTY → 31973eOY2RG}/service-provider.artifact.js +0 -0
- package/dist/.sandbox/31974mcQCrU/application.js +20 -0
- package/dist/.sandbox/{27317OoFImU → 31974mcQCrU}/interceptors/interceptor.interceptor.js +2 -2
- package/dist/.sandbox/{27317OoFImU → 31974mcQCrU}/interceptors/non-global-interceptor.interceptor.js +2 -2
- package/dist/boot.component.js +3 -3
- package/dist/boot.component.js.map +1 -1
- package/dist/booters/application-metadata.booter.js +8 -8
- package/dist/booters/application-metadata.booter.js.map +1 -1
- package/dist/booters/base-artifact.booter.js +10 -8
- package/dist/booters/base-artifact.booter.js.map +1 -1
- package/dist/booters/booter-utils.js +4 -4
- package/dist/booters/booter-utils.js.map +1 -1
- package/dist/booters/component-application.booter.js +7 -7
- package/dist/booters/component-application.booter.js.map +1 -1
- package/dist/booters/controller.booter.js +6 -6
- package/dist/booters/controller.booter.js.map +1 -1
- package/dist/booters/datasource.booter.js +6 -6
- package/dist/booters/datasource.booter.js.map +1 -1
- package/dist/booters/index.js +12 -12
- package/dist/booters/index.js.map +1 -1
- package/dist/booters/interceptor.booter.js +8 -8
- package/dist/booters/interceptor.booter.js.map +1 -1
- package/dist/booters/lifecyle-observer.booter.js +8 -8
- package/dist/booters/lifecyle-observer.booter.js.map +1 -1
- package/dist/booters/model-api.booter.js +11 -11
- package/dist/booters/model-api.booter.js.map +1 -1
- package/dist/booters/model.booter.js +8 -8
- package/dist/booters/model.booter.js.map +1 -1
- package/dist/booters/repository.booter.js +6 -6
- package/dist/booters/repository.booter.js.map +1 -1
- package/dist/booters/service.booter.js +10 -10
- package/dist/booters/service.booter.js.map +1 -1
- package/dist/bootstrapper.js +10 -10
- package/dist/bootstrapper.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/mixins/boot.mixin.d.ts +1 -1
- package/dist/mixins/boot.mixin.js +2 -2
- package/dist/mixins/boot.mixin.js.map +1 -1
- package/dist/mixins/index.js +1 -1
- package/dist/mixins/index.js.map +1 -1
- package/dist/types.js +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +17 -17
- package/src/booters/application-metadata.booter.ts +1 -1
- package/src/booters/base-artifact.booter.ts +5 -5
- package/dist/.sandbox/27315Zj0VSo/application.js +0 -20
- package/dist/.sandbox/27317OoFImU/application.js +0 -20
- package/dist/.sandbox/273180NMH13/application.js +0 -20
- package/dist/.sandbox/27320t1M0Kj/application.js +0 -20
|
@@ -7,10 +7,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
exports.ApplicationMetadataBooter = void 0;
|
|
8
8
|
const tslib_1 = require("tslib");
|
|
9
9
|
const core_1 = require("@loopback/core");
|
|
10
|
-
const debug_1 = tslib_1.__importDefault(require("debug"));
|
|
10
|
+
const debug_1 = (0, tslib_1.__importDefault)(require("debug"));
|
|
11
11
|
const keys_1 = require("../keys");
|
|
12
|
-
const
|
|
13
|
-
const debug = debug_1.default('loopback:boot:booter:application-metadata');
|
|
12
|
+
const path_1 = (0, tslib_1.__importDefault)(require("path"));
|
|
13
|
+
const debug = (0, debug_1.default)('loopback:boot:booter:application-metadata');
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* Configure the application with metadata from `package.json`
|
|
@@ -26,7 +26,7 @@ let ApplicationMetadataBooter = class ApplicationMetadataBooter {
|
|
|
26
26
|
async configure() {
|
|
27
27
|
try {
|
|
28
28
|
// `this.projectRoot` points to `<project>/dist`
|
|
29
|
-
const pkg = require(
|
|
29
|
+
const pkg = require(path_1.default.resolve(this.projectRoot, '../package.json'));
|
|
30
30
|
this.app.setMetadata(pkg);
|
|
31
31
|
}
|
|
32
32
|
catch (err) {
|
|
@@ -34,10 +34,10 @@ let ApplicationMetadataBooter = class ApplicationMetadataBooter {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
ApplicationMetadataBooter = tslib_1.__decorate([
|
|
38
|
-
tslib_1.__param(0, core_1.inject(core_1.CoreBindings.APPLICATION_INSTANCE)),
|
|
39
|
-
tslib_1.__param(1, core_1.inject(keys_1.BootBindings.PROJECT_ROOT)),
|
|
40
|
-
tslib_1.__metadata("design:paramtypes", [core_1.Application, String])
|
|
37
|
+
ApplicationMetadataBooter = (0, tslib_1.__decorate)([
|
|
38
|
+
(0, tslib_1.__param)(0, (0, core_1.inject)(core_1.CoreBindings.APPLICATION_INSTANCE)),
|
|
39
|
+
(0, tslib_1.__param)(1, (0, core_1.inject)(keys_1.BootBindings.PROJECT_ROOT)),
|
|
40
|
+
(0, tslib_1.__metadata)("design:paramtypes", [core_1.Application, String])
|
|
41
41
|
], ApplicationMetadataBooter);
|
|
42
42
|
exports.ApplicationMetadataBooter = ApplicationMetadataBooter;
|
|
43
43
|
//# sourceMappingURL=application-metadata.booter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-metadata.booter.js","sourceRoot":"","sources":["../../src/booters/application-metadata.booter.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAiE;AACjE
|
|
1
|
+
{"version":3,"file":"application-metadata.booter.js","sourceRoot":"","sources":["../../src/booters/application-metadata.booter.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAiE;AACjE,+DAAgC;AAChC,kCAAqC;AAErC,6DAAwB;AAExB,MAAM,KAAK,GAAG,IAAA,eAAW,EAAC,2CAA2C,CAAC,CAAC;AAEvE;;;;;;GAMG;AACH,IAAa,yBAAyB,GAAtC,MAAa,yBAAyB;IACpC,YACoD,GAAgB,EACvB,WAAmB;QADZ,QAAG,GAAH,GAAG,CAAa;QACvB,gBAAW,GAAX,WAAW,CAAQ;IAC7D,CAAC;IAEJ,KAAK,CAAC,SAAS;QACb,IAAI;YACF,gDAAgD;YAChD,MAAM,GAAG,GAAG,OAAO,CAAC,cAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC,CAAC;YACvE,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;SAC3B;QAAC,OAAO,GAAG,EAAE;YACZ,KAAK,CAAC,wBAAwB,EAAE,GAAG,CAAC,CAAC;SACtC;IACH,CAAC;CACF,CAAA;AAfY,yBAAyB;IAEjC,wBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,oBAAoB,CAAC,CAAA;IACzC,wBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,YAAY,CAAC,CAAA;kDADqB,kBAAW;GAFzD,yBAAyB,CAerC;AAfY,8DAAyB"}
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.BaseArtifactBooter = void 0;
|
|
8
8
|
const tslib_1 = require("tslib");
|
|
9
|
-
const debug_1 = tslib_1.__importDefault(require("debug"));
|
|
10
|
-
const path_1 = tslib_1.__importDefault(require("path"));
|
|
9
|
+
const debug_1 = (0, tslib_1.__importDefault)(require("debug"));
|
|
10
|
+
const path_1 = (0, tslib_1.__importDefault)(require("path"));
|
|
11
11
|
const booter_utils_1 = require("./booter-utils");
|
|
12
|
-
const debug = debug_1.default('loopback:boot:base-artifact-booter');
|
|
12
|
+
const debug = (0, debug_1.default)('loopback:boot:base-artifact-booter');
|
|
13
13
|
/**
|
|
14
14
|
* This class serves as a base class for Booters which follow a pattern of
|
|
15
15
|
* configure, discover files in a folder(s) using explicit folder / extensions
|
|
@@ -56,11 +56,13 @@ class BaseArtifactBooter {
|
|
|
56
56
|
? this.options.extensions
|
|
57
57
|
: [this.options.extensions]
|
|
58
58
|
: [];
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
let joinedDirs = this.dirs.join(',');
|
|
60
|
+
if (this.dirs.length > 1)
|
|
61
|
+
joinedDirs = `{${joinedDirs}}`;
|
|
62
|
+
const joinedExts = `@(${this.extensions.join('|')})`;
|
|
61
63
|
this.glob = this.options.glob
|
|
62
64
|
? this.options.glob
|
|
63
|
-
:
|
|
65
|
+
: `/${joinedDirs}/${this.options.nested ? '**/*' : '*'}${joinedExts}`;
|
|
64
66
|
}
|
|
65
67
|
/**
|
|
66
68
|
* Discover files based on the 'glob' property relative to the 'projectRoot'.
|
|
@@ -69,7 +71,7 @@ class BaseArtifactBooter {
|
|
|
69
71
|
*/
|
|
70
72
|
async discover() {
|
|
71
73
|
debug('Discovering %s artifacts in %j using glob %j', this.artifactName, this.projectRoot, this.glob);
|
|
72
|
-
this.discovered = await booter_utils_1.discoverFiles(this.glob, this.projectRoot);
|
|
74
|
+
this.discovered = await (0, booter_utils_1.discoverFiles)(this.glob, this.projectRoot);
|
|
73
75
|
if (debug.enabled) {
|
|
74
76
|
debug('Artifact files found: %s', JSON.stringify(this.discovered.map(f => path_1.default.relative(this.projectRoot, f)), null, 2));
|
|
75
77
|
}
|
|
@@ -83,7 +85,7 @@ class BaseArtifactBooter {
|
|
|
83
85
|
* and then process the artifact classes as appropriate.
|
|
84
86
|
*/
|
|
85
87
|
async load() {
|
|
86
|
-
this.classes = booter_utils_1.loadClassesFromFiles(this.discovered, this.projectRoot);
|
|
88
|
+
this.classes = (0, booter_utils_1.loadClassesFromFiles)(this.discovered, this.projectRoot);
|
|
87
89
|
}
|
|
88
90
|
}
|
|
89
91
|
exports.BaseArtifactBooter = BaseArtifactBooter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-artifact.booter.js","sourceRoot":"","sources":["../../src/booters/base-artifact.booter.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAGhE
|
|
1
|
+
{"version":3,"file":"base-artifact.booter.js","sourceRoot":"","sources":["../../src/booters/base-artifact.booter.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAGhE,+DAAiC;AACjC,6DAAwB;AAExB,iDAAmE;AAEnE,MAAM,KAAK,GAAG,IAAA,eAAY,EAAC,oCAAoC,CAAC,CAAC;AAEjE;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,kBAAkB;IA+B7B,YAAY,WAAmB,EAAE,OAAwB;QACvD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED;;;OAGG;IACH,IAAI,YAAY;QACd,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,SAAS;QACb,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI;YAC3B,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CA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I,KAAK,CAAC,OAAO,EAAE;YACjB,KAAK,CACH,0BAA0B,EAC1B,IAAI,CAAC,SAAS,CACZ,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,cAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAC5D,IAAI,EACJ,CAAC,CACF,CACF,CAAC;SACH;IACH,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,OAAO,GAAG,IAAA,mCAAoB,EAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IACzE,CAAC;CACF;AA/GD,gDA+GC"}
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.loadClassesFromFiles = exports.isClass = exports.discoverFiles = void 0;
|
|
8
8
|
const tslib_1 = require("tslib");
|
|
9
|
-
const debug_1 = tslib_1.__importDefault(require("debug"));
|
|
10
|
-
const path_1 = tslib_1.__importDefault(require("path"));
|
|
9
|
+
const debug_1 = (0, tslib_1.__importDefault)(require("debug"));
|
|
10
|
+
const path_1 = (0, tslib_1.__importDefault)(require("path"));
|
|
11
11
|
const util_1 = require("util");
|
|
12
|
-
const glob = util_1.promisify(require('glob'));
|
|
13
|
-
const debug = debug_1.default('loopback:boot:booter-utils');
|
|
12
|
+
const glob = (0, util_1.promisify)(require('glob'));
|
|
13
|
+
const debug = (0, debug_1.default)('loopback:boot:booter-utils');
|
|
14
14
|
/**
|
|
15
15
|
* Returns all files matching the given glob pattern relative to root
|
|
16
16
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"booter-utils.js","sourceRoot":"","sources":["../../src/booters/booter-utils.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAGhE
|
|
1
|
+
{"version":3,"file":"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AC,QAAQ,CAAC,CAAC;aACxB;iBAAM;gBACL,KAAK,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC;aACjC;SACF;KACF;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AApBD,oDAoBC"}
|
|
@@ -7,10 +7,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
exports.createComponentApplicationBooterBinding = exports.createBooterForComponentApplication = exports.bindingKeysExcludedFromSubApp = void 0;
|
|
8
8
|
const tslib_1 = require("tslib");
|
|
9
9
|
const core_1 = require("@loopback/core");
|
|
10
|
-
const debug_1 = tslib_1.__importDefault(require("debug"));
|
|
10
|
+
const debug_1 = (0, tslib_1.__importDefault)(require("debug"));
|
|
11
11
|
const keys_1 = require("../keys");
|
|
12
12
|
const types_1 = require("../types");
|
|
13
|
-
const debug = debug_1.default('loopback:boot:booter:component-application');
|
|
13
|
+
const debug = (0, debug_1.default)('loopback:boot:booter:component-application');
|
|
14
14
|
/**
|
|
15
15
|
* Binding keys excluded from a sub application. These bindings booted from the
|
|
16
16
|
* sub application won't be added to the main application.
|
|
@@ -73,10 +73,10 @@ function createBooterForComponentApplication(componentApp, filter = () => true)
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
|
-
ComponentApplicationBooter = tslib_1.__decorate([
|
|
77
|
-
types_1.booter('componentApplications'),
|
|
78
|
-
tslib_1.__param(0, core_1.inject(core_1.CoreBindings.APPLICATION_INSTANCE)),
|
|
79
|
-
tslib_1.__metadata("design:paramtypes", [core_1.Application])
|
|
76
|
+
ComponentApplicationBooter = (0, tslib_1.__decorate)([
|
|
77
|
+
(0, types_1.booter)('componentApplications'),
|
|
78
|
+
(0, tslib_1.__param)(0, (0, core_1.inject)(core_1.CoreBindings.APPLICATION_INSTANCE)),
|
|
79
|
+
(0, tslib_1.__metadata)("design:paramtypes", [core_1.Application])
|
|
80
80
|
], ComponentApplicationBooter);
|
|
81
81
|
return ComponentApplicationBooter;
|
|
82
82
|
}
|
|
@@ -90,7 +90,7 @@ exports.createBooterForComponentApplication = createBooterForComponentApplicatio
|
|
|
90
90
|
* @param filter Binding filter to selected bindings to be added
|
|
91
91
|
*/
|
|
92
92
|
function createComponentApplicationBooterBinding(componentApp, filter) {
|
|
93
|
-
return core_1.createBindingFromClass(createBooterForComponentApplication(componentApp, filter), { key: `booters.${componentApp.name}` });
|
|
93
|
+
return (0, core_1.createBindingFromClass)(createBooterForComponentApplication(componentApp, filter), { key: `booters.${componentApp.name}` });
|
|
94
94
|
}
|
|
95
95
|
exports.createComponentApplicationBooterBinding = createComponentApplicationBooterBinding;
|
|
96
96
|
//# sourceMappingURL=component-application.booter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-application.booter.js","sourceRoot":"","sources":["../../src/booters/component-application.booter.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAQwB;AACxB
|
|
1
|
+
{"version":3,"file":"component-application.booter.js","sourceRoot":"","sources":["../../src/booters/component-application.booter.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAQwB;AACxB,+DAAiC;AACjC,kCAAqC;AACrC,oCAAkD;AAElD,MAAM,KAAK,GAAG,IAAA,eAAY,EAAC,4CAA4C,CAAC,CAAC;AAEzE;;;GAGG;AACU,QAAA,6BAA6B,GAAG;IAC3C,mBAAY,CAAC,YAAY,CAAC,GAAG;IAC7B,mBAAY,CAAC,YAAY,CAAC,GAAG;IAC7B,mBAAY,CAAC,gBAAgB,CAAC,GAAG;IACjC,mBAAY,CAAC,kBAAkB,CAAC,GAAG;IACnC,mBAAY,CAAC,oBAAoB,CAAC,GAAG;IACrC,mBAAY,CAAC,oBAAoB,CAAC,GAAG;IACrC,mBAAY,CAAC,4BAA4B,CAAC,GAAG;IAC7C,mBAAY,CAAC,2BAA2B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,EAC9B,YAAY,CAAC,IAAI,EACjB,IAAI,CAAC,OAAO,CAAC,IAAI,EACjB,OAAO,CACR,CAAC;gBACF,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAkB,CAAC,CAAC;aACtC;QACH,CAAC;KACF,CAAA;IApDK,0BAA0B;QAD/B,IAAA,cAAM,EAAC,uBAAuB,CAAC;QAG3B,wBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,oBAAoB,CAAC,CAAA;sDAAkB,kBAAW;OAFrE,0BAA0B,CAoD/B;IACD,OAAO,0BAA0B,CAAC;AACpC,CAAC;AA9DD,kFA8DC;AAED;;;;;;;GAOG;AACH,SAAgB,uCAAuC,CACrD,YAAoC,EACpC,MAAsB;IAEtB,OAAO,IAAA,6BAAsB,EAC3B,mCAAmC,CAAC,YAAY,EAAE,MAAM,CAAC,EACzD,EAAC,GAAG,EAAE,WAAW,YAAY,CAAC,IAAI,EAAE,EAAC,CACtC,CAAC;AACJ,CAAC;AARD,0FAQC"}
|
|
@@ -39,12 +39,12 @@ let ControllerBooter = class ControllerBooter extends base_artifact_booter_1.Bas
|
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
ControllerBooter = tslib_1.__decorate([
|
|
43
|
-
types_1.booter('controllers'),
|
|
44
|
-
tslib_1.__param(0, core_1.inject(core_1.CoreBindings.APPLICATION_INSTANCE)),
|
|
45
|
-
tslib_1.__param(1, core_1.inject(keys_1.BootBindings.PROJECT_ROOT)),
|
|
46
|
-
tslib_1.__param(2, core_1.config()),
|
|
47
|
-
tslib_1.__metadata("design:paramtypes", [core_1.Application, String, Object])
|
|
42
|
+
ControllerBooter = (0, tslib_1.__decorate)([
|
|
43
|
+
(0, types_1.booter)('controllers'),
|
|
44
|
+
(0, tslib_1.__param)(0, (0, core_1.inject)(core_1.CoreBindings.APPLICATION_INSTANCE)),
|
|
45
|
+
(0, tslib_1.__param)(1, (0, core_1.inject)(keys_1.BootBindings.PROJECT_ROOT)),
|
|
46
|
+
(0, tslib_1.__param)(2, (0, core_1.config)()),
|
|
47
|
+
(0, tslib_1.__metadata)("design:paramtypes", [core_1.Application, String, Object])
|
|
48
48
|
], ControllerBooter);
|
|
49
49
|
exports.ControllerBooter = ControllerBooter;
|
|
50
50
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controller.booter.js","sourceRoot":"","sources":["../../src/booters/controller.booter.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAyE;AACzE,kCAAqC;AACrC,oCAAiD;AACjD,iEAA0D;AAE1D;;;;;;;;;GASG;AAEH,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,yCAAkB;IACtD,YACoD,GAAgB,EAC/B,WAAmB,EAE/C,mBAAoC,EAAE;QAE7C,KAAK,CACH,WAAW;QACX,4DAA4D;QAC5D,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,0BAAkB,EAAE,gBAAgB,CAAC,CACxD,CAAC;QATgD,QAAG,GAAH,GAAG,CAAa;QAG3D,qBAAgB,GAAhB,gBAAgB,CAAsB;IAO/C,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,IAAI;QACR,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;QACnB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YACzB,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAC3B,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAxBY,gBAAgB;IAD5B,cAAM,
|
|
1
|
+
{"version":3,"file":"controller.booter.js","sourceRoot":"","sources":["../../src/booters/controller.booter.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAyE;AACzE,kCAAqC;AACrC,oCAAiD;AACjD,iEAA0D;AAE1D;;;;;;;;;GASG;AAEH,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,yCAAkB;IACtD,YACoD,GAAgB,EAC/B,WAAmB,EAE/C,mBAAoC,EAAE;QAE7C,KAAK,CACH,WAAW;QACX,4DAA4D;QAC5D,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,0BAAkB,EAAE,gBAAgB,CAAC,CACxD,CAAC;QATgD,QAAG,GAAH,GAAG,CAAa;QAG3D,qBAAgB,GAAhB,gBAAgB,CAAsB;IAO/C,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,IAAI;QACR,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;QACnB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YACzB,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAC3B,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAxBY,gBAAgB;IAD5B,IAAA,cAAM,EAAC,aAAa,CAAC;IAGjB,wBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,oBAAoB,CAAC,CAAA;IACzC,wBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,YAAY,CAAC,CAAA;IACjC,wBAAA,IAAA,aAAM,GAAE,CAAA;kDAF8C,kBAAW;GAFzD,gBAAgB,CAwB5B;AAxBY,4CAAgB;AA0B7B;;GAEG;AACU,QAAA,kBAAkB,GAAoB;IACjD,IAAI,EAAE,CAAC,aAAa,CAAC;IACrB,UAAU,EAAE,CAAC,gBAAgB,CAAC;IAC9B,MAAM,EAAE,IAAI;CACb,CAAC"}
|
|
@@ -52,12 +52,12 @@ let DataSourceBooter = class DataSourceBooter extends base_artifact_booter_1.Bas
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
|
-
DataSourceBooter = tslib_1.__decorate([
|
|
56
|
-
types_1.booter('datasources'),
|
|
57
|
-
tslib_1.__param(0, core_1.inject(core_1.CoreBindings.APPLICATION_INSTANCE)),
|
|
58
|
-
tslib_1.__param(1, core_1.inject(keys_1.BootBindings.PROJECT_ROOT)),
|
|
59
|
-
tslib_1.__param(2, core_1.config()),
|
|
60
|
-
tslib_1.__metadata("design:paramtypes", [Object, String, Object])
|
|
55
|
+
DataSourceBooter = (0, tslib_1.__decorate)([
|
|
56
|
+
(0, types_1.booter)('datasources'),
|
|
57
|
+
(0, tslib_1.__param)(0, (0, core_1.inject)(core_1.CoreBindings.APPLICATION_INSTANCE)),
|
|
58
|
+
(0, tslib_1.__param)(1, (0, core_1.inject)(keys_1.BootBindings.PROJECT_ROOT)),
|
|
59
|
+
(0, tslib_1.__param)(2, (0, core_1.config)()),
|
|
60
|
+
(0, tslib_1.__metadata)("design:paramtypes", [Object, String, Object])
|
|
61
61
|
], DataSourceBooter);
|
|
62
62
|
exports.DataSourceBooter = DataSourceBooter;
|
|
63
63
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasource.booter.js","sourceRoot":"","sources":["../../src/booters/datasource.booter.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAA4D;AAM5D,kCAAqC;AACrC,oCAAiD;AACjD,iEAA0D;AAE1D;;;;;;;;;GASG;AAEH,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,yCAAkB;IACtD,YAES,GAAgC,EACJ,WAAmB,EAE/C,mBAAoC,EAAE;QAE7C,KAAK,CACH,WAAW;QACX,4DAA4D;QAC5D,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,0BAAkB,EAAE,gBAAgB,CAAC,CACxD,CAAC;QATK,QAAG,GAAH,GAAG,CAA6B;QAGhC,qBAAgB,GAAhB,gBAAgB,CAAsB;IAO/C,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,IAAI;QACR,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;QAEnB;;;;WAIG;QACH,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;YAC3B,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE;gBACxB,OAAO,CAAC,IAAI,CACV,wEAAwE;oBACtE,yEAAyE,CAC5E,CAAC;aACH;iBAAM;gBACL,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;oBACzB,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,GAAgC,CAAC,CAAC;gBACxD,CAAC,CAAC,CAAC;aACJ;SACF;IACH,CAAC;CACF,CAAA;AAxCY,gBAAgB;IAD5B,cAAM,
|
|
1
|
+
{"version":3,"file":"datasource.booter.js","sourceRoot":"","sources":["../../src/booters/datasource.booter.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAA4D;AAM5D,kCAAqC;AACrC,oCAAiD;AACjD,iEAA0D;AAE1D;;;;;;;;;GASG;AAEH,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,yCAAkB;IACtD,YAES,GAAgC,EACJ,WAAmB,EAE/C,mBAAoC,EAAE;QAE7C,KAAK,CACH,WAAW;QACX,4DAA4D;QAC5D,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,0BAAkB,EAAE,gBAAgB,CAAC,CACxD,CAAC;QATK,QAAG,GAAH,GAAG,CAA6B;QAGhC,qBAAgB,GAAhB,gBAAgB,CAAsB;IAO/C,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,IAAI;QACR,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;QAEnB;;;;WAIG;QACH,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;YAC3B,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE;gBACxB,OAAO,CAAC,IAAI,CACV,wEAAwE;oBACtE,yEAAyE,CAC5E,CAAC;aACH;iBAAM;gBACL,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;oBACzB,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,GAAgC,CAAC,CAAC;gBACxD,CAAC,CAAC,CAAC;aACJ;SACF;IACH,CAAC;CACF,CAAA;AAxCY,gBAAgB;IAD5B,IAAA,cAAM,EAAC,aAAa,CAAC;IAGjB,wBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,oBAAoB,CAAC,CAAA;IAEzC,wBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,YAAY,CAAC,CAAA;IACjC,wBAAA,IAAA,aAAM,GAAE,CAAA;;GALA,gBAAgB,CAwC5B;AAxCY,4CAAgB;AA0C7B;;GAEG;AACU,QAAA,kBAAkB,GAAoB;IACjD,IAAI,EAAE,CAAC,aAAa,CAAC;IACrB,UAAU,EAAE,CAAC,gBAAgB,CAAC;IAC9B,MAAM,EAAE,IAAI;CACb,CAAC"}
|
package/dist/booters/index.js
CHANGED
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
const tslib_1 = require("tslib");
|
|
8
|
-
tslib_1.__exportStar(require("./application-metadata.booter"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./base-artifact.booter"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./booter-utils"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./component-application.booter"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./controller.booter"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./datasource.booter"), exports);
|
|
14
|
-
tslib_1.__exportStar(require("./interceptor.booter"), exports);
|
|
15
|
-
tslib_1.__exportStar(require("./lifecyle-observer.booter"), exports);
|
|
16
|
-
tslib_1.__exportStar(require("./model-api.booter"), exports);
|
|
17
|
-
tslib_1.__exportStar(require("./model.booter"), exports);
|
|
18
|
-
tslib_1.__exportStar(require("./repository.booter"), exports);
|
|
19
|
-
tslib_1.__exportStar(require("./service.booter"), exports);
|
|
8
|
+
(0, tslib_1.__exportStar)(require("./application-metadata.booter"), exports);
|
|
9
|
+
(0, tslib_1.__exportStar)(require("./base-artifact.booter"), exports);
|
|
10
|
+
(0, tslib_1.__exportStar)(require("./booter-utils"), exports);
|
|
11
|
+
(0, tslib_1.__exportStar)(require("./component-application.booter"), exports);
|
|
12
|
+
(0, tslib_1.__exportStar)(require("./controller.booter"), exports);
|
|
13
|
+
(0, tslib_1.__exportStar)(require("./datasource.booter"), exports);
|
|
14
|
+
(0, tslib_1.__exportStar)(require("./interceptor.booter"), exports);
|
|
15
|
+
(0, tslib_1.__exportStar)(require("./lifecyle-observer.booter"), exports);
|
|
16
|
+
(0, tslib_1.__exportStar)(require("./model-api.booter"), exports);
|
|
17
|
+
(0, tslib_1.__exportStar)(require("./model.booter"), exports);
|
|
18
|
+
(0, tslib_1.__exportStar)(require("./repository.booter"), exports);
|
|
19
|
+
(0, tslib_1.__exportStar)(require("./service.booter"), exports);
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/booters/index.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;AAEhE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/booters/index.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;AAEhE,6EAA8C;AAC9C,sEAAuC;AACvC,8DAA+B;AAC/B,8EAA+C;AAC/C,mEAAoC;AACpC,mEAAoC;AACpC,oEAAqC;AACrC,0EAA2C;AAC3C,kEAAmC;AACnC,8DAA+B;AAC/B,mEAAoC;AACpC,gEAAiC"}
|
|
@@ -7,11 +7,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
exports.InterceptorProviderDefaults = exports.InterceptorProviderBooter = void 0;
|
|
8
8
|
const tslib_1 = require("tslib");
|
|
9
9
|
const core_1 = require("@loopback/core");
|
|
10
|
-
const debug_1 = tslib_1.__importDefault(require("debug"));
|
|
10
|
+
const debug_1 = (0, tslib_1.__importDefault)(require("debug"));
|
|
11
11
|
const keys_1 = require("../keys");
|
|
12
12
|
const types_1 = require("../types");
|
|
13
13
|
const base_artifact_booter_1 = require("./base-artifact.booter");
|
|
14
|
-
const debug = debug_1.default('loopback:boot:interceptor-booter');
|
|
14
|
+
const debug = (0, debug_1.default)('loopback:boot:interceptor-booter');
|
|
15
15
|
/**
|
|
16
16
|
* A class that extends BaseArtifactBooter to boot the 'InterceptorProvider' artifact type.
|
|
17
17
|
*
|
|
@@ -43,12 +43,12 @@ let InterceptorProviderBooter = class InterceptorProviderBooter extends base_art
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
-
InterceptorProviderBooter = tslib_1.__decorate([
|
|
47
|
-
types_1.booter('interceptors'),
|
|
48
|
-
tslib_1.__param(0, core_1.inject(core_1.CoreBindings.APPLICATION_INSTANCE)),
|
|
49
|
-
tslib_1.__param(1, core_1.inject(keys_1.BootBindings.PROJECT_ROOT)),
|
|
50
|
-
tslib_1.__param(2, core_1.config()),
|
|
51
|
-
tslib_1.__metadata("design:paramtypes", [core_1.Application, String, Object])
|
|
46
|
+
InterceptorProviderBooter = (0, tslib_1.__decorate)([
|
|
47
|
+
(0, types_1.booter)('interceptors'),
|
|
48
|
+
(0, tslib_1.__param)(0, (0, core_1.inject)(core_1.CoreBindings.APPLICATION_INSTANCE)),
|
|
49
|
+
(0, tslib_1.__param)(1, (0, core_1.inject)(keys_1.BootBindings.PROJECT_ROOT)),
|
|
50
|
+
(0, tslib_1.__param)(2, (0, core_1.config)()),
|
|
51
|
+
(0, tslib_1.__metadata)("design:paramtypes", [core_1.Application, String, Object])
|
|
52
52
|
], InterceptorProviderBooter);
|
|
53
53
|
exports.InterceptorProviderBooter = InterceptorProviderBooter;
|
|
54
54
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interceptor.booter.js","sourceRoot":"","sources":["../../src/booters/interceptor.booter.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAQwB;AACxB
|
|
1
|
+
{"version":3,"file":"interceptor.booter.js","sourceRoot":"","sources":["../../src/booters/interceptor.booter.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAQwB;AACxB,+DAAiC;AACjC,kCAAqC;AACrC,oCAAiD;AACjD,iEAA0D;AAE1D,MAAM,KAAK,GAAG,IAAA,eAAY,EAAC,kCAAkC,CAAC,CAAC;AAI/D;;;;;;;;GAQG;AAEH,IAAa,yBAAyB,GAAtC,MAAa,yBAA0B,SAAQ,yCAAkB;IAG/D,YAES,GAAgB,EACY,WAAmB,EAE/C,oBAAqC,EAAE;QAE9C,KAAK,CACH,WAAW;QACX,qEAAqE;QACrE,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,mCAA2B,EAAE,iBAAiB,CAAC,CAClE,CAAC;QATK,QAAG,GAAH,GAAG,CAAa;QAGhB,sBAAiB,GAAjB,iBAAiB,CAAsB;IAOhD,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,IAAI;QACR,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;QAEnB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,OAAqC,CAAC;QAC/D,KAAK,MAAM,WAAW,IAAI,IAAI,CAAC,YAAY,EAAE;YAC3C,KAAK,CAAC,sBAAsB,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;YAChD,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;YAClD,KAAK,CAAC,qCAAqC,EAAE,OAAO,CAAC,CAAC;SACvD;IACH,CAAC;CACF,CAAA;AA/BY,yBAAyB;IADrC,IAAA,cAAM,EAAC,cAAc,CAAC;IAKlB,wBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,oBAAoB,CAAC,CAAA;IAEzC,wBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,YAAY,CAAC,CAAA;IACjC,wBAAA,IAAA,aAAM,GAAE,CAAA;kDAFG,kBAAW;GALd,yBAAyB,CA+BrC;AA/BY,8DAAyB;AAiCtC;;GAEG;AACU,QAAA,2BAA2B,GAAoB;IAC1D,IAAI,EAAE,CAAC,cAAc,CAAC;IACtB,UAAU,EAAE,CAAC,iBAAiB,CAAC;IAC/B,MAAM,EAAE,IAAI;CACb,CAAC"}
|
|
@@ -8,11 +8,11 @@ exports.LifeCycleObserverDefaults = exports.LifeCycleObserverBooter = void 0;
|
|
|
8
8
|
const tslib_1 = require("tslib");
|
|
9
9
|
const core_1 = require("@loopback/core");
|
|
10
10
|
const core_2 = require("@loopback/core");
|
|
11
|
-
const debug_1 = tslib_1.__importDefault(require("debug"));
|
|
11
|
+
const debug_1 = (0, tslib_1.__importDefault)(require("debug"));
|
|
12
12
|
const keys_1 = require("../keys");
|
|
13
13
|
const types_1 = require("../types");
|
|
14
14
|
const base_artifact_booter_1 = require("./base-artifact.booter");
|
|
15
|
-
const debug = debug_1.default('loopback:boot:lifecycle-observer-booter');
|
|
15
|
+
const debug = (0, debug_1.default)('loopback:boot:lifecycle-observer-booter');
|
|
16
16
|
/**
|
|
17
17
|
* A class that extends BaseArtifactBooter to boot the 'LifeCycleObserver' artifact type.
|
|
18
18
|
*
|
|
@@ -44,12 +44,12 @@ let LifeCycleObserverBooter = class LifeCycleObserverBooter extends base_artifac
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
|
-
LifeCycleObserverBooter = tslib_1.__decorate([
|
|
48
|
-
types_1.booter('observers'),
|
|
49
|
-
tslib_1.__param(0, core_1.inject(core_2.CoreBindings.APPLICATION_INSTANCE)),
|
|
50
|
-
tslib_1.__param(1, core_1.inject(keys_1.BootBindings.PROJECT_ROOT)),
|
|
51
|
-
tslib_1.__param(2, core_1.config()),
|
|
52
|
-
tslib_1.__metadata("design:paramtypes", [core_2.Application, String, Object])
|
|
47
|
+
LifeCycleObserverBooter = (0, tslib_1.__decorate)([
|
|
48
|
+
(0, types_1.booter)('observers'),
|
|
49
|
+
(0, tslib_1.__param)(0, (0, core_1.inject)(core_2.CoreBindings.APPLICATION_INSTANCE)),
|
|
50
|
+
(0, tslib_1.__param)(1, (0, core_1.inject)(keys_1.BootBindings.PROJECT_ROOT)),
|
|
51
|
+
(0, tslib_1.__param)(2, (0, core_1.config)()),
|
|
52
|
+
(0, tslib_1.__metadata)("design:paramtypes", [core_2.Application, String, Object])
|
|
53
53
|
], LifeCycleObserverBooter);
|
|
54
54
|
exports.LifeCycleObserverBooter = LifeCycleObserverBooter;
|
|
55
55
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecyle-observer.booter.js","sourceRoot":"","sources":["../../src/booters/lifecyle-observer.booter.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAA2D;AAC3D,yCAKwB;AACxB
|
|
1
|
+
{"version":3,"file":"lifecyle-observer.booter.js","sourceRoot":"","sources":["../../src/booters/lifecyle-observer.booter.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAA2D;AAC3D,yCAKwB;AACxB,+DAAiC;AACjC,kCAAqC;AACrC,oCAAiD;AACjD,iEAA0D;AAE1D,MAAM,KAAK,GAAG,IAAA,eAAY,EAAC,yCAAyC,CAAC,CAAC;AAItE;;;;;;;;GAQG;AAEH,IAAa,uBAAuB,GAApC,MAAa,uBAAwB,SAAQ,yCAAkB;IAG7D,YAES,GAA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
const model_api_builder_1 = require("@loopback/model-api-builder");
|
|
11
|
-
const debug_1 = tslib_1.__importDefault(require("debug"));
|
|
12
|
-
const path = tslib_1.__importStar(require("path"));
|
|
11
|
+
const debug_1 = (0, tslib_1.__importDefault)(require("debug"));
|
|
12
|
+
const path = (0, tslib_1.__importStar)(require("path"));
|
|
13
13
|
const keys_1 = require("../keys");
|
|
14
14
|
const types_1 = require("../types");
|
|
15
15
|
const base_artifact_booter_1 = require("./base-artifact.booter");
|
|
16
|
-
const debug = debug_1.default('loopback:boot:model-api');
|
|
16
|
+
const debug = (0, debug_1.default)('loopback:boot:model-api');
|
|
17
17
|
let ModelApiBooter = class ModelApiBooter extends base_artifact_booter_1.BaseArtifactBooter {
|
|
18
18
|
constructor(app, projectRoot, getModelApiBuilders, booterConfig = {}) {
|
|
19
19
|
// TODO assert that `app` has RepositoryMixin members
|
|
@@ -71,14 +71,14 @@ let ModelApiBooter = class ModelApiBooter extends base_artifact_booter_1.BaseArt
|
|
|
71
71
|
return builder;
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
-
ModelApiBooter = tslib_1.__decorate([
|
|
75
|
-
types_1.booter('modelApi'),
|
|
76
|
-
core_1.extensionPoint(model_api_builder_1.MODEL_API_BUILDER_PLUGINS),
|
|
77
|
-
tslib_1.__param(0, core_1.inject(core_1.CoreBindings.APPLICATION_INSTANCE)),
|
|
78
|
-
tslib_1.__param(1, core_1.inject(keys_1.BootBindings.PROJECT_ROOT)),
|
|
79
|
-
tslib_1.__param(2, core_1.extensions()),
|
|
80
|
-
tslib_1.__param(3, core_1.config()),
|
|
81
|
-
tslib_1.__metadata("design:paramtypes", [Object, String, Function, Object])
|
|
74
|
+
ModelApiBooter = (0, tslib_1.__decorate)([
|
|
75
|
+
(0, types_1.booter)('modelApi'),
|
|
76
|
+
(0, core_1.extensionPoint)(model_api_builder_1.MODEL_API_BUILDER_PLUGINS),
|
|
77
|
+
(0, tslib_1.__param)(0, (0, core_1.inject)(core_1.CoreBindings.APPLICATION_INSTANCE)),
|
|
78
|
+
(0, tslib_1.__param)(1, (0, core_1.inject)(keys_1.BootBindings.PROJECT_ROOT)),
|
|
79
|
+
(0, tslib_1.__param)(2, (0, core_1.extensions)()),
|
|
80
|
+
(0, tslib_1.__param)(3, (0, core_1.config)()),
|
|
81
|
+
(0, tslib_1.__metadata)("design:paramtypes", [Object, String, Function, Object])
|
|
82
82
|
], ModelApiBooter);
|
|
83
83
|
exports.ModelApiBooter = ModelApiBooter;
|
|
84
84
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-api.booter.js","sourceRoot":"","sources":["../../src/booters/model-api.booter.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAOwB;AACxB,mEAIqC;AAErC
|
|
1
|
+
{"version":3,"file":"model-api.booter.js","sourceRoot":"","sources":["../../src/booters/model-api.booter.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAOwB;AACxB,mEAIqC;AAErC,+DAAiC;AACjC,wDAA6B;AAC7B,kCAAqC;AACrC,oCAAiD;AACjD,iEAA0D;AAE1D,MAAM,KAAK,GAAG,IAAA,eAAY,EAAC,yBAAyB,CAAC,CAAC;AAItD,IAAa,cAAc,GAA3B,MAAa,cAAe,SAAQ,yCAAkB;IACpD,YAES,GAAgC,EACJ,WAAmB,EAE/C,mBAA8C,EAE9C,eAAgC,EAAE;QAEzC,qDAAqD;QAErD,KAAK,CACH,WAAW;QACX,iDAAiD;QACjD,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,oBAAY,EAAE,YAAY,CAAC,CAC9C,CAAC;QAbK,QAAG,GAAH,GAAG,CAA6B;QAGhC,wBAAmB,GAAnB,mBAAmB,CAA2B;QAE9C,iBAAY,GAAZ,YAAY,CAAsB;IAS3C,CAAC;IAED;;OAEG;IACH,K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C,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,KAAK,OAAO,CAAC,CAAC;QAC7D,IAAI,CAAC,OAAO,EAAE;YACZ,MAAM,iBAAiB,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACrE,MAAM,IAAI,KAAK,CACb,4BAA4B,OAAO,KAAK;gBACtC,uBAAuB,iBAAiB,IAAI,QAAQ,EAAE,CACzD,CAAC;SACH;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAA;AA9EY,cAAc;IAF1B,IAAA,cAAM,EAAC,UAAU,CAAC;IAClB,IAAA,qBAAc,EAAC,6CAAyB,CAAC;IAGrC,wBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,oBAAoB,CAAC,CAAA;IAEzC,wBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,YAAY,CAAC,CAAA;IACjC,wBAAA,IAAA,iBAAU,GAAE,CAAA;IAEZ,wBAAA,IAAA,aAAM,GAAE,CAAA;;GAPA,cAAc,CA8E1B;AA9EY,wCAAc;AAgF3B;;GAEG;AACU,QAAA,YAAY,GAAoB;IAC3C,IAAI,EAAE,CAAC,iBAAiB,CAAC;IACzB,UAAU,EAAE,CAAC,YAAY,CAAC;IAC1B,MAAM,EAAE,IAAI;CACb,CAAC"}
|
|
@@ -8,11 +8,11 @@ exports.ModelDefaults = exports.ModelBooter = void 0;
|
|
|
8
8
|
const tslib_1 = require("tslib");
|
|
9
9
|
const core_1 = require("@loopback/core");
|
|
10
10
|
const repository_1 = require("@loopback/repository");
|
|
11
|
-
const debug_1 = tslib_1.__importDefault(require("debug"));
|
|
11
|
+
const debug_1 = (0, tslib_1.__importDefault)(require("debug"));
|
|
12
12
|
const keys_1 = require("../keys");
|
|
13
13
|
const types_1 = require("../types");
|
|
14
14
|
const base_artifact_booter_1 = require("./base-artifact.booter");
|
|
15
|
-
const debug = debug_1.default('loopback:boot:model-booter');
|
|
15
|
+
const debug = (0, debug_1.default)('loopback:boot:model-booter');
|
|
16
16
|
/**
|
|
17
17
|
* A class that extends BaseArtifactBooter to boot the 'Model' artifact type.
|
|
18
18
|
*
|
|
@@ -48,12 +48,12 @@ let ModelBooter = class ModelBooter extends base_artifact_booter_1.BaseArtifactB
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
ModelBooter = tslib_1.__decorate([
|
|
52
|
-
types_1.booter('models'),
|
|
53
|
-
tslib_1.__param(0, core_1.inject(core_1.CoreBindings.APPLICATION_INSTANCE)),
|
|
54
|
-
tslib_1.__param(1, core_1.inject(keys_1.BootBindings.PROJECT_ROOT)),
|
|
55
|
-
tslib_1.__param(2, core_1.config()),
|
|
56
|
-
tslib_1.__metadata("design:paramtypes", [Object, String, Object])
|
|
51
|
+
ModelBooter = (0, tslib_1.__decorate)([
|
|
52
|
+
(0, types_1.booter)('models'),
|
|
53
|
+
(0, tslib_1.__param)(0, (0, core_1.inject)(core_1.CoreBindings.APPLICATION_INSTANCE)),
|
|
54
|
+
(0, tslib_1.__param)(1, (0, core_1.inject)(keys_1.BootBindings.PROJECT_ROOT)),
|
|
55
|
+
(0, tslib_1.__param)(2, (0, core_1.config)()),
|
|
56
|
+
(0, tslib_1.__metadata)("design:paramtypes", [Object, String, Object])
|
|
57
57
|
], ModelBooter);
|
|
58
58
|
exports.ModelBooter = ModelBooter;
|
|
59
59
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.booter.js","sourceRoot":"","sources":["../../src/booters/model.booter.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAyE;AACzE,qDAG8B;AAC9B
|
|
1
|
+
{"version":3,"file":"model.booter.js","sourceRoot":"","sources":["../../src/booters/model.booter.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,8BAA8B;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M,GAAE,CAAA;;GALA,WAAW,CAkCvB;AAlCY,kCAAW;AAoCxB;;GAEG;AACU,QAAA,aAAa,GAAoB;IAC5C,IAAI,EAAE,CAAC,QAAQ,CAAC;IAChB,UAAU,EAAE,CAAC,WAAW,CAAC;IACzB,MAAM,EAAE,IAAI;CACb,CAAC;AAEF,SAAS,YAAY,CAAC,GAAyB;IAC7C,OAAO,gCAAmB,CAAC,gBAAgB,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC;AAC3D,CAAC"}
|
|
@@ -53,12 +53,12 @@ let RepositoryBooter = class RepositoryBooter extends base_artifact_booter_1.Bas
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
|
-
RepositoryBooter = tslib_1.__decorate([
|
|
57
|
-
types_1.booter('repositories'),
|
|
58
|
-
tslib_1.__param(0, core_1.inject(core_1.CoreBindings.APPLICATION_INSTANCE)),
|
|
59
|
-
tslib_1.__param(1, core_1.inject(keys_1.BootBindings.PROJECT_ROOT)),
|
|
60
|
-
tslib_1.__param(2, core_1.config()),
|
|
61
|
-
tslib_1.__metadata("design:paramtypes", [Object, String, Object])
|
|
56
|
+
RepositoryBooter = (0, tslib_1.__decorate)([
|
|
57
|
+
(0, types_1.booter)('repositories'),
|
|
58
|
+
(0, tslib_1.__param)(0, (0, core_1.inject)(core_1.CoreBindings.APPLICATION_INSTANCE)),
|
|
59
|
+
(0, tslib_1.__param)(1, (0, core_1.inject)(keys_1.BootBindings.PROJECT_ROOT)),
|
|
60
|
+
(0, tslib_1.__param)(2, (0, core_1.config)()),
|
|
61
|
+
(0, tslib_1.__metadata)("design:paramtypes", [Object, String, Object])
|
|
62
62
|
], RepositoryBooter);
|
|
63
63
|
exports.RepositoryBooter = RepositoryBooter;
|
|
64
64
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository.booter.js","sourceRoot":"","sources":["../../src/booters/repository.booter.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,8B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
|
8
8
|
const tslib_1 = require("tslib");
|
|
9
9
|
const core_1 = require("@loopback/core");
|
|
10
|
-
const debug_1 = tslib_1.__importDefault(require("debug"));
|
|
10
|
+
const debug_1 = (0, tslib_1.__importDefault)(require("debug"));
|
|
11
11
|
const keys_1 = require("../keys");
|
|
12
12
|
const types_1 = require("../types");
|
|
13
13
|
const base_artifact_booter_1 = require("./base-artifact.booter");
|
|
14
|
-
const debug = debug_1.default('loopback:boot:service-booter');
|
|
14
|
+
const debug = (0, debug_1.default)('loopback:boot:service-booter');
|
|
15
15
|
/**
|
|
16
16
|
* A class that extends BaseArtifactBooter to boot the 'Service' artifact type.
|
|
17
17
|
* Discovered services are bound using `app.service()`.
|
|
@@ -45,12 +45,12 @@ let ServiceBooter = class ServiceBooter extends base_artifact_booter_1.BaseArtif
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
ServiceBooter = tslib_1.__decorate([
|
|
49
|
-
types_1.booter('services'),
|
|
50
|
-
tslib_1.__param(0, core_1.inject(core_1.CoreBindings.APPLICATION_INSTANCE)),
|
|
51
|
-
tslib_1.__param(1, core_1.inject(keys_1.BootBindings.PROJECT_ROOT)),
|
|
52
|
-
tslib_1.__param(2, core_1.config()),
|
|
53
|
-
tslib_1.__metadata("design:paramtypes", [Object, String, Object])
|
|
48
|
+
ServiceBooter = (0, tslib_1.__decorate)([
|
|
49
|
+
(0, types_1.booter)('services'),
|
|
50
|
+
(0, tslib_1.__param)(0, (0, core_1.inject)(core_1.CoreBindings.APPLICATION_INSTANCE)),
|
|
51
|
+
(0, tslib_1.__param)(1, (0, core_1.inject)(keys_1.BootBindings.PROJECT_ROOT)),
|
|
52
|
+
(0, tslib_1.__param)(2, (0, core_1.config)()),
|
|
53
|
+
(0, tslib_1.__metadata)("design:paramtypes", [Object, String, Object])
|
|
54
54
|
], ServiceBooter);
|
|
55
55
|
exports.ServiceBooter = ServiceBooter;
|
|
56
56
|
/**
|
|
@@ -70,14 +70,14 @@ function isBindableClass(cls) {
|
|
|
70
70
|
if (core_1.MetadataInspector.getClassMetadata(core_1.BINDING_METADATA_KEY, cls)) {
|
|
71
71
|
return true;
|
|
72
72
|
}
|
|
73
|
-
if (core_1.hasInjections(cls)) {
|
|
73
|
+
if ((0, core_1.hasInjections)(cls)) {
|
|
74
74
|
return true;
|
|
75
75
|
}
|
|
76
76
|
if (isServiceProvider(cls)) {
|
|
77
77
|
debug('Provider class found: %s', cls.name);
|
|
78
78
|
return true;
|
|
79
79
|
}
|
|
80
|
-
if (core_1.isDynamicValueProviderClass(cls)) {
|
|
80
|
+
if ((0, core_1.isDynamicValueProviderClass)(cls)) {
|
|
81
81
|
debug('Dynamic value provider class found: %s', cls.name);
|
|
82
82
|
return true;
|
|
83
83
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.booter.js","sourceRoot":"","sources":["../../src/booters/service.booter.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCASwB;AAExB
|
|
1
|
+
{"version":3,"file":"service.booter.js","sourceRoot":"","sources":["../../src/booters/service.booter.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCASwB;AAExB,+DAAiC;AACjC,kCAAqC;AACrC,oCAAiD;AACjD,iEAA0D;AAE1D,MAAM,KAAK,GAAG,IAAA,eAAY,EAAC,8BAA8B,CAAC,CAAC;AAE3D;;;;;;;;;GASG;AAEH,IAAa,aAAa,GAA1B,MAAa,aAAc,SAAQ,yCAAkB;IACnD,YAES,GAA4B,EACA,WAAmB,EAE/C,gBAAiC,EAAE;QAE1C,KAAK,CACH,WAAW;QACX,yDAAyD;QACzD,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,uBAAe,EAAE,aAAa,CAAC,CAClD,CAAC;QATK,QAAG,GAAH,GAAG,CAAyB;QAG5B,kBA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