@opra/core 0.30.0 → 0.31.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.
@@ -164,7 +164,7 @@ class HttpAdapterHost extends platform_adapter_host_js_1.PlatformAdapterHost {
164
164
  }
165
165
  if (request)
166
166
  return request;
167
- const path = parsedUrl.path;
167
+ const path = parsedUrl.path.toString();
168
168
  throw new common_1.BadRequestError({
169
169
  message: 'No resource or endpoint found at ' + path,
170
170
  details: { path }
@@ -160,7 +160,7 @@ export class HttpAdapterHost extends PlatformAdapterHost {
160
160
  }
161
161
  if (request)
162
162
  return request;
163
- const path = parsedUrl.path;
163
+ const path = parsedUrl.path.toString();
164
164
  throw new BadRequestError({
165
165
  message: 'No resource or endpoint found at ' + path,
166
166
  details: { path }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/core",
3
- "version": "0.30.0",
3
+ "version": "0.31.0",
4
4
  "description": "Opra schema package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@browsery/type-is": "^0.6.3",
31
- "@opra/common": "^0.30.0",
31
+ "@opra/common": "^0.31.0",
32
32
  "accepts": "^1.3.8",
33
33
  "content-disposition": "^0.5.4",
34
34
  "content-type": "^1.0.5",
@@ -2,5 +2,5 @@ import { RequestContext } from '../request-context.js';
2
2
  export declare abstract class ApiService {
3
3
  protected _context: RequestContext;
4
4
  get context(): RequestContext;
5
- forContext(context: RequestContext): typeof this;
5
+ forContext(context: RequestContext): this;
6
6
  }