@loopback/service-proxy 5.0.0 → 5.0.3
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/LICENSE +1 -1
- package/dist/decorators/service.decorator.d.ts +2 -2
- package/dist/decorators/service.decorator.js +1 -1
- package/dist/decorators/service.decorator.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/legacy-juggler-bridge.js +1 -1
- package/dist/legacy-juggler-bridge.js.map +1 -1
- package/dist/mixins/index.js +1 -1
- package/dist/mixins/index.js.map +1 -1
- package/dist/mixins/service.mixin.d.ts +43 -45
- package/dist/mixins/service.mixin.js +1 -1
- package/dist/mixins/service.mixin.js.map +1 -1
- package/package.json +10 -10
- package/src/decorators/service.decorator.ts +3 -3
- package/src/index.ts +1 -1
- package/src/legacy-juggler-bridge.ts +1 -1
- package/src/mixins/index.ts +1 -1
- package/src/mixins/service.mixin.ts +4 -10
package/LICENSE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InjectionMetadata, MetadataAccessor } from '@loopback/core';
|
|
2
2
|
import { juggler } from '..';
|
|
3
3
|
/**
|
|
4
4
|
* Type definition for decorators returned by `@serviceProxy` decorator factory
|
|
@@ -14,4 +14,4 @@ export declare class ServiceProxyMetadata implements InjectionMetadata {
|
|
|
14
14
|
dataSource?: juggler.DataSource;
|
|
15
15
|
constructor(dataSource: string | juggler.DataSource);
|
|
16
16
|
}
|
|
17
|
-
export declare function serviceProxy(dataSource: string | juggler.DataSource): (target: object, key: string, parameterIndex?: number
|
|
17
|
+
export declare function serviceProxy(dataSource: string | juggler.DataSource): (target: object, key: string, parameterIndex?: number) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/service-proxy
|
|
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":"service.decorator.js","sourceRoot":"","sources":["../../src/decorators/service.decorator.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"service.decorator.js","sourceRoot":"","sources":["../../src/decorators/service.decorator.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,uCAAuC;AACvC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,yCAMwB;AACxB,0BAAuC;AAO1B,QAAA,iBAAiB,GAAG,uBAAgB,CAAC,MAAM,CAGtD,eAAe,CAAC,CAAC;AAEnB;;GAEG;AACH,MAAa,oBAAoB;IAK/B,YAAY,UAAuC;QAJnD,cAAS,GAAG,eAAe,CAAC;QAK1B,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE;YAClC,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC;SAClC;aAAM;YACL,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;SAC9B;IACH,CAAC;CACF;AAZD,oDAYC;AAED,SAAgB,YAAY,CAAC,UAAuC;IAClE,OAAO,UAAU,MAAc,EAAE,GAAW,EAAE,cAAuB;QACnE,IAAI,GAAG,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE;YAC7C,MAAM,IAAI,GAAG,IAAI,oBAAoB,CAAC,UAAU,CAAC,CAAC;YAClD,IAAA,aAAM,EAAC,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,cAAc,CAAC,CAAC;SACxD;aAAM;YACL,MAAM,IAAI,KAAK,CACb,sEAAsE,CACvE,CAAC;SACH;IACH,CAAC,CAAC;AACJ,CAAC;AAXD,oCAWC;AAED;;;;GAIG;AACH,KAAK,UAAU,OAAO,CAAC,GAAY,EAAE,SAAoB;IACvD,MAAM,IAAI,GAAG,SAAS,CAAC,QAAgC,CAAC;IACxD,IAAI,IAAI,CAAC,UAAU;QAAE,OAAO,IAAA,cAAU,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACxD,IAAI,IAAI,CAAC,cAAc,EAAE;QACvB,MAAM,EAAE,GAAG,MAAM,GAAG,CAAC,GAAG,CACtB,cAAc,GAAG,IAAI,CAAC,cAAc,CACrC,CAAC;QACF,OAAO,IAAA,cAAU,EAAC,EAAE,CAAC,CAAC;KACvB;IACD,MAAM,IAAI,KAAK,CACb,gEAAgE,CACjE,CAAC;AACJ,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/service-proxy
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
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,uCAAuC;AACvC,+CAA+C;AAC/C,gEAAgE;;;AAEhE;;;;;GAKG;AAEH,yEAA+C;AAC/C,kEAAwC;AACxC,mDAAyB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2018,2019. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2019. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/service-proxy
|
|
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":"legacy-juggler-bridge.js","sourceRoot":"","sources":["../src/legacy-juggler-bridge.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"legacy-juggler-bridge.js","sourceRoot":"","sources":["../src/legacy-juggler-bridge.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,uCAAuC;AACvC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,sGAAiD;AAEjD,IAAiB,OAAO,CAGvB;AAHD,WAAiB,OAAO;IACtB,6DAA6D;IAC/C,kBAAU,GAAG,qCAAM,CAAC,UAAU,CAAC;AAC/C,CAAC,EAHgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAGvB;AAUD;;;;;;GAMG;AACI,KAAK,UAAU,UAAU,CAC9B,EAAqB;IAErB,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC;IACnB,8DAA8D;IAC9D,OAAO,EAAE,CAAC,gBAAuB,CAAC;AACpC,CAAC;AAND,gCAMC"}
|
package/dist/mixins/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/service-proxy
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
package/dist/mixins/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mixins/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mixins/index.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,uCAAuC;AACvC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,0DAAgC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { Binding, BindingAddress, BindingFromClassOptions,
|
|
2
|
-
import { Application, MixinTarget, ServiceOptions, Component } from '@loopback/core';
|
|
3
|
-
import * as loopbackContext from '@loopback/core';
|
|
1
|
+
import { Application, Binding, BindingAddress, BindingFromClassOptions, Component, Constructor, MixinTarget, Provider, ServiceOptions } from '@loopback/core';
|
|
4
2
|
/**
|
|
5
3
|
* Interface for classes with `new` operator.
|
|
6
4
|
*/
|
|
@@ -55,7 +53,7 @@ export declare function ServiceMixin<T extends MixinTarget<Application>>(superCl
|
|
|
55
53
|
* app.serviceProvider(GeocoderServiceProvider);
|
|
56
54
|
* ```
|
|
57
55
|
*/
|
|
58
|
-
serviceProvider<S>(provider: Constructor<Provider<S>>, nameOrOptions?: string | ServiceOptions
|
|
56
|
+
serviceProvider<S>(provider: Constructor<Provider<S>>, nameOrOptions?: string | ServiceOptions): Binding<S>;
|
|
59
57
|
/**
|
|
60
58
|
* Add a component to this application. Also mounts
|
|
61
59
|
* all the components services.
|
|
@@ -77,7 +75,7 @@ export declare function ServiceMixin<T extends MixinTarget<Application>>(superCl
|
|
|
77
75
|
* app.component(ProductComponent);
|
|
78
76
|
* ```
|
|
79
77
|
*/
|
|
80
|
-
component<C extends Component = Component>(componentCtor: Constructor<C>, nameOrOptions?: string | BindingFromClassOptions
|
|
78
|
+
component<C extends Component = Component>(componentCtor: Constructor<C>, nameOrOptions?: string | BindingFromClassOptions): Binding<C>;
|
|
81
79
|
/**
|
|
82
80
|
* Get an instance of a component and mount all it's
|
|
83
81
|
* services. This function is intended to be used internally
|
|
@@ -86,55 +84,55 @@ export declare function ServiceMixin<T extends MixinTarget<Application>>(superCl
|
|
|
86
84
|
* @param component - The component to mount services of
|
|
87
85
|
*/
|
|
88
86
|
mountComponentServices<C_1 extends Component = Component>(component: Constructor<C_1>, componentBindingKey?: BindingAddress<C_1> | undefined): void;
|
|
89
|
-
readonly options:
|
|
87
|
+
readonly options: import("@loopback/core").ApplicationConfig;
|
|
90
88
|
readonly state: string;
|
|
91
|
-
controller: <T_1>(controllerCtor:
|
|
92
|
-
server: <T_2 extends
|
|
93
|
-
servers: <T_3 extends
|
|
94
|
-
getServer: <T_4 extends
|
|
89
|
+
controller: <T_1>(controllerCtor: import("@loopback/core").ControllerClass<T_1>, nameOrOptions?: string | BindingFromClassOptions | undefined) => Binding<T_1>;
|
|
90
|
+
server: <T_2 extends import("@loopback/core").Server>(ctor: Constructor<T_2>, nameOrOptions?: string | BindingFromClassOptions | undefined) => Binding<T_2>;
|
|
91
|
+
servers: <T_3 extends import("@loopback/core").Server>(ctors: Constructor<T_3>[]) => Binding<any>[];
|
|
92
|
+
getServer: <T_4 extends import("@loopback/core").Server>(target: string | Constructor<T_4>) => Promise<T_4>;
|
|
95
93
|
init: () => Promise<void>;
|
|
96
|
-
onInit: (fn: () =>
|
|
94
|
+
onInit: (fn: () => import("@loopback/core").ValueOrPromise<void>) => Binding<import("@loopback/core").LifeCycleObserver>;
|
|
97
95
|
start: () => Promise<void>;
|
|
98
|
-
onStart: (fn: () =>
|
|
96
|
+
onStart: (fn: () => import("@loopback/core").ValueOrPromise<void>) => Binding<import("@loopback/core").LifeCycleObserver>;
|
|
99
97
|
stop: () => Promise<void>;
|
|
100
|
-
onStop: (fn: () =>
|
|
101
|
-
setMetadata: (metadata:
|
|
102
|
-
lifeCycleObserver: <T_5 extends
|
|
103
|
-
service: <S_1>(cls:
|
|
104
|
-
interceptor: (interceptor:
|
|
98
|
+
onStop: (fn: () => import("@loopback/core").ValueOrPromise<void>) => Binding<import("@loopback/core").LifeCycleObserver>;
|
|
99
|
+
setMetadata: (metadata: import("@loopback/core").ApplicationMetadata) => void;
|
|
100
|
+
lifeCycleObserver: <T_5 extends import("@loopback/core").LifeCycleObserver>(ctor: Constructor<T_5>, nameOrOptions?: string | BindingFromClassOptions | undefined) => Binding<T_5>;
|
|
101
|
+
service: <S_1>(cls: import("@loopback/core").ServiceOrProviderClass<S_1>, nameOrOptions?: string | ServiceOptions | undefined) => Binding<S_1>;
|
|
102
|
+
interceptor: (interceptor: import("@loopback/core").Interceptor | Constructor<Provider<import("@loopback/core").Interceptor>>, nameOrOptions?: string | import("@loopback/core").InterceptorBindingOptions | undefined) => Binding<import("@loopback/core").Interceptor>;
|
|
105
103
|
readonly name: string;
|
|
106
|
-
readonly subscriptionManager:
|
|
107
|
-
scope:
|
|
108
|
-
readonly parent:
|
|
109
|
-
emitEvent: <T_6 extends
|
|
104
|
+
readonly subscriptionManager: import("@loopback/core").ContextSubscriptionManager;
|
|
105
|
+
scope: import("@loopback/core").BindingScope;
|
|
106
|
+
readonly parent: import("@loopback/core").Context | undefined;
|
|
107
|
+
emitEvent: <T_6 extends import("@loopback/core").ContextEvent>(type: string, event: T_6) => void;
|
|
110
108
|
emitError: (err: unknown) => void;
|
|
111
109
|
bind: <ValueType = any>(key: BindingAddress<ValueType>) => Binding<ValueType>;
|
|
112
110
|
add: (binding: Binding<unknown>) => Application;
|
|
113
111
|
configure: <ConfigValueType = any>(key?: BindingAddress<unknown> | undefined) => Binding<ConfigValueType>;
|
|
114
|
-
getConfigAsValueOrPromise: <ConfigValueType_1>(key: BindingAddress<unknown>, propertyPath?: string | undefined, resolutionOptions?:
|
|
115
|
-
getConfig: <ConfigValueType_2>(key: BindingAddress<unknown>, propertyPath?: string | undefined, resolutionOptions?:
|
|
116
|
-
getConfigSync: <ConfigValueType_3>(key: BindingAddress<unknown>, propertyPath?: string | undefined, resolutionOptions?:
|
|
112
|
+
getConfigAsValueOrPromise: <ConfigValueType_1>(key: BindingAddress<unknown>, propertyPath?: string | undefined, resolutionOptions?: import("@loopback/core").ResolutionOptions | undefined) => import("@loopback/core").ValueOrPromise<ConfigValueType_1 | undefined>;
|
|
113
|
+
getConfig: <ConfigValueType_2>(key: BindingAddress<unknown>, propertyPath?: string | undefined, resolutionOptions?: import("@loopback/core").ResolutionOptions | undefined) => Promise<ConfigValueType_2 | undefined>;
|
|
114
|
+
getConfigSync: <ConfigValueType_3>(key: BindingAddress<unknown>, propertyPath?: string | undefined, resolutionOptions?: import("@loopback/core").ResolutionOptions | undefined) => ConfigValueType_3 | undefined;
|
|
117
115
|
unbind: (key: BindingAddress<unknown>) => boolean;
|
|
118
|
-
subscribe: (observer:
|
|
119
|
-
unsubscribe: (observer:
|
|
116
|
+
subscribe: (observer: import("@loopback/core").ContextEventObserver) => import("@loopback/core").Subscription;
|
|
117
|
+
unsubscribe: (observer: import("@loopback/core").ContextEventObserver) => boolean;
|
|
120
118
|
close: () => void;
|
|
121
|
-
isSubscribed: (observer:
|
|
122
|
-
createView: <T_7 = unknown>(filter:
|
|
119
|
+
isSubscribed: (observer: import("@loopback/core").ContextObserver) => boolean;
|
|
120
|
+
createView: <T_7 = 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_7>;
|
|
123
121
|
contains: (key: BindingAddress<unknown>) => boolean;
|
|
124
122
|
isBound: (key: BindingAddress<unknown>) => boolean;
|
|
125
|
-
getOwnerContext: (keyOrBinding: BindingAddress<unknown> | Readonly<Binding<unknown>>) =>
|
|
126
|
-
getScopedContext: (scope:
|
|
127
|
-
getResolutionContext: (binding: Readonly<Binding<unknown>>) =>
|
|
128
|
-
isVisibleTo: (ctx:
|
|
129
|
-
find: <ValueType_1 = any>(pattern?: string | RegExp |
|
|
130
|
-
findByTag: <ValueType_2 = any>(tagFilter: RegExp |
|
|
123
|
+
getOwnerContext: (keyOrBinding: BindingAddress<unknown> | Readonly<Binding<unknown>>) => import("@loopback/core").Context | undefined;
|
|
124
|
+
getScopedContext: (scope: import("@loopback/core").BindingScope.APPLICATION | import("@loopback/core").BindingScope.SERVER | import("@loopback/core").BindingScope.REQUEST) => import("@loopback/core").Context | undefined;
|
|
125
|
+
getResolutionContext: (binding: Readonly<Binding<unknown>>) => import("@loopback/core").Context | undefined;
|
|
126
|
+
isVisibleTo: (ctx: import("@loopback/core").Context) => boolean;
|
|
127
|
+
find: <ValueType_1 = any>(pattern?: string | RegExp | import("@loopback/core").BindingFilter | undefined) => Readonly<Binding<ValueType_1>>[];
|
|
128
|
+
findByTag: <ValueType_2 = any>(tagFilter: RegExp | import("@loopback/core").BindingTag) => Readonly<Binding<ValueType_2>>[];
|
|
131
129
|
get: {
|
|
132
|
-
<ValueType_3>(keyWithPath: BindingAddress<ValueType_3>, session?:
|
|
133
|
-
<ValueType_4>(keyWithPath: BindingAddress<ValueType_4>, options:
|
|
130
|
+
<ValueType_3>(keyWithPath: BindingAddress<ValueType_3>, session?: import("@loopback/core").ResolutionSession | undefined): Promise<ValueType_3>;
|
|
131
|
+
<ValueType_4>(keyWithPath: BindingAddress<ValueType_4>, options: import("@loopback/core").ResolutionOptions): Promise<ValueType_4 | undefined>;
|
|
134
132
|
};
|
|
135
133
|
getSync: {
|
|
136
|
-
<ValueType_5>(keyWithPath: BindingAddress<ValueType_5>, session?:
|
|
137
|
-
<ValueType_6>(keyWithPath: BindingAddress<ValueType_6>, options?:
|
|
134
|
+
<ValueType_5>(keyWithPath: BindingAddress<ValueType_5>, session?: import("@loopback/core").ResolutionSession | undefined): ValueType_5;
|
|
135
|
+
<ValueType_6>(keyWithPath: BindingAddress<ValueType_6>, options?: import("@loopback/core").ResolutionOptions | undefined): ValueType_6 | undefined;
|
|
138
136
|
};
|
|
139
137
|
getBinding: {
|
|
140
138
|
<ValueType_7 = any>(key: BindingAddress<ValueType_7>): Binding<ValueType_7>;
|
|
@@ -142,16 +140,16 @@ export declare function ServiceMixin<T extends MixinTarget<Application>>(superCl
|
|
|
142
140
|
optional?: boolean | undefined;
|
|
143
141
|
} | undefined): Binding<ValueType_8> | undefined;
|
|
144
142
|
};
|
|
145
|
-
findOrCreateBinding: <T_8>(key: BindingAddress<T_8>, policy?:
|
|
146
|
-
getValueOrPromise: <ValueType_9>(keyWithPath: BindingAddress<ValueType_9>, optionsOrSession?:
|
|
147
|
-
toJSON: () =>
|
|
148
|
-
inspect: (options?:
|
|
143
|
+
findOrCreateBinding: <T_8>(key: BindingAddress<T_8>, policy?: import("@loopback/core").BindingCreationPolicy | undefined) => Binding<T_8>;
|
|
144
|
+
getValueOrPromise: <ValueType_9>(keyWithPath: BindingAddress<ValueType_9>, optionsOrSession?: import("@loopback/core").ResolutionOptionsOrSession | undefined) => import("@loopback/core").ValueOrPromise<ValueType_9 | undefined>;
|
|
145
|
+
toJSON: () => import("@loopback/core").JSONObject;
|
|
146
|
+
inspect: (options?: import("@loopback/core").ContextInspectOptions | undefined) => import("@loopback/core").JSONObject;
|
|
149
147
|
on: {
|
|
150
|
-
(eventName: "bind" | "unbind", listener:
|
|
148
|
+
(eventName: "bind" | "unbind", listener: import("@loopback/core").ContextEventListener): Application;
|
|
151
149
|
(event: string | symbol, listener: (...args: any[]) => void): Application;
|
|
152
150
|
};
|
|
153
151
|
once: {
|
|
154
|
-
(eventName: "bind" | "unbind", listener:
|
|
152
|
+
(eventName: "bind" | "unbind", listener: import("@loopback/core").ContextEventListener): Application;
|
|
155
153
|
(event: string | symbol, listener: (...args: any[]) => void): Application;
|
|
156
154
|
};
|
|
157
155
|
addListener: (event: string | symbol, listener: (...args: any[]) => void) => Application;
|
|
@@ -163,7 +161,7 @@ export declare function ServiceMixin<T extends MixinTarget<Application>>(superCl
|
|
|
163
161
|
listeners: (event: string | symbol) => Function[];
|
|
164
162
|
rawListeners: (event: string | symbol) => Function[];
|
|
165
163
|
emit: (event: string | symbol, ...args: any[]) => boolean;
|
|
166
|
-
listenerCount: (
|
|
164
|
+
listenerCount: (event: string | symbol) => number;
|
|
167
165
|
prependListener: (event: string | symbol, listener: (...args: any[]) => void) => Application;
|
|
168
166
|
prependOnceListener: (event: string | symbol, listener: (...args: any[]) => void) => Application;
|
|
169
167
|
eventNames: () => (string | symbol)[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/service-proxy
|
|
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":"service.mixin.js","sourceRoot":"","sources":["../../src/mixins/service.mixin.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"service.mixin.js","sourceRoot":"","sources":["../../src/mixins/service.mixin.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,uCAAuC;AACvC,+CAA+C;AAC/C,gEAAgE;;;AAyBhE;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,YAAY,CAC1B,UAAa;IAEb,OAAO,KAAM,SAAQ,UAAU;QAC7B;;;;;;;;;;;;;;;;;;;;;;;;;;WA0BG;QACH,eAAe,CACb,QAAkC,EAClC,aAAuC;YAEvC,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;QAC/C,CAAC;QAED;;;;;;;;;;;;;;;;;;;;WAoBG;QACH,wEAAwE;QACxE,0EAA0E;QAC1E,6DAA6D;QAC7D,aAAa;QACb,SAAS,CACP,aAA6B,EAC7B,aAAgD;YAEhD,MAAM,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;YAC9D,IAAI,CAAC,sBAAsB,CAAC,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;YACxD,OAAO,OAAO,CAAC;QACjB,CAAC;QAED;;;;;;WAMG;QACH,sBAAsB,CACpB,SAAyB,EACzB,mBAAuC;YAEvC,MAAM,YAAY,GAChB,mBAAmB,aAAnB,mBAAmB,cAAnB,mBAAmB,GAAI,cAAc,SAAS,CAAC,IAAI,EAAE,CAAC;YACxD,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAY,YAAY,CAAC,CAAC;YAE3D,IAAI,YAAY,CAAC,gBAAgB,EAAE;gBACjC,KAAK,MAAM,QAAQ,IAAI,YAAY,CAAC,gBAAgB,EAAE;oBACpD,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;iBAChC;aACF;QACH,CAAC;KACF,CAAC;AACJ,CAAC;AA9FD,oCA8FC;AAcD;;;;;;GAMG;AACH,MAAa,eAAe;IAC1B,8DAA8D;IAC9D,YAAY,GAAG,IAAW;QACxB,MAAM,IAAI,KAAK,CACb,iEAAiE,CAClE,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,eAAe,CAAI,QAAkC;QACnD,MAAM,IAAI,KAAK,EAAE,CAAC;IACpB,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACI,SAAS,CAAC,SAA+B;QAC9C,MAAM,IAAI,KAAK,EAAE,CAAC;IACpB,CAAC;IAED;;;;;;OAMG;IACH,sBAAsB,CAAC,SAA+B,IAAG,CAAC;CAC3D;AAtED,0CAsEC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopback/service-proxy",
|
|
3
3
|
"description": "A common set of interfaces for interacting with service oriented backends such as REST APIs, SOAP Web Services, and gRPC microservices",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
-
"author": "IBM Corp.",
|
|
9
|
-
"copyright.owner": "IBM Corp.",
|
|
8
|
+
"author": "IBM Corp. and LoopBack contributors",
|
|
9
|
+
"copyright.owner": "IBM Corp. and LoopBack contributors",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/loopbackio/loopback-next.git",
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
"!*/__tests__"
|
|
36
36
|
],
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@loopback/core": "^4.0.
|
|
38
|
+
"@loopback/core": "^4.0.3"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"loopback-datasource-juggler": "^4.27.1",
|
|
42
42
|
"tslib": "^2.4.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@loopback/build": "^9.0.
|
|
46
|
-
"@loopback/core": "^4.0.
|
|
47
|
-
"@loopback/eslint-config": "^13.0.
|
|
48
|
-
"@loopback/testlab": "^5.0.
|
|
49
|
-
"@types/node": "^
|
|
45
|
+
"@loopback/build": "^9.0.3",
|
|
46
|
+
"@loopback/core": "^4.0.3",
|
|
47
|
+
"@loopback/eslint-config": "^13.0.3",
|
|
48
|
+
"@loopback/testlab": "^5.0.3",
|
|
49
|
+
"@types/node": "^14.18.26"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "296d9a9577fd058d1a2b2386087686cefa65a7a9"
|
|
52
52
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/service-proxy
|
|
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 {
|
|
7
|
-
MetadataAccessor,
|
|
8
|
-
inject,
|
|
9
7
|
Context,
|
|
8
|
+
inject,
|
|
10
9
|
Injection,
|
|
11
10
|
InjectionMetadata,
|
|
11
|
+
MetadataAccessor,
|
|
12
12
|
} from '@loopback/core';
|
|
13
13
|
import {getService, juggler} from '..';
|
|
14
14
|
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/service-proxy
|
|
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. 2018,2019. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2019. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/service-proxy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/mixins/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/service-proxy
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,26 +1,20 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/service-proxy
|
|
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 {
|
|
7
|
+
Application,
|
|
7
8
|
Binding,
|
|
8
9
|
BindingAddress,
|
|
9
10
|
BindingFromClassOptions,
|
|
10
|
-
|
|
11
|
+
Component,
|
|
11
12
|
Constructor,
|
|
12
|
-
} from '@loopback/core';
|
|
13
|
-
import {
|
|
14
|
-
Application,
|
|
15
13
|
MixinTarget,
|
|
14
|
+
Provider,
|
|
16
15
|
ServiceOptions,
|
|
17
|
-
Component,
|
|
18
16
|
} from '@loopback/core';
|
|
19
17
|
|
|
20
|
-
// FIXME(rfeng): Workaround for https://github.com/microsoft/rushstack/pull/1867
|
|
21
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
22
|
-
import * as loopbackContext from '@loopback/core';
|
|
23
|
-
import * as loopbackCore from '@loopback/core';
|
|
24
18
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
25
19
|
|
|
26
20
|
/**
|