New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ngx-http-client

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-http-client - npm Package Compare versions

Comparing version 1.0.0-beta.2 to 1.0.0-beta.3

ngx-http-client-1.0.0-beta.2.tgz

113

dist/bundles/http.umd.js

@@ -149,5 +149,2 @@ (function (global, factory) {

if (!!options.params) {
console.log('--------- HttpParams: ', http.HttpParams);
console.log('--------- WebHttpUrlEncodingCodec: ', WebHttpUrlEncodingCodec);
console.log('--------- params: ', options.params);
if (options.params instanceof http.HttpParams) {

@@ -159,3 +156,2 @@ var paramsObject = {};

}
console.log('----- paramsObject: ', paramsObject);
params = new http.HttpParams({

@@ -165,8 +161,4 @@ fromObject: paramsObject,

});
console.log('----- params: ', params);
console.log('--------- params is HttpParams: ', options.params);
// params = options.params;
}
else {
console.log('--------- params is not HttpParams: ', options.params);
params = new http.HttpParams({

@@ -176,3 +168,2 @@ fromObject: options.params,

});
console.log('--------- now params is HttpParams: ', params);
}

@@ -351,88 +342,3 @@ }

};
// import {HttpBackend, HttpHandler} from './backend';
// import {HTTP_INTERCEPTORS, HttpInterceptor, HttpInterceptorHandler, NoopInterceptor} from './interceptor';
// import {JsonpCallbackContext, JsonpClientBackend, JsonpInterceptor} from './jsonp';
// import {BrowserXhr, HttpXhrBackend, XhrFactory} from './xhr';
// import {HttpXsrfCookieExtractor, HttpXsrfInterceptor, HttpXsrfTokenExtractor, XSRF_COOKIE_NAME, XSRF_HEADER_NAME} from './xsrf';
/**
* Constructs an `HttpHandler` that applies a bunch of `HttpInterceptor`s
* to a request before passing it to the given `HttpBackend`.
*
* Meant to be used as a factory function within `HttpClientModule`.
*
* @stable
*/
// export function interceptingHandler(
// backend: HttpBackend, interceptors: HttpInterceptor[] | null = []): HttpHandler {
// if (!interceptors) {
// return backend;
// }
// return interceptors.reduceRight(
// (next, interceptor) => new HttpInterceptorHandler(next, interceptor), backend);
// }
// /**
// * Factory function that determines where to store JSONP callbacks.
// *
// * Ordinarily JSONP callbacks are stored on the `window` object, but this may not exist
// * in test environments. In that case, callbacks are stored on an anonymous object instead.
// *
// * @stable
// */
// export function jsonpCallbackContext(): Object {
// if (typeof window === 'object') {
// return window;
// }
// return {};
// }
/**
* `NgModule` which adds XSRF protection support to outgoing requests.
*
* Provided the server supports a cookie-based XSRF protection system, this
* module can be used directly to configure XSRF protection with the correct
* cookie and header names.
*
* If no such names are provided, the default is to use `X-XSRF-TOKEN` for
* the header name and `XSRF-TOKEN` for the cookie name.
*
* @stable
*/
// @NgModule({
// providers: [
// HttpXsrfInterceptor,
// {provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true},
// {provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor},
// {provide: XSRF_COOKIE_NAME, useValue: 'XSRF-TOKEN'},
// {provide: XSRF_HEADER_NAME, useValue: 'X-XSRF-TOKEN'},
// ],
// })
// export class HttpClientXsrfModule {
// /**
// * Disable the default XSRF protection.
// */
// static disable(): ModuleWithProviders {
// return {
// ngModule: HttpClientXsrfModule,
// providers: [
// {provide: HttpXsrfInterceptor, useClass: NoopInterceptor},
// ],
// };
// }
// /**
// * Configure XSRF protection to use the given cookie name or header name,
// * or the default names (as described above) if not provided.
// */
// static withOptions(options: {
// cookieName?: string,
// headerName?: string,
// } = {}): ModuleWithProviders {
// return {
// ngModule: HttpClientXsrfModule,
// providers: [
// options.cookieName ? {provide: XSRF_COOKIE_NAME, useValue: options.cookieName} : [],
// options.headerName ? {provide: XSRF_HEADER_NAME, useValue: options.headerName} : [],
// ],
// };
// }
// }
/**
* `NgModule` which provides the `HttpClient` and associated services.

@@ -462,20 +368,2 @@ *

/**
* `NgModule` which enables JSONP support in `HttpClient`.
*
* Without this module, Jsonp requests will reach the backend
* with method JSONP, where they'll be rejected.
*
* @stable
*/
// @NgModule({
// providers: [
// JsonpClientBackend,
// {provide: JsonpCallbackContext, useFactory: jsonpCallbackContext},
// {provide: HTTP_INTERCEPTORS, useClass: JsonpInterceptor, multi: true},
// ],
// })
// export class HttpClientJsonpModule {
// }
/**
* @license

@@ -487,3 +375,2 @@ * Copyright Google Inc. All Rights Reserved.

*/
// export {HttpBackend, HttpHandler} from './src/backend';

@@ -490,0 +377,0 @@ /**

4

dist/public_api.js

@@ -8,9 +8,5 @@ /**

*/
// export {HttpBackend, HttpHandler} from './src/backend';
export { WebHttpClient } from './src/client';
// export {HttpHeaders} from './src/headers';
// export {HTTP_INTERCEPTORS, HttpInterceptor} from './src/interceptor';
// export {JsonpClientBackend, JsonpInterceptor} from './src/jsonp';
export { HttpClientModule } from './src/module';
export { WebHttpUrlEncodingCodec } from './src/params';
//# sourceMappingURL=public_api.js.map

@@ -115,5 +115,2 @@ /**

if (!!options.params) {
console.log('--------- HttpParams: ', HttpParams);
console.log('--------- WebHttpUrlEncodingCodec: ', WebHttpUrlEncodingCodec);
console.log('--------- params: ', options.params);
if (options.params instanceof HttpParams) {

@@ -125,3 +122,2 @@ var paramsObject = {};

}
console.log('----- paramsObject: ', paramsObject);
params = new HttpParams({

@@ -131,8 +127,4 @@ fromObject: paramsObject,

});
console.log('----- params: ', params);
console.log('--------- params is HttpParams: ', options.params);
// params = options.params;
}
else {
console.log('--------- params is not HttpParams: ', options.params);
params = new HttpParams({

@@ -142,3 +134,2 @@ fromObject: options.params,

});
console.log('--------- now params is HttpParams: ', params);
}

@@ -145,0 +136,0 @@ }

/**
* Constructs an `HttpHandler` that applies a bunch of `HttpInterceptor`s
* to a request before passing it to the given `HttpBackend`.
*
* Meant to be used as a factory function within `HttpClientModule`.
*
* @stable
*/
/**
* `NgModule` which adds XSRF protection support to outgoing requests.
*
* Provided the server supports a cookie-based XSRF protection system, this
* module can be used directly to configure XSRF protection with the correct
* cookie and header names.
*
* If no such names are provided, the default is to use `X-XSRF-TOKEN` for
* the header name and `XSRF-TOKEN` for the cookie name.
*
* @stable
*/
/**
* `NgModule` which provides the `HttpClient` and associated services.

@@ -23,0 +3,0 @@ *

@@ -16,89 +16,4 @@ /**

import { HttpClient, HttpClientModule as NgHttpClientModule } from '@angular/common/http';
// import {HttpBackend, HttpHandler} from './backend';
import { WebHttpClient } from './client';
// import {HTTP_INTERCEPTORS, HttpInterceptor, HttpInterceptorHandler, NoopInterceptor} from './interceptor';
// import {JsonpCallbackContext, JsonpClientBackend, JsonpInterceptor} from './jsonp';
// import {BrowserXhr, HttpXhrBackend, XhrFactory} from './xhr';
// import {HttpXsrfCookieExtractor, HttpXsrfInterceptor, HttpXsrfTokenExtractor, XSRF_COOKIE_NAME, XSRF_HEADER_NAME} from './xsrf';
/**
* Constructs an `HttpHandler` that applies a bunch of `HttpInterceptor`s
* to a request before passing it to the given `HttpBackend`.
*
* Meant to be used as a factory function within `HttpClientModule`.
*
* @stable
*/
// export function interceptingHandler(
// backend: HttpBackend, interceptors: HttpInterceptor[] | null = []): HttpHandler {
// if (!interceptors) {
// return backend;
// }
// return interceptors.reduceRight(
// (next, interceptor) => new HttpInterceptorHandler(next, interceptor), backend);
// }
// /**
// * Factory function that determines where to store JSONP callbacks.
// *
// * Ordinarily JSONP callbacks are stored on the `window` object, but this may not exist
// * in test environments. In that case, callbacks are stored on an anonymous object instead.
// *
// * @stable
// */
// export function jsonpCallbackContext(): Object {
// if (typeof window === 'object') {
// return window;
// }
// return {};
// }
/**
* `NgModule` which adds XSRF protection support to outgoing requests.
*
* Provided the server supports a cookie-based XSRF protection system, this
* module can be used directly to configure XSRF protection with the correct
* cookie and header names.
*
* If no such names are provided, the default is to use `X-XSRF-TOKEN` for
* the header name and `XSRF-TOKEN` for the cookie name.
*
* @stable
*/
// @NgModule({
// providers: [
// HttpXsrfInterceptor,
// {provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true},
// {provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor},
// {provide: XSRF_COOKIE_NAME, useValue: 'XSRF-TOKEN'},
// {provide: XSRF_HEADER_NAME, useValue: 'X-XSRF-TOKEN'},
// ],
// })
// export class HttpClientXsrfModule {
// /**
// * Disable the default XSRF protection.
// */
// static disable(): ModuleWithProviders {
// return {
// ngModule: HttpClientXsrfModule,
// providers: [
// {provide: HttpXsrfInterceptor, useClass: NoopInterceptor},
// ],
// };
// }
// /**
// * Configure XSRF protection to use the given cookie name or header name,
// * or the default names (as described above) if not provided.
// */
// static withOptions(options: {
// cookieName?: string,
// headerName?: string,
// } = {}): ModuleWithProviders {
// return {
// ngModule: HttpClientXsrfModule,
// providers: [
// options.cookieName ? {provide: XSRF_COOKIE_NAME, useValue: options.cookieName} : [],
// options.headerName ? {provide: XSRF_HEADER_NAME, useValue: options.headerName} : [],
// ],
// };
// }
// }
/**
* `NgModule` which provides the `HttpClient` and associated services.

@@ -127,19 +42,2 @@ *

export { HttpClientModule };
/**
* `NgModule` which enables JSONP support in `HttpClient`.
*
* Without this module, Jsonp requests will reach the backend
* with method JSONP, where they'll be rejected.
*
* @stable
*/
// @NgModule({
// providers: [
// JsonpClientBackend,
// {provide: JsonpCallbackContext, useFactory: jsonpCallbackContext},
// {provide: HTTP_INTERCEPTORS, useClass: JsonpInterceptor, multi: true},
// ],
// })
// export class HttpClientJsonpModule {
// }
//# sourceMappingURL=module.js.map
{
"name": "ngx-http-client",
"version": "1.0.0-beta.2",
"version": "1.0.0-beta.3",
"description": "Angular (2+) HttpClientModule with parameter encodings compatible with back ends (Node.js, Python, PHP, etc)",

@@ -5,0 +5,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc