@loopback/example-express-composition 4.1.1 → 5.0.1
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/.eslintrc.js +1 -1
- package/CHANGELOG.md +30 -0
- package/LICENSE +2 -2
- package/dist/__tests__/acceptance/express.acceptance.js +1 -1
- package/dist/__tests__/acceptance/express.acceptance.js.map +1 -1
- package/dist/__tests__/acceptance/note.acceptance.js +2 -2
- package/dist/__tests__/acceptance/note.acceptance.js.map +1 -1
- package/dist/__tests__/acceptance/ping.controller.acceptance.js +1 -1
- package/dist/__tests__/acceptance/ping.controller.acceptance.js.map +1 -1
- package/dist/__tests__/acceptance/test-helper.d.ts +1 -1
- package/dist/__tests__/acceptance/test-helper.js +2 -2
- package/dist/__tests__/acceptance/test-helper.js.map +1 -1
- package/dist/application.d.ts +3 -3
- package/dist/application.js +2 -2
- package/dist/application.js.map +1 -1
- package/dist/controllers/index.js +2 -2
- package/dist/controllers/index.js.map +1 -1
- package/dist/controllers/note.controller.js +47 -47
- package/dist/controllers/note.controller.js.map +1 -1
- package/dist/controllers/ping.controller.js +9 -9
- package/dist/controllers/ping.controller.js.map +1 -1
- package/dist/datasources/ds.datasource.js +4 -4
- package/dist/datasources/ds.datasource.js.map +1 -1
- package/dist/datasources/index.js +2 -2
- package/dist/datasources/index.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/migrate.js +1 -1
- package/dist/migrate.js.map +1 -1
- package/dist/models/index.js +2 -2
- package/dist/models/index.js.map +1 -1
- package/dist/models/note.model.js +9 -9
- package/dist/models/note.model.js.map +1 -1
- package/dist/observers/hello.observer.d.ts +1 -2
- package/dist/observers/hello.observer.js +2 -2
- package/dist/observers/hello.observer.js.map +1 -1
- package/dist/observers/index.js +2 -2
- package/dist/observers/index.js.map +1 -1
- package/dist/repositories/index.js +2 -2
- package/dist/repositories/index.js.map +1 -1
- package/dist/repositories/note.repository.js +4 -4
- package/dist/repositories/note.repository.js.map +1 -1
- package/dist/sequence.js +1 -1
- package/dist/sequence.js.map +1 -1
- package/dist/server.js +3 -3
- package/dist/server.js.map +1 -1
- package/package.json +19 -19
- package/src/__tests__/acceptance/express.acceptance.ts +1 -1
- package/src/__tests__/acceptance/note.acceptance.ts +2 -2
- package/src/__tests__/acceptance/ping.controller.acceptance.ts +2 -2
- package/src/__tests__/acceptance/test-helper.ts +3 -3
- package/src/application.ts +1 -1
- package/src/controllers/index.ts +1 -1
- package/src/controllers/note.controller.ts +1 -1
- package/src/controllers/ping.controller.ts +2 -2
- package/src/datasources/ds.datasource.ts +1 -1
- package/src/datasources/index.ts +1 -1
- package/src/index.ts +1 -1
- package/src/migrate.ts +1 -1
- package/src/models/index.ts +1 -1
- package/src/models/note.model.ts +1 -1
- package/src/observers/hello.observer.ts +2 -5
- package/src/observers/index.ts +1 -1
- package/src/repositories/index.ts +1 -1
- package/src/repositories/note.repository.ts +1 -1
- package/src/sequence.ts +1 -1
- package/src/server.ts +1 -1
package/.eslintrc.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-express-composition
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.0.1](https://github.com/loopbackio/loopback-next/compare/@loopback/example-express-composition@5.0.0...@loopback/example-express-composition@5.0.1) (2022-06-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @loopback/example-express-composition
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [5.0.0](https://github.com/loopbackio/loopback-next/compare/@loopback/example-express-composition@4.1.2...@loopback/example-express-composition@5.0.0) (2022-05-05)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### ⚠ BREAKING CHANGES
|
|
18
|
+
|
|
19
|
+
* remove node v12 support
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* add support for node v18 ([ccb4c61](https://github.com/loopbackio/loopback-next/commit/ccb4c61307d94ab7bb07a19c547dfc4fa7d388a8))
|
|
24
|
+
* remove node v12 support ([5f66e5b](https://github.com/loopbackio/loopback-next/commit/5f66e5bd288ba806b3aa6550fc29c5009de8b60d))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## [4.1.2](https://github.com/loopbackio/loopback-next/compare/@loopback/example-express-composition@4.1.1...@loopback/example-express-composition@4.1.2) (2022-03-29)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package @loopback/example-express-composition
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
## [4.1.1](https://github.com/loopbackio/loopback-next/compare/@loopback/example-express-composition@4.1.0...@loopback/example-express-composition@4.1.1) (2022-02-28)
|
|
7
37
|
|
|
8
38
|
**Note:** Version bump only for package @loopback/example-express-composition
|
package/LICENSE
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-express-composition
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"express.acceptance.js","sourceRoot":"","sources":["../../../src/__tests__/acceptance/express.acceptance.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"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T,GAAG,CAAC,eAAe,CAAC;aACpB,MAAM,CAAC,GAAG,CAAC;YACZ,uEAAuE;YACvE,qEAAqE;aACpE,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wBAAwB,EAAE,KAAK,IAAI,EAAE;QACtC,MAAM,MAAM;aACT,GAAG,CAAC,gBAAgB,CAAC;aACrB,MAAM,CAAC,GAAG,CAAC;aACX,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC;aAC9B,MAAM,CAAC,6BAA6B,CAAC;aACrC,MAAM,CAAC,8BAA8B,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2BAA2B,EAAE,KAAK,IAAI,EAAE;QACzC,MAAM,QAAQ,GAAkB,MAAM,MAAM,CAAC,KAAK,CAAC,GAAG,CACpD,kCAAkC,CACnC,CAAC;QACF,IAAA,gBAAM,EAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC9C,IAAA,gBAAM,EAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IACtD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-express-composition
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
const testlab_1 = require("@loopback/testlab");
|
|
8
|
-
const test_helper_1 = require("./test-helper");
|
|
9
8
|
const repositories_1 = require("../../repositories");
|
|
9
|
+
const test_helper_1 = require("./test-helper");
|
|
10
10
|
describe('NoteApplication', () => {
|
|
11
11
|
let server;
|
|
12
12
|
let client;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"note.acceptance.js","sourceRoot":"","sources":["../../../src/__tests__/acceptance/note.acceptance.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"note.acceptance.js","sourceRoot":"","sources":["../../../src/__tests__/acceptance/note.acceptance.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,qDAAqD;AACrD,+CAA+C;AAC/C,gEAAgE;;AAEhE,+CAAiD;AAEjD,qDAAkD;AAElD,+CAAiE;AAEjE,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,IAAI,MAAqB,CAAC;IAC1B,IAAI,MAAc,CAAC;IACnB,IAAI,KAAsB,CAAC;IAC3B,IAAI,QAAwB,CAAC;IAE7B,MAAM,CAAC,kBAAkB,EAAE,KAAK,IAAI,EAAE;QACpC,CAAC,EAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAC,GAAG,MAAM,IAAA,qCAAuB,GAAE,CAAC,CAAC;QAC5D,MAAM,sBAAsB,EAAE,CAAC;QAC/B,MAAM,mBAAmB,EAAE,CAAC;IAC9B,CAAC,CAAC,CAAC;IAEH,UAAU,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,QAAQ,CAAC,SAAS,EAAE,CAAC;IAC7B,CAAC,CAAC,CAAC;IAEH,KAAK,CAAC,oBAAoB,EAAE,KAAK,IAAI,EAAE;QACrC,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;IACtB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gBAAgB,EAAE,KAAK;QACxB,MAAM,IAAI,GAAG,IAAA,uBAAS,GAAE,CAAC;QACzB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,IAAI,C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AEH,KAAK,UAAU,mBAAmB;QAChC,QAAQ,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,6BAAc,CAAC,CAAC;IACvD,CAAC;IAED,KAAK,UAAU,sBAAsB;QACnC;;;WAGG;QACH,KAAK,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC,EAAE,CAAC;YACrC,IAAI,EAAE,IAAI;YACV,SAAS,EAAE,QAAQ;SACpB,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-express-composition
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ping.controller.acceptance.js","sourceRoot":"","sources":["../../../src/__tests__/acceptance/ping.controller.acceptance.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"ping.controller.acceptance.js","sourceRoot":"","sources":["../../../src/__tests__/acceptance/ping.controller.acceptance.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,qDAAqD;AACrD,+CAA+C;AAC/C,gEAAgE;;AAEhE,+CAAiD;AAEjD,+CAAsD;AAEtD,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,IAAI,MAAqB,CAAC;IAC1B,IAAI,MAAc,CAAC;IAEnB,MAAM,CAAC,kBAAkB,EAAE,KAAK,IAAI,EAAE;QACpC,CAAC,EAAC,MAAM,EAAE,MAAM,EAAC,GAAG,MAAM,IAAA,qCAAuB,GAAE,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;IAEH,KAAK,CAAC,oBAAoB,EAAE,KAAK,IAAI,EAAE;QACrC,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;IACtB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mBAAmB,EAAE,KAAK,IAAI,EAAE;QACjC,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAChE,IAAA,gBAAM,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,EAAC,QAAQ,EAAE,qBAAqB,EAAC,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Client } from '@loopback/testlab';
|
|
2
2
|
import { NoteApplication } from '../../application';
|
|
3
|
-
import { ExpressServer } from '../../server';
|
|
4
3
|
import { Note } from '../../models/note.model';
|
|
4
|
+
import { ExpressServer } from '../../server';
|
|
5
5
|
export declare function setupExpressApplication(): Promise<AppWithClient>;
|
|
6
6
|
export interface AppWithClient {
|
|
7
7
|
server: ExpressServer;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-express-composition
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.givenNote = exports.setupExpressApplication = void 0;
|
|
8
8
|
const testlab_1 = require("@loopback/testlab");
|
|
9
|
-
const server_1 = require("../../server");
|
|
10
9
|
const note_model_1 = require("../../models/note.model");
|
|
10
|
+
const server_1 = require("../../server");
|
|
11
11
|
async function setupExpressApplication() {
|
|
12
12
|
const server = new server_1.ExpressServer({ rest: (0, testlab_1.givenHttpServerConfig)() });
|
|
13
13
|
await server.boot();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-helper.js","sourceRoot":"","sources":["../../../src/__tests__/acceptance/test-helper.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"test-helper.js","sourceRoot":"","sources":["../../../src/__tests__/acceptance/test-helper.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,qDAAqD;AACrD,+CAA+C;AAC/C,gEAAgE;;;AAEhE,+CAA2E;AAE3E,wDAA6C;AAC7C,yCAA2C;AAEpC,KAAK,UAAU,uBAAuB;IAC3C,MAAM,MAAM,GAAG,IAAI,sBAAa,CAAC,EAAC,IAAI,EAAE,IAAA,+BAAqB,GAAE,EAAC,CAAC,CAAC;IAClE,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;IACpB,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;IAErB,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;IAE3B,MAAM,MAAM,GAAG,IAAA,mBAAS,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAErC,OAAO,EAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAC,CAAC;AACjC,CAAC;AAVD,0DAUC;AAQD;;;GAGG;AACH,SAAgB,SAAS,CAAC,IAAoB;IAC5C,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CACxB;QACE,KAAK,EAAE,aAAa;QACpB,OAAO,EAAE,cAAc;KACxB,EACD,IAAI,CACL,CAAC;IACF,OAAO,IAAI,iBAAI,CAAC,IAAI,CAAC,CAAC;AACxB,CAAC;AATD,8BASC"}
|
package/dist/application.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ declare const NoteApplication_base: (new (...args: any[]) => {
|
|
|
87
87
|
listeners: (event: string | symbol) => Function[];
|
|
88
88
|
rawListeners: (event: string | symbol) => Function[];
|
|
89
89
|
emit: (event: string | symbol, ...args: any[]) => boolean;
|
|
90
|
-
listenerCount: (
|
|
90
|
+
listenerCount: (event: string | symbol) => number;
|
|
91
91
|
prependListener: (event: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
92
92
|
prependOnceListener: (event: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
93
93
|
eventNames: () => (string | symbol)[];
|
|
@@ -172,7 +172,7 @@ declare const NoteApplication_base: (new (...args: any[]) => {
|
|
|
172
172
|
listeners: (event: string | symbol) => Function[];
|
|
173
173
|
rawListeners: (event: string | symbol) => Function[];
|
|
174
174
|
emit: (event: string | symbol, ...args: any[]) => boolean;
|
|
175
|
-
listenerCount: (
|
|
175
|
+
listenerCount: (event: string | symbol) => number;
|
|
176
176
|
prependListener: (event: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
177
177
|
prependOnceListener: (event: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
178
178
|
eventNames: () => (string | symbol)[];
|
|
@@ -262,7 +262,7 @@ declare const NoteApplication_base: (new (...args: any[]) => {
|
|
|
262
262
|
listeners: (event: string | symbol) => Function[];
|
|
263
263
|
rawListeners: (event: string | symbol) => Function[];
|
|
264
264
|
emit: (event: string | symbol, ...args: any[]) => boolean;
|
|
265
|
-
listenerCount: (
|
|
265
|
+
listenerCount: (event: string | symbol) => number;
|
|
266
266
|
prependListener: (event: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
267
267
|
prependOnceListener: (event: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
268
268
|
eventNames: () => (string | symbol)[];
|
package/dist/application.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-express-composition
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -11,7 +11,7 @@ const repository_1 = require("@loopback/repository");
|
|
|
11
11
|
const rest_1 = require("@loopback/rest");
|
|
12
12
|
const rest_explorer_1 = require("@loopback/rest-explorer");
|
|
13
13
|
const service_proxy_1 = require("@loopback/service-proxy");
|
|
14
|
-
const path_1 =
|
|
14
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
15
15
|
const sequence_1 = require("./sequence");
|
|
16
16
|
class NoteApplication extends (0, boot_1.BootMixin)((0, service_proxy_1.ServiceMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication))) {
|
|
17
17
|
constructor(options = {}) {
|
package/dist/application.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.js","sourceRoot":"","sources":["../src/application.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"application.js","sourceRoot":"","sources":["../src/application.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,qDAAqD;AACrD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAyC;AAEzC,qDAAqD;AACrD,yCAA+C;AAC/C,2DAA8D;AAC9D,2DAAqD;AACrD,wDAAwB;AACxB,yCAAsC;AAItC,MAAa,eAAgB,SAAQ,IAAA,gBAAS,EAC5C,IAAA,4BAAY,EAAC,IAAA,4BAAe,EAAC,sBAAe,CAAC,CAAC,CAC/C;IACC,YAAY,UAA6B,EAAE;QACzC,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,6BAA6B;QAC7B,IAAI,CAAC,QAAQ,CAAC,qBAAU,CAAC,CAAC;QAE1B,2BAA2B;QAC3B,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC;QAEpD,IAAI,CAAC,SAAS,CAAC,qCAAqB,CAAC,CAAC;QAEtC,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC;QAC7B,mDAAmD;QACnD,IAAI,CAAC,WAAW,GAAG;YACjB,WAAW,EAAE;gBACX,8CAA8C;gBAC9C,IAAI,EAAE,CAAC,aAAa,CAAC;gBACrB,UAAU,EAAE,CAAC,gBAAgB,CAAC;gBAC9B,MAAM,EAAE,IAAI;aACb;SACF,CAAC;IACJ,CAAC;CACF;AAzBD,0CAyBC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-express-composition
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
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
|
-
|
|
8
|
+
tslib_1.__exportStar(require("./note.controller"), exports);
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/controllers/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/controllers/index.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,qDAAqD;AACrD,+CAA+C;AAC/C,gEAAgE;;;AAEhE,4DAAkC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-express-composition
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -39,7 +39,7 @@ let NoteController = class NoteController {
|
|
|
39
39
|
await this.noteRepository.deleteById(id);
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
tslib_1.__decorate([
|
|
43
43
|
(0, rest_1.post)('/notes', {
|
|
44
44
|
responses: {
|
|
45
45
|
'200': {
|
|
@@ -48,18 +48,18 @@ let NoteController = class NoteController {
|
|
|
48
48
|
},
|
|
49
49
|
},
|
|
50
50
|
}),
|
|
51
|
-
|
|
51
|
+
tslib_1.__param(0, (0, rest_1.requestBody)({
|
|
52
52
|
content: {
|
|
53
53
|
'application/json': {
|
|
54
54
|
schema: (0, rest_1.getModelSchemaRef)(models_1.Note, { title: 'NewNote', exclude: ['id'] }),
|
|
55
55
|
},
|
|
56
56
|
},
|
|
57
57
|
})),
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
tslib_1.__metadata("design:type", Function),
|
|
59
|
+
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
60
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
61
61
|
], NoteController.prototype, "create", null);
|
|
62
|
-
|
|
62
|
+
tslib_1.__decorate([
|
|
63
63
|
(0, rest_1.get)('/notes/count', {
|
|
64
64
|
responses: {
|
|
65
65
|
'200': {
|
|
@@ -68,12 +68,12 @@ let NoteController = class NoteController {
|
|
|
68
68
|
},
|
|
69
69
|
},
|
|
70
70
|
}),
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
tslib_1.__param(0, rest_1.param.where(models_1.Note)),
|
|
72
|
+
tslib_1.__metadata("design:type", Function),
|
|
73
|
+
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
74
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
75
75
|
], NoteController.prototype, "count", null);
|
|
76
|
-
|
|
76
|
+
tslib_1.__decorate([
|
|
77
77
|
(0, rest_1.get)('/notes', {
|
|
78
78
|
responses: {
|
|
79
79
|
'200': {
|
|
@@ -86,12 +86,12 @@ let NoteController = class NoteController {
|
|
|
86
86
|
},
|
|
87
87
|
},
|
|
88
88
|
}),
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
tslib_1.__param(0, rest_1.param.filter(models_1.Note)),
|
|
90
|
+
tslib_1.__metadata("design:type", Function),
|
|
91
|
+
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
92
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
93
93
|
], NoteController.prototype, "find", null);
|
|
94
|
-
|
|
94
|
+
tslib_1.__decorate([
|
|
95
95
|
(0, rest_1.patch)('/notes', {
|
|
96
96
|
responses: {
|
|
97
97
|
'200': {
|
|
@@ -100,19 +100,19 @@ let NoteController = class NoteController {
|
|
|
100
100
|
},
|
|
101
101
|
},
|
|
102
102
|
}),
|
|
103
|
-
|
|
103
|
+
tslib_1.__param(0, (0, rest_1.requestBody)({
|
|
104
104
|
content: {
|
|
105
105
|
'application/json': {
|
|
106
106
|
schema: (0, rest_1.getModelSchemaRef)(models_1.Note, { partial: true }),
|
|
107
107
|
},
|
|
108
108
|
},
|
|
109
109
|
})),
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
tslib_1.__param(1, rest_1.param.where(models_1.Note)),
|
|
111
|
+
tslib_1.__metadata("design:type", Function),
|
|
112
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
113
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
114
114
|
], NoteController.prototype, "updateAll", null);
|
|
115
|
-
|
|
115
|
+
tslib_1.__decorate([
|
|
116
116
|
(0, rest_1.get)('/notes/{id}', {
|
|
117
117
|
responses: {
|
|
118
118
|
'200': {
|
|
@@ -121,12 +121,12 @@ let NoteController = class NoteController {
|
|
|
121
121
|
},
|
|
122
122
|
},
|
|
123
123
|
}),
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
124
|
+
tslib_1.__param(0, rest_1.param.path.number('id')),
|
|
125
|
+
tslib_1.__metadata("design:type", Function),
|
|
126
|
+
tslib_1.__metadata("design:paramtypes", [Number]),
|
|
127
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
128
128
|
], NoteController.prototype, "findById", null);
|
|
129
|
-
|
|
129
|
+
tslib_1.__decorate([
|
|
130
130
|
(0, rest_1.patch)('/notes/{id}', {
|
|
131
131
|
responses: {
|
|
132
132
|
'204': {
|
|
@@ -134,19 +134,19 @@ let NoteController = class NoteController {
|
|
|
134
134
|
},
|
|
135
135
|
},
|
|
136
136
|
}),
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
tslib_1.__param(0, rest_1.param.path.number('id')),
|
|
138
|
+
tslib_1.__param(1, (0, rest_1.requestBody)({
|
|
139
139
|
content: {
|
|
140
140
|
'application/json': {
|
|
141
141
|
schema: (0, rest_1.getModelSchemaRef)(models_1.Note, { partial: true }),
|
|
142
142
|
},
|
|
143
143
|
},
|
|
144
144
|
})),
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
145
|
+
tslib_1.__metadata("design:type", Function),
|
|
146
|
+
tslib_1.__metadata("design:paramtypes", [Number, Object]),
|
|
147
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
148
148
|
], NoteController.prototype, "updateById", null);
|
|
149
|
-
|
|
149
|
+
tslib_1.__decorate([
|
|
150
150
|
(0, rest_1.put)('/notes/{id}', {
|
|
151
151
|
responses: {
|
|
152
152
|
'204': {
|
|
@@ -154,13 +154,13 @@ let NoteController = class NoteController {
|
|
|
154
154
|
},
|
|
155
155
|
},
|
|
156
156
|
}),
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
157
|
+
tslib_1.__param(0, rest_1.param.path.number('id')),
|
|
158
|
+
tslib_1.__param(1, (0, rest_1.requestBody)()),
|
|
159
|
+
tslib_1.__metadata("design:type", Function),
|
|
160
|
+
tslib_1.__metadata("design:paramtypes", [Number, models_1.Note]),
|
|
161
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
162
162
|
], NoteController.prototype, "replaceById", null);
|
|
163
|
-
|
|
163
|
+
tslib_1.__decorate([
|
|
164
164
|
(0, rest_1.del)('/notes/{id}', {
|
|
165
165
|
responses: {
|
|
166
166
|
'204': {
|
|
@@ -168,14 +168,14 @@ let NoteController = class NoteController {
|
|
|
168
168
|
},
|
|
169
169
|
},
|
|
170
170
|
}),
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
171
|
+
tslib_1.__param(0, rest_1.param.path.number('id')),
|
|
172
|
+
tslib_1.__metadata("design:type", Function),
|
|
173
|
+
tslib_1.__metadata("design:paramtypes", [Number]),
|
|
174
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
175
175
|
], NoteController.prototype, "deleteById", null);
|
|
176
|
-
NoteController =
|
|
177
|
-
|
|
178
|
-
|
|
176
|
+
NoteController = tslib_1.__decorate([
|
|
177
|
+
tslib_1.__param(0, (0, repository_1.repository)(repositories_1.NoteRepository)),
|
|
178
|
+
tslib_1.__metadata("design:paramtypes", [repositories_1.NoteRepository])
|
|
179
179
|
], NoteController);
|
|
180
180
|
exports.NoteController = NoteController;
|
|
181
181
|
//# sourceMappingURL=note.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"note.controller.js","sourceRoot":"","sources":["../../src/controllers/note.controller.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"note.controller.js","sourceRoot":"","sources":["../../src/controllers/note.controller.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,qDAAqD;AACrD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,qDAM8B;AAC9B,yCASwB;AACxB,sCAA+B;AAC/B,kDAA+C;AAE/C,IAAa,cAAc,GAA3B,MAAa,cAAc;IACzB,YAES,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IACpC,CAAC;IAUJ,KAAK,CAAC,MAAM,CAQV,IAAsB;QAEtB,OAAO,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;IAUD,KAAK,CAAC,KAAK,CAAoB,KAAmB;QAChD,OAAO,IAAI,CAAC,cAAc,CAA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reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-express-composition
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.PingController = void 0;
|
|
8
8
|
const tslib_1 = require("tslib");
|
|
9
|
-
const rest_1 = require("@loopback/rest");
|
|
10
9
|
const core_1 = require("@loopback/core");
|
|
10
|
+
const rest_1 = require("@loopback/rest");
|
|
11
11
|
/**
|
|
12
12
|
* OpenAPI response for ping()
|
|
13
13
|
*/
|
|
@@ -52,19 +52,19 @@ let PingController = class PingController {
|
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
|
-
|
|
55
|
+
tslib_1.__decorate([
|
|
56
56
|
(0, rest_1.get)('/ping', {
|
|
57
57
|
responses: {
|
|
58
58
|
'200': PING_RESPONSE,
|
|
59
59
|
},
|
|
60
60
|
}),
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
tslib_1.__metadata("design:type", Function),
|
|
62
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
63
|
+
tslib_1.__metadata("design:returntype", Object)
|
|
64
64
|
], PingController.prototype, "ping", null);
|
|
65
|
-
PingController =
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
PingController = tslib_1.__decorate([
|
|
66
|
+
tslib_1.__param(0, (0, core_1.inject)(rest_1.RestBindings.Http.REQUEST)),
|
|
67
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
68
68
|
], PingController);
|
|
69
69
|
exports.PingController = PingController;
|
|
70
70
|
//# sourceMappingURL=ping.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ping.controller.js","sourceRoot":"","sources":["../../src/controllers/ping.controller.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"ping.controller.js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Y,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;;GADnC,cAAc,CAkB1B;AAlBY,wCAAc"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-express-composition
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -21,9 +21,9 @@ let DsDataSource = class DsDataSource extends repository_1.juggler.DataSource {
|
|
|
21
21
|
};
|
|
22
22
|
DsDataSource.dataSourceName = 'ds';
|
|
23
23
|
DsDataSource.defaultConfig = config;
|
|
24
|
-
DsDataSource =
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
DsDataSource = tslib_1.__decorate([
|
|
25
|
+
tslib_1.__param(0, (0, core_1.inject)('datasources.config.ds', { optional: true })),
|
|
26
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
27
27
|
], DsDataSource);
|
|
28
28
|
exports.DsDataSource = DsDataSource;
|
|
29
29
|
//# sourceMappingURL=ds.datasource.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds.datasource.js","sourceRoot":"","sources":["../../src/datasources/ds.datasource.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"ds.datasource.js","sourceRoot":"","sources":["../../src/datasources/ds.datasource.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,qDAAqD;AACrD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAsC;AACtC,qDAA6C;AAE7C,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,QAAQ;IACnB,YAAY,EAAE,EAAE;IAChB,IAAI,EAAE,gBAAgB;CACvB,CAAC;AAEF,IAAa,YAAY,GAAzB,MAAa,YAAa,SAAQ,oBAAO,CAAC,UAAU;IAIlD,YAEE,WAAmB,MAAM;QAEzB,KAAK,CAAC,QAAQ,CAAC,CAAC;IAClB,CAAC;CACF,CAAA;AATQ,2BAAc,GAAG,IAAI,CAAC;AACb,0BAAa,GAAG,MAAO,CAAA;AAF5B,YAAY;IAKpB,mBAAA,IAAA,aAAM,EAAC,uBAAuB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAA;;GALzC,YAAY,CAUxB;AAVY,oCAAY"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-express-composition
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
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
|
-
|
|
8
|
+
tslib_1.__exportStar(require("./ds.datasource"), exports);
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/datasources/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/datasources/index.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,qDAAqD;AACrD,+CAA+C;AAC/C,gEAAgE;;;AAEhE,0DAAgC"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-express-composition
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.main = void 0;
|
|
9
9
|
const tslib_1 = require("tslib");
|
|
10
10
|
const server_1 = require("./server");
|
|
11
|
-
|
|
11
|
+
tslib_1.__exportStar(require("./server"), exports);
|
|
12
12
|
async function main(options = {}) {
|
|
13
13
|
const server = new server_1.ExpressServer(options);
|
|
14
14
|
await server.boot();
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,qDAAqD;AACrD,+CAA+C;AAC/C,gEAAgE;;;;;AAEhE,qCAA0D;AAE1D,mDAAyB;AAElB,KAAK,UAAU,IAAI,CAAC,UAA6B,EAAE;IACxD,MAAM,MAAM,GAAG,IAAI,sBAAa,CAAC,OAAO,CAAC,CAAC;IAC1C,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;IACpB,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;IACrB,OAAO,CAAC,GAAG,CAAC,4CAA4C,CAAC,CAAC;AAC5D,CAAC;AALD,oBAKC;AAED,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE;IAC3B,sBAAsB;IACtB,MAAM,MAAM,GAAG;QACb,IAAI,EAAE;YACJ,IAAI,EAAE,CAAC,CAAC,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,mCAAI,IAAI,CAAC;YACjC,IAAI,EAAE,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,mCAAI,WAAW;YACrC,WAAW,EAAE;gBACX,sEAAsE;gBACtE,qBAAqB,EAAE,IAAI;aAC5B;YACD,kEAAkE;YAClE,aAAa,EAAE,KAAK;SACrB;KACF,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;QACvB,OAAO,CAAC,KAAK,CAAC,+BAA+B,EAAE,GAAG,CAAC,CAAC;QACpD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;CACJ"}
|
package/dist/migrate.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-express-composition
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
package/dist/migrate.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrate.js","sourceRoot":"","sources":["../src/migrate.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"migrate.js","sourceRoot":"","sources":["../src/migrate.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,qDAAqD;AACrD,+CAA+C;AAC/C,gEAAgE;;;AAEhE,qCAAuC;AAEhC,KAAK,UAAU,OAAO,CAAC,IAAc;IAC1C,MAAM,cAAc,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;IACrE,OAAO,CAAC,GAAG,CAAC,wCAAwC,EAAE,cAAc,CAAC,CAAC;IAEtE,MAAM,MAAM,GAAG,IAAI,sBAAa,EAAE,CAAC;IACnC,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;IACpB,MAAM,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,EAAC,cAAc,EAAC,CAAC,CAAC;IAEnD,wDAAwD;IACxD,8DAA8D;IAC9D,8BAA8B;IAC9B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAZD,0BAYC;AAED,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;IAChC,OAAO,CAAC,KAAK,CAAC,gCAAgC,EAAE,GAAG,CAAC,CAAC;IACrD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/dist/models/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-express-composition
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
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
|
-
|
|
8
|
+
tslib_1.__exportStar(require("./note.model"), exports);
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
package/dist/models/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,qDAAqD;AACrD,+CAA+C;AAC/C,gEAAgE;;;AAEhE,uDAA6B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-express-composition
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -12,29 +12,29 @@ let Note = class Note extends repository_1.Entity {
|
|
|
12
12
|
super(data);
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
tslib_1.__decorate([
|
|
16
16
|
(0, repository_1.property)({
|
|
17
17
|
type: 'number',
|
|
18
18
|
id: true,
|
|
19
19
|
}),
|
|
20
|
-
|
|
20
|
+
tslib_1.__metadata("design:type", Number)
|
|
21
21
|
], Note.prototype, "id", void 0);
|
|
22
|
-
|
|
22
|
+
tslib_1.__decorate([
|
|
23
23
|
(0, repository_1.property)({
|
|
24
24
|
type: 'string',
|
|
25
25
|
required: true,
|
|
26
26
|
}),
|
|
27
|
-
|
|
27
|
+
tslib_1.__metadata("design:type", String)
|
|
28
28
|
], Note.prototype, "title", void 0);
|
|
29
|
-
|
|
29
|
+
tslib_1.__decorate([
|
|
30
30
|
(0, repository_1.property)({
|
|
31
31
|
type: 'string',
|
|
32
32
|
}),
|
|
33
|
-
|
|
33
|
+
tslib_1.__metadata("design:type", String)
|
|
34
34
|
], Note.prototype, "content", void 0);
|
|
35
|
-
Note =
|
|
35
|
+
Note = tslib_1.__decorate([
|
|
36
36
|
(0, repository_1.model)(),
|
|
37
|
-
|
|
37
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
38
38
|
], Note);
|
|
39
39
|
exports.Note = Note;
|
|
40
40
|
//# sourceMappingURL=note.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"note.model.js","sourceRoot":"","sources":["../../src/models/note.model.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"note.model.js","sourceRoot":"","sources":["../../src/models/note.model.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,qDAAqD;AACrD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,qDAA6D;AAG7D,IAAa,IAAI,GAAjB,MAAa,IAAK,SAAQ,mBAAM;IAkB9B,YAAY,IAAoB;QAC9B,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;CACF,CAAA;AAhBC;IAJC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;QACd,EAAE,EAAE,IAAI;KACT,CAAC;;gCACU;AAMZ;IAJC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACf,CAAC;;mCACY;AAKd;IAHC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;KACf,CAAC;;qCACe;AAhBN,IAAI;IADhB,IAAA,kBAAK,GAAE;;GACK,IAAI,CAqBhB;AArBY,oBAAI"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-express-composition
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -33,7 +33,7 @@ let HelloObserver = class HelloObserver {
|
|
|
33
33
|
this.events.push(`${new Date()}: hello-stop`);
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
HelloObserver =
|
|
36
|
+
HelloObserver = tslib_1.__decorate([
|
|
37
37
|
(0, core_1.lifeCycleObserver)()
|
|
38
38
|
], HelloObserver);
|
|
39
39
|
exports.HelloObserver = HelloObserver;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hello.observer.js","sourceRoot":"","sources":["../../src/observers/hello.observer.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"hello.observer.js","sourceRoot":"","sources":["../../src/observers/hello.observer.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,qDAAqD;AACrD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAoE;AAEpE;;;GAGG;AAEH,IAAa,aAAa,GAA1B,MAAa,aAAa;IAA1B;QACE,WAAM,GAAa,EAAE,CAAC;IAoBxB,CAAC;IAnBC;;;;MAIE;IAEF;;OAEG;IACH,KAAK,CAAC,KAAK;QACT,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,EAAE,eAAe,CAAC,CAAC;IACjD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC;IAChD,CAAC;CACF,CAAA;AArBY,aAAa;IADzB,IAAA,wBAAiB,GAAE;GACP,aAAa,CAqBzB;AArBY,sCAAa"}
|
package/dist/observers/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-express-composition
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
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
|
-
|
|
8
|
+
tslib_1.__exportStar(require("./hello.observer"), exports);
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/observers/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/observers/index.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,qDAAqD;AACrD,+CAA+C;AAC/C,gEAAgE;;;AAEhE,2DAAiC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-express-composition
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
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
|
-
|
|
8
|
+
tslib_1.__exportStar(require("./note.repository"), exports);
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,qDAAqD;AACrD,+CAA+C;AAC/C,gEAAgE;;;AAEhE,4DAAkC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-express-composition
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -15,9 +15,9 @@ let NoteRepository = class NoteRepository extends repository_1.DefaultCrudReposi
|
|
|
15
15
|
super(models_1.Note, dataSource);
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
NoteRepository =
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
NoteRepository = tslib_1.__decorate([
|
|
19
|
+
tslib_1.__param(0, (0, core_1.inject)('datasources.ds')),
|
|
20
|
+
tslib_1.__metadata("design:paramtypes", [datasources_1.DsDataSource])
|
|
21
21
|
], NoteRepository);
|
|
22
22
|
exports.NoteRepository = NoteRepository;
|
|
23
23
|
//# sourceMappingURL=note.repository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"note.repository.js","sourceRoot":"","sources":["../../src/repositories/note.repository.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"note.repository.js","sourceRoot":"","sources":["../../src/repositories/note.repository.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,qDAAqD;AACrD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAsC;AACtC,qDAA2D;AAC3D,gDAA4C;AAC5C,sCAA8C;AAE9C,IAAa,cAAc,GAA3B,MAAa,cAAe,SAAQ,kCAInC;IACC,YAAsC,UAAwB;QAC5D,KAAK,CAAC,aAAI,EAAE,UAAU,CAAC,CAAC;IAC1B,CAAC;CACF,CAAA;AARY,cAAc;IAKZ,mBAAA,IAAA,aAAM,EAAC,gBAAgB,CAAC,CAAA;6CAAa,0BAAY;GALnD,cAAc,CAQ1B;AARY,wCAAc"}
|
package/dist/sequence.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-express-composition
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
package/dist/sequence.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sequence.js","sourceRoot":"","sources":["../src/sequence.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"sequence.js","sourceRoot":"","sources":["../src/sequence.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,qDAAqD;AACrD,+CAA+C;AAC/C,gEAAgE;;;AAEhE,yCAAkD;AAElD,MAAa,UAAW,SAAQ,yBAAkB;CAAG;AAArD,gCAAqD"}
|
package/dist/server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-express-composition
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
exports.ExpressServer = void 0;
|
|
8
8
|
const tslib_1 = require("tslib");
|
|
9
9
|
const events_1 = require("events");
|
|
10
|
-
const express_1 =
|
|
11
|
-
const path_1 =
|
|
10
|
+
const express_1 = tslib_1.__importDefault(require("express"));
|
|
11
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
12
12
|
const application_1 = require("./application");
|
|
13
13
|
class ExpressServer {
|
|
14
14
|
constructor(options = {}) {
|
package/dist/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,qDAAqD;AACrD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,mCAA4B;AAC5B,8DAAmD;AAEnD,wDAAwB;AACxB,+CAAiE;AAIjE,MAAa,aAAa;IAKxB,YAAY,UAA6B,EAAE;QACzC,IAAI,CAAC,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,IAAI,6BAAe,CAAC,OAAO,CAAC,CAAC;QAE1C,4DAA4D;QAC5D,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QAEhD,wBAAwB;QACxB,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,UAAU,IAAa,EAAE,GAAa;YACtD,GAAG,CAAC,QAAQ,CAAC,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,wBAAwB,CAAC,CAAC,CAAC;QAC/D,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,UAAU,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-composition",
|
|
3
3
|
"description": "LoopBack 4 REST API on Express",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "5.0.1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"loopback-application",
|
|
7
7
|
"loopback",
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"main": "dist/index.js",
|
|
14
14
|
"types": "dist/index.d.ts",
|
|
15
|
-
"author": "IBM Corp.",
|
|
16
|
-
"copyright.owner": "IBM Corp.",
|
|
15
|
+
"author": "IBM Corp. and LoopBack contributors",
|
|
16
|
+
"copyright.owner": "IBM Corp. and LoopBack contributors",
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
19
|
"url": "https://github.com/loopbackio/loopback-next.git",
|
|
20
20
|
"directory": "examples/express-composition"
|
|
21
21
|
},
|
|
22
22
|
"engines": {
|
|
23
|
-
"node": "
|
|
23
|
+
"node": "14 || 16 || 17 || 18"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "lb-tsc",
|
|
@@ -47,23 +47,23 @@
|
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@loopback/boot": "^
|
|
51
|
-
"@loopback/core": "^
|
|
52
|
-
"@loopback/repository": "^
|
|
53
|
-
"@loopback/rest": "^
|
|
54
|
-
"@loopback/rest-explorer": "^
|
|
55
|
-
"@loopback/service-proxy": "^
|
|
56
|
-
"express": "^4.
|
|
57
|
-
"tslib": "^2.
|
|
50
|
+
"@loopback/boot": "^5.0.1",
|
|
51
|
+
"@loopback/core": "^4.0.1",
|
|
52
|
+
"@loopback/repository": "^5.0.1",
|
|
53
|
+
"@loopback/rest": "^12.0.1",
|
|
54
|
+
"@loopback/rest-explorer": "^5.0.1",
|
|
55
|
+
"@loopback/service-proxy": "^5.0.1",
|
|
56
|
+
"express": "^4.18.1",
|
|
57
|
+
"tslib": "^2.4.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@loopback/build": "^
|
|
61
|
-
"@loopback/eslint-config": "^
|
|
62
|
-
"@loopback/testlab": "^
|
|
60
|
+
"@loopback/build": "^9.0.1",
|
|
61
|
+
"@loopback/eslint-config": "^13.0.1",
|
|
62
|
+
"@loopback/testlab": "^5.0.1",
|
|
63
63
|
"@types/express": "^4.17.13",
|
|
64
|
-
"@types/node": "^
|
|
65
|
-
"eslint": "^8.
|
|
66
|
-
"typescript": "~4.
|
|
64
|
+
"@types/node": "^14.18.21",
|
|
65
|
+
"eslint": "^8.17.0",
|
|
66
|
+
"typescript": "~4.7.3"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "ccf7863d0639de966d6c6129b4aa94ba1dce2c33"
|
|
69
69
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-express-composition
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-express-composition
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
5
5
|
|
|
6
6
|
import {Client, expect} from '@loopback/testlab';
|
|
7
|
-
import {setupExpressApplication, givenNote} from './test-helper';
|
|
8
7
|
import {NoteApplication} from '../../application';
|
|
9
8
|
import {NoteRepository} from '../../repositories';
|
|
10
9
|
import {ExpressServer} from '../../server';
|
|
10
|
+
import {givenNote, setupExpressApplication} from './test-helper';
|
|
11
11
|
|
|
12
12
|
describe('NoteApplication', () => {
|
|
13
13
|
let server: ExpressServer;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-express-composition
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
5
5
|
|
|
6
6
|
import {Client, expect} from '@loopback/testlab';
|
|
7
|
-
import {setupExpressApplication} from './test-helper';
|
|
8
7
|
import {ExpressServer} from '../../server';
|
|
8
|
+
import {setupExpressApplication} from './test-helper';
|
|
9
9
|
|
|
10
10
|
describe('PingController', () => {
|
|
11
11
|
let server: ExpressServer;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-express-composition
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import {Client, givenHttpServerConfig, supertest} from '@loopback/testlab';
|
|
7
7
|
import {NoteApplication} from '../../application';
|
|
8
|
-
import {ExpressServer} from '../../server';
|
|
9
8
|
import {Note} from '../../models/note.model';
|
|
9
|
+
import {ExpressServer} from '../../server';
|
|
10
10
|
|
|
11
11
|
export async function setupExpressApplication(): Promise<AppWithClient> {
|
|
12
12
|
const server = new ExpressServer({rest: givenHttpServerConfig()});
|
package/src/application.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-express-composition
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/controllers/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-express-composition
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-express-composition
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-express-composition
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
5
5
|
|
|
6
|
-
import {Request, RestBindings, get, ResponseObject} from '@loopback/rest';
|
|
7
6
|
import {inject} from '@loopback/core';
|
|
7
|
+
import {get, Request, ResponseObject, RestBindings} from '@loopback/rest';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* OpenAPI response for ping()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-express-composition
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/datasources/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-express-composition
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-express-composition
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/migrate.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-express-composition
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/models/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-express-composition
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/models/note.model.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-express-composition
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-express-composition
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
lifeCycleObserver, // The decorator
|
|
8
|
-
LifeCycleObserver,
|
|
9
|
-
} from '@loopback/core';
|
|
6
|
+
import {lifeCycleObserver, LifeCycleObserver} from '@loopback/core';
|
|
10
7
|
|
|
11
8
|
/**
|
|
12
9
|
* This class will be bound to the application as a `LifeCycleObserver` during
|
package/src/observers/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-express-composition
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-express-composition
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-express-composition
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/sequence.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-express-composition
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/server.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2019,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-express-composition
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|