🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

angular2-odata

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular2-odata - npm Package Compare versions

Comparing version

to
0.0.17

4

build/config.d.ts

@@ -13,5 +13,5 @@ import { RequestOptions, Response } from '@angular/http';

handleError(err: any, caught: any): void;
requestOptions: RequestOptions;
postRequestOptions: RequestOptions;
readonly requestOptions: RequestOptions;
readonly postRequestOptions: RequestOptions;
extractQueryResultData<T>(res: Response): Array<T>;
}

@@ -11,6 +11,6 @@ import { Http, Response } from '@angular/http';

constructor(_typeName: string, http: Http, config: ODataConfiguration);
TypeName: string;
readonly TypeName: string;
Get(key: string): GetOperation<T>;
Post(entity: T): Observable<T>;
CustomAction(key: string, actionName: string, postdata: any): Observable<any>;
CustomAction(key: string, actionName: string, postdata: any): Observable<T>;
Patch(entity: any, key: string): Observable<Response>;

@@ -22,4 +22,4 @@ Put(entity: T, key: string): Observable<T>;

protected getEntityUri(entityKey: string): string;
protected handleResponse(entity: Observable<Response>): Observable<any>;
protected handleResponse(entity: Observable<Response>): Observable<T>;
private escapeKey();
}

@@ -45,3 +45,3 @@ "use strict";

let entity = body;
return entity || {};
return entity || null;
}

@@ -48,0 +48,0 @@ getEntityUri(entityKey) {

@@ -15,3 +15,3 @@ import { URLSearchParams, Http, Response, RequestOptions } from '@angular/http';

private extractData(res);
protected handleResponse(entity: Observable<Response>): Observable<any>;
protected handleResponse(entity: Observable<Response>): Observable<T>;
protected getEntityUri(entityKey: string): string;

@@ -18,0 +18,0 @@ protected getRequestOptions(): RequestOptions;

@@ -30,3 +30,3 @@ "use strict";

let entity = body;
return entity || {};
return entity || null;
}

@@ -33,0 +33,0 @@ handleResponse(entity) {

@@ -47,3 +47,3 @@ import { URLSearchParams, Http, Response, Headers, RequestOptions } from '@angular/http';

private extractData(res: Response){
private extractData(res: Response) : T{
if (res.status < 200 || res.status >= 300) {

@@ -54,3 +54,3 @@ throw new Error('Bad response status: ' + res.status);

let entity:T = body;
return entity || {};
return entity || null;
}

@@ -57,0 +57,0 @@

@@ -31,3 +31,3 @@ import { Injectable } from '@angular/core';

private extractData(res: Response){
private extractData(res: Response):T{
if (res.status < 200 || res.status >= 300) {

@@ -38,3 +38,3 @@ throw new Error('Bad response status: ' + res.status);

let entity:T = body;
return entity || {};
return entity || null;
}

@@ -41,0 +41,0 @@

{
"name": "angular2-odata",
"version": "0.0.16",
"version": "0.0.17",
"description": "OData service for Angular2",

@@ -30,12 +30,11 @@ "main": "./build/index.js",

"devDependencies": {
"@angular/common": "2.0.0-rc.4",
"@angular/compiler": "2.0.0-rc.4",
"@angular/core": "2.0.0-rc.4",
"@angular/http": "2.0.0-rc.4",
"@angular/platform-browser": "2.0.0-rc.4",
"@angular/platform-browser-dynamic": "2.0.0-rc.4",
"rxjs": "^5.0.0-beta.9",
"zone.js": "^0.6.12",
"typescript": "^1.8.10"
"@angular/common": "2.0.0-rc.5",
"@angular/compiler": "2.0.0-rc.5",
"@angular/core": "2.0.0-rc.5",
"@angular/http": "2.0.0-rc.5",
"@angular/platform-browser": "2.0.0-rc.5",
"rxjs": "^5.0.0-beta.11",
"typescript": "^1.8.10",
"zone.js": "^0.6.15"
}
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet