@loopback/example-lb3-application 6.0.0 → 6.1.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/CHANGELOG.md +19 -0
- package/dist/application.d.ts +34 -34
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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
|
+
## [6.1.1](https://github.com/loopbackio/loopback-next/compare/@loopback/example-lb3-application@6.1.0...@loopback/example-lb3-application@6.1.1) (2023-07-17)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @loopback/example-lb3-application
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [6.1.0](https://github.com/loopbackio/loopback-next/compare/@loopback/example-lb3-application@6.0.0...@loopback/example-lb3-application@6.1.0) (2023-06-28)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* update dependency @types/node to ^16 ([2af42b7](https://github.com/loopbackio/loopback-next/commit/2af42b721c6dfc2df49bfcac1cbea478aba417ab))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [6.0.0](https://github.com/loopbackio/loopback-next/compare/@loopback/example-lb3-application@5.0.10...@loopback/example-lb3-application@6.0.0) (2023-05-15)
|
|
7
26
|
|
|
8
27
|
|
package/dist/application.d.ts
CHANGED
|
@@ -12,24 +12,24 @@ declare const CoffeeShopApplication_base: (new (...args: any[]) => {
|
|
|
12
12
|
mountComponentBooters(componentInstanceOrClass: import("@loopback/core").Constructor<unknown> | import("@loopback/boot").InstanceWithBooters): void;
|
|
13
13
|
readonly options: ApplicationConfig;
|
|
14
14
|
readonly state: string;
|
|
15
|
-
controller: <
|
|
16
|
-
server: <
|
|
17
|
-
servers: <
|
|
18
|
-
getServer: <
|
|
15
|
+
controller: <T>(controllerCtor: import("@loopback/core").ControllerClass<T>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined) => import("@loopback/boot").Binding<T>;
|
|
16
|
+
server: <T_1 extends import("@loopback/core").Server>(ctor: import("@loopback/core").Constructor<T_1>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined) => import("@loopback/boot").Binding<T_1>;
|
|
17
|
+
servers: <T_2 extends import("@loopback/core").Server>(ctors: import("@loopback/core").Constructor<T_2>[]) => import("@loopback/boot").Binding<any>[];
|
|
18
|
+
getServer: <T_3 extends import("@loopback/core").Server>(target: string | import("@loopback/core").Constructor<T_3>) => Promise<T_3>;
|
|
19
19
|
init: () => Promise<void>;
|
|
20
20
|
onInit: (fn: () => import("@loopback/core").ValueOrPromise<void>) => import("@loopback/boot").Binding<import("@loopback/core").LifeCycleObserver>;
|
|
21
21
|
onStart: (fn: () => import("@loopback/core").ValueOrPromise<void>) => import("@loopback/boot").Binding<import("@loopback/core").LifeCycleObserver>;
|
|
22
22
|
stop: () => Promise<void>;
|
|
23
23
|
onStop: (fn: () => import("@loopback/core").ValueOrPromise<void>) => import("@loopback/boot").Binding<import("@loopback/core").LifeCycleObserver>;
|
|
24
24
|
setMetadata: (metadata: import("@loopback/core").ApplicationMetadata) => void;
|
|
25
|
-
lifeCycleObserver: <
|
|
25
|
+
lifeCycleObserver: <T_4 extends import("@loopback/core").LifeCycleObserver>(ctor: import("@loopback/core").Constructor<T_4>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined) => import("@loopback/boot").Binding<T_4>;
|
|
26
26
|
service: <S>(cls: import("@loopback/core").ServiceOrProviderClass<S>, nameOrOptions?: string | import("@loopback/core").ServiceOptions | undefined) => import("@loopback/boot").Binding<S>;
|
|
27
27
|
interceptor: (interceptor: import("@loopback/core").Interceptor | import("@loopback/core").Constructor<import("@loopback/core").Provider<import("@loopback/core").Interceptor>>, nameOrOptions?: string | import("@loopback/core").InterceptorBindingOptions | undefined) => import("@loopback/boot").Binding<import("@loopback/core").Interceptor>;
|
|
28
28
|
readonly name: string;
|
|
29
29
|
readonly subscriptionManager: import("@loopback/core").ContextSubscriptionManager;
|
|
30
30
|
scope: import("@loopback/core").BindingScope;
|
|
31
31
|
readonly parent: import("@loopback/core").Context | undefined;
|
|
32
|
-
emitEvent: <
|
|
32
|
+
emitEvent: <T_5 extends import("@loopback/core").ContextEvent>(type: string, event: T_5) => void;
|
|
33
33
|
emitError: (err: unknown) => void;
|
|
34
34
|
bind: <ValueType = any>(key: import("@loopback/core").BindingAddress<ValueType>) => import("@loopback/boot").Binding<ValueType>;
|
|
35
35
|
add: (binding: import("@loopback/boot").Binding<unknown>) => import("@loopback/core").Application;
|
|
@@ -42,7 +42,7 @@ declare const CoffeeShopApplication_base: (new (...args: any[]) => {
|
|
|
42
42
|
unsubscribe: (observer: import("@loopback/core").ContextEventObserver) => boolean;
|
|
43
43
|
close: () => void;
|
|
44
44
|
isSubscribed: (observer: import("@loopback/core").ContextObserver) => boolean;
|
|
45
|
-
createView: <
|
|
45
|
+
createView: <T_6 = unknown>(filter: import("@loopback/core").BindingFilter, comparator?: import("@loopback/core").BindingComparator | undefined, options?: Omit<import("@loopback/core").ResolutionOptions, "session"> | undefined) => import("@loopback/core").ContextView<T_6>;
|
|
46
46
|
contains: (key: import("@loopback/core").BindingAddress<unknown>) => boolean;
|
|
47
47
|
isBound: (key: import("@loopback/core").BindingAddress<unknown>) => boolean;
|
|
48
48
|
getOwnerContext: (keyOrBinding: import("@loopback/core").BindingAddress<unknown> | Readonly<import("@loopback/boot").Binding<unknown>>) => import("@loopback/core").Context | undefined;
|
|
@@ -65,7 +65,7 @@ declare const CoffeeShopApplication_base: (new (...args: any[]) => {
|
|
|
65
65
|
optional?: boolean | undefined;
|
|
66
66
|
} | undefined): import("@loopback/boot").Binding<ValueType_8> | undefined;
|
|
67
67
|
};
|
|
68
|
-
findOrCreateBinding: <
|
|
68
|
+
findOrCreateBinding: <T_7>(key: import("@loopback/core").BindingAddress<T_7>, policy?: import("@loopback/core").BindingCreationPolicy | undefined) => import("@loopback/boot").Binding<T_7>;
|
|
69
69
|
getValueOrPromise: <ValueType_9>(keyWithPath: import("@loopback/core").BindingAddress<ValueType_9>, optionsOrSession?: import("@loopback/core").ResolutionOptionsOrSession | undefined) => import("@loopback/core").ValueOrPromise<ValueType_9 | undefined>;
|
|
70
70
|
toJSON: () => import("@loopback/core").JSONObject;
|
|
71
71
|
inspect: (options?: import("@loopback/core").ContextInspectOptions | undefined) => import("@loopback/core").JSONObject;
|
|
@@ -77,18 +77,18 @@ declare const CoffeeShopApplication_base: (new (...args: any[]) => {
|
|
|
77
77
|
(eventName: "bind" | "unbind", listener: import("@loopback/core").ContextEventListener): import("@loopback/core").Application;
|
|
78
78
|
(event: string | symbol, listener: (...args: any[]) => void): import("@loopback/core").Application;
|
|
79
79
|
};
|
|
80
|
-
addListener: (
|
|
81
|
-
removeListener: (
|
|
82
|
-
off: (
|
|
80
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
81
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
82
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
83
83
|
removeAllListeners: (event?: string | symbol | undefined) => import("@loopback/core").Application;
|
|
84
84
|
setMaxListeners: (n: number) => import("@loopback/core").Application;
|
|
85
85
|
getMaxListeners: () => number;
|
|
86
|
-
listeners: (
|
|
87
|
-
rawListeners: (
|
|
88
|
-
emit: (
|
|
89
|
-
listenerCount: (
|
|
90
|
-
prependListener: (
|
|
91
|
-
prependOnceListener: (
|
|
86
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
87
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
88
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
89
|
+
listenerCount: (eventName: string | symbol) => number;
|
|
90
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
91
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
92
92
|
eventNames: () => (string | symbol)[];
|
|
93
93
|
}) & (new (...args: any[]) => {
|
|
94
94
|
repository<R extends import("@loopback/repository").Repository<any>>(repoClass: import("@loopback/repository").Class<R>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined): import("@loopback/boot").Binding<R>;
|
|
@@ -101,10 +101,10 @@ declare const CoffeeShopApplication_base: (new (...args: any[]) => {
|
|
|
101
101
|
migrateSchema(options?: import("@loopback/repository").SchemaMigrationOptions | undefined): Promise<void>;
|
|
102
102
|
readonly options: ApplicationConfig;
|
|
103
103
|
readonly state: string;
|
|
104
|
-
controller: <
|
|
105
|
-
server: <
|
|
106
|
-
servers: <
|
|
107
|
-
getServer: <
|
|
104
|
+
controller: <T_8>(controllerCtor: import("@loopback/core").ControllerClass<T_8>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined) => import("@loopback/boot").Binding<T_8>;
|
|
105
|
+
server: <T_1_1 extends import("@loopback/core").Server>(ctor: import("@loopback/core").Constructor<T_1_1>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined) => import("@loopback/boot").Binding<T_1_1>;
|
|
106
|
+
servers: <T_2_1 extends import("@loopback/core").Server>(ctors: import("@loopback/core").Constructor<T_2_1>[]) => import("@loopback/boot").Binding<any>[];
|
|
107
|
+
getServer: <T_3_1 extends import("@loopback/core").Server>(target: string | import("@loopback/core").Constructor<T_3_1>) => Promise<T_3_1>;
|
|
108
108
|
init: () => Promise<void>;
|
|
109
109
|
onInit: (fn: () => import("@loopback/core").ValueOrPromise<void>) => import("@loopback/boot").Binding<import("@loopback/core").LifeCycleObserver>;
|
|
110
110
|
start: () => Promise<void>;
|
|
@@ -112,14 +112,14 @@ declare const CoffeeShopApplication_base: (new (...args: any[]) => {
|
|
|
112
112
|
stop: () => Promise<void>;
|
|
113
113
|
onStop: (fn: () => import("@loopback/core").ValueOrPromise<void>) => import("@loopback/boot").Binding<import("@loopback/core").LifeCycleObserver>;
|
|
114
114
|
setMetadata: (metadata: import("@loopback/core").ApplicationMetadata) => void;
|
|
115
|
-
lifeCycleObserver: <
|
|
115
|
+
lifeCycleObserver: <T_4_1 extends import("@loopback/core").LifeCycleObserver>(ctor: import("@loopback/core").Constructor<T_4_1>, nameOrOptions?: string | import("@loopback/core").BindingFromClassOptions | undefined) => import("@loopback/boot").Binding<T_4_1>;
|
|
116
116
|
service: <S_1>(cls: import("@loopback/core").ServiceOrProviderClass<S_1>, nameOrOptions?: string | import("@loopback/core").ServiceOptions | undefined) => import("@loopback/boot").Binding<S_1>;
|
|
117
117
|
interceptor: (interceptor: import("@loopback/core").Interceptor | import("@loopback/core").Constructor<import("@loopback/core").Provider<import("@loopback/core").Interceptor>>, nameOrOptions?: string | import("@loopback/core").InterceptorBindingOptions | undefined) => import("@loopback/boot").Binding<import("@loopback/core").Interceptor>;
|
|
118
118
|
readonly name: string;
|
|
119
119
|
readonly subscriptionManager: import("@loopback/core").ContextSubscriptionManager;
|
|
120
120
|
scope: import("@loopback/core").BindingScope;
|
|
121
121
|
readonly parent: import("@loopback/core").Context | undefined;
|
|
122
|
-
emitEvent: <
|
|
122
|
+
emitEvent: <T_5_1 extends import("@loopback/core").ContextEvent>(type: string, event: T_5_1) => void;
|
|
123
123
|
emitError: (err: unknown) => void;
|
|
124
124
|
bind: <ValueType_10 = any>(key: import("@loopback/core").BindingAddress<ValueType_10>) => import("@loopback/boot").Binding<ValueType_10>;
|
|
125
125
|
add: (binding: import("@loopback/boot").Binding<unknown>) => import("@loopback/core").Application;
|
|
@@ -132,7 +132,7 @@ declare const CoffeeShopApplication_base: (new (...args: any[]) => {
|
|
|
132
132
|
unsubscribe: (observer: import("@loopback/core").ContextEventObserver) => boolean;
|
|
133
133
|
close: () => void;
|
|
134
134
|
isSubscribed: (observer: import("@loopback/core").ContextObserver) => boolean;
|
|
135
|
-
createView: <
|
|
135
|
+
createView: <T_6_1 = unknown>(filter: import("@loopback/core").BindingFilter, comparator?: import("@loopback/core").BindingComparator | undefined, options?: Omit<import("@loopback/core").ResolutionOptions, "session"> | undefined) => import("@loopback/core").ContextView<T_6_1>;
|
|
136
136
|
contains: (key: import("@loopback/core").BindingAddress<unknown>) => boolean;
|
|
137
137
|
isBound: (key: import("@loopback/core").BindingAddress<unknown>) => boolean;
|
|
138
138
|
getOwnerContext: (keyOrBinding: import("@loopback/core").BindingAddress<unknown> | Readonly<import("@loopback/boot").Binding<unknown>>) => import("@loopback/core").Context | undefined;
|
|
@@ -155,7 +155,7 @@ declare const CoffeeShopApplication_base: (new (...args: any[]) => {
|
|
|
155
155
|
optional?: boolean | undefined;
|
|
156
156
|
} | undefined): import("@loopback/boot").Binding<ValueType_8_1> | undefined;
|
|
157
157
|
};
|
|
158
|
-
findOrCreateBinding: <
|
|
158
|
+
findOrCreateBinding: <T_7_1>(key: import("@loopback/core").BindingAddress<T_7_1>, policy?: import("@loopback/core").BindingCreationPolicy | undefined) => import("@loopback/boot").Binding<T_7_1>;
|
|
159
159
|
getValueOrPromise: <ValueType_9_1>(keyWithPath: import("@loopback/core").BindingAddress<ValueType_9_1>, optionsOrSession?: import("@loopback/core").ResolutionOptionsOrSession | undefined) => import("@loopback/core").ValueOrPromise<ValueType_9_1 | undefined>;
|
|
160
160
|
toJSON: () => import("@loopback/core").JSONObject;
|
|
161
161
|
inspect: (options?: import("@loopback/core").ContextInspectOptions | undefined) => import("@loopback/core").JSONObject;
|
|
@@ -167,18 +167,18 @@ declare const CoffeeShopApplication_base: (new (...args: any[]) => {
|
|
|
167
167
|
(eventName: "bind" | "unbind", listener: import("@loopback/core").ContextEventListener): import("@loopback/core").Application;
|
|
168
168
|
(event: string | symbol, listener: (...args: any[]) => void): import("@loopback/core").Application;
|
|
169
169
|
};
|
|
170
|
-
addListener: (
|
|
171
|
-
removeListener: (
|
|
172
|
-
off: (
|
|
170
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
171
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
172
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
173
173
|
removeAllListeners: (event?: string | symbol | undefined) => import("@loopback/core").Application;
|
|
174
174
|
setMaxListeners: (n: number) => import("@loopback/core").Application;
|
|
175
175
|
getMaxListeners: () => number;
|
|
176
|
-
listeners: (
|
|
177
|
-
rawListeners: (
|
|
178
|
-
emit: (
|
|
179
|
-
listenerCount: (
|
|
180
|
-
prependListener: (
|
|
181
|
-
prependOnceListener: (
|
|
176
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
177
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
178
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
179
|
+
listenerCount: (eventName: string | symbol) => number;
|
|
180
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
181
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
182
182
|
eventNames: () => (string | symbol)[];
|
|
183
183
|
}) & typeof RestApplication;
|
|
184
184
|
export declare class CoffeeShopApplication extends CoffeeShopApplication_base {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopback/example-lb3-application",
|
|
3
3
|
"description": "Tutorial example on how to add existing an LB3 application to a LB4 project",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.1.1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"loopback",
|
|
7
7
|
"LoopBack",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@loopback/boot": "^6.
|
|
51
|
-
"@loopback/booter-lb3app": "^5.
|
|
52
|
-
"@loopback/core": "^5.
|
|
53
|
-
"@loopback/repository": "^6.
|
|
54
|
-
"@loopback/rest": "^13.
|
|
55
|
-
"@loopback/rest-explorer": "^6.
|
|
50
|
+
"@loopback/boot": "^6.1.1",
|
|
51
|
+
"@loopback/booter-lb3app": "^5.1.1",
|
|
52
|
+
"@loopback/core": "^5.1.1",
|
|
53
|
+
"@loopback/repository": "^6.1.1",
|
|
54
|
+
"@loopback/rest": "^13.1.1",
|
|
55
|
+
"@loopback/rest-explorer": "^6.1.1",
|
|
56
56
|
"compression": "^1.7.4",
|
|
57
57
|
"cors": "^2.8.5",
|
|
58
58
|
"debug": "^4.3.4",
|
|
@@ -60,19 +60,19 @@
|
|
|
60
60
|
"helmet": "^4.6.0",
|
|
61
61
|
"loopback": "^3.28.0",
|
|
62
62
|
"loopback-boot": "^3.3.1",
|
|
63
|
-
"tslib": "^2.
|
|
63
|
+
"tslib": "^2.6.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@loopback/build": "^10.
|
|
67
|
-
"@loopback/eslint-config": "^14.0.
|
|
66
|
+
"@loopback/build": "^10.1.1",
|
|
67
|
+
"@loopback/eslint-config": "^14.0.2",
|
|
68
68
|
"@loopback/rest": "^13.0.0",
|
|
69
|
-
"@loopback/testlab": "^6.
|
|
70
|
-
"@types/lodash": "^4.14.
|
|
71
|
-
"@types/node": "^
|
|
72
|
-
"eslint": "^8.
|
|
69
|
+
"@loopback/testlab": "^6.1.1",
|
|
70
|
+
"@types/lodash": "^4.14.195",
|
|
71
|
+
"@types/node": "^16.18.38",
|
|
72
|
+
"eslint": "^8.45.0",
|
|
73
73
|
"lodash": "^4.17.21",
|
|
74
74
|
"should": "^13.2.3",
|
|
75
|
-
"typescript": "~
|
|
75
|
+
"typescript": "~5.1.6"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "be0c53e30bbe9edf7753c4fcd7ab3199f7cd3b8c"
|
|
78
78
|
}
|