@loopback/service-proxy 3.0.7 → 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 CHANGED
@@ -3,6 +3,17 @@
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
+
6
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)
7
18
 
8
19
  **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?: string | loopbackContext.BindingKey<C_1> | undefined): void;
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: Constructor<T_1>, nameOrOptions?: string | BindingFromClassOptions | undefined) => Binding<T_1>;
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?: string | loopbackContext.BindingKey<unknown> | undefined) => Binding<ConfigValueType>;
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: string | loopbackContext.BindingKey<unknown> | Readonly<Binding<unknown>>) => loopbackContext.Context | undefined;
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: string | RegExp | Record<string, any>) => Readonly<Binding<ValueType_2>>[];
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.ResolutionOptions | loopbackContext.ResolutionSession | undefined) => loopbackContext.ValueOrPromise<ValueType_9 | undefined>;
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@loopback/service-proxy",
3
- "version": "3.0.7",
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",
@@ -24,18 +24,18 @@
24
24
  "access": "public"
25
25
  },
26
26
  "peerDependencies": {
27
- "@loopback/core": "^2.14.1"
27
+ "@loopback/core": "^2.15.0"
28
28
  },
29
29
  "dependencies": {
30
30
  "loopback-datasource-juggler": "^4.26.0",
31
31
  "tslib": "^2.1.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@loopback/build": "^6.2.9",
35
- "@loopback/core": "^2.14.1",
36
- "@loopback/eslint-config": "^10.0.5",
37
- "@loopback/testlab": "^3.2.12",
38
- "@types/node": "^10.17.35"
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": "0fcf97fa1e87457de85f8f1b6b5cbf9f4f0bd640"
51
+ "gitHead": "85a45b8a0d6c1216c11256cb511ec6cfbfb4c226"
52
52
  }