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

angular-in-memory-web-api

Package Overview
Dependencies
Maintainers
3
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-in-memory-web-api - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

14

bundles/in-memory-web-api.umd.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/http'), require('rxjs/Observable'), require('rxjs/add/operator/delay')) :
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/http', 'rxjs/Observable', 'rxjs/add/operator/delay'], factory) :
(factory((global.ng = global.ng || {}, global.ng.inMemoryWebApi = global.ng.inMemoryWebApi || {}),global.ng.core,global.ng.http,global.Rx,global.Rx));
}(this, (function (exports,_angular_core,_angular_http,rxjs_Observable,rxjs_add_operator_delay) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/http'), require('rxjs/Observable'), require('rxjs/add/operator/delay')) :
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/http', 'rxjs/Observable', 'rxjs/add/operator/delay'], factory) :
(factory((global.ng = global.ng || {}, global.ng.inMemoryWebApi = global.ng.inMemoryWebApi || {}),global.ng.core,global.ng.http,global.Rx));
}(this, (function (exports,_angular_core,_angular_http,rxjs_Observable) { 'use strict';

@@ -825,3 +825,4 @@ var STATUS = {

var id = _a.id, collection = _a.collection, collectionName = _a.collectionName, headers = _a.headers, req = _a.req;
if (!id) {
// tslint:disable-next-line:triple-equals
if (id == undefined) {
return createErrorResponse(req, STATUS.NOT_FOUND, "Missing \"" + collectionName + "\" id");

@@ -849,3 +850,4 @@ }

var data = collection;
if (id) {
// tslint:disable-next-line:triple-equals
if (id != undefined && id !== '') {
data = this.findById(collection, id);

@@ -852,0 +854,0 @@ }

@@ -11,2 +11,6 @@ # "angular-in-memory-web-api" versions

and we fix bugs as fast as we can.
<a id="0.3.2"></a>
## 0.3.2 (2017-05-02)
* Bug fixes PRs #91, 95, 106
<a id="0.3.1"></a>

@@ -13,0 +17,0 @@ ## 0.3.1 (2017-03-08)

@@ -0,0 +0,0 @@ export declare let STATUS: {

@@ -0,0 +0,0 @@ export var STATUS = {

@@ -0,0 +0,0 @@ import { Injector } from '@angular/core';

@@ -370,3 +370,4 @@ import { Inject, Injectable, Injector, Optional } from '@angular/core';

var id = _a.id, collection = _a.collection, collectionName = _a.collectionName, headers = _a.headers, req = _a.req;
if (!id) {
// tslint:disable-next-line:triple-equals
if (id == undefined) {
return createErrorResponse(req, STATUS.NOT_FOUND, "Missing \"" + collectionName + "\" id");

@@ -394,3 +395,4 @@ }

var data = collection;
if (id) {
// tslint:disable-next-line:triple-equals
if (id != undefined && id !== '') {
data = this.findById(collection, id);

@@ -397,0 +399,0 @@ }

@@ -0,0 +0,0 @@ import { Injector, ModuleWithProviders, Type } from '@angular/core';

@@ -0,0 +0,0 @@ import { Injector, NgModule } from '@angular/core';

export * from './http-status-codes';
export * from './in-memory-backend.service';
export * from './in-memory-web-api.module';

@@ -0,0 +0,0 @@ export * from './http-status-codes';

{
"name": "angular-in-memory-web-api",
"version": "0.3.1",
"version": "0.3.2",
"description": "An in-memory web api for Angular demos and tests",

@@ -5,0 +5,0 @@ "main": "bundles/in-memory-web-api.umd.js",

@@ -65,3 +65,3 @@ # Angular in-memory-web-api

## Basic usage
Create an `InMemoryDataService` class that implements `InMemoryDataService`.
Create an `InMemoryDataService` class that implements `InMemoryDbService`.

@@ -68,0 +68,0 @@ At minimum it must implement `createDb` which

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