@loopback/service-proxy 3.0.4 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist/mixins/service.mixin.d.ts +9 -9
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
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
|
+
# [3.1.0](https://github.com/strongloop/loopback-next/compare/@loopback/service-proxy@3.0.7...@loopback/service-proxy@3.1.0) (2021-03-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* update package-lock.json to v2 consistently ([dfc3fbd](https://github.com/strongloop/loopback-next/commit/dfc3fbdae0c9ca9f34c64154a471bef22d5ac6b7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.0.7](https://github.com/strongloop/loopback-next/compare/@loopback/service-proxy@3.0.6...@loopback/service-proxy@3.0.7) (2021-02-09)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @loopback/service-proxy
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [3.0.6](https://github.com/strongloop/loopback-next/compare/@loopback/service-proxy@3.0.5...@loopback/service-proxy@3.0.6) (2021-01-21)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @loopback/service-proxy
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## [3.0.5](https://github.com/strongloop/loopback-next/compare/@loopback/service-proxy@3.0.4...@loopback/service-proxy@3.0.5) (2020-12-07)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @loopback/service-proxy
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
## [3.0.4](https://github.com/strongloop/loopback-next/compare/@loopback/service-proxy@3.0.3...@loopback/service-proxy@3.0.4) (2020-11-18)
|
|
7
42
|
|
|
8
43
|
**Note:** Version bump only for package @loopback/service-proxy
|
|
@@ -85,10 +85,10 @@ export declare function ServiceMixin<T extends MixinTarget<Application>>(superCl
|
|
|
85
85
|
*
|
|
86
86
|
* @param component - The component to mount services of
|
|
87
87
|
*/
|
|
88
|
-
mountComponentServices<C_1 extends Component = Component>(component: Constructor<C_1>, componentBindingKey?:
|
|
88
|
+
mountComponentServices<C_1 extends Component = Component>(component: Constructor<C_1>, componentBindingKey?: BindingAddress<C_1> | undefined): void;
|
|
89
89
|
readonly options: loopbackContext.ApplicationConfig;
|
|
90
90
|
readonly state: string;
|
|
91
|
-
controller: <T_1>(controllerCtor:
|
|
91
|
+
controller: <T_1>(controllerCtor: loopbackContext.ControllerClass<T_1>, nameOrOptions?: string | BindingFromClassOptions | undefined) => Binding<T_1>;
|
|
92
92
|
server: <T_2 extends loopbackContext.Server>(ctor: Constructor<T_2>, nameOrOptions?: string | BindingFromClassOptions | undefined) => Binding<T_2>;
|
|
93
93
|
servers: <T_3 extends loopbackContext.Server>(ctors: Constructor<T_3>[]) => Binding<any>[];
|
|
94
94
|
getServer: <T_4 extends loopbackContext.Server>(target: string | Constructor<T_4>) => Promise<T_4>;
|
|
@@ -110,7 +110,7 @@ export declare function ServiceMixin<T extends MixinTarget<Application>>(superCl
|
|
|
110
110
|
emitError: (err: unknown) => void;
|
|
111
111
|
bind: <ValueType = any>(key: BindingAddress<ValueType>) => Binding<ValueType>;
|
|
112
112
|
add: (binding: Binding<unknown>) => Application;
|
|
113
|
-
configure: <ConfigValueType = any>(key?:
|
|
113
|
+
configure: <ConfigValueType = any>(key?: BindingAddress<unknown> | undefined) => Binding<ConfigValueType>;
|
|
114
114
|
getConfigAsValueOrPromise: <ConfigValueType_1>(key: BindingAddress<unknown>, propertyPath?: string | undefined, resolutionOptions?: loopbackContext.ResolutionOptions | undefined) => loopbackContext.ValueOrPromise<ConfigValueType_1 | undefined>;
|
|
115
115
|
getConfig: <ConfigValueType_2>(key: BindingAddress<unknown>, propertyPath?: string | undefined, resolutionOptions?: loopbackContext.ResolutionOptions | undefined) => Promise<ConfigValueType_2 | undefined>;
|
|
116
116
|
getConfigSync: <ConfigValueType_3>(key: BindingAddress<unknown>, propertyPath?: string | undefined, resolutionOptions?: loopbackContext.ResolutionOptions | undefined) => ConfigValueType_3 | undefined;
|
|
@@ -122,12 +122,12 @@ export declare function ServiceMixin<T extends MixinTarget<Application>>(superCl
|
|
|
122
122
|
createView: <T_7 = unknown>(filter: loopbackContext.BindingFilter, comparator?: loopbackContext.BindingComparator | undefined) => loopbackContext.ContextView<T_7>;
|
|
123
123
|
contains: (key: BindingAddress<unknown>) => boolean;
|
|
124
124
|
isBound: (key: BindingAddress<unknown>) => boolean;
|
|
125
|
-
getOwnerContext: (keyOrBinding:
|
|
125
|
+
getOwnerContext: (keyOrBinding: BindingAddress<unknown> | Readonly<Binding<unknown>>) => loopbackContext.Context | undefined;
|
|
126
126
|
getScopedContext: (scope: loopbackContext.BindingScope.APPLICATION | loopbackContext.BindingScope.SERVER | loopbackContext.BindingScope.REQUEST) => loopbackContext.Context | undefined;
|
|
127
127
|
getResolutionContext: (binding: Readonly<Binding<unknown>>) => loopbackContext.Context | undefined;
|
|
128
128
|
isVisibleTo: (ctx: loopbackContext.Context) => boolean;
|
|
129
129
|
find: <ValueType_1 = any>(pattern?: string | RegExp | loopbackContext.BindingFilter | undefined) => Readonly<Binding<ValueType_1>>[];
|
|
130
|
-
findByTag: <ValueType_2 = any>(tagFilter:
|
|
130
|
+
findByTag: <ValueType_2 = any>(tagFilter: RegExp | loopbackContext.BindingTag) => Readonly<Binding<ValueType_2>>[];
|
|
131
131
|
get: {
|
|
132
132
|
<ValueType_3>(keyWithPath: BindingAddress<ValueType_3>, session?: loopbackContext.ResolutionSession | undefined): Promise<ValueType_3>;
|
|
133
133
|
<ValueType_4>(keyWithPath: BindingAddress<ValueType_4>, options: loopbackContext.ResolutionOptions): Promise<ValueType_4 | undefined>;
|
|
@@ -143,7 +143,7 @@ export declare function ServiceMixin<T extends MixinTarget<Application>>(superCl
|
|
|
143
143
|
} | undefined): Binding<ValueType_8> | undefined;
|
|
144
144
|
};
|
|
145
145
|
findOrCreateBinding: <T_8>(key: BindingAddress<T_8>, policy?: loopbackContext.BindingCreationPolicy | undefined) => Binding<T_8>;
|
|
146
|
-
getValueOrPromise: <ValueType_9>(keyWithPath: BindingAddress<ValueType_9>, optionsOrSession?: loopbackContext.
|
|
146
|
+
getValueOrPromise: <ValueType_9>(keyWithPath: BindingAddress<ValueType_9>, optionsOrSession?: loopbackContext.ResolutionOptionsOrSession | undefined) => loopbackContext.ValueOrPromise<ValueType_9 | undefined>;
|
|
147
147
|
toJSON: () => loopbackContext.JSONObject;
|
|
148
148
|
inspect: (options?: loopbackContext.ContextInspectOptions | undefined) => loopbackContext.JSONObject;
|
|
149
149
|
on: {
|
|
@@ -155,8 +155,6 @@ export declare function ServiceMixin<T extends MixinTarget<Application>>(superCl
|
|
|
155
155
|
(event: string | symbol, listener: (...args: any[]) => void): Application;
|
|
156
156
|
};
|
|
157
157
|
addListener: (event: string | symbol, listener: (...args: any[]) => void) => Application;
|
|
158
|
-
prependListener: (event: string | symbol, listener: (...args: any[]) => void) => Application;
|
|
159
|
-
prependOnceListener: (event: string | symbol, listener: (...args: any[]) => void) => Application;
|
|
160
158
|
removeListener: (event: string | symbol, listener: (...args: any[]) => void) => Application;
|
|
161
159
|
off: (event: string | symbol, listener: (...args: any[]) => void) => Application;
|
|
162
160
|
removeAllListeners: (event?: string | symbol | undefined) => Application;
|
|
@@ -165,8 +163,10 @@ export declare function ServiceMixin<T extends MixinTarget<Application>>(superCl
|
|
|
165
163
|
listeners: (event: string | symbol) => Function[];
|
|
166
164
|
rawListeners: (event: string | symbol) => Function[];
|
|
167
165
|
emit: (event: string | symbol, ...args: any[]) => boolean;
|
|
168
|
-
eventNames: () => (string | symbol)[];
|
|
169
166
|
listenerCount: (type: string | symbol) => number;
|
|
167
|
+
prependListener: (event: string | symbol, listener: (...args: any[]) => void) => Application;
|
|
168
|
+
prependOnceListener: (event: string | symbol, listener: (...args: any[]) => void) => Application;
|
|
169
|
+
eventNames: () => (string | symbol)[];
|
|
170
170
|
};
|
|
171
171
|
} & T;
|
|
172
172
|
/**
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopback/service-proxy",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "A common set of interfaces for interacting with service oriented backends such as REST APIs, SOAP Web Services, and gRPC microservices",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": "^10.16 || 12 || 14"
|
|
8
|
+
"node": "^10.16 || 12 || 14 || 15"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"acceptance": "lb-mocha \"dist/__tests__/acceptance/**/*.js\"",
|
|
@@ -24,18 +24,18 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@loopback/core": "^2.
|
|
28
|
-
},
|
|
29
|
-
"devDependencies": {
|
|
30
|
-
"@loopback/build": "^6.2.7",
|
|
31
|
-
"@loopback/core": "^2.13.0",
|
|
32
|
-
"@loopback/eslint-config": "^10.0.3",
|
|
33
|
-
"@loopback/testlab": "^3.2.9",
|
|
34
|
-
"@types/node": "^10.17.35"
|
|
27
|
+
"@loopback/core": "^2.15.0"
|
|
35
28
|
},
|
|
36
29
|
"dependencies": {
|
|
37
30
|
"loopback-datasource-juggler": "^4.26.0",
|
|
38
|
-
"tslib": "^2.0
|
|
31
|
+
"tslib": "^2.1.0"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@loopback/build": "^6.3.0",
|
|
35
|
+
"@loopback/core": "^2.15.0",
|
|
36
|
+
"@loopback/eslint-config": "^10.1.0",
|
|
37
|
+
"@loopback/testlab": "^3.3.0",
|
|
38
|
+
"@types/node": "^10.17.55"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"README.md",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"url": "https://github.com/strongloop/loopback-next.git",
|
|
49
49
|
"directory": "packages/service-proxy"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "85a45b8a0d6c1216c11256cb511ec6cfbfb4c226"
|
|
52
52
|
}
|