Conversation
|
uitests |
| "id": "org.nativescript.renderer", | ||
| "tns-android": { | ||
| "version": "next" | ||
| "version": "3.2.0-2017-9-12-1" |
| return url.indexOf("~") === 0 || url.indexOf("/") === 0; | ||
| } | ||
|
|
||
| function normalizeLocalUrl(url: string): string { |
There was a problem hiding this comment.
This method can be reused in NsHttpBackEnd
| } | ||
| } | ||
|
|
||
| function isLocalRequest(url: string): boolean { |
There was a problem hiding this comment.
This is duplicated in NsHttpBackEnd. May be a good idea to extract it in a common module?
| return url; | ||
| } | ||
|
|
||
| private handleLocalRequest(url: string): Observable<HttpEvent<any>> { |
There was a problem hiding this comment.
This seems to be the same as _requestLocalUrl from NSHttp except the additional error handling for failed parsing. Can we move the method to a common module (with the error handling)?
| const json = JSON.parse(data); | ||
| observer.next(createSuccessResponse(url, json, 200)); | ||
| observer.complete(); | ||
| } catch (error) { |
| import { NSFileSystem } from "../file-system/ns-file-system"; | ||
| import { NsHttpBackEnd } from "./ns-http-backend"; | ||
|
|
||
| export { NsHttpBackEnd } from "./ns-http-backend"; |
There was a problem hiding this comment.
Why is that reexported from here?
| HttpClient, HTTP_INTERCEPTORS, HttpEventType, HttpErrorResponse, | ||
| HttpEvent, HttpInterceptor, HttpHandler, HttpRequest | ||
| } from "@angular/common/http"; | ||
| import { Observable } from "rxjs/observable"; |
There was a problem hiding this comment.
from "rxjs/observable" -> from "rxjs/Observable"
|
e2e |
|
e2e |
sis0k0
left a comment
There was a problem hiding this comment.
Remove e2e/router/.vscode dir. Rebasing on top of master may resolve that.
| return result; | ||
| } | ||
|
|
||
| private handleLocalRequest(url: string): Observable<HttpEvent<any>> { |
There was a problem hiding this comment.
The name of the method is a bit confusing as it matches the name of the imported function.
|
|
||
| function normalizeLocalUrl(url: string): string { | ||
| return url.replace("~", "").replace("/", ""); | ||
| private handleLocalRequest(url: string): Observable<Response> { |
|
renderer-android |
|
ERROR Error: Uncaught (in promise): Error: com.tns.NativeScriptException: Failed to find module: "nativescript-angular/value-accessors/base-value-accessor", relative to: app/tns_modules/ Just installed
Narrowed it down to I believe we would get some breaking change all-round. Reverting now until a list is ready. 😄 |
|
I can see |
|
|
|
Hey @jogboms, thanks for reporting that! |
|
Okay. Didn't notice that. Just sent a PR over. Quick question tho, does v4.4 require the |
|
Hey @jogboms, |
|
Very well @vchimev. Thanks. |
|
|
|
Nice one. 👍 @vchimev |
In this PR:
angular@4.4.xNsHttpBackEndthat handles local requests made withHttpClientservice4.4updatesResolves #966
Resolves #1001