From 92bebf3b6d41d43cd2d0990945c78bb20a88a8af Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Sat, 14 Jan 2017 05:05:45 +0000 Subject: [PATCH] fix(sourcemaps): inline sourcemaps (#89) Closes #43 Currently sourcemaps are pointing to an absolute location based on the machine that built the project. This PR changes that to a relative location, and also inlines the sources. Inlining should be done since we do not publish the TS files. --- http-status-codes.js.map | 2 +- in-memory-backend.service.js.map | 2 +- in-memory-web-api.module.js.map | 2 +- index.js.map | 2 +- tsconfig.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/http-status-codes.js.map b/http-status-codes.js.map index 13c92bd..f663172 100644 --- a/http-status-codes.js.map +++ b/http-status-codes.js.map @@ -1 +1 @@ -{"version":3,"file":"http-status-codes.js","sourceRoot":"D:/work/in-memory-web-api/src/","sources":["src/http-status-codes.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,GAAG;IAClB,QAAQ,EAAE,GAAG;IACb,mBAAmB,EAAE,GAAG;IACxB,EAAE,EAAE,GAAG;IACP,OAAO,EAAE,GAAG;IACZ,QAAQ,EAAE,GAAG;IACb,6BAA6B,EAAE,GAAG;IAClC,UAAU,EAAE,GAAG;IACf,aAAa,EAAE,GAAG;IAClB,eAAe,EAAE,GAAG;IACpB,gBAAgB,EAAE,GAAG;IACrB,kBAAkB,EAAE,GAAG;IACvB,KAAK,EAAE,GAAG;IACV,SAAS,EAAE,GAAG;IACd,YAAY,EAAE,GAAG;IACjB,SAAS,EAAE,GAAG;IACd,kBAAkB,EAAE,GAAG;IACvB,WAAW,EAAE,GAAG;IAChB,YAAY,EAAE,GAAG;IACjB,gBAAgB,EAAE,GAAG;IACrB,SAAS,EAAE,GAAG;IACd,SAAS,EAAE,GAAG;IACd,kBAAkB,EAAE,GAAG;IACvB,cAAc,EAAE,GAAG;IACnB,6BAA6B,EAAE,GAAG;IAClC,eAAe,EAAE,GAAG;IACpB,QAAQ,EAAE,GAAG;IACb,IAAI,EAAE,GA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G;QACX,MAAM,EAAE,+BAA+B;QACvC,aAAa,EAAE,iFAAiF;QAChG,YAAY,EAAE,8CAA8C;QAC5D,WAAW,EAAE,yEAAyE;KACvF;IACD,KAAK,EAAE;QACL,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,yBAAyB;QACjC,aAAa,EAAE,wNAAwN;QACvO,YAAY,EAAE,aAAa;QAC3B,WAAW,EAAE,gDAAgD;KAC9D;IACD,KAAK,EAAE;QACL,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,sBAAsB;QAC9B,aAAa,EAAE,4JAA4J;QAC3K,YAAY,EAAE,cAAc;QAC5B,WAAW,EAAE,iDAAiD;KAC/D;IACD,KAAK,EAAE;QACL,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,iCAAiC;QACzC,aAAa,EAAE,8DAA8D;QAC7E,YAAY,EAAE,WAAW;QACzB,WAAW,EAAE,8CAA8C;KAC5D;CACF,CAAC"} \ No newline at end of file +{"version":3,"file":"http-status-codes.js","sourceRoot":"","sources":["http-status-codes.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,GAAG;IAClB,QAAQ,EAAE,GAAG;IACb,mBAAmB,EAAE,GAAG;IACxB,EAAE,EAAE,GAAG;IACP,OAAO,EAAE,GAAG;IACZ,QAAQ,EAAE,GAAG;IACb,6BAA6B,EAAE,GAAG;IAClC,UAAU,EAAE,GAAG;IACf,aAAa,EAAE,GAAG;IAClB,eAAe,EAAE,GAAG;IACpB,gBAAgB,EAAE,GAAG;IACrB,kBAAkB,EAAE,GAAG;IACvB,KAAK,EAAE,GAAG;IACV,SAAS,EAAE,GAAG;IACd,YAAY,EAAE,GAAG;IACjB,SAAS,EAAE,GAAG;IACd,kBAAkB,EAAE,GAAG;IACvB,WAAW,EAAE,GAAG;IAChB,YAAY,EAAE,GAAG;IACjB,gBAAgB,EAAE,GAAG;IACrB,SAAS,EAAE,GAAG;IACd,SAAS,EAAE,GAAG;IACd,kBAAkB,EAAE,GAAG;IACvB,c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,EAAE,6FAA6F;QAC5G,YAAY,EAAE,WAAW;QACzB,WAAW,EAAE,8CAA8C;KAC5D;IACD,KAAK,EAAE;QACL,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,+BAA+B;QACvC,aAAa,EAAE,iFAAiF;QAChG,YAAY,EAAE,8CAA8C;QAC5D,WAAW,EAAE,yEAAyE;KACvF;IACD,KAAK,EAAE;QACL,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,yBAAyB;QACjC,aAAa,EAAE,wNAAwN;QACvO,YAAY,EAAE,aAAa;QAC3B,WAAW,EAAE,gDAAgD;KAC9D;IACD,KAAK,EAAE;QACL,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,sBAAsB;QAC9B,aAAa,EAAE,4JAA4J;QAC3K,YAAY,EAAE,cAAc;QAC5B,WAAW,EAAE,iDAAiD;KAC/D;IACD,KAAK,EAAE;QACL,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,iCAAiC;QACzC,aAAa,EAAE,8DAA8D;QAC7E,YAAY,EAAE,WAAW;QACzB,WAAW,EAAE,8CAA8C;KAC5D;CACF,CAAC","sourcesContent":["export let STATUS = {\r\n CONTINUE: 100,\r\n SWITCHING_PROTOCOLS: 101,\r\n OK: 200,\r\n CREATED: 201,\r\n ACCEPTED: 202,\r\n NON_AUTHORITATIVE_INFORMATION: 203,\r\n NO_CONTENT: 204,\r\n RESET_CONTENT: 205,\r\n PARTIAL_CONTENT: 206,\r\n MULTIPLE_CHOICES: 300,\r\n MOVED_PERMANTENTLY: 301,\r\n FOUND: 302,\r\n SEE_OTHER: 303,\r\n NOT_MODIFIED: 304,\r\n USE_PROXY: 305,\r\n TEMPORARY_REDIRECT: 307,\r\n BAD_REQUEST: 400,\r\n UNAUTHORIZED: 401,\r\n PAYMENT_REQUIRED: 402,\r\n FORBIDDEN: 403,\r\n NOT_FOUND: 404,\r\n METHOD_NOT_ALLOWED: 405,\r\n NOT_ACCEPTABLE: 406,\r\n PROXY_AUTHENTICATION_REQUIRED: 407,\r\n REQUEST_TIMEOUT: 408,\r\n CONFLICT: 409,\r\n GONE: 410,\r\n LENGTH_REQUIRED: 411,\r\n PRECONDITION_FAILED: 412,\r\n PAYLOAD_TO_LARGE: 413,\r\n URI_TOO_LONG: 414,\r\n UNSUPPORTED_MEDIA_TYPE: 415,\r\n RANGE_NOT_SATISFIABLE: 416,\r\n EXPECTATION_FAILED: 417,\r\n IM_A_TEAPOT: 418,\r\n UPGRADE_REQUIRED: 426,\r\n INTERNAL_SERVER_ERROR: 500,\r\n NOT_IMPLEMENTED: 501,\r\n BAD_GATEWAY: 502,\r\n SERVICE_UNAVAILABLE: 503,\r\n GATEWAY_TIMEOUT: 504,\r\n HTTP_VERSION_NOT_SUPPORTED: 505,\r\n PROCESSING: 102,\r\n MULTI_STATUS: 207,\r\n IM_USED: 226,\r\n PERMANENT_REDIRECT: 308,\r\n UNPROCESSABLE_ENTRY: 422,\r\n LOCKED: 423,\r\n FAILED_DEPENDENCY: 424,\r\n PRECONDITION_REQUIRED: 428,\r\n TOO_MANY_REQUESTS: 429,\r\n REQUEST_HEADER_FIELDS_TOO_LARGE: 431,\r\n UNAVAILABLE_FOR_LEGAL_REASONS: 451,\r\n VARIANT_ALSO_NEGOTIATES: 506,\r\n INSUFFICIENT_STORAGE: 507,\r\n NETWORK_AUTHENTICATION_REQUIRED: 511\r\n};\r\n\r\n/*tslint:disable:quotemark max-line-length one-line */\r\nexport let STATUS_CODE_INFO =\r\n {\r\n '100': {\r\n 'code': 100,\r\n 'text': 'Continue',\r\n 'description': '\\\"The initial part of a request has been received and has not yet been rejected by the server.\\\"',\r\n 'spec_title': 'RFC7231#6.2.1',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.2.1'\r\n },\r\n '101': {\r\n 'code': 101,\r\n 'text': 'Switching Protocols',\r\n 'description': '\\\"The server understands and is willing to comply with the client\\'s request, via the Upgrade header field, for a change in the application protocol being used on this connection.\\\"',\r\n 'spec_title': 'RFC7231#6.2.2',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.2.2'\r\n },\r\n '200': {\r\n 'code': 200,\r\n 'text': 'OK',\r\n 'description': '\\\"The request has succeeded.\\\"',\r\n 'spec_title': 'RFC7231#6.3.1',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.1'\r\n },\r\n '201': {\r\n 'code': 201,\r\n 'text': 'Created',\r\n 'description': '\\\"The request has been fulfilled and has resulted in one or more new resources being created.\\\"',\r\n 'spec_title': 'RFC7231#6.3.2',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.2'\r\n },\r\n '202': {\r\n 'code': 202,\r\n 'text': 'Accepted',\r\n 'description': '\\\"The request has been accepted for processing, but the processing has not been completed.\\\"',\r\n 'spec_title': 'RFC7231#6.3.3',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.3'\r\n },\r\n '203': {\r\n 'code': 203,\r\n 'text': 'Non-Authoritative Information',\r\n 'description': '\\\"The request was successful but the enclosed payload has been modified from that of the origin server\\'s 200 (OK) response by a transforming proxy.\\\"',\r\n 'spec_title': 'RFC7231#6.3.4',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.4'\r\n },\r\n '204': {\r\n 'code': 204,\r\n 'text': 'No Content',\r\n 'description': '\\\"The server has successfully fulfilled the request and that there is no additional content to send in the response payload body.\\\"',\r\n 'spec_title': 'RFC7231#6.3.5',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.5'\r\n },\r\n '205': {\r\n 'code': 205,\r\n 'text': 'Reset Content',\r\n 'description': '\\\"The server has fulfilled the request and desires that the user agent reset the \\\"document view\\\", which caused the request to be sent, to its original state as received from the origin server.\\\"',\r\n 'spec_title': 'RFC7231#6.3.6',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.6'\r\n },\r\n '206': {\r\n 'code': 206,\r\n 'text': 'Partial Content',\r\n 'description': '\\\"The server is successfully fulfilling a range request for the target resource by transferring one or more parts of the selected representation that correspond to the satisfiable ranges found in the requests\\'s Range header field.\\\"',\r\n 'spec_title': 'RFC7233#4.1',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7233#section-4.1'\r\n },\r\n '300': {\r\n 'code': 300,\r\n 'text': 'Multiple Choices',\r\n 'description': '\\\"The target resource has more than one representation, each with its own more specific identifier, and information about the alternatives is being provided so that the user (or user agent) can select a preferred representation by redirecting its request to one or more of those identifiers.\\\"',\r\n 'spec_title': 'RFC7231#6.4.1',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.1'\r\n },\r\n '301': {\r\n 'code': 301,\r\n 'text': 'Moved Permanently',\r\n 'description': '\\\"The target resource has been assigned a new permanent URI and any future references to this resource ought to use one of the enclosed URIs.\\\"',\r\n 'spec_title': 'RFC7231#6.4.2',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.2'\r\n },\r\n '302': {\r\n 'code': 302,\r\n 'text': 'Found',\r\n 'description': '\\\"The target resource resides temporarily under a different URI.\\\"',\r\n 'spec_title': 'RFC7231#6.4.3',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.3'\r\n },\r\n '303': {\r\n 'code': 303,\r\n 'text': 'See Other',\r\n 'description': '\\\"The server is redirecting the user agent to a different resource, as indicated by a URI in the Location header field, that is intended to provide an indirect response to the original request.\\\"',\r\n 'spec_title': 'RFC7231#6.4.4',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.4'\r\n },\r\n '304': {\r\n 'code': 304,\r\n 'text': 'Not Modified',\r\n 'description': '\\\"A conditional GET request has been received and would have resulted in a 200 (OK) response if it were not for the fact that the condition has evaluated to false.\\\"',\r\n 'spec_title': 'RFC7232#4.1',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7232#section-4.1'\r\n },\r\n '305': {\r\n 'code': 305,\r\n 'text': 'Use Proxy',\r\n 'description': '*deprecated*',\r\n 'spec_title': 'RFC7231#6.4.5',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.5'\r\n },\r\n '307': {\r\n 'code': 307,\r\n 'text': 'Temporary Redirect',\r\n 'description': '\\\"The target resource resides temporarily under a different URI and the user agent MUST NOT change the request method if it performs an automatic redirection to that URI.\\\"',\r\n 'spec_title': 'RFC7231#6.4.7',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.7'\r\n },\r\n '400': {\r\n 'code': 400,\r\n 'text': 'Bad Request',\r\n 'description': '\\\"The server cannot or will not process the request because the received syntax is invalid, nonsensical, or exceeds some limitation on what the server is willing to process.\\\"',\r\n 'spec_title': 'RFC7231#6.5.1',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.1'\r\n },\r\n '401': {\r\n 'code': 401,\r\n 'text': 'Unauthorized',\r\n 'description': '\\\"The request has not been applied because it lacks valid authentication credentials for the target resource.\\\"',\r\n 'spec_title': 'RFC7235#6.3.1',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7235#section-3.1'\r\n },\r\n '402': {\r\n 'code': 402,\r\n 'text': 'Payment Required',\r\n 'description': '*reserved*',\r\n 'spec_title': 'RFC7231#6.5.2',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.2'\r\n },\r\n '403': {\r\n 'code': 403,\r\n 'text': 'Forbidden',\r\n 'description': '\\\"The server understood the request but refuses to authorize it.\\\"',\r\n 'spec_title': 'RFC7231#6.5.3',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.3'\r\n },\r\n '404': {\r\n 'code': 404,\r\n 'text': 'Not Found',\r\n 'description': '\\\"The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.\\\"',\r\n 'spec_title': 'RFC7231#6.5.4',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.4'\r\n },\r\n '405': {\r\n 'code': 405,\r\n 'text': 'Method Not Allowed',\r\n 'description': '\\\"The method specified in the request-line is known by the origin server but not supported by the target resource.\\\"',\r\n 'spec_title': 'RFC7231#6.5.5',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.5'\r\n },\r\n '406': {\r\n 'code': 406,\r\n 'text': 'Not Acceptable',\r\n 'description': '\\\"The target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request, and the server is unwilling to supply a default representation.\\\"',\r\n 'spec_title': 'RFC7231#6.5.6',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.6'\r\n },\r\n '407': {\r\n 'code': 407,\r\n 'text': 'Proxy Authentication Required',\r\n 'description': '\\\"The client needs to authenticate itself in order to use a proxy.\\\"',\r\n 'spec_title': 'RFC7231#6.3.2',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.2'\r\n },\r\n '408': {\r\n 'code': 408,\r\n 'text': 'Request Timeout',\r\n 'description': '\\\"The server did not receive a complete request message within the time that it was prepared to wait.\\\"',\r\n 'spec_title': 'RFC7231#6.5.7',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.7'\r\n },\r\n '409': {\r\n 'code': 409,\r\n 'text': 'Conflict',\r\n 'description': '\\\"The request could not be completed due to a conflict with the current state of the resource.\\\"',\r\n 'spec_title': 'RFC7231#6.5.8',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.8'\r\n },\r\n '410': {\r\n 'code': 410,\r\n 'text': 'Gone',\r\n 'description': '\\\"Access to the target resource is no longer available at the origin server and that this condition is likely to be permanent.\\\"',\r\n 'spec_title': 'RFC7231#6.5.9',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.9'\r\n },\r\n '411': {\r\n 'code': 411,\r\n 'text': 'Length Required',\r\n 'description': '\\\"The server refuses to accept the request without a defined Content-Length.\\\"',\r\n 'spec_title': 'RFC7231#6.5.10',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.10'\r\n },\r\n '412': {\r\n 'code': 412,\r\n 'text': 'Precondition Failed',\r\n 'description': '\\\"One or more preconditions given in the request header fields evaluated to false when tested on the server.\\\"',\r\n 'spec_title': 'RFC7232#4.2',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7232#section-4.2'\r\n },\r\n '413': {\r\n 'code': 413,\r\n 'text': 'Payload Too Large',\r\n 'description': '\\\"The server is refusing to process a request because the request payload is larger than the server is willing or able to process.\\\"',\r\n 'spec_title': 'RFC7231#6.5.11',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.11'\r\n },\r\n '414': {\r\n 'code': 414,\r\n 'text': 'URI Too Long',\r\n 'description': '\\\"The server is refusing to service the request because the request-target is longer than the server is willing to interpret.\\\"',\r\n 'spec_title': 'RFC7231#6.5.12',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.12'\r\n },\r\n '415': {\r\n 'code': 415,\r\n 'text': 'Unsupported Media Type',\r\n 'description': '\\\"The origin server is refusing to service the request because the payload is in a format not supported by the target resource for this method.\\\"',\r\n 'spec_title': 'RFC7231#6.5.13',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.13'\r\n },\r\n '416': {\r\n 'code': 416,\r\n 'text': 'Range Not Satisfiable',\r\n 'description': '\\\"None of the ranges in the request\\'s Range header field overlap the current extent of the selected resource or that the set of ranges requested has been rejected due to invalid ranges or an excessive request of small or overlapping ranges.\\\"',\r\n 'spec_title': 'RFC7233#4.4',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7233#section-4.4'\r\n },\r\n '417': {\r\n 'code': 417,\r\n 'text': 'Expectation Failed',\r\n 'description': '\\\"The expectation given in the request\\'s Expect header field could not be met by at least one of the inbound servers.\\\"',\r\n 'spec_title': 'RFC7231#6.5.14',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.14'\r\n },\r\n '418': {\r\n 'code': 418,\r\n 'text': 'I\\'m a teapot',\r\n 'description': '\\\"1988 April Fools Joke. Returned by tea pots requested to brew coffee.\\\"',\r\n 'spec_title': 'RFC 2324',\r\n 'spec_href': 'https://tools.ietf.org/html/rfc2324'\r\n },\r\n '426': {\r\n 'code': 426,\r\n 'text': 'Upgrade Required',\r\n 'description': '\\\"The server refuses to perform the request using the current protocol but might be willing to do so after the client upgrades to a different protocol.\\\"',\r\n 'spec_title': 'RFC7231#6.5.15',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.15'\r\n },\r\n '500': {\r\n 'code': 500,\r\n 'text': 'Internal Server Error',\r\n 'description': '\\\"The server encountered an unexpected condition that prevented it from fulfilling the request.\\\"',\r\n 'spec_title': 'RFC7231#6.6.1',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.1'\r\n },\r\n '501': {\r\n 'code': 501,\r\n 'text': 'Not Implemented',\r\n 'description': '\\\"The server does not support the functionality required to fulfill the request.\\\"',\r\n 'spec_title': 'RFC7231#6.6.2',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.2'\r\n },\r\n '502': {\r\n 'code': 502,\r\n 'text': 'Bad Gateway',\r\n 'description': '\\\"The server, while acting as a gateway or proxy, received an invalid response from an inbound server it accessed while attempting to fulfill the request.\\\"',\r\n 'spec_title': 'RFC7231#6.6.3',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.3'\r\n },\r\n '503': {\r\n 'code': 503,\r\n 'text': 'Service Unavailable',\r\n 'description': '\\\"The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay.\\\"',\r\n 'spec_title': 'RFC7231#6.6.4',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.4'\r\n },\r\n '504': {\r\n 'code': 504,\r\n 'text': 'Gateway Time-out',\r\n 'description': '\\\"The server, while acting as a gateway or proxy, did not receive a timely response from an upstream server it needed to access in order to complete the request.\\\"',\r\n 'spec_title': 'RFC7231#6.6.5',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.5'\r\n },\r\n '505': {\r\n 'code': 505,\r\n 'text': 'HTTP Version Not Supported',\r\n 'description': '\\\"The server does not support, or refuses to support, the protocol version that was used in the request message.\\\"',\r\n 'spec_title': 'RFC7231#6.6.6',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.6'\r\n },\r\n '102': {\r\n 'code': 102,\r\n 'text': 'Processing',\r\n 'description': '\\\"An interim response to inform the client that the server has accepted the complete request, but has not yet completed it.\\\"',\r\n 'spec_title': 'RFC5218#10.1',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.1'\r\n },\r\n '207': {\r\n 'code': 207,\r\n 'text': 'Multi-Status',\r\n 'description': '\\\"Status for multiple independent operations.\\\"',\r\n 'spec_title': 'RFC5218#10.2',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.2'\r\n },\r\n '226': {\r\n 'code': 226,\r\n 'text': 'IM Used',\r\n 'description': '\\\"The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.\\\"',\r\n 'spec_title': 'RFC3229#10.4.1',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc3229#section-10.4.1'\r\n },\r\n '308': {\r\n 'code': 308,\r\n 'text': 'Permanent Redirect',\r\n 'description': '\\\"The target resource has been assigned a new permanent URI and any future references to this resource SHOULD use one of the returned URIs. [...] This status code is similar to 301 Moved Permanently (Section 7.3.2 of rfc7231), except that it does not allow rewriting the request method from POST to GET.\\\"',\r\n 'spec_title': 'RFC7238',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc7238'\r\n },\r\n '422': {\r\n 'code': 422,\r\n 'text': 'Unprocessable Entity',\r\n 'description': '\\\"The server understands the content type of the request entity (hence a 415(Unsupported Media Type) status code is inappropriate), and the syntax of the request entity is correct (thus a 400 (Bad Request) status code is inappropriate) but was unable to process the contained instructions.\\\"',\r\n 'spec_title': 'RFC5218#10.3',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.3'\r\n },\r\n '423': {\r\n 'code': 423,\r\n 'text': 'Locked',\r\n 'description': '\\\"The source or destination resource of a method is locked.\\\"',\r\n 'spec_title': 'RFC5218#10.4',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.4'\r\n },\r\n '424': {\r\n 'code': 424,\r\n 'text': 'Failed Dependency',\r\n 'description': '\\\"The method could not be performed on the resource because the requested action depended on another action and that action failed.\\\"',\r\n 'spec_title': 'RFC5218#10.5',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.5'\r\n },\r\n '428': {\r\n 'code': 428,\r\n 'text': 'Precondition Required',\r\n 'description': '\\\"The origin server requires the request to be conditional.\\\"',\r\n 'spec_title': 'RFC6585#3',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc6585#section-3'\r\n },\r\n '429': {\r\n 'code': 429,\r\n 'text': 'Too Many Requests',\r\n 'description': '\\\"The user has sent too many requests in a given amount of time (\\\"rate limiting\\\").\\\"',\r\n 'spec_title': 'RFC6585#4',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc6585#section-4'\r\n },\r\n '431': {\r\n 'code': 431,\r\n 'text': 'Request Header Fields Too Large',\r\n 'description': '\\\"The server is unwilling to process the request because its header fields are too large.\\\"',\r\n 'spec_title': 'RFC6585#5',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc6585#section-5'\r\n },\r\n '451': {\r\n 'code': 451,\r\n 'text': 'Unavailable For Legal Reasons',\r\n 'description': '\\\"The server is denying access to the resource in response to a legal demand.\\\"',\r\n 'spec_title': 'draft-ietf-httpbis-legally-restricted-status',\r\n 'spec_href': 'http://tools.ietf.org/html/draft-ietf-httpbis-legally-restricted-status'\r\n },\r\n '506': {\r\n 'code': 506,\r\n 'text': 'Variant Also Negotiates',\r\n 'description': '\\\"The server has an internal configuration error: the chosen variant resource is configured to engage in transparent content negotiation itself, and is therefore not a proper end point in the negotiation process.\\\"',\r\n 'spec_title': 'RFC2295#8.1',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc2295#section-8.1'\r\n },\r\n '507': {\r\n 'code': 507,\r\n 'text': 'Insufficient Storage',\r\n 'description': '\\The method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request.\\\"',\r\n 'spec_title': 'RFC5218#10.6',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.6'\r\n },\r\n '511': {\r\n 'code': 511,\r\n 'text': 'Network Authentication Required',\r\n 'description': '\\\"The client needs to authenticate to gain network access.\\\"',\r\n 'spec_title': 'RFC6585#6',\r\n 'spec_href': 'http://tools.ietf.org/html/rfc6585#section-6'\r\n }\r\n };\r\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]} \ No newline at end of file diff --git a/in-memory-backend.service.js.map b/in-memory-backend.service.js.map index d12dea9..7bb7270 100644 --- a/in-memory-backend.service.js.map +++ b/in-memory-backend.service.js.map @@ -1 +1 @@ -{"version":3,"file":"in-memory-backend.service.js","sourceRoot":"D:/work/in-memory-web-api/src/","sources":["src/in-memory-backend.service.ts"],"names":[],"mappings":"OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,eAAe;OAE/D,EAAE,mBAAmB,EAAE,UAAU,EAC/B,OAAO,EAAE,UAAU,EAAW,aAAa,EAC3C,QAAQ,EAAE,eAAe,EAAE,eAAe,EAC1C,UAAU,EAAE,YAAY,EAAE,MAAM,eAAe;OAEjD,EAAE,UAAU,EAAE,MAAM,iBAAiB;OAErC,yBAAyB;OAEzB,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,qBAAqB;AAE9D,iCAAiC;AAEjC;;GAEG;AACH,oCAAoC,GAAY,EAAE,MAAc,EAAE,OAAe;IAC/E,MAAM,CAAC,IAAI,eAAe,CAAC;QACzB,IAAI,EAAE,EAAE,OAAO,EAAE,KAAG,OAAS,EAAE;QAC/B,GAAG,EAAE,GAAG,CAAC,GAAG;QACZ,OAAO,EAAE,IAAI,OAAO,CAAC,EAAE,cAAc,EAAE,kBAAkB,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AE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAG,EAAC;KACvH,EAJ6F,CAI7F,CAAC;IACF,6BAAC;AAAD,CAAC,AAxcD,IAwcC","sourcesContent":["import { Inject, Injectable, Injector, Optional } from '@angular/core';\r\n\r\nimport { BaseResponseOptions, BrowserXhr, Connection, ConnectionBackend,\r\n Headers, ReadyState, Request, RequestMethod,\r\n Response, ResponseOptions, URLSearchParams,\r\n XHRBackend, XSRFStrategy } from '@angular/http';\r\n\r\nimport { Observable } from 'rxjs/Observable';\r\nimport { Observer } from 'rxjs/Observer';\r\nimport 'rxjs/add/operator/delay';\r\n\r\nimport { STATUS, STATUS_CODE_INFO } from './http-status-codes';\r\n\r\n//////////// HELPERS ///////////\r\n\r\n/**\r\n * Create an error Response from an HTTP status code and error message\r\n */\r\nexport function createErrorResponse(req: Request, status: number, message: string): ResponseOptions {\r\n return new ResponseOptions({\r\n body: { 'error': `${message}` },\r\n url: req.url,\r\n headers: new Headers({ 'Content-Type': 'application/json' }),\r\n status: status\r\n });\r\n}\r\n\r\n/**\r\n * Create an Observable response from response options.\r\n */\r\nexport function createObservableResponse(req: Request, resOptions: ResponseOptions): Observable {\r\n return new Observable((responseObserver: Observer) => {\r\n emitResponse(responseObserver, req, resOptions);\r\n return () => { }; // unsubscribe function\r\n });\r\n}\r\n\r\n/**\r\n * Create a response from response options\r\n * and tell \"ResponseObserver\" (an `Observer`) to emit it.\r\n * The observer's observable is either completed or in error state after call.\r\n */\r\nexport function emitResponse(responseObserver: Observer, req: Request, resOptions: ResponseOptions) {\r\n resOptions.url = resOptions.url || req.url; // make sure url is set\r\n resOptions = setStatusText(resOptions);\r\n\r\n const res = new Response(resOptions);\r\n\r\n if (isSuccess(res.status)) {\r\n responseObserver.next(res);\r\n responseObserver.complete();\r\n } else {\r\n responseObserver.error(res);\r\n }\r\n}\r\n\r\n/**\r\n* Interface for object passed to an HTTP method override method\r\n*/\r\nexport interface HttpMethodInterceptorArgs {\r\n requestInfo: RequestInfo; // parsed request\r\n db: Object; // the current in-mem database collections\r\n config: InMemoryBackendConfigArgs; // the current config\r\n passThruBackend: ConnectionBackend; // pass through backend, if it exists\r\n}\r\n\r\n/**\r\n* Interface for a class that creates an in-memory database\r\n*\r\n* Its `createDb` method creates a hash of named collections that represents the database\r\n*\r\n* For maximum flexibility, the service may define HTTP method overrides.\r\n* Such methods must match the spelling of an HTTP method in lower case (e.g, \"get\").\r\n* If a request has a matching method, it will be called as in\r\n* `get(info: requestInfo, db: {})` where `db` is the database object described above.\r\n*/\r\nexport abstract class InMemoryDbService {\r\n /**\r\n * Creates a \"database\" hash whose keys are collection names\r\n * and whose values are arrays of collection objects to return or update.\r\n *\r\n * This method must be safe to call repeatedly.\r\n * Each time it should return a new object with new arrays containing new item objects.\r\n * This condition allows InMemoryBackendService to morph the arrays and objects\r\n * without touching the original source data.\r\n */\r\n abstract createDb(): {};\r\n}\r\n\r\n/**\r\n* Interface for InMemoryBackend configuration options\r\n*/\r\nexport abstract class InMemoryBackendConfigArgs {\r\n /**\r\n * false (default) if search match should be case insensitive\r\n */\r\n caseSensitiveSearch?: boolean;\r\n /**\r\n * default response options\r\n */\r\n defaultResponseOptions?: ResponseOptions;\r\n /**\r\n * delay (in ms) to simulate latency\r\n */\r\n delay?: number;\r\n /**\r\n * false (default) if ok when object-to-delete not found; else 404\r\n */\r\n delete404?: boolean;\r\n /**\r\n * false (default) if should pass unrecognized request URL through to original backend; else 404\r\n */\r\n passThruUnknownUrl?: boolean;\r\n /**\r\n * true (default) should NOT return the entity (204) after a POST. false: return the entity (200).\r\n */\r\n post204?: boolean;\r\n /**\r\n * true (default) should NOT return the entity (204) after a PUT. false: return the entity (200).\r\n */\r\n put204?: boolean;\r\n /**\r\n * The base path to the api, e.g, 'api/'.\r\n * If not specified than `parseUrl` assumes it is the first path segment in the request.\r\n */\r\n apiBase?: string;\r\n /**\r\n * host for this service, e.g., 'localhost'\r\n */\r\n host?: string;\r\n /**\r\n * root path _before_ any API call, e.g., ''\r\n */\r\n rootPath?: string;\r\n}\r\n\r\nexport function removeTrailingSlash(path: string) {\r\n return path.replace(/\\/$/, '');\r\n}\r\n\r\n/////////////////////////////////\r\n/**\r\n* InMemoryBackendService configuration options\r\n* Usage:\r\n* InMemoryWebApiModule.forRoot(InMemHeroService, {delay: 600})\r\n*\r\n* or if providing separately:\r\n* provide(InMemoryBackendConfig, {useValue: {delay: 600}}),\r\n*/\r\n\r\nexport class InMemoryBackendConfig implements InMemoryBackendConfigArgs {\r\n constructor(config: InMemoryBackendConfigArgs = {}) {\r\n Object.assign(this, {\r\n // default config:\r\n caseSensitiveSearch: false,\r\n defaultResponseOptions: new BaseResponseOptions(),\r\n delay: 500, // simulate latency by delaying response\r\n delete404: false, // don't complain if can't find entity to delete\r\n passThruUnknownUrl: false, // 404 if can't process URL\r\n post204: true, // don't return the item after a POST\r\n put204: true, // don't return the item after a PUT\r\n apiBase: undefined, // assumed to be the first path segment\r\n host: undefined, // default value is actually set in InMemoryBackendService ctor\r\n rootPath: undefined // default value is actually set in InMemoryBackendService ctor\r\n }, config);\r\n }\r\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: InMemoryBackendConfigArgs, },\n];\n}\r\n\r\n/**\r\n * Returns true if the the Http Status Code is 200-299 (success)\r\n */\r\nexport function isSuccess(status: number): boolean { return status >= 200 && status < 300; };\r\n\r\n/**\r\n* Interface for object w/ info about the current request url\r\n* extracted from an Http Request\r\n*/\r\nexport interface RequestInfo {\r\n req: Request;\r\n base: string;\r\n collection: any[];\r\n collectionName: string;\r\n headers: Headers;\r\n id: any;\r\n query: URLSearchParams;\r\n resourceUrl: string;\r\n}\r\n\r\n/**\r\n * Provide a `responseInterceptor` method of this type in your `inMemDbService` to\r\n * morph the response options created in the `collectionHandler`.\r\n */\r\nexport type ResponseInterceptor = (res: ResponseOptions, ri: RequestInfo) => ResponseOptions;\r\n\r\n/**\r\n * Set the status text in a response:\r\n */\r\nexport function setStatusText(options: ResponseOptions) {\r\n try {\r\n const statusCode = STATUS_CODE_INFO[options.status];\r\n options['statusText'] = statusCode ? statusCode.text : 'Unknown Status';\r\n return options;\r\n } catch (err) {\r\n return new ResponseOptions({\r\n status: STATUS.INTERNAL_SERVER_ERROR,\r\n statusText: 'Invalid Server Operation'\r\n });\r\n }\r\n}\r\n\r\n/**\r\n *\r\n * Interface for the result of the parseUrl method:\r\n * Given URL \"http://localhost:8080/api/customers/42?foo=1 the default implementation returns\r\n * base: 'api/'\r\n * collectionName: 'customers'\r\n * id: '42'\r\n * query: new URLSearchParams('foo=1')\r\n * resourceUrl: 'http://localhost/api/customers/'\r\n */\r\nexport interface ParsedUrl {\r\n base: string; // the slash-terminated \"base\" for api requests (e.g. `api/`)\r\n collectionName: string; // the name of the collection of data items (e.g.,`customers`)\r\n id: string; // the (optional) id of the item in the collection (e.g., `42`)\r\n query: URLSearchParams; // the query as an Angular `Http` client request's URLSearchParams object\r\n resourceUrl: string; // the effective URL for the resource (e.g., 'http://localhost/api/customers/')\r\n}\r\n\r\n//////////// InMemoryBackendService ///////////\r\n/**\r\n * Simulate the behavior of a RESTy web api\r\n * backed by the simple in-memory data store provided by the injected InMemoryDataService service.\r\n * Conforms mostly to behavior described here:\r\n * http://www.restapitutorial.com/lessons/httpmethods.html\r\n *\r\n * ### Usage\r\n *\r\n * Create `InMemoryDataService` class that implements `InMemoryDataService`.\r\n * Call `forRoot` static method with this service class and optional configuration object:\r\n * ```\r\n * // other imports\r\n * import { HttpModule } from '@angular/http';\r\n * import { InMemoryWebApiModule } from 'angular-in-memory-web-api';\r\n *\r\n * import { InMemHeroService, inMemConfig } from '../api/in-memory-hero.service';\r\n * @NgModule({\r\n * imports: [\r\n * HttpModule,\r\n * InMemoryWebApiModule.forRoot(InMemHeroService, inMemConfig),\r\n * ...\r\n * ],\r\n * ...\r\n * })\r\n * export class AppModule { ... }\r\n * ```\r\n */\r\n\r\nexport class InMemoryBackendService {\r\n protected passThruBackend: ConnectionBackend;\r\n protected config: InMemoryBackendConfigArgs = new InMemoryBackendConfig();\r\n protected db: Object;\r\n\r\n constructor(\r\n private injector: Injector,\r\n private inMemDbService: InMemoryDbService,\r\n config: InMemoryBackendConfigArgs\r\n ) {\r\n this.resetDb();\r\n\r\n const loc = this.getLocation('./');\r\n this.config.host = loc.host; // default to app web server host\r\n this.config.rootPath = loc.pathname; // default to path when app is served (e.g.'/')\r\n Object.assign(this.config, config || {});\r\n this.setPassThruBackend();\r\n }\r\n\r\n createConnection(req: Request): Connection {\r\n let response: Observable;\r\n try {\r\n response = this.handleRequest(req);\r\n } catch (error) {\r\n const err = error.message || error;\r\n const options = createErrorResponse(req, STATUS.INTERNAL_SERVER_ERROR, `${err}`);\r\n response = this.addDelay(createObservableResponse(req, options));\r\n }\r\n return {\r\n readyState: ReadyState.Done,\r\n request: req,\r\n response\r\n };\r\n }\r\n\r\n //// protected /////\r\n\r\n /**\r\n * Process Request and return an Observable of Http Response object\r\n * in the manner of a RESTy web api.\r\n *\r\n * Expect URI pattern in the form :base/:collectionName/:id?\r\n * Examples:\r\n * // for store with a 'customers' collection\r\n * GET api/customers // all customers\r\n * GET api/customers/42 // the character with id=42\r\n * GET api/customers?name=^j // 'j' is a regex; returns customers whose name starts with 'j' or 'J'\r\n * GET api/customers.json/42 // ignores the \".json\"\r\n *\r\n * Also accepts direct commands to the service in which the last segment of the apiBase is the word \"commands\"\r\n * Examples:\r\n * POST commands/resetDb,\r\n * GET/POST commands/config - get or (re)set the config\r\n *\r\n * HTTP overrides:\r\n * If the injected inMemDbService defines an HTTP method (lowercase)\r\n * The request is forwarded to that method as in\r\n * `inMemDbService.get(httpMethodInterceptorArgs)`\r\n * which must return an `Observable`\r\n */\r\n protected handleRequest(req: Request): Observable {\r\n\r\n const parsed = this.inMemDbService['parseUrl'] ?\r\n // parse with override method\r\n this.inMemDbService['parseUrl'](req.url) as ParsedUrl :\r\n // parse with default url parser\r\n this.parseUrl(req.url);\r\n\r\n const { base, collectionName, id, query, resourceUrl } = parsed;\r\n const collection = this.db[collectionName];\r\n const reqInfo: RequestInfo = {\r\n req: req,\r\n base: base,\r\n collection: collection,\r\n collectionName: collectionName,\r\n headers: new Headers({ 'Content-Type': 'application/json' }),\r\n id: this.parseId(collection, id),\r\n query: query,\r\n resourceUrl: resourceUrl\r\n };\r\n\r\n const reqMethodName = RequestMethod[req.method || 0].toLowerCase();\r\n let resOptions: ResponseOptions;\r\n\r\n if (/commands\\/$/i.test(reqInfo.base)) {\r\n return this.commands(reqInfo);\r\n\r\n } else if (this.inMemDbService[reqMethodName]) {\r\n // InMemoryDbService has an overriding interceptor for this HTTP method; call it\r\n // The interceptor result must be an Observable\r\n const interceptorArgs: HttpMethodInterceptorArgs = {\r\n requestInfo: reqInfo,\r\n db: this.db,\r\n config: this.config,\r\n passThruBackend: this.passThruBackend\r\n };\r\n const interceptorResponse = this.inMemDbService[reqMethodName](interceptorArgs) as Observable;\r\n return this.addDelay(interceptorResponse);\r\n\r\n } else if (reqInfo.collection) {\r\n // request is for a collection created by the InMemoryDbService\r\n return this.addDelay(this.collectionHandler(reqInfo));\r\n\r\n } else if (this.passThruBackend) {\r\n // Passes request thru to a \"real\" backend which returns an Observable\r\n // BAIL OUT with this Observable\r\n return this.passThruBackend.createConnection(req).response;\r\n\r\n } else {\r\n // can't handle this request\r\n resOptions = createErrorResponse(req, STATUS.NOT_FOUND, `Collection '${collectionName}' not found`);\r\n return this.addDelay(createObservableResponse(req, resOptions));\r\n }\r\n }\r\n\r\n /**\r\n * Add configured delay to response observable unless delay === 0\r\n */\r\n protected addDelay(response: Observable): Observable {\r\n const delay = this.config.delay;\r\n return delay === 0 ? response : response.delay(delay || 500);\r\n }\r\n\r\n /**\r\n * Apply query/search parameters as a filter over the collection\r\n * This impl only supports RegExp queries on string properties of the collection\r\n * ANDs the conditions together\r\n */\r\n protected applyQuery(collection: any[], query: URLSearchParams): any[] {\r\n // extract filtering conditions - {propertyName, RegExps) - from query/search parameters\r\n const conditions: {name: string, rx: RegExp}[] = [];\r\n const caseSensitive = this.config.caseSensitiveSearch ? undefined : 'i';\r\n query.paramsMap.forEach((value: string[], name: string) => {\r\n value.forEach(v => conditions.push({name, rx: new RegExp(decodeURI(v), caseSensitive)}));\r\n });\r\n\r\n const len = conditions.length;\r\n if (!len) { return collection; }\r\n\r\n // AND the RegExp conditions\r\n return collection.filter(row => {\r\n let ok = true;\r\n let i = len;\r\n while (ok && i) {\r\n i -= 1;\r\n const cond = conditions[i];\r\n ok = cond.rx.test(row[cond.name]);\r\n }\r\n return ok;\r\n });\r\n }\r\n\r\n protected clone(data: any) {\r\n return JSON.parse(JSON.stringify(data));\r\n }\r\n\r\n protected collectionHandler(reqInfo: RequestInfo): Observable {\r\n const req = reqInfo.req;\r\n return new Observable((responseObserver: Observer) => {\r\n let resOptions: ResponseOptions;\r\n switch (req.method) {\r\n case RequestMethod.Get:\r\n resOptions = this.get(reqInfo);\r\n break;\r\n case RequestMethod.Post:\r\n resOptions = this.post(reqInfo);\r\n break;\r\n case RequestMethod.Put:\r\n resOptions = this.put(reqInfo);\r\n break;\r\n case RequestMethod.Delete:\r\n resOptions = this.delete(reqInfo);\r\n break;\r\n default:\r\n resOptions = createErrorResponse(req, STATUS.METHOD_NOT_ALLOWED, 'Method not allowed');\r\n break;\r\n }\r\n\r\n // If `inMemDbService.responseInterceptor` exists, let it morph the response options\r\n if (this.inMemDbService['responseInterceptor']) {\r\n resOptions = (this.inMemDbService['responseInterceptor'] as ResponseInterceptor)(resOptions, reqInfo);\r\n }\r\n\r\n emitResponse(responseObserver, reqInfo.req, resOptions);\r\n return () => { }; // unsubscribe function\r\n });\r\n }\r\n\r\n /**\r\n * When the last segment of the `base` path is \"commands\", the `collectionName` is the command\r\n * Example URLs:\r\n * commands/resetdb // Reset the \"database\" to its original state\r\n * commands/config (GET) // Return this service's config object\r\n * commands/config (!GET) // Update the config (e.g. delay)\r\n *\r\n * Commands are \"hot\", meaning they are always executed immediately\r\n * whether or not someone subscribes to the returned observable\r\n *\r\n * Usage:\r\n * http.post('commands/resetdb', undefined);\r\n * http.get('commands/config');\r\n * http.post('commands/config', '{\"delay\":1000}');\r\n */\r\n protected commands(reqInfo: RequestInfo): Observable {\r\n const command = reqInfo.collectionName.toLowerCase();\r\n const method = reqInfo.req.method;\r\n let resOptions: ResponseOptions;\r\n\r\n switch (command) {\r\n case 'resetdb':\r\n this.resetDb();\r\n resOptions = new ResponseOptions({ status: STATUS.OK });\r\n break;\r\n case 'config':\r\n if (method === RequestMethod.Get) {\r\n resOptions = new ResponseOptions({\r\n body: this.clone(this.config),\r\n status: STATUS.OK\r\n });\r\n } else {\r\n // Be nice ... any other method is a config update\r\n const body = JSON.parse(reqInfo.req.text() || '{}');\r\n Object.assign(this.config, body);\r\n this.setPassThruBackend();\r\n resOptions = new ResponseOptions({ status: STATUS.NO_CONTENT });\r\n }\r\n break;\r\n default:\r\n resOptions = createErrorResponse(reqInfo.req, STATUS.INTERNAL_SERVER_ERROR, `Unknown command \"${command}\"`);\r\n }\r\n\r\n return createObservableResponse(reqInfo.req, resOptions);\r\n }\r\n\r\n protected delete({id, collection, collectionName, headers, req}: RequestInfo) {\r\n if (!id) {\r\n return createErrorResponse(req, STATUS.NOT_FOUND, `Missing \"${collectionName}\" id`);\r\n }\r\n const exists = this.removeById(collection, id);\r\n return new ResponseOptions({\r\n headers: headers,\r\n status: (exists || !this.config.delete404) ? STATUS.NO_CONTENT : STATUS.NOT_FOUND\r\n });\r\n }\r\n\r\n protected findById(collection: any[], id: number | string) {\r\n return collection.find((item: any) => item.id === id);\r\n }\r\n\r\n protected genId(collection: any): any {\r\n // assumes numeric ids\r\n let maxId = 0;\r\n collection.reduce((prev: any, item: any) => {\r\n maxId = Math.max(maxId, typeof item.id === 'number' ? item.id : maxId);\r\n }, undefined);\r\n return maxId + 1;\r\n }\r\n\r\n protected get({id, query, collection, collectionName, headers, req}: RequestInfo) {\r\n let data = collection;\r\n\r\n if (id) {\r\n data = this.findById(collection, id);\r\n } else if (query) {\r\n data = this.applyQuery(collection, query);\r\n }\r\n\r\n if (!data) {\r\n return createErrorResponse(req, STATUS.NOT_FOUND, `'${collectionName}' with id='${id}' not found`);\r\n }\r\n return new ResponseOptions({\r\n body: { data: this.clone(data) },\r\n headers: headers,\r\n status: STATUS.OK\r\n });\r\n }\r\n\r\n protected getLocation(href: string) {\r\n const l = document.createElement('a');\r\n l.href = href;\r\n return l;\r\n };\r\n\r\n protected indexOf(collection: any[], id: number) {\r\n return collection.findIndex((item: any) => item.id === id);\r\n }\r\n\r\n // tries to parse id as number if collection item.id is a number.\r\n // returns the original param id otherwise.\r\n protected parseId(collection: {id: any}[], id: string): any {\r\n // tslint:disable-next-line:triple-equals\r\n if (!collection || id == undefined) { return undefined; }\r\n const isNumberId = collection[0] && typeof collection[0].id === 'number';\r\n if (isNumberId) {\r\n const idNum = parseFloat(id);\r\n return isNaN(idNum) ? id : idNum;\r\n }\r\n return id;\r\n }\r\n\r\n /**\r\n * Parses the request URL into a `ParsedUrl` object.\r\n * Parsing depends upon certain values of `config`: `apiBase`, `host`, and `urlRoot`.\r\n *\r\n * Configuring the `apiBase` yields the most interesting changes to `parseUrl` behavior:\r\n * When apiBase=undefined and url='http://localhost/api/collection/42'\r\n * {base: 'api/', collectionName: 'collection', id: '42', ...}\r\n * When apiBase='some/api/root/' and url='http://localhost/some/api/root/collection'\r\n * {base: 'some/api/root/', collectionName: 'collection', id: undefined, ...}\r\n * When apiBase='/' and url='http://localhost/collection'\r\n * {base: '/', collectionName: 'collection', id: undefined, ...}\r\n *\r\n * The actual api base segment values are ignored. Only the number of segments matters.\r\n * The following api base strings are considered identical: 'a/b' ~ 'some/api/' ~ `two/segments'\r\n *\r\n * To replace this default method, assign your alternative to your InMemDbService['parseUrl']\r\n */\r\n protected parseUrl(url: string): ParsedUrl {\r\n try {\r\n const loc = this.getLocation(url);\r\n let drop = this.config.rootPath.length;\r\n let urlRoot = '';\r\n if (loc.host !== this.config.host) {\r\n // url for a server on a different host!\r\n // assume it's collection is actually here too.\r\n drop = 1; // the leading slash\r\n urlRoot = loc.protocol + '//' + loc.host + '/';\r\n }\r\n const path = loc.pathname.substring(drop);\r\n const pathSegments = path.split('/');\r\n let segmentIx = 0;\r\n\r\n // apiBase: the front part of the path devoted to getting to the api route\r\n // Assumes first path segment if no config.apiBase\r\n // else ignores as many path segments as are in config.apiBase\r\n // Does NOT care what the api base chars actually are.\r\n let apiBase: string;\r\n // tslint:disable-next-line:triple-equals\r\n if (this.config.apiBase == undefined) {\r\n apiBase = pathSegments[segmentIx++];\r\n } else {\r\n apiBase = removeTrailingSlash(this.config.apiBase.trim());\r\n if (apiBase) {\r\n segmentIx = apiBase.split('/').length;\r\n } else {\r\n segmentIx = 0; // no api base at all; unwise but allowed.\r\n }\r\n }\r\n apiBase = apiBase + '/';\r\n\r\n let collectionName = pathSegments[segmentIx++];\r\n // ignore anything after a '.' (e.g.,the \"json\" in \"customers.json\")\r\n collectionName = collectionName && collectionName.split('.')[0];\r\n\r\n const id = pathSegments[segmentIx++];\r\n const query = loc.search && new URLSearchParams(loc.search.substr(1));\r\n const resourceUrl = urlRoot + apiBase + collectionName + '/';\r\n return { base: apiBase, collectionName, id, query, resourceUrl };\r\n } catch (err) {\r\n const msg = `unable to parse url '${url}'; original error: ${err.message}`;\r\n throw new Error(msg);\r\n }\r\n }\r\n\r\n protected post({collection, /* collectionName, */ headers, id, req, resourceUrl}: RequestInfo) {\r\n const item = JSON.parse(req.text());\r\n // tslint:disable-next-line:triple-equals\r\n if (item.id == undefined) {\r\n item.id = id || this.genId(collection);\r\n }\r\n // ignore the request id, if any. Alternatively,\r\n // could reject request if id differs from item.id\r\n id = item.id;\r\n const existingIx = this.indexOf(collection, id);\r\n const body = { data: this.clone(item) };\r\n\r\n if (existingIx > -1) {\r\n collection[existingIx] = item;\r\n const res =\r\n this.config.post204 ?\r\n {headers, status: STATUS.NO_CONTENT} : // successful; no content\r\n {headers, body, status: STATUS.OK }; // successful; return entity\r\n return new ResponseOptions(res);\r\n } else {\r\n collection.push(item);\r\n headers.set('Location', resourceUrl + '/' + id);\r\n return new ResponseOptions({ headers, body, status: STATUS.CREATED });\r\n }\r\n }\r\n\r\n protected put({id, collection, collectionName, headers, req}: RequestInfo) {\r\n const item = JSON.parse(req.text());\r\n // tslint:disable-next-line:triple-equals\r\n if (item.id == undefined) {\r\n return createErrorResponse(req, STATUS.NOT_FOUND, `Missing '${collectionName}' id`);\r\n }\r\n if (id !== item.id) {\r\n return createErrorResponse(req, STATUS.BAD_REQUEST, `\"${collectionName}\" id does not match item.id`);\r\n }\r\n const existingIx = this.indexOf(collection, id);\r\n const body = { data: this.clone(item) };\r\n\r\n if (existingIx > -1) {\r\n collection[existingIx] = item;\r\n const res =\r\n this.config.put204 ?\r\n {headers, status: STATUS.NO_CONTENT} : // successful; no content\r\n {headers, body, status: STATUS.OK }; // successful; return entity\r\n return new ResponseOptions(res);\r\n } else {\r\n collection.push(item);\r\n return new ResponseOptions({ headers, body, status: STATUS.CREATED });\r\n }\r\n }\r\n\r\n protected removeById(collection: any[], id: number) {\r\n const ix = this.indexOf(collection, id);\r\n if (ix > -1) {\r\n collection.splice(ix, 1);\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n /**\r\n * Reset the \"database\" to its original state\r\n */\r\n protected resetDb() {\r\n this.db = this.inMemDbService.createDb();\r\n }\r\n\r\n protected setPassThruBackend() {\r\n this.passThruBackend = undefined;\r\n if (this.config.passThruUnknownUrl) {\r\n try {\r\n // copied from @angular/http/backends/xhr_backend\r\n const browserXhr = this.injector.get(BrowserXhr);\r\n const baseResponseOptions = this.injector.get(ResponseOptions);\r\n const xsrfStrategy = this.injector.get(XSRFStrategy);\r\n this.passThruBackend = new XHRBackend(browserXhr, baseResponseOptions, xsrfStrategy);\r\n } catch (ex) {\r\n ex.message = 'Cannot create passThru404 backend; ' + (ex.message || '');\r\n throw ex;\r\n }\r\n }\r\n }\r\n\r\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: Injector, },\n{type: InMemoryDbService, },\n{type: InMemoryBackendConfigArgs, decorators: [{ type: Inject, args: [InMemoryBackendConfig, ] }, { type: Optional }, ]},\n];\n}\r\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]} \ No newline at end of file diff --git a/in-memory-web-api.module.js.map b/in-memory-web-api.module.js.map index 4fc702f..9552c32 100644 --- a/in-memory-web-api.module.js.map +++ b/in-memory-web-api.module.js.map @@ -1 +1 @@ -{"version":3,"file":"in-memory-web-api.module.js","sourceRoot":"D:/work/in-memory-web-api/src/","sources":["src/in-memory-web-api.module.ts"],"names":[],"mappings":"OAAO,EAAE,QAAQ,EAAE,QAAQ,EAA6B,MAAM,eAAe;OACtE,EAAE,UAAU,EAAE,MAAM,eAAe;OAEnC,EAEL,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,6BAA6B;AAEpC,sCAAsC;AACtC,8CACE,QAAkB,EAClB,SAA4B,EAC5B,OAA8B;IAE9B,IAAI,OAAO,GAAQ,IAAI,sBAAsB,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IAC5E,MAAM,CAAc,OAAQ,CAAC;AAC/B,CAAC;AAGD;IAAA;IAiCA,CAAC;IAhCC;;;;;;;;;;MAUE;IACK,4BAAO,GAAd,UAAe,SAAkC,EAAE,OAAmC;QACpF,MAAM,CAAC;YACL,QAAQ,EAAE,oBAAoB;YAC9B,SAAS,EAAE;gBACT,EAAE,OAAO,EAAE,iBAAiB,EAAG,QAAQ,EAAE,SAAS,EAAE;gBACpD,EAAE,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,OAAO,EAAE;aACtD;SACF,CAAC;IACJ,CAAC;IACI,+BAAU,GAA0B;QAC3C,EAAE,IAAI,EA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D;oBAClD,SAAS,EAAE,CAAE,EAAE,OAAO,EAAE,UAAU;4BACnB,UAAU,EAAE,6BAA6B;4BACzC,IAAI,EAAE,CAAC,QAAQ,EAAE,iBAAiB,EAAE,qBAAqB,CAAC,EAAC,CAAE;iBAC7E,EAAG,EAAE;KACL,CAAC;IACF,kBAAkB;IACX,mCAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC;IACF,2BAAC;AAAD,CAAC,AAjCD,IAiCC","sourcesContent":["import { Injector, NgModule, ModuleWithProviders, Type } from '@angular/core';\r\nimport { XHRBackend } from '@angular/http';\r\n\r\nimport {\r\n InMemoryBackendConfigArgs,\r\n InMemoryBackendConfig,\r\n InMemoryBackendService,\r\n InMemoryDbService\r\n} from './in-memory-backend.service';\r\n\r\n// AoT requires factory to be exported\r\nexport function inMemoryBackendServiceFactory(\r\n injector: Injector,\r\n dbService: InMemoryDbService,\r\n options: InMemoryBackendConfig\r\n): XHRBackend {\r\n let backend: any = new InMemoryBackendService(injector, dbService, options);\r\n return (backend);\r\n}\r\n\r\n\r\nexport class InMemoryWebApiModule {\r\n /**\r\n * Prepare in-memory-web-api in the root/boot application module\r\n * with class that implements InMemoryDbService and creates an in-memory database.\r\n *\r\n * @param {Type} dbCreator - Class that creates seed data for in-memory database. Must implement InMemoryDbService.\r\n * @param {InMemoryBackendConfigArgs} [options]\r\n *\r\n * @example\r\n * InMemoryWebApiModule.forRoot(dbCreator);\r\n * InMemoryWebApiModule.forRoot(dbCreator, {useValue: {delay:600}});\r\n */\r\n static forRoot(dbCreator: Type, options?: InMemoryBackendConfigArgs): ModuleWithProviders {\r\n return {\r\n ngModule: InMemoryWebApiModule,\r\n providers: [\r\n { provide: InMemoryDbService, useClass: dbCreator },\r\n { provide: InMemoryBackendConfig, useValue: options },\r\n ]\r\n };\r\n }\r\nstatic decorators: DecoratorInvocation[] = [\n{ type: NgModule, args: [{\r\n // Must useFactory for AoT\r\n // https://github.com/angular/angular/issues/11178\r\n providers: [ { provide: XHRBackend,\r\n useFactory: inMemoryBackendServiceFactory,\r\n deps: [Injector, InMemoryDbService, InMemoryBackendConfig]} ]\r\n}, ] },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\r\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]} \ No newline at end of file diff --git a/index.js.map b/index.js.map index b958776..5c41492 100644 --- a/index.js.map +++ b/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"D:/work/in-memory-web-api/src/","sources":["src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC","sourcesContent":["export * from './http-status-codes';\r\nexport * from './in-memory-backend.service';\r\nexport * from './in-memory-web-api.module';\r\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 89bbde9..2fcbb0c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,7 @@ "module": "es2015", "moduleResolution": "node", "sourceMap": true, - "sourceRoot": "./src", + "inlineSources": true, "declaration": true, "emitDecoratorMetadata": true, "experimentalDecorators": true,