From 5d3605e9e5ca8ec7922a7cad7da3acebd154445c Mon Sep 17 00:00:00 2001 From: Sumanth Chinthagunta Date: Thu, 22 Mar 2018 01:18:46 -0700 Subject: [PATCH 1/8] 1. Generated files Removed 2. rxjs -> ^5.6.0-forward-compat.0 3. packaging with ng-packagr --- .gitignore | 3 + .npmignore | 2 + README.md | 2 +- backend.service.d.ts | 199 - backend.service.js | 591 -- backend.service.js.map | 1 - backend.service.metadata.json | 1 - bundles/in-memory-web-api.umd.js | 1559 ----- delay-response.js.map | 2 +- delay-response.metadata.json | 2 +- http-backend.service.d.ts | 47 - http-backend.service.js | 119 - http-backend.service.js.map | 1 - http-backend.service.metadata.json | 1 - http-client-backend.service.d.ts | 44 - http-client-backend.service.js | 103 - http-client-backend.service.js.map | 1 - http-client-backend.service.metadata.json | 1 - http-client-in-memory-web-api.module.d.ts | 29 - http-client-in-memory-web-api.module.js | 59 - http-client-in-memory-web-api.module.js.map | 1 - ...ent-in-memory-web-api.module.metadata.json | 1 - http-in-memory-web-api.module.d.ts | 29 - http-in-memory-web-api.module.js | 59 - http-in-memory-web-api.module.js.map | 1 - http-in-memory-web-api.module.metadata.json | 1 - http-status-codes.d.ts | 460 -- http-status-codes.js | 465 -- http-status-codes.js.map | 1 - http-status-codes.metadata.json | 1 - in-memory-web-api.module.d.ts | 27 - in-memory-web-api.module.js | 58 - in-memory-web-api.module.js.map | 1 - in-memory-web-api.module.metadata.json | 1 - index.d.ts | 8 - index.js | 9 - index.js.map | 1 - index.metadata.json | 1 - interfaces.d.ts | 240 - interfaces.js | 97 - interfaces.js.map | 1 - interfaces.metadata.json | 1 - package-lock.json | 5762 +++++++++++++++-- package.json | 80 +- src/app/hero-in-mem-data-override.service.ts | 2 - src/app/http-hero.service.ts | 85 - src/in-mem/backend.service.ts | 14 +- src/in-mem/http-backend.service.spec.ts | 558 -- src/in-mem/http-backend.service.ts | 127 - src/in-mem/http-client-backend.service.ts | 2 +- .../http-client-in-memory-web-api.module.ts | 4 +- src/in-mem/http-in-memory-web-api.module.ts | 64 - src/in-mem/in-memory-web-api.module.ts | 60 - src/in-mem/index.ts | 3 - 54 files changed, 5218 insertions(+), 5774 deletions(-) delete mode 100644 backend.service.d.ts delete mode 100644 backend.service.js delete mode 100644 backend.service.js.map delete mode 100644 backend.service.metadata.json delete mode 100644 bundles/in-memory-web-api.umd.js delete mode 100644 http-backend.service.d.ts delete mode 100644 http-backend.service.js delete mode 100644 http-backend.service.js.map delete mode 100644 http-backend.service.metadata.json delete mode 100644 http-client-backend.service.d.ts delete mode 100644 http-client-backend.service.js delete mode 100644 http-client-backend.service.js.map delete mode 100644 http-client-backend.service.metadata.json delete mode 100644 http-client-in-memory-web-api.module.d.ts delete mode 100644 http-client-in-memory-web-api.module.js delete mode 100644 http-client-in-memory-web-api.module.js.map delete mode 100644 http-client-in-memory-web-api.module.metadata.json delete mode 100644 http-in-memory-web-api.module.d.ts delete mode 100644 http-in-memory-web-api.module.js delete mode 100644 http-in-memory-web-api.module.js.map delete mode 100644 http-in-memory-web-api.module.metadata.json delete mode 100644 http-status-codes.d.ts delete mode 100644 http-status-codes.js delete mode 100644 http-status-codes.js.map delete mode 100644 http-status-codes.metadata.json delete mode 100644 in-memory-web-api.module.d.ts delete mode 100644 in-memory-web-api.module.js delete mode 100644 in-memory-web-api.module.js.map delete mode 100644 in-memory-web-api.module.metadata.json delete mode 100644 index.d.ts delete mode 100644 index.js delete mode 100644 index.js.map delete mode 100644 index.metadata.json delete mode 100644 interfaces.d.ts delete mode 100644 interfaces.js delete mode 100644 interfaces.js.map delete mode 100644 interfaces.metadata.json delete mode 100644 src/app/http-hero.service.ts delete mode 100644 src/in-mem/http-backend.service.spec.ts delete mode 100644 src/in-mem/http-backend.service.ts delete mode 100644 src/in-mem/http-in-memory-web-api.module.ts delete mode 100644 src/in-mem/in-memory-web-api.module.ts diff --git a/.gitignore b/.gitignore index 98a45e9..440099e 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,6 @@ src/**/*.js src/**/*.js.map src/**/*.metadata.json yarn.lock + +.idea/ +dist diff --git a/.npmignore b/.npmignore index 93811dd..141a1fc 100644 --- a/.npmignore +++ b/.npmignore @@ -13,3 +13,5 @@ tsconfig.json tsconfig-ngc.json tslint.json yarn.lock + +.idea/ diff --git a/README.md b/README.md index f3ba731..7b0b040 100644 --- a/README.md +++ b/README.md @@ -464,7 +464,7 @@ Follow these steps for updating the library. - git add, commit, and push. -- `npm publish` +- `npm publish dist --access public` - Confirm that angular.io docs samples still work diff --git a/backend.service.d.ts b/backend.service.d.ts deleted file mode 100644 index 6562446..0000000 --- a/backend.service.d.ts +++ /dev/null @@ -1,199 +0,0 @@ -import { Observable } from 'rxjs/Observable'; -import { BehaviorSubject } from 'rxjs/BehaviorSubject'; -import { HeadersCore, RequestInfoUtilities, InMemoryDbService, InMemoryBackendConfigArgs, ParsedRequestUrl, PassThruBackend, RequestCore, RequestInfo, ResponseOptions, UriInfo } from './interfaces'; -/** - * Base class for in-memory web api back-ends - * Simulate the behavior of a RESTy web api - * backed by the simple in-memory data store provided by the injected `InMemoryDbService` service. - * Conforms mostly to behavior described here: - * http://www.restapitutorial.com/lessons/httpmethods.html - */ -export declare abstract class BackendService { - protected inMemDbService: InMemoryDbService; - protected config: InMemoryBackendConfigArgs; - protected db: Object; - protected dbReadySubject: BehaviorSubject; - private passThruBackend; - protected requestInfoUtils: RequestInfoUtilities; - constructor(inMemDbService: InMemoryDbService, config?: InMemoryBackendConfigArgs); - protected readonly dbReady: Observable; - /** - * Process Request and return an Observable of Http Response object - * in the manner of a RESTy web api. - * - * Expect URI pattern in the form :base/:collectionName/:id? - * Examples: - * // for store with a 'customers' collection - * GET api/customers // all customers - * GET api/customers/42 // the character with id=42 - * GET api/customers?name=^j // 'j' is a regex; returns customers whose name starts with 'j' or 'J' - * GET api/customers.json/42 // ignores the ".json" - * - * Also accepts direct commands to the service in which the last segment of the apiBase is the word "commands" - * Examples: - * POST commands/resetDb, - * GET/POST commands/config - get or (re)set the config - * - * HTTP overrides: - * If the injected inMemDbService defines an HTTP method (lowercase) - * The request is forwarded to that method as in - * `inMemDbService.get(requestInfo)` - * which must return either an Observable of the response type - * for this http library or null|undefined (which means "keep processing"). - */ - protected handleRequest(req: RequestCore): Observable; - protected handleRequest_(req: RequestCore): Observable; - /** - * Add configured delay to response observable unless delay === 0 - */ - protected addDelay(response: Observable): Observable; - /** - * Apply query/search parameters as a filter over the collection - * This impl only supports RegExp queries on string properties of the collection - * ANDs the conditions together - */ - protected applyQuery(collection: any[], query: Map): any[]; - /** - * Get a method from the `InMemoryDbService` (if it exists), bound to that service - */ - protected bind(methodName: string): T; - protected bodify(data: any): any; - protected clone(data: any): any; - protected collectionHandler(reqInfo: RequestInfo): ResponseOptions; - /** - * Commands reconfigure the in-memory web api service or extract information from it. - * Commands ignore the latency delay and respond ASAP. - * - * When the last segment of the `apiBase` path is "commands", - * the `collectionName` is the command. - * - * Example URLs: - * commands/resetdb (POST) // Reset the "database" to its original state - * commands/config (GET) // Return this service's config object - * commands/config (POST) // Update the config (e.g. the delay) - * - * Usage: - * http.post('commands/resetdb', undefined); - * http.get('commands/config'); - * http.post('commands/config', '{"delay":1000}'); - */ - protected commands(reqInfo: RequestInfo): Observable; - protected createErrorResponseOptions(url: string, status: number, message: string): ResponseOptions; - /** - * Create standard HTTP headers object from hash map of header strings - * @param headers - */ - protected abstract createHeaders(headers: { - [index: string]: string; - }): HeadersCore; - /** - * create the function that passes unhandled requests through to the "real" backend. - */ - protected abstract createPassThruBackend(): PassThruBackend; - /** - * return a search map from a location query/search string - */ - protected abstract createQueryMap(search: string): Map; - /** - * Create a cold response Observable from a factory for ResponseOptions - * @param resOptionsFactory - creates ResponseOptions when observable is subscribed - * @param withDelay - if true (default), add simulated latency delay from configuration - */ - protected createResponse$(resOptionsFactory: () => ResponseOptions, withDelay?: boolean): Observable; - /** - * Create a Response observable from ResponseOptions observable. - */ - protected abstract createResponse$fromResponseOptions$(resOptions$: Observable): Observable; - /** - * Create a cold Observable of ResponseOptions. - * @param resOptionsFactory - creates ResponseOptions when observable is subscribed - */ - protected createResponseOptions$(resOptionsFactory: () => ResponseOptions): Observable; - protected delete({collection, collectionName, headers, id, url}: RequestInfo): ResponseOptions; - /** - * Find first instance of item in collection by `item.id` - * @param collection - * @param id - */ - protected findById(collection: T[], id: any): T; - /** - * Generate the next available id for item in this collection - * Use method from `inMemDbService` if it exists and returns a value, - * else delegates to `genIdDefault`. - * @param collection - collection of items with `id` key property - */ - protected genId(collection: T[], collectionName: string): any; - /** - * Default generator of the next available id for item in this collection - * This default implementation works only for numeric ids. - * @param collection - collection of items with `id` key property - * @param collectionName - name of the collection - */ - protected genIdDefault(collection: T[], collectionName: string): any; - protected get({collection, collectionName, headers, id, query, url}: RequestInfo): ResponseOptions; - /** Get JSON body from the request object */ - protected abstract getJsonBody(req: any): any; - /** - * Get location info from a url, even on server where `document` is not defined - */ - protected getLocation(url: string): UriInfo; - /** - * get or create the function that passes unhandled requests - * through to the "real" backend. - */ - protected getPassThruBackend(): PassThruBackend; - /** - * Get utility methods from this service instance. - * Useful within an HTTP method override - */ - protected getRequestInfoUtils(): RequestInfoUtilities; - /** - * return canonical HTTP method name (lowercase) from the request object - * e.g. (req.method || 'get').toLowerCase(); - * @param req - request object from the http call - * - */ - protected abstract getRequestMethod(req: any): string; - protected indexOf(collection: any[], id: number): number; - /** Parse the id as a number. Return original value if not a number. */ - protected parseId(collection: any[], collectionName: string, id: string): any; - /** - * return true if can determine that the collection's `item.id` is a number - * This implementation can't tell if the collection is empty so it assumes NO - * */ - protected isCollectionIdNumeric(collection: T[], collectionName: string): boolean; - /** - * Parses the request URL into a `ParsedRequestUrl` object. - * Parsing depends upon certain values of `config`: `apiBase`, `host`, and `urlRoot`. - * - * Configuring the `apiBase` yields the most interesting changes to `parseRequestUrl` behavior: - * When apiBase=undefined and url='http://localhost/api/collection/42' - * {base: 'api/', collectionName: 'collection', id: '42', ...} - * When apiBase='some/api/root/' and url='http://localhost/some/api/root/collection' - * {base: 'some/api/root/', collectionName: 'collection', id: undefined, ...} - * When apiBase='/' and url='http://localhost/collection' - * {base: '/', collectionName: 'collection', id: undefined, ...} - * - * The actual api base segment values are ignored. Only the number of segments matters. - * The following api base strings are considered identical: 'a/b' ~ 'some/api/' ~ `two/segments' - * - * To replace this default method, assign your alternative to your InMemDbService['parseRequestUrl'] - */ - protected parseRequestUrl(url: string): ParsedRequestUrl; - protected post({collection, collectionName, headers, id, req, resourceUrl, url}: RequestInfo): ResponseOptions; - protected put({collection, collectionName, headers, id, req, url}: RequestInfo): ResponseOptions; - protected removeById(collection: any[], id: number): boolean; - /** - * Tell your in-mem "database" to reset. - * returns Observable of the database because resetting it could be async - */ - protected resetDb(reqInfo?: RequestInfo): Observable; -} diff --git a/backend.service.js b/backend.service.js deleted file mode 100644 index 508c635..0000000 --- a/backend.service.js +++ /dev/null @@ -1,591 +0,0 @@ -import { Observable } from 'rxjs/Observable'; -import { BehaviorSubject } from 'rxjs/BehaviorSubject'; -import { of } from 'rxjs/observable/of'; -import { fromPromise } from 'rxjs/observable/fromPromise'; -import { isPromise } from 'rxjs/util/isPromise'; -import { concatMap } from 'rxjs/operator/concatMap'; -import { first } from 'rxjs/operator/first'; -import { getStatusText, isSuccess, STATUS } from './http-status-codes'; -import { delayResponse } from './delay-response'; -import { InMemoryBackendConfig, parseUri, removeTrailingSlash } from './interfaces'; -/** - * Base class for in-memory web api back-ends - * Simulate the behavior of a RESTy web api - * backed by the simple in-memory data store provided by the injected `InMemoryDbService` service. - * Conforms mostly to behavior described here: - * http://www.restapitutorial.com/lessons/httpmethods.html - */ -var BackendService = (function () { - function BackendService(inMemDbService, config) { - if (config === void 0) { config = {}; } - this.inMemDbService = inMemDbService; - this.config = new InMemoryBackendConfig(); - this.requestInfoUtils = this.getRequestInfoUtils(); - var loc = this.getLocation('/'); - this.config.host = loc.host; // default to app web server host - this.config.rootPath = loc.path; // default to path when app is served (e.g.'/') - Object.assign(this.config, config); - } - Object.defineProperty(BackendService.prototype, "dbReady", { - //// protected ///// - get: function () { - if (!this.dbReadySubject) { - // first time the service is called. - this.dbReadySubject = new BehaviorSubject(false); - this.resetDb(); - } - return first.call(this.dbReadySubject.asObservable(), function (r) { return r; }); - }, - enumerable: true, - configurable: true - }); - /** - * Process Request and return an Observable of Http Response object - * in the manner of a RESTy web api. - * - * Expect URI pattern in the form :base/:collectionName/:id? - * Examples: - * // for store with a 'customers' collection - * GET api/customers // all customers - * GET api/customers/42 // the character with id=42 - * GET api/customers?name=^j // 'j' is a regex; returns customers whose name starts with 'j' or 'J' - * GET api/customers.json/42 // ignores the ".json" - * - * Also accepts direct commands to the service in which the last segment of the apiBase is the word "commands" - * Examples: - * POST commands/resetDb, - * GET/POST commands/config - get or (re)set the config - * - * HTTP overrides: - * If the injected inMemDbService defines an HTTP method (lowercase) - * The request is forwarded to that method as in - * `inMemDbService.get(requestInfo)` - * which must return either an Observable of the response type - * for this http library or null|undefined (which means "keep processing"). - */ - BackendService.prototype.handleRequest = function (req) { - var _this = this; - // handle the request when there is an in-memory database - return concatMap.call(this.dbReady, function () { return _this.handleRequest_(req); }); - }; - BackendService.prototype.handleRequest_ = function (req) { - var _this = this; - var url = req.urlWithParams ? req.urlWithParams : req.url; - // Try override parser - // If no override parser or it returns nothing, use default parser - var parser = this.bind('parseRequestUrl'); - var parsed = (parser && parser(url, this.requestInfoUtils)) || - this.parseRequestUrl(url); - var collectionName = parsed.collectionName; - var collection = this.db[collectionName]; - var reqInfo = { - req: req, - apiBase: parsed.apiBase, - collection: collection, - collectionName: collectionName, - headers: this.createHeaders({ 'Content-Type': 'application/json' }), - id: this.parseId(collection, collectionName, parsed.id), - method: this.getRequestMethod(req), - query: parsed.query, - resourceUrl: parsed.resourceUrl, - url: url, - utils: this.requestInfoUtils - }; - var resOptions; - if (/commands\/?$/i.test(reqInfo.apiBase)) { - return this.commands(reqInfo); - } - var methodInterceptor = this.bind(reqInfo.method); - if (methodInterceptor) { - // InMemoryDbService intercepts this HTTP method. - // if interceptor produced a response, return it. - // else InMemoryDbService chose not to intercept; continue processing. - var interceptorResponse = methodInterceptor(reqInfo); - if (interceptorResponse) { - return interceptorResponse; - } - ; - } - if (this.db[collectionName]) { - // request is for a known collection of the InMemoryDbService - return this.createResponse$(function () { return _this.collectionHandler(reqInfo); }); - } - if (this.config.passThruUnknownUrl) { - // unknown collection; pass request thru to a "real" backend. - return this.getPassThruBackend().handle(req); - } - // 404 - can't handle this request - resOptions = this.createErrorResponseOptions(url, STATUS.NOT_FOUND, "Collection '" + collectionName + "' not found"); - return this.createResponse$(function () { return resOptions; }); - }; - /** - * Add configured delay to response observable unless delay === 0 - */ - BackendService.prototype.addDelay = function (response) { - var d = this.config.delay; - return d === 0 ? response : delayResponse(response, d || 500); - }; - /** - * Apply query/search parameters as a filter over the collection - * This impl only supports RegExp queries on string properties of the collection - * ANDs the conditions together - */ - BackendService.prototype.applyQuery = function (collection, query) { - // extract filtering conditions - {propertyName, RegExps) - from query/search parameters - var conditions = []; - var caseSensitive = this.config.caseSensitiveSearch ? undefined : 'i'; - query.forEach(function (value, name) { - value.forEach(function (v) { return conditions.push({ name: name, rx: new RegExp(decodeURI(v), caseSensitive) }); }); - }); - var len = conditions.length; - if (!len) { - return collection; - } - // AND the RegExp conditions - return collection.filter(function (row) { - var ok = true; - var i = len; - while (ok && i) { - i -= 1; - var cond = conditions[i]; - ok = cond.rx.test(row[cond.name]); - } - return ok; - }); - }; - /** - * Get a method from the `InMemoryDbService` (if it exists), bound to that service - */ - BackendService.prototype.bind = function (methodName) { - var fn = this.inMemDbService[methodName]; - return fn ? fn.bind(this.inMemDbService) : undefined; - }; - BackendService.prototype.bodify = function (data) { - return this.config.dataEncapsulation ? { data: data } : data; - }; - BackendService.prototype.clone = function (data) { - return JSON.parse(JSON.stringify(data)); - }; - BackendService.prototype.collectionHandler = function (reqInfo) { - // const req = reqInfo.req; - var resOptions; - switch (reqInfo.method) { - case 'get': - resOptions = this.get(reqInfo); - break; - case 'post': - resOptions = this.post(reqInfo); - break; - case 'put': - resOptions = this.put(reqInfo); - break; - case 'delete': - resOptions = this.delete(reqInfo); - break; - default: - resOptions = this.createErrorResponseOptions(reqInfo.url, STATUS.METHOD_NOT_ALLOWED, 'Method not allowed'); - break; - } - // If `inMemDbService.responseInterceptor` exists, let it morph the response options - var interceptor = this.bind('responseInterceptor'); - return interceptor ? interceptor(resOptions, reqInfo) : resOptions; - }; - /** - * Commands reconfigure the in-memory web api service or extract information from it. - * Commands ignore the latency delay and respond ASAP. - * - * When the last segment of the `apiBase` path is "commands", - * the `collectionName` is the command. - * - * Example URLs: - * commands/resetdb (POST) // Reset the "database" to its original state - * commands/config (GET) // Return this service's config object - * commands/config (POST) // Update the config (e.g. the delay) - * - * Usage: - * http.post('commands/resetdb', undefined); - * http.get('commands/config'); - * http.post('commands/config', '{"delay":1000}'); - */ - BackendService.prototype.commands = function (reqInfo) { - var _this = this; - var command = reqInfo.collectionName.toLowerCase(); - var method = reqInfo.method; - var resOptions = { - url: reqInfo.url - }; - switch (command) { - case 'resetdb': - resOptions.status = STATUS.NO_CONTENT; - return concatMap.call(this.resetDb(reqInfo), function () { return _this.createResponse$(function () { return resOptions; }, false /* no latency delay */); }); - case 'config': - if (method === 'get') { - resOptions.status = STATUS.OK; - resOptions.body = this.clone(this.config); - // any other HTTP method is assumed to be a config update - } - else { - var body = this.getJsonBody(reqInfo.req); - Object.assign(this.config, body); - this.passThruBackend = undefined; // re-create when needed - resOptions.status = STATUS.NO_CONTENT; - } - break; - default: - resOptions = this.createErrorResponseOptions(reqInfo.url, STATUS.INTERNAL_SERVER_ERROR, "Unknown command \"" + command + "\""); - } - return this.createResponse$(function () { return resOptions; }, false /* no latency delay */); - }; - BackendService.prototype.createErrorResponseOptions = function (url, status, message) { - return { - body: { error: "" + message }, - url: url, - headers: this.createHeaders({ 'Content-Type': 'application/json' }), - status: status - }; - }; - /** - * Create a cold response Observable from a factory for ResponseOptions - * @param resOptionsFactory - creates ResponseOptions when observable is subscribed - * @param withDelay - if true (default), add simulated latency delay from configuration - */ - BackendService.prototype.createResponse$ = function (resOptionsFactory, withDelay) { - if (withDelay === void 0) { withDelay = true; } - var resOptions$ = this.createResponseOptions$(resOptionsFactory); - var resp$ = this.createResponse$fromResponseOptions$(resOptions$); - return withDelay ? this.addDelay(resp$) : resp$; - }; - /** - * Create a cold Observable of ResponseOptions. - * @param resOptionsFactory - creates ResponseOptions when observable is subscribed - */ - BackendService.prototype.createResponseOptions$ = function (resOptionsFactory) { - var _this = this; - return new Observable(function (responseObserver) { - var resOptions; - try { - resOptions = resOptionsFactory(); - } - catch (error) { - var err = error.message || error; - resOptions = _this.createErrorResponseOptions('', STATUS.INTERNAL_SERVER_ERROR, "" + err); - } - var status = resOptions.status; - try { - resOptions.statusText = getStatusText(status); - } - catch (e) { } - if (isSuccess(status)) { - responseObserver.next(resOptions); - responseObserver.complete(); - } - else { - responseObserver.error(resOptions); - } - return function () { }; // unsubscribe function - }); - }; - BackendService.prototype.delete = function (_a) { - var collection = _a.collection, collectionName = _a.collectionName, headers = _a.headers, id = _a.id, url = _a.url; - // tslint:disable-next-line:triple-equals - if (id == undefined) { - return this.createErrorResponseOptions(url, STATUS.NOT_FOUND, "Missing \"" + collectionName + "\" id"); - } - var exists = this.removeById(collection, id); - return { - headers: headers, - status: (exists || !this.config.delete404) ? STATUS.NO_CONTENT : STATUS.NOT_FOUND - }; - }; - /** - * Find first instance of item in collection by `item.id` - * @param collection - * @param id - */ - BackendService.prototype.findById = function (collection, id) { - return collection.find(function (item) { return item.id === id; }); - }; - /** - * Generate the next available id for item in this collection - * Use method from `inMemDbService` if it exists and returns a value, - * else delegates to `genIdDefault`. - * @param collection - collection of items with `id` key property - */ - BackendService.prototype.genId = function (collection, collectionName) { - var genId = this.bind('genId'); - if (genId) { - var id = genId(collection, collectionName); - // tslint:disable-next-line:triple-equals - if (id != undefined) { - return id; - } - } - return this.genIdDefault(collection, collectionName); - }; - /** - * Default generator of the next available id for item in this collection - * This default implementation works only for numeric ids. - * @param collection - collection of items with `id` key property - * @param collectionName - name of the collection - */ - BackendService.prototype.genIdDefault = function (collection, collectionName) { - if (!this.isCollectionIdNumeric(collection, collectionName)) { - throw new Error("Collection '" + collectionName + "' id type is non-numeric or unknown. Can only generate numeric ids."); - } - var maxId = 0; - collection.reduce(function (prev, item) { - maxId = Math.max(maxId, typeof item.id === 'number' ? item.id : maxId); - }, undefined); - return maxId + 1; - }; - BackendService.prototype.get = function (_a) { - var collection = _a.collection, collectionName = _a.collectionName, headers = _a.headers, id = _a.id, query = _a.query, url = _a.url; - var data = collection; - // tslint:disable-next-line:triple-equals - if (id != undefined && id !== '') { - data = this.findById(collection, id); - } - else if (query) { - data = this.applyQuery(collection, query); - } - if (!data) { - return this.createErrorResponseOptions(url, STATUS.NOT_FOUND, "'" + collectionName + "' with id='" + id + "' not found"); - } - return { - body: this.bodify(this.clone(data)), - headers: headers, - status: STATUS.OK - }; - }; - /** - * Get location info from a url, even on server where `document` is not defined - */ - BackendService.prototype.getLocation = function (url) { - if (!url.startsWith('http')) { - // get the document iff running in browser - var doc = (typeof document === 'undefined') ? undefined : document; - // add host info to url before parsing. Use a fake host when not in browser. - var base = doc ? doc.location.protocol + '//' + doc.location.host : 'http://fake'; - url = url.startsWith('/') ? base + url : base + '/' + url; - } - return parseUri(url); - }; - ; - /** - * get or create the function that passes unhandled requests - * through to the "real" backend. - */ - BackendService.prototype.getPassThruBackend = function () { - return this.passThruBackend ? - this.passThruBackend : - this.passThruBackend = this.createPassThruBackend(); - }; - /** - * Get utility methods from this service instance. - * Useful within an HTTP method override - */ - BackendService.prototype.getRequestInfoUtils = function () { - var _this = this; - return { - createResponse$: this.createResponse$.bind(this), - findById: this.findById.bind(this), - isCollectionIdNumeric: this.isCollectionIdNumeric.bind(this), - getConfig: function () { return _this.config; }, - getDb: function () { return _this.db; }, - getJsonBody: this.getJsonBody.bind(this), - getLocation: this.getLocation.bind(this), - getPassThruBackend: this.getPassThruBackend.bind(this), - parseRequestUrl: this.parseRequestUrl.bind(this), - }; - }; - BackendService.prototype.indexOf = function (collection, id) { - return collection.findIndex(function (item) { return item.id === id; }); - }; - /** Parse the id as a number. Return original value if not a number. */ - BackendService.prototype.parseId = function (collection, collectionName, id) { - if (!this.isCollectionIdNumeric(collection, collectionName)) { - // Can't confirm that `id` is a numeric type; don't parse as a number - // or else `'42'` -> `42` and _get by id_ fails. - return id; - } - var idNum = parseFloat(id); - return isNaN(idNum) ? id : idNum; - }; - /** - * return true if can determine that the collection's `item.id` is a number - * This implementation can't tell if the collection is empty so it assumes NO - * */ - BackendService.prototype.isCollectionIdNumeric = function (collection, collectionName) { - // collectionName not used now but override might maintain collection type information - // so that it could know the type of the `id` even when the collection is empty. - return !!(collection && collection[0]) && typeof collection[0].id === 'number'; - }; - /** - * Parses the request URL into a `ParsedRequestUrl` object. - * Parsing depends upon certain values of `config`: `apiBase`, `host`, and `urlRoot`. - * - * Configuring the `apiBase` yields the most interesting changes to `parseRequestUrl` behavior: - * When apiBase=undefined and url='http://localhost/api/collection/42' - * {base: 'api/', collectionName: 'collection', id: '42', ...} - * When apiBase='some/api/root/' and url='http://localhost/some/api/root/collection' - * {base: 'some/api/root/', collectionName: 'collection', id: undefined, ...} - * When apiBase='/' and url='http://localhost/collection' - * {base: '/', collectionName: 'collection', id: undefined, ...} - * - * The actual api base segment values are ignored. Only the number of segments matters. - * The following api base strings are considered identical: 'a/b' ~ 'some/api/' ~ `two/segments' - * - * To replace this default method, assign your alternative to your InMemDbService['parseRequestUrl'] - */ - BackendService.prototype.parseRequestUrl = function (url) { - try { - var loc = this.getLocation(url); - var drop = this.config.rootPath.length; - var urlRoot = ''; - if (loc.host !== this.config.host) { - // url for a server on a different host! - // assume it's collection is actually here too. - drop = 1; // the leading slash - urlRoot = loc.protocol + '//' + loc.host + '/'; - } - var path = loc.path.substring(drop); - var pathSegments = path.split('/'); - var segmentIx = 0; - // apiBase: the front part of the path devoted to getting to the api route - // Assumes first path segment if no config.apiBase - // else ignores as many path segments as are in config.apiBase - // Does NOT care what the api base chars actually are. - var apiBase = void 0; - // tslint:disable-next-line:triple-equals - if (this.config.apiBase == undefined) { - apiBase = pathSegments[segmentIx++]; - } - else { - apiBase = removeTrailingSlash(this.config.apiBase.trim()); - if (apiBase) { - segmentIx = apiBase.split('/').length; - } - else { - segmentIx = 0; // no api base at all; unwise but allowed. - } - } - apiBase += '/'; - var collectionName = pathSegments[segmentIx++]; - // ignore anything after a '.' (e.g.,the "json" in "customers.json") - collectionName = collectionName && collectionName.split('.')[0]; - var id = pathSegments[segmentIx++]; - var query = this.createQueryMap(loc.query); - var resourceUrl = urlRoot + apiBase + collectionName + '/'; - return { apiBase: apiBase, collectionName: collectionName, id: id, query: query, resourceUrl: resourceUrl }; - } - catch (err) { - var msg = "unable to parse url '" + url + "'; original error: " + err.message; - throw new Error(msg); - } - }; - // Create entity - // Can update an existing entity too if post409 is false. - BackendService.prototype.post = function (_a) { - var collection = _a.collection, collectionName = _a.collectionName, headers = _a.headers, id = _a.id, req = _a.req, resourceUrl = _a.resourceUrl, url = _a.url; - var item = this.clone(this.getJsonBody(req)); - // tslint:disable-next-line:triple-equals - if (item.id == undefined) { - try { - item.id = id || this.genId(collection, collectionName); - } - catch (err) { - var emsg = err.message || ''; - if (/id type is non-numeric/.test(emsg)) { - return this.createErrorResponseOptions(url, STATUS.UNPROCESSABLE_ENTRY, emsg); - } - else { - console.error(err); - return this.createErrorResponseOptions(url, STATUS.INTERNAL_SERVER_ERROR, "Failed to generate new id for '" + collectionName + "'"); - } - } - } - if (id && id !== item.id) { - return this.createErrorResponseOptions(url, STATUS.BAD_REQUEST, "Request id does not match item.id"); - } - else { - id = item.id; - } - var existingIx = this.indexOf(collection, id); - var body = this.bodify(item); - if (existingIx === -1) { - collection.push(item); - headers.set('Location', resourceUrl + '/' + id); - return { headers: headers, body: body, status: STATUS.CREATED }; - } - else if (this.config.post409) { - return this.createErrorResponseOptions(url, STATUS.CONFLICT, "'" + collectionName + "' item with id='" + id + " exists and may not be updated with POST; use PUT instead."); - } - else { - collection[existingIx] = item; - return this.config.post204 ? - { headers: headers, status: STATUS.NO_CONTENT } : - { headers: headers, body: body, status: STATUS.OK }; // successful; return entity - } - }; - // Update existing entity - // Can create an entity too if put404 is false. - BackendService.prototype.put = function (_a) { - var collection = _a.collection, collectionName = _a.collectionName, headers = _a.headers, id = _a.id, req = _a.req, url = _a.url; - var item = this.clone(this.getJsonBody(req)); - // tslint:disable-next-line:triple-equals - if (item.id == undefined) { - return this.createErrorResponseOptions(url, STATUS.NOT_FOUND, "Missing '" + collectionName + "' id"); - } - if (id && id !== item.id) { - return this.createErrorResponseOptions(url, STATUS.BAD_REQUEST, "Request for '" + collectionName + "' id does not match item.id"); - } - else { - id = item.id; - } - var existingIx = this.indexOf(collection, id); - var body = this.bodify(item); - if (existingIx > -1) { - collection[existingIx] = item; - return this.config.put204 ? - { headers: headers, status: STATUS.NO_CONTENT } : - { headers: headers, body: body, status: STATUS.OK }; // successful; return entity - } - else if (this.config.put404) { - // item to update not found; use POST to create new item for this id. - return this.createErrorResponseOptions(url, STATUS.NOT_FOUND, "'" + collectionName + "' item with id='" + id + " not found and may not be created with PUT; use POST instead."); - } - else { - // create new item for id not found - collection.push(item); - return { headers: headers, body: body, status: STATUS.CREATED }; - } - }; - BackendService.prototype.removeById = function (collection, id) { - var ix = this.indexOf(collection, id); - if (ix > -1) { - collection.splice(ix, 1); - return true; - } - return false; - }; - /** - * Tell your in-mem "database" to reset. - * returns Observable of the database because resetting it could be async - */ - BackendService.prototype.resetDb = function (reqInfo) { - var _this = this; - this.dbReadySubject.next(false); - var db = this.inMemDbService.createDb(reqInfo); - var db$ = db instanceof Observable ? db : - isPromise(db) ? fromPromise(db) : - of(db); - first.call(db$).subscribe(function (d) { - _this.db = d; - _this.dbReadySubject.next(true); - }); - return this.dbReady; - }; - return BackendService; -}()); -export { BackendService }; -//# sourceMappingURL=backend.service.js.map \ No newline at end of file diff --git a/backend.service.js.map b/backend.service.js.map de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D,MAAM,CAAC,KAAK,CAAC;IACf,CAAC;IAED;;;OAGG;IACO,gCAAO,GAAjB,UAAkB,OAAqB;QAAvC,iBAWC;QAVC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAChC,IAAM,EAAE,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACjD,IAAM,GAAG,GAAG,EAAE,YAAY,UAAU,GAAG,EAAE;YAClC,SAAS,CAAC,EAAE,CAAC,GAAG,WAAW,CAAC,EAAE,CAAC;gBAC/B,EAAE,CAAC,EAAE,CAAC,CAAC;QACd,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,UAAC,CAAK;YAC9B,KAAI,CAAC,EAAE,GAAG,CAAC,CAAC;YACZ,KAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAEH,qBAAC;AAAD,CAzoBA,AAyoBC,IAAA","file":"backend.service.js","sourceRoot":"","sourcesContent":["import { Observable } from 'rxjs/Observable';\nimport { Observer } from 'rxjs/Observer';\nimport { BehaviorSubject } from 'rxjs/BehaviorSubject';\n\nimport { of } from 'rxjs/observable/of';\nimport { fromPromise } from 'rxjs/observable/fromPromise';\nimport { isPromise } from 'rxjs/util/isPromise';\n\nimport { concatMap } from 'rxjs/operator/concatMap';\nimport { first } from 'rxjs/operator/first';\n\nimport { getStatusText, isSuccess, STATUS } from './http-status-codes';\nimport { delayResponse } from './delay-response';\n\nimport {\n HeadersCore,\n RequestInfoUtilities,\n InMemoryDbService,\n InMemoryBackendConfig,\n InMemoryBackendConfigArgs,\n ParsedRequestUrl,\n parseUri,\n PassThruBackend,\n removeTrailingSlash,\n RequestCore,\n RequestInfo,\n ResponseOptions,\n UriInfo\n} from './interfaces';\n\n/**\n * Base class for in-memory web api back-ends\n * Simulate the behavior of a RESTy web api\n * backed by the simple in-memory data store provided by the injected `InMemoryDbService` service.\n * Conforms mostly to behavior described here:\n * http://www.restapitutorial.com/lessons/httpmethods.html\n */\nexport abstract class BackendService {\n protected config: InMemoryBackendConfigArgs = new InMemoryBackendConfig();\n protected db: Object;\n protected dbReadySubject: BehaviorSubject;\n private passThruBackend: PassThruBackend;\n protected requestInfoUtils = this.getRequestInfoUtils();\n\n constructor(\n protected inMemDbService: InMemoryDbService,\n config: InMemoryBackendConfigArgs = {}\n ) {\n const loc = this.getLocation('/');\n this.config.host = loc.host; // default to app web server host\n this.config.rootPath = loc.path; // default to path when app is served (e.g.'/')\n Object.assign(this.config, config);\n }\n\n //// protected /////\n protected get dbReady(): Observable {\n if (!this.dbReadySubject) {\n // first time the service is called.\n this.dbReadySubject = new BehaviorSubject(false);\n this.resetDb();\n }\n return first.call(this.dbReadySubject.asObservable(), (r: boolean) => r);\n }\n\n /**\n * Process Request and return an Observable of Http Response object\n * in the manner of a RESTy web api.\n *\n * Expect URI pattern in the form :base/:collectionName/:id?\n * Examples:\n * // for store with a 'customers' collection\n * GET api/customers // all customers\n * GET api/customers/42 // the character with id=42\n * GET api/customers?name=^j // 'j' is a regex; returns customers whose name starts with 'j' or 'J'\n * GET api/customers.json/42 // ignores the \".json\"\n *\n * Also accepts direct commands to the service in which the last segment of the apiBase is the word \"commands\"\n * Examples:\n * POST commands/resetDb,\n * GET/POST commands/config - get or (re)set the config\n *\n * HTTP overrides:\n * If the injected inMemDbService defines an HTTP method (lowercase)\n * The request is forwarded to that method as in\n * `inMemDbService.get(requestInfo)`\n * which must return either an Observable of the response type\n * for this http library or null|undefined (which means \"keep processing\").\n */\n protected handleRequest(req: RequestCore): Observable {\n // handle the request when there is an in-memory database\n return concatMap.call(this.dbReady, () => this.handleRequest_(req));\n }\n\n protected handleRequest_(req: RequestCore): Observable {\n\n const url = req.urlWithParams ? req.urlWithParams : req.url;\n\n // Try override parser\n // If no override parser or it returns nothing, use default parser\n const parser = this.bind('parseRequestUrl');\n const parsed: ParsedRequestUrl =\n ( parser && parser(url, this.requestInfoUtils)) ||\n this.parseRequestUrl(url);\n\n const collectionName = parsed.collectionName;\n const collection = this.db[collectionName];\n\n const reqInfo: RequestInfo = {\n req: req,\n apiBase: parsed.apiBase,\n collection: collection,\n collectionName: collectionName,\n headers: this.createHeaders({ 'Content-Type': 'application/json' }),\n id: this.parseId(collection, collectionName, parsed.id),\n method: this.getRequestMethod(req),\n query: parsed.query,\n resourceUrl: parsed.resourceUrl,\n url: url,\n utils: this.requestInfoUtils\n };\n\n let resOptions: ResponseOptions;\n\n if (/commands\\/?$/i.test(reqInfo.apiBase)) {\n return this.commands(reqInfo);\n }\n\n const methodInterceptor = this.bind(reqInfo.method);\n if (methodInterceptor) {\n // InMemoryDbService intercepts this HTTP method.\n // if interceptor produced a response, return it.\n // else InMemoryDbService chose not to intercept; continue processing.\n const interceptorResponse = methodInterceptor(reqInfo);\n if (interceptorResponse) {\n return interceptorResponse;\n };\n }\n\n if (this.db[collectionName]) {\n // request is for a known collection of the InMemoryDbService\n return this.createResponse$(() => this.collectionHandler(reqInfo));\n }\n\n if (this.config.passThruUnknownUrl) {\n // unknown collection; pass request thru to a \"real\" backend.\n return this.getPassThruBackend().handle(req);\n }\n\n // 404 - can't handle this request\n resOptions = this.createErrorResponseOptions(\n url,\n STATUS.NOT_FOUND,\n `Collection '${collectionName}' not found`\n );\n return this.createResponse$(() => resOptions);\n }\n\n /**\n * Add configured delay to response observable unless delay === 0\n */\n protected addDelay(response: Observable): Observable {\n const d = this.config.delay;\n return d === 0 ? response : delayResponse(response, d || 500);\n }\n\n /**\n * Apply query/search parameters as a filter over the collection\n * This impl only supports RegExp queries on string properties of the collection\n * ANDs the conditions together\n */\n protected applyQuery(collection: any[], query: Map): any[] {\n // extract filtering conditions - {propertyName, RegExps) - from query/search parameters\n const conditions: { name: string, rx: RegExp }[] = [];\n const caseSensitive = this.config.caseSensitiveSearch ? undefined : 'i';\n query.forEach((value: string[], name: string) => {\n value.forEach(v => conditions.push({ name, rx: new RegExp(decodeURI(v), caseSensitive) }));\n });\n\n const len = conditions.length;\n if (!len) { return collection; }\n\n // AND the RegExp conditions\n return collection.filter(row => {\n let ok = true;\n let i = len;\n while (ok && i) {\n i -= 1;\n const cond = conditions[i];\n ok = cond.rx.test(row[cond.name]);\n }\n return ok;\n });\n }\n\n /**\n * Get a method from the `InMemoryDbService` (if it exists), bound to that service\n */\n protected bind(methodName: string) {\n const fn = this.inMemDbService[methodName] as T;\n return fn ? fn.bind(this.inMemDbService) : undefined;\n }\n\n protected bodify(data: any) {\n return this.config.dataEncapsulation ? { data } : data;\n }\n\n protected clone(data: any) {\n return JSON.parse(JSON.stringify(data));\n }\n\n protected collectionHandler(reqInfo: RequestInfo): ResponseOptions {\n // const req = reqInfo.req;\n let resOptions: ResponseOptions;\n switch (reqInfo.method) {\n case 'get':\n resOptions = this.get(reqInfo);\n break;\n case 'post':\n resOptions = this.post(reqInfo);\n break;\n case 'put':\n resOptions = this.put(reqInfo);\n break;\n case 'delete':\n resOptions = this.delete(reqInfo);\n break;\n default:\n resOptions = this.createErrorResponseOptions(reqInfo.url, STATUS.METHOD_NOT_ALLOWED, 'Method not allowed');\n break;\n }\n\n // If `inMemDbService.responseInterceptor` exists, let it morph the response options\n const interceptor = this.bind('responseInterceptor');\n return interceptor ? interceptor(resOptions, reqInfo) : resOptions;\n }\n\n /**\n * Commands reconfigure the in-memory web api service or extract information from it.\n * Commands ignore the latency delay and respond ASAP.\n *\n * When the last segment of the `apiBase` path is \"commands\",\n * the `collectionName` is the command.\n *\n * Example URLs:\n * commands/resetdb (POST) // Reset the \"database\" to its original state\n * commands/config (GET) // Return this service's config object\n * commands/config (POST) // Update the config (e.g. the delay)\n *\n * Usage:\n * http.post('commands/resetdb', undefined);\n * http.get('commands/config');\n * http.post('commands/config', '{\"delay\":1000}');\n */\n protected commands(reqInfo: RequestInfo): Observable {\n const command = reqInfo.collectionName.toLowerCase();\n const method = reqInfo.method;\n\n let resOptions: ResponseOptions = {\n url: reqInfo.url\n };\n\n switch (command) {\n case 'resetdb':\n resOptions.status = STATUS.NO_CONTENT;\n return concatMap.call(\n this.resetDb(reqInfo),\n () => this.createResponse$(() => resOptions, false /* no latency delay */));\n\n case 'config':\n if (method === 'get') {\n resOptions.status = STATUS.OK;\n resOptions.body = this.clone(this.config);\n\n // any other HTTP method is assumed to be a config update\n } else {\n const body = this.getJsonBody(reqInfo.req);\n Object.assign(this.config, body);\n this.passThruBackend = undefined; // re-create when needed\n\n resOptions.status = STATUS.NO_CONTENT;\n }\n break;\n\n default:\n resOptions = this.createErrorResponseOptions(\n reqInfo.url,\n STATUS.INTERNAL_SERVER_ERROR,\n `Unknown command \"${command}\"`\n );\n }\n\n return this.createResponse$(() => resOptions, false /* no latency delay */);\n }\n\n protected createErrorResponseOptions(url: string, status: number, message: string): ResponseOptions {\n return {\n body: { error: `${message}` },\n url: url,\n headers: this.createHeaders({ 'Content-Type': 'application/json' }),\n status: status\n };\n }\n\n /**\n * Create standard HTTP headers object from hash map of header strings\n * @param headers\n */\n protected abstract createHeaders(headers: {[index: string]: string}): HeadersCore;\n\n /**\n * create the function that passes unhandled requests through to the \"real\" backend.\n */\n protected abstract createPassThruBackend(): PassThruBackend;\n\n /**\n * return a search map from a location query/search string\n */\n protected abstract createQueryMap(search: string): Map;\n\n /**\n * Create a cold response Observable from a factory for ResponseOptions\n * @param resOptionsFactory - creates ResponseOptions when observable is subscribed\n * @param withDelay - if true (default), add simulated latency delay from configuration\n */\n protected createResponse$(resOptionsFactory: () => ResponseOptions, withDelay = true): Observable {\n const resOptions$ = this.createResponseOptions$(resOptionsFactory);\n let resp$ = this.createResponse$fromResponseOptions$(resOptions$);\n return withDelay ? this.addDelay(resp$) : resp$;\n }\n\n /**\n * Create a Response observable from ResponseOptions observable.\n */\n protected abstract createResponse$fromResponseOptions$(resOptions$: Observable): Observable;\n\n /**\n * Create a cold Observable of ResponseOptions.\n * @param resOptionsFactory - creates ResponseOptions when observable is subscribed\n */\n protected createResponseOptions$(resOptionsFactory: () => ResponseOptions): Observable {\n\n return new Observable((responseObserver: Observer) => {\n let resOptions: ResponseOptions;\n try {\n resOptions = resOptionsFactory();\n } catch (error) {\n const err = error.message || error;\n resOptions = this.createErrorResponseOptions('', STATUS.INTERNAL_SERVER_ERROR, `${err}`);\n }\n\n const status = resOptions.status;\n try {\n resOptions.statusText = getStatusText(status);\n } catch (e) { /* ignore failure */}\n if (isSuccess(status)) {\n responseObserver.next(resOptions);\n responseObserver.complete();\n } else {\n responseObserver.error(resOptions);\n }\n return () => { }; // unsubscribe function\n });\n }\n\n protected delete({ collection, collectionName, headers, id, url}: RequestInfo): ResponseOptions {\n // tslint:disable-next-line:triple-equals\n if (id == undefined) {\n return this.createErrorResponseOptions(url, STATUS.NOT_FOUND, `Missing \"${collectionName}\" id`);\n }\n const exists = this.removeById(collection, id);\n return {\n headers: headers,\n status: (exists || !this.config.delete404) ? STATUS.NO_CONTENT : STATUS.NOT_FOUND\n };\n }\n\n /**\n * Find first instance of item in collection by `item.id`\n * @param collection\n * @param id\n */\n protected findById(collection: T[], id: any): T {\n return collection.find((item: T) => item.id === id);\n }\n\n /**\n * Generate the next available id for item in this collection\n * Use method from `inMemDbService` if it exists and returns a value,\n * else delegates to `genIdDefault`.\n * @param collection - collection of items with `id` key property\n */\n protected genId(collection: T[], collectionName: string): any {\n const genId = this.bind('genId');\n if (genId) {\n const id = genId(collection, collectionName);\n // tslint:disable-next-line:triple-equals\n if (id != undefined) { return id; }\n }\n return this.genIdDefault(collection, collectionName);\n }\n\n /**\n * Default generator of the next available id for item in this collection\n * This default implementation works only for numeric ids.\n * @param collection - collection of items with `id` key property\n * @param collectionName - name of the collection\n */\n protected genIdDefault(collection: T[], collectionName: string): any {\n if (!this.isCollectionIdNumeric(collection, collectionName)) {\n throw new Error(\n `Collection '${collectionName}' id type is non-numeric or unknown. Can only generate numeric ids.`);\n }\n\n let maxId = 0;\n collection.reduce((prev: any, item: any) => {\n maxId = Math.max(maxId, typeof item.id === 'number' ? item.id : maxId);\n }, undefined);\n return maxId + 1;\n }\n\n protected get({ collection, collectionName, headers, id, query, url }: RequestInfo): ResponseOptions {\n let data = collection;\n\n // tslint:disable-next-line:triple-equals\n if (id != undefined && id !== '') {\n data = this.findById(collection, id);\n } else if (query) {\n data = this.applyQuery(collection, query);\n }\n\n if (!data) {\n return this.createErrorResponseOptions(url, STATUS.NOT_FOUND, `'${collectionName}' with id='${id}' not found`);\n }\n return {\n body: this.bodify(this.clone(data)),\n headers: headers,\n status: STATUS.OK\n };\n }\n\n /** Get JSON body from the request object */\n protected abstract getJsonBody(req: any): any;\n\n /**\n * Get location info from a url, even on server where `document` is not defined\n */\n protected getLocation(url: string): UriInfo {\n if (!url.startsWith('http')) {\n // get the document iff running in browser\n const doc: Document = (typeof document === 'undefined') ? undefined : document;\n // add host info to url before parsing. Use a fake host when not in browser.\n const base = doc ? doc.location.protocol + '//' + doc.location.host : 'http://fake';\n url = url.startsWith('/') ? base + url : base + '/' + url;\n }\n return parseUri(url);\n };\n\n /**\n * get or create the function that passes unhandled requests\n * through to the \"real\" backend.\n */\n protected getPassThruBackend(): PassThruBackend {\n return this.passThruBackend ?\n this.passThruBackend :\n this.passThruBackend = this.createPassThruBackend();\n }\n\n /**\n * Get utility methods from this service instance.\n * Useful within an HTTP method override\n */\n protected getRequestInfoUtils(): RequestInfoUtilities {\n return {\n createResponse$: this.createResponse$.bind(this),\n findById: this.findById.bind(this),\n isCollectionIdNumeric: this.isCollectionIdNumeric.bind(this),\n getConfig: () => this.config,\n getDb: () => this.db,\n getJsonBody: this.getJsonBody.bind(this),\n getLocation: this.getLocation.bind(this),\n getPassThruBackend: this.getPassThruBackend.bind(this),\n parseRequestUrl: this.parseRequestUrl.bind(this),\n };\n }\n\n /**\n * return canonical HTTP method name (lowercase) from the request object\n * e.g. (req.method || 'get').toLowerCase();\n * @param req - request object from the http call\n *\n */\n protected abstract getRequestMethod(req: any): string;\n\n protected indexOf(collection: any[], id: number) {\n return collection.findIndex((item: any) => item.id === id);\n }\n\n /** Parse the id as a number. Return original value if not a number. */\n protected parseId(collection: any[], collectionName: string, id: string): any {\n if (!this.isCollectionIdNumeric(collection, collectionName)) {\n // Can't confirm that `id` is a numeric type; don't parse as a number\n // or else `'42'` -> `42` and _get by id_ fails.\n return id;\n }\n const idNum = parseFloat(id);\n return isNaN(idNum) ? id : idNum;\n }\n\n /**\n * return true if can determine that the collection's `item.id` is a number\n * This implementation can't tell if the collection is empty so it assumes NO\n * */\n protected isCollectionIdNumeric(collection: T[], collectionName: string): boolean {\n // collectionName not used now but override might maintain collection type information\n // so that it could know the type of the `id` even when the collection is empty.\n return !!(collection && collection[0]) && typeof collection[0].id === 'number';\n }\n\n /**\n * Parses the request URL into a `ParsedRequestUrl` object.\n * Parsing depends upon certain values of `config`: `apiBase`, `host`, and `urlRoot`.\n *\n * Configuring the `apiBase` yields the most interesting changes to `parseRequestUrl` behavior:\n * When apiBase=undefined and url='http://localhost/api/collection/42'\n * {base: 'api/', collectionName: 'collection', id: '42', ...}\n * When apiBase='some/api/root/' and url='http://localhost/some/api/root/collection'\n * {base: 'some/api/root/', collectionName: 'collection', id: undefined, ...}\n * When apiBase='/' and url='http://localhost/collection'\n * {base: '/', collectionName: 'collection', id: undefined, ...}\n *\n * The actual api base segment values are ignored. Only the number of segments matters.\n * The following api base strings are considered identical: 'a/b' ~ 'some/api/' ~ `two/segments'\n *\n * To replace this default method, assign your alternative to your InMemDbService['parseRequestUrl']\n */\n protected parseRequestUrl(url: string): ParsedRequestUrl {\n try {\n const loc = this.getLocation(url);\n let drop = this.config.rootPath.length;\n let urlRoot = '';\n if (loc.host !== this.config.host) {\n // url for a server on a different host!\n // assume it's collection is actually here too.\n drop = 1; // the leading slash\n urlRoot = loc.protocol + '//' + loc.host + '/';\n }\n const path = loc.path.substring(drop);\n const pathSegments = path.split('/');\n let segmentIx = 0;\n\n // apiBase: the front part of the path devoted to getting to the api route\n // Assumes first path segment if no config.apiBase\n // else ignores as many path segments as are in config.apiBase\n // Does NOT care what the api base chars actually are.\n let apiBase: string;\n // tslint:disable-next-line:triple-equals\n if (this.config.apiBase == undefined) {\n apiBase = pathSegments[segmentIx++];\n } else {\n apiBase = removeTrailingSlash(this.config.apiBase.trim());\n if (apiBase) {\n segmentIx = apiBase.split('/').length;\n } else {\n segmentIx = 0; // no api base at all; unwise but allowed.\n }\n }\n apiBase += '/';\n\n let collectionName = pathSegments[segmentIx++];\n // ignore anything after a '.' (e.g.,the \"json\" in \"customers.json\")\n collectionName = collectionName && collectionName.split('.')[0];\n\n const id = pathSegments[segmentIx++];\n const query = this.createQueryMap(loc.query);\n const resourceUrl = urlRoot + apiBase + collectionName + '/';\n return { apiBase, collectionName, id, query, resourceUrl };\n\n } catch (err) {\n const msg = `unable to parse url '${url}'; original error: ${err.message}`;\n throw new Error(msg);\n }\n }\n\n // Create entity\n // Can update an existing entity too if post409 is false.\n protected post({ collection, collectionName, headers, id, req, resourceUrl, url }: RequestInfo): ResponseOptions {\n const item = this.clone(this.getJsonBody(req));\n\n // tslint:disable-next-line:triple-equals\n if (item.id == undefined) {\n try {\n item.id = id || this.genId(collection, collectionName);\n } catch (err) {\n const emsg: string = err.message || '';\n if (/id type is non-numeric/.test(emsg)) {\n return this.createErrorResponseOptions(url, STATUS.UNPROCESSABLE_ENTRY, emsg);\n } else {\n console.error(err);\n return this.createErrorResponseOptions(url, STATUS.INTERNAL_SERVER_ERROR,\n `Failed to generate new id for '${collectionName}'`);\n }\n }\n }\n\n if (id && id !== item.id) {\n return this.createErrorResponseOptions(url, STATUS.BAD_REQUEST, `Request id does not match item.id`);\n } else {\n id = item.id;\n }\n const existingIx = this.indexOf(collection, id);\n const body = this.bodify(item);\n\n if (existingIx === -1) {\n collection.push(item);\n headers.set('Location', resourceUrl + '/' + id);\n return { headers, body, status: STATUS.CREATED };\n } else if (this.config.post409) {\n return this.createErrorResponseOptions(url, STATUS.CONFLICT,\n `'${collectionName}' item with id='${id} exists and may not be updated with POST; use PUT instead.`);\n } else {\n collection[existingIx] = item;\n return this.config.post204 ?\n { headers, status: STATUS.NO_CONTENT } : // successful; no content\n { headers, body, status: STATUS.OK }; // successful; return entity\n }\n }\n\n // Update existing entity\n // Can create an entity too if put404 is false.\n protected put({ collection, collectionName, headers, id, req, url }: RequestInfo): ResponseOptions {\n const item = this.clone(this.getJsonBody(req));\n // tslint:disable-next-line:triple-equals\n if (item.id == undefined) {\n return this.createErrorResponseOptions(url, STATUS.NOT_FOUND, `Missing '${collectionName}' id`);\n }\n if (id && id !== item.id) {\n return this.createErrorResponseOptions(url, STATUS.BAD_REQUEST,\n `Request for '${collectionName}' id does not match item.id`);\n } else {\n id = item.id;\n }\n const existingIx = this.indexOf(collection, id);\n const body = this.bodify(item);\n\n if (existingIx > -1) {\n collection[existingIx] = item;\n return this.config.put204 ?\n { headers, status: STATUS.NO_CONTENT } : // successful; no content\n { headers, body, status: STATUS.OK }; // successful; return entity\n } else if (this.config.put404) {\n // item to update not found; use POST to create new item for this id.\n return this.createErrorResponseOptions(url, STATUS.NOT_FOUND,\n `'${collectionName}' item with id='${id} not found and may not be created with PUT; use POST instead.`);\n } else {\n // create new item for id not found\n collection.push(item);\n return { headers, body, status: STATUS.CREATED };\n }\n }\n\n protected removeById(collection: any[], id: number) {\n const ix = this.indexOf(collection, id);\n if (ix > -1) {\n collection.splice(ix, 1);\n return true;\n }\n return false;\n }\n\n /**\n * Tell your in-mem \"database\" to reset.\n * returns Observable of the database because resetting it could be async\n */\n protected resetDb(reqInfo?: RequestInfo): Observable {\n this.dbReadySubject.next(false);\n const db = this.inMemDbService.createDb(reqInfo);\n const db$ = db instanceof Observable ? db :\n isPromise(db) ? fromPromise(db) :\n of(db);\n first.call(db$).subscribe((d: {}) => {\n this.db = d;\n this.dbReadySubject.next(true);\n });\n return this.dbReady;\n }\n\n}\n"]} \ No newline at end of file diff --git a/backend.service.metadata.json b/backend.service.metadata.json deleted file mode 100644 index b0ac1c2..0000000 --- a/backend.service.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"BackendService":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService"},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfigArgs"}]}],"handleRequest":[{"__symbolic":"method"}],"handleRequest_":[{"__symbolic":"method"}],"addDelay":[{"__symbolic":"method"}],"applyQuery":[{"__symbolic":"method"}],"bind":[{"__symbolic":"method"}],"bodify":[{"__symbolic":"method"}],"clone":[{"__symbolic":"method"}],"collectionHandler":[{"__symbolic":"method"}],"commands":[{"__symbolic":"method"}],"createErrorResponseOptions":[{"__symbolic":"method"}],"createHeaders":[{"__symbolic":"method"}],"createPassThruBackend":[{"__symbolic":"method"}],"createQueryMap":[{"__symbolic":"method"}],"createResponse$":[{"__symbolic":"method"}],"createResponse$fromResponseOptions$":[{"__symbolic":"method"}],"createResponseOptions$":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}],"findById":[{"__symbolic":"method"}],"genId":[{"__symbolic":"method"}],"genIdDefault":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"getJsonBody":[{"__symbolic":"method"}],"getLocation":[{"__symbolic":"method"}],"getPassThruBackend":[{"__symbolic":"method"}],"getRequestInfoUtils":[{"__symbolic":"method"}],"getRequestMethod":[{"__symbolic":"method"}],"indexOf":[{"__symbolic":"method"}],"parseId":[{"__symbolic":"method"}],"isCollectionIdNumeric":[{"__symbolic":"method"}],"parseRequestUrl":[{"__symbolic":"method"}],"post":[{"__symbolic":"method"}],"put":[{"__symbolic":"method"}],"removeById":[{"__symbolic":"method"}],"resetDb":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"BackendService":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService"},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfigArgs"}]}],"handleRequest":[{"__symbolic":"method"}],"handleRequest_":[{"__symbolic":"method"}],"addDelay":[{"__symbolic":"method"}],"applyQuery":[{"__symbolic":"method"}],"bind":[{"__symbolic":"method"}],"bodify":[{"__symbolic":"method"}],"clone":[{"__symbolic":"method"}],"collectionHandler":[{"__symbolic":"method"}],"commands":[{"__symbolic":"method"}],"createErrorResponseOptions":[{"__symbolic":"method"}],"createHeaders":[{"__symbolic":"method"}],"createPassThruBackend":[{"__symbolic":"method"}],"createQueryMap":[{"__symbolic":"method"}],"createResponse$":[{"__symbolic":"method"}],"createResponse$fromResponseOptions$":[{"__symbolic":"method"}],"createResponseOptions$":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}],"findById":[{"__symbolic":"method"}],"genId":[{"__symbolic":"method"}],"genIdDefault":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"getJsonBody":[{"__symbolic":"method"}],"getLocation":[{"__symbolic":"method"}],"getPassThruBackend":[{"__symbolic":"method"}],"getRequestInfoUtils":[{"__symbolic":"method"}],"getRequestMethod":[{"__symbolic":"method"}],"indexOf":[{"__symbolic":"method"}],"parseId":[{"__symbolic":"method"}],"isCollectionIdNumeric":[{"__symbolic":"method"}],"parseRequestUrl":[{"__symbolic":"method"}],"post":[{"__symbolic":"method"}],"put":[{"__symbolic":"method"}],"removeById":[{"__symbolic":"method"}],"resetDb":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/bundles/in-memory-web-api.umd.js b/bundles/in-memory-web-api.umd.js deleted file mode 100644 index 2576219..0000000 --- a/bundles/in-memory-web-api.umd.js +++ /dev/null @@ -1,1559 +0,0 @@ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs/Observable'), require('rxjs/BehaviorSubject'), require('rxjs/observable/of'), require('rxjs/observable/fromPromise'), require('rxjs/util/isPromise'), require('rxjs/operator/concatMap'), require('rxjs/operator/first'), require('@angular/core'), require('@angular/http'), require('rxjs/operator/map'), require('@angular/common/http')) : - typeof define === 'function' && define.amd ? define(['exports', 'rxjs/Observable', 'rxjs/BehaviorSubject', 'rxjs/observable/of', 'rxjs/observable/fromPromise', 'rxjs/util/isPromise', 'rxjs/operator/concatMap', 'rxjs/operator/first', '@angular/core', '@angular/http', 'rxjs/operator/map', '@angular/common/http'], factory) : - (factory((global.ng = global.ng || {}, global.ng.inMemoryWebApi = {}),global.Rx,global.Rx,global.Rx,global.Rx,global.Rx,global.Rx,global.Rx,global.ng.core,global.ng.http,global.Rx,global.ng.common.http)); -}(this, (function (exports,Observable,BehaviorSubject,of,fromPromise,isPromise,concatMap,first,core,http,map,http$1) { 'use strict'; - -var STATUS = { - CONTINUE: 100, - SWITCHING_PROTOCOLS: 101, - OK: 200, - CREATED: 201, - ACCEPTED: 202, - NON_AUTHORITATIVE_INFORMATION: 203, - NO_CONTENT: 204, - RESET_CONTENT: 205, - PARTIAL_CONTENT: 206, - MULTIPLE_CHOICES: 300, - MOVED_PERMANTENTLY: 301, - FOUND: 302, - SEE_OTHER: 303, - NOT_MODIFIED: 304, - USE_PROXY: 305, - TEMPORARY_REDIRECT: 307, - BAD_REQUEST: 400, - UNAUTHORIZED: 401, - PAYMENT_REQUIRED: 402, - FORBIDDEN: 403, - NOT_FOUND: 404, - METHOD_NOT_ALLOWED: 405, - NOT_ACCEPTABLE: 406, - PROXY_AUTHENTICATION_REQUIRED: 407, - REQUEST_TIMEOUT: 408, - CONFLICT: 409, - GONE: 410, - LENGTH_REQUIRED: 411, - PRECONDITION_FAILED: 412, - PAYLOAD_TO_LARGE: 413, - URI_TOO_LONG: 414, - UNSUPPORTED_MEDIA_TYPE: 415, - RANGE_NOT_SATISFIABLE: 416, - EXPECTATION_FAILED: 417, - IM_A_TEAPOT: 418, - UPGRADE_REQUIRED: 426, - INTERNAL_SERVER_ERROR: 500, - NOT_IMPLEMENTED: 501, - BAD_GATEWAY: 502, - SERVICE_UNAVAILABLE: 503, - GATEWAY_TIMEOUT: 504, - HTTP_VERSION_NOT_SUPPORTED: 505, - PROCESSING: 102, - MULTI_STATUS: 207, - IM_USED: 226, - PERMANENT_REDIRECT: 308, - UNPROCESSABLE_ENTRY: 422, - LOCKED: 423, - FAILED_DEPENDENCY: 424, - PRECONDITION_REQUIRED: 428, - TOO_MANY_REQUESTS: 429, - REQUEST_HEADER_FIELDS_TOO_LARGE: 431, - UNAVAILABLE_FOR_LEGAL_REASONS: 451, - VARIANT_ALSO_NEGOTIATES: 506, - INSUFFICIENT_STORAGE: 507, - NETWORK_AUTHENTICATION_REQUIRED: 511 -}; -/*tslint:disable:quotemark max-line-length one-line */ -var STATUS_CODE_INFO = { - '100': { - 'code': 100, - 'text': 'Continue', - 'description': '\"The initial part of a request has been received and has not yet been rejected by the server.\"', - 'spec_title': 'RFC7231#6.2.1', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.2.1' - }, - '101': { - 'code': 101, - 'text': 'Switching Protocols', - '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.\"', - 'spec_title': 'RFC7231#6.2.2', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.2.2' - }, - '200': { - 'code': 200, - 'text': 'OK', - 'description': '\"The request has succeeded.\"', - 'spec_title': 'RFC7231#6.3.1', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.1' - }, - '201': { - 'code': 201, - 'text': 'Created', - 'description': '\"The request has been fulfilled and has resulted in one or more new resources being created.\"', - 'spec_title': 'RFC7231#6.3.2', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.2' - }, - '202': { - 'code': 202, - 'text': 'Accepted', - 'description': '\"The request has been accepted for processing, but the processing has not been completed.\"', - 'spec_title': 'RFC7231#6.3.3', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.3' - }, - '203': { - 'code': 203, - 'text': 'Non-Authoritative Information', - '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.\"', - 'spec_title': 'RFC7231#6.3.4', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.4' - }, - '204': { - 'code': 204, - 'text': 'No Content', - 'description': '\"The server has successfully fulfilled the request and that there is no additional content to send in the response payload body.\"', - 'spec_title': 'RFC7231#6.3.5', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.5' - }, - '205': { - 'code': 205, - 'text': 'Reset Content', - '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.\"', - 'spec_title': 'RFC7231#6.3.6', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.6' - }, - '206': { - 'code': 206, - 'text': 'Partial Content', - '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.\"', - 'spec_title': 'RFC7233#4.1', - 'spec_href': 'http://tools.ietf.org/html/rfc7233#section-4.1' - }, - '300': { - 'code': 300, - 'text': 'Multiple Choices', - '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.\"', - 'spec_title': 'RFC7231#6.4.1', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.1' - }, - '301': { - 'code': 301, - 'text': 'Moved Permanently', - '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.\"', - 'spec_title': 'RFC7231#6.4.2', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.2' - }, - '302': { - 'code': 302, - 'text': 'Found', - 'description': '\"The target resource resides temporarily under a different URI.\"', - 'spec_title': 'RFC7231#6.4.3', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.3' - }, - '303': { - 'code': 303, - 'text': 'See Other', - '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.\"', - 'spec_title': 'RFC7231#6.4.4', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.4' - }, - '304': { - 'code': 304, - 'text': 'Not Modified', - '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.\"', - 'spec_title': 'RFC7232#4.1', - 'spec_href': 'http://tools.ietf.org/html/rfc7232#section-4.1' - }, - '305': { - 'code': 305, - 'text': 'Use Proxy', - 'description': '*deprecated*', - 'spec_title': 'RFC7231#6.4.5', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.5' - }, - '307': { - 'code': 307, - 'text': 'Temporary Redirect', - '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.\"', - 'spec_title': 'RFC7231#6.4.7', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.7' - }, - '400': { - 'code': 400, - 'text': 'Bad Request', - '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.\"', - 'spec_title': 'RFC7231#6.5.1', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.1' - }, - '401': { - 'code': 401, - 'text': 'Unauthorized', - 'description': '\"The request has not been applied because it lacks valid authentication credentials for the target resource.\"', - 'spec_title': 'RFC7235#6.3.1', - 'spec_href': 'http://tools.ietf.org/html/rfc7235#section-3.1' - }, - '402': { - 'code': 402, - 'text': 'Payment Required', - 'description': '*reserved*', - 'spec_title': 'RFC7231#6.5.2', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.2' - }, - '403': { - 'code': 403, - 'text': 'Forbidden', - 'description': '\"The server understood the request but refuses to authorize it.\"', - 'spec_title': 'RFC7231#6.5.3', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.3' - }, - '404': { - 'code': 404, - 'text': 'Not Found', - 'description': '\"The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.\"', - 'spec_title': 'RFC7231#6.5.4', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.4' - }, - '405': { - 'code': 405, - 'text': 'Method Not Allowed', - 'description': '\"The method specified in the request-line is known by the origin server but not supported by the target resource.\"', - 'spec_title': 'RFC7231#6.5.5', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.5' - }, - '406': { - 'code': 406, - 'text': 'Not Acceptable', - '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.\"', - 'spec_title': 'RFC7231#6.5.6', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.6' - }, - '407': { - 'code': 407, - 'text': 'Proxy Authentication Required', - 'description': '\"The client needs to authenticate itself in order to use a proxy.\"', - 'spec_title': 'RFC7231#6.3.2', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.2' - }, - '408': { - 'code': 408, - 'text': 'Request Timeout', - 'description': '\"The server did not receive a complete request message within the time that it was prepared to wait.\"', - 'spec_title': 'RFC7231#6.5.7', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.7' - }, - '409': { - 'code': 409, - 'text': 'Conflict', - 'description': '\"The request could not be completed due to a conflict with the current state of the resource.\"', - 'spec_title': 'RFC7231#6.5.8', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.8' - }, - '410': { - 'code': 410, - 'text': 'Gone', - 'description': '\"Access to the target resource is no longer available at the origin server and that this condition is likely to be permanent.\"', - 'spec_title': 'RFC7231#6.5.9', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.9' - }, - '411': { - 'code': 411, - 'text': 'Length Required', - 'description': '\"The server refuses to accept the request without a defined Content-Length.\"', - 'spec_title': 'RFC7231#6.5.10', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.10' - }, - '412': { - 'code': 412, - 'text': 'Precondition Failed', - 'description': '\"One or more preconditions given in the request header fields evaluated to false when tested on the server.\"', - 'spec_title': 'RFC7232#4.2', - 'spec_href': 'http://tools.ietf.org/html/rfc7232#section-4.2' - }, - '413': { - 'code': 413, - 'text': 'Payload Too Large', - 'description': '\"The server is refusing to process a request because the request payload is larger than the server is willing or able to process.\"', - 'spec_title': 'RFC7231#6.5.11', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.11' - }, - '414': { - 'code': 414, - 'text': 'URI Too Long', - 'description': '\"The server is refusing to service the request because the request-target is longer than the server is willing to interpret.\"', - 'spec_title': 'RFC7231#6.5.12', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.12' - }, - '415': { - 'code': 415, - 'text': 'Unsupported Media Type', - '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.\"', - 'spec_title': 'RFC7231#6.5.13', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.13' - }, - '416': { - 'code': 416, - 'text': 'Range Not Satisfiable', - '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.\"', - 'spec_title': 'RFC7233#4.4', - 'spec_href': 'http://tools.ietf.org/html/rfc7233#section-4.4' - }, - '417': { - 'code': 417, - 'text': 'Expectation Failed', - 'description': '\"The expectation given in the request\'s Expect header field could not be met by at least one of the inbound servers.\"', - 'spec_title': 'RFC7231#6.5.14', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.14' - }, - '418': { - 'code': 418, - 'text': 'I\'m a teapot', - 'description': '\"1988 April Fools Joke. Returned by tea pots requested to brew coffee.\"', - 'spec_title': 'RFC 2324', - 'spec_href': 'https://tools.ietf.org/html/rfc2324' - }, - '426': { - 'code': 426, - 'text': 'Upgrade Required', - '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.\"', - 'spec_title': 'RFC7231#6.5.15', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.15' - }, - '500': { - 'code': 500, - 'text': 'Internal Server Error', - 'description': '\"The server encountered an unexpected condition that prevented it from fulfilling the request.\"', - 'spec_title': 'RFC7231#6.6.1', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.1' - }, - '501': { - 'code': 501, - 'text': 'Not Implemented', - 'description': '\"The server does not support the functionality required to fulfill the request.\"', - 'spec_title': 'RFC7231#6.6.2', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.2' - }, - '502': { - 'code': 502, - 'text': 'Bad Gateway', - '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.\"', - 'spec_title': 'RFC7231#6.6.3', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.3' - }, - '503': { - 'code': 503, - 'text': 'Service Unavailable', - '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.\"', - 'spec_title': 'RFC7231#6.6.4', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.4' - }, - '504': { - 'code': 504, - 'text': 'Gateway Time-out', - '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.\"', - 'spec_title': 'RFC7231#6.6.5', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.5' - }, - '505': { - 'code': 505, - 'text': 'HTTP Version Not Supported', - 'description': '\"The server does not support, or refuses to support, the protocol version that was used in the request message.\"', - 'spec_title': 'RFC7231#6.6.6', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.6' - }, - '102': { - 'code': 102, - 'text': 'Processing', - 'description': '\"An interim response to inform the client that the server has accepted the complete request, but has not yet completed it.\"', - 'spec_title': 'RFC5218#10.1', - 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.1' - }, - '207': { - 'code': 207, - 'text': 'Multi-Status', - 'description': '\"Status for multiple independent operations.\"', - 'spec_title': 'RFC5218#10.2', - 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.2' - }, - '226': { - 'code': 226, - 'text': 'IM Used', - '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.\"', - 'spec_title': 'RFC3229#10.4.1', - 'spec_href': 'http://tools.ietf.org/html/rfc3229#section-10.4.1' - }, - '308': { - 'code': 308, - 'text': 'Permanent Redirect', - '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.\"', - 'spec_title': 'RFC7238', - 'spec_href': 'http://tools.ietf.org/html/rfc7238' - }, - '422': { - 'code': 422, - 'text': 'Unprocessable Entity', - '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.\"', - 'spec_title': 'RFC5218#10.3', - 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.3' - }, - '423': { - 'code': 423, - 'text': 'Locked', - 'description': '\"The source or destination resource of a method is locked.\"', - 'spec_title': 'RFC5218#10.4', - 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.4' - }, - '424': { - 'code': 424, - 'text': 'Failed Dependency', - 'description': '\"The method could not be performed on the resource because the requested action depended on another action and that action failed.\"', - 'spec_title': 'RFC5218#10.5', - 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.5' - }, - '428': { - 'code': 428, - 'text': 'Precondition Required', - 'description': '\"The origin server requires the request to be conditional.\"', - 'spec_title': 'RFC6585#3', - 'spec_href': 'http://tools.ietf.org/html/rfc6585#section-3' - }, - '429': { - 'code': 429, - 'text': 'Too Many Requests', - 'description': '\"The user has sent too many requests in a given amount of time (\"rate limiting\").\"', - 'spec_title': 'RFC6585#4', - 'spec_href': 'http://tools.ietf.org/html/rfc6585#section-4' - }, - '431': { - 'code': 431, - 'text': 'Request Header Fields Too Large', - 'description': '\"The server is unwilling to process the request because its header fields are too large.\"', - 'spec_title': 'RFC6585#5', - 'spec_href': 'http://tools.ietf.org/html/rfc6585#section-5' - }, - '451': { - 'code': 451, - 'text': 'Unavailable For Legal Reasons', - 'description': '\"The server is denying access to the resource in response to a legal demand.\"', - 'spec_title': 'draft-ietf-httpbis-legally-restricted-status', - 'spec_href': 'http://tools.ietf.org/html/draft-ietf-httpbis-legally-restricted-status' - }, - '506': { - 'code': 506, - 'text': 'Variant Also Negotiates', - '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.\"', - 'spec_title': 'RFC2295#8.1', - 'spec_href': 'http://tools.ietf.org/html/rfc2295#section-8.1' - }, - '507': { - 'code': 507, - 'text': 'Insufficient Storage', - '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.\"', - 'spec_title': 'RFC5218#10.6', - 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.6' - }, - '511': { - 'code': 511, - 'text': 'Network Authentication Required', - 'description': '\"The client needs to authenticate to gain network access.\"', - 'spec_title': 'RFC6585#6', - 'spec_href': 'http://tools.ietf.org/html/rfc6585#section-6' - } -}; -/** - * get the status text from StatusCode - */ -function getStatusText(status) { - return STATUS_CODE_INFO[status].text || 'Unknown Status'; -} -/** - * Returns true if the the Http Status Code is 200-299 (success) - */ -function isSuccess(status) { return status >= 200 && status < 300; } - -// Replaces use of RxJS delay. See v0.5.4. -/** adds specified delay (in ms) to both next and error channels of the response observable */ -function delayResponse(response$, delayMs) { - return new Observable.Observable(function (observer) { - var completePending = false; - var nextPending = false; - var subscription = response$.subscribe(function (value) { - nextPending = true; - setTimeout(function () { - observer.next(value); - if (completePending) { - observer.complete(); - } - }, delayMs); - }, function (error) { return setTimeout(function () { return observer.error(error); }, delayMs); }, function () { - completePending = true; - if (!nextPending) { - observer.complete(); - } - }); - return function () { - return subscription.unsubscribe(); - }; - }); -} - -/** -* Interface for a class that creates an in-memory database -* -* Its `createDb` method creates a hash of named collections that represents the database -* -* For maximum flexibility, the service may define HTTP method overrides. -* Such methods must match the spelling of an HTTP method in lower case (e.g, "get"). -* If a request has a matching method, it will be called as in -* `get(info: requestInfo, db: {})` where `db` is the database object described above. -*/ -var InMemoryDbService = (function () { - function InMemoryDbService() { - } - return InMemoryDbService; -}()); -/** -* Interface for InMemoryBackend configuration options -*/ -var InMemoryBackendConfigArgs = (function () { - function InMemoryBackendConfigArgs() { - } - return InMemoryBackendConfigArgs; -}()); -///////////////////////////////// -/** -* InMemoryBackendService configuration options -* Usage: -* InMemoryWebApiModule.forRoot(InMemHeroService, {delay: 600}) -* -* or if providing separately: -* provide(InMemoryBackendConfig, {useValue: {delay: 600}}), -*/ -var InMemoryBackendConfig = (function () { - function InMemoryBackendConfig(config) { - if (config === void 0) { config = {}; } - Object.assign(this, { - // default config: - caseSensitiveSearch: false, - dataEncapsulation: false, - delay: 500, - delete404: false, - passThruUnknownUrl: false, - post204: true, - post409: false, - put204: true, - put404: false, - apiBase: undefined, - host: undefined, - rootPath: undefined // default value is actually set in InMemoryBackendService ctor - }, config); - } - return InMemoryBackendConfig; -}()); -InMemoryBackendConfig.decorators = [ - { type: core.Injectable }, -]; -/** @nocollapse */ -InMemoryBackendConfig.ctorParameters = function () { return [ - { type: InMemoryBackendConfigArgs, }, -]; }; -/** Return information (UriInfo) about a URI */ -function parseUri(str) { - // Adapted from parseuri package - http://blog.stevenlevithan.com/archives/parseuri - // tslint:disable-next-line:max-line-length - var URL_REGEX = /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/; - var m = URL_REGEX.exec(str); - var uri = { - source: '', - protocol: '', - authority: '', - userInfo: '', - user: '', - password: '', - host: '', - port: '', - relative: '', - path: '', - directory: '', - file: '', - query: '', - anchor: '' - }; - var keys = Object.keys(uri); - var i = keys.length; - while (i--) { - uri[keys[i]] = m[i] || ''; - } - return uri; -} -function removeTrailingSlash(path) { - return path.replace(/\/$/, ''); -} - -/** - * Base class for in-memory web api back-ends - * Simulate the behavior of a RESTy web api - * backed by the simple in-memory data store provided by the injected `InMemoryDbService` service. - * Conforms mostly to behavior described here: - * http://www.restapitutorial.com/lessons/httpmethods.html - */ -var BackendService = (function () { - function BackendService(inMemDbService, config) { - if (config === void 0) { config = {}; } - this.inMemDbService = inMemDbService; - this.config = new InMemoryBackendConfig(); - this.requestInfoUtils = this.getRequestInfoUtils(); - var loc = this.getLocation('/'); - this.config.host = loc.host; // default to app web server host - this.config.rootPath = loc.path; // default to path when app is served (e.g.'/') - Object.assign(this.config, config); - } - Object.defineProperty(BackendService.prototype, "dbReady", { - //// protected ///// - get: function () { - if (!this.dbReadySubject) { - // first time the service is called. - this.dbReadySubject = new BehaviorSubject.BehaviorSubject(false); - this.resetDb(); - } - return first.first.call(this.dbReadySubject.asObservable(), function (r) { return r; }); - }, - enumerable: true, - configurable: true - }); - /** - * Process Request and return an Observable of Http Response object - * in the manner of a RESTy web api. - * - * Expect URI pattern in the form :base/:collectionName/:id? - * Examples: - * // for store with a 'customers' collection - * GET api/customers // all customers - * GET api/customers/42 // the character with id=42 - * GET api/customers?name=^j // 'j' is a regex; returns customers whose name starts with 'j' or 'J' - * GET api/customers.json/42 // ignores the ".json" - * - * Also accepts direct commands to the service in which the last segment of the apiBase is the word "commands" - * Examples: - * POST commands/resetDb, - * GET/POST commands/config - get or (re)set the config - * - * HTTP overrides: - * If the injected inMemDbService defines an HTTP method (lowercase) - * The request is forwarded to that method as in - * `inMemDbService.get(requestInfo)` - * which must return either an Observable of the response type - * for this http library or null|undefined (which means "keep processing"). - */ - BackendService.prototype.handleRequest = function (req) { - var _this = this; - // handle the request when there is an in-memory database - return concatMap.concatMap.call(this.dbReady, function () { return _this.handleRequest_(req); }); - }; - BackendService.prototype.handleRequest_ = function (req) { - var _this = this; - var url = req.urlWithParams ? req.urlWithParams : req.url; - // Try override parser - // If no override parser or it returns nothing, use default parser - var parser = this.bind('parseRequestUrl'); - var parsed = (parser && parser(url, this.requestInfoUtils)) || - this.parseRequestUrl(url); - var collectionName = parsed.collectionName; - var collection = this.db[collectionName]; - var reqInfo = { - req: req, - apiBase: parsed.apiBase, - collection: collection, - collectionName: collectionName, - headers: this.createHeaders({ 'Content-Type': 'application/json' }), - id: this.parseId(collection, collectionName, parsed.id), - method: this.getRequestMethod(req), - query: parsed.query, - resourceUrl: parsed.resourceUrl, - url: url, - utils: this.requestInfoUtils - }; - var resOptions; - if (/commands\/?$/i.test(reqInfo.apiBase)) { - return this.commands(reqInfo); - } - var methodInterceptor = this.bind(reqInfo.method); - if (methodInterceptor) { - // InMemoryDbService intercepts this HTTP method. - // if interceptor produced a response, return it. - // else InMemoryDbService chose not to intercept; continue processing. - var interceptorResponse = methodInterceptor(reqInfo); - if (interceptorResponse) { - return interceptorResponse; - } - - } - if (this.db[collectionName]) { - // request is for a known collection of the InMemoryDbService - return this.createResponse$(function () { return _this.collectionHandler(reqInfo); }); - } - if (this.config.passThruUnknownUrl) { - // unknown collection; pass request thru to a "real" backend. - return this.getPassThruBackend().handle(req); - } - // 404 - can't handle this request - resOptions = this.createErrorResponseOptions(url, STATUS.NOT_FOUND, "Collection '" + collectionName + "' not found"); - return this.createResponse$(function () { return resOptions; }); - }; - /** - * Add configured delay to response observable unless delay === 0 - */ - BackendService.prototype.addDelay = function (response) { - var d = this.config.delay; - return d === 0 ? response : delayResponse(response, d || 500); - }; - /** - * Apply query/search parameters as a filter over the collection - * This impl only supports RegExp queries on string properties of the collection - * ANDs the conditions together - */ - BackendService.prototype.applyQuery = function (collection, query) { - // extract filtering conditions - {propertyName, RegExps) - from query/search parameters - var conditions = []; - var caseSensitive = this.config.caseSensitiveSearch ? undefined : 'i'; - query.forEach(function (value, name) { - value.forEach(function (v) { return conditions.push({ name: name, rx: new RegExp(decodeURI(v), caseSensitive) }); }); - }); - var len = conditions.length; - if (!len) { - return collection; - } - // AND the RegExp conditions - return collection.filter(function (row) { - var ok = true; - var i = len; - while (ok && i) { - i -= 1; - var cond = conditions[i]; - ok = cond.rx.test(row[cond.name]); - } - return ok; - }); - }; - /** - * Get a method from the `InMemoryDbService` (if it exists), bound to that service - */ - BackendService.prototype.bind = function (methodName) { - var fn = this.inMemDbService[methodName]; - return fn ? fn.bind(this.inMemDbService) : undefined; - }; - BackendService.prototype.bodify = function (data) { - return this.config.dataEncapsulation ? { data: data } : data; - }; - BackendService.prototype.clone = function (data) { - return JSON.parse(JSON.stringify(data)); - }; - BackendService.prototype.collectionHandler = function (reqInfo) { - // const req = reqInfo.req; - var resOptions; - switch (reqInfo.method) { - case 'get': - resOptions = this.get(reqInfo); - break; - case 'post': - resOptions = this.post(reqInfo); - break; - case 'put': - resOptions = this.put(reqInfo); - break; - case 'delete': - resOptions = this.delete(reqInfo); - break; - default: - resOptions = this.createErrorResponseOptions(reqInfo.url, STATUS.METHOD_NOT_ALLOWED, 'Method not allowed'); - break; - } - // If `inMemDbService.responseInterceptor` exists, let it morph the response options - var interceptor = this.bind('responseInterceptor'); - return interceptor ? interceptor(resOptions, reqInfo) : resOptions; - }; - /** - * Commands reconfigure the in-memory web api service or extract information from it. - * Commands ignore the latency delay and respond ASAP. - * - * When the last segment of the `apiBase` path is "commands", - * the `collectionName` is the command. - * - * Example URLs: - * commands/resetdb (POST) // Reset the "database" to its original state - * commands/config (GET) // Return this service's config object - * commands/config (POST) // Update the config (e.g. the delay) - * - * Usage: - * http.post('commands/resetdb', undefined); - * http.get('commands/config'); - * http.post('commands/config', '{"delay":1000}'); - */ - BackendService.prototype.commands = function (reqInfo) { - var _this = this; - var command = reqInfo.collectionName.toLowerCase(); - var method = reqInfo.method; - var resOptions = { - url: reqInfo.url - }; - switch (command) { - case 'resetdb': - resOptions.status = STATUS.NO_CONTENT; - return concatMap.concatMap.call(this.resetDb(reqInfo), function () { return _this.createResponse$(function () { return resOptions; }, false /* no latency delay */); }); - case 'config': - if (method === 'get') { - resOptions.status = STATUS.OK; - resOptions.body = this.clone(this.config); - // any other HTTP method is assumed to be a config update - } - else { - var body = this.getJsonBody(reqInfo.req); - Object.assign(this.config, body); - this.passThruBackend = undefined; // re-create when needed - resOptions.status = STATUS.NO_CONTENT; - } - break; - default: - resOptions = this.createErrorResponseOptions(reqInfo.url, STATUS.INTERNAL_SERVER_ERROR, "Unknown command \"" + command + "\""); - } - return this.createResponse$(function () { return resOptions; }, false /* no latency delay */); - }; - BackendService.prototype.createErrorResponseOptions = function (url, status, message) { - return { - body: { error: "" + message }, - url: url, - headers: this.createHeaders({ 'Content-Type': 'application/json' }), - status: status - }; - }; - /** - * Create a cold response Observable from a factory for ResponseOptions - * @param resOptionsFactory - creates ResponseOptions when observable is subscribed - * @param withDelay - if true (default), add simulated latency delay from configuration - */ - BackendService.prototype.createResponse$ = function (resOptionsFactory, withDelay) { - if (withDelay === void 0) { withDelay = true; } - var resOptions$ = this.createResponseOptions$(resOptionsFactory); - var resp$ = this.createResponse$fromResponseOptions$(resOptions$); - return withDelay ? this.addDelay(resp$) : resp$; - }; - /** - * Create a cold Observable of ResponseOptions. - * @param resOptionsFactory - creates ResponseOptions when observable is subscribed - */ - BackendService.prototype.createResponseOptions$ = function (resOptionsFactory) { - var _this = this; - return new Observable.Observable(function (responseObserver) { - var resOptions; - try { - resOptions = resOptionsFactory(); - } - catch (error) { - var err = error.message || error; - resOptions = _this.createErrorResponseOptions('', STATUS.INTERNAL_SERVER_ERROR, "" + err); - } - var status = resOptions.status; - try { - resOptions.statusText = getStatusText(status); - } - catch (e) { } - if (isSuccess(status)) { - responseObserver.next(resOptions); - responseObserver.complete(); - } - else { - responseObserver.error(resOptions); - } - return function () { }; // unsubscribe function - }); - }; - BackendService.prototype.delete = function (_a) { - var collection = _a.collection, collectionName = _a.collectionName, headers = _a.headers, id = _a.id, url = _a.url; - // tslint:disable-next-line:triple-equals - if (id == undefined) { - return this.createErrorResponseOptions(url, STATUS.NOT_FOUND, "Missing \"" + collectionName + "\" id"); - } - var exists = this.removeById(collection, id); - return { - headers: headers, - status: (exists || !this.config.delete404) ? STATUS.NO_CONTENT : STATUS.NOT_FOUND - }; - }; - /** - * Find first instance of item in collection by `item.id` - * @param collection - * @param id - */ - BackendService.prototype.findById = function (collection, id) { - return collection.find(function (item) { return item.id === id; }); - }; - /** - * Generate the next available id for item in this collection - * Use method from `inMemDbService` if it exists and returns a value, - * else delegates to `genIdDefault`. - * @param collection - collection of items with `id` key property - */ - BackendService.prototype.genId = function (collection, collectionName) { - var genId = this.bind('genId'); - if (genId) { - var id = genId(collection, collectionName); - // tslint:disable-next-line:triple-equals - if (id != undefined) { - return id; - } - } - return this.genIdDefault(collection, collectionName); - }; - /** - * Default generator of the next available id for item in this collection - * This default implementation works only for numeric ids. - * @param collection - collection of items with `id` key property - * @param collectionName - name of the collection - */ - BackendService.prototype.genIdDefault = function (collection, collectionName) { - if (!this.isCollectionIdNumeric(collection, collectionName)) { - throw new Error("Collection '" + collectionName + "' id type is non-numeric or unknown. Can only generate numeric ids."); - } - var maxId = 0; - collection.reduce(function (prev, item) { - maxId = Math.max(maxId, typeof item.id === 'number' ? item.id : maxId); - }, undefined); - return maxId + 1; - }; - BackendService.prototype.get = function (_a) { - var collection = _a.collection, collectionName = _a.collectionName, headers = _a.headers, id = _a.id, query = _a.query, url = _a.url; - var data = collection; - // tslint:disable-next-line:triple-equals - if (id != undefined && id !== '') { - data = this.findById(collection, id); - } - else if (query) { - data = this.applyQuery(collection, query); - } - if (!data) { - return this.createErrorResponseOptions(url, STATUS.NOT_FOUND, "'" + collectionName + "' with id='" + id + "' not found"); - } - return { - body: this.bodify(this.clone(data)), - headers: headers, - status: STATUS.OK - }; - }; - /** - * Get location info from a url, even on server where `document` is not defined - */ - BackendService.prototype.getLocation = function (url) { - if (!url.startsWith('http')) { - // get the document iff running in browser - var doc = (typeof document === 'undefined') ? undefined : document; - // add host info to url before parsing. Use a fake host when not in browser. - var base = doc ? doc.location.protocol + '//' + doc.location.host : 'http://fake'; - url = url.startsWith('/') ? base + url : base + '/' + url; - } - return parseUri(url); - }; - - /** - * get or create the function that passes unhandled requests - * through to the "real" backend. - */ - BackendService.prototype.getPassThruBackend = function () { - return this.passThruBackend ? - this.passThruBackend : - this.passThruBackend = this.createPassThruBackend(); - }; - /** - * Get utility methods from this service instance. - * Useful within an HTTP method override - */ - BackendService.prototype.getRequestInfoUtils = function () { - var _this = this; - return { - createResponse$: this.createResponse$.bind(this), - findById: this.findById.bind(this), - isCollectionIdNumeric: this.isCollectionIdNumeric.bind(this), - getConfig: function () { return _this.config; }, - getDb: function () { return _this.db; }, - getJsonBody: this.getJsonBody.bind(this), - getLocation: this.getLocation.bind(this), - getPassThruBackend: this.getPassThruBackend.bind(this), - parseRequestUrl: this.parseRequestUrl.bind(this), - }; - }; - BackendService.prototype.indexOf = function (collection, id) { - return collection.findIndex(function (item) { return item.id === id; }); - }; - /** Parse the id as a number. Return original value if not a number. */ - BackendService.prototype.parseId = function (collection, collectionName, id) { - if (!this.isCollectionIdNumeric(collection, collectionName)) { - // Can't confirm that `id` is a numeric type; don't parse as a number - // or else `'42'` -> `42` and _get by id_ fails. - return id; - } - var idNum = parseFloat(id); - return isNaN(idNum) ? id : idNum; - }; - /** - * return true if can determine that the collection's `item.id` is a number - * This implementation can't tell if the collection is empty so it assumes NO - * */ - BackendService.prototype.isCollectionIdNumeric = function (collection, collectionName) { - // collectionName not used now but override might maintain collection type information - // so that it could know the type of the `id` even when the collection is empty. - return !!(collection && collection[0]) && typeof collection[0].id === 'number'; - }; - /** - * Parses the request URL into a `ParsedRequestUrl` object. - * Parsing depends upon certain values of `config`: `apiBase`, `host`, and `urlRoot`. - * - * Configuring the `apiBase` yields the most interesting changes to `parseRequestUrl` behavior: - * When apiBase=undefined and url='http://localhost/api/collection/42' - * {base: 'api/', collectionName: 'collection', id: '42', ...} - * When apiBase='some/api/root/' and url='http://localhost/some/api/root/collection' - * {base: 'some/api/root/', collectionName: 'collection', id: undefined, ...} - * When apiBase='/' and url='http://localhost/collection' - * {base: '/', collectionName: 'collection', id: undefined, ...} - * - * The actual api base segment values are ignored. Only the number of segments matters. - * The following api base strings are considered identical: 'a/b' ~ 'some/api/' ~ `two/segments' - * - * To replace this default method, assign your alternative to your InMemDbService['parseRequestUrl'] - */ - BackendService.prototype.parseRequestUrl = function (url) { - try { - var loc = this.getLocation(url); - var drop = this.config.rootPath.length; - var urlRoot = ''; - if (loc.host !== this.config.host) { - // url for a server on a different host! - // assume it's collection is actually here too. - drop = 1; // the leading slash - urlRoot = loc.protocol + '//' + loc.host + '/'; - } - var path = loc.path.substring(drop); - var pathSegments = path.split('/'); - var segmentIx = 0; - // apiBase: the front part of the path devoted to getting to the api route - // Assumes first path segment if no config.apiBase - // else ignores as many path segments as are in config.apiBase - // Does NOT care what the api base chars actually are. - var apiBase = void 0; - // tslint:disable-next-line:triple-equals - if (this.config.apiBase == undefined) { - apiBase = pathSegments[segmentIx++]; - } - else { - apiBase = removeTrailingSlash(this.config.apiBase.trim()); - if (apiBase) { - segmentIx = apiBase.split('/').length; - } - else { - segmentIx = 0; // no api base at all; unwise but allowed. - } - } - apiBase += '/'; - var collectionName = pathSegments[segmentIx++]; - // ignore anything after a '.' (e.g.,the "json" in "customers.json") - collectionName = collectionName && collectionName.split('.')[0]; - var id = pathSegments[segmentIx++]; - var query = this.createQueryMap(loc.query); - var resourceUrl = urlRoot + apiBase + collectionName + '/'; - return { apiBase: apiBase, collectionName: collectionName, id: id, query: query, resourceUrl: resourceUrl }; - } - catch (err) { - var msg = "unable to parse url '" + url + "'; original error: " + err.message; - throw new Error(msg); - } - }; - // Create entity - // Can update an existing entity too if post409 is false. - BackendService.prototype.post = function (_a) { - var collection = _a.collection, collectionName = _a.collectionName, headers = _a.headers, id = _a.id, req = _a.req, resourceUrl = _a.resourceUrl, url = _a.url; - var item = this.clone(this.getJsonBody(req)); - // tslint:disable-next-line:triple-equals - if (item.id == undefined) { - try { - item.id = id || this.genId(collection, collectionName); - } - catch (err) { - var emsg = err.message || ''; - if (/id type is non-numeric/.test(emsg)) { - return this.createErrorResponseOptions(url, STATUS.UNPROCESSABLE_ENTRY, emsg); - } - else { - console.error(err); - return this.createErrorResponseOptions(url, STATUS.INTERNAL_SERVER_ERROR, "Failed to generate new id for '" + collectionName + "'"); - } - } - } - if (id && id !== item.id) { - return this.createErrorResponseOptions(url, STATUS.BAD_REQUEST, "Request id does not match item.id"); - } - else { - id = item.id; - } - var existingIx = this.indexOf(collection, id); - var body = this.bodify(item); - if (existingIx === -1) { - collection.push(item); - headers.set('Location', resourceUrl + '/' + id); - return { headers: headers, body: body, status: STATUS.CREATED }; - } - else if (this.config.post409) { - return this.createErrorResponseOptions(url, STATUS.CONFLICT, "'" + collectionName + "' item with id='" + id + " exists and may not be updated with POST; use PUT instead."); - } - else { - collection[existingIx] = item; - return this.config.post204 ? - { headers: headers, status: STATUS.NO_CONTENT } : - { headers: headers, body: body, status: STATUS.OK }; // successful; return entity - } - }; - // Update existing entity - // Can create an entity too if put404 is false. - BackendService.prototype.put = function (_a) { - var collection = _a.collection, collectionName = _a.collectionName, headers = _a.headers, id = _a.id, req = _a.req, url = _a.url; - var item = this.clone(this.getJsonBody(req)); - // tslint:disable-next-line:triple-equals - if (item.id == undefined) { - return this.createErrorResponseOptions(url, STATUS.NOT_FOUND, "Missing '" + collectionName + "' id"); - } - if (id && id !== item.id) { - return this.createErrorResponseOptions(url, STATUS.BAD_REQUEST, "Request for '" + collectionName + "' id does not match item.id"); - } - else { - id = item.id; - } - var existingIx = this.indexOf(collection, id); - var body = this.bodify(item); - if (existingIx > -1) { - collection[existingIx] = item; - return this.config.put204 ? - { headers: headers, status: STATUS.NO_CONTENT } : - { headers: headers, body: body, status: STATUS.OK }; // successful; return entity - } - else if (this.config.put404) { - // item to update not found; use POST to create new item for this id. - return this.createErrorResponseOptions(url, STATUS.NOT_FOUND, "'" + collectionName + "' item with id='" + id + " not found and may not be created with PUT; use POST instead."); - } - else { - // create new item for id not found - collection.push(item); - return { headers: headers, body: body, status: STATUS.CREATED }; - } - }; - BackendService.prototype.removeById = function (collection, id) { - var ix = this.indexOf(collection, id); - if (ix > -1) { - collection.splice(ix, 1); - return true; - } - return false; - }; - /** - * Tell your in-mem "database" to reset. - * returns Observable of the database because resetting it could be async - */ - BackendService.prototype.resetDb = function (reqInfo) { - var _this = this; - this.dbReadySubject.next(false); - var db = this.inMemDbService.createDb(reqInfo); - var db$ = db instanceof Observable.Observable ? db : - isPromise.isPromise(db) ? fromPromise.fromPromise(db) : - of.of(db); - first.first.call(db$).subscribe(function (d) { - _this.db = d; - _this.dbReadySubject.next(true); - }); - return this.dbReady; - }; - return BackendService; -}()); - -var __extends = (undefined && undefined.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -/** - * For Angular `Http` simulate the behavior of a RESTy web api - * backed by the simple in-memory data store provided by the injected `InMemoryDbService`. - * Conforms mostly to behavior described here: - * http://www.restapitutorial.com/lessons/httpmethods.html - * - * ### Usage - * - * Create an in-memory data store class that implements `InMemoryDbService`. - * Call `forRoot` static method with this service class and optional configuration object: - * ``` - * // other imports - * import { HttpModule } from '@angular/http'; - * import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api'; - * - * import { InMemHeroService, inMemConfig } from '../api/in-memory-hero.service'; - * @NgModule({ - * imports: [ - * HttpModule, - * HttpClientInMemoryWebApiModule.forRoot(InMemHeroService, inMemConfig), - * ... - * ], - * ... - * }) - * export class AppModule { ... } - * ``` - */ -var HttpBackendService = (function (_super) { - __extends(HttpBackendService, _super); - function HttpBackendService(injector, inMemDbService, config) { - var _this = _super.call(this, inMemDbService, config) || this; - _this.injector = injector; - return _this; - } - HttpBackendService.prototype.createConnection = function (req) { - var response; - try { - response = this.handleRequest(req); - } - catch (error) { - var err = error.message || error; - var resOptions_1 = this.createErrorResponseOptions(req.url, STATUS.INTERNAL_SERVER_ERROR, "" + err); - response = this.createResponse$(function () { return resOptions_1; }); - } - return { - readyState: http.ReadyState.Done, - request: req, - response: response - }; - }; - //// protected overrides ///// - HttpBackendService.prototype.getJsonBody = function (req) { - try { - return req.json(); - } - catch (e) { - var msg = "'" + req.url + "' request body-to-json error\n" + JSON.stringify(e); - throw new Error(msg); - } - }; - HttpBackendService.prototype.getRequestMethod = function (req) { - return http.RequestMethod[req.method || 0].toLowerCase(); - }; - HttpBackendService.prototype.createHeaders = function (headers) { - return new http.Headers(headers); - }; - HttpBackendService.prototype.createQueryMap = function (search) { - return search ? new http.URLSearchParams(search).paramsMap : new Map(); - }; - HttpBackendService.prototype.createResponse$fromResponseOptions$ = function (resOptions$) { - return map.map.call(resOptions$, function (opts) { - return new http.Response(new http.ResponseOptions(opts)); - }); - }; - HttpBackendService.prototype.createPassThruBackend = function () { - try { - // copied from @angular/http/backends/xhr_backend - var browserXhr = this.injector.get(http.BrowserXhr); - var baseResponseOptions = this.injector.get(http.ResponseOptions); - var xsrfStrategy = this.injector.get(http.XSRFStrategy); - var xhrBackend_1 = new http.XHRBackend(browserXhr, baseResponseOptions, xsrfStrategy); - return { - handle: function (req) { return xhrBackend_1.createConnection(req).response; } - }; - } - catch (e) { - e.message = 'Cannot create passThru404 backend; ' + (e.message || ''); - throw e; - } - }; - return HttpBackendService; -}(BackendService)); -HttpBackendService.decorators = [ - { type: core.Injectable }, -]; -/** @nocollapse */ -HttpBackendService.ctorParameters = function () { return [ - { type: core.Injector, }, - { type: InMemoryDbService, }, - { type: InMemoryBackendConfigArgs, decorators: [{ type: core.Inject, args: [InMemoryBackendConfig,] }, { type: core.Optional },] }, -]; }; - -var __extends$1 = (undefined && undefined.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -/** - * For Angular `HttpClient` simulate the behavior of a RESTy web api - * backed by the simple in-memory data store provided by the injected `InMemoryDbService`. - * Conforms mostly to behavior described here: - * http://www.restapitutorial.com/lessons/httpmethods.html - * - * ### Usage - * - * Create an in-memory data store class that implements `InMemoryDbService`. - * Call `config` static method with this service class and optional configuration object: - * ``` - * // other imports - * import { HttpClientModule } from '@angular/common/http'; - * import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api'; - * - * import { InMemHeroService, inMemConfig } from '../api/in-memory-hero.service'; - * @NgModule({ - * imports: [ - * HttpModule, - * HttpClientInMemoryWebApiModule.forRoot(InMemHeroService, inMemConfig), - * ... - * ], - * ... - * }) - * export class AppModule { ... } - * ``` - */ -var HttpClientBackendService = (function (_super) { - __extends$1(HttpClientBackendService, _super); - function HttpClientBackendService(inMemDbService, config, xhrFactory) { - var _this = _super.call(this, inMemDbService, config) || this; - _this.xhrFactory = xhrFactory; - return _this; - } - HttpClientBackendService.prototype.handle = function (req) { - try { - return this.handleRequest(req); - } - catch (error) { - var err = error.message || error; - var resOptions_1 = this.createErrorResponseOptions(req.url, STATUS.INTERNAL_SERVER_ERROR, "" + err); - return this.createResponse$(function () { return resOptions_1; }); - } - }; - //// protected overrides ///// - HttpClientBackendService.prototype.getJsonBody = function (req) { - return req.body; - }; - HttpClientBackendService.prototype.getRequestMethod = function (req) { - return (req.method || 'get').toLowerCase(); - }; - HttpClientBackendService.prototype.createHeaders = function (headers) { - return new http$1.HttpHeaders(headers); - }; - HttpClientBackendService.prototype.createQueryMap = function (search) { - var map$$1 = new Map(); - if (search) { - var params_1 = new http$1.HttpParams({ fromString: search }); - params_1.keys().forEach(function (p) { return map$$1.set(p, params_1.getAll(p)); }); - } - return map$$1; - }; - HttpClientBackendService.prototype.createResponse$fromResponseOptions$ = function (resOptions$) { - return map.map.call(resOptions$, function (opts) { return new http$1.HttpResponse(opts); }); - }; - HttpClientBackendService.prototype.createPassThruBackend = function () { - try { - return new http$1.HttpXhrBackend(this.xhrFactory); - } - catch (ex) { - ex.message = 'Cannot create passThru404 backend; ' + (ex.message || ''); - throw ex; - } - }; - return HttpClientBackendService; -}(BackendService)); -HttpClientBackendService.decorators = [ - { type: core.Injectable }, -]; -/** @nocollapse */ -HttpClientBackendService.ctorParameters = function () { return [ - { type: InMemoryDbService, }, - { type: InMemoryBackendConfigArgs, decorators: [{ type: core.Inject, args: [InMemoryBackendConfig,] }, { type: core.Optional },] }, - { type: http$1.XhrFactory, }, -]; }; - -////// Http-Only version //// -// Internal - Creates the in-mem backend for the Http module -// AoT requires factory to be exported -function httpInMemBackendServiceFactory(injector, dbService, options) { - var backend = new HttpBackendService(injector, dbService, options); - return backend; -} -var HttpInMemoryWebApiModule = (function () { - function HttpInMemoryWebApiModule() { - } - /** - * Redirect the Angular `Http` XHR calls - * to in-memory data store that implements `InMemoryDbService`. - * with class that implements InMemoryDbService and creates an in-memory database. - * - * Usually imported in the root application module. - * Can import in a lazy feature module too, which will shadow modules loaded earlier - * - * @param {Type} dbCreator - Class that creates seed data for in-memory database. Must implement InMemoryDbService. - * @param {InMemoryBackendConfigArgs} [options] - * - * @example - * HttpInMemoryWebApiModule.forRoot(dbCreator); - * HttpInMemoryWebApiModule.forRoot(dbCreator, {useValue: {delay:600}}); - */ - HttpInMemoryWebApiModule.forRoot = function (dbCreator, options) { - return { - ngModule: HttpInMemoryWebApiModule, - providers: [ - { provide: InMemoryDbService, useClass: dbCreator }, - { provide: InMemoryBackendConfig, useValue: options }, - { provide: http.XHRBackend, - useFactory: httpInMemBackendServiceFactory, - deps: [core.Injector, InMemoryDbService, InMemoryBackendConfig] } - ] - }; - }; - /** - * - * Enable and configure the in-memory web api in a lazy-loaded feature module. - * Same as `forRoot`. - * This is a feel-good method so you can follow the Angular style guide for lazy-loaded modules. - */ - HttpInMemoryWebApiModule.forFeature = function (dbCreator, options) { - return HttpInMemoryWebApiModule.forRoot(dbCreator, options); - }; - return HttpInMemoryWebApiModule; -}()); -HttpInMemoryWebApiModule.decorators = [ - { type: core.NgModule, args: [{},] }, -]; -/** @nocollapse */ -HttpInMemoryWebApiModule.ctorParameters = function () { return []; }; - -////// HttpClient-Only version //// -// Internal - Creates the in-mem backend for the HttpClient module -// AoT requires factory to be exported -function httpClientInMemBackendServiceFactory(dbService, options, xhrFactory) { - var backend = new HttpClientBackendService(dbService, options, xhrFactory); - return backend; -} -var HttpClientInMemoryWebApiModule = (function () { - function HttpClientInMemoryWebApiModule() { - } - /** - * Redirect the Angular `HttpClient` XHR calls - * to in-memory data store that implements `InMemoryDbService`. - * with class that implements InMemoryDbService and creates an in-memory database. - * - * Usually imported in the root application module. - * Can import in a lazy feature module too, which will shadow modules loaded earlier - * - * @param {Type} dbCreator - Class that creates seed data for in-memory database. Must implement InMemoryDbService. - * @param {InMemoryBackendConfigArgs} [options] - * - * @example - * HttpInMemoryWebApiModule.forRoot(dbCreator); - * HttpInMemoryWebApiModule.forRoot(dbCreator, {useValue: {delay:600}}); - */ - HttpClientInMemoryWebApiModule.forRoot = function (dbCreator, options) { - return { - ngModule: HttpClientInMemoryWebApiModule, - providers: [ - { provide: InMemoryDbService, useClass: dbCreator }, - { provide: InMemoryBackendConfig, useValue: options }, - { provide: http$1.HttpBackend, - useFactory: httpClientInMemBackendServiceFactory, - deps: [InMemoryDbService, InMemoryBackendConfig, http$1.XhrFactory] } - ] - }; - }; - /** - * - * Enable and configure the in-memory web api in a lazy-loaded feature module. - * Same as `forRoot`. - * This is a feel-good method so you can follow the Angular style guide for lazy-loaded modules. - */ - HttpClientInMemoryWebApiModule.forFeature = function (dbCreator, options) { - return HttpClientInMemoryWebApiModule.forRoot(dbCreator, options); - }; - return HttpClientInMemoryWebApiModule; -}()); -HttpClientInMemoryWebApiModule.decorators = [ - { type: core.NgModule, args: [{},] }, -]; -/** @nocollapse */ -HttpClientInMemoryWebApiModule.ctorParameters = function () { return []; }; - -////// For apps with both Http and HttpClient //// -var InMemoryWebApiModule = (function () { - function InMemoryWebApiModule() { - } - /** - * Redirect BOTH Angular `Http` and `HttpClient` XHR calls - * to in-memory data store that implements `InMemoryDbService`. - * with class that implements InMemoryDbService and creates an in-memory database. - * - * Usually imported in the root application module. - * Can import in a lazy feature module too, which will shadow modules loaded earlier - * - * @param {Type} dbCreator - Class that creates seed data for in-memory database. Must implement InMemoryDbService. - * @param {InMemoryBackendConfigArgs} [options] - * - * @example - * InMemoryWebApiModule.forRoot(dbCreator); - * InMemoryWebApiModule.forRoot(dbCreator, {useValue: {delay:600}}); - */ - InMemoryWebApiModule.forRoot = function (dbCreator, options) { - return { - ngModule: InMemoryWebApiModule, - providers: [ - { provide: InMemoryDbService, useClass: dbCreator }, - { provide: InMemoryBackendConfig, useValue: options }, - { provide: http.XHRBackend, - useFactory: httpInMemBackendServiceFactory, - deps: [core.Injector, InMemoryDbService, InMemoryBackendConfig] }, - { provide: http$1.HttpBackend, - useFactory: httpClientInMemBackendServiceFactory, - deps: [InMemoryDbService, InMemoryBackendConfig, http$1.XhrFactory] } - ] - }; - }; - /** - * - * Enable and configure the in-memory web api in a lazy-loaded feature module. - * Same as `forRoot`. - * This is a feel-good method so you can follow the Angular style guide for lazy-loaded modules. - */ - InMemoryWebApiModule.forFeature = function (dbCreator, options) { - return InMemoryWebApiModule.forRoot(dbCreator, options); - }; - return InMemoryWebApiModule; -}()); -InMemoryWebApiModule.decorators = [ - { type: core.NgModule, args: [{},] }, -]; -/** @nocollapse */ -InMemoryWebApiModule.ctorParameters = function () { return []; }; - -exports.BackendService = BackendService; -exports.STATUS = STATUS; -exports.STATUS_CODE_INFO = STATUS_CODE_INFO; -exports.getStatusText = getStatusText; -exports.isSuccess = isSuccess; -exports.HttpBackendService = HttpBackendService; -exports.HttpClientBackendService = HttpClientBackendService; -exports.InMemoryWebApiModule = InMemoryWebApiModule; -exports.httpInMemBackendServiceFactory = httpInMemBackendServiceFactory; -exports.HttpInMemoryWebApiModule = HttpInMemoryWebApiModule; -exports.httpClientInMemBackendServiceFactory = httpClientInMemBackendServiceFactory; -exports.HttpClientInMemoryWebApiModule = HttpClientInMemoryWebApiModule; -exports.InMemoryDbService = InMemoryDbService; -exports.InMemoryBackendConfigArgs = InMemoryBackendConfigArgs; -exports.InMemoryBackendConfig = InMemoryBackendConfig; -exports.parseUri = parseUri; -exports.removeTrailingSlash = removeTrailingSlash; - -Object.defineProperty(exports, '__esModule', { value: true }); - -}))); - -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW4tbWVtb3J5LXdlYi1hcGkudW1kLmpzIiwic291cmNlcyI6WyIuLi9zcmMvaW4tbWVtL2h0dHAtc3RhdHVzLWNvZGVzLmpzIiwiLi4vc3JjL2luLW1lbS9kZWxheS1yZXNwb25zZS5qcyIsIi4uL3NyYy9pbi1tZW0vaW50ZXJmYWNlcy5qcyIsIi4uL3NyYy9pbi1tZW0vYmFja2VuZC5zZXJ2aWNlLmpzIiwiLi4vc3JjL2luLW1lbS9odHRwLWJhY2tlbmQuc2VydmljZS5qcyIsIi4uL3NyYy9pbi1tZW0vaHR0cC1jbGllbnQtYmFja2VuZC5zZXJ2aWNlLmpzIiwiLi4vc3JjL2luLW1lbS9odHRwLWluLW1lbW9yeS13ZWItYXBpLm1vZHVsZS5qcyIsIi4uL3NyYy9pbi1tZW0vaHR0cC1jbGllbnQtaW4tbWVtb3J5LXdlYi1hcGkubW9kdWxlLmpzIiwiLi4vc3JjL2luLW1lbS9pbi1tZW1vcnktd2ViLWFwaS5tb2R1bGUuanMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHZhciBTVEFUVVMgPSB7XG4gICAgQ09O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nN0ZXZlbmxldml0aGFuLmNvbS9hcmNoaXZlcy9wYXJzZXVyaVxuICAgIC8vIHRzbGludDpkaXNhYmxlLW5leHQtbGluZTptYXgtbGluZS1sZW5ndGhcbiAgICB2YXIgVVJMX1JFR0VYID0gL14oPzooPyFbXjpAXSs6W146QFxcL10qQCkoW146XFwvPyMuXSspOik/KD86XFwvXFwvKT8oKD86KChbXjpAXSopKD86OihbXjpAXSopKT8pP0ApPyhbXjpcXC8/I10qKSg/OjooXFxkKikpPykoKChcXC8oPzpbXj8jXSg/IVtePyNcXC9dKlxcLltePyNcXC8uXSsoPzpbPyNdfCQpKSkqXFwvPyk/KFtePyNcXC9dKikpKD86XFw/KFteI10qKSk/KD86IyguKikpPykvO1xuICAgIHZhciBtID0gVVJMX1JFR0VYLmV4ZWMoc3RyKTtcbiAgICB2YXIgdXJpID0ge1xuICAgICAgICBzb3VyY2U6ICcnLFxuICAgICAgICBwcm90b2NvbDogJycsXG4gICAgICAgIGF1dGhvcml0eTogJycsXG4gICAgICAgIHVzZXJJbmZvOiAnJyxcbiAgICAgICAgdXNlcjogJycsXG4gICAgICAgIHBhc3N3b3JkOiAnJyxcbiAgICAgICAgaG9zdDogJycsXG4gICAgICAgIHBvcnQ6ICcnLFxuICAgICAgICByZWxhdGl2ZTogJycsXG4gICAgICAgIHBhdGg6ICcnLFxuICAgICAgICBkaXJlY3Rvcnk6ICcnLFxuICAgICAgICBmaWxlOiAnJyxcbiAgICAgICAgcXVlcnk6ICcnLFxuICAgICAgICBhbmNob3I6ICcnXG4gICAgfTtcbiAgICB2YXIga2V5cyA9IE9iamVjdC5rZXlzKHVyaSk7XG4gICAgdmFyIGkgPSBrZXlzLmxlbmd0aDtcbiAgICB3aGlsZSAoaS0tKSB7XG4gICAgICAgIHVyaVtrZXlzW2ldXSA9IG1baV0gfHwgJyc7XG4gICAgfVxuICAgIHJldHVybiB1cmk7XG59XG5leHBvcnQgZnVuY3Rpb24gcmVtb3ZlVHJhaWxpbmdTbGF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WZpbmVkIDogJ2knO1xuICAgICAgICBxdWVyeS5mb3JFYWNoKGZ1bmN0aW9uICh2YWx1ZSwgbmFtZSkge1xuICAgICAgICAgICAgdmFsdWUuZm9yRWFjaChmdW5jdGlvbiAodikgeyByZXR1cm4gY29uZGl0aW9ucy5wdXNoKHsgbmFtZTogbmFtZSwgcng6IG5ldyBSZWdFeHAoZGVjb2RlVVJJKHYpLCBjYXNlU2Vuc2l0aXZlKSB9KTsgfSk7XG4gICAgICAgIH0pO1xuICAgICAgICB2YXIgbGVuID0gY29uZGl0aW9ucy5sZW5ndGg7XG4gICAgICAgIGlmICghbGVuKSB7XG4gICAgICAgICAgICByZXR1cm4gY29sbGVjdGlvbjtcbiAgICAgICAgfVxuICAgICAgICAvLyBBTkQgdGhlIFJlZ0V4cCBjb25kaXRpb25zXG4gICAgICAgIHJldHVybiBjb2xsZWN0aW9uLmZpbHRlcihmdW5jdGlvbiAocm93KSB7XG4gICAgICAgICAgICB2YXIgb2sgPSB0cnVlO1xuICAgICAgICAgICAgdmFyIGkgPSBsZW47XG4gICAgICAgICAgICB3aGlsZSAob2sgJiYgaSkge1xuICAgICAgICAgICAgICAgIGkgLT0gMTtcbiAgICAgICAgICAgICAgICB2YXIgY29uZCA9IGNvbmRpdGlvbnNbaV07XG4gICAgICAgICAgICAgICAgb2sgPSBjb25kLnJ4LnRlc3Qocm93W2NvbmQubmFtZV0pO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmV0dXJuIG9rO1xuICAgICAgICB9KTtcbiAgICB9O1xuICAgIC8qKlxuICAgICAqIEdldCBhIG1ldGhvZCBmcm9tIHRoZSBgSW5NZW1vcnlEYlNlcnZpY2VgIChpZiBpdCBleGlzdHMpLCBib3VuZCB0byB0aGF0IHNlcnZpY2VcbiAgICAgKi9cbiAgICBCYWNrZW5kU2VydmljZS5wcm90b3R5cGUuYmluZCA9IGZ1bmN0aW9uIChtZXRob2ROYW1lKSB7XG4gICAgICAgIHZhciBmbiA9IHRoaXMuaW5NZW1EYlNlcnZpY2VbbWV0aG9kTmFtZV07XG4gICAgICAgIHJldHVybiBmbiA/IGZuLmJpbmQodGhpcy5pbk1lbURiU2VydmljZSkgOiB1bmRlZmluZWQ7XG4gICAgfTtcbiAgICBCYWNrZW5kU2VydmljZS5wcm90b3R5cGUuYm9kaWZ5ID0gZnVuY3Rpb24gKGRhdGEpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuY29uZmlnLmRhdGFFbmNhcHN1bGF0aW9uID8geyBkYXRhOiBkYXRhIH0gOiBkYXRhO1xuICAgIH07XG4gICAgQmFja2VuZFNlcnZpY2UucHJvdG90eXBlLmNsb25lID0gZnVuY3Rpb24gKGRhdGEpIHtcbiAgICAgICAgcmV0dXJuIEpTT04ucGFyc2UoSlNPTi5zdHJpbmdpZnkoZGF0YSkpO1xuICAgIH07XG4gICAgQmFja2VuZFNlcnZpY2UucHJvdG90eXBlLmNvbGxlY3Rpb25IYW5kbGVyID0gZnVuY3Rpb24gKHJlcUluZm8pIHtcbiAgICAgICAgLy8gY29uc3QgcmVxID0gcmVxSW5mby5yZXE7XG4gICAgICAgIHZhciByZXNPcHRpb25zO1xuICAgICAgICBzd2l0Y2ggKHJlcUluZm8ubWV0aG9kKSB7XG4gICAgICAgICAgICBjYXNlICdnZXQnOlxuICAgICAgICAgICAgICAgIHJlc09wdGlvbnMgPSB0aGlzLmdldChyZXFJbmZvKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgJ3Bvc3QnOlxuICAgICAgICAgICAgICAgIHJlc09wdGlvbnMgPSB0aGlzLnBvc3QocmVxSW5mbyk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlICdwdXQnOlxuICAgICAgICAgICAgICAgIHJlc09wdGlvbnMgPSB0aGlzLnB1dChyZXFJbmZvKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgJ2RlbGV0ZSc6XG4g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IF90aGlzLmNyZWF0ZVJlc3BvbnNlJChmdW5jdGlvbiAoKSB7IHJldHVybiByZXNPcHRpb25zOyB9LCBmYWxzZSAvKiBubyBsYXRlbmN5IGRlbGF5ICovKTsgfSk7XG4gICAgICAgICAgICBjYXNlICdjb25maWcnOlxuICAgICAgICAgICAgICAgIGlmIChtZXRob2QgPT09ICdnZXQnKSB7XG4gICAgICAgICAgICAgICAgICAgIHJlc09wdGlvbnMuc3RhdHVzID0gU1RBVFVTLk9LO1xuICAgICAgICAgICAgICAgICAgICByZXNPcHRpb25zLmJvZHkgPSB0aGlzLmNsb25lKHRoaXMuY29uZmlnKTtcbiAgICAgICAgICAgICAgICAgICAgLy8gYW55IG90aGVyIEhUVFAgbWV0aG9kIGlzIGFzc3VtZWQgdG8gYmUgYSBjb25maWcgdXBkYXRlXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICB2YXIgYm9keSA9IHRoaXMuZ2V0SnNvbkJvZHkocmVxSW5mby5yZXEpO1xuICAgICAgICAgICAgICAgICAgICBPYmplY3QuYXNzaWduKHRoaXMuY29uZmlnLCBib2R5KTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5wYXNzVGhydUJhY2tlbmQgPSB1bmRlZmluZWQ7IC8vIHJlLWNyZWF0ZSB3aGVuIG5lZWRlZFxuICAgICAgICAgICAgICAgICAgICByZXNPcHRpb25zLnN0YXR1cyA9IFNUQVRVUy5OT19DT05URU5UO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgcmVzT3B0aW9ucyA9IHRoaXMuY3JlYXRlRXJyb3JSZXNwb25zZU9wdGlvbnMocmVxSW5mby51cmwsIFNUQVRVUy5JTlRFUk5BTF9TRVJWRVJfRVJST1IsIFwiVW5rbm93biBjb21tYW5kIFxcXCJcIiArIGNvbW1hbmQ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U2xhc2godGhpcy5jb25maWcuYXBpQmFzZS50cmltKCkpO1xuICAgICAgICAgICAgICAgIGlmIChhcGlCYXNlKSB7XG4gICAgICAgICAgICAgICAgICAgIHNlZ21lbnRJeCA9IGFwaUJhc2Uuc3BsaXQoJy8nKS5sZW5ndGg7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBzZWdtZW50SXggPSAwOyAvLyBubyBhcGkgYmFzZSBhdCBhbGw7IHVud2lzZSBidXQgYWxsb3dlZC5cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBhcGlCYXNlICs9ICcvJztcbiAgICAgICAgICAgIHZhciBjb2xsZWN0aW9uTmFtZSA9IHBhdGhTZWdtZW50c1tzZWdtZW50SXgrK107XG4gICAgICAgICAgICAvLyBpZ25vcmUgYW55dGhpbmcgYWZ0ZXIgYSAnLicgKGUuZy4sdGhlIFwianNvblwiIGluIFwiY3VzdG9tZXJzLmpzb25cIilcbiAgICAgICAgICAgIGNvbGxlY3Rpb25OYW1lID0gY29sbGVjdGlvbk5hbWUgJiYgY29sbGVjdGlvbk5hbWUuc3BsaXQoJy4nKVswXTtcbiAgICAgICAgICAgIHZhciBpZCA9IHBhdGhTZWdtZW50c1tzZWdtZW50SXgrK107XG4gICAgICAgICAgICB2YXIgcXVlcnkgPSB0aGlzLmNyZWF0ZVF1ZXJ5TWFwKGxvYy5xdWVyeSk7XG4gICAgICAgICAgICB2YXIgcmVzb3VyY2VVcmwgPSB1cmxSb290ICsgYXBpQmFzZSArIGNvbGxlY3Rpb25OYW1lICsgJy8nO1xuICAgICAgICAgICAgcmV0dXJuIHsgYXBpQmFzZTogYXBpQmFzZSwgY29sbGVjdGlvbk5hbWU6IGNvbGxlY3Rpb25OYW1lLCBpZDogaWQsIHF1ZXJ5OiBxdWVyeSwgcmVzb3VyY2VVcmw6IHJlc291cmNlVXJsIH07XG4gICAgICAgIH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JBQ25ELEVBQUUsT0FBTyxFQUFFLHFCQUFxQixFQUFFLFFBQVEsRUFBRSxPQUFPLEVBQUU7Z0JBQ3JELEVBQUUsT0FBTyxFQUFFVixlQUFVO29CQUNqQixVQUFVLEVBQUUsOEJBQThCO29CQUMxQyxJQUFJLEVBQUUsQ0FBQ0MsYUFBUSxFQUFFLGlCQUFpQixFQUFFLHFCQUFxQixDQUFDLEVBQUU7Z0JBQ2hFLEVBQUUsT0FBTyxFQUFFVSxrQkFBVztvQkFDbEIsVUFBVSxFQUFFLG9DQUFvQztvQkFDaEQsSUFBSSxFQUFFLENBQUMsaUJBQWlCLEVBQUUscUJBQXFCLEVBQUVGLGlCQUFVLENBQUMsRUFBRTthQUNyRTtTQUNKLENBQUM7S0FDTCxDQUFDOzs7Ozs7O0lBT0Ysb0JBQW9CLENBQUMsVUFBVSxHQUFHLFVBQVUsU0FBUyxFQUFFLE9BQU8sRUFBRTtRQUM1RCxPQUFPLG9CQUFvQixDQUFDLE9BQU8sQ0FBQyxTQUFTLEVBQUUsT0FBTyxDQUFDLENBQUM7S0FDM0QsQ0FBQztJQUNGLE9BQU8sb0JBQW9CLENBQUM7Q0FDL0IsRUFBRSxDQUFDLENBQUM7QUFDTCxBQUNBLG9CQUFvQixDQUFDLFVBQVUsR0FBRztJQUM5QixFQUFFLElBQUksRUFBRUMsYUFBUSxFQUFFLElBQUksRUFBRSxDQUFDLEVBQUUsRUFBRSxFQUFFO0NBQ2xDLENBQUM7O0FBRUYsb0JBQW9CLENBQUMsY0FBYyxHQUFHLFlBQVksRUFBRSxPQUFPLEVBQUUsQ0FBQyxFQUFFLENBQUM7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7In0= \ No newline at end of file diff --git a/delay-response.js.map b/delay-response.js.map index 612ac21..c21454f 100644 --- a/delay-response.js.map +++ b/delay-response.js.map @@ -1 +1 @@ -{"version":3,"sources":["delay-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,0CAA0C;AAC1C,8FAA8F;AAC9F,MAAM,wBAA2B,SAAwB,EAAE,OAAe;IACxE,MAAM,CAAC,IAAI,UAAU,CAAI,UAAA,QAAQ;QAC/B,IAAI,eAAe,GAAG,KAAK,CAAC;QAC5B,IAAI,WAAW,GAAG,KAAK,CAAC;QACxB,IAAM,YAAY,GAAG,SAAS,CAAC,SAAS,CACtC,UAAA,KAAK;YACD,WAAW,GAAG,IAAI,CAAC;YACnB,UAAU,CAAC;gBACX,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACrB,EAAE,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC;oBACpB,QAAQ,CAAC,QAAQ,EAAE,CAAC;gBACtB,CAAC;YACH,CAAC,EAAE,OAAO,CAAC,CAAC;QACd,CAAC,EACD,UAAA,KAAK,IAAI,OAAA,UAAU,CAAC,cAAM,OAAA,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAArB,CAAqB,EAAE,OAAO,CAAC,EAAhD,CAAgD,EACzD;YACE,eAAe,GAAG,IAAI,CAAC;YACvB,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;gBACjB,QAAQ,CAAC,QAAQ,EAAE,CAAC;YACtB,CAAC;QACH,CAAC,CACF,CAAC;QACF,MAAM,CAAC;YACL,MAAM,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;QACpC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC","file":"delay-response.js","sourceRoot":"","sourcesContent":["import { Observable } from 'rxjs/Observable';\n\n// Replaces use of RxJS delay. See v0.5.4.\n/** adds specified delay (in ms) to both next and error channels of the response observable */\nexport function delayResponse(response$: Observable, delayMs: number): Observable {\n return new Observable(observer => {\n let completePending = false;\n let nextPending = false;\n const subscription = response$.subscribe(\n value => {\n nextPending = true;\n setTimeout(() => {\n observer.next(value);\n if (completePending) {\n observer.complete();\n }\n }, delayMs);\n },\n error => setTimeout(() => observer.error(error), delayMs),\n () => {\n completePending = true;\n if (!nextPending) {\n observer.complete();\n }\n }\n );\n return () => {\n return subscription.unsubscribe();\n };\n });\n}\n"]} \ No newline at end of file +{"version":3,"file":"delay-response.js","sourceRoot":"","sources":["delay-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;;;AAI7C,MAAM,wBAA2B,SAAwB,EAAE,OAAe;IACxE,MAAM,CAAC,IAAI,UAAU,CAAI,UAAA,QAAQ;QAC/B,IAAI,eAAe,GAAG,KAAK,CAAC;QAC5B,IAAI,WAAW,GAAG,KAAK,CAAC;QACxB,IAAM,YAAY,GAAG,SAAS,CAAC,SAAS,CACtC,UAAA,KAAK;YACD,WAAW,GAAG,IAAI,CAAC;YACnB,UAAU,CAAC;gBACX,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACrB,EAAE,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC;oBACpB,QAAQ,CAAC,QAAQ,EAAE,CAAC;iBACrB;aACF,EAAE,OAAO,CAAC,CAAC;SACb,EACD,UAAA,KAAK,IAAI,OAAA,UAAU,CAAC,cAAM,OAAA,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAArB,CAAqB,EAAE,OAAO,CAAC,EAAhD,CAAgD,EACzD;YACE,eAAe,GAAG,IAAI,CAAC;YACvB,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;gBACjB,QAAQ,CAAC,QAAQ,EAAE,CAAC;aACrB;SACF,CACF,CAAC;QACF,MAAM,CAAC;YACL,MAAM,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;SACnC,CAAC;KACH,CAAC,CAAC;CACJ","sourcesContent":["import { Observable } from 'rxjs/Observable';\n\n// Replaces use of RxJS delay. See v0.5.4.\n/** adds specified delay (in ms) to both next and error channels of the response observable */\nexport function delayResponse(response$: Observable, delayMs: number): Observable {\n return new Observable(observer => {\n let completePending = false;\n let nextPending = false;\n const subscription = response$.subscribe(\n value => {\n nextPending = true;\n setTimeout(() => {\n observer.next(value);\n if (completePending) {\n observer.complete();\n }\n }, delayMs);\n },\n error => setTimeout(() => observer.error(error), delayMs),\n () => {\n completePending = true;\n if (!nextPending) {\n observer.complete();\n }\n }\n );\n return () => {\n return subscription.unsubscribe();\n };\n });\n}\n"]} \ No newline at end of file diff --git a/delay-response.metadata.json b/delay-response.metadata.json index 19eb2bc..fac3a11 100644 --- a/delay-response.metadata.json +++ b/delay-response.metadata.json @@ -1 +1 @@ -[{"__symbolic":"module","version":3,"metadata":{"delayResponse":{"__symbolic":"function","parameters":["response$","delayMs"],"value":{"__symbolic":"error","message":"Function call not supported","line":5,"character":27}}}},{"__symbolic":"module","version":1,"metadata":{"delayResponse":{"__symbolic":"function","parameters":["response$","delayMs"],"value":{"__symbolic":"error","message":"Function call not supported","line":5,"character":27}}}}] \ No newline at end of file +[{"__symbolic":"module","version":4,"metadata":{"delayResponse":{"__symbolic":"function","parameters":["response$","delayMs"],"value":{"__symbolic":"error","message":"Lambda not supported","line":5,"character":27}}}}] \ No newline at end of file diff --git a/http-backend.service.d.ts b/http-backend.service.d.ts deleted file mode 100644 index 50c5850..0000000 --- a/http-backend.service.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { Injector } from '@angular/core'; -import { Connection, ConnectionBackend, Headers, Request, Response } from '@angular/http'; -import { Observable } from 'rxjs/Observable'; -import { InMemoryBackendConfigArgs, InMemoryDbService, ResponseOptions } from './interfaces'; -import { BackendService } from './backend.service'; -/** - * For Angular `Http` simulate the behavior of a RESTy web api - * backed by the simple in-memory data store provided by the injected `InMemoryDbService`. - * Conforms mostly to behavior described here: - * http://www.restapitutorial.com/lessons/httpmethods.html - * - * ### Usage - * - * Create an in-memory data store class that implements `InMemoryDbService`. - * Call `forRoot` static method with this service class and optional configuration object: - * ``` - * // other imports - * import { HttpModule } from '@angular/http'; - * import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api'; - * - * import { InMemHeroService, inMemConfig } from '../api/in-memory-hero.service'; - * @NgModule({ - * imports: [ - * HttpModule, - * HttpClientInMemoryWebApiModule.forRoot(InMemHeroService, inMemConfig), - * ... - * ], - * ... - * }) - * export class AppModule { ... } - * ``` - */ -export declare class HttpBackendService extends BackendService implements ConnectionBackend { - private injector; - constructor(injector: Injector, inMemDbService: InMemoryDbService, config: InMemoryBackendConfigArgs); - createConnection(req: Request): Connection; - protected getJsonBody(req: Request): any; - protected getRequestMethod(req: Request): string; - protected createHeaders(headers: { - [index: string]: string; - }): Headers; - protected createQueryMap(search: string): Map; - protected createResponse$fromResponseOptions$(resOptions$: Observable): Observable; - protected createPassThruBackend(): { - handle: (req: Request) => Observable; - }; -} diff --git a/http-backend.service.js b/http-backend.service.js deleted file mode 100644 index 749db92..0000000 --- a/http-backend.service.js +++ /dev/null @@ -1,119 +0,0 @@ -var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -import { Inject, Injectable, Injector, Optional } from '@angular/core'; -import { BrowserXhr, Headers, ReadyState, RequestMethod, Response, ResponseOptions as HttpResponseOptions, URLSearchParams, XHRBackend, XSRFStrategy } from '@angular/http'; -import { map } from 'rxjs/operator/map'; -import { STATUS } from './http-status-codes'; -import { InMemoryBackendConfig, InMemoryBackendConfigArgs, InMemoryDbService } from './interfaces'; -import { BackendService } from './backend.service'; -/** - * For Angular `Http` simulate the behavior of a RESTy web api - * backed by the simple in-memory data store provided by the injected `InMemoryDbService`. - * Conforms mostly to behavior described here: - * http://www.restapitutorial.com/lessons/httpmethods.html - * - * ### Usage - * - * Create an in-memory data store class that implements `InMemoryDbService`. - * Call `forRoot` static method with this service class and optional configuration object: - * ``` - * // other imports - * import { HttpModule } from '@angular/http'; - * import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api'; - * - * import { InMemHeroService, inMemConfig } from '../api/in-memory-hero.service'; - * @NgModule({ - * imports: [ - * HttpModule, - * HttpClientInMemoryWebApiModule.forRoot(InMemHeroService, inMemConfig), - * ... - * ], - * ... - * }) - * export class AppModule { ... } - * ``` - */ -var HttpBackendService = (function (_super) { - __extends(HttpBackendService, _super); - function HttpBackendService(injector, inMemDbService, config) { - var _this = _super.call(this, inMemDbService, config) || this; - _this.injector = injector; - return _this; - } - HttpBackendService.prototype.createConnection = function (req) { - var response; - try { - response = this.handleRequest(req); - } - catch (error) { - var err = error.message || error; - var resOptions_1 = this.createErrorResponseOptions(req.url, STATUS.INTERNAL_SERVER_ERROR, "" + err); - response = this.createResponse$(function () { return resOptions_1; }); - } - return { - readyState: ReadyState.Done, - request: req, - response: response - }; - }; - //// protected overrides ///// - HttpBackendService.prototype.getJsonBody = function (req) { - try { - return req.json(); - } - catch (e) { - var msg = "'" + req.url + "' request body-to-json error\n" + JSON.stringify(e); - throw new Error(msg); - } - }; - HttpBackendService.prototype.getRequestMethod = function (req) { - return RequestMethod[req.method || 0].toLowerCase(); - }; - HttpBackendService.prototype.createHeaders = function (headers) { - return new Headers(headers); - }; - HttpBackendService.prototype.createQueryMap = function (search) { - return search ? new URLSearchParams(search).paramsMap : new Map(); - }; - HttpBackendService.prototype.createResponse$fromResponseOptions$ = function (resOptions$) { - return map.call(resOptions$, function (opts) { - return new Response(new HttpResponseOptions(opts)); - }); - }; - HttpBackendService.prototype.createPassThruBackend = function () { - try { - // copied from @angular/http/backends/xhr_backend - var browserXhr = this.injector.get(BrowserXhr); - var baseResponseOptions = this.injector.get(HttpResponseOptions); - var xsrfStrategy = this.injector.get(XSRFStrategy); - var xhrBackend_1 = new XHRBackend(browserXhr, baseResponseOptions, xsrfStrategy); - return { - handle: function (req) { return xhrBackend_1.createConnection(req).response; } - }; - } - catch (e) { - e.message = 'Cannot create passThru404 backend; ' + (e.message || ''); - throw e; - } - }; - return HttpBackendService; -}(BackendService)); -export { HttpBackendService }; -HttpBackendService.decorators = [ - { type: Injectable }, -]; -/** @nocollapse */ -HttpBackendService.ctorParameters = function () { return [ - { type: Injector, }, - { type: InMemoryDbService, }, - { type: InMemoryBackendConfigArgs, decorators: [{ type: Inject, args: [InMemoryBackendConfig,] }, { type: Optional },] }, -]; }; -//# sourceMappingURL=http-backend.service.js.map \ No newline at end of file diff --git a/http-backend.service.js.map b/http-backend.service.js.map deleted file mode 100644 index f1e8475..0000000 --- a/http-backend.service.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["http-backend.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,EAAE,MAAA,EAAQ,UAAA,EAAY,QAAA,EAAU,QAAA,EAAS,MAAO,eAAA,CAAgB;AAEvE,OAAO,EAAE,UAAA,EACA,OAAO,EAAE,UAAA,EAAqB,aAAA,EAC9B,QAAQ,EACR,eAAe,IAAI,mBAAA,EAEnB,eAAe,EACf,UAAU,EAAE,YAAA,EAAa,MAAO,eAAA,CAAgB;AAGzD,OAAO,EAAE,GAAA,EAAI,MAAO,mBAAA,CAAoB;AAExC,OAAO,EAAE,MAAA,EAAO,MAAO,qBAAA,CAAsB;AAE7C,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EACzB,iBAAiB,EAElB,MAAM,cAAA,CAAe;AAEtB,OAAO,EAAE,cAAA,EAAe,MAAO,mBAAA,CAAoB;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;IAAwC,sCAAc;IAEpD,4BACU,QAAkB,EAC1B,cAAiC,EAC/B,MAAiC;QAHrC,YAKE,kBAAM,cAAc,EAAE,MAAM,CAAC,SAC9B;QALS,cAAQ,GAAR,QAAQ,CAAU;;IAK5B,CAAC;IAED,6CAAgB,GAAhB,UAAiB,GAAY;QAC3B,IAAI,QAA8B,CAAC;QAC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AAE,yBAAyB,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,qBAAqB,EAAG,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAG,EAAC;CACvH,EAJ6F,CAI7F,CAAC","file":"http-backend.service.js","sourceRoot":"","sourcesContent":["import { Inject, Injectable, Injector, Optional } from '@angular/core';\n\nimport { BrowserXhr, Connection, ConnectionBackend,\n Headers, ReadyState, Request, RequestMethod,\n Response,\n ResponseOptions as HttpResponseOptions,\n ResponseOptionsArgs,\n URLSearchParams,\n XHRBackend, XSRFStrategy } from '@angular/http';\n\nimport { Observable } from 'rxjs/Observable';\nimport { map } from 'rxjs/operator/map';\n\nimport { STATUS } from './http-status-codes';\n\nimport {\n InMemoryBackendConfig,\n InMemoryBackendConfigArgs,\n InMemoryDbService,\n ResponseOptions\n} from './interfaces';\n\nimport { BackendService } from './backend.service';\n\n/**\n * For Angular `Http` simulate the behavior of a RESTy web api\n * backed by the simple in-memory data store provided by the injected `InMemoryDbService`.\n * Conforms mostly to behavior described here:\n * http://www.restapitutorial.com/lessons/httpmethods.html\n *\n * ### Usage\n *\n * Create an in-memory data store class that implements `InMemoryDbService`.\n * Call `forRoot` static method with this service class and optional configuration object:\n * ```\n * // other imports\n * import { HttpModule } from '@angular/http';\n * import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api';\n *\n * import { InMemHeroService, inMemConfig } from '../api/in-memory-hero.service';\n * @NgModule({\n * imports: [\n * HttpModule,\n * HttpClientInMemoryWebApiModule.forRoot(InMemHeroService, inMemConfig),\n * ...\n * ],\n * ...\n * })\n * export class AppModule { ... }\n * ```\n */\n\nexport class HttpBackendService extends BackendService implements ConnectionBackend {\n\n constructor(\n private injector: Injector,\n inMemDbService: InMemoryDbService,\n config: InMemoryBackendConfigArgs\n ) {\n super(inMemDbService, config);\n }\n\n createConnection(req: Request): Connection {\n let response: Observable;\n try {\n response = this.handleRequest(req);\n\n } catch (error) {\n const err = error.message || error;\n const resOptions = this.createErrorResponseOptions(req.url, STATUS.INTERNAL_SERVER_ERROR, `${err}`);\n response = this.createResponse$(() => resOptions);\n }\n\n return {\n readyState: ReadyState.Done,\n request: req,\n response\n };\n }\n\n //// protected overrides /////\n\n protected getJsonBody(req: Request): any {\n try {\n return req.json();\n } catch (e) {\n const msg = `'${req.url}' request body-to-json error\\n${JSON.stringify(e)}`;\n throw new Error(msg);\n }\n }\n\n protected getRequestMethod(req: Request): string {\n return RequestMethod[req.method || 0].toLowerCase();\n }\n\n protected createHeaders(headers: { [index: string]: string; }): Headers {\n return new Headers(headers);\n }\n\n protected createQueryMap(search: string): Map {\n return search ? new URLSearchParams(search).paramsMap : new Map();\n }\n\n protected createResponse$fromResponseOptions$(resOptions$: Observable): Observable {\n return map.call(resOptions$, (opts: ResponseOptionsArgs) => {\n return new Response(new HttpResponseOptions(opts));\n });\n }\n\n protected createPassThruBackend() {\n try {\n // copied from @angular/http/backends/xhr_backend\n const browserXhr = this.injector.get(BrowserXhr);\n const baseResponseOptions = this.injector.get(HttpResponseOptions);\n const xsrfStrategy = this.injector.get(XSRFStrategy);\n const xhrBackend = new XHRBackend(browserXhr, baseResponseOptions, xsrfStrategy);\n\n return {\n handle: (req: Request) => xhrBackend.createConnection(req).response\n };\n\n } catch (e) {\n e.message = 'Cannot create passThru404 backend; ' + (e.message || '');\n throw e;\n }\n }\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}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]} \ No newline at end of file diff --git a/http-backend.service.metadata.json b/http-backend.service.metadata.json deleted file mode 100644 index 667cb6e..0000000 --- a/http-backend.service.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"HttpBackendService":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./backend.service","name":"BackendService"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig"}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector"},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService"},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfigArgs"}]}],"createConnection":[{"__symbolic":"method"}],"getJsonBody":[{"__symbolic":"method"}],"getRequestMethod":[{"__symbolic":"method"}],"createHeaders":[{"__symbolic":"method"}],"createQueryMap":[{"__symbolic":"method"}],"createResponse$fromResponseOptions$":[{"__symbolic":"method"}],"createPassThruBackend":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"HttpBackendService":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./backend.service","name":"BackendService"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig"}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector"},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService"},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfigArgs"}]}],"createConnection":[{"__symbolic":"method"}],"getJsonBody":[{"__symbolic":"method"}],"getRequestMethod":[{"__symbolic":"method"}],"createHeaders":[{"__symbolic":"method"}],"createQueryMap":[{"__symbolic":"method"}],"createResponse$fromResponseOptions$":[{"__symbolic":"method"}],"createPassThruBackend":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/http-client-backend.service.d.ts b/http-client-backend.service.d.ts deleted file mode 100644 index e3579b1..0000000 --- a/http-client-backend.service.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { HttpBackend, HttpEvent, HttpHeaders, HttpRequest, HttpResponse, HttpXhrBackend, XhrFactory } from '@angular/common/http'; -import { Observable } from 'rxjs/Observable'; -import { InMemoryBackendConfigArgs, InMemoryDbService, ResponseOptions } from './interfaces'; -import { BackendService } from './backend.service'; -/** - * For Angular `HttpClient` simulate the behavior of a RESTy web api - * backed by the simple in-memory data store provided by the injected `InMemoryDbService`. - * Conforms mostly to behavior described here: - * http://www.restapitutorial.com/lessons/httpmethods.html - * - * ### Usage - * - * Create an in-memory data store class that implements `InMemoryDbService`. - * Call `config` static method with this service class and optional configuration object: - * ``` - * // other imports - * import { HttpClientModule } from '@angular/common/http'; - * import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api'; - * - * import { InMemHeroService, inMemConfig } from '../api/in-memory-hero.service'; - * @NgModule({ - * imports: [ - * HttpModule, - * HttpClientInMemoryWebApiModule.forRoot(InMemHeroService, inMemConfig), - * ... - * ], - * ... - * }) - * export class AppModule { ... } - * ``` - */ -export declare class HttpClientBackendService extends BackendService implements HttpBackend { - private xhrFactory; - constructor(inMemDbService: InMemoryDbService, config: InMemoryBackendConfigArgs, xhrFactory: XhrFactory); - handle(req: HttpRequest): Observable>; - protected getJsonBody(req: HttpRequest): any; - protected getRequestMethod(req: HttpRequest): string; - protected createHeaders(headers: { - [index: string]: string; - }): HttpHeaders; - protected createQueryMap(search: string): Map; - protected createResponse$fromResponseOptions$(resOptions$: Observable): Observable>; - protected createPassThruBackend(): HttpXhrBackend; -} diff --git a/http-client-backend.service.js b/http-client-backend.service.js deleted file mode 100644 index 337efdc..0000000 --- a/http-client-backend.service.js +++ /dev/null @@ -1,103 +0,0 @@ -var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -import { Inject, Injectable, Optional } from '@angular/core'; -import { HttpHeaders, HttpParams, HttpResponse, HttpXhrBackend, XhrFactory } from '@angular/common/http'; -import { map } from 'rxjs/operator/map'; -import { STATUS } from './http-status-codes'; -import { InMemoryBackendConfig, InMemoryBackendConfigArgs, InMemoryDbService } from './interfaces'; -import { BackendService } from './backend.service'; -/** - * For Angular `HttpClient` simulate the behavior of a RESTy web api - * backed by the simple in-memory data store provided by the injected `InMemoryDbService`. - * Conforms mostly to behavior described here: - * http://www.restapitutorial.com/lessons/httpmethods.html - * - * ### Usage - * - * Create an in-memory data store class that implements `InMemoryDbService`. - * Call `config` static method with this service class and optional configuration object: - * ``` - * // other imports - * import { HttpClientModule } from '@angular/common/http'; - * import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api'; - * - * import { InMemHeroService, inMemConfig } from '../api/in-memory-hero.service'; - * @NgModule({ - * imports: [ - * HttpModule, - * HttpClientInMemoryWebApiModule.forRoot(InMemHeroService, inMemConfig), - * ... - * ], - * ... - * }) - * export class AppModule { ... } - * ``` - */ -var HttpClientBackendService = (function (_super) { - __extends(HttpClientBackendService, _super); - function HttpClientBackendService(inMemDbService, config, xhrFactory) { - var _this = _super.call(this, inMemDbService, config) || this; - _this.xhrFactory = xhrFactory; - return _this; - } - HttpClientBackendService.prototype.handle = function (req) { - try { - return this.handleRequest(req); - } - catch (error) { - var err = error.message || error; - var resOptions_1 = this.createErrorResponseOptions(req.url, STATUS.INTERNAL_SERVER_ERROR, "" + err); - return this.createResponse$(function () { return resOptions_1; }); - } - }; - //// protected overrides ///// - HttpClientBackendService.prototype.getJsonBody = function (req) { - return req.body; - }; - HttpClientBackendService.prototype.getRequestMethod = function (req) { - return (req.method || 'get').toLowerCase(); - }; - HttpClientBackendService.prototype.createHeaders = function (headers) { - return new HttpHeaders(headers); - }; - HttpClientBackendService.prototype.createQueryMap = function (search) { - var map = new Map(); - if (search) { - var params_1 = new HttpParams({ fromString: search }); - params_1.keys().forEach(function (p) { return map.set(p, params_1.getAll(p)); }); - } - return map; - }; - HttpClientBackendService.prototype.createResponse$fromResponseOptions$ = function (resOptions$) { - return map.call(resOptions$, function (opts) { return new HttpResponse(opts); }); - }; - HttpClientBackendService.prototype.createPassThruBackend = function () { - try { - return new HttpXhrBackend(this.xhrFactory); - } - catch (ex) { - ex.message = 'Cannot create passThru404 backend; ' + (ex.message || ''); - throw ex; - } - }; - return HttpClientBackendService; -}(BackendService)); -export { HttpClientBackendService }; -HttpClientBackendService.decorators = [ - { type: Injectable }, -]; -/** @nocollapse */ -HttpClientBackendService.ctorParameters = function () { return [ - { type: InMemoryDbService, }, - { type: InMemoryBackendConfigArgs, decorators: [{ type: Inject, args: [InMemoryBackendConfig,] }, { type: Optional },] }, - { type: XhrFactory, }, -]; }; -//# sourceMappingURL=http-client-backend.service.js.map \ No newline at end of file diff --git a/http-client-backend.service.js.map b/http-client-backend.service.js.map deleted file mode 100644 index 9abdb9a..0000000 --- a/http-client-backend.service.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["http-client-backend.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,EAAE,MAAA,EAAQ,UAAA,EAAY,QAAA,EAAS,MAAO,eAAA,CAAgB;AAC7D,OAAO,EAGL,WAAW,EACX,UAAU,EAEV,YAAY,EACZ,cAAc,EACd,UAAU,EACX,MAAM,sBAAA,CAAuB;AAG9B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,EAAE,CAAC,qBAAqB,EAAG,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAG,EAAC;IACxH,EAAC,IAAI,EAAE,UAAU,GAAG;CACnB,EAJ6F,CAI7F,CAAC","file":"http-client-backend.service.js","sourceRoot":"","sourcesContent":["import { Inject, Injectable, Optional } from '@angular/core';\nimport {\n HttpBackend,\n HttpEvent,\n HttpHeaders,\n HttpParams,\n HttpRequest,\n HttpResponse, HttpResponseBase,\n HttpXhrBackend,\n XhrFactory\n} from '@angular/common/http';\n\nimport { Observable } from 'rxjs/Observable';\nimport { map } from 'rxjs/operator/map';\n\nimport { STATUS } from './http-status-codes';\n\nimport {\n InMemoryBackendConfig,\n InMemoryBackendConfigArgs,\n InMemoryDbService,\n ResponseOptions\n} from './interfaces';\n\nimport { BackendService } from './backend.service';\n\n/**\n * For Angular `HttpClient` simulate the behavior of a RESTy web api\n * backed by the simple in-memory data store provided by the injected `InMemoryDbService`.\n * Conforms mostly to behavior described here:\n * http://www.restapitutorial.com/lessons/httpmethods.html\n *\n * ### Usage\n *\n * Create an in-memory data store class that implements `InMemoryDbService`.\n * Call `config` static method with this service class and optional configuration object:\n * ```\n * // other imports\n * import { HttpClientModule } from '@angular/common/http';\n * import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api';\n *\n * import { InMemHeroService, inMemConfig } from '../api/in-memory-hero.service';\n * @NgModule({\n * imports: [\n * HttpModule,\n * HttpClientInMemoryWebApiModule.forRoot(InMemHeroService, inMemConfig),\n * ...\n * ],\n * ...\n * })\n * export class AppModule { ... }\n * ```\n */\n\nexport class HttpClientBackendService extends BackendService implements HttpBackend {\n\n constructor(\n inMemDbService: InMemoryDbService,\n config: InMemoryBackendConfigArgs,\n private xhrFactory: XhrFactory\n ) {\n super(inMemDbService, config);\n }\n\n handle(req: HttpRequest): Observable> {\n try {\n return this.handleRequest(req);\n\n } catch (error) {\n const err = error.message || error;\n const resOptions = this.createErrorResponseOptions(req.url, STATUS.INTERNAL_SERVER_ERROR, `${err}`);\n return this.createResponse$(() => resOptions);\n }\n }\n\n //// protected overrides /////\n\n protected getJsonBody(req: HttpRequest): any {\n return req.body;\n }\n\n protected getRequestMethod(req: HttpRequest): string {\n return (req.method || 'get').toLowerCase();\n }\n\n protected createHeaders(headers: { [index: string]: string; }): HttpHeaders {\n return new HttpHeaders(headers);\n }\n\n protected createQueryMap(search: string): Map {\n const map = new Map();\n if (search) {\n const params = new HttpParams({fromString: search});\n params.keys().forEach(p => map.set(p, params.getAll(p)));\n }\n return map;\n }\n\n protected createResponse$fromResponseOptions$(resOptions$: Observable): Observable> {\n return map.call(resOptions$,\n (opts: HttpResponseBase) => new HttpResponse(opts));\n }\n\n protected createPassThruBackend() {\n try {\n return new HttpXhrBackend(this.xhrFactory);\n } catch (ex) {\n ex.message = 'Cannot create passThru404 backend; ' + (ex.message || '');\n throw ex;\n }\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: InMemoryDbService, },\n{type: InMemoryBackendConfigArgs, decorators: [{ type: Inject, args: [InMemoryBackendConfig, ] }, { type: Optional }, ]},\n{type: XhrFactory, },\n];\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]} \ No newline at end of file diff --git a/http-client-backend.service.metadata.json b/http-client-backend.service.metadata.json deleted file mode 100644 index 0016379..0000000 --- a/http-client-backend.service.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"HttpClientBackendService":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./backend.service","name":"BackendService"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig"}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],null],"parameters":[{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService"},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfigArgs"},{"__symbolic":"reference","module":"@angular/common/http","name":"XhrFactory"}]}],"handle":[{"__symbolic":"method"}],"getJsonBody":[{"__symbolic":"method"}],"getRequestMethod":[{"__symbolic":"method"}],"createHeaders":[{"__symbolic":"method"}],"createQueryMap":[{"__symbolic":"method"}],"createResponse$fromResponseOptions$":[{"__symbolic":"method"}],"createPassThruBackend":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"HttpClientBackendService":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./backend.service","name":"BackendService"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig"}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],null],"parameters":[{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService"},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfigArgs"},{"__symbolic":"reference","module":"@angular/common/http","name":"XhrFactory"}]}],"handle":[{"__symbolic":"method"}],"getJsonBody":[{"__symbolic":"method"}],"getRequestMethod":[{"__symbolic":"method"}],"createHeaders":[{"__symbolic":"method"}],"createQueryMap":[{"__symbolic":"method"}],"createResponse$fromResponseOptions$":[{"__symbolic":"method"}],"createPassThruBackend":[{"__symbolic":"method"}]}}}}] \ No newline at end of file diff --git a/http-client-in-memory-web-api.module.d.ts b/http-client-in-memory-web-api.module.d.ts deleted file mode 100644 index a565daa..0000000 --- a/http-client-in-memory-web-api.module.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { ModuleWithProviders, Type } from '@angular/core'; -import { HttpBackend, XhrFactory } from '@angular/common/http'; -import { InMemoryBackendConfigArgs, InMemoryBackendConfig, InMemoryDbService } from './interfaces'; -export declare function httpClientInMemBackendServiceFactory(dbService: InMemoryDbService, options: InMemoryBackendConfig, xhrFactory: XhrFactory): HttpBackend; -export declare class HttpClientInMemoryWebApiModule { - /** - * Redirect the Angular `HttpClient` XHR calls - * to in-memory data store that implements `InMemoryDbService`. - * with class that implements InMemoryDbService and creates an in-memory database. - * - * Usually imported in the root application module. - * Can import in a lazy feature module too, which will shadow modules loaded earlier - * - * @param {Type} dbCreator - Class that creates seed data for in-memory database. Must implement InMemoryDbService. - * @param {InMemoryBackendConfigArgs} [options] - * - * @example - * HttpInMemoryWebApiModule.forRoot(dbCreator); - * HttpInMemoryWebApiModule.forRoot(dbCreator, {useValue: {delay:600}}); - */ - static forRoot(dbCreator: Type, options?: InMemoryBackendConfigArgs): ModuleWithProviders; - /** - * - * Enable and configure the in-memory web api in a lazy-loaded feature module. - * Same as `forRoot`. - * This is a feel-good method so you can follow the Angular style guide for lazy-loaded modules. - */ - static forFeature(dbCreator: Type, options?: InMemoryBackendConfigArgs): ModuleWithProviders; -} diff --git a/http-client-in-memory-web-api.module.js b/http-client-in-memory-web-api.module.js deleted file mode 100644 index a2e72ec..0000000 --- a/http-client-in-memory-web-api.module.js +++ /dev/null @@ -1,59 +0,0 @@ -////// HttpClient-Only version //// -import { NgModule } from '@angular/core'; -import { HttpBackend, XhrFactory } from '@angular/common/http'; -import { InMemoryBackendConfig, InMemoryDbService } from './interfaces'; -import { HttpClientBackendService } from './http-client-backend.service'; -// Internal - Creates the in-mem backend for the HttpClient module -// AoT requires factory to be exported -export function httpClientInMemBackendServiceFactory(dbService, options, xhrFactory) { - var backend = new HttpClientBackendService(dbService, options, xhrFactory); - return backend; -} -var HttpClientInMemoryWebApiModule = (function () { - function HttpClientInMemoryWebApiModule() { - } - /** - * Redirect the Angular `HttpClient` XHR calls - * to in-memory data store that implements `InMemoryDbService`. - * with class that implements InMemoryDbService and creates an in-memory database. - * - * Usually imported in the root application module. - * Can import in a lazy feature module too, which will shadow modules loaded earlier - * - * @param {Type} dbCreator - Class that creates seed data for in-memory database. Must implement InMemoryDbService. - * @param {InMemoryBackendConfigArgs} [options] - * - * @example - * HttpInMemoryWebApiModule.forRoot(dbCreator); - * HttpInMemoryWebApiModule.forRoot(dbCreator, {useValue: {delay:600}}); - */ - HttpClientInMemoryWebApiModule.forRoot = function (dbCreator, options) { - return { - ngModule: HttpClientInMemoryWebApiModule, - providers: [ - { provide: InMemoryDbService, useClass: dbCreator }, - { provide: InMemoryBackendConfig, useValue: options }, - { provide: HttpBackend, - useFactory: httpClientInMemBackendServiceFactory, - deps: [InMemoryDbService, InMemoryBackendConfig, XhrFactory] } - ] - }; - }; - /** - * - * Enable and configure the in-memory web api in a lazy-loaded feature module. - * Same as `forRoot`. - * This is a feel-good method so you can follow the Angular style guide for lazy-loaded modules. - */ - HttpClientInMemoryWebApiModule.forFeature = function (dbCreator, options) { - return HttpClientInMemoryWebApiModule.forRoot(dbCreator, options); - }; - return HttpClientInMemoryWebApiModule; -}()); -export { HttpClientInMemoryWebApiModule }; -HttpClientInMemoryWebApiModule.decorators = [ - { type: NgModule, args: [{},] }, -]; -/** @nocollapse */ -HttpClientInMemoryWebApiModule.ctorParameters = function () { return []; }; -//# sourceMappingURL=http-client-in-memory-web-api.module.js.map \ No newline at end of file diff --git a/http-client-in-memory-web-api.module.js.map b/http-client-in-memory-web-api.module.js.map deleted file mode 100644 index ecad6f5..0000000 --- a/http-client-in-memory-web-api.module.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["http-client-in-memory-web-api.module.ts"],"names":[],"mappings":"AAAA,mCAAC;AAED,OAAO,EAAE,QAAA,EAAoC,MAAO,eAAA,CAAgB;AACpE,OAAO,EAAE,WAAA,EAAa,UAAA,EAAW,MA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ule, ModuleWithProviders, Type } from '@angular/core';\nimport { HttpBackend, XhrFactory } from '@angular/common/http';\n\nimport {\n InMemoryBackendConfigArgs,\n InMemoryBackendConfig,\n InMemoryDbService\n} from './interfaces';\n\nimport { HttpClientBackendService } from './http-client-backend.service';\n\n// Internal - Creates the in-mem backend for the HttpClient module\n// AoT requires factory to be exported\nexport function httpClientInMemBackendServiceFactory(\n dbService: InMemoryDbService,\n options: InMemoryBackendConfig,\n xhrFactory: XhrFactory,\n): HttpBackend {\n const backend: any = new HttpClientBackendService(dbService, options, xhrFactory);\n return backend;\n}\n\n\nexport class HttpClientInMemoryWebApiModule {\n /**\n * Redirect the Angular `HttpClient` XHR calls\n * to in-memory data store that implements `InMemoryDbService`.\n * with class that implements InMemoryDbService and creates an in-memory database.\n *\n * Usually imported in the root application module.\n * Can import in a lazy feature module too, which will shadow modules loaded earlier\n *\n * @param {Type} dbCreator - Class that creates seed data for in-memory database. Must implement InMemoryDbService.\n * @param {InMemoryBackendConfigArgs} [options]\n *\n * @example\n * HttpInMemoryWebApiModule.forRoot(dbCreator);\n * HttpInMemoryWebApiModule.forRoot(dbCreator, {useValue: {delay:600}});\n */\n static forRoot(dbCreator: Type, options?: InMemoryBackendConfigArgs): ModuleWithProviders {\n return {\n ngModule: HttpClientInMemoryWebApiModule,\n providers: [\n { provide: InMemoryDbService, useClass: dbCreator },\n { provide: InMemoryBackendConfig, useValue: options },\n\n { provide: HttpBackend,\n useFactory: httpClientInMemBackendServiceFactory,\n deps: [InMemoryDbService, InMemoryBackendConfig, XhrFactory]}\n ]\n };\n }\n /**\n *\n * Enable and configure the in-memory web api in a lazy-loaded feature module.\n * Same as `forRoot`.\n * This is a feel-good method so you can follow the Angular style guide for lazy-loaded modules.\n */\n static forFeature(dbCreator: Type, options?: InMemoryBackendConfigArgs): ModuleWithProviders {\n return HttpClientInMemoryWebApiModule.forRoot(dbCreator, options);\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: NgModule, args: [{}, ] },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]} \ No newline at end of file diff --git a/http-client-in-memory-web-api.module.metadata.json b/http-client-in-memory-web-api.module.metadata.json deleted file mode 100644 index 6d69309..0000000 --- a/http-client-in-memory-web-api.module.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"httpClientInMemBackendServiceFactory":{"__symbolic":"function"},"HttpClientInMemoryWebApiModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["dbCreator","options"],"value":{"ngModule":{"__symbolic":"reference","name":"HttpClientInMemoryWebApiModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService"},"useClass":{"__symbolic":"reference","name":"dbCreator"}},{"provide":{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig"},"useValue":{"__symbolic":"reference","name":"options"}},{"provide":{"__symbolic":"reference","module":"@angular/common/http","name":"HttpBackend"},"useFactory":{"__symbolic":"reference","name":"httpClientInMemBackendServiceFactory"},"deps":[{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService"},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig"},{"__symbolic":"reference","module":"@angular/common/http","name":"XhrFactory"}]}]}},"forFeature":{"__symbolic":"function","parameters":["dbCreator","options"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"HttpClientInMemoryWebApiModule"},"member":"forRoot"},"arguments":[{"__symbolic":"reference","name":"dbCreator"},{"__symbolic":"reference","name":"options"}]}}}}}},{"__symbolic":"module","version":1,"metadata":{"httpClientInMemBackendServiceFactory":{"__symbolic":"function"},"HttpClientInMemoryWebApiModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["dbCreator","options"],"value":{"ngModule":{"__symbolic":"reference","name":"HttpClientInMemoryWebApiModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService"},"useClass":{"__symbolic":"reference","name":"dbCreator"}},{"provide":{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig"},"useValue":{"__symbolic":"reference","name":"options"}},{"provide":{"__symbolic":"reference","module":"@angular/common/http","name":"HttpBackend"},"useFactory":{"__symbolic":"reference","name":"httpClientInMemBackendServiceFactory"},"deps":[{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService"},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig"},{"__symbolic":"reference","module":"@angular/common/http","name":"XhrFactory"}]}]}},"forFeature":{"__symbolic":"function","parameters":["dbCreator","options"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"HttpClientInMemoryWebApiModule"},"member":"forRoot"},"arguments":[{"__symbolic":"reference","name":"dbCreator"},{"__symbolic":"reference","name":"options"}]}}}}}}] \ No newline at end of file diff --git a/http-in-memory-web-api.module.d.ts b/http-in-memory-web-api.module.d.ts deleted file mode 100644 index b4c6a56..0000000 --- a/http-in-memory-web-api.module.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Injector, ModuleWithProviders, Type } from '@angular/core'; -import { XHRBackend } from '@angular/http'; -import { InMemoryBackendConfigArgs, InMemoryBackendConfig, InMemoryDbService } from './interfaces'; -export declare function httpInMemBackendServiceFactory(injector: Injector, dbService: InMemoryDbService, options: InMemoryBackendConfig): XHRBackend; -export declare class HttpInMemoryWebApiModule { - /** - * Redirect the Angular `Http` XHR calls - * to in-memory data store that implements `InMemoryDbService`. - * with class that implements InMemoryDbService and creates an in-memory database. - * - * Usually imported in the root application module. - * Can import in a lazy feature module too, which will shadow modules loaded earlier - * - * @param {Type} dbCreator - Class that creates seed data for in-memory database. Must implement InMemoryDbService. - * @param {InMemoryBackendConfigArgs} [options] - * - * @example - * HttpInMemoryWebApiModule.forRoot(dbCreator); - * HttpInMemoryWebApiModule.forRoot(dbCreator, {useValue: {delay:600}}); - */ - static forRoot(dbCreator: Type, options?: InMemoryBackendConfigArgs): ModuleWithProviders; - /** - * - * Enable and configure the in-memory web api in a lazy-loaded feature module. - * Same as `forRoot`. - * This is a feel-good method so you can follow the Angular style guide for lazy-loaded modules. - */ - static forFeature(dbCreator: Type, options?: InMemoryBackendConfigArgs): ModuleWithProviders; -} diff --git a/http-in-memory-web-api.module.js b/http-in-memory-web-api.module.js deleted file mode 100644 index 7ccfb66..0000000 --- a/http-in-memory-web-api.module.js +++ /dev/null @@ -1,59 +0,0 @@ -////// Http-Only version //// -import { Injector, NgModule } from '@angular/core'; -import { XHRBackend } from '@angular/http'; -import { InMemoryBackendConfig, InMemoryDbService } from './interfaces'; -import { HttpBackendService } from './http-backend.service'; -// Internal - Creates the in-mem backend for the Http module -// AoT requires factory to be exported -export function httpInMemBackendServiceFactory(injector, dbService, options) { - var backend = new HttpBackendService(injector, dbService, options); - return backend; -} -var HttpInMemoryWebApiModule = (function () { - function HttpInMemoryWebApiModule() { - } - /** - * Redirect the Angular `Http` XHR calls - * to in-memory data store that implements `InMemoryDbService`. - * with class that implements InMemoryDbService and creates an in-memory database. - * - * Usually imported in the root application module. - * Can import in a lazy feature module too, which will shadow modules loaded earlier - * - * @param {Type} dbCreator - Class that creates seed data for in-memory database. Must implement InMemoryDbService. - * @param {InMemoryBackendConfigArgs} [options] - * - * @example - * HttpInMemoryWebApiModule.forRoot(dbCreator); - * HttpInMemoryWebApiModule.forRoot(dbCreator, {useValue: {delay:600}}); - */ - HttpInMemoryWebApiModule.forRoot = function (dbCreator, options) { - return { - ngModule: HttpInMemoryWebApiModule, - providers: [ - { provide: InMemoryDbService, useClass: dbCreator }, - { provide: InMemoryBackendConfig, useValue: options }, - { provide: XHRBackend, - useFactory: httpInMemBackendServiceFactory, - deps: [Injector, InMemoryDbService, InMemoryBackendConfig] } - ] - }; - }; - /** - * - * Enable and configure the in-memory web api in a lazy-loaded feature module. - * Same as `forRoot`. - * This is a feel-good method so you can follow the Angular style guide for lazy-loaded modules. - */ - HttpInMemoryWebApiModule.forFeature = function (dbCreator, options) { - return HttpInMemoryWebApiModule.forRoot(dbCreator, options); - }; - return HttpInMemoryWebApiModule; -}()); -export { HttpInMemoryWebApiModule }; -HttpInMemoryWebApiModule.decorators = [ - { type: NgModule, args: [{},] }, -]; -/** @nocollapse */ -HttpInMemoryWebApiModule.ctorParameters = function () { return []; }; -//# sourceMappingURL=http-in-memory-web-api.module.js.map \ No newline at end of file diff --git a/http-in-memory-web-api.module.js.map b/http-in-memory-web-api.module.js.map deleted file mode 100644 index 6b140e1..0000000 --- a/http-in-memory-web-api.module.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["http-in-memory-web-api.module.ts"],"names":[],"mappings":"AAAA,6BAAC;AAED,OAAO,EAAE,QAAA,EAAU,QAAA,EAAoC,MAAO,eAAA,CAAgB;AAC9E,OAAO,EAAE,UAAA,EAAW,MAAO,eAAA,CAAgB;AAE3C,OAAO,EAEL,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,cAAA,CAAe;AAEtB,OAAO,EAAE,kBAAA,EAAmB,MAAa,wBAAA,CAAyB;AAElE,4DAA4D;AAC5D,sCAAsC;AACtC,MAAM,yCACJ,QAAU,EACV,SAAW,EACX,OAAS;IAET,IAAM,OAAA,GAAe,IAAI,kBAAA,CAAmB,QAAC,EAAS,SAAA,EAAW,OAAA,CAAQ,CAAC;IAC1E,MAAM,CAAC,OAAW,CAAW;AAC/B,CAAC;AAGD;IAAA;IA4CA,CAAC;IA3CC;;;;;;;;;;;;;;MAcE;IACK,gCAAO,GAAd,UAAe,SAAkC,EAAE,OAAmC;QACpF,MAAM,CAAC;YACL,QAAQ,EAAE,wBAAwB;YAClC,SAAS,EAAE;gBACT,EAAE,OAAO,EAAE,iBAAiB,EAAG,QAAQ,EAAE,SAAS,EAAE;gBACpD,EAAE,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,OAAO,EAAE;gBAErD,EAAE,OAAO,EAAE,UAAU;oBACnB,UAAU,EAAE,8BAA8B;oBAC1C,IAAI,EAAE,CAAC,QAAQ,EAAE,iBAAiB,EAAE,qBAAqB,CAAC,EAAC;aAC9D;SACF,CAAC;IACJ,CAAC;IACC;;;;;KAKC;IACI,mCAAU,GAAjB,UAAkB,SAAkC,EAAE,OAAmC;QACvF,MAAM,CAAC,wBAAwB,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAOH,+BAAC;AAAD,CA5CA,AA4CC;;AANM,mCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE,EAAG,EAAE;CAC/B,CAAC;AACF,kBAAkB;AACX,uCAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC","file":"http-in-memory-web-api.module.js","sourceRoot":"","sourcesContent":["////// Http-Only version ////\n\nimport { Injector, NgModule, ModuleWithProviders, Type } from '@angular/core';\nimport { XHRBackend } from '@angular/http';\n\nimport {\n InMemoryBackendConfigArgs,\n InMemoryBackendConfig,\n InMemoryDbService\n} from './interfaces';\n\nimport { HttpBackendService } from './http-backend.service';\n\n// Internal - Creates the in-mem backend for the Http module\n// AoT requires factory to be exported\nexport function httpInMemBackendServiceFactory(\n injector: Injector,\n dbService: InMemoryDbService,\n options: InMemoryBackendConfig\n): XHRBackend {\n const backend: any = new HttpBackendService(injector, dbService, options);\n return backend as XHRBackend;\n}\n\n\nexport class HttpInMemoryWebApiModule {\n /**\n * Redirect the Angular `Http` XHR calls\n * to in-memory data store that implements `InMemoryDbService`.\n * with class that implements InMemoryDbService and creates an in-memory database.\n *\n * Usually imported in the root application module.\n * Can import in a lazy feature module too, which will shadow modules loaded earlier\n *\n * @param {Type} dbCreator - Class that creates seed data for in-memory database. Must implement InMemoryDbService.\n * @param {InMemoryBackendConfigArgs} [options]\n *\n * @example\n * HttpInMemoryWebApiModule.forRoot(dbCreator);\n * HttpInMemoryWebApiModule.forRoot(dbCreator, {useValue: {delay:600}});\n */\n static forRoot(dbCreator: Type, options?: InMemoryBackendConfigArgs): ModuleWithProviders {\n return {\n ngModule: HttpInMemoryWebApiModule,\n providers: [\n { provide: InMemoryDbService, useClass: dbCreator },\n { provide: InMemoryBackendConfig, useValue: options },\n\n { provide: XHRBackend,\n useFactory: httpInMemBackendServiceFactory,\n deps: [Injector, InMemoryDbService, InMemoryBackendConfig]}\n ]\n };\n }\n /**\n *\n * Enable and configure the in-memory web api in a lazy-loaded feature module.\n * Same as `forRoot`.\n * This is a feel-good method so you can follow the Angular style guide for lazy-loaded modules.\n */\n static forFeature(dbCreator: Type, options?: InMemoryBackendConfigArgs): ModuleWithProviders {\n return HttpInMemoryWebApiModule.forRoot(dbCreator, options);\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: NgModule, args: [{}, ] },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]} \ No newline at end of file diff --git a/http-in-memory-web-api.module.metadata.json b/http-in-memory-web-api.module.metadata.json deleted file mode 100644 index 725798e..0000000 --- a/http-in-memory-web-api.module.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"httpInMemBackendServiceFactory":{"__symbolic":"function"},"HttpInMemoryWebApiModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["dbCreator","options"],"value":{"ngModule":{"__symbolic":"reference","name":"HttpInMemoryWebApiModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService"},"useClass":{"__symbolic":"reference","name":"dbCreator"}},{"provide":{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig"},"useValue":{"__symbolic":"reference","name":"options"}},{"provide":{"__symbolic":"reference","module":"@angular/http","name":"XHRBackend"},"useFactory":{"__symbolic":"reference","name":"httpInMemBackendServiceFactory"},"deps":[{"__symbolic":"reference","module":"@angular/core","name":"Injector"},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService"},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig"}]}]}},"forFeature":{"__symbolic":"function","parameters":["dbCreator","options"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"HttpInMemoryWebApiModule"},"member":"forRoot"},"arguments":[{"__symbolic":"reference","name":"dbCreator"},{"__symbolic":"reference","name":"options"}]}}}}}},{"__symbolic":"module","version":1,"metadata":{"httpInMemBackendServiceFactory":{"__symbolic":"function"},"HttpInMemoryWebApiModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["dbCreator","options"],"value":{"ngModule":{"__symbolic":"reference","name":"HttpInMemoryWebApiModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService"},"useClass":{"__symbolic":"reference","name":"dbCreator"}},{"provide":{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig"},"useValue":{"__symbolic":"reference","name":"options"}},{"provide":{"__symbolic":"reference","module":"@angular/http","name":"XHRBackend"},"useFactory":{"__symbolic":"reference","name":"httpInMemBackendServiceFactory"},"deps":[{"__symbolic":"reference","module":"@angular/core","name":"Injector"},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService"},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig"}]}]}},"forFeature":{"__symbolic":"function","parameters":["dbCreator","options"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"HttpInMemoryWebApiModule"},"member":"forRoot"},"arguments":[{"__symbolic":"reference","name":"dbCreator"},{"__symbolic":"reference","name":"options"}]}}}}}}] \ No newline at end of file diff --git a/http-status-codes.d.ts b/http-status-codes.d.ts deleted file mode 100644 index 18b9ac1..0000000 --- a/http-status-codes.d.ts +++ /dev/null @@ -1,460 +0,0 @@ -export declare const STATUS: { - CONTINUE: number; - SWITCHING_PROTOCOLS: number; - OK: number; - CREATED: number; - ACCEPTED: number; - NON_AUTHORITATIVE_INFORMATION: number; - NO_CONTENT: number; - RESET_CONTENT: number; - PARTIAL_CONTENT: number; - MULTIPLE_CHOICES: number; - MOVED_PERMANTENTLY: number; - FOUND: number; - SEE_OTHER: number; - NOT_MODIFIED: number; - USE_PROXY: number; - TEMPORARY_REDIRECT: number; - BAD_REQUEST: number; - UNAUTHORIZED: number; - PAYMENT_REQUIRED: number; - FORBIDDEN: number; - NOT_FOUND: number; - METHOD_NOT_ALLOWED: number; - NOT_ACCEPTABLE: number; - PROXY_AUTHENTICATION_REQUIRED: number; - REQUEST_TIMEOUT: number; - CONFLICT: number; - GONE: number; - LENGTH_REQUIRED: number; - PRECONDITION_FAILED: number; - PAYLOAD_TO_LARGE: number; - URI_TOO_LONG: number; - UNSUPPORTED_MEDIA_TYPE: number; - RANGE_NOT_SATISFIABLE: number; - EXPECTATION_FAILED: number; - IM_A_TEAPOT: number; - UPGRADE_REQUIRED: number; - INTERNAL_SERVER_ERROR: number; - NOT_IMPLEMENTED: number; - BAD_GATEWAY: number; - SERVICE_UNAVAILABLE: number; - GATEWAY_TIMEOUT: number; - HTTP_VERSION_NOT_SUPPORTED: number; - PROCESSING: number; - MULTI_STATUS: number; - IM_USED: number; - PERMANENT_REDIRECT: number; - UNPROCESSABLE_ENTRY: number; - LOCKED: number; - FAILED_DEPENDENCY: number; - PRECONDITION_REQUIRED: number; - TOO_MANY_REQUESTS: number; - REQUEST_HEADER_FIELDS_TOO_LARGE: number; - UNAVAILABLE_FOR_LEGAL_REASONS: number; - VARIANT_ALSO_NEGOTIATES: number; - INSUFFICIENT_STORAGE: number; - NETWORK_AUTHENTICATION_REQUIRED: number; -}; -export declare const STATUS_CODE_INFO: { - '100': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '101': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '200': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '201': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '202': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '203': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '204': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '205': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '206': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '300': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '301': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '302': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '303': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '304': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '305': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '307': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '400': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '401': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '402': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '403': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '404': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '405': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '406': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '407': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '408': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '409': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '410': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '411': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '412': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '413': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '414': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '415': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '416': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '417': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '418': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '426': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '500': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '501': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '502': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '503': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '504': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '505': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '102': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '207': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '226': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '308': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '422': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '423': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '424': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '428': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '429': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '431': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '451': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '506': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '507': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; - '511': { - 'code': number; - 'text': string; - 'description': string; - 'spec_title': string; - 'spec_href': string; - }; -}; -/** - * get the status text from StatusCode - */ -export declare function getStatusText(status: number): any; -/** - * Returns true if the the Http Status Code is 200-299 (success) - */ -export declare function isSuccess(status: number): boolean; diff --git a/http-status-codes.js b/http-status-codes.js deleted file mode 100644 index a4d6b99..0000000 --- a/http-status-codes.js +++ /dev/null @@ -1,465 +0,0 @@ -export var STATUS = { - CONTINUE: 100, - SWITCHING_PROTOCOLS: 101, - OK: 200, - CREATED: 201, - ACCEPTED: 202, - NON_AUTHORITATIVE_INFORMATION: 203, - NO_CONTENT: 204, - RESET_CONTENT: 205, - PARTIAL_CONTENT: 206, - MULTIPLE_CHOICES: 300, - MOVED_PERMANTENTLY: 301, - FOUND: 302, - SEE_OTHER: 303, - NOT_MODIFIED: 304, - USE_PROXY: 305, - TEMPORARY_REDIRECT: 307, - BAD_REQUEST: 400, - UNAUTHORIZED: 401, - PAYMENT_REQUIRED: 402, - FORBIDDEN: 403, - NOT_FOUND: 404, - METHOD_NOT_ALLOWED: 405, - NOT_ACCEPTABLE: 406, - PROXY_AUTHENTICATION_REQUIRED: 407, - REQUEST_TIMEOUT: 408, - CONFLICT: 409, - GONE: 410, - LENGTH_REQUIRED: 411, - PRECONDITION_FAILED: 412, - PAYLOAD_TO_LARGE: 413, - URI_TOO_LONG: 414, - UNSUPPORTED_MEDIA_TYPE: 415, - RANGE_NOT_SATISFIABLE: 416, - EXPECTATION_FAILED: 417, - IM_A_TEAPOT: 418, - UPGRADE_REQUIRED: 426, - INTERNAL_SERVER_ERROR: 500, - NOT_IMPLEMENTED: 501, - BAD_GATEWAY: 502, - SERVICE_UNAVAILABLE: 503, - GATEWAY_TIMEOUT: 504, - HTTP_VERSION_NOT_SUPPORTED: 505, - PROCESSING: 102, - MULTI_STATUS: 207, - IM_USED: 226, - PERMANENT_REDIRECT: 308, - UNPROCESSABLE_ENTRY: 422, - LOCKED: 423, - FAILED_DEPENDENCY: 424, - PRECONDITION_REQUIRED: 428, - TOO_MANY_REQUESTS: 429, - REQUEST_HEADER_FIELDS_TOO_LARGE: 431, - UNAVAILABLE_FOR_LEGAL_REASONS: 451, - VARIANT_ALSO_NEGOTIATES: 506, - INSUFFICIENT_STORAGE: 507, - NETWORK_AUTHENTICATION_REQUIRED: 511 -}; -/*tslint:disable:quotemark max-line-length one-line */ -export var STATUS_CODE_INFO = { - '100': { - 'code': 100, - 'text': 'Continue', - 'description': '\"The initial part of a request has been received and has not yet been rejected by the server.\"', - 'spec_title': 'RFC7231#6.2.1', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.2.1' - }, - '101': { - 'code': 101, - 'text': 'Switching Protocols', - '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.\"', - 'spec_title': 'RFC7231#6.2.2', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.2.2' - }, - '200': { - 'code': 200, - 'text': 'OK', - 'description': '\"The request has succeeded.\"', - 'spec_title': 'RFC7231#6.3.1', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.1' - }, - '201': { - 'code': 201, - 'text': 'Created', - 'description': '\"The request has been fulfilled and has resulted in one or more new resources being created.\"', - 'spec_title': 'RFC7231#6.3.2', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.2' - }, - '202': { - 'code': 202, - 'text': 'Accepted', - 'description': '\"The request has been accepted for processing, but the processing has not been completed.\"', - 'spec_title': 'RFC7231#6.3.3', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.3' - }, - '203': { - 'code': 203, - 'text': 'Non-Authoritative Information', - '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.\"', - 'spec_title': 'RFC7231#6.3.4', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.4' - }, - '204': { - 'code': 204, - 'text': 'No Content', - 'description': '\"The server has successfully fulfilled the request and that there is no additional content to send in the response payload body.\"', - 'spec_title': 'RFC7231#6.3.5', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.5' - }, - '205': { - 'code': 205, - 'text': 'Reset Content', - '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.\"', - 'spec_title': 'RFC7231#6.3.6', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.6' - }, - '206': { - 'code': 206, - 'text': 'Partial Content', - '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.\"', - 'spec_title': 'RFC7233#4.1', - 'spec_href': 'http://tools.ietf.org/html/rfc7233#section-4.1' - }, - '300': { - 'code': 300, - 'text': 'Multiple Choices', - '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.\"', - 'spec_title': 'RFC7231#6.4.1', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.1' - }, - '301': { - 'code': 301, - 'text': 'Moved Permanently', - '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.\"', - 'spec_title': 'RFC7231#6.4.2', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.2' - }, - '302': { - 'code': 302, - 'text': 'Found', - 'description': '\"The target resource resides temporarily under a different URI.\"', - 'spec_title': 'RFC7231#6.4.3', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.3' - }, - '303': { - 'code': 303, - 'text': 'See Other', - '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.\"', - 'spec_title': 'RFC7231#6.4.4', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.4' - }, - '304': { - 'code': 304, - 'text': 'Not Modified', - '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.\"', - 'spec_title': 'RFC7232#4.1', - 'spec_href': 'http://tools.ietf.org/html/rfc7232#section-4.1' - }, - '305': { - 'code': 305, - 'text': 'Use Proxy', - 'description': '*deprecated*', - 'spec_title': 'RFC7231#6.4.5', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.5' - }, - '307': { - 'code': 307, - 'text': 'Temporary Redirect', - '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.\"', - 'spec_title': 'RFC7231#6.4.7', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.7' - }, - '400': { - 'code': 400, - 'text': 'Bad Request', - '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.\"', - 'spec_title': 'RFC7231#6.5.1', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.1' - }, - '401': { - 'code': 401, - 'text': 'Unauthorized', - 'description': '\"The request has not been applied because it lacks valid authentication credentials for the target resource.\"', - 'spec_title': 'RFC7235#6.3.1', - 'spec_href': 'http://tools.ietf.org/html/rfc7235#section-3.1' - }, - '402': { - 'code': 402, - 'text': 'Payment Required', - 'description': '*reserved*', - 'spec_title': 'RFC7231#6.5.2', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.2' - }, - '403': { - 'code': 403, - 'text': 'Forbidden', - 'description': '\"The server understood the request but refuses to authorize it.\"', - 'spec_title': 'RFC7231#6.5.3', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.3' - }, - '404': { - 'code': 404, - 'text': 'Not Found', - 'description': '\"The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.\"', - 'spec_title': 'RFC7231#6.5.4', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.4' - }, - '405': { - 'code': 405, - 'text': 'Method Not Allowed', - 'description': '\"The method specified in the request-line is known by the origin server but not supported by the target resource.\"', - 'spec_title': 'RFC7231#6.5.5', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.5' - }, - '406': { - 'code': 406, - 'text': 'Not Acceptable', - '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.\"', - 'spec_title': 'RFC7231#6.5.6', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.6' - }, - '407': { - 'code': 407, - 'text': 'Proxy Authentication Required', - 'description': '\"The client needs to authenticate itself in order to use a proxy.\"', - 'spec_title': 'RFC7231#6.3.2', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.2' - }, - '408': { - 'code': 408, - 'text': 'Request Timeout', - 'description': '\"The server did not receive a complete request message within the time that it was prepared to wait.\"', - 'spec_title': 'RFC7231#6.5.7', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.7' - }, - '409': { - 'code': 409, - 'text': 'Conflict', - 'description': '\"The request could not be completed due to a conflict with the current state of the resource.\"', - 'spec_title': 'RFC7231#6.5.8', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.8' - }, - '410': { - 'code': 410, - 'text': 'Gone', - 'description': '\"Access to the target resource is no longer available at the origin server and that this condition is likely to be permanent.\"', - 'spec_title': 'RFC7231#6.5.9', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.9' - }, - '411': { - 'code': 411, - 'text': 'Length Required', - 'description': '\"The server refuses to accept the request without a defined Content-Length.\"', - 'spec_title': 'RFC7231#6.5.10', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.10' - }, - '412': { - 'code': 412, - 'text': 'Precondition Failed', - 'description': '\"One or more preconditions given in the request header fields evaluated to false when tested on the server.\"', - 'spec_title': 'RFC7232#4.2', - 'spec_href': 'http://tools.ietf.org/html/rfc7232#section-4.2' - }, - '413': { - 'code': 413, - 'text': 'Payload Too Large', - 'description': '\"The server is refusing to process a request because the request payload is larger than the server is willing or able to process.\"', - 'spec_title': 'RFC7231#6.5.11', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.11' - }, - '414': { - 'code': 414, - 'text': 'URI Too Long', - 'description': '\"The server is refusing to service the request because the request-target is longer than the server is willing to interpret.\"', - 'spec_title': 'RFC7231#6.5.12', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.12' - }, - '415': { - 'code': 415, - 'text': 'Unsupported Media Type', - '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.\"', - 'spec_title': 'RFC7231#6.5.13', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.13' - }, - '416': { - 'code': 416, - 'text': 'Range Not Satisfiable', - '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.\"', - 'spec_title': 'RFC7233#4.4', - 'spec_href': 'http://tools.ietf.org/html/rfc7233#section-4.4' - }, - '417': { - 'code': 417, - 'text': 'Expectation Failed', - 'description': '\"The expectation given in the request\'s Expect header field could not be met by at least one of the inbound servers.\"', - 'spec_title': 'RFC7231#6.5.14', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.14' - }, - '418': { - 'code': 418, - 'text': 'I\'m a teapot', - 'description': '\"1988 April Fools Joke. Returned by tea pots requested to brew coffee.\"', - 'spec_title': 'RFC 2324', - 'spec_href': 'https://tools.ietf.org/html/rfc2324' - }, - '426': { - 'code': 426, - 'text': 'Upgrade Required', - '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.\"', - 'spec_title': 'RFC7231#6.5.15', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.15' - }, - '500': { - 'code': 500, - 'text': 'Internal Server Error', - 'description': '\"The server encountered an unexpected condition that prevented it from fulfilling the request.\"', - 'spec_title': 'RFC7231#6.6.1', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.1' - }, - '501': { - 'code': 501, - 'text': 'Not Implemented', - 'description': '\"The server does not support the functionality required to fulfill the request.\"', - 'spec_title': 'RFC7231#6.6.2', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.2' - }, - '502': { - 'code': 502, - 'text': 'Bad Gateway', - '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.\"', - 'spec_title': 'RFC7231#6.6.3', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.3' - }, - '503': { - 'code': 503, - 'text': 'Service Unavailable', - '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.\"', - 'spec_title': 'RFC7231#6.6.4', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.4' - }, - '504': { - 'code': 504, - 'text': 'Gateway Time-out', - '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.\"', - 'spec_title': 'RFC7231#6.6.5', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.5' - }, - '505': { - 'code': 505, - 'text': 'HTTP Version Not Supported', - 'description': '\"The server does not support, or refuses to support, the protocol version that was used in the request message.\"', - 'spec_title': 'RFC7231#6.6.6', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.6' - }, - '102': { - 'code': 102, - 'text': 'Processing', - 'description': '\"An interim response to inform the client that the server has accepted the complete request, but has not yet completed it.\"', - 'spec_title': 'RFC5218#10.1', - 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.1' - }, - '207': { - 'code': 207, - 'text': 'Multi-Status', - 'description': '\"Status for multiple independent operations.\"', - 'spec_title': 'RFC5218#10.2', - 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.2' - }, - '226': { - 'code': 226, - 'text': 'IM Used', - '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.\"', - 'spec_title': 'RFC3229#10.4.1', - 'spec_href': 'http://tools.ietf.org/html/rfc3229#section-10.4.1' - }, - '308': { - 'code': 308, - 'text': 'Permanent Redirect', - '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.\"', - 'spec_title': 'RFC7238', - 'spec_href': 'http://tools.ietf.org/html/rfc7238' - }, - '422': { - 'code': 422, - 'text': 'Unprocessable Entity', - '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.\"', - 'spec_title': 'RFC5218#10.3', - 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.3' - }, - '423': { - 'code': 423, - 'text': 'Locked', - 'description': '\"The source or destination resource of a method is locked.\"', - 'spec_title': 'RFC5218#10.4', - 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.4' - }, - '424': { - 'code': 424, - 'text': 'Failed Dependency', - 'description': '\"The method could not be performed on the resource because the requested action depended on another action and that action failed.\"', - 'spec_title': 'RFC5218#10.5', - 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.5' - }, - '428': { - 'code': 428, - 'text': 'Precondition Required', - 'description': '\"The origin server requires the request to be conditional.\"', - 'spec_title': 'RFC6585#3', - 'spec_href': 'http://tools.ietf.org/html/rfc6585#section-3' - }, - '429': { - 'code': 429, - 'text': 'Too Many Requests', - 'description': '\"The user has sent too many requests in a given amount of time (\"rate limiting\").\"', - 'spec_title': 'RFC6585#4', - 'spec_href': 'http://tools.ietf.org/html/rfc6585#section-4' - }, - '431': { - 'code': 431, - 'text': 'Request Header Fields Too Large', - 'description': '\"The server is unwilling to process the request because its header fields are too large.\"', - 'spec_title': 'RFC6585#5', - 'spec_href': 'http://tools.ietf.org/html/rfc6585#section-5' - }, - '451': { - 'code': 451, - 'text': 'Unavailable For Legal Reasons', - 'description': '\"The server is denying access to the resource in response to a legal demand.\"', - 'spec_title': 'draft-ietf-httpbis-legally-restricted-status', - 'spec_href': 'http://tools.ietf.org/html/draft-ietf-httpbis-legally-restricted-status' - }, - '506': { - 'code': 506, - 'text': 'Variant Also Negotiates', - '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.\"', - 'spec_title': 'RFC2295#8.1', - 'spec_href': 'http://tools.ietf.org/html/rfc2295#section-8.1' - }, - '507': { - 'code': 507, - 'text': 'Insufficient Storage', - '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.\"', - 'spec_title': 'RFC5218#10.6', - 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.6' - }, - '511': { - 'code': 511, - 'text': 'Network Authentication Required', - 'description': '\"The client needs to authenticate to gain network access.\"', - 'spec_title': 'RFC6585#6', - 'spec_href': 'http://tools.ietf.org/html/rfc6585#section-6' - } -}; -/** - * get the status text from StatusCode - */ -export function getStatusText(status) { - return STATUS_CODE_INFO[status].text || 'Unknown Status'; -} -/** - * Returns true if the the Http Status Code is 200-299 (success) - */ -export function isSuccess(status) { return status >= 200 && status < 300; } -; -//# sourceMappingURL=http-status-codes.js.map \ No newline at end of file diff --git a/http-status-codes.js.map b/http-status-codes.js.map deleted file mode 100644 index f414bd0..0000000 --- a/http-status-codes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["http-status-codes.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,MAAM,GAAG;IACpB,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,EA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AW,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;AAEF;;GAEG;AACH,MAAM,wBAAwB,MAAc;IAC1C,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,IAAI,IAAI,gBAAgB,CAAC;AAC3D,CAAC;AAED;;GAEG;AACH,MAAM,oBAAoB,MAAc,IAAa,MAAM,CAAC,MAAM,IAAI,GAAG,IAAI,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC;AAAA,CAAC","file":"http-status-codes.js","sourceRoot":"","sourcesContent":["export const STATUS = {\n CONTINUE: 100,\n SWITCHING_PROTOCOLS: 101,\n OK: 200,\n CREATED: 201,\n ACCEPTED: 202,\n NON_AUTHORITATIVE_INFORMATION: 203,\n NO_CONTENT: 204,\n RESET_CONTENT: 205,\n PARTIAL_CONTENT: 206,\n MULTIPLE_CHOICES: 300,\n MOVED_PERMANTENTLY: 301,\n FOUND: 302,\n SEE_OTHER: 303,\n NOT_MODIFIED: 304,\n USE_PROXY: 305,\n TEMPORARY_REDIRECT: 307,\n BAD_REQUEST: 400,\n UNAUTHORIZED: 401,\n PAYMENT_REQUIRED: 402,\n FORBIDDEN: 403,\n NOT_FOUND: 404,\n METHOD_NOT_ALLOWED: 405,\n NOT_ACCEPTABLE: 406,\n PROXY_AUTHENTICATION_REQUIRED: 407,\n REQUEST_TIMEOUT: 408,\n CONFLICT: 409,\n GONE: 410,\n LENGTH_REQUIRED: 411,\n PRECONDITION_FAILED: 412,\n PAYLOAD_TO_LARGE: 413,\n URI_TOO_LONG: 414,\n UNSUPPORTED_MEDIA_TYPE: 415,\n RANGE_NOT_SATISFIABLE: 416,\n EXPECTATION_FAILED: 417,\n IM_A_TEAPOT: 418,\n UPGRADE_REQUIRED: 426,\n INTERNAL_SERVER_ERROR: 500,\n NOT_IMPLEMENTED: 501,\n BAD_GATEWAY: 502,\n SERVICE_UNAVAILABLE: 503,\n GATEWAY_TIMEOUT: 504,\n HTTP_VERSION_NOT_SUPPORTED: 505,\n PROCESSING: 102,\n MULTI_STATUS: 207,\n IM_USED: 226,\n PERMANENT_REDIRECT: 308,\n UNPROCESSABLE_ENTRY: 422,\n LOCKED: 423,\n FAILED_DEPENDENCY: 424,\n PRECONDITION_REQUIRED: 428,\n TOO_MANY_REQUESTS: 429,\n REQUEST_HEADER_FIELDS_TOO_LARGE: 431,\n UNAVAILABLE_FOR_LEGAL_REASONS: 451,\n VARIANT_ALSO_NEGOTIATES: 506,\n INSUFFICIENT_STORAGE: 507,\n NETWORK_AUTHENTICATION_REQUIRED: 511\n};\n\n/*tslint:disable:quotemark max-line-length one-line */\nexport const STATUS_CODE_INFO = {\n '100': {\n 'code': 100,\n 'text': 'Continue',\n 'description': '\\\"The initial part of a request has been received and has not yet been rejected by the server.\\\"',\n 'spec_title': 'RFC7231#6.2.1',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.2.1'\n },\n '101': {\n 'code': 101,\n 'text': 'Switching Protocols',\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.\\\"',\n 'spec_title': 'RFC7231#6.2.2',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.2.2'\n },\n '200': {\n 'code': 200,\n 'text': 'OK',\n 'description': '\\\"The request has succeeded.\\\"',\n 'spec_title': 'RFC7231#6.3.1',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.1'\n },\n '201': {\n 'code': 201,\n 'text': 'Created',\n 'description': '\\\"The request has been fulfilled and has resulted in one or more new resources being created.\\\"',\n 'spec_title': 'RFC7231#6.3.2',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.2'\n },\n '202': {\n 'code': 202,\n 'text': 'Accepted',\n 'description': '\\\"The request has been accepted for processing, but the processing has not been completed.\\\"',\n 'spec_title': 'RFC7231#6.3.3',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.3'\n },\n '203': {\n 'code': 203,\n 'text': 'Non-Authoritative Information',\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.\\\"',\n 'spec_title': 'RFC7231#6.3.4',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.4'\n },\n '204': {\n 'code': 204,\n 'text': 'No Content',\n 'description': '\\\"The server has successfully fulfilled the request and that there is no additional content to send in the response payload body.\\\"',\n 'spec_title': 'RFC7231#6.3.5',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.5'\n },\n '205': {\n 'code': 205,\n 'text': 'Reset Content',\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.\\\"',\n 'spec_title': 'RFC7231#6.3.6',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.6'\n },\n '206': {\n 'code': 206,\n 'text': 'Partial Content',\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.\\\"',\n 'spec_title': 'RFC7233#4.1',\n 'spec_href': 'http://tools.ietf.org/html/rfc7233#section-4.1'\n },\n '300': {\n 'code': 300,\n 'text': 'Multiple Choices',\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.\\\"',\n 'spec_title': 'RFC7231#6.4.1',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.1'\n },\n '301': {\n 'code': 301,\n 'text': 'Moved Permanently',\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.\\\"',\n 'spec_title': 'RFC7231#6.4.2',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.2'\n },\n '302': {\n 'code': 302,\n 'text': 'Found',\n 'description': '\\\"The target resource resides temporarily under a different URI.\\\"',\n 'spec_title': 'RFC7231#6.4.3',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.3'\n },\n '303': {\n 'code': 303,\n 'text': 'See Other',\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.\\\"',\n 'spec_title': 'RFC7231#6.4.4',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.4'\n },\n '304': {\n 'code': 304,\n 'text': 'Not Modified',\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.\\\"',\n 'spec_title': 'RFC7232#4.1',\n 'spec_href': 'http://tools.ietf.org/html/rfc7232#section-4.1'\n },\n '305': {\n 'code': 305,\n 'text': 'Use Proxy',\n 'description': '*deprecated*',\n 'spec_title': 'RFC7231#6.4.5',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.5'\n },\n '307': {\n 'code': 307,\n 'text': 'Temporary Redirect',\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.\\\"',\n 'spec_title': 'RFC7231#6.4.7',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.7'\n },\n '400': {\n 'code': 400,\n 'text': 'Bad Request',\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.\\\"',\n 'spec_title': 'RFC7231#6.5.1',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.1'\n },\n '401': {\n 'code': 401,\n 'text': 'Unauthorized',\n 'description': '\\\"The request has not been applied because it lacks valid authentication credentials for the target resource.\\\"',\n 'spec_title': 'RFC7235#6.3.1',\n 'spec_href': 'http://tools.ietf.org/html/rfc7235#section-3.1'\n },\n '402': {\n 'code': 402,\n 'text': 'Payment Required',\n 'description': '*reserved*',\n 'spec_title': 'RFC7231#6.5.2',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.2'\n },\n '403': {\n 'code': 403,\n 'text': 'Forbidden',\n 'description': '\\\"The server understood the request but refuses to authorize it.\\\"',\n 'spec_title': 'RFC7231#6.5.3',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.3'\n },\n '404': {\n 'code': 404,\n 'text': 'Not Found',\n 'description': '\\\"The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.\\\"',\n 'spec_title': 'RFC7231#6.5.4',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.4'\n },\n '405': {\n 'code': 405,\n 'text': 'Method Not Allowed',\n 'description': '\\\"The method specified in the request-line is known by the origin server but not supported by the target resource.\\\"',\n 'spec_title': 'RFC7231#6.5.5',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.5'\n },\n '406': {\n 'code': 406,\n 'text': 'Not Acceptable',\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.\\\"',\n 'spec_title': 'RFC7231#6.5.6',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.6'\n },\n '407': {\n 'code': 407,\n 'text': 'Proxy Authentication Required',\n 'description': '\\\"The client needs to authenticate itself in order to use a proxy.\\\"',\n 'spec_title': 'RFC7231#6.3.2',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.2'\n },\n '408': {\n 'code': 408,\n 'text': 'Request Timeout',\n 'description': '\\\"The server did not receive a complete request message within the time that it was prepared to wait.\\\"',\n 'spec_title': 'RFC7231#6.5.7',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.7'\n },\n '409': {\n 'code': 409,\n 'text': 'Conflict',\n 'description': '\\\"The request could not be completed due to a conflict with the current state of the resource.\\\"',\n 'spec_title': 'RFC7231#6.5.8',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.8'\n },\n '410': {\n 'code': 410,\n 'text': 'Gone',\n 'description': '\\\"Access to the target resource is no longer available at the origin server and that this condition is likely to be permanent.\\\"',\n 'spec_title': 'RFC7231#6.5.9',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.9'\n },\n '411': {\n 'code': 411,\n 'text': 'Length Required',\n 'description': '\\\"The server refuses to accept the request without a defined Content-Length.\\\"',\n 'spec_title': 'RFC7231#6.5.10',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.10'\n },\n '412': {\n 'code': 412,\n 'text': 'Precondition Failed',\n 'description': '\\\"One or more preconditions given in the request header fields evaluated to false when tested on the server.\\\"',\n 'spec_title': 'RFC7232#4.2',\n 'spec_href': 'http://tools.ietf.org/html/rfc7232#section-4.2'\n },\n '413': {\n 'code': 413,\n 'text': 'Payload Too Large',\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.\\\"',\n 'spec_title': 'RFC7231#6.5.11',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.11'\n },\n '414': {\n 'code': 414,\n 'text': 'URI Too Long',\n 'description': '\\\"The server is refusing to service the request because the request-target is longer than the server is willing to interpret.\\\"',\n 'spec_title': 'RFC7231#6.5.12',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.12'\n },\n '415': {\n 'code': 415,\n 'text': 'Unsupported Media Type',\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.\\\"',\n 'spec_title': 'RFC7231#6.5.13',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.13'\n },\n '416': {\n 'code': 416,\n 'text': 'Range Not Satisfiable',\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.\\\"',\n 'spec_title': 'RFC7233#4.4',\n 'spec_href': 'http://tools.ietf.org/html/rfc7233#section-4.4'\n },\n '417': {\n 'code': 417,\n 'text': 'Expectation Failed',\n 'description': '\\\"The expectation given in the request\\'s Expect header field could not be met by at least one of the inbound servers.\\\"',\n 'spec_title': 'RFC7231#6.5.14',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.14'\n },\n '418': {\n 'code': 418,\n 'text': 'I\\'m a teapot',\n 'description': '\\\"1988 April Fools Joke. Returned by tea pots requested to brew coffee.\\\"',\n 'spec_title': 'RFC 2324',\n 'spec_href': 'https://tools.ietf.org/html/rfc2324'\n },\n '426': {\n 'code': 426,\n 'text': 'Upgrade Required',\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.\\\"',\n 'spec_title': 'RFC7231#6.5.15',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.15'\n },\n '500': {\n 'code': 500,\n 'text': 'Internal Server Error',\n 'description': '\\\"The server encountered an unexpected condition that prevented it from fulfilling the request.\\\"',\n 'spec_title': 'RFC7231#6.6.1',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.1'\n },\n '501': {\n 'code': 501,\n 'text': 'Not Implemented',\n 'description': '\\\"The server does not support the functionality required to fulfill the request.\\\"',\n 'spec_title': 'RFC7231#6.6.2',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.2'\n },\n '502': {\n 'code': 502,\n 'text': 'Bad Gateway',\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.\\\"',\n 'spec_title': 'RFC7231#6.6.3',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.3'\n },\n '503': {\n 'code': 503,\n 'text': 'Service Unavailable',\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.\\\"',\n 'spec_title': 'RFC7231#6.6.4',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.4'\n },\n '504': {\n 'code': 504,\n 'text': 'Gateway Time-out',\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.\\\"',\n 'spec_title': 'RFC7231#6.6.5',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.5'\n },\n '505': {\n 'code': 505,\n 'text': 'HTTP Version Not Supported',\n 'description': '\\\"The server does not support, or refuses to support, the protocol version that was used in the request message.\\\"',\n 'spec_title': 'RFC7231#6.6.6',\n 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.6'\n },\n '102': {\n 'code': 102,\n 'text': 'Processing',\n 'description': '\\\"An interim response to inform the client that the server has accepted the complete request, but has not yet completed it.\\\"',\n 'spec_title': 'RFC5218#10.1',\n 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.1'\n },\n '207': {\n 'code': 207,\n 'text': 'Multi-Status',\n 'description': '\\\"Status for multiple independent operations.\\\"',\n 'spec_title': 'RFC5218#10.2',\n 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.2'\n },\n '226': {\n 'code': 226,\n 'text': 'IM Used',\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.\\\"',\n 'spec_title': 'RFC3229#10.4.1',\n 'spec_href': 'http://tools.ietf.org/html/rfc3229#section-10.4.1'\n },\n '308': {\n 'code': 308,\n 'text': 'Permanent Redirect',\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.\\\"',\n 'spec_title': 'RFC7238',\n 'spec_href': 'http://tools.ietf.org/html/rfc7238'\n },\n '422': {\n 'code': 422,\n 'text': 'Unprocessable Entity',\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.\\\"',\n 'spec_title': 'RFC5218#10.3',\n 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.3'\n },\n '423': {\n 'code': 423,\n 'text': 'Locked',\n 'description': '\\\"The source or destination resource of a method is locked.\\\"',\n 'spec_title': 'RFC5218#10.4',\n 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.4'\n },\n '424': {\n 'code': 424,\n 'text': 'Failed Dependency',\n 'description': '\\\"The method could not be performed on the resource because the requested action depended on another action and that action failed.\\\"',\n 'spec_title': 'RFC5218#10.5',\n 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.5'\n },\n '428': {\n 'code': 428,\n 'text': 'Precondition Required',\n 'description': '\\\"The origin server requires the request to be conditional.\\\"',\n 'spec_title': 'RFC6585#3',\n 'spec_href': 'http://tools.ietf.org/html/rfc6585#section-3'\n },\n '429': {\n 'code': 429,\n 'text': 'Too Many Requests',\n 'description': '\\\"The user has sent too many requests in a given amount of time (\\\"rate limiting\\\").\\\"',\n 'spec_title': 'RFC6585#4',\n 'spec_href': 'http://tools.ietf.org/html/rfc6585#section-4'\n },\n '431': {\n 'code': 431,\n 'text': 'Request Header Fields Too Large',\n 'description': '\\\"The server is unwilling to process the request because its header fields are too large.\\\"',\n 'spec_title': 'RFC6585#5',\n 'spec_href': 'http://tools.ietf.org/html/rfc6585#section-5'\n },\n '451': {\n 'code': 451,\n 'text': 'Unavailable For Legal Reasons',\n 'description': '\\\"The server is denying access to the resource in response to a legal demand.\\\"',\n 'spec_title': 'draft-ietf-httpbis-legally-restricted-status',\n 'spec_href': 'http://tools.ietf.org/html/draft-ietf-httpbis-legally-restricted-status'\n },\n '506': {\n 'code': 506,\n 'text': 'Variant Also Negotiates',\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.\\\"',\n 'spec_title': 'RFC2295#8.1',\n 'spec_href': 'http://tools.ietf.org/html/rfc2295#section-8.1'\n },\n '507': {\n 'code': 507,\n 'text': 'Insufficient Storage',\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.\\\"',\n 'spec_title': 'RFC5218#10.6',\n 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.6'\n },\n '511': {\n 'code': 511,\n 'text': 'Network Authentication Required',\n 'description': '\\\"The client needs to authenticate to gain network access.\\\"',\n 'spec_title': 'RFC6585#6',\n 'spec_href': 'http://tools.ietf.org/html/rfc6585#section-6'\n }\n};\n\n/**\n * get the status text from StatusCode\n */\nexport function getStatusText(status: number) {\n return STATUS_CODE_INFO[status].text || 'Unknown Status';\n}\n\n/**\n * Returns true if the the Http Status Code is 200-299 (success)\n */\nexport function isSuccess(status: number): boolean { return status >= 200 && status < 300; };\n"]} \ No newline at end of file diff --git a/http-status-codes.metadata.json b/http-status-codes.metadata.json deleted file mode 100644 index 08a0d1b..0000000 --- a/http-status-codes.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"STATUS":{"CONTINUE":100,"SWITCHING_PROTOCOLS":101,"OK":200,"CREATED":201,"ACCEPTED":202,"NON_AUTHORITATIVE_INFORMATION":203,"NO_CONTENT":204,"RESET_CONTENT":205,"PARTIAL_CONTENT":206,"MULTIPLE_CHOICES":300,"MOVED_PERMANTENTLY":301,"FOUND":302,"SEE_OTHER":303,"NOT_MODIFIED":304,"USE_PROXY":305,"TEMPORARY_REDIRECT":307,"BAD_REQUEST":400,"UNAUTHORIZED":401,"PAYMENT_REQUIRED":402,"FORBIDDEN":403,"NOT_FOUND":404,"METHOD_NOT_ALLOWED":405,"NOT_ACCEPTABLE":406,"PROXY_AUTHENTICATION_REQUIRED":407,"REQUEST_TIMEOUT":408,"CONFLICT":409,"GONE":410,"LENGTH_REQUIRED":411,"PRECONDITION_FAILED":412,"PAYLOAD_TO_LARGE":413,"URI_TOO_LONG":414,"UNSUPPORTED_MEDIA_TYPE":415,"RANGE_NOT_SATISFIABLE":416,"EXPECTATION_FAILED":417,"IM_A_TEAPOT":418,"UPGRADE_REQUIRED":426,"INTERNAL_SERVER_ERROR":500,"NOT_IMPLEMENTED":501,"BAD_GATEWAY":502,"SERVICE_UNAVAILABLE":503,"GATEWAY_TIMEOUT":504,"HTTP_VERSION_NOT_SUPPORTED":505,"PROCESSING":102,"MULTI_STATUS":207,"IM_USED":226,"PERMANENT_REDIRECT":308,"UNPROCESSABLE_ENTRY":422,"LOCKED":423,"FAILED_DEPENDENCY":424,"PRECONDITION_REQUIRED":428,"TOO_MANY_REQUESTS":429,"REQUEST_HEADER_FIELDS_TOO_LARGE":431,"UNAVAILABLE_FOR_LEGAL_REASONS":451,"VARIANT_ALSO_NEGOTIATES":506,"INSUFFICIENT_STORAGE":507,"NETWORK_AUTHENTICATION_REQUIRED":511},"STATUS_CODE_INFO":{"100":{"code":100,"text":"Continue","description":"\"The initial part of a request has been received and has not yet been rejected by the server.\"","spec_title":"RFC7231#6.2.1","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.2.1","$quoted$":["code","text","description","spec_title","spec_href"]},"101":{"code":101,"text":"Switching Protocols","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.\"","spec_title":"RFC7231#6.2.2","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.2.2","$quoted$":["code","text","description","spec_title","spec_href"]},"102":{"code":102,"text":"Processing","description":"\"An interim response to inform the client that the server has accepted the complete request, but has not yet completed it.\"","spec_title":"RFC5218#10.1","spec_href":"http://tools.ietf.org/html/rfc2518#section-10.1","$quoted$":["code","text","description","spec_title","spec_href"]},"200":{"code":200,"text":"OK","description":"\"The request has succeeded.\"","spec_title":"RFC7231#6.3.1","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.3.1","$quoted$":["code","text","description","spec_title","spec_href"]},"201":{"code":201,"text":"Created","description":"\"The request has been fulfilled and has resulted in one or more new resources being created.\"","spec_title":"RFC7231#6.3.2","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.3.2","$quoted$":["code","text","description","spec_title","spec_href"]},"202":{"code":202,"text":"Accepted","description":"\"The request has been accepted for processing, but the processing has not been completed.\"","spec_title":"RFC7231#6.3.3","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.3.3","$quoted$":["code","text","description","spec_title","spec_href"]},"203":{"code":203,"text":"Non-Authoritative Information","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.\"","spec_title":"RFC7231#6.3.4","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.3.4","$quoted$":["code","text","description","spec_title","spec_href"]},"204":{"code":204,"text":"No Content","description":"\"The server has successfully fulfilled the request and that there is no additional content to send in the response payload body.\"","spec_title":"RFC7231#6.3.5","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.3.5","$quoted$":["code","text","description","spec_title","spec_href"]},"205":{"code":205,"text":"Reset Content","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.\"","spec_title":"RFC7231#6.3.6","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.3.6","$quoted$":["code","text","description","spec_title","spec_href"]},"206":{"code":206,"text":"Partial Content","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.\"","spec_title":"RFC7233#4.1","spec_href":"http://tools.ietf.org/html/rfc7233#section-4.1","$quoted$":["code","text","description","spec_title","spec_href"]},"207":{"code":207,"text":"Multi-Status","description":"\"Status for multiple independent operations.\"","spec_title":"RFC5218#10.2","spec_href":"http://tools.ietf.org/html/rfc2518#section-10.2","$quoted$":["code","text","description","spec_title","spec_href"]},"226":{"code":226,"text":"IM Used","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.\"","spec_title":"RFC3229#10.4.1","spec_href":"http://tools.ietf.org/html/rfc3229#section-10.4.1","$quoted$":["code","text","description","spec_title","spec_href"]},"300":{"code":300,"text":"Multiple Choices","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.\"","spec_title":"RFC7231#6.4.1","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.4.1","$quoted$":["code","text","description","spec_title","spec_href"]},"301":{"code":301,"text":"Moved Permanently","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.\"","spec_title":"RFC7231#6.4.2","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.4.2","$quoted$":["code","text","description","spec_title","spec_href"]},"302":{"code":302,"text":"Found","description":"\"The target resource resides temporarily under a different URI.\"","spec_title":"RFC7231#6.4.3","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.4.3","$quoted$":["code","text","description","spec_title","spec_href"]},"303":{"code":303,"text":"See Other","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.\"","spec_title":"RFC7231#6.4.4","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.4.4","$quoted$":["code","text","description","spec_title","spec_href"]},"304":{"code":304,"text":"Not Modified","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.\"","spec_title":"RFC7232#4.1","spec_href":"http://tools.ietf.org/html/rfc7232#section-4.1","$quoted$":["code","text","description","spec_title","spec_href"]},"305":{"code":305,"text":"Use Proxy","description":"*deprecated*","spec_title":"RFC7231#6.4.5","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.4.5","$quoted$":["code","text","description","spec_title","spec_href"]},"307":{"code":307,"text":"Temporary Redirect","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.\"","spec_title":"RFC7231#6.4.7","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.4.7","$quoted$":["code","text","description","spec_title","spec_href"]},"308":{"code":308,"text":"Permanent Redirect","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.\"","spec_title":"RFC7238","spec_href":"http://tools.ietf.org/html/rfc7238","$quoted$":["code","text","description","spec_title","spec_href"]},"400":{"code":400,"text":"Bad Request","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.\"","spec_title":"RFC7231#6.5.1","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.1","$quoted$":["code","text","description","spec_title","spec_href"]},"401":{"code":401,"text":"Unauthorized","description":"\"The request has not been applied because it lacks valid authentication credentials for the target resource.\"","spec_title":"RFC7235#6.3.1","spec_href":"http://tools.ietf.org/html/rfc7235#section-3.1","$quoted$":["code","text","description","spec_title","spec_href"]},"402":{"code":402,"text":"Payment Required","description":"*reserved*","spec_title":"RFC7231#6.5.2","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.2","$quoted$":["code","text","description","spec_title","spec_href"]},"403":{"code":403,"text":"Forbidden","description":"\"The server understood the request but refuses to authorize it.\"","spec_title":"RFC7231#6.5.3","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.3","$quoted$":["code","text","description","spec_title","spec_href"]},"404":{"code":404,"text":"Not Found","description":"\"The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.\"","spec_title":"RFC7231#6.5.4","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.4","$quoted$":["code","text","description","spec_title","spec_href"]},"405":{"code":405,"text":"Method Not Allowed","description":"\"The method specified in the request-line is known by the origin server but not supported by the target resource.\"","spec_title":"RFC7231#6.5.5","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.5","$quoted$":["code","text","description","spec_title","spec_href"]},"406":{"code":406,"text":"Not Acceptable","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.\"","spec_title":"RFC7231#6.5.6","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.6","$quoted$":["code","text","description","spec_title","spec_href"]},"407":{"code":407,"text":"Proxy Authentication Required","description":"\"The client needs to authenticate itself in order to use a proxy.\"","spec_title":"RFC7231#6.3.2","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.3.2","$quoted$":["code","text","description","spec_title","spec_href"]},"408":{"code":408,"text":"Request Timeout","description":"\"The server did not receive a complete request message within the time that it was prepared to wait.\"","spec_title":"RFC7231#6.5.7","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.7","$quoted$":["code","text","description","spec_title","spec_href"]},"409":{"code":409,"text":"Conflict","description":"\"The request could not be completed due to a conflict with the current state of the resource.\"","spec_title":"RFC7231#6.5.8","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.8","$quoted$":["code","text","description","spec_title","spec_href"]},"410":{"code":410,"text":"Gone","description":"\"Access to the target resource is no longer available at the origin server and that this condition is likely to be permanent.\"","spec_title":"RFC7231#6.5.9","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.9","$quoted$":["code","text","description","spec_title","spec_href"]},"411":{"code":411,"text":"Length Required","description":"\"The server refuses to accept the request without a defined Content-Length.\"","spec_title":"RFC7231#6.5.10","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.10","$quoted$":["code","text","description","spec_title","spec_href"]},"412":{"code":412,"text":"Precondition Failed","description":"\"One or more preconditions given in the request header fields evaluated to false when tested on the server.\"","spec_title":"RFC7232#4.2","spec_href":"http://tools.ietf.org/html/rfc7232#section-4.2","$quoted$":["code","text","description","spec_title","spec_href"]},"413":{"code":413,"text":"Payload Too Large","description":"\"The server is refusing to process a request because the request payload is larger than the server is willing or able to process.\"","spec_title":"RFC7231#6.5.11","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.11","$quoted$":["code","text","description","spec_title","spec_href"]},"414":{"code":414,"text":"URI Too Long","description":"\"The server is refusing to service the request because the request-target is longer than the server is willing to interpret.\"","spec_title":"RFC7231#6.5.12","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.12","$quoted$":["code","text","description","spec_title","spec_href"]},"415":{"code":415,"text":"Unsupported Media Type","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.\"","spec_title":"RFC7231#6.5.13","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.13","$quoted$":["code","text","description","spec_title","spec_href"]},"416":{"code":416,"text":"Range Not Satisfiable","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.\"","spec_title":"RFC7233#4.4","spec_href":"http://tools.ietf.org/html/rfc7233#section-4.4","$quoted$":["code","text","description","spec_title","spec_href"]},"417":{"code":417,"text":"Expectation Failed","description":"\"The expectation given in the request's Expect header field could not be met by at least one of the inbound servers.\"","spec_title":"RFC7231#6.5.14","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.14","$quoted$":["code","text","description","spec_title","spec_href"]},"418":{"code":418,"text":"I'm a teapot","description":"\"1988 April Fools Joke. Returned by tea pots requested to brew coffee.\"","spec_title":"RFC 2324","spec_href":"https://tools.ietf.org/html/rfc2324","$quoted$":["code","text","description","spec_title","spec_href"]},"422":{"code":422,"text":"Unprocessable Entity","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.\"","spec_title":"RFC5218#10.3","spec_href":"http://tools.ietf.org/html/rfc2518#section-10.3","$quoted$":["code","text","description","spec_title","spec_href"]},"423":{"code":423,"text":"Locked","description":"\"The source or destination resource of a method is locked.\"","spec_title":"RFC5218#10.4","spec_href":"http://tools.ietf.org/html/rfc2518#section-10.4","$quoted$":["code","text","description","spec_title","spec_href"]},"424":{"code":424,"text":"Failed Dependency","description":"\"The method could not be performed on the resource because the requested action depended on another action and that action failed.\"","spec_title":"RFC5218#10.5","spec_href":"http://tools.ietf.org/html/rfc2518#section-10.5","$quoted$":["code","text","description","spec_title","spec_href"]},"426":{"code":426,"text":"Upgrade Required","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.\"","spec_title":"RFC7231#6.5.15","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.15","$quoted$":["code","text","description","spec_title","spec_href"]},"428":{"code":428,"text":"Precondition Required","description":"\"The origin server requires the request to be conditional.\"","spec_title":"RFC6585#3","spec_href":"http://tools.ietf.org/html/rfc6585#section-3","$quoted$":["code","text","description","spec_title","spec_href"]},"429":{"code":429,"text":"Too Many Requests","description":"\"The user has sent too many requests in a given amount of time (\"rate limiting\").\"","spec_title":"RFC6585#4","spec_href":"http://tools.ietf.org/html/rfc6585#section-4","$quoted$":["code","text","description","spec_title","spec_href"]},"431":{"code":431,"text":"Request Header Fields Too Large","description":"\"The server is unwilling to process the request because its header fields are too large.\"","spec_title":"RFC6585#5","spec_href":"http://tools.ietf.org/html/rfc6585#section-5","$quoted$":["code","text","description","spec_title","spec_href"]},"451":{"code":451,"text":"Unavailable For Legal Reasons","description":"\"The server is denying access to the resource in response to a legal demand.\"","spec_title":"draft-ietf-httpbis-legally-restricted-status","spec_href":"http://tools.ietf.org/html/draft-ietf-httpbis-legally-restricted-status","$quoted$":["code","text","description","spec_title","spec_href"]},"500":{"code":500,"text":"Internal Server Error","description":"\"The server encountered an unexpected condition that prevented it from fulfilling the request.\"","spec_title":"RFC7231#6.6.1","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.6.1","$quoted$":["code","text","description","spec_title","spec_href"]},"501":{"code":501,"text":"Not Implemented","description":"\"The server does not support the functionality required to fulfill the request.\"","spec_title":"RFC7231#6.6.2","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.6.2","$quoted$":["code","text","description","spec_title","spec_href"]},"502":{"code":502,"text":"Bad Gateway","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.\"","spec_title":"RFC7231#6.6.3","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.6.3","$quoted$":["code","text","description","spec_title","spec_href"]},"503":{"code":503,"text":"Service Unavailable","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.\"","spec_title":"RFC7231#6.6.4","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.6.4","$quoted$":["code","text","description","spec_title","spec_href"]},"504":{"code":504,"text":"Gateway Time-out","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.\"","spec_title":"RFC7231#6.6.5","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.6.5","$quoted$":["code","text","description","spec_title","spec_href"]},"505":{"code":505,"text":"HTTP Version Not Supported","description":"\"The server does not support, or refuses to support, the protocol version that was used in the request message.\"","spec_title":"RFC7231#6.6.6","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.6.6","$quoted$":["code","text","description","spec_title","spec_href"]},"506":{"code":506,"text":"Variant Also Negotiates","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.\"","spec_title":"RFC2295#8.1","spec_href":"http://tools.ietf.org/html/rfc2295#section-8.1","$quoted$":["code","text","description","spec_title","spec_href"]},"507":{"code":507,"text":"Insufficient Storage","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.\"","spec_title":"RFC5218#10.6","spec_href":"http://tools.ietf.org/html/rfc2518#section-10.6","$quoted$":["code","text","description","spec_title","spec_href"]},"511":{"code":511,"text":"Network Authentication Required","description":"\"The client needs to authenticate to gain network access.\"","spec_title":"RFC6585#6","spec_href":"http://tools.ietf.org/html/rfc6585#section-6","$quoted$":["code","text","description","spec_title","spec_href"]},"$quoted$":["100","101","200","201","202","203","204","205","206","300","301","302","303","304","305","307","400","401","402","403","404","405","406","407","408","409","410","411","412","413","414","415","416","417","418","426","500","501","502","503","504","505","102","207","226","308","422","423","424","428","429","431","451","506","507","511"]},"getStatusText":{"__symbolic":"function","parameters":["status"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"select","expression":{"__symbolic":"index","expression":{"__symbolic":"reference","name":"STATUS_CODE_INFO"},"index":{"__symbolic":"reference","name":"status"}},"member":"text"},"right":"Unknown Status"}},"isSuccess":{"__symbolic":"function","parameters":["status"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":">=","left":{"__symbolic":"reference","name":"status"},"right":200},"right":{"__symbolic":"binop","operator":"<","left":{"__symbolic":"reference","name":"status"},"right":300}}}}},{"__symbolic":"module","version":1,"metadata":{"STATUS":{"CONTINUE":100,"SWITCHING_PROTOCOLS":101,"OK":200,"CREATED":201,"ACCEPTED":202,"NON_AUTHORITATIVE_INFORMATION":203,"NO_CONTENT":204,"RESET_CONTENT":205,"PARTIAL_CONTENT":206,"MULTIPLE_CHOICES":300,"MOVED_PERMANTENTLY":301,"FOUND":302,"SEE_OTHER":303,"NOT_MODIFIED":304,"USE_PROXY":305,"TEMPORARY_REDIRECT":307,"BAD_REQUEST":400,"UNAUTHORIZED":401,"PAYMENT_REQUIRED":402,"FORBIDDEN":403,"NOT_FOUND":404,"METHOD_NOT_ALLOWED":405,"NOT_ACCEPTABLE":406,"PROXY_AUTHENTICATION_REQUIRED":407,"REQUEST_TIMEOUT":408,"CONFLICT":409,"GONE":410,"LENGTH_REQUIRED":411,"PRECONDITION_FAILED":412,"PAYLOAD_TO_LARGE":413,"URI_TOO_LONG":414,"UNSUPPORTED_MEDIA_TYPE":415,"RANGE_NOT_SATISFIABLE":416,"EXPECTATION_FAILED":417,"IM_A_TEAPOT":418,"UPGRADE_REQUIRED":426,"INTERNAL_SERVER_ERROR":500,"NOT_IMPLEMENTED":501,"BAD_GATEWAY":502,"SERVICE_UNAVAILABLE":503,"GATEWAY_TIMEOUT":504,"HTTP_VERSION_NOT_SUPPORTED":505,"PROCESSING":102,"MULTI_STATUS":207,"IM_USED":226,"PERMANENT_REDIRECT":308,"UNPROCESSABLE_ENTRY":422,"LOCKED":423,"FAILED_DEPENDENCY":424,"PRECONDITION_REQUIRED":428,"TOO_MANY_REQUESTS":429,"REQUEST_HEADER_FIELDS_TOO_LARGE":431,"UNAVAILABLE_FOR_LEGAL_REASONS":451,"VARIANT_ALSO_NEGOTIATES":506,"INSUFFICIENT_STORAGE":507,"NETWORK_AUTHENTICATION_REQUIRED":511},"STATUS_CODE_INFO":{"100":{"code":100,"text":"Continue","description":"\"The initial part of a request has been received and has not yet been rejected by the server.\"","spec_title":"RFC7231#6.2.1","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.2.1"},"101":{"code":101,"text":"Switching Protocols","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.\"","spec_title":"RFC7231#6.2.2","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.2.2"},"102":{"code":102,"text":"Processing","description":"\"An interim response to inform the client that the server has accepted the complete request, but has not yet completed it.\"","spec_title":"RFC5218#10.1","spec_href":"http://tools.ietf.org/html/rfc2518#section-10.1"},"200":{"code":200,"text":"OK","description":"\"The request has succeeded.\"","spec_title":"RFC7231#6.3.1","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.3.1"},"201":{"code":201,"text":"Created","description":"\"The request has been fulfilled and has resulted in one or more new resources being created.\"","spec_title":"RFC7231#6.3.2","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.3.2"},"202":{"code":202,"text":"Accepted","description":"\"The request has been accepted for processing, but the processing has not been completed.\"","spec_title":"RFC7231#6.3.3","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.3.3"},"203":{"code":203,"text":"Non-Authoritative Information","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.\"","spec_title":"RFC7231#6.3.4","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.3.4"},"204":{"code":204,"text":"No Content","description":"\"The server has successfully fulfilled the request and that there is no additional content to send in the response payload body.\"","spec_title":"RFC7231#6.3.5","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.3.5"},"205":{"code":205,"text":"Reset Content","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.\"","spec_title":"RFC7231#6.3.6","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.3.6"},"206":{"code":206,"text":"Partial Content","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.\"","spec_title":"RFC7233#4.1","spec_href":"http://tools.ietf.org/html/rfc7233#section-4.1"},"207":{"code":207,"text":"Multi-Status","description":"\"Status for multiple independent operations.\"","spec_title":"RFC5218#10.2","spec_href":"http://tools.ietf.org/html/rfc2518#section-10.2"},"226":{"code":226,"text":"IM Used","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.\"","spec_title":"RFC3229#10.4.1","spec_href":"http://tools.ietf.org/html/rfc3229#section-10.4.1"},"300":{"code":300,"text":"Multiple Choices","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.\"","spec_title":"RFC7231#6.4.1","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.4.1"},"301":{"code":301,"text":"Moved Permanently","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.\"","spec_title":"RFC7231#6.4.2","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.4.2"},"302":{"code":302,"text":"Found","description":"\"The target resource resides temporarily under a different URI.\"","spec_title":"RFC7231#6.4.3","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.4.3"},"303":{"code":303,"text":"See Other","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.\"","spec_title":"RFC7231#6.4.4","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.4.4"},"304":{"code":304,"text":"Not Modified","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.\"","spec_title":"RFC7232#4.1","spec_href":"http://tools.ietf.org/html/rfc7232#section-4.1"},"305":{"code":305,"text":"Use Proxy","description":"*deprecated*","spec_title":"RFC7231#6.4.5","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.4.5"},"307":{"code":307,"text":"Temporary Redirect","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.\"","spec_title":"RFC7231#6.4.7","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.4.7"},"308":{"code":308,"text":"Permanent Redirect","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.\"","spec_title":"RFC7238","spec_href":"http://tools.ietf.org/html/rfc7238"},"400":{"code":400,"text":"Bad Request","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.\"","spec_title":"RFC7231#6.5.1","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.1"},"401":{"code":401,"text":"Unauthorized","description":"\"The request has not been applied because it lacks valid authentication credentials for the target resource.\"","spec_title":"RFC7235#6.3.1","spec_href":"http://tools.ietf.org/html/rfc7235#section-3.1"},"402":{"code":402,"text":"Payment Required","description":"*reserved*","spec_title":"RFC7231#6.5.2","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.2"},"403":{"code":403,"text":"Forbidden","description":"\"The server understood the request but refuses to authorize it.\"","spec_title":"RFC7231#6.5.3","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.3"},"404":{"code":404,"text":"Not Found","description":"\"The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.\"","spec_title":"RFC7231#6.5.4","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.4"},"405":{"code":405,"text":"Method Not Allowed","description":"\"The method specified in the request-line is known by the origin server but not supported by the target resource.\"","spec_title":"RFC7231#6.5.5","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.5"},"406":{"code":406,"text":"Not Acceptable","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.\"","spec_title":"RFC7231#6.5.6","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.6"},"407":{"code":407,"text":"Proxy Authentication Required","description":"\"The client needs to authenticate itself in order to use a proxy.\"","spec_title":"RFC7231#6.3.2","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.3.2"},"408":{"code":408,"text":"Request Timeout","description":"\"The server did not receive a complete request message within the time that it was prepared to wait.\"","spec_title":"RFC7231#6.5.7","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.7"},"409":{"code":409,"text":"Conflict","description":"\"The request could not be completed due to a conflict with the current state of the resource.\"","spec_title":"RFC7231#6.5.8","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.8"},"410":{"code":410,"text":"Gone","description":"\"Access to the target resource is no longer available at the origin server and that this condition is likely to be permanent.\"","spec_title":"RFC7231#6.5.9","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.9"},"411":{"code":411,"text":"Length Required","description":"\"The server refuses to accept the request without a defined Content-Length.\"","spec_title":"RFC7231#6.5.10","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.10"},"412":{"code":412,"text":"Precondition Failed","description":"\"One or more preconditions given in the request header fields evaluated to false when tested on the server.\"","spec_title":"RFC7232#4.2","spec_href":"http://tools.ietf.org/html/rfc7232#section-4.2"},"413":{"code":413,"text":"Payload Too Large","description":"\"The server is refusing to process a request because the request payload is larger than the server is willing or able to process.\"","spec_title":"RFC7231#6.5.11","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.11"},"414":{"code":414,"text":"URI Too Long","description":"\"The server is refusing to service the request because the request-target is longer than the server is willing to interpret.\"","spec_title":"RFC7231#6.5.12","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.12"},"415":{"code":415,"text":"Unsupported Media Type","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.\"","spec_title":"RFC7231#6.5.13","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.13"},"416":{"code":416,"text":"Range Not Satisfiable","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.\"","spec_title":"RFC7233#4.4","spec_href":"http://tools.ietf.org/html/rfc7233#section-4.4"},"417":{"code":417,"text":"Expectation Failed","description":"\"The expectation given in the request's Expect header field could not be met by at least one of the inbound servers.\"","spec_title":"RFC7231#6.5.14","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.14"},"418":{"code":418,"text":"I'm a teapot","description":"\"1988 April Fools Joke. Returned by tea pots requested to brew coffee.\"","spec_title":"RFC 2324","spec_href":"https://tools.ietf.org/html/rfc2324"},"422":{"code":422,"text":"Unprocessable Entity","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.\"","spec_title":"RFC5218#10.3","spec_href":"http://tools.ietf.org/html/rfc2518#section-10.3"},"423":{"code":423,"text":"Locked","description":"\"The source or destination resource of a method is locked.\"","spec_title":"RFC5218#10.4","spec_href":"http://tools.ietf.org/html/rfc2518#section-10.4"},"424":{"code":424,"text":"Failed Dependency","description":"\"The method could not be performed on the resource because the requested action depended on another action and that action failed.\"","spec_title":"RFC5218#10.5","spec_href":"http://tools.ietf.org/html/rfc2518#section-10.5"},"426":{"code":426,"text":"Upgrade Required","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.\"","spec_title":"RFC7231#6.5.15","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.5.15"},"428":{"code":428,"text":"Precondition Required","description":"\"The origin server requires the request to be conditional.\"","spec_title":"RFC6585#3","spec_href":"http://tools.ietf.org/html/rfc6585#section-3"},"429":{"code":429,"text":"Too Many Requests","description":"\"The user has sent too many requests in a given amount of time (\"rate limiting\").\"","spec_title":"RFC6585#4","spec_href":"http://tools.ietf.org/html/rfc6585#section-4"},"431":{"code":431,"text":"Request Header Fields Too Large","description":"\"The server is unwilling to process the request because its header fields are too large.\"","spec_title":"RFC6585#5","spec_href":"http://tools.ietf.org/html/rfc6585#section-5"},"451":{"code":451,"text":"Unavailable For Legal Reasons","description":"\"The server is denying access to the resource in response to a legal demand.\"","spec_title":"draft-ietf-httpbis-legally-restricted-status","spec_href":"http://tools.ietf.org/html/draft-ietf-httpbis-legally-restricted-status"},"500":{"code":500,"text":"Internal Server Error","description":"\"The server encountered an unexpected condition that prevented it from fulfilling the request.\"","spec_title":"RFC7231#6.6.1","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.6.1"},"501":{"code":501,"text":"Not Implemented","description":"\"The server does not support the functionality required to fulfill the request.\"","spec_title":"RFC7231#6.6.2","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.6.2"},"502":{"code":502,"text":"Bad Gateway","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.\"","spec_title":"RFC7231#6.6.3","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.6.3"},"503":{"code":503,"text":"Service Unavailable","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.\"","spec_title":"RFC7231#6.6.4","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.6.4"},"504":{"code":504,"text":"Gateway Time-out","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.\"","spec_title":"RFC7231#6.6.5","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.6.5"},"505":{"code":505,"text":"HTTP Version Not Supported","description":"\"The server does not support, or refuses to support, the protocol version that was used in the request message.\"","spec_title":"RFC7231#6.6.6","spec_href":"http://tools.ietf.org/html/rfc7231#section-6.6.6"},"506":{"code":506,"text":"Variant Also Negotiates","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.\"","spec_title":"RFC2295#8.1","spec_href":"http://tools.ietf.org/html/rfc2295#section-8.1"},"507":{"code":507,"text":"Insufficient Storage","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.\"","spec_title":"RFC5218#10.6","spec_href":"http://tools.ietf.org/html/rfc2518#section-10.6"},"511":{"code":511,"text":"Network Authentication Required","description":"\"The client needs to authenticate to gain network access.\"","spec_title":"RFC6585#6","spec_href":"http://tools.ietf.org/html/rfc6585#section-6"}},"getStatusText":{"__symbolic":"function","parameters":["status"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"select","expression":{"__symbolic":"index","expression":{"__symbolic":"reference","name":"STATUS_CODE_INFO"},"index":{"__symbolic":"reference","name":"status"}},"member":"text"},"right":"Unknown Status"}},"isSuccess":{"__symbolic":"function","parameters":["status"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":">=","left":{"__symbolic":"reference","name":"status"},"right":200},"right":{"__symbolic":"binop","operator":"<","left":{"__symbolic":"reference","name":"status"},"right":300}}}}}] \ No newline at end of file diff --git a/in-memory-web-api.module.d.ts b/in-memory-web-api.module.d.ts deleted file mode 100644 index a149ebc..0000000 --- a/in-memory-web-api.module.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { ModuleWithProviders, Type } from '@angular/core'; -import { InMemoryBackendConfigArgs, InMemoryDbService } from './interfaces'; -export declare class InMemoryWebApiModule { - /** - * Redirect BOTH Angular `Http` and `HttpClient` XHR calls - * to in-memory data store that implements `InMemoryDbService`. - * with class that implements InMemoryDbService and creates an in-memory database. - * - * Usually imported in the root application module. - * Can import in a lazy feature module too, which will shadow modules loaded earlier - * - * @param {Type} dbCreator - Class that creates seed data for in-memory database. Must implement InMemoryDbService. - * @param {InMemoryBackendConfigArgs} [options] - * - * @example - * InMemoryWebApiModule.forRoot(dbCreator); - * InMemoryWebApiModule.forRoot(dbCreator, {useValue: {delay:600}}); - */ - static forRoot(dbCreator: Type, options?: InMemoryBackendConfigArgs): ModuleWithProviders; - /** - * - * Enable and configure the in-memory web api in a lazy-loaded feature module. - * Same as `forRoot`. - * This is a feel-good method so you can follow the Angular style guide for lazy-loaded modules. - */ - static forFeature(dbCreator: Type, options?: InMemoryBackendConfigArgs): ModuleWithProviders; -} diff --git a/in-memory-web-api.module.js b/in-memory-web-api.module.js deleted file mode 100644 index 3f63e7f..0000000 --- a/in-memory-web-api.module.js +++ /dev/null @@ -1,58 +0,0 @@ -////// For apps with both Http and HttpClient //// -import { Injector, NgModule } from '@angular/core'; -import { XHRBackend } from '@angular/http'; -import { HttpBackend, XhrFactory } from '@angular/common/http'; -import { InMemoryBackendConfig, InMemoryDbService } from './interfaces'; -import { httpInMemBackendServiceFactory } from './http-in-memory-web-api.module'; -import { httpClientInMemBackendServiceFactory } from './http-client-in-memory-web-api.module'; -var InMemoryWebApiModule = (function () { - function InMemoryWebApiModule() { - } - /** - * Redirect BOTH Angular `Http` and `HttpClient` XHR calls - * to in-memory data store that implements `InMemoryDbService`. - * with class that implements InMemoryDbService and creates an in-memory database. - * - * Usually imported in the root application module. - * Can import in a lazy feature module too, which will shadow modules loaded earlier - * - * @param {Type} dbCreator - Class that creates seed data for in-memory database. Must implement InMemoryDbService. - * @param {InMemoryBackendConfigArgs} [options] - * - * @example - * InMemoryWebApiModule.forRoot(dbCreator); - * InMemoryWebApiModule.forRoot(dbCreator, {useValue: {delay:600}}); - */ - InMemoryWebApiModule.forRoot = function (dbCreator, options) { - return { - ngModule: InMemoryWebApiModule, - providers: [ - { provide: InMemoryDbService, useClass: dbCreator }, - { provide: InMemoryBackendConfig, useValue: options }, - { provide: XHRBackend, - useFactory: httpInMemBackendServiceFactory, - deps: [Injector, InMemoryDbService, InMemoryBackendConfig] }, - { provide: HttpBackend, - useFactory: httpClientInMemBackendServiceFactory, - deps: [InMemoryDbService, InMemoryBackendConfig, XhrFactory] } - ] - }; - }; - /** - * - * Enable and configure the in-memory web api in a lazy-loaded feature module. - * Same as `forRoot`. - * This is a feel-good method so you can follow the Angular style guide for lazy-loaded modules. - */ - InMemoryWebApiModule.forFeature = function (dbCreator, options) { - return InMemoryWebApiModule.forRoot(dbCreator, options); - }; - return InMemoryWebApiModule; -}()); -export { InMemoryWebApiModule }; -InMemoryWebApiModule.decorators = [ - { type: NgModule, args: [{},] }, -]; -/** @nocollapse */ -InMemoryWebApiModule.ctorParameters = function () { return []; }; -//# sourceMappingURL=in-memory-web-api.module.js.map \ No newline at end of file diff --git a/in-memory-web-api.module.js.map b/in-memory-web-api.module.js.map deleted file mode 100644 index 1c3ba3f..0000000 --- a/in-memory-web-api.module.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["in-memory-web-api.module.ts"],"names":[],"mappings":"AAAA,kDAAC;AAED,OAAO,EAAE,QAAA,EAAU,QAAA,EAAoC,MAAO,eAAA,CAAgB;AAC9E,OAAO,EAAE,UAAA,EAAW,MAAO,eAAA,CAAgB;AAC3C,OAAO,EAAE,WAAA,EAAa,UAAA,EAAW,MAAO,sBAAA,CAAuB;AAE/D,OAAO,EAEL,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,cAAA,CAAe;AAEtB,OAAO,EAAE,8BAAA,EAA+B,MAAO,iCAAA,CAAkC;AACjF,OAAO,EAAE,oCAAA,EAAqC,MAAO,wCAAA,CAAyC;AAG9F;IAAA;IAiDA,CAAC;IAhDC;;;;;;;;;;;;;;MAcE;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;gBAErD,EAAE,OAAO,EAAE,UAAU;oBACnB,UAAU,EAAE,8BAA8B;oBAC1C,IAAI,EAAE,CAAC,QAAQ,EAAE,iBAAiB,EAAE,qBAAqB,CAAC,EAAC;gBAE7D,EAAE,OAAO,EAAE,WAAW;oBACpB,UAAU,EAAE,oCAAoC;oBAChD,IAAI,EAAE,CAAC,iBAAiB,EAAE,qBAAqB,EAAE,UAAU,CAAC,EAAC;aAChE;SACF,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACI,+BAAU,GAAjB,UAAkB,SAAkC,EAAE,OAAmC;QACvF,MAAM,CAAC,oBAAoB,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAOH,2BAAC;AAAD,CAjDA,AAiDC;;AANM,+BAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE,EAAG,EAAE;CAC/B,CAAC;AACF,kBAAkB;AACX,mCAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC","file":"in-memory-web-api.module.js","sourceRoot":"","sourcesContent":["////// For apps with both Http and HttpClient ////\n\nimport { Injector, NgModule, ModuleWithProviders, Type } from '@angular/core';\nimport { XHRBackend } from '@angular/http';\nimport { HttpBackend, XhrFactory } from '@angular/common/http';\n\nimport {\n InMemoryBackendConfigArgs,\n InMemoryBackendConfig,\n InMemoryDbService\n} from './interfaces';\n\nimport { httpInMemBackendServiceFactory } from './http-in-memory-web-api.module';\nimport { httpClientInMemBackendServiceFactory } from './http-client-in-memory-web-api.module';\n\n\nexport class InMemoryWebApiModule {\n /**\n * Redirect BOTH Angular `Http` and `HttpClient` XHR calls\n * to in-memory data store that implements `InMemoryDbService`.\n * with class that implements InMemoryDbService and creates an in-memory database.\n *\n * Usually imported in the root application module.\n * Can import in a lazy feature module too, which will shadow modules loaded earlier\n *\n * @param {Type} dbCreator - Class that creates seed data for in-memory database. Must implement InMemoryDbService.\n * @param {InMemoryBackendConfigArgs} [options]\n *\n * @example\n * InMemoryWebApiModule.forRoot(dbCreator);\n * InMemoryWebApiModule.forRoot(dbCreator, {useValue: {delay:600}});\n */\n static forRoot(dbCreator: Type, options?: InMemoryBackendConfigArgs): ModuleWithProviders {\n return {\n ngModule: InMemoryWebApiModule,\n providers: [\n { provide: InMemoryDbService, useClass: dbCreator },\n { provide: InMemoryBackendConfig, useValue: options },\n\n { provide: XHRBackend,\n useFactory: httpInMemBackendServiceFactory,\n deps: [Injector, InMemoryDbService, InMemoryBackendConfig]},\n\n { provide: HttpBackend,\n useFactory: httpClientInMemBackendServiceFactory,\n deps: [InMemoryDbService, InMemoryBackendConfig, XhrFactory]}\n ]\n };\n }\n\n /**\n *\n * Enable and configure the in-memory web api in a lazy-loaded feature module.\n * Same as `forRoot`.\n * This is a feel-good method so you can follow the Angular style guide for lazy-loaded modules.\n */\n static forFeature(dbCreator: Type, options?: InMemoryBackendConfigArgs): ModuleWithProviders {\n return InMemoryWebApiModule.forRoot(dbCreator, options);\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: NgModule, args: [{}, ] },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\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.metadata.json b/in-memory-web-api.module.metadata.json deleted file mode 100644 index 80792b3..0000000 --- a/in-memory-web-api.module.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"InMemoryWebApiModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["dbCreator","options"],"value":{"ngModule":{"__symbolic":"reference","name":"InMemoryWebApiModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService"},"useClass":{"__symbolic":"reference","name":"dbCreator"}},{"provide":{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig"},"useValue":{"__symbolic":"reference","name":"options"}},{"provide":{"__symbolic":"reference","module":"@angular/http","name":"XHRBackend"},"useFactory":{"__symbolic":"reference","module":"./http-in-memory-web-api.module","name":"httpInMemBackendServiceFactory"},"deps":[{"__symbolic":"reference","module":"@angular/core","name":"Injector"},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService"},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig"}]},{"provide":{"__symbolic":"reference","module":"@angular/common/http","name":"HttpBackend"},"useFactory":{"__symbolic":"reference","module":"./http-client-in-memory-web-api.module","name":"httpClientInMemBackendServiceFactory"},"deps":[{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService"},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig"},{"__symbolic":"reference","module":"@angular/common/http","name":"XhrFactory"}]}]}},"forFeature":{"__symbolic":"function","parameters":["dbCreator","options"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"InMemoryWebApiModule"},"member":"forRoot"},"arguments":[{"__symbolic":"reference","name":"dbCreator"},{"__symbolic":"reference","name":"options"}]}}}}}},{"__symbolic":"module","version":1,"metadata":{"InMemoryWebApiModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["dbCreator","options"],"value":{"ngModule":{"__symbolic":"reference","name":"InMemoryWebApiModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService"},"useClass":{"__symbolic":"reference","name":"dbCreator"}},{"provide":{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig"},"useValue":{"__symbolic":"reference","name":"options"}},{"provide":{"__symbolic":"reference","module":"@angular/http","name":"XHRBackend"},"useFactory":{"__symbolic":"reference","module":"./http-in-memory-web-api.module","name":"httpInMemBackendServiceFactory"},"deps":[{"__symbolic":"reference","module":"@angular/core","name":"Injector"},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService"},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig"}]},{"provide":{"__symbolic":"reference","module":"@angular/common/http","name":"HttpBackend"},"useFactory":{"__symbolic":"reference","module":"./http-client-in-memory-web-api.module","name":"httpClientInMemBackendServiceFactory"},"deps":[{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService"},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig"},{"__symbolic":"reference","module":"@angular/common/http","name":"XhrFactory"}]}]}},"forFeature":{"__symbolic":"function","parameters":["dbCreator","options"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"InMemoryWebApiModule"},"member":"forRoot"},"arguments":[{"__symbolic":"reference","name":"dbCreator"},{"__symbolic":"reference","name":"options"}]}}}}}}] \ No newline at end of file diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 9b57d66..0000000 --- a/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export * from './backend.service'; -export * from './http-status-codes'; -export * from './http-backend.service'; -export * from './http-client-backend.service'; -export * from './in-memory-web-api.module'; -export * from './http-in-memory-web-api.module'; -export * from './http-client-in-memory-web-api.module'; -export * from './interfaces'; diff --git a/index.js b/index.js deleted file mode 100644 index b66def5..0000000 --- a/index.js +++ /dev/null @@ -1,9 +0,0 @@ -export * from './backend.service'; -export * from './http-status-codes'; -export * from './http-backend.service'; -export * from './http-client-backend.service'; -export * from './in-memory-web-api.module'; -export * from './http-in-memory-web-api.module'; -export * from './http-client-in-memory-web-api.module'; -export * from './interfaces'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/index.js.map b/index.js.map deleted file mode 100644 index a0df880..0000000 --- a/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC;AACvD,cAAc,cAAc,CAAC","file":"index.js","sourceRoot":"","sourcesContent":["export * from './backend.service';\nexport * from './http-status-codes';\nexport * from './http-backend.service';\nexport * from './http-client-backend.service';\nexport * from './in-memory-web-api.module';\nexport * from './http-in-memory-web-api.module';\nexport * from './http-client-in-memory-web-api.module';\nexport * from './interfaces';\n"]} \ No newline at end of file diff --git a/index.metadata.json b/index.metadata.json deleted file mode 100644 index 7fdb93e..0000000 --- a/index.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./backend.service"},{"from":"./http-status-codes"},{"from":"./http-backend.service"},{"from":"./http-client-backend.service"},{"from":"./in-memory-web-api.module"},{"from":"./http-in-memory-web-api.module"},{"from":"./http-client-in-memory-web-api.module"},{"from":"./interfaces"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./backend.service"},{"from":"./http-status-codes"},{"from":"./http-backend.service"},{"from":"./http-client-backend.service"},{"from":"./in-memory-web-api.module"},{"from":"./http-in-memory-web-api.module"},{"from":"./http-client-in-memory-web-api.module"},{"from":"./interfaces"}]}] \ No newline at end of file diff --git a/interfaces.d.ts b/interfaces.d.ts deleted file mode 100644 index fd8f9df..0000000 --- a/interfaces.d.ts +++ /dev/null @@ -1,240 +0,0 @@ -import { Observable } from 'rxjs/Observable'; -/** - * Minimum definition needed by base class - */ -export interface HeadersCore { - set(name: string, value: string): void | any; -} -/** -* Interface for a class that creates an in-memory database -* -* Its `createDb` method creates a hash of named collections that represents the database -* -* For maximum flexibility, the service may define HTTP method overrides. -* Such methods must match the spelling of an HTTP method in lower case (e.g, "get"). -* If a request has a matching method, it will be called as in -* `get(info: requestInfo, db: {})` where `db` is the database object described above. -*/ -export declare abstract class InMemoryDbService { - /** - * Creates an in-memory "database" hash whose keys are collection names - * and whose values are arrays of collection objects to return or update. - * - * returns Observable of the database because could have to create it asynchronously. - * - * This method must be safe to call repeatedly. - * Each time it should return a new object with new arrays containing new item objects. - * This condition allows the in-memory backend service to mutate the collections - * and their items without touching the original source data. - * - * The in-mem backend service calls this method without a value the first time. - * The service calls it with the `RequestInfo` when it receives a POST `commands/resetDb` request. - * Your InMemoryDbService can adjust its behavior accordingly. - */ - abstract createDb(reqInfo?: RequestInfo): {} | Observable<{}> | Promise<{}>; -} -/** -* Interface for InMemoryBackend configuration options -*/ -export declare abstract class InMemoryBackendConfigArgs { - /** - * The base path to the api, e.g, 'api/'. - * If not specified than `parseRequestUrl` assumes it is the first path segment in the request. - */ - apiBase?: string; - /** - * false (default) if search match should be case insensitive - */ - caseSensitiveSearch?: boolean; - /** - * false (default) put content directly inside the response body. - * true: encapsulate content in a `data` property inside the response body, `{ data: ... }`. - */ - dataEncapsulation?: boolean; - /** - * delay (in ms) to simulate latency - */ - delay?: number; - /** - * false (default) should 204 when object-to-delete not found; true: 404 - */ - delete404?: boolean; - /** - * host for this service, e.g., 'localhost' - */ - host?: string; - /** - * false (default) should pass unrecognized request URL through to original backend; true: 404 - */ - passThruUnknownUrl?: boolean; - /** - * true (default) should NOT return the item (204) after a POST. false: return the item (200). - */ - post204?: boolean; - /** - * false (default) should NOT update existing item with POST. false: OK to update. - */ - post409?: boolean; - /** - * true (default) should NOT return the item (204) after a POST. false: return the item (200). - */ - put204?: boolean; - /** - * false (default) if item not found, create as new item; false: should 404. - */ - put404?: boolean; - /** - * root path _before_ any API call, e.g., '' - */ - rootPath?: string; -} -/** -* InMemoryBackendService configuration options -* Usage: -* InMemoryWebApiModule.forRoot(InMemHeroService, {delay: 600}) -* -* or if providing separately: -* provide(InMemoryBackendConfig, {useValue: {delay: 600}}), -*/ -export declare class InMemoryBackendConfig implements InMemoryBackendConfigArgs { - constructor(config?: InMemoryBackendConfigArgs); -} -/** Return information (UriInfo) about a URI */ -export declare function parseUri(str: string): UriInfo; -/** - * - * Interface for the result of the `parseRequestUrl` method: - * Given URL "http://localhost:8080/api/customers/42?foo=1 the default implementation returns - * base: 'api/' - * collectionName: 'customers' - * id: '42' - * query: this.createQuery('foo=1') - * resourceUrl: 'http://localhost/api/customers/' - */ -export interface ParsedRequestUrl { - apiBase: string; - collectionName: string; - id: string; - query: Map; - resourceUrl: string; -} -export interface PassThruBackend { - /** - * Handle an HTTP request and return an Observable of HTTP response - * Both the request type and the response type are determined by the supporting HTTP library. - */ - handle(req: any): Observable; -} -export declare function removeTrailingSlash(path: string): string; -/** - * Minimum definition needed by base class - */ -export interface RequestCore { - url: string; - urlWithParams?: string; -} -/** -* Interface for object w/ info about the current request url -* extracted from an Http Request. -* Also holds utility methods and configuration data from this service -*/ -export interface RequestInfo { - req: RequestCore; - apiBase: string; - collectionName: string; - collection: any; - headers: HeadersCore; - method: string; - id: any; - query: Map; - resourceUrl: string; - url: string; - utils: RequestInfoUtilities; -} -/** - * Interface for utility methods from this service instance. - * Useful within an HTTP method override - */ -export interface RequestInfoUtilities { - /** - * Create a cold response Observable from a factory for ResponseOptions - * the same way that the in-mem backend service does. - * @param resOptionsFactory - creates ResponseOptions when observable is subscribed - * @param withDelay - if true (default), add simulated latency delay from configuration - */ - createResponse$: (resOptionsFactory: () => ResponseOptions) => Observable; - /** - * Find first instance of item in collection by `item.id` - * @param collection - * @param id - */ - findById(collection: T[], id: any): T; - /** return the current, active configuration which is a blend of defaults and overrides */ - getConfig(): InMemoryBackendConfigArgs; - /** Get the in-mem service's copy of the "database" */ - getDb(): {}; - /** Get JSON body from the request object */ - getJsonBody(req: any): any; - /** Get location info from a url, even on server where `document` is not defined */ - getLocation(url: string): UriInfo; - /** Get (or create) the "real" backend */ - getPassThruBackend(): PassThruBackend; - /** - * return true if can determine that the collection's `item.id` is a number - * */ - isCollectionIdNumeric(collection: T[], collectionName: string): boolean; - /** - * Parses the request URL into a `ParsedRequestUrl` object. - * Parsing depends upon certain values of `config`: `apiBase`, `host`, and `urlRoot`. - */ - parseRequestUrl(url: string): ParsedRequestUrl; -} -/** - * Provide a `responseInterceptor` method of this type in your `inMemDbService` to - * morph the response options created in the `collectionHandler`. - */ -export declare type ResponseInterceptor = (res: ResponseOptions, ri: RequestInfo) => ResponseOptions; -export interface ResponseOptions { - /** - * String, Object, ArrayBuffer or Blob representing the body of the {@link Response}. - */ - body?: string | Object | ArrayBuffer | Blob; - /** - * Response headers - */ - headers?: HeadersCore; - /** - * Http {@link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html status code} - * associated with the response. - */ - status?: number; - /** - * Status text for the status code - */ - statusText?: string; - /** - * request url - */ - url?: string; -} -/** Interface of information about a Uri */ -export interface UriInfo { - source: string; - protocol: string; - authority: string; - userInfo: string; - user: string; - password: string; - host: string; - port: string; - relative: string; - path: string; - directory: string; - file: string; - query: string; - anchor: string; -} diff --git a/interfaces.js b/interfaces.js deleted file mode 100644 index bb72383..0000000 --- a/interfaces.js +++ /dev/null @@ -1,97 +0,0 @@ -import { Injectable } from '@angular/core'; -/** -* Interface for a class that creates an in-memory database -* -* Its `createDb` method creates a hash of named collections that represents the database -* -* For maximum flexibility, the service may define HTTP method overrides. -* Such methods must match the spelling of an HTTP method in lower case (e.g, "get"). -* If a request has a matching method, it will be called as in -* `get(info: requestInfo, db: {})` where `db` is the database object described above. -*/ -var InMemoryDbService = (function () { - function InMemoryDbService() { - } - return InMemoryDbService; -}()); -export { InMemoryDbService }; -/** -* Interface for InMemoryBackend configuration options -*/ -var InMemoryBackendConfigArgs = (function () { - function InMemoryBackendConfigArgs() { - } - return InMemoryBackendConfigArgs; -}()); -export { InMemoryBackendConfigArgs }; -///////////////////////////////// -/** -* InMemoryBackendService configuration options -* Usage: -* InMemoryWebApiModule.forRoot(InMemHeroService, {delay: 600}) -* -* or if providing separately: -* provide(InMemoryBackendConfig, {useValue: {delay: 600}}), -*/ -var InMemoryBackendConfig = (function () { - function InMemoryBackendConfig(config) { - if (config === void 0) { config = {}; } - Object.assign(this, { - // default config: - caseSensitiveSearch: false, - dataEncapsulation: false, - delay: 500, - delete404: false, - passThruUnknownUrl: false, - post204: true, - post409: false, - put204: true, - put404: false, - apiBase: undefined, - host: undefined, - rootPath: undefined // default value is actually set in InMemoryBackendService ctor - }, config); - } - return InMemoryBackendConfig; -}()); -export { InMemoryBackendConfig }; -InMemoryBackendConfig.decorators = [ - { type: Injectable }, -]; -/** @nocollapse */ -InMemoryBackendConfig.ctorParameters = function () { return [ - { type: InMemoryBackendConfigArgs, }, -]; }; -/** Return information (UriInfo) about a URI */ -export function parseUri(str) { - // Adapted from parseuri package - http://blog.stevenlevithan.com/archives/parseuri - // tslint:disable-next-line:max-line-length - var URL_REGEX = /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/; - var m = URL_REGEX.exec(str); - var uri = { - source: '', - protocol: '', - authority: '', - userInfo: '', - user: '', - password: '', - host: '', - port: '', - relative: '', - path: '', - directory: '', - file: '', - query: '', - anchor: '' - }; - var keys = Object.keys(uri); - var i = keys.length; - while (i--) { - uri[keys[i]] = m[i] || ''; - } - return uri; -} -export function removeTrailingSlash(path) { - return path.replace(/\/$/, ''); -} -//# sourceMappingURL=interfaces.js.map \ No newline at end of file diff --git a/interfaces.js.map b/interfaces.js.map deleted file mode 100644 index 503900c..0000000 --- a/interfaces.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAA,EAAW,MAAO,eAAA,CAAgB;AAU3C;;;;;;;;;EASE;AACF;IAAA;IAiBA,CAAC;IAAD,wBAAC;AAAD,CAjBA,AAiBC,IAAA;;AAED;;EAEE;AACF;IAAA;IAmDA,CAAC;IAAD,gCAAC;AAAD,CAnDA,AAmDC,IAAA;;AAED,iCAAiC;AACjC;;;;;;;EAOE;AAEF;IACE,+BAAY,MAAsC;QAAtC,uBAAA,EAAA,WAAsC;QAChD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE;YAClB,kBAAkB;YAClB,mBAAmB,EAAE,KAAK;YAC1B,iBAAiB,EAAE,KAAK;YACxB,KAAK,EAAE,GAAG;YACV,SAAS,EAAE,KAAK;YAChB,kBAAkB,EAAE,KAAK;YACzB,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,KAAK;YACd,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,SAAS,CAAC,+DAA+D;SACpF,EAAE,MAAM,CAAC,CAAC;IACb,CAAC;IAQH,4BAAC;AAAD,CAzBA,AAyBC;;AAPM,gCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,UAAU,EAAE;CACnB,CAAC;AACF,kBAAkB;AACX,oCAAc,GAAmE,cAAM,OAAA;IAC9F,EAAC,IAAI,EAAE,yBAAyB,GAAG;CAClC,EAF6F,CAE7F,CAAC;AAGF,gDAAgD;AAChD,MAAM,mBAPmB,GAAK;IAQ5B,mFAAmF;IACnF,2CAA2C;IAC3C,IAPM,SAAA,GAAY,kMAAA,CAAmM;IAQrN,IAPM,CAAA,GAAI,SAAA,CAAU,IAAC,CAAI,GAAC,CAAG,CAAC;IAQ9B,IAPM,GAAA,GAAe;QAQnB,MAAM,EAPE,EAAA;QAQR,QAAQ,EAPE,EAAA;QAQV,SAAS,EAPE,EAAA;QAQX,QAAQ,EAPE,EAAA;QAQV,IAAI,EAPE,EAAA;QAQN,QAAQ,EAPE,EAAA;QAQV,IAAI,EAPE,EAAA;QAQN,IAAI,EAPE,EAAA;QAQN,QAAQ,EAPE,EAAA;QAQV,IAAI,EAPE,EAAA;QAQN,SAAS,EAPE,EAAA;QAQX,IAAI,EAPE,EAAA;QAQN,KAAK,EAPE,EAAA;QAQP,MAAM,EAPE,EAAA;KAQT,CAPC;IAQF,IAPM,IAAA,GAAO,MAAA,CAAO,IAAC,CAAI,GAAC,CAAG,CAAC;IAQ9B,IAPI,CAAA,GAAI,IAAA,CAAK,MAAC,CAAM;IASpB,OAAO,CAPC,EAAC,EAAG,CAAA;QAAE,GAAA,CAAI,IAAC,CAAI,CAAC,CAAC,CAAC,GAAG,CAAA,CAAE,CAAC,CAAC,IAAI,EAAA,CAAG;IAAC,CAAA;IAQzC,MAAM,CAPC,GAAA,CAAI;AAQb,CAAC;AA4BD,MAAM,8BAP8B,IAAM;IAQxC,MAAM,CAPC,IAAA,CAAK,OAAC,CAAO,KAAC,EAAM,EAAA,CAAG,CAAC;AAQjC,CAAC","file":"interfaces.js","sourceRoot":"","sourcesContent":["import { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs/Observable';\n\n/**\n * Minimum definition needed by base class\n */\nexport interface HeadersCore {\n set(name: string, value: string): void | any;\n}\n\n/**\n* Interface for a class that creates an in-memory database\n*\n* Its `createDb` method creates a hash of named collections that represents the database\n*\n* For maximum flexibility, the service may define HTTP method overrides.\n* Such methods must match the spelling of an HTTP method in lower case (e.g, \"get\").\n* If a request has a matching method, it will be called as in\n* `get(info: requestInfo, db: {})` where `db` is the database object described above.\n*/\nexport abstract class InMemoryDbService {\n /**\n * Creates an in-memory \"database\" hash whose keys are collection names\n * and whose values are arrays of collection objects to return or update.\n *\n * returns Observable of the database because could have to create it asynchronously.\n *\n * This method must be safe to call repeatedly.\n * Each time it should return a new object with new arrays containing new item objects.\n * This condition allows the in-memory backend service to mutate the collections\n * and their items without touching the original source data.\n *\n * The in-mem backend service calls this method without a value the first time.\n * The service calls it with the `RequestInfo` when it receives a POST `commands/resetDb` request.\n * Your InMemoryDbService can adjust its behavior accordingly.\n */\n abstract createDb(reqInfo?: RequestInfo): {} | Observable<{}> | Promise<{}>;\n}\n\n/**\n* Interface for InMemoryBackend configuration options\n*/\nexport abstract class InMemoryBackendConfigArgs {\n /**\n * The base path to the api, e.g, 'api/'.\n * If not specified than `parseRequestUrl` assumes it is the first path segment in the request.\n */\n apiBase?: string;\n /**\n * false (default) if search match should be case insensitive\n */\n caseSensitiveSearch?: boolean;\n /**\n * false (default) put content directly inside the response body.\n * true: encapsulate content in a `data` property inside the response body, `{ data: ... }`.\n */\n dataEncapsulation?: boolean;\n /**\n * delay (in ms) to simulate latency\n */\n delay?: number;\n /**\n * false (default) should 204 when object-to-delete not found; true: 404\n */\n delete404?: boolean;\n /**\n * host for this service, e.g., 'localhost'\n */\n host?: string;\n /**\n * false (default) should pass unrecognized request URL through to original backend; true: 404\n */\n passThruUnknownUrl?: boolean;\n /**\n * true (default) should NOT return the item (204) after a POST. false: return the item (200).\n */\n post204?: boolean;\n /**\n * false (default) should NOT update existing item with POST. false: OK to update.\n */\n post409?: boolean;\n /**\n * true (default) should NOT return the item (204) after a POST. false: return the item (200).\n */\n put204?: boolean;\n /**\n * false (default) if item not found, create as new item; false: should 404.\n */\n put404?: boolean;\n /**\n * root path _before_ any API call, e.g., ''\n */\n rootPath?: string;\n}\n\n/////////////////////////////////\n/**\n* InMemoryBackendService configuration options\n* Usage:\n* InMemoryWebApiModule.forRoot(InMemHeroService, {delay: 600})\n*\n* or if providing separately:\n* provide(InMemoryBackendConfig, {useValue: {delay: 600}}),\n*/\n\nexport class InMemoryBackendConfig implements InMemoryBackendConfigArgs {\n constructor(config: InMemoryBackendConfigArgs = {}) {\n Object.assign(this, {\n // default config:\n caseSensitiveSearch: false,\n dataEncapsulation: false, // do NOT wrap content within an object with a `data` property\n delay: 500, // simulate latency by delaying response\n delete404: false, // don't complain if can't find entity to delete\n passThruUnknownUrl: false, // 404 if can't process URL\n post204: true, // don't return the item after a POST\n post409: false, // don't update existing item with that ID\n put204: true, // don't return the item after a PUT\n put404: false, // create new item if PUT item with that ID not found\n apiBase: undefined, // assumed to be the first path segment\n host: undefined, // default value is actually set in InMemoryBackendService ctor\n rootPath: undefined // default value is actually set in InMemoryBackendService ctor\n }, config);\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: InMemoryBackendConfigArgs, },\n];\n}\n\n/** Return information (UriInfo) about a URI */\nexport function parseUri(str: string): UriInfo {\n // Adapted from parseuri package - http://blog.stevenlevithan.com/archives/parseuri\n // tslint:disable-next-line:max-line-length\n const URL_REGEX = /^(?:(?![^:@]+:[^:@\\/]*@)([^:\\/?#.]+):)?(?:\\/\\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\\/?#]*)(?::(\\d*))?)(((\\/(?:[^?#](?![^?#\\/]*\\.[^?#\\/.]+(?:[?#]|$)))*\\/?)?([^?#\\/]*))(?:\\?([^#]*))?(?:#(.*))?)/;\n const m = URL_REGEX.exec(str);\n const uri: UriInfo = {\n source: '',\n protocol: '',\n authority: '',\n userInfo: '',\n user: '',\n password: '',\n host: '',\n port: '',\n relative: '',\n path: '',\n directory: '',\n file: '',\n query: '',\n anchor: ''\n };\n const keys = Object.keys(uri);\n let i = keys.length;\n\n while (i--) { uri[keys[i]] = m[i] || ''; }\n return uri;\n}\n\n/**\n *\n * Interface for the result of the `parseRequestUrl` method:\n * Given URL \"http://localhost:8080/api/customers/42?foo=1 the default implementation returns\n * base: 'api/'\n * collectionName: 'customers'\n * id: '42'\n * query: this.createQuery('foo=1')\n * resourceUrl: 'http://localhost/api/customers/'\n */\nexport interface ParsedRequestUrl {\n apiBase: string; // the slash-terminated \"base\" for api requests (e.g. `api/`)\n collectionName: string; // the name of the collection of data items (e.g.,`customers`)\n id: string; // the (optional) id of the item in the collection (e.g., `42`)\n query: Map; // the query parameters;\n resourceUrl: string; // the effective URL for the resource (e.g., 'http://localhost/api/customers/')\n}\n\nexport interface PassThruBackend {\n /**\n * Handle an HTTP request and return an Observable of HTTP response\n * Both the request type and the response type are determined by the supporting HTTP library.\n */\n handle(req: any): Observable;\n}\n\nexport function removeTrailingSlash(path: string) {\n return path.replace(/\\/$/, '');\n}\n\n/**\n * Minimum definition needed by base class\n */\nexport interface RequestCore {\n url: string; // request URL\n urlWithParams?: string; // request URL with query parameters added by `HttpParams`\n}\n\n/**\n* Interface for object w/ info about the current request url\n* extracted from an Http Request.\n* Also holds utility methods and configuration data from this service\n*/\nexport interface RequestInfo {\n req: RequestCore; // concrete type depends upon the Http library\n apiBase: string;\n collectionName: string;\n collection: any;\n headers: HeadersCore;\n method: string;\n id: any;\n query: Map;\n resourceUrl: string;\n url: string; // request URL\n utils: RequestInfoUtilities;\n}\n\n/**\n * Interface for utility methods from this service instance.\n * Useful within an HTTP method override\n */\nexport interface RequestInfoUtilities {\n /**\n * Create a cold response Observable from a factory for ResponseOptions\n * the same way that the in-mem backend service does.\n * @param resOptionsFactory - creates ResponseOptions when observable is subscribed\n * @param withDelay - if true (default), add simulated latency delay from configuration\n */\n createResponse$: (resOptionsFactory: () => ResponseOptions) => Observable;\n\n /**\n * Find first instance of item in collection by `item.id`\n * @param collection\n * @param id\n */\n findById(collection: T[], id: any): T;\n\n /** return the current, active configuration which is a blend of defaults and overrides */\n getConfig(): InMemoryBackendConfigArgs;\n\n /** Get the in-mem service's copy of the \"database\" */\n getDb(): {};\n\n /** Get JSON body from the request object */\n getJsonBody(req: any): any;\n\n /** Get location info from a url, even on server where `document` is not defined */\n getLocation(url: string): UriInfo;\n\n /** Get (or create) the \"real\" backend */\n getPassThruBackend(): PassThruBackend;\n\n /**\n * return true if can determine that the collection's `item.id` is a number\n * */\n isCollectionIdNumeric(collection: T[], collectionName: string): boolean;\n\n /**\n * Parses the request URL into a `ParsedRequestUrl` object.\n * Parsing depends upon certain values of `config`: `apiBase`, `host`, and `urlRoot`.\n */\n parseRequestUrl(url: string): ParsedRequestUrl;\n}\n\n/**\n * Provide a `responseInterceptor` method of this type in your `inMemDbService` to\n * morph the response options created in the `collectionHandler`.\n */\nexport type ResponseInterceptor = (res: ResponseOptions, ri: RequestInfo) => ResponseOptions;\n\nexport interface ResponseOptions {\n /**\n * String, Object, ArrayBuffer or Blob representing the body of the {@link Response}.\n */\n body?: string | Object | ArrayBuffer | Blob;\n\n /**\n * Response headers\n */\n headers?: HeadersCore;\n\n /**\n * Http {@link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html status code}\n * associated with the response.\n */\n status?: number;\n\n /**\n * Status text for the status code\n */\n statusText?: string;\n /**\n * request url\n */\n url?: string;\n}\n\n/** Interface of information about a Uri */\nexport interface UriInfo {\n source: string;\n protocol: string;\n authority: string;\n userInfo: string;\n user: string;\n password: string;\n host: string;\n port: string;\n relative: string;\n path: string;\n directory: string;\n file: string;\n query: string;\n anchor: string;\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]} \ No newline at end of file diff --git a/interfaces.metadata.json b/interfaces.metadata.json deleted file mode 100644 index d3fddc9..0000000 --- a/interfaces.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":3,"metadata":{"HeadersCore":{"__symbolic":"interface"},"InMemoryDbService":{"__symbolic":"class","members":{"createDb":[{"__symbolic":"method"}]}},"InMemoryBackendConfigArgs":{"__symbolic":"class"},"InMemoryBackendConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"InMemoryBackendConfigArgs"}]}]}},"parseUri":{"__symbolic":"function"},"ParsedRequestUrl":{"__symbolic":"interface"},"PassThruBackend":{"__symbolic":"interface"},"removeTrailingSlash":{"__symbolic":"function","parameters":["path"],"value":{"__symbolic":"error","message":"Expression form not supported","line":181,"character":22}},"RequestCore":{"__symbolic":"interface"},"RequestInfo":{"__symbolic":"interface"},"RequestInfoUtilities":{"__symbolic":"interface"},"ResponseOptions":{"__symbolic":"interface"},"UriInfo":{"__symbolic":"interface"}}},{"__symbolic":"module","version":1,"metadata":{"HeadersCore":{"__symbolic":"interface"},"InMemoryDbService":{"__symbolic":"class","members":{"createDb":[{"__symbolic":"method"}]}},"InMemoryBackendConfigArgs":{"__symbolic":"class"},"InMemoryBackendConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"InMemoryBackendConfigArgs"}]}]}},"parseUri":{"__symbolic":"function"},"ParsedRequestUrl":{"__symbolic":"interface"},"PassThruBackend":{"__symbolic":"interface"},"removeTrailingSlash":{"__symbolic":"function","parameters":["path"],"value":{"__symbolic":"error","message":"Expression form not supported","line":181,"character":22}},"RequestCore":{"__symbolic":"interface"},"RequestInfo":{"__symbolic":"interface"},"RequestInfoUtilities":{"__symbolic":"interface"},"ResponseOptions":{"__symbolic":"interface"},"UriInfo":{"__symbolic":"interface"}}}] \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index f249bc5..5e26514 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,99 +5,158 @@ "requires": true, "dependencies": { "@angular/animations": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-4.3.6.tgz", - "integrity": "sha1-v5KD7HyMmLMvVp2E3NoQiQ/cAmI=", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-5.1.3.tgz", + "integrity": "sha512-DlcANlrQ2aaspCZZ6yHdEx1PaLKT1q3/xkdTgoKNTJfj9eautcrEuar8NoH0dkzXuQT0i9GewK6+zsF581rpdQ==", "dev": true, "requires": { "tslib": "1.8.0" } }, "@angular/common": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/@angular/common/-/common-4.3.6.tgz", - "integrity": "sha1-7TfpMHx1Bt2DR5fBps9nXlK1tu4=", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/@angular/common/-/common-5.1.3.tgz", + "integrity": "sha512-n0bzjfOVZH7+FPHQ3nnE3aAgMWebz4afO/Wh01LZNfVgcjdBxHblAYcMaoJeR7zW7f1zm51P6aDa4XlVtsVupQ==", "dev": true, "requires": { "tslib": "1.8.0" } }, "@angular/compiler": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-4.3.6.tgz", - "integrity": "sha1-vhcN8Ji3HoNczt8WjV+3sj5QRbg=", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-5.1.3.tgz", + "integrity": "sha512-YQyL52+CtduFqyodv3m+s8qNDRbmEyEv/ZZHEWNKxKFr7RQ5n7+pbjdincwGf2c2mBw4EqWLgyCdd9SFmjJd0w==", "dev": true, "requires": { "tslib": "1.8.0" } }, "@angular/compiler-cli": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-4.3.6.tgz", - "integrity": "sha1-avpq72jdaB5hs5i+TWJw5choCxI=", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-5.1.3.tgz", + "integrity": "sha512-5pmVgFch67qYxl04PitagfUgiw0k7Ak1Cvj5LY2gs0961SHo8qLRA2/4xUKAxv4rFy+fx2Qr9KD99YB+wbsb3A==", "dev": true, "requires": { - "@angular/tsc-wrapped": "4.3.6", + "chokidar": "1.7.0", "minimist": "1.2.0", - "reflect-metadata": "0.1.10" + "reflect-metadata": "0.1.12", + "tsickle": "0.25.6" + }, + "dependencies": { + "source-map-support": { + "version": "0.4.18", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", + "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", + "dev": true, + "requires": { + "source-map": "0.5.7" + } + }, + "tsickle": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/tsickle/-/tsickle-0.25.6.tgz", + "integrity": "sha1-tZXbFrI2chgk7u2ouyYjZbR+8zQ=", + "dev": true, + "requires": { + "minimist": "1.2.0", + "mkdirp": "0.5.1", + "source-map": "0.5.7", + "source-map-support": "0.4.18" + } + } } }, "@angular/core": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/@angular/core/-/core-4.3.6.tgz", - "integrity": "sha1-u6xj1o0Pe8s4nRKzQghlK+MofpY=", - "dev": true, - "requires": { - "tslib": "1.8.0" - } - }, - "@angular/http": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/@angular/http/-/http-4.3.6.tgz", - "integrity": "sha1-Vjgn0afV6J47fYa3f7vTZ7LAhZE=", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/@angular/core/-/core-5.1.3.tgz", + "integrity": "sha512-lGlILYCumA5s8Pf+egDW6kjlrEQwnpUG2fBQ4SNRChzzRoTWeJ1XPCrEI9YyFvC8qUsYcDIZwHWBXQQqhdEvmQ==", "dev": true, "requires": { "tslib": "1.8.0" } }, "@angular/platform-browser": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-4.3.6.tgz", - "integrity": "sha1-YVKx87eNAkb8XhUOL3ue1DN+O6Y=", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-5.1.3.tgz", + "integrity": "sha512-APMYMgEith68hsuSS8PpE0Dn1dEhJN1IkaIeL+ZlmhZQ4GktVAvMV2ySFYHoQofT5QIWEnvbT2r/cvgW9+8IUQ==", "dev": true, "requires": { "tslib": "1.8.0" } }, "@angular/platform-browser-dynamic": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-4.3.6.tgz", - "integrity": "sha1-nqv4JvEZyY+Fwqlu3LGKsAtO+xw=", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-5.1.3.tgz", + "integrity": "sha512-LKyHzN0LZqcw8nL19yJsbqPMBZ2nxPYFDkbsBicxfr9RHWbWbDuIZXY5l742guzAFBPHhccx9Lpjd3Gwxi7syg==", "dev": true, "requires": { "tslib": "1.8.0" } }, "@angular/platform-server": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/@angular/platform-server/-/platform-server-4.3.6.tgz", - "integrity": "sha1-Np1JhE8cCpoQx8upsMt4wlIHQaU=", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/@angular/platform-server/-/platform-server-5.1.3.tgz", + "integrity": "sha512-3E9rjaZtxODO75aEr3IfEWveVuY7w6DWKMjdNV4jDaRYbc70aP4fGPI0ynKZ8y94ty8mh9OlGTVzCo4l7BGcag==", "dev": true, "requires": { - "parse5": "3.0.2", + "domino": "1.0.30", "tslib": "1.8.0", "xhr2": "0.1.4" } }, "@angular/tsc-wrapped": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/@angular/tsc-wrapped/-/tsc-wrapped-4.3.6.tgz", - "integrity": "sha1-GqZuCrLEeZpK0UtnXhOVOqX81DY=", + "version": "4.4.6", + "resolved": "https://registry.npmjs.org/@angular/tsc-wrapped/-/tsc-wrapped-4.4.6.tgz", + "integrity": "sha1-Fnh8u/UL3H5zgSOxnDJSfyROF40=", "dev": true, "requires": { "tsickle": "0.21.6" + }, + "dependencies": { + "source-map-support": { + "version": "0.4.18", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", + "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", + "dev": true, + "requires": { + "source-map": "0.5.7" + } + }, + "tsickle": { + "version": "0.21.6", + "resolved": "https://registry.npmjs.org/tsickle/-/tsickle-0.21.6.tgz", + "integrity": "sha1-U7Abl5xcE/2xOvs/uVgXflmRWI0=", + "dev": true, + "requires": { + "minimist": "1.2.0", + "mkdirp": "0.5.1", + "source-map": "0.5.7", + "source-map-support": "0.4.18" + } + } } }, + "@ngtools/json-schema": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@ngtools/json-schema/-/json-schema-1.1.0.tgz", + "integrity": "sha1-w6DFRNYjkqzCgTpCyKDcb1j4aSI=", + "dev": true + }, + "@types/acorn": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/@types/acorn/-/acorn-4.0.3.tgz", + "integrity": "sha512-gou/kWQkGPMZjdCKNZGDpqxLm9+ErG/pFZKPX4tvCjr0Xf4FCYYX3nAsu7aDVKJV3KUe27+mvqqyWT/9VZoM/A==", + "dev": true, + "requires": { + "@types/estree": "0.0.38" + } + }, + "@types/estree": { + "version": "0.0.38", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.38.tgz", + "integrity": "sha512-F/v7t1LwS4vnXuPooJQGBRKRGIoxWUTmA4VHfqjOccFsNDThD5bfUNpITive6s352O7o384wcpEaDV8rHCehDA==", + "dev": true + }, "@types/jasmine": { "version": "2.5.54", "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-2.5.54.tgz", @@ -111,11 +170,21 @@ "dev": true }, "@types/node": { - "version": "6.0.90", - "resolved": "https://registry.npmjs.org/@types/node/-/node-6.0.90.tgz", - "integrity": "sha1-DtdIM/obc9zblAncscl+wKixOwI=", + "version": "9.4.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-9.4.7.tgz", + "integrity": "sha512-4Ba90mWNx8ddbafuyGGwjkZMigi+AWfYLSDCpovwsE63ia8w93r3oJ8PIAQc3y8U+XHcnMOHPIzNe3o438Ywcw==", "dev": true }, + "JSONStream": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.2.tgz", + "integrity": "sha1-wQI3G27Dp887hHygDCC7D85Mbeo=", + "dev": true, + "requires": { + "jsonparse": "1.3.1", + "through": "2.3.8" + } + }, "abbrev": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", @@ -147,12 +216,55 @@ "acorn": "4.0.13" } }, + "acorn-node": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.3.0.tgz", + "integrity": "sha512-efP54n3d1aLfjL2UMdaXa6DsswwzJeI5rqhbFvXMrKiJ6eJFpf+7R0zN7t8IC+XKn2YOAFAv6xbBNgHUkoHWLw==", + "dev": true, + "requires": { + "acorn": "5.5.3", + "xtend": "4.0.1" + }, + "dependencies": { + "acorn": { + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.5.3.tgz", + "integrity": "sha512-jd5MkIUlbbmb07nXH0DT3y7rDVtkzDi4XZOUVWAer8ajmF/DTSSbl5oNFyDOl/OXA33Bl79+ypHhl2pN20VeOQ==", + "dev": true + } + } + }, + "addressparser": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/addressparser/-/addressparser-1.0.1.tgz", + "integrity": "sha1-R6++GiqSYhkdtoOOT9HTm0CCF0Y=", + "dev": true, + "optional": true + }, "after": { "version": "0.8.2", "resolved": "https://registry.npmjs.org/after/-/after-0.8.2.tgz", "integrity": "sha1-/ts5T58OAqqXaOcCvaI7UF+ufh8=", "dev": true }, + "agent-base": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-2.1.1.tgz", + "integrity": "sha1-1t4Q1a9hMtW9aSQn1G/FOFOQlMc=", + "dev": true, + "requires": { + "extend": "3.0.1", + "semver": "5.0.3" + }, + "dependencies": { + "semver": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.0.3.tgz", + "integrity": "sha1-d0Zt5YnNXTyV8TiqeLxWmjy10no=", + "dev": true + } + } + }, "ajv": { "version": "4.11.8", "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz", @@ -186,6 +298,62 @@ "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", "dev": true }, + "amqplib": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/amqplib/-/amqplib-0.5.2.tgz", + "integrity": "sha512-l9mCs6LbydtHqRniRwYkKdqxVa6XMz3Vw1fh+2gJaaVgTM6Jk3o8RccAKWKtlhT1US5sWrFh+KKxsVUALURSIA==", + "dev": true, + "optional": true, + "requires": { + "bitsyntax": "0.0.4", + "bluebird": "3.5.1", + "buffer-more-ints": "0.0.2", + "readable-stream": "1.1.14", + "safe-buffer": "5.1.1" + } + }, + "ansi-align": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-2.0.0.tgz", + "integrity": "sha1-w2rsy6VjuJzrVW82kPCx2eNUf38=", + "dev": true, + "requires": { + "string-width": "2.1.1" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "2.0.0", + "strip-ansi": "4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + } + } + } + }, "ansi-cyan": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/ansi-cyan/-/ansi-cyan-0.1.1.tgz", @@ -232,12 +400,75 @@ "normalize-path": "2.1.1" } }, + "aproba": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", + "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", + "dev": true + }, "archy": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz", "integrity": "sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=", "dev": true }, + "are-we-there-yet": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz", + "integrity": "sha1-u13KOCu5TwXhUZQ3PRb9O6HKEQ0=", + "dev": true, + "requires": { + "delegates": "1.0.0", + "readable-stream": "2.3.5" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "process-nextick-args": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "dev": true + }, + "readable-stream": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", + "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "2.0.0", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "1.0.3" + } + }, "arr-diff": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", @@ -271,12 +502,30 @@ "integrity": "sha1-p5SvDAWrF1KEbudTofIRoFugxE8=", "dev": true }, + "array-filter": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/array-filter/-/array-filter-0.0.1.tgz", + "integrity": "sha1-fajPLiZijtcygDWB/SH2fKzS7uw=", + "dev": true + }, "array-find-index": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", "dev": true }, + "array-map": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/array-map/-/array-map-0.0.0.tgz", + "integrity": "sha1-iKK6tz0c97zVwbEYoAP2b2ZfpmI=", + "dev": true + }, + "array-reduce": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/array-reduce/-/array-reduce-0.0.0.tgz", + "integrity": "sha1-FziZ0//Rx9k4PkR5Ul2+J4yrXys=", + "dev": true + }, "array-slice": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-1.0.0.tgz", @@ -310,11 +559,12 @@ "integrity": "sha1-8zshWfBTKj8xB6JywMz70a0peco=", "dev": true }, - "arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", - "dev": true + "asap": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=", + "dev": true, + "optional": true }, "asn1": { "version": "0.2.3", @@ -348,10 +598,26 @@ "integrity": "sha1-104bh+ev/A24qttwIfP+SBAasjQ=", "dev": true }, + "ast-types": { + "version": "0.11.3", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.11.3.tgz", + "integrity": "sha512-XA5o5dsNw8MhyW0Q7MWXJWc4oOzZKbdsEJq45h7c8q/d9DwWZ5F2ugUc1PuMLPGsUnphCt/cNDHu8JeBbxf1qA==", + "dev": true, + "optional": true + }, + "astw": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/astw/-/astw-2.2.0.tgz", + "integrity": "sha1-e9QXhNMkk5h66yOba04cV6hzuRc=", + "dev": true, + "requires": { + "acorn": "4.0.13" + } + }, "async": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/async/-/async-0.9.0.tgz", - "integrity": "sha1-rDYTsdqb7RtHUQu0ZRuJMeRxRsc=", + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", + "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", "dev": true }, "async-each": { @@ -366,12 +632,38 @@ "integrity": "sha1-dhfBkXQB/Yykooqtzj266Yr+tDI=", "dev": true }, + "async-foreach": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/async-foreach/-/async-foreach-0.1.3.tgz", + "integrity": "sha1-NhIfhFwFeBct5Bmpfb6x0W7DRUI=", + "dev": true + }, + "async-limiter": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz", + "integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==", + "dev": true + }, "asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", "dev": true }, + "autoprefixer": { + "version": "7.2.6", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-7.2.6.tgz", + "integrity": "sha512-Iq8TRIB+/9eQ8rbGhcP7ct5cYb/3qjNYAR2SnzLCEcwF6rvVOax8+9+fccgXk4bEhQGjOZd5TLhsksmAdsbGqQ==", + "dev": true, + "requires": { + "browserslist": "2.11.3", + "caniuse-lite": "1.0.30000817", + "normalize-range": "0.1.2", + "num2fraction": "1.2.2", + "postcss": "6.0.20", + "postcss-value-parser": "3.3.0" + } + }, "aws-sign2": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz", @@ -384,6 +676,88 @@ "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4=", "dev": true }, + "axios": { + "version": "0.15.3", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.15.3.tgz", + "integrity": "sha1-LJ1jiy4ZGgjqHWzJiOrda6W9wFM=", + "dev": true, + "optional": true, + "requires": { + "follow-redirects": "1.0.0" + } + }, + "babel-code-frame": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", + "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", + "dev": true, + "requires": { + "chalk": "1.1.3", + "esutils": "2.0.2", + "js-tokens": "3.0.2" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + } + }, + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "babel-runtime": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", + "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", + "dev": true, + "requires": { + "core-js": "2.5.3", + "regenerator-runtime": "0.11.1" + } + }, "backo2": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/backo2/-/backo2-1.0.2.tgz", @@ -457,16 +831,69 @@ "integrity": "sha1-muuabF6IY4qtFx4Wf1kAq+JINdA=", "dev": true }, - "blob": { + "bitsyntax": { "version": "0.0.4", - "resolved": "https://registry.npmjs.org/blob/-/blob-0.0.4.tgz", + "resolved": "https://registry.npmjs.org/bitsyntax/-/bitsyntax-0.0.4.tgz", + "integrity": "sha1-6xDMb4K4xJDj6FaY8H6D1G4MuoI=", + "dev": true, + "optional": true, + "requires": { + "buffer-more-ints": "0.0.2" + } + }, + "bl": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/bl/-/bl-1.1.2.tgz", + "integrity": "sha1-/cqHGplxOqANGeO7ukHER4emU5g=", + "dev": true, + "optional": true, + "requires": { + "readable-stream": "2.0.6" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true, + "optional": true + }, + "readable-stream": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz", + "integrity": "sha1-j5A0HmilPMySh4jaz80Rs265t44=", + "dev": true, + "optional": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "string_decoder": "0.10.31", + "util-deprecate": "1.0.2" + } + } + } + }, + "blob": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/blob/-/blob-0.0.4.tgz", "integrity": "sha1-vPEwUspURj8w+fx+lbmkdjCpSSE=", "dev": true }, + "block-stream": { + "version": "0.0.9", + "resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz", + "integrity": "sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo=", + "dev": true, + "requires": { + "inherits": "2.0.3" + } + }, "bluebird": { "version": "3.5.1", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz", - "integrity": "sha1-2VUfnemPH82h5oPRfukaBgLuLrk=", + "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==", "dev": true }, "bn.js": { @@ -490,13 +917,13 @@ "on-finished": "2.3.0", "qs": "6.5.1", "raw-body": "2.3.2", - "type-is": "1.6.15" + "type-is": "1.6.16" }, "dependencies": { "qs": { "version": "6.5.1", "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz", - "integrity": "sha1-NJzfbu+J7EXBLX1es/wMhwNDptg=", + "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A==", "dev": true } } @@ -510,6 +937,95 @@ "hoek": "2.16.3" } }, + "boxen": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/boxen/-/boxen-1.3.0.tgz", + "integrity": "sha512-TNPjfTr432qx7yOjQyaXm3dSR0MH9vXp7eT1BFSl/C51g+EFnOR9hTg1IreahGBmDNCehscshe45f+C1TBZbLw==", + "dev": true, + "requires": { + "ansi-align": "2.0.0", + "camelcase": "4.1.0", + "chalk": "2.3.2", + "cli-boxes": "1.0.0", + "string-width": "2.1.1", + "term-size": "1.2.0", + "widest-line": "2.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "1.9.1" + } + }, + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "dev": true + }, + "chalk": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz", + "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", + "dev": true, + "requires": { + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.3.0" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "2.0.0", + "strip-ansi": "4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + } + }, + "supports-color": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", + "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", + "dev": true, + "requires": { + "has-flag": "3.0.0" + } + } + } + }, "brace-expansion": { "version": "1.1.8", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz", @@ -537,6 +1053,37 @@ "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=", "dev": true }, + "browser-pack": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/browser-pack/-/browser-pack-6.0.4.tgz", + "integrity": "sha512-Q4Rvn7P6ObyWfc4stqLWHtG1MJ8vVtjgT24Zbu+8UTzxYuZouqZsmNRRTFVMY/Ux0eIKv1d+JWzsInTX+fdHPQ==", + "dev": true, + "requires": { + "JSONStream": "1.3.2", + "combine-source-map": "0.8.0", + "defined": "1.0.0", + "safe-buffer": "5.1.1", + "through2": "2.0.3", + "umd": "3.0.3" + } + }, + "browser-resolve": { + "version": "1.11.2", + "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.2.tgz", + "integrity": "sha1-j/CbCixCFxihBRwmCzLkj0QpOM4=", + "dev": true, + "requires": { + "resolve": "1.1.7" + }, + "dependencies": { + "resolve": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", + "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=", + "dev": true + } + } + }, "browser-sync": { "version": "2.18.13", "resolved": "https://registry.npmjs.org/browser-sync/-/browser-sync-2.18.13.tgz", @@ -926,6 +1473,189 @@ "weinre": "2.0.0-pre-I0Z7U9OV" } }, + "browserify": { + "version": "14.5.0", + "resolved": "https://registry.npmjs.org/browserify/-/browserify-14.5.0.tgz", + "integrity": "sha512-gKfOsNQv/toWz+60nSPfYzuwSEdzvV2WdxrVPUbPD/qui44rAkB3t3muNtmmGYHqrG56FGwX9SUEQmzNLAeS7g==", + "dev": true, + "requires": { + "JSONStream": "1.3.2", + "assert": "1.4.1", + "browser-pack": "6.0.4", + "browser-resolve": "1.11.2", + "browserify-zlib": "0.2.0", + "buffer": "5.1.0", + "cached-path-relative": "1.0.1", + "concat-stream": "1.5.2", + "console-browserify": "1.1.0", + "constants-browserify": "1.0.0", + "crypto-browserify": "3.11.1", + "defined": "1.0.0", + "deps-sort": "2.0.0", + "domain-browser": "1.1.7", + "duplexer2": "0.1.4", + "events": "1.1.1", + "glob": "7.1.2", + "has": "1.0.1", + "htmlescape": "1.1.1", + "https-browserify": "1.0.0", + "inherits": "2.0.3", + "insert-module-globals": "7.0.4", + "labeled-stream-splicer": "2.0.0", + "module-deps": "4.1.1", + "os-browserify": "0.3.0", + "parents": "1.0.1", + "path-browserify": "0.0.0", + "process": "0.11.10", + "punycode": "1.4.1", + "querystring-es3": "0.2.1", + "read-only-stream": "2.0.0", + "readable-stream": "2.3.5", + "resolve": "1.4.0", + "shasum": "1.0.2", + "shell-quote": "1.6.1", + "stream-browserify": "2.0.1", + "stream-http": "2.7.2", + "string_decoder": "1.0.3", + "subarg": "1.0.0", + "syntax-error": "1.4.0", + "through2": "2.0.3", + "timers-browserify": "1.4.2", + "tty-browserify": "0.0.0", + "url": "0.11.0", + "util": "0.10.3", + "vm-browserify": "0.0.4", + "xtend": "4.0.1" + }, + "dependencies": { + "browserify-zlib": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", + "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", + "dev": true, + "requires": { + "pako": "1.0.6" + } + }, + "buffer": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.1.0.tgz", + "integrity": "sha512-YkIRgwsZwJWTnyQrsBTWefizHh+8GYj3kbL1BTiAQ/9pwpino0G7B2gp5tx/FUBqUlvtxV85KNR3mwfAtv15Yw==", + "dev": true, + "requires": { + "base64-js": "1.2.1", + "ieee754": "1.1.8" + } + }, + "concat-stream": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.5.2.tgz", + "integrity": "sha1-cIl4Yk2FavQaWnQd790mHadSwmY=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "readable-stream": "2.0.6", + "typedarray": "0.0.6" + }, + "dependencies": { + "readable-stream": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz", + "integrity": "sha1-j5A0HmilPMySh4jaz80Rs265t44=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "string_decoder": "0.10.31", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true + } + } + }, + "duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", + "dev": true, + "requires": { + "readable-stream": "2.3.5" + } + }, + "https-browserify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", + "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", + "dev": true + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "os-browserify": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", + "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=", + "dev": true + }, + "pako": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.6.tgz", + "integrity": "sha512-lQe48YPsMJAig+yngZ87Lus+NF+3mtu7DVOBu6b/gHO1YpKwIj5AWjZ/TOS7i46HD/UixzWb1zeWDZfGZ3iYcg==", + "dev": true + }, + "readable-stream": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", + "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "2.0.0", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + }, + "dependencies": { + "process-nextick-args": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "dev": true + } + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, + "timers-browserify": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz", + "integrity": "sha1-ycWLV1voQHN1y14kYtrO50NZ9B0=", + "dev": true, + "requires": { + "process": "0.11.10" + } + } + } + }, "browserify-aes": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.1.1.tgz", @@ -996,6 +1726,16 @@ "pako": "0.2.9" } }, + "browserslist": { + "version": "2.11.3", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-2.11.3.tgz", + "integrity": "sha512-yWu5cXT7Av6mVwzWc8lMsJMHWn4xyjSuGYi4IozbVTLUOEYPSagUB8kiMDUHA1fS3zjr8nkxkn9jdvug4BBRmA==", + "dev": true, + "requires": { + "caniuse-lite": "1.0.30000817", + "electron-to-chromium": "1.3.40" + } + }, "bs-recipes": { "version": "1.3.4", "resolved": "https://registry.npmjs.org/bs-recipes/-/bs-recipes-1.3.4.tgz", @@ -1021,12 +1761,46 @@ } } }, + "buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=", + "dev": true + }, + "buffer-from": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.0.0.tgz", + "integrity": "sha512-83apNb8KK0Se60UE1+4Ukbe3HbfELJ6UlI4ldtOGs7So4KD26orJM8hIY9lxdzP+UpItH1Yh/Y8GUvNFWFFRxA==", + "dev": true + }, + "buffer-more-ints": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/buffer-more-ints/-/buffer-more-ints-0.0.2.tgz", + "integrity": "sha1-JrOIXRD6E9t/wBquOquHAZngEkw=", + "dev": true + }, "buffer-xor": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=", "dev": true }, + "buildmail": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/buildmail/-/buildmail-4.0.1.tgz", + "integrity": "sha1-h393OLeHKYccmhBeO4N9K+EaenI=", + "dev": true, + "optional": true, + "requires": { + "addressparser": "1.0.1", + "libbase64": "0.1.0", + "libmime": "3.0.0", + "libqp": "1.1.0", + "nodemailer-fetch": "1.6.0", + "nodemailer-shared": "1.1.0", + "punycode": "1.4.1" + } + }, "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", @@ -1040,19 +1814,19 @@ "dev": true }, "bump-regex": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/bump-regex/-/bump-regex-2.8.0.tgz", - "integrity": "sha1-CObN/0f6rAuDqpqyF690PBc/yps=", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/bump-regex/-/bump-regex-3.1.0.tgz", + "integrity": "sha512-pgiPDUHh6bT/MDBU/nA1dU67337qD4MbrpQHmpDMiBChEsPEZwNelO25GenJrRYUXbWZuvsIZGLBChtN8Nxb+g==", "dev": true, "requires": { - "semver": "5.4.1", + "semver": "5.5.0", "xtend": "4.0.1" }, "dependencies": { "semver": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz", - "integrity": "sha1-4FnAnYVx8FQII3M0M1BdOi8AsY4=", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", + "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", "dev": true } } @@ -1063,6 +1837,12 @@ "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=", "dev": true }, + "cached-path-relative": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cached-path-relative/-/cached-path-relative-1.0.1.tgz", + "integrity": "sha1-0JxLUoAKpMB44t2BqGmqyQ0uVOc=", + "dev": true + }, "callsite": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz", @@ -1085,12 +1865,24 @@ "map-obj": "1.0.1" } }, + "caniuse-lite": { + "version": "1.0.30000817", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000817.tgz", + "integrity": "sha512-O68CSiZY4NuxdGT0gQO+2vtU07/FOrCUpGPYincrOjybQIdsSyWC9CWx+hhm+SnCTAwpG/AywH4cU5RAkqbFXA==", + "dev": true + }, "canonical-path": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/canonical-path/-/canonical-path-0.0.2.tgz", "integrity": "sha1-4x65N6jJPuKgHfGDl5RyGQKHRXQ=", "dev": true }, + "capture-stack-trace": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.0.tgz", + "integrity": "sha1-Sm+gc5nCa7pH8LJJa00PtAjFVQ0=", + "dev": true + }, "caseless": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", @@ -1155,6 +1947,27 @@ "safe-buffer": "5.1.1" } }, + "circular-json": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/circular-json/-/circular-json-0.5.1.tgz", + "integrity": "sha512-UjgcRlTAhAkLeXmDe2wK7ktwy/tgAqxiSndTIPiFZuIPLZmzHzWMwUIe9h9m/OokypG7snxCDEuwJshGBdPvaw==", + "dev": true + }, + "clean-css": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.1.11.tgz", + "integrity": "sha1-Ls3xRaujj1R0DybO/Q/z4D4SXWo=", + "dev": true, + "requires": { + "source-map": "0.5.7" + } + }, + "cli-boxes": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-1.0.0.tgz", + "integrity": "sha1-T6kXw+WclKAEzWH47lCdplFocUM=", + "dev": true + }, "cliui": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", @@ -1189,24 +2002,94 @@ "integrity": "sha1-Jgt6meux7f4kdTgXX3gyQ8sZ0Uk=", "dev": true }, + "clone-buffer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/clone-buffer/-/clone-buffer-1.0.0.tgz", + "integrity": "sha1-4+JbIHrE5wGvch4staFnksrD3Fg=", + "dev": true + }, "clone-stats": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-0.0.1.tgz", "integrity": "sha1-uI+UqCzzi4eR1YBG6kAprYjKmdE=", "dev": true }, - "co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", - "dev": true - }, - "code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "cloneable-readable": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/cloneable-readable/-/cloneable-readable-1.1.2.tgz", + "integrity": "sha512-Bq6+4t+lbM8vhTs/Bef5c5AdEMtapp/iFb6+s4/Hh9MVTt8OLKH7ZOOZSCT+Ys7hsHvqv0GuMPJ1lnQJVHvxpg==", + "dev": true, + "requires": { + "inherits": "2.0.3", + "process-nextick-args": "2.0.0", + "readable-stream": "2.3.5" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "process-nextick-args": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "dev": true + }, + "readable-stream": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", + "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "2.0.0", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, + "co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", + "dev": true + }, + "code-point-at": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", "dev": true }, + "color-convert": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.1.tgz", + "integrity": "sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, "colors": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/colors/-/colors-1.0.3.tgz", @@ -1219,7 +2102,19 @@ "integrity": "sha1-RYwH4J4NkA/Ci3Cj/sLazR0st/Y=", "dev": true, "requires": { - "lodash": "4.17.4" + "lodash": "4.17.5" + } + }, + "combine-source-map": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.8.0.tgz", + "integrity": "sha1-pY0N8ELBhvz4IqjoAV9UUNLXmos=", + "dev": true, + "requires": { + "convert-source-map": "1.1.3", + "inline-source-map": "0.6.2", + "lodash.memoize": "3.0.4", + "source-map": "0.5.7" } }, "combined-stream": { @@ -1237,6 +2132,12 @@ "integrity": "sha1-nfflL7Kgyw+4kFjugMMQQiXzfh0=", "dev": true }, + "commenting": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/commenting/-/commenting-1.0.5.tgz", + "integrity": "sha512-U7qGbcDLSNpOcV3RQRKHp7hFpy9WUmfawbkPdS4R2RhrSu4dOF85QQpx/Zjcv7uLF6tWSUKEKUIkxknPCrVjwg==", + "dev": true + }, "component-bind": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/component-bind/-/component-bind-1.0.0.tgz", @@ -1305,29 +2206,51 @@ } }, "concurrently": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-3.5.0.tgz", - "integrity": "sha1-jPG3cHppFqeKT/W3e7BN7FSzebI=", + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-3.5.1.tgz", + "integrity": "sha512-689HrwGw8Rbk1xtV9C4dY6TPJAvIYZbRbnKSAtfJ7tHqICFGoZ0PCWYjxfmerRyxBG0o3sbG3pe7N8vqPwIHuQ==", "dev": true, "requires": { "chalk": "0.5.1", "commander": "2.6.0", "date-fns": "1.29.0", - "lodash": "4.17.4", + "lodash": "4.17.5", "rx": "2.3.24", "spawn-command": "0.0.2-1", "supports-color": "3.2.3", "tree-kill": "1.2.0" } }, + "configstore": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/configstore/-/configstore-3.1.1.tgz", + "integrity": "sha512-5oNkD/L++l0O6xGXxb1EWS7SivtjfGQlRyxJsYgE0Z495/L81e2h4/d3r969hoPXuFItzNOKMtsXgYG4c7dYvw==", + "dev": true, + "requires": { + "dot-prop": "4.2.0", + "graceful-fs": "4.1.11", + "make-dir": "1.2.0", + "unique-string": "1.0.0", + "write-file-atomic": "2.3.0", + "xdg-basedir": "3.0.0" + }, + "dependencies": { + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "dev": true + } + } + }, "connect": { - "version": "3.6.5", - "resolved": "https://registry.npmjs.org/connect/-/connect-3.6.5.tgz", - "integrity": "sha1-+43ee6B2OHfQ7J352sC0tA5yx9o=", + "version": "3.6.6", + "resolved": "https://registry.npmjs.org/connect/-/connect-3.6.6.tgz", + "integrity": "sha1-Ce/2xVr3I24TcTWnJXSFi2eG9SQ=", "dev": true, "requires": { "debug": "2.6.9", - "finalhandler": "1.0.6", + "finalhandler": "1.1.0", "parseurl": "1.3.2", "utils-merge": "1.0.1" } @@ -1356,6 +2279,12 @@ "date-now": "0.1.4" } }, + "console-control-strings": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", + "dev": true + }, "constants-browserify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", @@ -1365,7 +2294,13 @@ "content-type": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", - "integrity": "sha1-4TjMdeBAxyexlm/l5fjJruJW/js=", + "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", + "dev": true + }, + "convert-source-map": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz", + "integrity": "sha1-SCnId+n+SbMWHzvzZziI4gRpmGA=", "dev": true }, "cookie": { @@ -1375,9 +2310,9 @@ "dev": true }, "core-js": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.1.tgz", - "integrity": "sha1-rmh03GaTd4m4B1T/VCjfZoGcpQs=", + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.3.tgz", + "integrity": "sha1-isw4NFgk8W2DZbfJtCWRaOjtYD4=", "dev": true }, "core-util-is": { @@ -1392,6 +2327,25 @@ "integrity": "sha1-jtolLsqrWEDc2XXOuQ2TcMgZ/4c=", "dev": true }, + "cpx": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/cpx/-/cpx-1.5.0.tgz", + "integrity": "sha1-GFvgGFEdhycN7czCkxceN2VauI8=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "chokidar": "1.7.0", + "duplexer": "0.1.1", + "glob": "7.1.2", + "glob2base": "0.0.12", + "minimatch": "3.0.4", + "mkdirp": "0.5.1", + "resolve": "1.4.0", + "safe-buffer": "5.1.1", + "shell-quote": "1.6.1", + "subarg": "1.0.0" + } + }, "create-ecdh": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.0.tgz", @@ -1402,6 +2356,15 @@ "elliptic": "6.4.0" } }, + "create-error-class": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz", + "integrity": "sha1-Br56vvlHo/FKMP1hBnHUAbyot7Y=", + "dev": true, + "requires": { + "capture-stack-trace": "1.0.0" + } + }, "create-hash": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.1.3.tgz", @@ -1428,6 +2391,29 @@ "sha.js": "2.4.9" } }, + "cross-spawn": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", + "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", + "dev": true, + "requires": { + "lru-cache": "4.1.2", + "shebang-command": "1.2.0", + "which": "1.3.0" + }, + "dependencies": { + "lru-cache": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.2.tgz", + "integrity": "sha512-wgeVXhrDwAWnIF/yZARsFnMBtdFXOg1b8RIrhilp+0iDYN4mdQcNZElDZ0e4B64BhaxeQ5zN7PMyvu7we1kPeQ==", + "dev": true, + "requires": { + "pseudomap": "1.0.2", + "yallist": "2.1.2" + } + } + } + }, "cryptiles": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz", @@ -1455,6 +2441,24 @@ "randombytes": "2.0.5" } }, + "crypto-random-string": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-1.0.0.tgz", + "integrity": "sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4=", + "dev": true + }, + "css-parse": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/css-parse/-/css-parse-1.7.0.tgz", + "integrity": "sha1-Mh9s9zeCpv91ERE5D8BeLGV9jJs=", + "dev": true + }, + "cuint": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/cuint/-/cuint-0.2.2.tgz", + "integrity": "sha1-QICG1AlVDCYxFVYZ6fp7ytw7mRs=", + "dev": true + }, "currently-unhandled": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", @@ -1487,10 +2491,23 @@ } } }, + "data-uri-to-buffer": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-1.2.0.tgz", + "integrity": "sha512-vKQ9DTQPN1FLYiiEEOQ6IBGFqvjCa5rSK3cWMy/Nespm5d/x3dGFT9UBZnkLxCwua/IXBi2TYnwTEpsOvhC4UQ==", + "dev": true, + "optional": true + }, "date-fns": { "version": "1.29.0", "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-1.29.0.tgz", - "integrity": "sha1-EuYJzcuTUScxHQTTMzTilgoqVOY=", + "integrity": "sha512-lbTXWZ6M20cWH8N9S6afb0SBm6tMk+uUg6z3MqHPKE9atmsY3kJkTm8vKe93izJ2B2+q5MV990sM2CHgtAZaOw==", + "dev": true + }, + "date-format": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/date-format/-/date-format-1.2.0.tgz", + "integrity": "sha1-YV6CjiM90aubua4JUODOzPpuytg=", "dev": true }, "date-now": { @@ -1499,6 +2516,15 @@ "integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=", "dev": true }, + "date-time": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/date-time/-/date-time-2.1.0.tgz", + "integrity": "sha512-/9+C44X7lot0IeiyfgJmETtRMhBidBYM2QFFIkGa0U1k+hSyY87Nw7PY3eDqpvCBm7I3WCSfPeZskW/YYq6m4g==", + "dev": true, + "requires": { + "time-zone": "1.0.0" + } + }, "dateformat": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-2.2.0.tgz", @@ -1520,6 +2546,19 @@ "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", "dev": true }, + "deep-extend": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.4.2.tgz", + "integrity": "sha1-SLaZwn4zS/ifEIkr5DL25MfTSn8=", + "dev": true + }, + "deep-is": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", + "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", + "dev": true, + "optional": true + }, "defaults": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz", @@ -1529,19 +2568,44 @@ "clone": "1.0.2" } }, + "defined": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz", + "integrity": "sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM=", + "dev": true + }, + "degenerator": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-1.0.4.tgz", + "integrity": "sha1-/PSQo37OJmRk2cxDGrmMWBnO0JU=", + "dev": true, + "optional": true, + "requires": { + "ast-types": "0.11.3", + "escodegen": "1.9.1", + "esprima": "3.1.3" + } + }, "del": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/del/-/del-2.2.2.tgz", - "integrity": "sha1-wSyYHQZ4RshLyvhiz/kw2Qf/0ag=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/del/-/del-3.0.0.tgz", + "integrity": "sha1-U+z2mf/LyzljdpGrE7rxYIGXZuU=", "dev": true, "requires": { - "globby": "5.0.0", + "globby": "6.1.0", "is-path-cwd": "1.0.0", "is-path-in-cwd": "1.0.0", - "object-assign": "4.1.1", - "pify": "2.3.0", - "pinkie-promise": "2.0.1", + "p-map": "1.2.0", + "pify": "3.0.0", "rimraf": "2.6.2" + }, + "dependencies": { + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true + } } }, "delayed-stream": { @@ -1550,6 +2614,12 @@ "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", "dev": true }, + "delegates": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", + "dev": true + }, "depd": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", @@ -1562,6 +2632,18 @@ "integrity": "sha1-+cmvVGSvoeepcUWKi97yqpTVuxk=", "dev": true }, + "deps-sort": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/deps-sort/-/deps-sort-2.0.0.tgz", + "integrity": "sha1-CRckkC6EZYJg65EHSMzNGvbiH7U=", + "dev": true, + "requires": { + "JSONStream": "1.3.2", + "shasum": "1.0.2", + "subarg": "1.0.0", + "through2": "2.0.3" + } + }, "des.js": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.0.tgz", @@ -1587,6 +2669,24 @@ "fs-exists-sync": "0.1.0" } }, + "detective": { + "version": "4.7.1", + "resolved": "https://registry.npmjs.org/detective/-/detective-4.7.1.tgz", + "integrity": "sha512-H6PmeeUcZloWtdt4DAkFyzFL94arpHr3NOwwmVILFiy+9Qd4JTxxXrzfyGk/lmct2qVGBwTSwSXagqu2BxmWig==", + "dev": true, + "requires": { + "acorn": "5.5.3", + "defined": "1.0.0" + }, + "dependencies": { + "acorn": { + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.5.3.tgz", + "integrity": "sha512-jd5MkIUlbbmb07nXH0DT3y7rDVtkzDi4XZOUVWAer8ajmF/DTSSbl5oNFyDOl/OXA33Bl79+ypHhl2pN20VeOQ==", + "dev": true + } + } + }, "dev-ip": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/dev-ip/-/dev-ip-1.0.1.tgz", @@ -1600,9 +2700,9 @@ "dev": true }, "diff": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/diff/-/diff-2.2.3.tgz", - "integrity": "sha1-YOr9DSjukG5Oj/ClLBIpUhAzv5k=", + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", + "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", "dev": true }, "diffie-hellman": { @@ -1634,6 +2734,34 @@ "integrity": "sha1-hnqksJP6oF8d4IwG9NeyH9+GmLw=", "dev": true }, + "domino": { + "version": "1.0.30", + "resolved": "https://registry.npmjs.org/domino/-/domino-1.0.30.tgz", + "integrity": "sha512-ikq8WiDSkICdkElud317F2Sigc6A3EDpWsxWBwIZqOl95km4p/Vc9Rj98id7qKgsjDmExj0AVM7JOd4bb647Xg==", + "dev": true + }, + "dot-prop": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.2.0.tgz", + "integrity": "sha512-tUMXrxlExSW6U2EXiiKGSBVdYgtV8qlHL+C10TsW4PURY/ic+eaysnSkwB4kA/mBlCyy/IKDJ+Lc3wbWeaXtuQ==", + "dev": true, + "requires": { + "is-obj": "1.0.1" + } + }, + "double-ended-queue": { + "version": "2.1.0-0", + "resolved": "https://registry.npmjs.org/double-ended-queue/-/double-ended-queue-2.1.0-0.tgz", + "integrity": "sha1-ED01J/0xUo9AGIEwyEHv3XgmTlw=", + "dev": true, + "optional": true + }, + "duplexer": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz", + "integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=", + "dev": true + }, "duplexer2": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz", @@ -1643,6 +2771,12 @@ "readable-stream": "1.1.14" } }, + "duplexer3": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", + "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=", + "dev": true + }, "easy-extender": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/easy-extender/-/easy-extender-2.3.2.tgz", @@ -1680,15 +2814,15 @@ } }, "ecstatic": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/ecstatic/-/ecstatic-1.4.1.tgz", - "integrity": "sha1-Mst7b6LikNWGaGdNEV6PDD1WfWo=", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/ecstatic/-/ecstatic-3.2.0.tgz", + "integrity": "sha512-Goilx/2cfU9vvfQjgtNgc2VmJAD8CasQ6rZDqCd2u4Hsyd/qFET6nBf60jiHodevR3nl3IGzNKtrzPXWP88utQ==", "dev": true, "requires": { - "he": "0.5.0", - "mime": "1.4.1", + "he": "1.1.1", + "mime": "1.6.0", "minimist": "1.2.0", - "url-join": "1.1.0" + "url-join": "2.0.5" } }, "ee-first": { @@ -1697,6 +2831,12 @@ "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", "dev": true }, + "electron-to-chromium": { + "version": "1.3.40", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.40.tgz", + "integrity": "sha1-H71tl779crim+SHcONIkE9L2/d8=", + "dev": true + }, "elliptic": { "version": "6.4.0", "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz", @@ -1751,53 +2891,72 @@ } }, "engine.io": { - "version": "1.8.3", - "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-1.8.3.tgz", - "integrity": "sha1-jef5eJXSDTm4X4ju7nd7K9QrE9Q=", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-3.1.5.tgz", + "integrity": "sha512-D06ivJkYxyRrcEe0bTpNnBQNgP9d3xog+qZlLbui8EsMr/DouQpf5o9FzJnWYHEYE0YsFHllUv2R1dkgYZXHcA==", "dev": true, "requires": { - "accepts": "1.3.3", + "accepts": "1.3.5", "base64id": "1.0.0", "cookie": "0.3.1", - "debug": "2.3.3", - "engine.io-parser": "1.3.2", - "ws": "1.1.2" + "debug": "3.1.0", + "engine.io-parser": "2.1.2", + "uws": "9.14.0", + "ws": "3.3.3" }, "dependencies": { + "accepts": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz", + "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=", + "dev": true, + "requires": { + "mime-types": "2.1.18", + "negotiator": "0.6.1" + } + }, "debug": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.3.3.tgz", - "integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", "dev": true, "requires": { - "ms": "0.7.2" + "ms": "2.0.0" } }, - "ms": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", - "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", + "mime-db": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", + "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==", "dev": true + }, + "mime-types": { + "version": "2.1.18", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", + "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", + "dev": true, + "requires": { + "mime-db": "1.33.0" + } } } }, "engine.io-client": { - "version": "1.8.3", - "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-1.8.3.tgz", - "integrity": "sha1-F5jtk0USRkU9TG9jXXogH+lA1as=", + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-3.1.6.tgz", + "integrity": "sha512-hnuHsFluXnsKOndS4Hv6SvUrgdYx1pk2NqfaDMW+GWdgfU3+/V25Cj7I8a0x92idSpa5PIhJRKxPvp9mnoLsfg==", "dev": true, "requires": { "component-emitter": "1.2.1", "component-inherit": "0.0.3", - "debug": "2.3.3", - "engine.io-parser": "1.3.2", + "debug": "3.1.0", + "engine.io-parser": "2.1.2", "has-cors": "1.1.0", "indexof": "0.0.1", - "parsejson": "0.0.3", "parseqs": "0.0.5", "parseuri": "0.0.5", - "ws": "1.1.2", - "xmlhttprequest-ssl": "1.5.3", + "ws": "3.3.3", + "xmlhttprequest-ssl": "1.5.5", "yeast": "0.1.2" }, "dependencies": { @@ -1808,34 +2967,41 @@ "dev": true }, "debug": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.3.3.tgz", - "integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", "dev": true, "requires": { - "ms": "0.7.2" + "ms": "2.0.0" } }, - "ms": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", - "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", + "xmlhttprequest-ssl": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.5.tgz", + "integrity": "sha1-wodrBhaKrcQOV9l+gRkayPQ5iz4=", "dev": true } } }, "engine.io-parser": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-1.3.2.tgz", - "integrity": "sha1-k3sHnwAH0Ik+xW1GyyILjLQ1Igo=", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-2.1.2.tgz", + "integrity": "sha512-dInLFzr80RijZ1rGpx1+56/uFoH7/7InhH3kZt+Ms6hT8tNx3NGW/WNSA/f8As1WkOfkuyb3tnRyuXGxusclMw==", "dev": true, "requires": { "after": "0.8.2", - "arraybuffer.slice": "0.0.6", + "arraybuffer.slice": "0.0.7", "base64-arraybuffer": "0.1.5", "blob": "0.0.4", - "has-binary": "0.1.7", - "wtf-8": "1.0.0" + "has-binary2": "1.0.2" + }, + "dependencies": { + "arraybuffer.slice": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz", + "integrity": "sha512-wGUIVQXuehL5TCqQun8OW81jGzAWycqzFF8lFp+GOM5BXLYj3bKNsYC4daB7n6XjCqxQA/qgTJ+8ANR3acjrog==", + "dev": true + } } }, "enhanced-resolve": { @@ -1900,15 +3066,63 @@ "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", "dev": true }, - "etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", + "escodegen": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.9.1.tgz", + "integrity": "sha512-6hTjO1NAWkHnDk3OqQ4YrCuwwmGHL9S3nPlzBOUG/R44rda3wLNrfvQ5fkSGjyhHFKM7ALPKcKGrwvCLe0lC7Q==", + "dev": true, + "optional": true, + "requires": { + "esprima": "3.1.3", + "estraverse": "4.2.0", + "esutils": "2.0.2", + "optionator": "0.8.2", + "source-map": "0.6.1" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "optional": true + } + } + }, + "esprima": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz", + "integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=", "dev": true }, - "eventemitter3": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-1.2.0.tgz", + "estraverse": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz", + "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=", + "dev": true, + "optional": true + }, + "estree-walker": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.3.1.tgz", + "integrity": "sha1-5rGlHPcpJSTnI3wxLl/mZgwc4ao=", + "dev": true + }, + "esutils": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", + "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", + "dev": true + }, + "etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", + "dev": true + }, + "eventemitter3": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-1.2.0.tgz", "integrity": "sha1-HIaZHYFq0eUEdQ5zh0Ik7PO+xQg=", "dev": true }, @@ -1928,6 +3142,21 @@ "safe-buffer": "5.1.1" } }, + "execa": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", + "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", + "dev": true, + "requires": { + "cross-spawn": "5.1.0", + "get-stream": "3.0.0", + "is-stream": "1.1.0", + "npm-run-path": "2.0.2", + "p-finally": "1.0.0", + "signal-exit": "3.0.2", + "strip-eof": "1.0.0" + } + }, "expand-braces": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/expand-braces/-/expand-braces-0.1.2.tgz", @@ -2191,6 +3420,13 @@ } } }, + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "dev": true, + "optional": true + }, "fd-slicer": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.0.1.tgz", @@ -2200,6 +3436,13 @@ "pend": "1.2.0" } }, + "file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", + "dev": true, + "optional": true + }, "filename-regex": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz", @@ -2220,9 +3463,9 @@ } }, "finalhandler": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.0.6.tgz", - "integrity": "sha1-AHrqM9Gk0+QgF/YkhIrVjSEvgU8=", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.0.tgz", + "integrity": "sha1-zgtoVbRYU+eRsvzGgARtiCU91/U=", "dev": true, "requires": { "debug": "2.6.9", @@ -2248,6 +3491,12 @@ "integrity": "sha1-Z101iyyjiS15Whq0cjL4tuLg3eQ=", "dev": true }, + "find-parent-dir": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/find-parent-dir/-/find-parent-dir-0.3.0.tgz", + "integrity": "sha1-M8RLQpqysvBkYpnF+fcY83b/jVQ=", + "dev": true + }, "find-up": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", @@ -2306,6 +3555,16 @@ "integrity": "sha1-/xke3c1wiKZ1smEP/8l2vpuAdLU=", "dev": true }, + "follow-redirects": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.0.0.tgz", + "integrity": "sha1-jjQpjL0uF28lTv/sdaHHjMhJ/Tc=", + "dev": true, + "optional": true, + "requires": { + "debug": "2.6.9" + } + }, "for-in": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", @@ -3402,6 +4661,76 @@ } } }, + "fstream": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.11.tgz", + "integrity": "sha1-XB+x8RdHcRTwYyoOtLcbPLD9MXE=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "inherits": "2.0.3", + "mkdirp": "0.5.1", + "rimraf": "2.6.2" + }, + "dependencies": { + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "dev": true + } + } + }, + "ftp": { + "version": "0.3.10", + "resolved": "https://registry.npmjs.org/ftp/-/ftp-0.3.10.tgz", + "integrity": "sha1-kZfYYa2BQvPmPVqDv+TFn3MwiF0=", + "dev": true, + "optional": true, + "requires": { + "readable-stream": "1.1.14", + "xregexp": "2.0.0" + } + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "gauge": { + "version": "2.7.4", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", + "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", + "dev": true, + "requires": { + "aproba": "1.2.0", + "console-control-strings": "1.1.0", + "has-unicode": "2.0.1", + "object-assign": "4.1.1", + "signal-exit": "3.0.2", + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wide-align": "1.1.2" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + } + } + }, "gaze": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/gaze/-/gaze-0.5.2.tgz", @@ -3411,6 +4740,21 @@ "globule": "0.1.0" } }, + "generate-function": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.0.0.tgz", + "integrity": "sha1-aFj+fAlpt9TpCTM3ZHrHn2DfvnQ=", + "dev": true + }, + "generate-object-property": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/generate-object-property/-/generate-object-property-1.2.0.tgz", + "integrity": "sha1-nA4cQDCM6AT0eDYYuTf6iPmdUNA=", + "dev": true, + "requires": { + "is-property": "1.0.2" + } + }, "get-caller-file": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz", @@ -3423,6 +4767,69 @@ "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", "dev": true }, + "get-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", + "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", + "dev": true + }, + "get-uri": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-2.0.1.tgz", + "integrity": "sha512-7aelVrYqCLuVjq2kEKRTH8fXPTC0xKTkM+G7UlFkEwCXY3sFbSxvY375JoFowOAYbkaU47SrBvOefUlLZZ+6QA==", + "dev": true, + "optional": true, + "requires": { + "data-uri-to-buffer": "1.2.0", + "debug": "2.6.9", + "extend": "3.0.1", + "file-uri-to-path": "1.0.0", + "ftp": "0.3.10", + "readable-stream": "2.3.5" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true, + "optional": true + }, + "process-nextick-args": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "dev": true, + "optional": true + }, + "readable-stream": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", + "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", + "dev": true, + "optional": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "2.0.0", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "optional": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, "getpass": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", @@ -3550,6 +4957,15 @@ "find-index": "0.1.1" } }, + "global-dirs": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-0.1.1.tgz", + "integrity": "sha1-sxnA3UYH81PzvpzKTHL8FIxJ9EU=", + "dev": true, + "requires": { + "ini": "1.3.4" + } + }, "global-modules": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-0.2.3.tgz", @@ -3573,13 +4989,12 @@ } }, "globby": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-5.0.0.tgz", - "integrity": "sha1-69hGZ8oNuzMLmbz8aOrCvFQ3Dg0=", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", + "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", "dev": true, "requires": { "array-union": "1.0.2", - "arrify": "1.0.1", "glob": "7.1.2", "object-assign": "4.1.1", "pify": "2.3.0", @@ -3647,6 +5062,25 @@ "sparkles": "1.0.0" } }, + "got": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/got/-/got-6.7.1.tgz", + "integrity": "sha1-JAzQV4WpoY5WHcG0S0HHY+8ejbA=", + "dev": true, + "requires": { + "create-error-class": "3.0.2", + "duplexer3": "0.1.4", + "get-stream": "3.0.0", + "is-redirect": "1.0.0", + "is-retry-allowed": "1.1.0", + "is-stream": "1.1.0", + "lowercase-keys": "1.0.0", + "safe-buffer": "5.1.1", + "timed-out": "4.0.1", + "unzip-response": "2.0.1", + "url-parse-lax": "1.0.0" + } + }, "graceful-fs": { "version": "3.0.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-3.0.11.tgz", @@ -3729,22 +5163,22 @@ } }, "gulp-bump": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/gulp-bump/-/gulp-bump-2.8.0.tgz", - "integrity": "sha1-f+9CIF61wSTY3EZBhmYGPlMY2p4=", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/gulp-bump/-/gulp-bump-3.1.0.tgz", + "integrity": "sha512-v5FN3TGstRqkqWTPrp1jcUyCM4YbUIvYzJy/lG2YWFXk5HvFgTucBcVhhpH1nJcnI9Y3skPnpTzYoaBQO1qBzA==", "dev": true, "requires": { - "bump-regex": "2.8.0", + "bump-regex": "3.1.0", "plugin-error": "0.1.2", "plugin-log": "0.1.0", - "semver": "5.4.1", + "semver": "5.5.0", "through2": "2.0.3" }, "dependencies": { "semver": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz", - "integrity": "sha1-4FnAnYVx8FQII3M0M1BdOi8AsY4=", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", + "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", "dev": true } } @@ -3881,6 +5315,15 @@ "har-schema": "1.0.5" } }, + "has": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.1.tgz", + "integrity": "sha1-hGFzP1OLCDfJNh45qauelwTcLyg=", + "dev": true, + "requires": { + "function-bind": "1.1.1" + } + }, "has-ansi": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-0.1.0.tgz", @@ -3899,6 +5342,23 @@ "isarray": "0.0.1" } }, + "has-binary2": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-binary2/-/has-binary2-1.0.2.tgz", + "integrity": "sha1-6D26SfC5vk0CbSc2U1DZ8D9Uvpg=", + "dev": true, + "requires": { + "isarray": "2.0.1" + }, + "dependencies": { + "isarray": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz", + "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4=", + "dev": true + } + } + }, "has-cors": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/has-cors/-/has-cors-1.1.0.tgz", @@ -3920,6 +5380,12 @@ "sparkles": "1.0.0" } }, + "has-unicode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", + "dev": true + }, "hash-base": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-2.0.2.tgz", @@ -3962,11 +5428,22 @@ } }, "he": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/he/-/he-0.5.0.tgz", - "integrity": "sha1-LAX/rvkLaOhg8/0rVO9YCYknfuI=", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz", + "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=", "dev": true }, + "hipchat-notifier": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/hipchat-notifier/-/hipchat-notifier-1.1.0.tgz", + "integrity": "sha1-ttJJdVQ3wZEII2d5nTupoPI7Ix4=", + "dev": true, + "optional": true, + "requires": { + "lodash": "4.17.5", + "request": "2.81.0" + } + }, "hmac-drbg": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", @@ -3999,6 +5476,12 @@ "integrity": "sha1-bWDjSzq7yDEwYsO3mO+NkBoHrzw=", "dev": true }, + "htmlescape": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/htmlescape/-/htmlescape-1.1.1.tgz", + "integrity": "sha1-OgPtwiFLyjtmQko+eVk0lQnLA1E=", + "dev": true + }, "http-errors": { "version": "1.6.2", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.2.tgz", @@ -4021,19 +5504,30 @@ "requires-port": "1.0.0" } }, + "http-proxy-agent": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-1.0.0.tgz", + "integrity": "sha1-zBzjjkU7+YSg93AtLdWcc9CBKEo=", + "dev": true, + "requires": { + "agent-base": "2.1.1", + "debug": "2.6.9", + "extend": "3.0.1" + } + }, "http-server": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/http-server/-/http-server-0.9.0.tgz", - "integrity": "sha1-jxsGvcczYY1NxCgxx7oa/04GABo=", + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/http-server/-/http-server-0.11.1.tgz", + "integrity": "sha512-6JeGDGoujJLmhjiRGlt8yK8Z9Kl0vnl/dQoQZlc4oeqaUoAKQg94NILLfrY3oWzSyFaQCVNTcKE5PZ3cH8VP9w==", "dev": true, "requires": { "colors": "1.0.3", "corser": "2.0.1", - "ecstatic": "1.4.1", + "ecstatic": "3.2.0", "http-proxy": "1.16.2", "opener": "1.4.3", "optimist": "0.6.1", - "portfinder": "0.4.0", + "portfinder": "1.0.13", "union": "0.4.6" } }, @@ -4048,16 +5542,43 @@ "sshpk": "1.13.1" } }, + "httpntlm": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/httpntlm/-/httpntlm-1.6.1.tgz", + "integrity": "sha1-rQFScUOi6Hc8+uapb1hla7UqNLI=", + "dev": true, + "requires": { + "httpreq": "0.4.24", + "underscore": "1.7.0" + } + }, + "httpreq": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/httpreq/-/httpreq-0.4.24.tgz", + "integrity": "sha1-QzX/2CzZaWaKOUZckprGHWOTYn8=", + "dev": true + }, "https-browserify": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-0.0.1.tgz", "integrity": "sha1-P5E2XKvmC3ftDruiS0VOPgnZWoI=", "dev": true }, + "https-proxy-agent": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-1.0.0.tgz", + "integrity": "sha1-NffabEjOTdv6JkiRrFk+5f+GceY=", + "dev": true, + "requires": { + "agent-base": "2.1.1", + "debug": "2.6.9", + "extend": "3.0.1" + } + }, "iconv-lite": { "version": "0.4.19", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz", - "integrity": "sha1-90aPYBNfXl2tM5nAqBvpoWA6CCs=", + "integrity": "sha512-oTZqweIP51xaGPI4uPa56/Pri/480R+mo7SeU+YETByQNhDG55ycFyNLIgta9vXhILrxXDmF7ZGhqZIcuN0gJQ==", "dev": true }, "ieee754": { @@ -4066,12 +5587,37 @@ "integrity": "sha1-vjPUCsEO8ZJnAfbwii2G+/0a0+Q=", "dev": true }, + "image-size": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/image-size/-/image-size-0.5.5.tgz", + "integrity": "sha1-Cd/Uq50g4p6xw+gLiZA3jfnjy5w=", + "dev": true, + "optional": true + }, "immutable": { "version": "3.8.1", "resolved": "https://registry.npmjs.org/immutable/-/immutable-3.8.1.tgz", "integrity": "sha1-IAgH8Rqw9ycQ6khVQt4IgHX2jNI=", "dev": true }, + "import-lazy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", + "integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=", + "dev": true + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "dev": true + }, + "in-publish": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/in-publish/-/in-publish-2.0.0.tgz", + "integrity": "sha1-4g/146KvwmkDILbcVSaCqcf631E=", + "dev": true + }, "indent-string": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz", @@ -4087,6 +5633,13 @@ "integrity": "sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10=", "dev": true }, + "inflection": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/inflection/-/inflection-1.10.0.tgz", + "integrity": "sha1-W//LEZetPoEFD44X4hZoCH7p6y8=", + "dev": true, + "optional": true + }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -4109,43 +5662,149 @@ "integrity": "sha1-BTfLedr1m1mhpRff9wbIbsA5Fi4=", "dev": true }, - "interpret": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.0.4.tgz", - "integrity": "sha1-ggzdWIuGj/sZGoCVBtbJyPISsbA=", - "dev": true - }, - "invert-kv": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", - "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", + "injection-js": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/injection-js/-/injection-js-2.2.1.tgz", + "integrity": "sha512-zHI+E+dM0PXix5FFTO1Y4/UOyAzE7zG1l/QwAn4jchTThOoBq+UYRFK4AVG7lQgFL+go62SbrzSsjXy9DFEZUg==", "dev": true }, - "is-absolute": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-0.2.6.tgz", - "integrity": "sha1-IN5p89uULvLYe5wto28XIjWxtes=", + "inline-source-map": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/inline-source-map/-/inline-source-map-0.6.2.tgz", + "integrity": "sha1-+Tk0ccGKedFyT4Y/o4tYY3Ct4qU=", "dev": true, "requires": { - "is-relative": "0.2.1", - "is-windows": "0.2.0" + "source-map": "0.5.7" } }, - "is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", - "dev": true - }, - "is-binary-path": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", - "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", + "insert-module-globals": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/insert-module-globals/-/insert-module-globals-7.0.4.tgz", + "integrity": "sha512-Z/sfx2KOKyHQ3U4X3fnXn4Ms1Opa9pGvEfm8j6xKHE6oVqc1dMwVgBVxmj3yIrMtWTl8HYoy12rkhrR8MYym6A==", "dev": true, "requires": { - "binary-extensions": "1.10.0" - } - }, + "JSONStream": "1.3.2", + "combine-source-map": "0.7.2", + "concat-stream": "1.6.2", + "is-buffer": "1.1.5", + "lexical-scope": "1.2.0", + "process": "0.11.10", + "through2": "2.0.3", + "xtend": "4.0.1" + }, + "dependencies": { + "combine-source-map": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.7.2.tgz", + "integrity": "sha1-CHAxKFazB6h8xKxIbzqaYq7MwJ4=", + "dev": true, + "requires": { + "convert-source-map": "1.1.3", + "inline-source-map": "0.6.2", + "lodash.memoize": "3.0.4", + "source-map": "0.5.7" + } + }, + "concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "dev": true, + "requires": { + "buffer-from": "1.0.0", + "inherits": "2.0.3", + "readable-stream": "2.3.5", + "typedarray": "0.0.6" + } + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "process-nextick-args": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "dev": true + }, + "readable-stream": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", + "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "2.0.0", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, + "interpret": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.0.4.tgz", + "integrity": "sha1-ggzdWIuGj/sZGoCVBtbJyPISsbA=", + "dev": true + }, + "invert-kv": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", + "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", + "dev": true + }, + "ip": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.0.1.tgz", + "integrity": "sha1-x+NWzeoiWucbNtcPLnGpK6TkJZA=", + "dev": true, + "optional": true + }, + "irregular-plurals": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-1.4.0.tgz", + "integrity": "sha1-LKmwM2UREYVUEvFr5dd8YqRYp2Y=", + "dev": true + }, + "is-absolute": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-0.2.6.tgz", + "integrity": "sha1-IN5p89uULvLYe5wto28XIjWxtes=", + "dev": true, + "requires": { + "is-relative": "0.2.1", + "is-windows": "0.2.0" + } + }, + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", + "dev": true + }, + "is-binary-path": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", + "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", + "dev": true, + "requires": { + "binary-extensions": "1.10.0" + } + }, "is-buffer": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.5.tgz", @@ -4215,6 +5874,47 @@ "is-extglob": "1.0.0" } }, + "is-installed-globally": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.1.0.tgz", + "integrity": "sha1-Df2Y9akRFxbdU13aZJL2e/PSWoA=", + "dev": true, + "requires": { + "global-dirs": "0.1.1", + "is-path-inside": "1.0.1" + } + }, + "is-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", + "integrity": "sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE=", + "dev": true + }, + "is-my-ip-valid": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-my-ip-valid/-/is-my-ip-valid-1.0.0.tgz", + "integrity": "sha512-gmh/eWXROncUzRnIa1Ubrt5b8ep/MGSnfAUI3aRp+sqTCs1tv1Isl8d8F6JmkN3dXKc3ehZMrtiPN9eL03NuaQ==", + "dev": true + }, + "is-my-json-valid": { + "version": "2.17.2", + "resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.17.2.tgz", + "integrity": "sha512-IBhBslgngMQN8DDSppmgDv7RNrlFotuuDsKcrCP3+HbFaVivIBU7u9oiiErw8sH4ynx3+gOGQ3q2otkgiSi6kg==", + "dev": true, + "requires": { + "generate-function": "2.0.0", + "generate-object-property": "1.2.0", + "is-my-ip-valid": "1.0.0", + "jsonpointer": "4.0.1", + "xtend": "4.0.1" + } + }, + "is-npm": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-1.0.0.tgz", + "integrity": "sha1-8vtjpl5JBbQGyGBydloaTceTufQ=", + "dev": true + }, "is-number": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", @@ -4233,6 +5933,12 @@ "lodash.isfinite": "3.3.2" } }, + "is-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", + "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", + "dev": true + }, "is-path-cwd": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", @@ -4245,13 +5951,13 @@ "integrity": "sha1-ZHdYK4IU1gI0YJRWcAO+ip6sBNw=", "dev": true, "requires": { - "is-path-inside": "1.0.0" + "is-path-inside": "1.0.1" } }, "is-path-inside": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.0.tgz", - "integrity": "sha1-/AbloWg/vaE95mev9xe7wQpI838=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", + "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=", "dev": true, "requires": { "path-is-inside": "1.0.2" @@ -4286,6 +5992,27 @@ "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", "dev": true }, + "is-property": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz", + "integrity": "sha1-V/4cTkhHTt1lsJkR8msc1Ald2oQ=", + "dev": true + }, + "is-redirect": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-redirect/-/is-redirect-1.0.0.tgz", + "integrity": "sha1-HQPd7VO9jbDzDCbk+V02/HyH3CQ=", + "dev": true + }, + "is-reference": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.1.0.tgz", + "integrity": "sha512-h37O/IX4efe56o9k41II1ECMqKwtqHa7/12dLDEzJIFux2x15an4WCDb0/eKdmUgRpLJ3bR0DrzDc7vOrVgRDw==", + "dev": true, + "requires": { + "@types/estree": "0.0.38" + } + }, "is-relative": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-0.2.1.tgz", @@ -4295,6 +6022,12 @@ "is-unc-path": "0.1.2" } }, + "is-retry-allowed": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz", + "integrity": "sha1-EaBgVotnM5REAz0BJaYaINVk+zQ=", + "dev": true + }, "is-stream": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", @@ -4376,11 +6109,41 @@ "dev": true }, "jasmine-core": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-2.8.0.tgz", - "integrity": "sha1-vMl5rh+f0FcB5F5S5l06XWPxok4=", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-3.1.0.tgz", + "integrity": "sha1-pHheE11d9lAk38kiSVPfWFvSdmw=", + "dev": true + }, + "js-base64": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.4.3.tgz", + "integrity": "sha512-H7ErYLM34CvDMto3GbD6xD0JLUGYXR3QTcH6B/tr4Hi/QpSThnCsIp+Sy5FRTw3B0d6py4HcNkW7nO/wdtGWEw==", "dev": true }, + "js-tokens": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", + "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", + "dev": true + }, + "js-yaml": { + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.11.0.tgz", + "integrity": "sha512-saJstZWv7oNeOyBh3+Dx1qWzhW0+e6/8eDzo7p5rDFqxntSztloLtuKu+Ejhtq82jsilwOIZYsCz+lIjthg1Hw==", + "dev": true, + "requires": { + "argparse": "1.0.10", + "esprima": "4.0.0" + }, + "dependencies": { + "esprima": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.0.tgz", + "integrity": "sha512-oftTcaMu/EGrEIu904mWteKIv8vMuOgGYo7EhVJJN00R/EED9DCua/xxHRdYnKtcECzVg7xOWhflvJMnqcFZjw==", + "dev": true + } + } + }, "jsbn": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", @@ -4394,6 +6157,12 @@ "integrity": "sha1-3KFKcCNf+C8KyaOr62DTN6NlGF0=", "dev": true }, + "json-parse-better-errors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.1.tgz", + "integrity": "sha512-xyQpxeWWMKyJps9CuGJYeng6ssI5bpqS9ltQpdVQ90t4ql6NdnxFKh95JcRt2cun/DjMVNrdjniLPuMA69xmCw==", + "dev": true + }, "json-schema": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", @@ -4451,6 +6220,18 @@ "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", "dev": true }, + "jsonparse": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", + "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=", + "dev": true + }, + "jsonpointer": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-4.0.1.tgz", + "integrity": "sha1-T9kss04OnbPInIYi7PUfm5eMbLk=", + "dev": true + }, "jsprim": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", @@ -4472,18 +6253,19 @@ } }, "karma": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/karma/-/karma-1.7.1.tgz", - "integrity": "sha1-hcwI6eCiLXzpzKN8ShvoJPaisa4=", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/karma/-/karma-2.0.0.tgz", + "integrity": "sha512-K9Kjp8CldLyL9ANSUctDyxC7zH3hpqXj/K09qVf06K3T/kXaHtFZ5tQciK7OzQu68FLvI89Na510kqQ2LCbpIw==", "dev": true, "requires": { "bluebird": "3.5.1", "body-parser": "1.18.2", + "browserify": "14.5.0", "chokidar": "1.7.0", - "colors": "1.1.2", + "colors": "1.2.1", "combine-lists": "1.0.1", - "connect": "3.6.5", - "core-js": "2.5.1", + "connect": "3.6.6", + "core-js": "2.5.3", "di": "0.0.1", "dom-serialize": "2.2.1", "expand-braces": "0.1.2", @@ -4491,25 +6273,25 @@ "graceful-fs": "4.1.11", "http-proxy": "1.16.2", "isbinaryfile": "3.0.2", - "lodash": "3.10.1", - "log4js": "0.6.38", - "mime": "1.4.1", + "lodash": "4.17.5", + "log4js": "2.5.3", + "mime": "1.6.0", "minimatch": "3.0.4", "optimist": "0.6.1", - "qjobs": "1.1.5", + "qjobs": "1.2.0", "range-parser": "1.2.0", "rimraf": "2.6.2", "safe-buffer": "5.1.1", - "socket.io": "1.7.3", - "source-map": "0.5.7", - "tmp": "0.0.31", - "useragent": "2.2.1" + "socket.io": "2.0.4", + "source-map": "0.6.1", + "tmp": "0.0.33", + "useragent": "2.3.0" }, "dependencies": { "colors": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", - "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.2.1.tgz", + "integrity": "sha512-s8+wktIuDSLffCywiwSxQOMqtPxML11a/dtHE17tMn4B1MSWw/C22EKf7M2KGUBcDaVFEGT+S8N02geDXeuNKg==", "dev": true }, "graceful-fs": { @@ -4518,10 +6300,10 @@ "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", "dev": true }, - "lodash": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", - "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=", + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true } } @@ -4555,9 +6337,9 @@ } }, "karma-jasmine": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/karma-jasmine/-/karma-jasmine-1.1.0.tgz", - "integrity": "sha1-IuTAa/mhguUpTR9wXjczgRuBCs8=", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/karma-jasmine/-/karma-jasmine-1.1.1.tgz", + "integrity": "sha1-b+hA51oRYAydkehLM8RY4cRqNSk=", "dev": true }, "karma-jasmine-ajax": { @@ -4570,12 +6352,12 @@ } }, "karma-jasmine-html-reporter": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/karma-jasmine-html-reporter/-/karma-jasmine-html-reporter-0.2.2.tgz", - "integrity": "sha1-SKjl7xiAdhfuK14zwRlMNbQ5Ukw=", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/karma-jasmine-html-reporter/-/karma-jasmine-html-reporter-1.0.0.tgz", + "integrity": "sha512-SN9R/Pl9cY40yLlc7FkTcfswUr19M6ZZ25eM8X5wtZ0gvp0gneWZbe5lPYcer/Yrbz0D6QUiTSJaEzr3KBPvSg==", "dev": true, "requires": { - "karma-jasmine": "1.1.0" + "karma-jasmine": "1.1.1" } }, "karma-phantomjs-launcher": { @@ -4584,7 +6366,7 @@ "integrity": "sha1-0jyjSAG9qYY60xjju0vUBisTrNI=", "dev": true, "requires": { - "lodash": "4.17.4", + "lodash": "4.17.5", "phantomjs-prebuilt": "2.1.15" } }, @@ -4606,31 +6388,37 @@ } }, "karma-webpack": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/karma-webpack/-/karma-webpack-2.0.5.tgz", - "integrity": "sha1-T1aIfjLPT5WDORwjiEFd4Grwbv0=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/karma-webpack/-/karma-webpack-3.0.0.tgz", + "integrity": "sha512-Ja1o9LLoqWaJyUNhTKaXjWiEH9y7a9H3mzP8pYB30SBsgoF5KBS/65NeHFd+QPuT9ITrym8xFt8BZeGbcOfujA==", "dev": true, "requires": { - "async": "0.9.0", - "loader-utils": "0.2.17", - "lodash": "3.10.1", - "source-map": "0.1.43", - "webpack-dev-middleware": "1.12.0" + "async": "2.6.0", + "babel-runtime": "6.26.0", + "loader-utils": "1.1.0", + "lodash": "4.17.5", + "source-map": "0.5.7", + "webpack-dev-middleware": "2.0.6" }, "dependencies": { - "lodash": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", - "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=", - "dev": true + "async": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.0.tgz", + "integrity": "sha512-xAfGg1/NTLBBKlHFmnd7PlmUW9KhVQIUuSrYem9xzFUZy13ScvtyGGejaae9iAVRiRq9+Cx7DPFaAAhCpyxyPw==", + "dev": true, + "requires": { + "lodash": "4.17.5" + } }, - "source-map": { - "version": "0.1.43", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", - "integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=", + "loader-utils": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz", + "integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=", "dev": true, "requires": { - "amdefine": "1.0.1" + "big.js": "3.2.0", + "emojis-list": "2.1.0", + "json5": "0.5.1" } } } @@ -4668,6 +6456,26 @@ } } }, + "labeled-stream-splicer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/labeled-stream-splicer/-/labeled-stream-splicer-2.0.0.tgz", + "integrity": "sha1-pS4dE4AkwAuGscDJH2d5GLiuClk=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "isarray": "0.0.1", + "stream-splicer": "2.0.0" + } + }, + "latest-version": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-3.1.0.tgz", + "integrity": "sha1-ogU4P+oyKzO1rjsYq+4NwvNW7hU=", + "dev": true, + "requires": { + "package-json": "4.0.1" + } + }, "lazy-cache": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", @@ -4683,6 +6491,82 @@ "invert-kv": "1.0.0" } }, + "less": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/less/-/less-2.7.3.tgz", + "integrity": "sha512-KPdIJKWcEAb02TuJtaLrhue0krtRLoRoo7x6BNJIBelO00t/CCdJQUnHW5V34OnHMWzIktSalJxRO+FvytQlCQ==", + "dev": true, + "requires": { + "errno": "0.1.4", + "graceful-fs": "4.1.11", + "image-size": "0.5.5", + "mime": "1.6.0", + "mkdirp": "0.5.1", + "promise": "7.3.1", + "request": "2.81.0", + "source-map": "0.5.7" + }, + "dependencies": { + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "dev": true, + "optional": true + } + } + }, + "levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", + "dev": true, + "optional": true, + "requires": { + "prelude-ls": "1.1.2", + "type-check": "0.3.2" + } + }, + "lexical-scope": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/lexical-scope/-/lexical-scope-1.2.0.tgz", + "integrity": "sha1-/Ope3HBKSzqHls3KQZw6CvryLfQ=", + "dev": true, + "requires": { + "astw": "2.2.0" + } + }, + "libbase64": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/libbase64/-/libbase64-0.1.0.tgz", + "integrity": "sha1-YjUag5VjrF/1vSbxL2Dpgwu3UeY=", + "dev": true + }, + "libmime": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/libmime/-/libmime-3.0.0.tgz", + "integrity": "sha1-UaGp50SOy9Ms2lRCFnW7IbwJPaY=", + "dev": true, + "requires": { + "iconv-lite": "0.4.15", + "libbase64": "0.1.0", + "libqp": "1.1.0" + }, + "dependencies": { + "iconv-lite": { + "version": "0.4.15", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.15.tgz", + "integrity": "sha1-/iZaIYrGpXz+hUkn6dBMGYJe3es=", + "dev": true + } + } + }, + "libqp": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/libqp/-/libqp-1.1.0.tgz", + "integrity": "sha1-9ebgatdLeU+1tbZpiL9yjvHe2+g=", + "dev": true + }, "liftoff": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/liftoff/-/liftoff-2.3.0.tgz", @@ -4715,7 +6599,7 @@ "browser-sync": "2.18.13", "connect-history-api-fallback": "1.4.0", "connect-logger": "0.0.1", - "lodash": "4.17.4", + "lodash": "4.17.5", "minimist": "1.2.0" } }, @@ -4810,10 +6694,34 @@ } } }, + "locate-character": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/locate-character/-/locate-character-2.0.5.tgz", + "integrity": "sha512-n2GmejDXtOPBAZdIiEFy5dJ5N38xBCXLNOtw2WpB9kGh6pnrEuKlwYI+Tkpofc4wDtVXHtoAOJaMRlYG/oYaxg==", + "dev": true + }, + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "requires": { + "p-locate": "2.0.0", + "path-exists": "3.0.0" + }, + "dependencies": { + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true + } + } + }, "lodash": { - "version": "4.17.4", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "version": "4.17.5", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", + "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==", "dev": true }, "lodash._basecopy": { @@ -4876,6 +6784,12 @@ "integrity": "sha1-DZnzzNem0mHRm9rrkkUAXShYCOc=", "dev": true }, + "lodash.clonedeep": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", + "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", + "dev": true + }, "lodash.escape": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/lodash.escape/-/lodash.escape-3.2.0.tgz", @@ -4932,6 +6846,18 @@ "integrity": "sha1-G6+lAF3p3W9PJmaMMMo3IwzJaJw=", "dev": true }, + "lodash.memoize": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-3.0.4.tgz", + "integrity": "sha1-LcvSwofLwKVcxCMovQxzYVDVPj8=", + "dev": true + }, + "lodash.mergewith": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.1.tgz", + "integrity": "sha512-eWw5r+PYICtEBgrBE5hhlT6aAa75f411bgDz/ZL2KZqYV03USvucsxcHUIlGTDTECs1eunpI7HOV7U+WLDvNdQ==", + "dev": true + }, "lodash.restparam": { "version": "3.6.1", "resolved": "https://registry.npmjs.org/lodash.restparam/-/lodash.restparam-3.6.1.tgz", @@ -4965,30 +6891,254 @@ "lodash.escape": "3.2.0" } }, + "log-symbols": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", + "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", + "dev": true, + "requires": { + "chalk": "2.3.2" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "1.9.1" + } + }, + "chalk": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz", + "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", + "dev": true, + "requires": { + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.3.0" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "supports-color": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", + "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", + "dev": true, + "requires": { + "has-flag": "3.0.0" + } + } + } + }, "log4js": { - "version": "0.6.38", - "resolved": "https://registry.npmjs.org/log4js/-/log4js-0.6.38.tgz", - "integrity": "sha1-LElBFmldb7JUgJQ9P8hy5mKlIv0=", + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/log4js/-/log4js-2.5.3.tgz", + "integrity": "sha512-YL/qpTxYtK0iWWbuKCrevDZz5lh+OjyHHD+mICqpjnYGKdNRBvPeh/1uYjkKUemT1CSO4wwLOwphWMpKAnD9kw==", + "dev": true, + "requires": { + "amqplib": "0.5.2", + "axios": "0.15.3", + "circular-json": "0.5.1", + "date-format": "1.2.0", + "debug": "3.1.0", + "hipchat-notifier": "1.1.0", + "loggly": "1.1.1", + "mailgun-js": "0.7.15", + "nodemailer": "2.7.2", + "redis": "2.8.0", + "semver": "5.5.0", + "slack-node": "0.2.0", + "streamroller": "0.7.0" + }, + "dependencies": { + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "semver": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", + "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", + "dev": true + } + } + }, + "loggly": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/loggly/-/loggly-1.1.1.tgz", + "integrity": "sha1-Cg/B0/o6XsRP3HuJe+uipGlc6+4=", "dev": true, + "optional": true, "requires": { - "readable-stream": "1.0.34", - "semver": "4.3.6" + "json-stringify-safe": "5.0.1", + "request": "2.75.0", + "timespan": "2.3.0" }, "dependencies": { - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true, + "optional": true + }, + "caseless": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.11.0.tgz", + "integrity": "sha1-cVuW6phBWTzDMGeSP17GDr2k99c=", + "dev": true, + "optional": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, + "optional": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "0.0.1", - "string_decoder": "0.10.31" + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + } + }, + "commander": { + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", + "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", + "dev": true, + "optional": true + }, + "form-data": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.0.0.tgz", + "integrity": "sha1-bwrrrcxdoWwT4ezBETfYX5uIOyU=", + "dev": true, + "optional": true, + "requires": { + "asynckit": "0.4.0", + "combined-stream": "1.0.5", + "mime-types": "2.1.17" + } + }, + "har-validator": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-2.0.6.tgz", + "integrity": "sha1-zcvAgYgmWtEZtqWnyKtw7s+10n0=", + "dev": true, + "optional": true, + "requires": { + "chalk": "1.1.3", + "commander": "2.15.1", + "is-my-json-valid": "2.17.2", + "pinkie-promise": "2.0.1" + } + }, + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "dev": true, + "optional": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "node-uuid": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.8.tgz", + "integrity": "sha1-sEDrCSOWivq/jTL7HxfxFn/auQc=", + "dev": true, + "optional": true + }, + "qs": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.2.3.tgz", + "integrity": "sha1-HPyyXBCpsrSDBT/zn138kjOQjP4=", + "dev": true, + "optional": true + }, + "request": { + "version": "2.75.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.75.0.tgz", + "integrity": "sha1-0rgmiihtoT6qXQGt9dGMyQ9lfZM=", + "dev": true, + "optional": true, + "requires": { + "aws-sign2": "0.6.0", + "aws4": "1.6.0", + "bl": "1.1.2", + "caseless": "0.11.0", + "combined-stream": "1.0.5", + "extend": "3.0.1", + "forever-agent": "0.6.1", + "form-data": "2.0.0", + "har-validator": "2.0.6", + "hawk": "3.1.3", + "http-signature": "1.1.1", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.17", + "node-uuid": "1.4.8", + "oauth-sign": "0.8.2", + "qs": "6.2.3", + "stringstream": "0.0.5", + "tough-cookie": "2.3.3", + "tunnel-agent": "0.4.3" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "optional": true, + "requires": { + "ansi-regex": "2.1.1" } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true, + "optional": true + }, + "tunnel-agent": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.3.tgz", + "integrity": "sha1-Y3PbdpCf5XDgjXNYM2Xtgop07us=", + "dev": true, + "optional": true } } }, + "loglevelnext": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/loglevelnext/-/loglevelnext-1.0.3.tgz", + "integrity": "sha512-OCxd/b78TijTB4b6zVqLbMrxhebyvdZKwqpL0VHUZ0pYhavXaPD4l6Xrr4n5xqTYWiqtb0i7ikSoJY/myQ/Org==", + "dev": true + }, "longest": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", @@ -5005,12 +7155,102 @@ "signal-exit": "3.0.2" } }, + "lowercase-keys": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.0.tgz", + "integrity": "sha1-TjNms55/VFfjXxMkvfb4jQv8cwY=", + "dev": true + }, "lru-cache": { "version": "2.7.3", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz", "integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI=", "dev": true }, + "magic-string": { + "version": "0.22.5", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.22.5.tgz", + "integrity": "sha512-oreip9rJZkzvA8Qzk9HFs8fZGF/u7H/gtrE8EN6RjKJ9kh2HlC+yQ2QezifqTZfGyiuAV0dRv5a+y/8gBb1m9w==", + "dev": true, + "requires": { + "vlq": "0.2.3" + } + }, + "mailcomposer": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/mailcomposer/-/mailcomposer-4.0.1.tgz", + "integrity": "sha1-DhxEsqB890DuF9wUm6AJ8Zyt/rQ=", + "dev": true, + "optional": true, + "requires": { + "buildmail": "4.0.1", + "libmime": "3.0.0" + } + }, + "mailgun-js": { + "version": "0.7.15", + "resolved": "https://registry.npmjs.org/mailgun-js/-/mailgun-js-0.7.15.tgz", + "integrity": "sha1-7jZqINrGTDwVwD1sGz4O15UlKrs=", + "dev": true, + "optional": true, + "requires": { + "async": "2.1.5", + "debug": "2.2.0", + "form-data": "2.1.4", + "inflection": "1.10.0", + "is-stream": "1.1.0", + "path-proxy": "1.0.0", + "proxy-agent": "2.0.0", + "q": "1.4.1", + "tsscmp": "1.0.5" + }, + "dependencies": { + "async": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/async/-/async-2.1.5.tgz", + "integrity": "sha1-5YfGhYCZSsZ/xW/4bTrFa9voELw=", + "dev": true, + "optional": true, + "requires": { + "lodash": "4.17.5" + } + }, + "debug": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", + "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", + "dev": true, + "optional": true, + "requires": { + "ms": "0.7.1" + } + }, + "ms": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", + "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", + "dev": true, + "optional": true + } + } + }, + "make-dir": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.2.0.tgz", + "integrity": "sha512-aNUAa4UMg/UougV25bbrU4ZaaKNjJ/3/xnvg/twpmKROPdKZPZ9wGgI0opdZzO8q/zUFawoUuixuOv33eZ61Iw==", + "dev": true, + "requires": { + "pify": "3.0.0" + }, + "dependencies": { + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true + } + } + }, "map-cache": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", @@ -5051,6 +7291,15 @@ "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", "dev": true }, + "mem": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/mem/-/mem-1.1.0.tgz", + "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", + "dev": true, + "requires": { + "mimic-fn": "1.2.0" + } + }, "memory-fs": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz", @@ -5143,9 +7392,9 @@ } }, "mime": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz", - "integrity": "sha1-Eh+evEnjdm8xGnbh+hyAA8SwOqY=", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", "dev": true }, "mime-db": { @@ -5163,6 +7412,12 @@ "mime-db": "1.30.0" } }, + "mimic-fn": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", + "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", + "dev": true + }, "minimalistic-assert": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz", @@ -5207,34 +7462,132 @@ } } }, - "moment": { - "version": "2.19.1", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.19.1.tgz", - "integrity": "sha1-VtoaLRy/AdOLfhr8McELz6GSkWc=", - "dev": true - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "multipipe": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/multipipe/-/multipipe-0.1.2.tgz", - "integrity": "sha1-Ko8t33Du1WTf8tV/HhoTfZ8FB4s=", + "module-deps": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/module-deps/-/module-deps-4.1.1.tgz", + "integrity": "sha1-IyFYM/HaE/1gbMuAh7RIUty4If0=", "dev": true, "requires": { - "duplexer2": "0.0.2" - } - }, - "nan": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.7.0.tgz", - "integrity": "sha1-2Vv3IeyHfgjbJ27T/G63j5CDrUY=", - "dev": true, - "optional": true - }, + "JSONStream": "1.3.2", + "browser-resolve": "1.11.2", + "cached-path-relative": "1.0.1", + "concat-stream": "1.5.2", + "defined": "1.0.0", + "detective": "4.7.1", + "duplexer2": "0.1.4", + "inherits": "2.0.3", + "parents": "1.0.1", + "readable-stream": "2.3.5", + "resolve": "1.4.0", + "stream-combiner2": "1.1.1", + "subarg": "1.0.0", + "through2": "2.0.3", + "xtend": "4.0.1" + }, + "dependencies": { + "concat-stream": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.5.2.tgz", + "integrity": "sha1-cIl4Yk2FavQaWnQd790mHadSwmY=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "readable-stream": "2.0.6", + "typedarray": "0.0.6" + }, + "dependencies": { + "readable-stream": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz", + "integrity": "sha1-j5A0HmilPMySh4jaz80Rs265t44=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "string_decoder": "0.10.31", + "util-deprecate": "1.0.2" + } + } + } + }, + "duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", + "dev": true, + "requires": { + "readable-stream": "2.3.5" + } + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "readable-stream": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", + "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "2.0.0", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + }, + "dependencies": { + "process-nextick-args": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "dev": true + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + } + } + }, + "moment": { + "version": "2.19.1", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.19.1.tgz", + "integrity": "sha1-VtoaLRy/AdOLfhr8McELz6GSkWc=", + "dev": true + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "multipipe": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/multipipe/-/multipipe-0.1.2.tgz", + "integrity": "sha1-Ko8t33Du1WTf8tV/HhoTfZ8FB4s=", + "dev": true, + "requires": { + "duplexer2": "0.0.2" + } + }, + "nan": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.7.0.tgz", + "integrity": "sha1-2Vv3IeyHfgjbJ27T/G63j5CDrUY=", + "dev": true + }, "natives": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/natives/-/natives-1.1.0.tgz", @@ -5247,71 +7600,605 @@ "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=", "dev": true }, + "netmask": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/netmask/-/netmask-1.0.6.tgz", + "integrity": "sha1-ICl+idhvb2QA8lDZ9Pa0wZRfzTU=", + "dev": true, + "optional": true + }, + "ng-packagr": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/ng-packagr/-/ng-packagr-2.2.0.tgz", + "integrity": "sha512-2qpXc2Dgyt9/JlIXoVB1eZZTtKu9OTv7eEngLLxfDXQSJ4q8elYDYMGXytIXdBO2GlVP2Z1uOCNMryQnAvhR0Q==", + "dev": true, + "requires": { + "@ngtools/json-schema": "1.1.0", + "autoprefixer": "7.2.6", + "browserslist": "2.11.3", + "chalk": "2.3.2", + "commander": "2.15.1", + "cpx": "1.5.0", + "fs-extra": "5.0.0", + "glob": "7.1.2", + "injection-js": "2.2.1", + "less": "2.7.3", + "node-sass": "4.7.2", + "node-sass-tilde-importer": "1.0.2", + "postcss": "6.0.20", + "postcss-clean": "1.1.0", + "postcss-url": "7.3.1", + "read-pkg-up": "3.0.0", + "rimraf": "2.6.2", + "rollup": "0.55.5", + "rollup-plugin-cleanup": "2.0.0", + "rollup-plugin-commonjs": "8.3.0", + "rollup-plugin-license": "0.6.0", + "rollup-plugin-node-resolve": "3.3.0", + "rxjs": "5.5.7", + "sorcery": "0.10.0", + "strip-bom": "3.0.0", + "stylus": "0.54.5", + "uglify-js": "3.3.16", + "update-notifier": "2.3.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "1.9.1" + } + }, + "chalk": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz", + "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", + "dev": true, + "requires": { + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.3.0" + } + }, + "commander": { + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", + "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", + "dev": true + }, + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "requires": { + "locate-path": "2.0.0" + } + }, + "fs-extra": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-5.0.0.tgz", + "integrity": "sha512-66Pm4RYbjzdyeuqudYqhFiNBbCIuI9kgRqLPSHIlXHidW8NIQtVdkM1yeZ4lXwuhbTETv3EUGMNHAAw6hiundQ==", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "jsonfile": "4.0.0", + "universalify": "0.1.1" + } + }, + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11" + } + }, + "load-json-file": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "parse-json": "4.0.0", + "pify": "3.0.0", + "strip-bom": "3.0.0" + } + }, + "parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "dev": true, + "requires": { + "error-ex": "1.3.1", + "json-parse-better-errors": "1.0.1" + } + }, + "path-type": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", + "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", + "dev": true, + "requires": { + "pify": "3.0.0" + } + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true + }, + "read-pkg": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "dev": true, + "requires": { + "load-json-file": "4.0.0", + "normalize-package-data": "2.4.0", + "path-type": "3.0.0" + } + }, + "read-pkg-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", + "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", + "dev": true, + "requires": { + "find-up": "2.1.0", + "read-pkg": "3.0.0" + } + }, + "rollup": { + "version": "0.55.5", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-0.55.5.tgz", + "integrity": "sha512-2hke9NOy332kxvnmMQOgl7DHm94zihNyYJNd8ZLWo4U0EjFvjUkeWa0+ge+70bTg+mY0xJ7NUsf5kIhDtrGrtA==", + "dev": true + }, + "rxjs": { + "version": "5.5.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.7.tgz", + "integrity": "sha512-Hxo2ac8gRQjwjtKgukMIwBRbq5+KAeEV5hXM4obYBOAghev41bDQWgFH4svYiU9UnQ5kNww2LgfyBdevCd2HXA==", + "dev": true, + "requires": { + "symbol-observable": "1.0.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "dev": true + }, + "supports-color": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", + "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", + "dev": true, + "requires": { + "has-flag": "3.0.0" + } + }, + "uglify-js": { + "version": "3.3.16", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.3.16.tgz", + "integrity": "sha512-FMh5SRqJRGhv9BbaTffENIpDDQIoPDR8DBraunGORGhySArsXlw9++CN+BWzPBLpoI4RcSnpfGPnilTxWL3Vvg==", + "dev": true, + "requires": { + "commander": "2.15.1", + "source-map": "0.6.1" + } + } + } + }, + "node-gyp": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-3.6.2.tgz", + "integrity": "sha1-m/vlRWIoYoSDjnUOrAUpWFP6HGA=", + "dev": true, + "requires": { + "fstream": "1.0.11", + "glob": "7.1.2", + "graceful-fs": "4.1.11", + "minimatch": "3.0.4", + "mkdirp": "0.5.1", + "nopt": "3.0.6", + "npmlog": "4.1.2", + "osenv": "0.1.5", + "request": "2.81.0", + "rimraf": "2.6.2", + "semver": "5.3.0", + "tar": "2.2.1", + "which": "1.3.0" + }, + "dependencies": { + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "dev": true + }, + "semver": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz", + "integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=", + "dev": true + } + } + }, "node-libs-browser": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.0.0.tgz", "integrity": "sha1-o6WeyXAkmFtG6Vg3lkb5bEthZkY=", "dev": true, "requires": { - "assert": "1.4.1", - "browserify-zlib": "0.1.4", - "buffer": "4.9.1", - "console-browserify": "1.1.0", - "constants-browserify": "1.0.0", - "crypto-browserify": "3.11.1", - "domain-browser": "1.1.7", - "events": "1.1.1", - "https-browserify": "0.0.1", - "os-browserify": "0.2.1", - "path-browserify": "0.0.0", - "process": "0.11.10", - "punycode": "1.4.1", - "querystring-es3": "0.2.1", - "readable-stream": "2.3.3", - "stream-browserify": "2.0.1", - "stream-http": "2.7.2", - "string_decoder": "0.10.31", - "timers-browserify": "2.0.4", - "tty-browserify": "0.0.0", - "url": "0.11.0", - "util": "0.10.3", - "vm-browserify": "0.0.4" + "assert": "1.4.1", + "browserify-zlib": "0.1.4", + "buffer": "4.9.1", + "console-browserify": "1.1.0", + "constants-browserify": "1.0.0", + "crypto-browserify": "3.11.1", + "domain-browser": "1.1.7", + "events": "1.1.1", + "https-browserify": "0.0.1", + "os-browserify": "0.2.1", + "path-browserify": "0.0.0", + "process": "0.11.10", + "punycode": "1.4.1", + "querystring-es3": "0.2.1", + "readable-stream": "2.3.3", + "stream-browserify": "2.0.1", + "stream-http": "2.7.2", + "string_decoder": "0.10.31", + "timers-browserify": "2.0.4", + "tty-browserify": "0.0.0", + "url": "0.11.0", + "util": "0.10.3", + "vm-browserify": "0.0.4" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "readable-stream": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", + "integrity": "sha1-No8lEtefnUb9/HE0mueHi7weuVw=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + }, + "dependencies": { + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha1-D8Z9fBQYJd6UKC3VNr7GubzoYKs=", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + } + } + }, + "node-sass": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.7.2.tgz", + "integrity": "sha512-CaV+wLqZ7//Jdom5aUFCpGNoECd7BbNhjuwdsX/LkXBrHl8eb1Wjw4HvWqcFvhr5KuNgAk8i/myf/MQ1YYeroA==", + "dev": true, + "requires": { + "async-foreach": "0.1.3", + "chalk": "1.1.3", + "cross-spawn": "3.0.1", + "gaze": "1.1.2", + "get-stdin": "4.0.1", + "glob": "7.1.2", + "in-publish": "2.0.0", + "lodash.assign": "4.2.0", + "lodash.clonedeep": "4.5.0", + "lodash.mergewith": "4.6.1", + "meow": "3.7.0", + "mkdirp": "0.5.1", + "nan": "2.7.0", + "node-gyp": "3.6.2", + "npmlog": "4.1.2", + "request": "2.79.0", + "sass-graph": "2.2.4", + "stdout-stream": "1.4.0", + "true-case-path": "1.0.2" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "caseless": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.11.0.tgz", + "integrity": "sha1-cVuW6phBWTzDMGeSP17GDr2k99c=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + } + }, + "commander": { + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", + "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", + "dev": true + }, + "cross-spawn": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-3.0.1.tgz", + "integrity": "sha1-ElYDfsufDF9549bvE14wdwGEuYI=", + "dev": true, + "requires": { + "lru-cache": "4.1.2", + "which": "1.3.0" + } + }, + "gaze": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.2.tgz", + "integrity": "sha1-hHIkZ3rbiHDWeSV+0ziP22HkAQU=", + "dev": true, + "requires": { + "globule": "1.2.0" + } + }, + "globule": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/globule/-/globule-1.2.0.tgz", + "integrity": "sha1-HcScaCLdnoovoAuiopUAboZkvQk=", + "dev": true, + "requires": { + "glob": "7.1.2", + "lodash": "4.17.5", + "minimatch": "3.0.4" + } + }, + "har-validator": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-2.0.6.tgz", + "integrity": "sha1-zcvAgYgmWtEZtqWnyKtw7s+10n0=", + "dev": true, + "requires": { + "chalk": "1.1.3", + "commander": "2.15.1", + "is-my-json-valid": "2.17.2", + "pinkie-promise": "2.0.1" + } + }, + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "lru-cache": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.2.tgz", + "integrity": "sha512-wgeVXhrDwAWnIF/yZARsFnMBtdFXOg1b8RIrhilp+0iDYN4mdQcNZElDZ0e4B64BhaxeQ5zN7PMyvu7we1kPeQ==", + "dev": true, + "requires": { + "pseudomap": "1.0.2", + "yallist": "2.1.2" + } + }, + "qs": { + "version": "6.3.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.3.2.tgz", + "integrity": "sha1-51vV9uJoEioqDgvaYwslUMFmUCw=", + "dev": true + }, + "request": { + "version": "2.79.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.79.0.tgz", + "integrity": "sha1-Tf5b9r6LjNw3/Pk+BLZVd3InEN4=", + "dev": true, + "requires": { + "aws-sign2": "0.6.0", + "aws4": "1.6.0", + "caseless": "0.11.0", + "combined-stream": "1.0.5", + "extend": "3.0.1", + "forever-agent": "0.6.1", + "form-data": "2.1.4", + "har-validator": "2.0.6", + "hawk": "3.1.3", + "http-signature": "1.1.1", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.17", + "oauth-sign": "0.8.2", + "qs": "6.3.2", + "stringstream": "0.0.5", + "tough-cookie": "2.3.3", + "tunnel-agent": "0.4.3", + "uuid": "3.1.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + }, + "tunnel-agent": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.3.tgz", + "integrity": "sha1-Y3PbdpCf5XDgjXNYM2Xtgop07us=", + "dev": true + } + } + }, + "node-sass-tilde-importer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/node-sass-tilde-importer/-/node-sass-tilde-importer-1.0.2.tgz", + "integrity": "sha512-Swcmr38Y7uB78itQeBm3mThjxBy9/Ah/ykPIaURY/L6Nec9AyRoL/jJ7ECfMR+oZeCTVQNxVMu/aHU+TLRVbdg==", + "dev": true, + "requires": { + "find-parent-dir": "0.3.0" + } + }, + "nodemailer": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-2.7.2.tgz", + "integrity": "sha1-8kLmSa7q45tsftdA73sGHEBNMPk=", + "dev": true, + "optional": true, + "requires": { + "libmime": "3.0.0", + "mailcomposer": "4.0.1", + "nodemailer-direct-transport": "3.3.2", + "nodemailer-shared": "1.1.0", + "nodemailer-smtp-pool": "2.8.2", + "nodemailer-smtp-transport": "2.7.2", + "socks": "1.1.9" }, "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true + "ip": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", + "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=", + "dev": true, + "optional": true }, - "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha1-No8lEtefnUb9/HE0mueHi7weuVw=", + "socks": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/socks/-/socks-1.1.9.tgz", + "integrity": "sha1-Yo1+TQSRJDVEWsC25Fk3bLPm1pE=", "dev": true, + "optional": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" - }, - "dependencies": { - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha1-D8Z9fBQYJd6UKC3VNr7GubzoYKs=", - "dev": true, - "requires": { - "safe-buffer": "5.1.1" - } - } + "ip": "1.1.5", + "smart-buffer": "1.1.15" } } } }, + "nodemailer-direct-transport": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/nodemailer-direct-transport/-/nodemailer-direct-transport-3.3.2.tgz", + "integrity": "sha1-6W+vuQNYVglH5WkBfZfmBzilCoY=", + "dev": true, + "optional": true, + "requires": { + "nodemailer-shared": "1.1.0", + "smtp-connection": "2.12.0" + } + }, + "nodemailer-fetch": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/nodemailer-fetch/-/nodemailer-fetch-1.6.0.tgz", + "integrity": "sha1-ecSQihwPXzdbc/6IjamCj23JY6Q=", + "dev": true + }, + "nodemailer-shared": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/nodemailer-shared/-/nodemailer-shared-1.1.0.tgz", + "integrity": "sha1-z1mU4v0mjQD1zw+nZ6CBae2wfsA=", + "dev": true, + "requires": { + "nodemailer-fetch": "1.6.0" + } + }, + "nodemailer-smtp-pool": { + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/nodemailer-smtp-pool/-/nodemailer-smtp-pool-2.8.2.tgz", + "integrity": "sha1-LrlNbPhXgLG0clzoU7nL1ejajHI=", + "dev": true, + "optional": true, + "requires": { + "nodemailer-shared": "1.1.0", + "nodemailer-wellknown": "0.1.10", + "smtp-connection": "2.12.0" + } + }, + "nodemailer-smtp-transport": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/nodemailer-smtp-transport/-/nodemailer-smtp-transport-2.7.2.tgz", + "integrity": "sha1-A9ccdjFPFKx9vHvwM6am0W1n+3c=", + "dev": true, + "optional": true, + "requires": { + "nodemailer-shared": "1.1.0", + "nodemailer-wellknown": "0.1.10", + "smtp-connection": "2.12.0" + } + }, + "nodemailer-wellknown": { + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/nodemailer-wellknown/-/nodemailer-wellknown-0.1.10.tgz", + "integrity": "sha1-WG24EB2zDLRDjrVGc3pBqtDPE9U=", + "dev": true + }, "nopt": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", @@ -5342,12 +8229,45 @@ "remove-trailing-separator": "1.1.0" } }, + "normalize-range": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", + "integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=", + "dev": true + }, + "npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", + "dev": true, + "requires": { + "path-key": "2.0.1" + } + }, + "npmlog": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", + "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", + "dev": true, + "requires": { + "are-we-there-yet": "1.1.4", + "console-control-strings": "1.1.0", + "gauge": "2.7.4", + "set-blocking": "2.0.0" + } + }, "null-check": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/null-check/-/null-check-1.0.0.tgz", "integrity": "sha1-l33/1xdgErnsMNKjnbXPcqBDnt0=", "dev": true }, + "num2fraction": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz", + "integrity": "sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4=", + "dev": true + }, "number-is-nan": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", @@ -5492,6 +8412,30 @@ } } }, + "optionator": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", + "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", + "dev": true, + "optional": true, + "requires": { + "deep-is": "0.1.3", + "fast-levenshtein": "2.0.6", + "levn": "0.3.0", + "prelude-ls": "1.1.2", + "type-check": "0.3.2", + "wordwrap": "1.0.0" + }, + "dependencies": { + "wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", + "dev": true, + "optional": true + } + } + }, "options": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/options/-/options-0.0.6.tgz", @@ -5542,12 +8486,128 @@ "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", "dev": true }, + "osenv": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", + "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", + "dev": true, + "requires": { + "os-homedir": "1.0.2", + "os-tmpdir": "1.0.2" + } + }, + "p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", + "dev": true + }, + "p-limit": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.2.0.tgz", + "integrity": "sha512-Y/OtIaXtUPr4/YpMv1pCL5L5ed0rumAaAeBSj12F+bSlMdys7i8oQF/GUJmfpTS/QoaRrS/k6pma29haJpsMng==", + "dev": true, + "requires": { + "p-try": "1.0.0" + } + }, + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "dev": true, + "requires": { + "p-limit": "1.2.0" + } + }, + "p-map": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-1.2.0.tgz", + "integrity": "sha512-r6zKACMNhjPJMTl8KcFH4li//gkrXWfbD6feV8l6doRHlzljFWGJ2AP6iKaCJXyZmAUMOPtvbW7EXkbWO/pLEA==", + "dev": true + }, + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "dev": true + }, + "pac-proxy-agent": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-1.1.0.tgz", + "integrity": "sha512-QBELCWyLYPgE2Gj+4wUEiMscHrQ8nRPBzYItQNOHWavwBt25ohZHQC4qnd5IszdVVrFbLsQ+dPkm6eqdjJAmwQ==", + "dev": true, + "optional": true, + "requires": { + "agent-base": "2.1.1", + "debug": "2.6.9", + "extend": "3.0.1", + "get-uri": "2.0.1", + "http-proxy-agent": "1.0.0", + "https-proxy-agent": "1.0.0", + "pac-resolver": "2.0.0", + "raw-body": "2.3.2", + "socks-proxy-agent": "2.1.1" + } + }, + "pac-resolver": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-2.0.0.tgz", + "integrity": "sha1-mbiNLxk/ve78HJpSnB8yYKtSd80=", + "dev": true, + "optional": true, + "requires": { + "co": "3.0.6", + "degenerator": "1.0.4", + "ip": "1.0.1", + "netmask": "1.0.6", + "thunkify": "2.1.2" + }, + "dependencies": { + "co": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/co/-/co-3.0.6.tgz", + "integrity": "sha1-FEXyJsXrlWE45oyawwFn6n0ua9o=", + "dev": true, + "optional": true + } + } + }, + "package-json": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/package-json/-/package-json-4.0.1.tgz", + "integrity": "sha1-iGmgQBJTZhxMTKPabCEh7VVfXu0=", + "dev": true, + "requires": { + "got": "6.7.1", + "registry-auth-token": "3.3.2", + "registry-url": "3.1.0", + "semver": "5.5.0" + }, + "dependencies": { + "semver": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", + "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", + "dev": true + } + } + }, "pako": { "version": "0.2.9", "resolved": "https://registry.npmjs.org/pako/-/pako-0.2.9.tgz", "integrity": "sha1-8/dSL073gjSNqBYbrZ7P1Rv4OnU=", "dev": true }, + "parents": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parents/-/parents-1.0.1.tgz", + "integrity": "sha1-/t1NK/GTp3dF/nHjcdc8MwfZx1E=", + "dev": true, + "requires": { + "path-platform": "0.11.15" + } + }, "parse-asn1": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.0.tgz", @@ -5593,21 +8653,18 @@ "error-ex": "1.3.1" } }, + "parse-ms": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parse-ms/-/parse-ms-1.0.1.tgz", + "integrity": "sha1-VjRtR0nXjyNDDKDHE4UK75GqNh0=", + "dev": true + }, "parse-passwd": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", "integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=", "dev": true }, - "parse5": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-3.0.2.tgz", - "integrity": "sha1-Be/1fw70V3+xRKefi5qWemzERRA=", - "dev": true, - "requires": { - "@types/node": "6.0.90" - } - }, "parsejson": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/parsejson/-/parsejson-0.0.3.tgz", @@ -5668,12 +8725,43 @@ "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", "dev": true }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true + }, "path-parse": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", "dev": true }, + "path-platform": { + "version": "0.11.15", + "resolved": "https://registry.npmjs.org/path-platform/-/path-platform-0.11.15.tgz", + "integrity": "sha1-6GQhf3TDaFDwhSt43Hv31KVyG/I=", + "dev": true + }, + "path-proxy": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/path-proxy/-/path-proxy-1.0.0.tgz", + "integrity": "sha1-GOijaFn8nS8aU7SN7hOFQ8Ag3l4=", + "dev": true, + "optional": true, + "requires": { + "inflection": "1.3.8" + }, + "dependencies": { + "inflection": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/inflection/-/inflection-1.3.8.tgz", + "integrity": "sha1-y9Fg2p91sUw8xjV41POWeEvzAU4=", + "dev": true, + "optional": true + } + } + }, "path-root": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz", @@ -5884,13 +8972,23 @@ } } }, + "plur": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/plur/-/plur-2.1.2.tgz", + "integrity": "sha1-dIJFLBoPUI4+NE6uwxLJHCncZVo=", + "dev": true, + "requires": { + "irregular-plurals": "1.4.0" + } + }, "portfinder": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-0.4.0.tgz", - "integrity": "sha1-o/+t/6/k+5jgYBqF7aJ8J86Eyh4=", + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.13.tgz", + "integrity": "sha1-uzLs2HwnEErm7kS1o8y/Drsa7ek=", "dev": true, "requires": { - "async": "0.9.0", + "async": "1.5.2", + "debug": "2.6.9", "mkdirp": "0.5.1" } }, @@ -5900,18 +8998,113 @@ "integrity": "sha1-6rtAnk3iSVD1oqUW01rnaTQ/u5Y=", "dev": true, "requires": { - "async": "1.5.2", - "is-number-like": "1.0.8" - }, - "dependencies": { - "async": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", - "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", - "dev": true - } + "async": "1.5.2", + "is-number-like": "1.0.8" + }, + "dependencies": { + "async": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", + "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", + "dev": true + } + } + }, + "postcss": { + "version": "6.0.20", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.20.tgz", + "integrity": "sha512-Opr6usW30Iy0xEDrJywDckRxtylfO7gTGs3Kfb2LdLQlGsUg89fTy0R3Vm1Dub2YHO7MK58avr0p70+uFFHb7A==", + "dev": true, + "requires": { + "chalk": "2.3.2", + "source-map": "0.6.1", + "supports-color": "5.3.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "1.9.1" + } + }, + "chalk": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz", + "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", + "dev": true, + "requires": { + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.3.0" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "supports-color": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", + "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", + "dev": true, + "requires": { + "has-flag": "3.0.0" + } + } + } + }, + "postcss-clean": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/postcss-clean/-/postcss-clean-1.1.0.tgz", + "integrity": "sha512-83g3GqMbCM5NL6MlbbPLJ/m2NrUepBF44MoDk4Gt04QGXeXKh9+ilQa0DzLnYnvqYHQCw83nckuEzBFr2muwbg==", + "dev": true, + "requires": { + "clean-css": "4.1.11", + "postcss": "6.0.20" + } + }, + "postcss-url": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/postcss-url/-/postcss-url-7.3.1.tgz", + "integrity": "sha512-Ya5KIjGptgz0OtrVYfi2UbLxVAZ6Emc4Of+Grx4Sf1deWlRpFwLr8FrtkUxfqh+XiZIVkXbjQrddE10ESpNmdA==", + "dev": true, + "requires": { + "mime": "1.6.0", + "minimatch": "3.0.4", + "mkdirp": "0.5.1", + "postcss": "6.0.20", + "xxhashjs": "0.2.2" } }, + "postcss-value-parser": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.0.tgz", + "integrity": "sha1-h/OPnxj3dKSrTIojL1xc6IcqnRU=", + "dev": true + }, + "prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", + "dev": true + }, + "prepend-http": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", + "integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=", + "dev": true + }, "preserve": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz", @@ -5924,6 +9117,16 @@ "integrity": "sha1-t+PqQkNaTJsnWdmeDyAesZWALuE=", "dev": true }, + "pretty-ms": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-3.1.0.tgz", + "integrity": "sha1-6crJx2v27lL+lC3ZxsQhMVOxKIE=", + "dev": true, + "requires": { + "parse-ms": "1.0.1", + "plur": "2.1.2" + } + }, "process": { "version": "0.11.10", "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", @@ -5942,12 +9145,54 @@ "integrity": "sha1-4mDHj2Fhzdmw5WzD4Khd4Xx6V74=", "dev": true }, + "promise": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", + "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", + "dev": true, + "optional": true, + "requires": { + "asap": "2.0.6" + } + }, + "proxy-agent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-2.0.0.tgz", + "integrity": "sha1-V+tTR6qAXXTsaByyVknbo5yTNJk=", + "dev": true, + "optional": true, + "requires": { + "agent-base": "2.1.1", + "debug": "2.6.9", + "extend": "3.0.1", + "http-proxy-agent": "1.0.0", + "https-proxy-agent": "1.0.0", + "lru-cache": "2.6.5", + "pac-proxy-agent": "1.1.0", + "socks-proxy-agent": "2.1.1" + }, + "dependencies": { + "lru-cache": { + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.6.5.tgz", + "integrity": "sha1-5W1jVBSO3o13B7WNFDIg/QjfD9U=", + "dev": true, + "optional": true + } + } + }, "prr": { "version": "0.0.0", "resolved": "https://registry.npmjs.org/prr/-/prr-0.0.0.tgz", "integrity": "sha1-GoS4WQgyVQFBGFPQCB7j+obikmo=", "dev": true }, + "pseudomap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", + "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", + "dev": true + }, "public-encrypt": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.0.tgz", @@ -5967,10 +9212,17 @@ "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", "dev": true }, + "q": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.4.1.tgz", + "integrity": "sha1-VXBbzZPF82c1MMLCy8DCs63cKG4=", + "dev": true, + "optional": true + }, "qjobs": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/qjobs/-/qjobs-1.1.5.tgz", - "integrity": "sha1-ZZ3p8s+NzCehSBJ28gU3cnI4LnM=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/qjobs/-/qjobs-1.2.0.tgz", + "integrity": "sha512-8YOJEHtxpySA3fFDyCRxA+UUV+fA+rTWnuWvylOK/NCjhY+b4ocCtmu8TtsWb+mYeU+GCHf/S66KZF/AsteKHg==", "dev": true }, "qs": { @@ -6059,6 +9311,65 @@ "unpipe": "1.0.0" } }, + "rc": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.6.tgz", + "integrity": "sha1-6xiYnG1PTxYsOZ953dKfODVWgJI=", + "dev": true, + "requires": { + "deep-extend": "0.4.2", + "ini": "1.3.4", + "minimist": "1.2.0", + "strip-json-comments": "2.0.1" + } + }, + "read-only-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/read-only-stream/-/read-only-stream-2.0.0.tgz", + "integrity": "sha1-JyT9aoET1zdkrCiNQ4YnDB2/F/A=", + "dev": true, + "requires": { + "readable-stream": "2.3.5" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "process-nextick-args": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "dev": true + }, + "readable-stream": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", + "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "2.0.0", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, "read-pkg": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", @@ -6161,10 +9472,42 @@ "strip-indent": "1.0.1" } }, + "redis": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/redis/-/redis-2.8.0.tgz", + "integrity": "sha512-M1OkonEQwtRmZv4tEWF2VgpG0JWJ8Fv1PhlgT5+B+uNq2cA3Rt1Yt/ryoR+vQNOQcIEgdCdfH0jr3bDpihAw1A==", + "dev": true, + "optional": true, + "requires": { + "double-ended-queue": "2.1.0-0", + "redis-commands": "1.3.5", + "redis-parser": "2.6.0" + } + }, + "redis-commands": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/redis-commands/-/redis-commands-1.3.5.tgz", + "integrity": "sha512-foGF8u6MXGFF++1TZVC6icGXuMYPftKXt1FBT2vrfU9ZATNtZJ8duRC5d1lEfE8hyVe3jhelHGB91oB7I6qLsA==", + "dev": true, + "optional": true + }, + "redis-parser": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/redis-parser/-/redis-parser-2.6.0.tgz", + "integrity": "sha1-Uu0J2srBCPGmMcB+m2mUHnoZUEs=", + "dev": true, + "optional": true + }, "reflect-metadata": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.10.tgz", - "integrity": "sha1-tPg3BEFqytiZiMmxVjXUfgO5NEo=", + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.12.tgz", + "integrity": "sha512-n+IyV+nGz3+0q3/Yf1ra12KpCyi001bi4XFxSjbiWWjfqb52iTTtpGXmCCAOWWIAn9KEuFZKGqBERHmrtScZ3A==", + "dev": true + }, + "regenerator-runtime": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", + "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", "dev": true }, "regex-cache": { @@ -6176,6 +9519,25 @@ "is-equal-shallow": "0.1.3" } }, + "registry-auth-token": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.3.2.tgz", + "integrity": "sha512-JL39c60XlzCVgNrO+qq68FoNb56w/m7JYvGR2jT5iR1xBrUA3Mfx5Twk5rqTThPmQKMWydGmq8oFtDlxfrmxnQ==", + "dev": true, + "requires": { + "rc": "1.2.6", + "safe-buffer": "5.1.1" + } + }, + "registry-url": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-3.1.0.tgz", + "integrity": "sha1-PU74cPc93h138M+aOBQyRE4XSUI=", + "dev": true, + "requires": { + "rc": "1.2.6" + } + }, "remove-trailing-separator": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", @@ -6256,6 +9618,19 @@ "throttleit": "1.0.0" } }, + "requestretry": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/requestretry/-/requestretry-1.13.0.tgz", + "integrity": "sha512-Lmh9qMvnQXADGAQxsXHP4rbgO6pffCfuR8XUBdP9aitJcLQJxhp7YZK4xAVYXnPJ5E52mwrfiKQtKonPL8xsmg==", + "dev": true, + "optional": true, + "requires": { + "extend": "3.0.1", + "lodash": "4.17.5", + "request": "2.81.0", + "when": "3.7.8" + } + }, "require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -6268,6 +9643,12 @@ "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", "dev": true }, + "require-relative": { + "version": "0.8.7", + "resolved": "https://registry.npmjs.org/require-relative/-/require-relative-0.8.7.tgz", + "integrity": "sha1-eZlTn8ngR6N5KPoZb44VY9q9Nt4=", + "dev": true + }, "requires-port": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", @@ -6332,10 +9713,137 @@ } }, "rollup": { - "version": "0.49.3", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-0.49.3.tgz", - "integrity": "sha1-TM4yZD3YzyFUxp/w5DRwBn2wrb8=", - "dev": true + "version": "0.57.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-0.57.1.tgz", + "integrity": "sha512-I18GBqP0qJoJC1K1osYjreqA8VAKovxuI3I81RSk0Dmr4TgloI0tAULjZaox8OsJ+n7XRrhH6i0G2By/pj1LCA==", + "dev": true, + "requires": { + "@types/acorn": "4.0.3", + "acorn": "5.5.3", + "acorn-dynamic-import": "3.0.0", + "date-time": "2.1.0", + "is-reference": "1.1.0", + "locate-character": "2.0.5", + "pretty-ms": "3.1.0", + "require-relative": "0.8.7", + "rollup-pluginutils": "2.0.1", + "signal-exit": "3.0.2", + "sourcemap-codec": "1.4.1" + }, + "dependencies": { + "acorn": { + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.5.3.tgz", + "integrity": "sha512-jd5MkIUlbbmb07nXH0DT3y7rDVtkzDi4XZOUVWAer8ajmF/DTSSbl5oNFyDOl/OXA33Bl79+ypHhl2pN20VeOQ==", + "dev": true + }, + "acorn-dynamic-import": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/acorn-dynamic-import/-/acorn-dynamic-import-3.0.0.tgz", + "integrity": "sha512-zVWV8Z8lislJoOKKqdNMOB+s6+XV5WERty8MnKBeFgwA+19XJjJHs2RP5dzM57FftIs+jQnRToLiWazKr6sSWg==", + "dev": true, + "requires": { + "acorn": "5.5.3" + } + } + } + }, + "rollup-plugin-cleanup": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/rollup-plugin-cleanup/-/rollup-plugin-cleanup-2.0.0.tgz", + "integrity": "sha1-hZdzGaO/VHUKnXX7kJx+UfWaLaQ=", + "dev": true, + "requires": { + "acorn": "4.0.13", + "magic-string": "0.22.5", + "rollup-pluginutils": "2.0.1" + } + }, + "rollup-plugin-commonjs": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/rollup-plugin-commonjs/-/rollup-plugin-commonjs-8.3.0.tgz", + "integrity": "sha512-PYs3OiYgENFYEmI3vOEm5nrp3eY90YZqd5vGmQqeXmhJsAWFIrFdROCvOasqJ1HgeTvqyYo9IGXnFDyoboNcgQ==", + "dev": true, + "requires": { + "acorn": "5.5.3", + "estree-walker": "0.5.1", + "magic-string": "0.22.5", + "resolve": "1.4.0", + "rollup-pluginutils": "2.0.1" + }, + "dependencies": { + "acorn": { + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.5.3.tgz", + "integrity": "sha512-jd5MkIUlbbmb07nXH0DT3y7rDVtkzDi4XZOUVWAer8ajmF/DTSSbl5oNFyDOl/OXA33Bl79+ypHhl2pN20VeOQ==", + "dev": true + }, + "estree-walker": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.5.1.tgz", + "integrity": "sha512-7HgCgz1axW7w5aOvgOQkoR1RMBkllygJrssU3BvymKQ95lxXYv6Pon17fBRDm9qhkvXZGijOULoSF9ShOk/ZLg==", + "dev": true + } + } + }, + "rollup-plugin-license": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/rollup-plugin-license/-/rollup-plugin-license-0.6.0.tgz", + "integrity": "sha512-Ttz65oRtNKcfV5icDkQTixc8ja64ueoXejRJoAtmjXYAWVg0qx+tu5rXmEOXWXmUXeGs0ARUVIAG0p1JK0gACQ==", + "dev": true, + "requires": { + "commenting": "1.0.5", + "lodash": "4.17.5", + "magic-string": "0.22.4", + "mkdirp": "0.5.1", + "moment": "2.21.0" + }, + "dependencies": { + "magic-string": { + "version": "0.22.4", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.22.4.tgz", + "integrity": "sha512-kxBL06p6iO2qPBHsqGK2b3cRwiRGpnmSuVWNhwHcMX7qJOUr1HvricYP1LZOCdkQBUp0jiWg2d6WJwR3vYgByw==", + "dev": true, + "requires": { + "vlq": "0.2.3" + } + }, + "moment": { + "version": "2.21.0", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.21.0.tgz", + "integrity": "sha512-TCZ36BjURTeFTM/CwRcViQlfkMvL1/vFISuNLO5GkcVm1+QHfbSiNqZuWeMFjj1/3+uAjXswgRk30j1kkLYJBQ==", + "dev": true + } + } + }, + "rollup-plugin-node-resolve": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-3.3.0.tgz", + "integrity": "sha512-9zHGr3oUJq6G+X0oRMYlzid9fXicBdiydhwGChdyeNRGPcN/majtegApRKHLR5drboUvEWU+QeUmGTyEZQs3WA==", + "dev": true, + "requires": { + "builtin-modules": "2.0.0", + "is-module": "1.0.0", + "resolve": "1.4.0" + }, + "dependencies": { + "builtin-modules": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-2.0.0.tgz", + "integrity": "sha512-3U5kUA5VPsRUA3nofm/BXX7GVHKfxz0hOBAPxXrIvHzlDRkQVqEn6yi8QJegxl4LzOHLdvb7XF5dVawa/VVYBg==", + "dev": true + } + } + }, + "rollup-pluginutils": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.0.1.tgz", + "integrity": "sha1-fslbNXP2VDpGpkYb2afFRFJdD8A=", + "dev": true, + "requires": { + "estree-walker": "0.3.1", + "micromatch": "2.3.11" + } }, "rollup-stream": { "version": "1.24.1", @@ -6344,35 +9852,163 @@ "dev": true, "requires": { "rollup": "0.49.3" + }, + "dependencies": { + "rollup": { + "version": "0.49.3", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-0.49.3.tgz", + "integrity": "sha512-n/vHRX4GhMIyGZEQRANcSFVtvz99bSRbNMuoC33ar9f4CViqffyF9WklLb2mxIQ6I/uFf7wDEpc66bXBFE7FvA==", + "dev": true + } + } + }, + "rx": { + "version": "2.3.24", + "resolved": "https://registry.npmjs.org/rx/-/rx-2.3.24.tgz", + "integrity": "sha1-FPlQpCF9fjXapxu8vljv9o6ksrc=", + "dev": true + }, + "rxjs": { + "version": "5.6.0-forward-compat.0", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.6.0-forward-compat.0.tgz", + "integrity": "sha512-vA2yCAzU445Oqjup95I29OcS6kaVek7ukaW4GKlp1aDv74vXKnnl/vYAxCzHtqQsWkfi1JMzUM3U63E5Mb4PjQ==", + "dev": true, + "requires": { + "symbol-observable": "1.0.1" + } + }, + "safe-buffer": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", + "integrity": "sha1-iTMSr2myEj3vcfV4iQAWce6yyFM=", + "dev": true + }, + "sander": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/sander/-/sander-0.5.1.tgz", + "integrity": "sha1-dB4kXiMfB8r7b98PEzrfohalAq0=", + "dev": true, + "requires": { + "es6-promise": "3.3.1", + "graceful-fs": "4.1.11", + "mkdirp": "0.5.1", + "rimraf": "2.6.2" + }, + "dependencies": { + "es6-promise": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-3.3.1.tgz", + "integrity": "sha1-oIzd6EzNvzTQJ6FFG8kdS80ophM=", + "dev": true + }, + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "dev": true + } + } + }, + "sass-graph": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.2.4.tgz", + "integrity": "sha1-E/vWPNHK8JCLn9k0dq1DpR0eC0k=", + "dev": true, + "requires": { + "glob": "7.1.2", + "lodash": "4.17.5", + "scss-tokenizer": "0.2.3", + "yargs": "7.1.0" + }, + "dependencies": { + "camelcase": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", + "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", + "dev": true + }, + "yargs": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-7.1.0.tgz", + "integrity": "sha1-a6MY6xaWFyf10oT46gA+jWFU0Mg=", + "dev": true, + "requires": { + "camelcase": "3.0.0", + "cliui": "3.2.0", + "decamelize": "1.2.0", + "get-caller-file": "1.0.2", + "os-locale": "1.4.0", + "read-pkg-up": "1.0.1", + "require-directory": "2.1.1", + "require-main-filename": "1.0.1", + "set-blocking": "2.0.0", + "string-width": "1.0.2", + "which-module": "1.0.0", + "y18n": "3.2.1", + "yargs-parser": "5.0.0" + } + }, + "yargs-parser": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-5.0.0.tgz", + "integrity": "sha1-J17PDX/+Bcd+ZOfIbkzZS/DhIoo=", + "dev": true, + "requires": { + "camelcase": "3.0.0" + } + } } }, - "rx": { - "version": "2.3.24", - "resolved": "https://registry.npmjs.org/rx/-/rx-2.3.24.tgz", - "integrity": "sha1-FPlQpCF9fjXapxu8vljv9o6ksrc=", + "sax": { + "version": "0.5.8", + "resolved": "https://registry.npmjs.org/sax/-/sax-0.5.8.tgz", + "integrity": "sha1-1HLbIo6zMcJQaw6MFVJK25OdEsE=", "dev": true }, - "rxjs": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.0.tgz", - "integrity": "sha1-Jtjzhm63AOJH4HKKFHw9YomT2BI=", + "scss-tokenizer": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz", + "integrity": "sha1-jrBtualyMzOCTT9VMGQRSYR85dE=", "dev": true, "requires": { - "symbol-observable": "1.0.4" + "js-base64": "2.4.3", + "source-map": "0.4.4" + }, + "dependencies": { + "source-map": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", + "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", + "dev": true, + "requires": { + "amdefine": "1.0.1" + } + } } }, - "safe-buffer": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", - "integrity": "sha1-iTMSr2myEj3vcfV4iQAWce6yyFM=", - "dev": true - }, "semver": { "version": "4.3.6", "resolved": "https://registry.npmjs.org/semver/-/semver-4.3.6.tgz", "integrity": "sha1-MAvG4OhjdPe6YQaLWx7NV/xlMto=", "dev": true }, + "semver-diff": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-2.1.0.tgz", + "integrity": "sha1-S7uEN8jTfksM8aaP1ybsbWRdbTY=", + "dev": true, + "requires": { + "semver": "5.5.0" + }, + "dependencies": { + "semver": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", + "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", + "dev": true + } + } + }, "send": { "version": "0.15.2", "resolved": "https://registry.npmjs.org/send/-/send-0.15.2.tgz", @@ -6544,6 +10180,54 @@ "safe-buffer": "5.1.1" } }, + "shasum": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/shasum/-/shasum-1.0.2.tgz", + "integrity": "sha1-5wEjENj0F/TetXEhUOVni4euVl8=", + "dev": true, + "requires": { + "json-stable-stringify": "0.0.1", + "sha.js": "2.4.9" + }, + "dependencies": { + "json-stable-stringify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-0.0.1.tgz", + "integrity": "sha1-YRwj6BTbN1Un34URk9tZ3Sryf0U=", + "dev": true, + "requires": { + "jsonify": "0.0.0" + } + } + } + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "dev": true, + "requires": { + "shebang-regex": "1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "dev": true + }, + "shell-quote": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.6.1.tgz", + "integrity": "sha1-9HgZSczkAmlxJ0MOo7PFR29IF2c=", + "dev": true, + "requires": { + "array-filter": "0.0.1", + "array-map": "0.0.0", + "array-reduce": "0.0.0", + "jsonify": "0.0.0" + } + }, "sigmund": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz", @@ -6556,6 +10240,32 @@ "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", "dev": true }, + "slack-node": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/slack-node/-/slack-node-0.2.0.tgz", + "integrity": "sha1-3kuN3aqLeT9h29KTgQT9q/N9+jA=", + "dev": true, + "optional": true, + "requires": { + "requestretry": "1.13.0" + } + }, + "smart-buffer": { + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-1.1.15.tgz", + "integrity": "sha1-fxFLW2X6s+KjWqd1uxLw0cZJvxY=", + "dev": true + }, + "smtp-connection": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/smtp-connection/-/smtp-connection-2.12.0.tgz", + "integrity": "sha1-1275EnyyPCJZ7bHoNJwujV4tdME=", + "dev": true, + "requires": { + "httpntlm": "1.6.1", + "nodemailer-shared": "1.1.0" + } + }, "sntp": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz", @@ -6566,40 +10276,58 @@ } }, "socket.io": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-1.7.3.tgz", - "integrity": "sha1-uK+cq6AJSeVo42nxMn6pvp6iRhs=", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-2.0.4.tgz", + "integrity": "sha1-waRZDO/4fs8TxyZS8Eb3FrKeYBQ=", "dev": true, "requires": { - "debug": "2.3.3", - "engine.io": "1.8.3", - "has-binary": "0.1.7", - "object-assign": "4.1.0", - "socket.io-adapter": "0.5.0", - "socket.io-client": "1.7.3", - "socket.io-parser": "2.3.1" + "debug": "2.6.9", + "engine.io": "3.1.5", + "socket.io-adapter": "1.1.1", + "socket.io-client": "2.0.4", + "socket.io-parser": "3.1.3" }, "dependencies": { - "debug": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.3.3.tgz", - "integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=", - "dev": true, - "requires": { - "ms": "0.7.2" - } + "component-emitter": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", + "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", + "dev": true }, - "ms": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", - "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", + "isarray": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz", + "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4=", "dev": true }, - "object-assign": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.0.tgz", - "integrity": "sha1-ejs9DpgGPUP0wD8uiubNUahog6A=", + "socket.io-adapter": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-1.1.1.tgz", + "integrity": "sha1-KoBeihTWNyEk3ZFZrUUC+MsH8Gs=", "dev": true + }, + "socket.io-parser": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.1.3.tgz", + "integrity": "sha512-g0a2HPqLguqAczs3dMECuA1RgoGFPyvDqcbaDEdCWY9g59kdUAz3YRmaJBNKXflrHNwB7Q12Gkf/0CZXfdHR7g==", + "dev": true, + "requires": { + "component-emitter": "1.2.1", + "debug": "3.1.0", + "has-binary2": "1.0.2", + "isarray": "2.0.1" + }, + "dependencies": { + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + } + } } } }, @@ -6631,21 +10359,23 @@ } }, "socket.io-client": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-1.7.3.tgz", - "integrity": "sha1-sw6GqhDV7zVGYBwJzeR2Xjgdo3c=", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-2.0.4.tgz", + "integrity": "sha1-CRilUkBtxeVAs4Dc2Xr8SmQzL44=", "dev": true, "requires": { "backo2": "1.0.2", + "base64-arraybuffer": "0.1.5", "component-bind": "1.0.0", "component-emitter": "1.2.1", - "debug": "2.3.3", - "engine.io-client": "1.8.3", - "has-binary": "0.1.7", + "debug": "2.6.9", + "engine.io-client": "3.1.6", + "has-cors": "1.1.0", "indexof": "0.0.1", "object-component": "0.0.3", + "parseqs": "0.0.5", "parseuri": "0.0.5", - "socket.io-parser": "2.3.1", + "socket.io-parser": "3.1.3", "to-array": "0.1.4" }, "dependencies": { @@ -6655,20 +10385,34 @@ "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", "dev": true }, - "debug": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.3.3.tgz", - "integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=", + "isarray": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz", + "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4=", + "dev": true + }, + "socket.io-parser": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.1.3.tgz", + "integrity": "sha512-g0a2HPqLguqAczs3dMECuA1RgoGFPyvDqcbaDEdCWY9g59kdUAz3YRmaJBNKXflrHNwB7Q12Gkf/0CZXfdHR7g==", "dev": true, "requires": { - "ms": "0.7.2" + "component-emitter": "1.2.1", + "debug": "3.1.0", + "has-binary2": "1.0.2", + "isarray": "2.0.1" + }, + "dependencies": { + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + } } - }, - "ms": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", - "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", - "dev": true } } }, @@ -6701,6 +10445,47 @@ } } }, + "socks": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/socks/-/socks-1.1.10.tgz", + "integrity": "sha1-W4t/x8jzQcU+0FbpKbe/Tei6e1o=", + "dev": true, + "requires": { + "ip": "1.1.5", + "smart-buffer": "1.1.15" + }, + "dependencies": { + "ip": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", + "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=", + "dev": true + } + } + }, + "socks-proxy-agent": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-2.1.1.tgz", + "integrity": "sha512-sFtmYqdUK5dAMh85H0LEVFUCO7OhJJe1/z2x/Z6mxp3s7/QPf1RkZmpZy+BpuU0bEjcV9npqKjq9Y3kwFUjnxw==", + "dev": true, + "requires": { + "agent-base": "2.1.1", + "extend": "3.0.1", + "socks": "1.1.10" + } + }, + "sorcery": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/sorcery/-/sorcery-0.10.0.tgz", + "integrity": "sha1-iukK19fLBfxZ8asMY3hF1cFaUrc=", + "dev": true, + "requires": { + "buffer-crc32": "0.2.13", + "minimist": "1.2.0", + "sander": "0.5.1", + "sourcemap-codec": "1.4.1" + } + }, "source-list-map": { "version": "0.1.8", "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-0.1.8.tgz", @@ -6714,14 +10499,28 @@ "dev": true }, "source-map-support": { - "version": "0.4.18", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", - "integrity": "sha1-Aoam3ovkJkEzhZTpfM6nXwosWF8=", + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.4.tgz", + "integrity": "sha512-PETSPG6BjY1AHs2t64vS2aqAgu6dMIMXJULWFBGbh2Gr8nVLbCFDo6i/RMMvviIQ2h1Z8+5gQhVKSn2je9nmdg==", "dev": true, "requires": { - "source-map": "0.5.7" + "source-map": "0.6.1" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } } }, + "sourcemap-codec": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.1.tgz", + "integrity": "sha512-hX1eNBNuilj8yfFnECh0DzLgwKpBLMIvmhgEhixXNui8lMLBInTI8Kyxt++RwJnMNu7cAUo635L2+N1TxMJCzA==", + "dev": true + }, "sparkles": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/sparkles/-/sparkles-1.0.0.tgz", @@ -6756,9 +10555,9 @@ "dev": true }, "sprintf-js": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.1.tgz", - "integrity": "sha1-Nr54Mgr+WAH2zqPueLblqrlA6gw=", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", "dev": true }, "sshpk": { @@ -6791,32 +10590,136 @@ "integrity": "sha1-u3PURtonlhBu/MG2AaJT1sRr0Ic=", "dev": true }, - "stream-browserify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.1.tgz", - "integrity": "sha1-ZiZu5fm9uZQKTkUUyvtDu3Hlyds=", + "stdout-stream": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.0.tgz", + "integrity": "sha1-osfIWH5U2UJ+qe2zrD8s1SLfN4s=", + "dev": true, + "requires": { + "readable-stream": "2.3.5" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "process-nextick-args": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "dev": true + }, + "readable-stream": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", + "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "2.0.0", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, + "stream-browserify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.1.tgz", + "integrity": "sha1-ZiZu5fm9uZQKTkUUyvtDu3Hlyds=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "readable-stream": "2.3.3" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "readable-stream": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", + "integrity": "sha1-No8lEtefnUb9/HE0mueHi7weuVw=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha1-D8Z9fBQYJd6UKC3VNr7GubzoYKs=", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, + "stream-combiner2": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", + "integrity": "sha1-+02KFCDqNidk4hrUeAOXvry0HL4=", "dev": true, "requires": { - "inherits": "2.0.3", - "readable-stream": "2.3.3" + "duplexer2": "0.1.4", + "readable-stream": "2.3.5" }, "dependencies": { + "duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", + "dev": true, + "requires": { + "readable-stream": "2.3.5" + } + }, "isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", "dev": true }, + "process-nextick-args": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "dev": true + }, "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha1-No8lEtefnUb9/HE0mueHi7weuVw=", + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", + "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", "dev": true, "requires": { "core-util-is": "1.0.2", "inherits": "2.0.3", "isarray": "1.0.0", - "process-nextick-args": "1.0.7", + "process-nextick-args": "2.0.0", "safe-buffer": "5.1.1", "string_decoder": "1.0.3", "util-deprecate": "1.0.2" @@ -6825,7 +10728,7 @@ "string_decoder": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha1-D8Z9fBQYJd6UKC3VNr7GubzoYKs=", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", "dev": true, "requires": { "safe-buffer": "5.1.1" @@ -6884,6 +10787,54 @@ } } }, + "stream-splicer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/stream-splicer/-/stream-splicer-2.0.0.tgz", + "integrity": "sha1-G2O+Q4oTPktnHMGTUZdgAXWRDYM=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "readable-stream": "2.3.5" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "process-nextick-args": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "dev": true + }, + "readable-stream": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", + "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "2.0.0", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, "stream-throttle": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/stream-throttle/-/stream-throttle-0.1.3.tgz", @@ -6894,6 +10845,65 @@ "limiter": "1.1.2" } }, + "streamroller": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/streamroller/-/streamroller-0.7.0.tgz", + "integrity": "sha512-WREzfy0r0zUqp3lGO096wRuUp7ho1X6uo/7DJfTlEi0Iv/4gT7YHqXDjKC2ioVGBZtE8QzsQD9nx1nIuoZ57jQ==", + "dev": true, + "requires": { + "date-format": "1.2.0", + "debug": "3.1.0", + "mkdirp": "0.5.1", + "readable-stream": "2.3.5" + }, + "dependencies": { + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "process-nextick-args": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "dev": true + }, + "readable-stream": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", + "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "2.0.0", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + } + } + }, "string-width": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", @@ -6953,6 +10963,12 @@ "is-utf8": "0.2.1" } }, + "strip-eof": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", + "dev": true + }, "strip-indent": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz", @@ -6962,6 +10978,60 @@ "get-stdin": "4.0.1" } }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "stylus": { + "version": "0.54.5", + "resolved": "https://registry.npmjs.org/stylus/-/stylus-0.54.5.tgz", + "integrity": "sha1-QrlWCTHKcJDOhRWnmLqeaqPW3Hk=", + "dev": true, + "requires": { + "css-parse": "1.7.0", + "debug": "2.6.9", + "glob": "7.0.6", + "mkdirp": "0.5.1", + "sax": "0.5.8", + "source-map": "0.1.43" + }, + "dependencies": { + "glob": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.0.6.tgz", + "integrity": "sha1-IRuvr0nlJbjNkyYNFKsTYVKz9Xo=", + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "source-map": { + "version": "0.1.43", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", + "integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=", + "dev": true, + "requires": { + "amdefine": "1.0.1" + } + } + } + }, + "subarg": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz", + "integrity": "sha1-9izxdYHplrSPyWVpn1TAauJouNI=", + "dev": true, + "requires": { + "minimist": "1.2.0" + } + }, "supports-color": { "version": "3.2.3", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", @@ -6972,15 +11042,24 @@ } }, "symbol-observable": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.0.4.tgz", - "integrity": "sha1-Kb9hXUqnEhvdiYsi1LP5vE4qoD0=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.0.1.tgz", + "integrity": "sha1-g0D8RwLDEi310iKI+IKD9RPT/dQ=", "dev": true }, + "syntax-error": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-1.4.0.tgz", + "integrity": "sha512-YPPlu67mdnHGTup2A8ff7BC2Pjq0e0Yp/IyTFN03zWO0RcK07uLcbi7C2KpGR2FvWbaB0+bfE27a+sBKebSo7w==", + "dev": true, + "requires": { + "acorn-node": "1.3.0" + } + }, "systemjs": { - "version": "0.20.18", - "resolved": "https://registry.npmjs.org/systemjs/-/systemjs-0.20.18.tgz", - "integrity": "sha1-Lf1VqXDPigT6U8mYwA2CJqg7HbA=", + "version": "0.21.0", + "resolved": "https://registry.npmjs.org/systemjs/-/systemjs-0.21.0.tgz", + "integrity": "sha512-Ly/H3MUDaxl5OzMJ/loGFLWPao0h6WHcN6LHlI2HdsTJfZY9sYyn5B2SDnifuBlOUFlTr65rLAP+vSAXDsxOtg==", "dev": true }, "tapable": { @@ -6989,6 +11068,26 @@ "integrity": "sha1-mTcqXJmb8t8WCvwNdL7U9HlIzSI=", "dev": true }, + "tar": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz", + "integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=", + "dev": true, + "requires": { + "block-stream": "0.0.9", + "fstream": "1.0.11", + "inherits": "2.0.3" + } + }, + "term-size": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/term-size/-/term-size-1.2.0.tgz", + "integrity": "sha1-RYuDiH8oj8Vtb/+/rSYuJmOO+mk=", + "dev": true, + "requires": { + "execa": "0.7.0" + } + }, "tfunk": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/tfunk/-/tfunk-3.1.0.tgz", @@ -7056,6 +11155,12 @@ "integrity": "sha1-nnhYNtr0Z0MUWlmEtiaNgoUorGw=", "dev": true }, + "through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", + "dev": true + }, "through2": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.3.tgz", @@ -7098,6 +11203,13 @@ } } }, + "thunkify": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/thunkify/-/thunkify-2.1.2.tgz", + "integrity": "sha1-+qDp0jDFGsyVyhOjYawFyn4EVT0=", + "dev": true, + "optional": true + }, "tildify": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/tildify/-/tildify-1.2.0.tgz", @@ -7113,6 +11225,18 @@ "integrity": "sha1-dkpaEa9QVhkhsTPztE5hhofg9cM=", "dev": true }, + "time-zone": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/time-zone/-/time-zone-1.0.0.tgz", + "integrity": "sha1-mcW/VZWJZq9tBtg73zgA3IL67F0=", + "dev": true + }, + "timed-out": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", + "integrity": "sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8=", + "dev": true + }, "timers-browserify": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.4.tgz", @@ -7122,10 +11246,17 @@ "setimmediate": "1.0.5" } }, + "timespan": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/timespan/-/timespan-2.3.0.tgz", + "integrity": "sha1-SQLOBAvRPYRcj1myfp1ZutbzmSk=", + "dev": true, + "optional": true + }, "tmp": { - "version": "0.0.31", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.31.tgz", - "integrity": "sha1-jzirlDjhcxXl29izZX6L+yd65Kc=", + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", "dev": true, "requires": { "os-tmpdir": "1.0.2" @@ -7155,7 +11286,7 @@ "tree-kill": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.0.tgz", - "integrity": "sha1-WEZ4Yje0I5AU8F2xVrZDIS1MbzY=", + "integrity": "sha512-DlX6dR0lOIRDFxI0mjL9IYg6OTncLm/Zt+JiBhE5OlFcAR8yc9S7FFXU9so0oda47frdM/JFsk7UjNt9vscKcg==", "dev": true }, "trim-newlines": { @@ -7164,16 +11295,48 @@ "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=", "dev": true }, + "true-case-path": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/true-case-path/-/true-case-path-1.0.2.tgz", + "integrity": "sha1-fskRMJJHZsf1c74wIMNPj9/QDWI=", + "dev": true, + "requires": { + "glob": "6.0.4" + }, + "dependencies": { + "glob": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz", + "integrity": "sha1-DwiGD2oVUSey+t1PnOJLGqtuTSI=", + "dev": true, + "requires": { + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + } + } + }, "tsickle": { - "version": "0.21.6", - "resolved": "https://registry.npmjs.org/tsickle/-/tsickle-0.21.6.tgz", - "integrity": "sha1-U7Abl5xcE/2xOvs/uVgXflmRWI0=", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/tsickle/-/tsickle-0.27.2.tgz", + "integrity": "sha512-KW+ZgY0t2cq2Qib1sfdgMiRnk+cr3brUtzZoVWjv+Ot3jNxVorFBUH+6In6hl8Dg7BI2AAFf69NHkwvZNMSFwA==", "dev": true, "requires": { "minimist": "1.2.0", "mkdirp": "0.5.1", - "source-map": "0.5.7", - "source-map-support": "0.4.18" + "source-map": "0.6.1", + "source-map-support": "0.5.4" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } } }, "tslib": { @@ -7183,52 +11346,98 @@ "dev": true }, "tslint": { - "version": "3.15.1", - "resolved": "https://registry.npmjs.org/tslint/-/tslint-3.15.1.tgz", - "integrity": "sha1-2hZcqT2P3CwIa1EWXuG6y0jJjqU=", + "version": "5.9.1", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.9.1.tgz", + "integrity": "sha1-ElX4ej/1frCw4fDmEKi0dIBGya4=", "dev": true, "requires": { - "colors": "1.1.2", - "diff": "2.2.3", - "findup-sync": "0.3.0", + "babel-code-frame": "6.26.0", + "builtin-modules": "1.1.1", + "chalk": "2.3.2", + "commander": "2.15.1", + "diff": "3.5.0", "glob": "7.1.2", - "optimist": "0.6.1", + "js-yaml": "3.11.0", + "minimatch": "3.0.4", "resolve": "1.4.0", - "underscore.string": "3.3.4" + "semver": "5.5.0", + "tslib": "1.8.0", + "tsutils": "2.22.2" }, "dependencies": { - "colors": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", - "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=", + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "1.9.1" + } + }, + "chalk": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz", + "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", + "dev": true, + "requires": { + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.3.0" + } + }, + "commander": { + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", + "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", "dev": true }, - "findup-sync": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.3.0.tgz", - "integrity": "sha1-N5MKpdgWt3fANEXhlmzGeQpMCxY=", + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "semver": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", + "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", + "dev": true + }, + "supports-color": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", + "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", "dev": true, "requires": { - "glob": "5.0.15" - }, - "dependencies": { - "glob": { - "version": "5.0.15", - "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", - "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=", - "dev": true, - "requires": { - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" - } - } + "has-flag": "3.0.0" } } } }, + "tsscmp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tsscmp/-/tsscmp-1.0.5.tgz", + "integrity": "sha1-fcSjOvcVgatDN9qR2FylQn69mpc=", + "dev": true, + "optional": true + }, + "tsutils": { + "version": "2.22.2", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.22.2.tgz", + "integrity": "sha512-u06FUSulCJ+Y8a2ftuqZN6kIGqdP2yJjUPEngXqmdPND4UQfb04igcotH+dw+IFr417yP6muCLE8/5/Qlfnx0w==", + "dev": true, + "requires": { + "tslib": "1.9.0" + }, + "dependencies": { + "tslib": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.0.tgz", + "integrity": "sha512-f/qGG2tUkrISBlQZEjEqoZ3B2+npJjIf04H1wuAv9iA8i04Icp+61KRXxFdha22670NJopsZCIjhC3SnjPRKrQ==", + "dev": true + } + } + }, "tty-browserify": { "version": "0.0.0", "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", @@ -7251,14 +11460,40 @@ "dev": true, "optional": true }, + "type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", + "dev": true, + "requires": { + "prelude-ls": "1.1.2" + } + }, "type-is": { - "version": "1.6.15", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.15.tgz", - "integrity": "sha1-yrEPtJCeRByChC6v4a1kbIGARBA=", + "version": "1.6.16", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.16.tgz", + "integrity": "sha512-HRkVv/5qY2G6I8iab9cI7v1bOIdhm94dVjQCPFElW9W+3GeDOSHmy2EBYe4VTApuzolPcmgFTN3ftVJRKR2J9Q==", "dev": true, "requires": { "media-typer": "0.3.0", - "mime-types": "2.1.17" + "mime-types": "2.1.18" + }, + "dependencies": { + "mime-db": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", + "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==", + "dev": true + }, + "mime-types": { + "version": "2.1.18", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", + "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", + "dev": true, + "requires": { + "mime-db": "1.33.0" + } + } } }, "typedarray": { @@ -7268,9 +11503,9 @@ "dev": true }, "typescript": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.3.4.tgz", - "integrity": "sha1-PTgyGCgjHkNPKHUUlZw3qCtin0I=", + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.6.2.tgz", + "integrity": "sha1-PFtv1/beCRQmkCfwPAlGdY92c6Q=", "dev": true }, "ua-parser-js": { @@ -7346,6 +11581,12 @@ "integrity": "sha1-rOEWq1V80Zc4ak6I9GhTeMiy5Po=", "dev": true }, + "umd": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/umd/-/umd-3.0.3.tgz", + "integrity": "sha512-4IcGSufhFshvLNcMCV80UnQVlZ5pMOC8mvNPForqwA4+lzYQuetTESLDQkeLmihq8bRcnpbQa48Wb8Lh16/xow==", + "dev": true + }, "unc-path-regex": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", @@ -7358,16 +11599,6 @@ "integrity": "sha1-a7rwh3UA02vjTsqlhODbn+8DUgk=", "dev": true }, - "underscore.string": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-3.3.4.tgz", - "integrity": "sha1-LCo/n4PmR2L9xF5s6sZRQoZCE9s=", - "dev": true, - "requires": { - "sprintf-js": "1.1.1", - "util-deprecate": "1.0.2" - } - }, "union": { "version": "0.4.6", "resolved": "https://registry.npmjs.org/union/-/union-0.4.6.tgz", @@ -7383,6 +11614,15 @@ "integrity": "sha1-1ZpKdUJ0R9mqbJHnAmP40mpLEEs=", "dev": true }, + "unique-string": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-1.0.0.tgz", + "integrity": "sha1-nhBXzKhRq7kzmPizOuGHuZyuwRo=", + "dev": true, + "requires": { + "crypto-random-string": "1.0.0" + } + }, "universalify": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.1.tgz", @@ -7395,6 +11635,66 @@ "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", "dev": true }, + "unzip-response": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unzip-response/-/unzip-response-2.0.1.tgz", + "integrity": "sha1-0vD3N9FrBhXnKmk17QQhRXLVb5c=", + "dev": true + }, + "update-notifier": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-2.3.0.tgz", + "integrity": "sha1-TognpruRUUCrCTVZ1wFOPruDdFE=", + "dev": true, + "requires": { + "boxen": "1.3.0", + "chalk": "2.3.2", + "configstore": "3.1.1", + "import-lazy": "2.1.0", + "is-installed-globally": "0.1.0", + "is-npm": "1.0.0", + "latest-version": "3.1.0", + "semver-diff": "2.1.0", + "xdg-basedir": "3.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "1.9.1" + } + }, + "chalk": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz", + "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", + "dev": true, + "requires": { + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.3.0" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "supports-color": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", + "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", + "dev": true, + "requires": { + "has-flag": "3.0.0" + } + } + } + }, "url": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", @@ -7414,11 +11714,20 @@ } }, "url-join": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/url-join/-/url-join-1.1.0.tgz", - "integrity": "sha1-dBxsL0WWxIMNZxhGCSDQySIC3Hg=", + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/url-join/-/url-join-2.0.5.tgz", + "integrity": "sha1-WvIvGMBSoACkjXuCxenC4v7tpyg=", "dev": true }, + "url-parse-lax": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz", + "integrity": "sha1-evjzA2Rem9eaJy56FKxovAYJ2nM=", + "dev": true, + "requires": { + "prepend-http": "1.0.4" + } + }, "user-home": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/user-home/-/user-home-1.1.1.tgz", @@ -7426,20 +11735,24 @@ "dev": true }, "useragent": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/useragent/-/useragent-2.2.1.tgz", - "integrity": "sha1-z1k+9PLRdYdei7ZY6pLhik/QbY4=", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/useragent/-/useragent-2.3.0.tgz", + "integrity": "sha512-4AoH4pxuSvHCjqLO04sU6U/uE65BYza8l/KKBS0b0hnUPWi+cQ2BpeTEwejCSx9SPV5/U03nniDTrWx5NrmKdw==", "dev": true, "requires": { - "lru-cache": "2.2.4", - "tmp": "0.0.31" + "lru-cache": "4.1.2", + "tmp": "0.0.33" }, "dependencies": { "lru-cache": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.2.4.tgz", - "integrity": "sha1-bGWGGb7PFAMdDQtZSxYELOTcBj0=", - "dev": true + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.2.tgz", + "integrity": "sha512-wgeVXhrDwAWnIF/yZARsFnMBtdFXOg1b8RIrhilp+0iDYN4mdQcNZElDZ0e4B64BhaxeQ5zN7PMyvu7we1kPeQ==", + "dev": true, + "requires": { + "pseudomap": "1.0.2", + "yallist": "2.1.2" + } } } }, @@ -7478,6 +11791,13 @@ "integrity": "sha1-PdPT55Crwk17DToDT/q6vijrvAQ=", "dev": true }, + "uws": { + "version": "9.14.0", + "resolved": "https://registry.npmjs.org/uws/-/uws-9.14.0.tgz", + "integrity": "sha512-HNMztPP5A1sKuVFmdZ6BPVpBQd5bUjNC8EFMFiICK+oho/OQsAJy5hnIx4btMHiOk8j04f/DbIlqnEZ9d72dqg==", + "dev": true, + "optional": true + }, "v8flags": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-2.1.1.tgz", @@ -7584,55 +11904,55 @@ } }, "vinyl-source-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/vinyl-source-stream/-/vinyl-source-stream-1.1.0.tgz", - "integrity": "sha1-RMvlEIIFJ53rDFZTwJSiiHk4sas=", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/vinyl-source-stream/-/vinyl-source-stream-2.0.0.tgz", + "integrity": "sha1-84pa+53R6Ttl1VBGmsYYKsT1S44=", "dev": true, "requires": { - "through2": "0.6.5", - "vinyl": "0.4.6" + "through2": "2.0.3", + "vinyl": "2.1.0" }, "dependencies": { "clone": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/clone/-/clone-0.2.0.tgz", - "integrity": "sha1-xhJqkK1Pctv1rNskPMN3JP6T/B8=", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=", "dev": true }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", - "dev": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "0.0.1", - "string_decoder": "0.10.31" - } + "clone-stats": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz", + "integrity": "sha1-s3gt/4u1R04Yuba/D9/ngvh3doA=", + "dev": true }, - "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", - "dev": true, - "requires": { - "readable-stream": "1.0.34", - "xtend": "4.0.1" - } + "replace-ext": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz", + "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=", + "dev": true }, "vinyl": { - "version": "0.4.6", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.4.6.tgz", - "integrity": "sha1-LzVsh6VQolVGHza76ypbqL94SEc=", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.1.0.tgz", + "integrity": "sha1-Ah+cLPlR1rk5lDyJ617lrdT9kkw=", "dev": true, "requires": { - "clone": "0.2.0", - "clone-stats": "0.0.1" + "clone": "2.1.2", + "clone-buffer": "1.0.0", + "clone-stats": "1.0.0", + "cloneable-readable": "1.1.2", + "remove-trailing-separator": "1.1.0", + "replace-ext": "1.0.0" } } } }, + "vlq": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/vlq/-/vlq-0.2.3.tgz", + "integrity": "sha512-DRibZL6DsNhIgYQ+wNdWDL2SL3bKPlVrRiBqV5yuMm++op8W4kGFtaQfCs4KEJn0wBZcHVHJ3eoywX8983k1ow==", + "dev": true + }, "vm-browserify": { "version": "0.0.4", "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-0.0.4.tgz", @@ -7665,7 +11985,7 @@ "integrity": "sha1-hDGQ/WtzV6C54clW7d3V7IRitU0=", "dev": true, "requires": { - "lodash": "4.17.4" + "lodash": "4.17.5" } }, "graceful-fs": { @@ -7710,7 +12030,7 @@ "integrity": "sha1-hDGQ/WtzV6C54clW7d3V7IRitU0=", "dev": true, "requires": { - "lodash": "4.17.4" + "lodash": "4.17.5" } }, "camelcase": { @@ -7743,23 +12063,74 @@ } }, "webpack-dev-middleware": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-1.12.0.tgz", - "integrity": "sha1-007++y7dp+HTtdvgcolRMhllFwk=", + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-2.0.6.tgz", + "integrity": "sha512-tj5LLD9r4tDuRIDa5Mu9lnY2qBBehAITv6A9irqXhw/HQquZgTx3BCd57zYbU2gMDnncA49ufK2qVQSbaKJwOw==", "dev": true, "requires": { + "loud-rejection": "1.6.0", "memory-fs": "0.4.1", - "mime": "1.4.1", + "mime": "2.2.0", "path-is-absolute": "1.0.1", "range-parser": "1.2.0", - "time-stamp": "2.0.0" + "url-join": "2.0.5", + "webpack-log": "1.1.2" }, "dependencies": { - "time-stamp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-2.0.0.tgz", - "integrity": "sha1-lcakRTDhW6jW9KPsuMOj+sRto1c=", + "mime": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.2.0.tgz", + "integrity": "sha512-0Qz9uF1ATtl8RKJG4VRfOymh7PyEor6NbrI/61lRfuRe4vx9SNATrvAeTj2EWVRKjEQGskrzWkJBBY5NbaVHIA==", + "dev": true + } + } + }, + "webpack-log": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/webpack-log/-/webpack-log-1.1.2.tgz", + "integrity": "sha512-B53SD4N4BHpZdUwZcj4st2QT7gVfqZtqHDruC1N+K2sciq0Rt/3F1Dx6RlylVkcrToMLTaiaeT48k9Lq4iDVDA==", + "dev": true, + "requires": { + "chalk": "2.3.2", + "log-symbols": "2.2.0", + "loglevelnext": "1.0.3", + "uuid": "3.1.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "1.9.1" + } + }, + "chalk": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz", + "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", + "dev": true, + "requires": { + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.3.0" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", "dev": true + }, + "supports-color": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", + "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", + "dev": true, + "requires": { + "has-flag": "3.0.0" + } } } }, @@ -7784,6 +12155,13 @@ "underscore": "1.7.0" } }, + "when": { + "version": "3.7.8", + "resolved": "https://registry.npmjs.org/when/-/when-3.7.8.tgz", + "integrity": "sha1-xxMLan6gRpPoQs3J56Hyqjmjn4I=", + "dev": true, + "optional": true + }, "which": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/which/-/which-1.3.0.tgz", @@ -7799,6 +12177,57 @@ "integrity": "sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8=", "dev": true }, + "wide-align": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.2.tgz", + "integrity": "sha512-ijDLlyQ7s6x1JgCLur53osjm/UXUYD9+0PbYKrBsYisYXzCxN+HC3mYDNy/dWdmf3AwqwU3CXwDCvsNgGK1S0w==", + "dev": true, + "requires": { + "string-width": "1.0.2" + } + }, + "widest-line": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-2.0.0.tgz", + "integrity": "sha1-AUKk6KJD+IgsAjOqDgKBqnYVInM=", + "dev": true, + "requires": { + "string-width": "2.1.1" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "2.0.0", + "strip-ansi": "4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + } + } + } + }, "window-size": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.4.tgz", @@ -7844,14 +12273,42 @@ "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, + "write-file-atomic": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.3.0.tgz", + "integrity": "sha512-xuPeK4OdjWqtfi59ylvVL0Yn35SF3zgcAcv7rBPFHVaEapaDr4GdGgm3j7ckTwH9wHL7fGmgfAnb0+THrHb8tA==", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "imurmurhash": "0.1.4", + "signal-exit": "3.0.2" + }, + "dependencies": { + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "dev": true + } + } + }, "ws": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/ws/-/ws-1.1.2.tgz", - "integrity": "sha1-iiRPoFJAHgjJiGz0SoUYnh/UBn8=", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-3.3.3.tgz", + "integrity": "sha512-nnWLa/NwZSt4KQJu51MYlCcSQ5g7INpOrOMt4XV8j4dqTXdmlUmSHQ8/oLC069ckre0fRsgfvsKwbTdtKLCDkA==", "dev": true, "requires": { - "options": "0.0.6", - "ultron": "1.0.2" + "async-limiter": "1.0.0", + "safe-buffer": "5.1.1", + "ultron": "1.1.1" + }, + "dependencies": { + "ultron": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.1.1.tgz", + "integrity": "sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og==", + "dev": true + } } }, "wtf-8": { @@ -7860,6 +12317,12 @@ "integrity": "sha1-OS2LotDxw00e4tYw8V0O+2jhBIo=", "dev": true }, + "xdg-basedir": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-3.0.0.tgz", + "integrity": "sha1-SWsswQnsqNus/i3HK2A8F8WHCtQ=", + "dev": true + }, "xhr2": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/xhr2/-/xhr2-0.1.4.tgz", @@ -7889,60 +12352,141 @@ "integrity": "sha1-GFqIjATspGw+QHDZn3tJ3jUomS0=", "dev": true }, + "xregexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/xregexp/-/xregexp-2.0.0.tgz", + "integrity": "sha1-UqY+VsoLhKfzpfPWGHLxJq16WUM=", + "dev": true, + "optional": true + }, "xtend": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", "dev": true }, + "xxhashjs": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/xxhashjs/-/xxhashjs-0.2.2.tgz", + "integrity": "sha512-AkTuIuVTET12tpsVIQo+ZU6f/qDmKuRUcjaqR+OIvm+aCBsZ95i7UVY5WJ9TMsSaZ0DA2WxoZ4acu0sPH+OKAw==", + "dev": true, + "requires": { + "cuint": "0.2.2" + } + }, "y18n": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", "dev": true }, + "yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", + "dev": true + }, "yargs": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-5.0.0.tgz", - "integrity": "sha1-M1UUSXfQV1fbuG1uOOwFYSOzpm4=", + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-11.1.0.tgz", + "integrity": "sha512-NwW69J42EsCSanF8kyn5upxvjp5ds+t3+udGBeTbFnERA+lF541DDpMawzo4z6W/QrzNM18D+BPMiOBibnFV5A==", "dev": true, "requires": { - "cliui": "3.2.0", + "cliui": "4.0.0", "decamelize": "1.2.0", + "find-up": "2.1.0", "get-caller-file": "1.0.2", - "lodash.assign": "4.2.0", - "os-locale": "1.4.0", - "read-pkg-up": "1.0.1", + "os-locale": "2.1.0", "require-directory": "2.1.1", "require-main-filename": "1.0.1", "set-blocking": "2.0.0", - "string-width": "1.0.2", - "which-module": "1.0.0", - "window-size": "0.2.0", + "string-width": "2.1.1", + "which-module": "2.0.0", "y18n": "3.2.1", - "yargs-parser": "3.2.0" + "yargs-parser": "9.0.2" }, "dependencies": { - "camelcase": { + "ansi-regex": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", - "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", "dev": true }, - "window-size": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.2.0.tgz", - "integrity": "sha1-tDFbtCFKPXBY6+7okuE/ok2YsHU=", + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "dev": true + }, + "cliui": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.0.0.tgz", + "integrity": "sha512-nY3W5Gu2racvdDk//ELReY+dHjb9PlIcVDFXP72nVIhq2Gy3LuVXYwJoPVudwQnv1shtohpgkdCKT2YaKY0CKw==", + "dev": true, + "requires": { + "string-width": "2.1.1", + "strip-ansi": "4.0.0", + "wrap-ansi": "2.1.0" + } + }, + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "requires": { + "locate-path": "2.0.0" + } + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "os-locale": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz", + "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", + "dev": true, + "requires": { + "execa": "0.7.0", + "lcid": "1.0.0", + "mem": "1.1.0" + } + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "2.0.0", + "strip-ansi": "4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + } + }, + "which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", "dev": true }, "yargs-parser": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-3.2.0.tgz", - "integrity": "sha1-UIE1XRnZ0MjF2BrakIy05tGGZk8=", + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-9.0.2.tgz", + "integrity": "sha1-nM9qQ0YP5O1Aqbto9I1DuKaMwHc=", "dev": true, "requires": { - "camelcase": "3.0.0", - "lodash.assign": "4.2.0" + "camelcase": "4.1.0" } } } @@ -7980,9 +12524,9 @@ "dev": true }, "zone.js": { - "version": "0.8.18", - "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.8.18.tgz", - "integrity": "sha1-jOyzl3/NGzCQVi/0Vw4oR+dStI0=", + "version": "0.8.20", + "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.8.20.tgz", + "integrity": "sha512-FXlA37ErSXCMy5RNBcGFgCI/Zivqzr0D19GuvDxhcYIJc7xkFp6c29DKyODJu0Zo+EMyur/WPPgcBh1EHjB9jA==", "dev": true } } diff --git a/package.json b/package.json index a2e03d3..ab1c49e 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { - "name": "angular-in-memory-web-api", - "version": "0.5.4", + "name": "@xmlking/angular-in-memory-web-api", + "version": "0.5.7", "description": "An in-memory web api for Angular demos and tests", "main": "bundles/in-memory-web-api.umd.js", "module": "index.js", "scripts": { - "build": "tsc", + "build": "ng-packagr -p package.json", "build:watch": "tsc -w", "lint": "tslint ./src/*.ts -t verbose -e ./src/*.d.ts", "start": "concurrently \"npm run build:watch\" \"npm run serve\"", @@ -28,59 +28,65 @@ }, "homepage": "https://github.com/angular/in-memory-web-api#readme", "peerDependencies": { - "@angular/common": ">=2.0.0 <6.0.0", - "@angular/core": ">=2.0.0 <6.0.0", - "@angular/http": ">=2.0.0 <6.0.0", - "rxjs": "^5.1.0" + "@angular/core": ">=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0", + "@angular/common": ">=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0", + "rxjs": "^5.6.0-forward-compat.0 || ^6.0.0-beta.0" }, "devDependencies": { - "@angular/animations": "~4.3.1", - "@angular/common": "~4.3.1", - "@angular/compiler": "~4.3.1", - "@angular/compiler-cli": "~4.3.1", - "@angular/core": "~4.3.1", - "@angular/http": "~4.3.1", - "@angular/platform-browser": "~4.3.1", - "@angular/platform-browser-dynamic": "~4.3.1", - "@angular/platform-server": "~4.3.1", - "@angular/tsc-wrapped": "~4.3.1", + "@angular/animations": "~5.1.3", + "@angular/common": "~5.1.3", + "@angular/compiler": "~5.1.3", + "@angular/compiler-cli": "~5.1.3", + "@angular/core": "~5.1.3", + "@angular/platform-browser": "~5.1.3", + "@angular/platform-browser-dynamic": "~5.1.3", + "@angular/platform-server": "~5.1.3", + "@angular/tsc-wrapped": "~4.4.6", "@types/jasmine": "2.5.54", "@types/jasmine-ajax": "^3.1.37", - "@types/node": "^6.0.46", + "@types/node": "^9.4.7", "canonical-path": "0.0.2", - "concurrently": "^3.0.0", - "core-js": "^2.4.1", - "del": "^2.2.2", + "concurrently": "^3.5.1", + "core-js": "^2.5.3", + "del": "^3.0.0", "gulp": "^3.9.1", - "gulp-bump": "^2.4.0", + "gulp-bump": "^3.1.0", "gulp-load-plugins": "^1.3.0", "gulp-task-listing": "^1.0.1", "gulp-util": "^3.0.7", - "http-server": "^0.9.0", + "http-server": "^0.11.1", "jasmine-ajax": "^3.3.1", - "jasmine-core": "~2.8.0", - "karma": "^1.7.1", + "jasmine-core": "~3.1.0", + "karma": "^2.0.0", "karma-chrome-launcher": "^2.2.0", "karma-cli": "^1.0.1", "karma-htmlfile-reporter": "^0.3.5", - "karma-jasmine": "^1.1.0", + "karma-jasmine": "^1.1.1", "karma-jasmine-ajax": "^0.1.13", - "karma-jasmine-html-reporter": "^0.2.2", + "karma-jasmine-html-reporter": "^1.0.0", "karma-phantomjs-launcher": "^1.0.4", "karma-sourcemap-loader": "^0.3.7", - "karma-webpack": "^2.0.4", + "karma-webpack": "^3.0.0", "lite-server": "^2.3.0", - "lodash": "^4.17.4", + "lodash": "^4.17.5", + "ng-packagr": "^2.2.0", "rimraf": "^2.6.1", - "rollup": "^0.49.3", + "rollup": "^0.57.1", "rollup-stream": "^1.24.1", - "rxjs": "^5.1.0", - "systemjs": "0.20.18", - "tslint": "^3.15.1", - "typescript": "~2.3.2", - "vinyl-source-stream": "^1.1.0", + "rxjs": "^5.6.0-forward-compat.0", + "systemjs": "0.21.0", + "tsickle": "^0.27.2", + "tslint": "^5.9.1", + "typescript": "~2.6.2", + "vinyl-source-stream": "^2.0.0", "webpack": "2.2.1", - "yargs": "^5.0.0", - "zone.js": "^0.8.4" + "yargs": "^11.1.0", + "zone.js": "^0.8.20" + }, + "ngPackage": { + "lib": { + "entryFile": "src/in-mem/index.ts", + "flatModuleFile": "angular-in-memory-web-api" + } } } diff --git a/src/app/hero-in-mem-data-override.service.ts b/src/app/hero-in-mem-data-override.service.ts index e2dd5d2..0e37be5 100644 --- a/src/app/hero-in-mem-data-override.service.ts +++ b/src/app/hero-in-mem-data-override.service.ts @@ -3,8 +3,6 @@ */ import { Injectable } from '@angular/core'; -import { URLSearchParams } from '@angular/http'; - // tslint:disable-next-line:no-unused-variable import { Observable } from 'rxjs/Observable'; diff --git a/src/app/http-hero.service.ts b/src/app/http-hero.service.ts deleted file mode 100644 index 726dd63..0000000 --- a/src/app/http-hero.service.ts +++ /dev/null @@ -1,85 +0,0 @@ -import { Injectable }from '@angular/core'; -import { Headers, Http, Response } from '@angular/http'; - -import { Observable } from 'rxjs/Observable'; -import 'rxjs/add/observable/throw'; - -import 'rxjs/add/operator/do'; -import 'rxjs/add/operator/catch'; -import 'rxjs/add/operator/map'; - -import { Hero } from './hero'; -import { HeroService } from './hero.service'; - -const cudOptions = { headers: new Headers({ 'Content-Type': 'application/json' })}; - -@Injectable() -export class HttpHeroService extends HeroService { - - constructor (private http: Http) { - super(); - } - - getHeroes (): Observable { - return this.http.get(this.heroesUrl) - // .do(data => console.log(data)) // eyeball results in the console - .map(res => res.json()) - .catch(this.handleError); - } - - // This get-by-id will 404 when id not found - getHero(id: number): Observable { - const url = `${this.heroesUrl}/${id}`; - return this.http.get(url) - .map((r: Response) => r.json() as Hero) - .catch(this.handleError); - } - - // This get-by-id does not 404; returns empty array when id not found - // getHero(id: number) { - // const url = `${this._heroesUrl}/?id=${id}`; - // return this.http - // .get(url) - // .map((r: Response) => r.json()[0] as Hero); - // .catch(this.handleError); - // } - - addHero (name: string): Observable { - const hero = { name }; - - return this.http.post(this.heroesUrl, hero, cudOptions) - .map(res => res.json()) - .catch(this.handleError); - } - - deleteHero (hero: Hero | number): Observable { - const id = typeof hero === 'number' ? hero : hero.id; - const url = `${this.heroesUrl}/${id}`; - - return this.http.delete(url, cudOptions) - .catch(this.handleError); - } - - - searchHeroes(term: string): Observable { - term = term.trim(); - // NB: not a safe encoded search parameter - const search = term ? '/?name=' + term : ''; - return this.http.get(this.heroesUrl + search) - .map(res => res.json()) - .catch(this.handleError); - } - - updateHero (hero: Hero): Observable { - return this.http.put(this.heroesUrl, hero, cudOptions) - .map(res => res.json()) - .catch(this.handleError); - } - - private handleError (error: any) { - // In a real world app, we might send the error to remote logging infrastructure - // and reformat for user consumption - console.error(error); // log to console instead - return Observable.throw(error); - } -} diff --git a/src/in-mem/backend.service.ts b/src/in-mem/backend.service.ts index 652fa01..c272d48 100644 --- a/src/in-mem/backend.service.ts +++ b/src/in-mem/backend.service.ts @@ -5,9 +5,12 @@ import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import { of } from 'rxjs/observable/of'; import { fromPromise } from 'rxjs/observable/fromPromise'; import { isPromise } from 'rxjs/util/isPromise'; +// import { isPromise } from 'rxjs/internal/util/isPromise'; -import { concatMap } from 'rxjs/operator/concatMap'; -import { first } from 'rxjs/operator/first'; +// import { concatMap } from 'rxjs/operator/concatMap'; +// import { first } from 'rxjs/operator/first'; +import { concatMap } from 'rxjs/operators/concatMap'; +import { first } from 'rxjs/operators/first'; import { getStatusText, isSuccess, STATUS } from './http-status-codes'; import { delayResponse } from './delay-response'; @@ -28,6 +31,7 @@ import { UriInfo } from './interfaces'; + /** * Base class for in-memory web api back-ends * Simulate the behavior of a RESTy web api @@ -675,7 +679,7 @@ export abstract class BackendService { this.dbReadySubject.next(false); const db = this.inMemDbService.createDb(reqInfo); const db$ = db instanceof Observable ? db : - isPromise(db) ? fromPromise(db) : + this.isPromise(db) ? fromPromise(db) : of(db); first.call(db$).subscribe((d: {}) => { this.db = d; @@ -684,4 +688,8 @@ export abstract class BackendService { return this.dbReady; } + private isPromise(value: any): value is PromiseLike { + return value && typeof (value).subscribe !== 'function' && typeof (value as any).then === 'function'; + } + } diff --git a/src/in-mem/http-backend.service.spec.ts b/src/in-mem/http-backend.service.spec.ts deleted file mode 100644 index 29434c9..0000000 --- a/src/in-mem/http-backend.service.spec.ts +++ /dev/null @@ -1,558 +0,0 @@ -import { async, TestBed } from '@angular/core/testing'; -import { HttpModule, Http, XHRBackend } from '@angular/http'; - -import { zip } from 'rxjs/observable/zip'; - -import 'rxjs/add/operator/concatMap'; -import 'rxjs/add/operator/map'; -import 'rxjs/add/operator/zip'; - -import { failure } from '../testing'; - -import { HttpBackendService } from './http-backend.service'; -import { HttpInMemoryWebApiModule } from './http-in-memory-web-api.module'; - -import { Hero } from '../app/hero'; -import { HeroService } from '../app/hero.service'; -import { HttpHeroService } from '../app/http-hero.service'; - -import { HeroInMemDataService } from '../app/hero-in-mem-data.service'; -import { HeroInMemDataOverrideService } from '../app/hero-in-mem-data-override.service'; -import { HeroServiceCoreSpec } from '../app/hero.service.spec'; - -class Nobody { id: string; name: string; } - -describe('Http Backend Service', () => { - - const delay = 1; // some minimal simulated latency delay - - describe('raw Angular Http', () => { - - let http: Http; - - beforeEach(() => { - TestBed.configureTestingModule({ - imports: [ - HttpModule, - HttpInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay }) - ] - }); - - http = TestBed.get(Http); - }); - - it('can get heroes', async(() => { - http.get('api/heroes') - .map(res => res.json() as Hero[]) - .subscribe( - heroes => { - // console.log(heroes); - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); - - it('GET should be a "cold" observable', async(() => { - const httpBackend = TestBed.get(XHRBackend); - - const spy = spyOn(httpBackend, 'collectionHandler').and.callThrough(); - - const get$ = http.get('api/heroes'); - - // spy on `collectionHandler` should not be called before subscribe - expect(spy).not.toHaveBeenCalled(); - - get$.map(res => res.json() as Hero[]) - .subscribe( - heroes => { - expect(spy).toHaveBeenCalled(); - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); - - it('GET should wait until after delay to respond', async(() => { - // to make test fail, set `delay=0` above - let gotResponse = false; - - http.get('api/heroes') - .map(res => res.json() as Hero[]) - .subscribe( - heroes => { - gotResponse = true; - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - - expect(gotResponse).toBe(false, 'should delay before response'); - })); - - it('can get heroes (w/ a different base path)', async(() => { - http.get('some-base-path/heroes') - .map(res => res.json() as Hero[]) - .subscribe( - heroes => { - // console.log(heroes); - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); - - it('should 404 when GET unknown collection (after delay)', async(() => { - let gotError = false; - const url = 'api/unknown-collection'; - http.get(url) - .subscribe( - _ => { - console.log(_); - fail(`should not have found data for '${url}'`); - }, - err => { - gotError = true; - expect(err.status).toBe(404, 'should have 404 status'); - } - ); - - expect(gotError).toBe(false, 'should not get error until after delay'); - })); - - it('should return the hero w/id=1 for GET app/heroes/1', async(() => { - http.get('api/heroes/1') - .map(res => res.json() as Hero) - .subscribe( - hero => { - expect(hero).toBeDefined('should find hero with id=1'); - }, - failure - ); - })); - - // test where id is string that looks like a number - it('should return the stringer w/id="10" for GET app/stringers/10', async(() => { - http.get('api/stringers/10') - .map(res => res.json() as { id: string, name: string }) - .subscribe( - hero => { - expect(hero).toBeDefined('should find string with id="10"'); - }, - failure - ); - })); - - it('should return 1-item array for GET app/heroes/?id=1', async(() => { - http.get('api/heroes/?id=1') - .map(res => res.json() as Hero[]) - .subscribe( - heroes => { - expect(heroes.length).toBe(1, 'should find one hero w/id=1'); - }, - failure - ); - })); - - it('should return 1-item array for GET app/heroes?id=1', async(() => { - http.get('api/heroes?id=1') - .map(res => res.json() as Hero[]) - .subscribe( - heroes => { - expect(heroes.length).toBe(1, 'should find one hero w/id=1'); - }, - failure - ); - })); - - it('should return undefined for GET app/heroes?id=not-found-id', async(() => { - http.get('api/heroes?id=123456') - .map(res => res.json() as Hero[]) - .subscribe( - heroes => { - expect(heroes.length).toBe(0); - }, - failure - ); - })); - - it('should return 404 for GET app/heroes/not-found-id', async(() => { - const url = 'api/heroes/123456'; - http.get(url) - .subscribe( - _ => { - console.log(_); - fail(`should not have found data for '${url}'`); - }, - err => { - expect(err.status).toBe(404, 'should have 404 status'); - } - ); - })); - - it('can generate the id when add a hero with no id', async(() => { - const hero = new Hero(null, 'SuperDooper'); - http.post('api/heroes', hero) - .map(res => res.json()) - .subscribe( - replyHero => { - expect(replyHero.id).toBeTruthy('added hero should have an id'); - expect(replyHero).not.toBe(hero, - 'reply hero should not be the request hero'); - }, - failure - ); - })); - - it('can get nobodies (empty collection)', async(() => { - http.get('api/nobodies') - .map(res => res.json()) - .subscribe( - nobodies => { - expect(nobodies.length).toBe(0, 'should have no nobodies'); - }, - failure - ); - })); - - it('can add a nobody with an id to empty nobodies collection', async(() => { - - const id = 'g-u-i-d'; - - http.post('api/nobodies', { id, name: 'Noman' }) - .concatMap(() => http.get('api/nobodies')) - .map(res => res.json()) - .subscribe( - nobodies => { - expect(nobodies.length).toBe(1, 'should a nobody'); - expect(nobodies[0].name).toBe('Noman', 'should be "Noman"'); - expect(nobodies[0].id).toBe(id, 'should preserve the submitted, ' + id); - }, - failure - ); - })); - - it('should fail when add a nobody without an id to empty nobodies collection', async(() => { - http.post('api/nobodies', { name: 'Noman' }) - .subscribe( - _ => { - console.log(_); - fail(`should not have been able to add 'Norman' to 'nobodies'`); - }, - err => { - expect(err.status).toBe(422, 'should have 422 status'); - expect(err.body.error).toContain('id type is non-numeric'); - }); - })); - - it('can reset the database to empty (object db)', async(() => resetDatabaseTest('object'))); - - it('can reset the database to empty (observable db)', async(() => resetDatabaseTest('observable'))); - - it('can reset the database to empty (promise db)', async(() => resetDatabaseTest('promise'))); - - function resetDatabaseTest(returnType: string) { - // Observable of the number of heroes and nobodies - const sizes$ = zip( - http.get('api/heroes'), - http.get('api/nobodies'), - http.get('api/stringers'), - (h, n, s) => ({ - heroes: h.json().length as number, - nobodies: n.json().length as number, - stringers: n.json().length as number - })); - - // Add a nobody so that we have one - http.post('api/nobodies', { id: 42, name: 'Noman' }) - // Reset database with "clear" option - .concatMap(() => http.post('commands/resetDb', { clear: true })) - // get the number of heroes and nobodies - .concatMap(() => sizes$) - .subscribe( - sizes => { - expect(sizes.heroes).toBe(0, 'reset should have cleared the heroes'); - expect(sizes.nobodies).toBe(0, 'reset should have cleared the nobodies'); - expect(sizes.stringers).toBe(0, 'reset should have cleared the stringers'); - }, - failure - ); - } - - }); - - //////////////// - describe('raw Angular Http w/ override service', () => { - - let http: Http; - - beforeEach(() => { - TestBed.configureTestingModule({ - imports: [ - HttpModule, - HttpInMemoryWebApiModule.forRoot(HeroInMemDataOverrideService, { delay }) - ] - }); - - http = TestBed.get(Http); - }); - - it('can get heroes', async(() => { - http.get('api/heroes') - .map(res => res.json() as Hero[]) - .subscribe( - heroes => { - // console.log(heroes); - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); - - it('can translate `foo/heroes` to `heroes` via `parsedRequestUrl` override', async(() => { - http.get('api/foo/heroes') - .map(res => res.json() as Hero[]) - .subscribe( - heroes => { - // console.log(heroes); - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); - - it('can get villains', async(() => { - http.get('api/villains') - .map(res => res.json() as Hero[]) - .subscribe( - villains => { - // console.log(villains); - expect(villains.length).toBeGreaterThan(0, 'should have villains'); - }, - failure - ); - })); - - it('should 404 when POST to villains', async(() => { - const url = 'api/villains'; - http.post(url, {id: 42, name: 'Dr. Evil'}) - .subscribe( - _ => { - console.log(_); - fail(`should not have POSTed data for '${url}'`); - }, - err => { - expect(err.status).toBe(404, 'should have 404 status'); - } - ); - })); - - it('should 404 when GET unknown collection', async(() => { - const url = 'api/unknown-collection'; - http.get(url) - .subscribe( - _ => { - console.log(_); - fail(`should not have found data for '${url}'`); - }, - err => { - expect(err.status).toBe(404, 'should have 404 status'); - } - ); - })); - - it('should use genId override to add new hero, "Maxinius"', async(() => { - http.post('api/heroes', { name: 'Maxinius' }) - .concatMap(() => http.get('api/heroes?name=Maxi')) - .map(res => res.json()) - .subscribe( - heroes => { - expect(heroes.length).toBe(1, 'should have found "Maxinius"'); - expect(heroes[0].name).toBe('Maxinius'); - expect(heroes[0].id).toBeGreaterThan(1000); - }, - failure - ); - })); - - it('should use genId override guid generator for a new nobody without an id', async(() => { - http.post('api/nobodies', { name: 'Noman' }) - .concatMap(() => http.get('api/nobodies')) - .map(res => res.json()) - .subscribe( - nobodies => { - expect(nobodies.length).toBe(1, 'should a nobody'); - expect(nobodies[0].name).toBe('Noman', 'should be "Noman"'); - expect(typeof nobodies[0].id).toBe('string', 'should create a string (guid) id'); - }, - failure - ); - })); - - it('can reset the database to empty (object db)', async(() => resetDatabaseTest('object'))); - - it('can reset the database to empty (observable db)', async(() => resetDatabaseTest('observable'))); - - it('can reset the database to empty (promise db)', async(() => resetDatabaseTest('promise'))); - - function resetDatabaseTest(returnType: string) { - // Observable of the number of heroes, nobodies and villains - const sizes$ = zip( - http.get('api/heroes'), - http.get('api/nobodies'), - http.get('api/stringers'), - http.get('api/villains'), - (h, n, s, v) => ({ - heroes: h.json().length as number, - nobodies: n.json().length as number, - stringers: s.json().length as number, - villains: v.json().length as number - })); - - // Add a nobody so that we have one - http.post('api/nobodies', { id: 42, name: 'Noman' }) - // Reset database with "clear" option - .concatMap(() => http.post('commands/resetDb', { clear: true })) - // count all the collections - .concatMap(() => sizes$) - .subscribe( - sizes => { - expect(sizes.heroes).toBe(0, 'reset should have cleared the heroes'); - expect(sizes.nobodies).toBe(0, 'reset should have cleared the nobodies'); - expect(sizes.stringers).toBe(0, 'reset should have cleared the stringers'); - expect(sizes.villains).toBeGreaterThan(0, 'reset should NOT clear villains'); - }, - failure - ); - }; - }); - - //////////////// - - describe('Http HeroService', () => { - - beforeEach(() => { - TestBed.configureTestingModule({ - imports: [ - HttpModule, - HttpInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay }) - ], - providers: [ - { provide: HeroService, useClass: HttpHeroService } - ] - }); - - }); - - new HeroServiceCoreSpec().run(); - }); - - //////////////// - describe('Http passThru', () => { - let http: Http; - let httpBackend: HttpBackendService; - let createPassThruBackend: jasmine.Spy; - - beforeEach(() => { - TestBed.configureTestingModule({ - imports: [ - HttpModule, - HttpInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay, passThruUnknownUrl: true }) - ] - }); - - http = TestBed.get(Http); - httpBackend = TestBed.get(XHRBackend); - createPassThruBackend = spyOn(httpBackend, 'createPassThruBackend').and.callThrough(); - }); - - beforeEach(function() { - jasmine.Ajax.install(); - }); - - afterEach(function() { - jasmine.Ajax.uninstall(); - }); - - it('can get heroes (no passthru)', async(() => { - http.get('api/heroes') - .map(res => res.json() as Hero[]) - .subscribe( - heroes => { - expect(createPassThruBackend).not.toHaveBeenCalled(); - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); - - // `passthru` is NOT a collection in the data store - // so requests for it should pass thru to the "real" server - - it('can GET passthru', async(() => { - - jasmine.Ajax.stubRequest('api/passthru').andReturn({ - 'status': 200, - 'contentType': 'application/json', - 'response': JSON.stringify([ {id: 42, name: 'Dude' }]) - }); - - http.get('api/passthru') - .map(res => res.json() as any[]) - .subscribe( - passthru => { - console.log('GET passthru data', passthru); - expect(passthru.length).toBeGreaterThan(0, 'should have passthru data'); - }, - failure - ); - })); - - it('can ADD to passthru', async(() => { - jasmine.Ajax.stubRequest('api/passthru').andReturn({ - 'status': 200, - 'contentType': 'application/json', - 'response': JSON.stringify({ id: 42, name: 'Dude' }) - }); - - http.post('api/passthru', { name: 'Dude' }) - .map(res => res.json() as any) - .subscribe( - passthru => { - console.log('POST passthru data', passthru); - expect(passthru).toBeDefined('should have passthru data'); - expect(passthru.id).toBe(42, 'passthru object should have id 42'); - }, - failure - ); - })); - }); - - //////////////// - describe('Http dataEncapsulation = true', () => { - let http: Http; - - beforeEach(() => { - TestBed.configureTestingModule({ - imports: [ - HttpModule, - HttpInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay, dataEncapsulation: true }) - ] - }); - - http = TestBed.get(Http); - }); - - it('can get heroes (encapsulated)', async(() => { - http.get('api/heroes') - .map(res => res.json().data as Hero[]) // unwrap data object - .subscribe( - heroes => { - expect(heroes.length).toBeGreaterThan(0, 'should have data.heroes'); - }, - failure - ); - })); - - }); -}); diff --git a/src/in-mem/http-backend.service.ts b/src/in-mem/http-backend.service.ts deleted file mode 100644 index 3cd9a70..0000000 --- a/src/in-mem/http-backend.service.ts +++ /dev/null @@ -1,127 +0,0 @@ -import { Inject, Injectable, Injector, Optional } from '@angular/core'; - -import { BrowserXhr, Connection, ConnectionBackend, - Headers, ReadyState, Request, RequestMethod, - Response, - ResponseOptions as HttpResponseOptions, - ResponseOptionsArgs, - URLSearchParams, - XHRBackend, XSRFStrategy } from '@angular/http'; - -import { Observable } from 'rxjs/Observable'; -import { map } from 'rxjs/operator/map'; - -import { STATUS } from './http-status-codes'; - -import { - InMemoryBackendConfig, - InMemoryBackendConfigArgs, - InMemoryDbService, - ResponseOptions -} from './interfaces'; - -import { BackendService } from './backend.service'; - -/** - * For Angular `Http` simulate the behavior of a RESTy web api - * backed by the simple in-memory data store provided by the injected `InMemoryDbService`. - * Conforms mostly to behavior described here: - * http://www.restapitutorial.com/lessons/httpmethods.html - * - * ### Usage - * - * Create an in-memory data store class that implements `InMemoryDbService`. - * Call `forRoot` static method with this service class and optional configuration object: - * ``` - * // other imports - * import { HttpModule } from '@angular/http'; - * import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api'; - * - * import { InMemHeroService, inMemConfig } from '../api/in-memory-hero.service'; - * @NgModule({ - * imports: [ - * HttpModule, - * HttpClientInMemoryWebApiModule.forRoot(InMemHeroService, inMemConfig), - * ... - * ], - * ... - * }) - * export class AppModule { ... } - * ``` - */ -@Injectable() -export class HttpBackendService extends BackendService implements ConnectionBackend { - - constructor( - private injector: Injector, - inMemDbService: InMemoryDbService, - @Inject(InMemoryBackendConfig) @Optional() config: InMemoryBackendConfigArgs - ) { - super(inMemDbService, config); - } - - createConnection(req: Request): Connection { - let response: Observable; - try { - response = this.handleRequest(req); - - } catch (error) { - const err = error.message || error; - const resOptions = this.createErrorResponseOptions(req.url, STATUS.INTERNAL_SERVER_ERROR, `${err}`); - response = this.createResponse$(() => resOptions); - } - - return { - readyState: ReadyState.Done, - request: req, - response - }; - } - - //// protected overrides ///// - - protected getJsonBody(req: Request): any { - try { - return req.json(); - } catch (e) { - const msg = `'${req.url}' request body-to-json error\n${JSON.stringify(e)}`; - throw new Error(msg); - } - } - - protected getRequestMethod(req: Request): string { - return RequestMethod[req.method || 0].toLowerCase(); - } - - protected createHeaders(headers: { [index: string]: string; }): Headers { - return new Headers(headers); - } - - protected createQueryMap(search: string): Map { - return search ? new URLSearchParams(search).paramsMap : new Map(); - } - - protected createResponse$fromResponseOptions$(resOptions$: Observable): Observable { - return map.call(resOptions$, (opts: ResponseOptionsArgs) => { - return new Response(new HttpResponseOptions(opts)); - }); - } - - protected createPassThruBackend() { - try { - // copied from @angular/http/backends/xhr_backend - const browserXhr = this.injector.get(BrowserXhr); - const baseResponseOptions = this.injector.get(HttpResponseOptions); - const xsrfStrategy = this.injector.get(XSRFStrategy); - const xhrBackend = new XHRBackend(browserXhr, baseResponseOptions, xsrfStrategy); - - return { - handle: (req: Request) => xhrBackend.createConnection(req).response - }; - - } catch (e) { - e.message = 'Cannot create passThru404 backend; ' + (e.message || ''); - throw e; - } - } -} diff --git a/src/in-mem/http-client-backend.service.ts b/src/in-mem/http-client-backend.service.ts index 6e4dda7..2984a39 100644 --- a/src/in-mem/http-client-backend.service.ts +++ b/src/in-mem/http-client-backend.service.ts @@ -11,7 +11,7 @@ import { } from '@angular/common/http'; import { Observable } from 'rxjs/Observable'; -import { map } from 'rxjs/operator/map'; +import { map } from 'rxjs/operators'; import { STATUS } from './http-status-codes'; diff --git a/src/in-mem/http-client-in-memory-web-api.module.ts b/src/in-mem/http-client-in-memory-web-api.module.ts index e0a3ef6..57b7e15 100644 --- a/src/in-mem/http-client-in-memory-web-api.module.ts +++ b/src/in-mem/http-client-in-memory-web-api.module.ts @@ -32,8 +32,8 @@ export class HttpClientInMemoryWebApiModule { * Usually imported in the root application module. * Can import in a lazy feature module too, which will shadow modules loaded earlier * - * @param {Type} dbCreator - Class that creates seed data for in-memory database. Must implement InMemoryDbService. - * @param {InMemoryBackendConfigArgs} [options] + * @param dbCreator - Class that creates seed data for in-memory database. Must implement InMemoryDbService. + * @param [options] * * @example * HttpInMemoryWebApiModule.forRoot(dbCreator); diff --git a/src/in-mem/http-in-memory-web-api.module.ts b/src/in-mem/http-in-memory-web-api.module.ts deleted file mode 100644 index 9285bd5..0000000 --- a/src/in-mem/http-in-memory-web-api.module.ts +++ /dev/null @@ -1,64 +0,0 @@ -////// Http-Only version //// - -import { Injector, NgModule, ModuleWithProviders, Type } from '@angular/core'; -import { XHRBackend } from '@angular/http'; - -import { - InMemoryBackendConfigArgs, - InMemoryBackendConfig, - InMemoryDbService -} from './interfaces'; - -import { HttpBackendService } from './http-backend.service'; - -// Internal - Creates the in-mem backend for the Http module -// AoT requires factory to be exported -export function httpInMemBackendServiceFactory( - injector: Injector, - dbService: InMemoryDbService, - options: InMemoryBackendConfig -): XHRBackend { - const backend: any = new HttpBackendService(injector, dbService, options); - return backend as XHRBackend; -} - -@NgModule({}) -export class HttpInMemoryWebApiModule { - /** - * Redirect the Angular `Http` XHR calls - * to in-memory data store that implements `InMemoryDbService`. - * with class that implements InMemoryDbService and creates an in-memory database. - * - * Usually imported in the root application module. - * Can import in a lazy feature module too, which will shadow modules loaded earlier - * - * @param {Type} dbCreator - Class that creates seed data for in-memory database. Must implement InMemoryDbService. - * @param {InMemoryBackendConfigArgs} [options] - * - * @example - * HttpInMemoryWebApiModule.forRoot(dbCreator); - * HttpInMemoryWebApiModule.forRoot(dbCreator, {useValue: {delay:600}}); - */ - static forRoot(dbCreator: Type, options?: InMemoryBackendConfigArgs): ModuleWithProviders { - return { - ngModule: HttpInMemoryWebApiModule, - providers: [ - { provide: InMemoryDbService, useClass: dbCreator }, - { provide: InMemoryBackendConfig, useValue: options }, - - { provide: XHRBackend, - useFactory: httpInMemBackendServiceFactory, - deps: [Injector, InMemoryDbService, InMemoryBackendConfig]} - ] - }; - } - /** - * - * Enable and configure the in-memory web api in a lazy-loaded feature module. - * Same as `forRoot`. - * This is a feel-good method so you can follow the Angular style guide for lazy-loaded modules. - */ - static forFeature(dbCreator: Type, options?: InMemoryBackendConfigArgs): ModuleWithProviders { - return HttpInMemoryWebApiModule.forRoot(dbCreator, options); - } -} diff --git a/src/in-mem/in-memory-web-api.module.ts b/src/in-mem/in-memory-web-api.module.ts deleted file mode 100644 index fd8085f..0000000 --- a/src/in-mem/in-memory-web-api.module.ts +++ /dev/null @@ -1,60 +0,0 @@ -////// For apps with both Http and HttpClient //// - -import { Injector, NgModule, ModuleWithProviders, Type } from '@angular/core'; -import { XHRBackend } from '@angular/http'; -import { HttpBackend, XhrFactory } from '@angular/common/http'; - -import { - InMemoryBackendConfigArgs, - InMemoryBackendConfig, - InMemoryDbService -} from './interfaces'; - -import { httpInMemBackendServiceFactory } from './http-in-memory-web-api.module'; -import { httpClientInMemBackendServiceFactory } from './http-client-in-memory-web-api.module'; - -@NgModule({}) -export class InMemoryWebApiModule { - /** - * Redirect BOTH Angular `Http` and `HttpClient` XHR calls - * to in-memory data store that implements `InMemoryDbService`. - * with class that implements InMemoryDbService and creates an in-memory database. - * - * Usually imported in the root application module. - * Can import in a lazy feature module too, which will shadow modules loaded earlier - * - * @param {Type} dbCreator - Class that creates seed data for in-memory database. Must implement InMemoryDbService. - * @param {InMemoryBackendConfigArgs} [options] - * - * @example - * InMemoryWebApiModule.forRoot(dbCreator); - * InMemoryWebApiModule.forRoot(dbCreator, {useValue: {delay:600}}); - */ - static forRoot(dbCreator: Type, options?: InMemoryBackendConfigArgs): ModuleWithProviders { - return { - ngModule: InMemoryWebApiModule, - providers: [ - { provide: InMemoryDbService, useClass: dbCreator }, - { provide: InMemoryBackendConfig, useValue: options }, - - { provide: XHRBackend, - useFactory: httpInMemBackendServiceFactory, - deps: [Injector, InMemoryDbService, InMemoryBackendConfig]}, - - { provide: HttpBackend, - useFactory: httpClientInMemBackendServiceFactory, - deps: [InMemoryDbService, InMemoryBackendConfig, XhrFactory]} - ] - }; - } - - /** - * - * Enable and configure the in-memory web api in a lazy-loaded feature module. - * Same as `forRoot`. - * This is a feel-good method so you can follow the Angular style guide for lazy-loaded modules. - */ - static forFeature(dbCreator: Type, options?: InMemoryBackendConfigArgs): ModuleWithProviders { - return InMemoryWebApiModule.forRoot(dbCreator, options); - } -} diff --git a/src/in-mem/index.ts b/src/in-mem/index.ts index 9b57d66..4c01a15 100644 --- a/src/in-mem/index.ts +++ b/src/in-mem/index.ts @@ -1,8 +1,5 @@ export * from './backend.service'; export * from './http-status-codes'; -export * from './http-backend.service'; export * from './http-client-backend.service'; -export * from './in-memory-web-api.module'; -export * from './http-in-memory-web-api.module'; export * from './http-client-in-memory-web-api.module'; export * from './interfaces'; From 164497d9c13425a52bba7410d8f75d5e11044ec5 Mon Sep 17 00:00:00 2001 From: Sumanth Chinthagunta Date: Thu, 22 Mar 2018 03:05:33 -0700 Subject: [PATCH 2/8] W-I-P --- .angular-cli.json | 35 + .gitignore | 2 + gulpfile.js | 140 - integration/app/app.component.scss | 0 integration/app/app.component.spec.ts | 39 + integration/app/app.component.ts | 27 + integration/app/app.module.ts | 27 + .../hero-in-mem-data-override.service.ts | 7 +- .../app/hero}/hero-in-mem-data.service.ts | 6 +- integration/app/hero/hero.service.spec.ts | 145 + .../app/hero}/hero.service.ts | 2 +- {src/app => integration/app/hero}/hero.ts | 0 .../app/hero}/http-client-hero.service.ts | 8 +- .../app/hero/http-client-hero.service.ts.bak | 84 + integration/environments/environment.prod.ts | 3 + integration/environments/environment.ts | 8 + integration/favicon.ico | Bin 0 -> 5430 bytes integration/index.html | 20 + integration/main.ts | 13 + integration/test.integration.ts | 16 + integration/tsconfig.app.integration.json | 10 + integration/tsconfig.spec.integration.json | 11 + karma-test-shim.js | 89 - karma.conf.js | 97 +- package-lock.json | 17138 +++++++++------- package.json | 88 +- polyfills.ts | 1 + rollup.config.js | 25 - src/app/hero.service.spec.ts | 145 - src/{in-mem => }/backend.service.ts | 18 +- src/{in-mem => }/delay-response.ts | 0 .../http-client-backend.service.spec.ts | 0 .../http-client-backend.service.ts | 0 .../http-client-in-memory-web-api.module.ts | 0 src/{in-mem => }/http-status-codes.ts | 0 src/{in-mem => }/index.ts | 0 src/{in-mem => }/interfaces.ts | 0 src/systemjs-angular-loader.js | 49 - src/systemjs.config.js | 54 - test.ts | 17 + tsconfig-ngc.json | 22 - tsconfig.app.json | 14 + tsconfig.json | 31 +- tsconfig.spec.json | 11 + tslint.json | 40 +- 45 files changed, 10489 insertions(+), 7953 deletions(-) create mode 100644 .angular-cli.json delete mode 100644 gulpfile.js create mode 100755 integration/app/app.component.scss create mode 100755 integration/app/app.component.spec.ts create mode 100755 integration/app/app.component.ts create mode 100755 integration/app/app.module.ts rename {src/app => integration/app/hero}/hero-in-mem-data-override.service.ts (94%) rename {src/app => integration/app/hero}/hero-in-mem-data.service.ts (89%) create mode 100644 integration/app/hero/hero.service.spec.ts rename {src/app => integration/app/hero}/hero.service.ts (92%) rename {src/app => integration/app/hero}/hero.ts (100%) rename {src/app => integration/app/hero}/http-client-hero.service.ts (90%) create mode 100644 integration/app/hero/http-client-hero.service.ts.bak create mode 100755 integration/environments/environment.prod.ts create mode 100755 integration/environments/environment.ts create mode 100755 integration/favicon.ico create mode 100755 integration/index.html create mode 100755 integration/main.ts create mode 100755 integration/test.integration.ts create mode 100755 integration/tsconfig.app.integration.json create mode 100755 integration/tsconfig.spec.integration.json delete mode 100644 karma-test-shim.js mode change 100644 => 100755 karma.conf.js create mode 100755 polyfills.ts delete mode 100644 rollup.config.js delete mode 100644 src/app/hero.service.spec.ts rename src/{in-mem => }/backend.service.ts (98%) rename src/{in-mem => }/delay-response.ts (100%) rename src/{in-mem => }/http-client-backend.service.spec.ts (100%) rename src/{in-mem => }/http-client-backend.service.ts (100%) rename src/{in-mem => }/http-client-in-memory-web-api.module.ts (100%) rename src/{in-mem => }/http-status-codes.ts (100%) rename src/{in-mem => }/index.ts (100%) rename src/{in-mem => }/interfaces.ts (100%) delete mode 100644 src/systemjs-angular-loader.js delete mode 100644 src/systemjs.config.js create mode 100755 test.ts delete mode 100644 tsconfig-ngc.json create mode 100755 tsconfig.app.json mode change 100644 => 100755 tsconfig.json create mode 100755 tsconfig.spec.json mode change 100644 => 100755 tslint.json diff --git a/.angular-cli.json b/.angular-cli.json new file mode 100644 index 0000000..52511cc --- /dev/null +++ b/.angular-cli.json @@ -0,0 +1,35 @@ +{ + "$schema": "./node_modules/@angular/cli/lib/config/schema.json", + "project": { + "name": "ngxs" + }, + "apps": [ + { + "name": "lib", + "root": "", + "outDir": "dist-lib/", + "test": "test.ts", + "index": "integration/index.html", + "main": "integration/main.ts", + "polyfills": "polyfills.ts", + "tsconfig": "tsconfig.app.json", + "testTsconfig": "tsconfig.spec.json" + }, + { + "name": "integration", + "root": "", + "outDir": "dist-integration/", + "test": "integration/test.integration.ts", + "index": "integration/index.html", + "main": "integration/main.ts", + "polyfills": "polyfills.ts", + "tsconfig": "integration/tsconfig.app.integration.json", + "testTsconfig": "integration/tsconfig.spec.integration.json" + } + ], + "test": { + "karma": { + "config": "./karma.conf.js" + } + } +} diff --git a/.gitignore b/.gitignore index 440099e..987b44a 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,5 @@ yarn.lock .idea/ dist +/dist-lib +/dist-integration diff --git a/gulpfile.js b/gulpfile.js deleted file mode 100644 index 62d41cb..0000000 --- a/gulpfile.js +++ /dev/null @@ -1,140 +0,0 @@ -var gulp = require('gulp'); -var $ = require('gulp-load-plugins')({lazy: true}); -var args = require('yargs').argv; -var cp = require('child_process'); -var del = require('del'); -var rollup = require('rollup-stream'); -var source = require('vinyl-source-stream'); - -var path = require("path"); - -var inMemSrc = './src/in-mem/'; -var jsCopySrc = ['*.js', '*.js.map', '*.d.ts', '*.metadata.json'].map(ext => inMemSrc + ext); - -gulp.task('default', ['help']); - -gulp.task('help', $.taskListing.withFilters(function (taskName) { - var isSubTask = taskName.substr(0, 1) == "_"; - return isSubTask; -}, function (taskName) { - var shouldRemove = taskName === 'default'; - return shouldRemove; -})); - -gulp.task('build', ['umd'], function(){ - return gulp - .src(jsCopySrc) - .pipe(gulp.dest('./')); -}); - -gulp.task('ngc', ['clean'], function(done) { - runNgc('src/in-mem/', done); -}); - -// Uses rollup-stream plugin https://www.npmjs.com/package/rollup-stream -gulp.task('umd', ['ngc'], function(done) { - return rollup('rollup.config.js') - .pipe(source('in-memory-web-api.umd.js')) - .pipe(gulp.dest('./bundles')); -}); - -gulp.task('clean', function() { - return Promise.all([ - clean([ - 'aot/**/*.*', - 'src/**/*.d.ts', - 'src/**/*.js.map', - 'src/**/*.metadata.json', - 'src/**/*.ngfactory.ts', - 'src/**/*.ngsummary.json' - ]), - clean([ - 'src/app/**.*js', - 'src/in-mem/**.*js', - 'src/in-mem/node_modules/**/*.*', - ]), - clean([ /* root-level copies of in-mem web api files */ - './backend.service.*', - './http-status-codes.*', - './http-backend.service.*', - './http-client-backend.service.*', - './interfaces.*', - './http-in-memory-web-api.module.*', - './http-client-in-memory-web-api.module.*', - './in-memory-web-api.module.*', - './index.*', - './bundles/in-memory-web-api.umd.js' - ]) - ]) - .then(() => console.log('Cleaned successfully')); -}); - -/** - * Bump the version - * --type=pre will bump the prerelease version *.*.*-x - * --type=patch or no flag will bump the patch version *.*.x - * --type=minor will bump the minor version *.x.* - * --type=major will bump the major version x.*.* - * --version=1.2.3 will bump to a specific version and ignore other flags - */ -gulp.task('bump', function() { - var msg = 'Bumping versions'; - var type = args.type; - var version = args.ver; - var options = {}; - if (version) { - options.version = version; - msg += ' to ' + version; - } else { - options.type = type; - msg += ' for a ' + type; - } - log(msg); - - return gulp - .src('package.json') -// .pipe($.print()) - .pipe($.bump(options)) - .pipe(gulp.dest('./')); -}); -////////// - -function clean(path) { - log('Cleaning: ' + $.util.colors.blue(path)); - return del(path, {dryRun:false}) - .then(function(paths) { - console.log('Deleted files and folders:\n', paths.join('\n')); - }); -} - -function log(msg) { - if (typeof(msg) === 'object') { - for (var item in msg) { - if (msg.hasOwnProperty(item)) { - $.util.log($.util.colors.blue(msg[item])); - } - } - } else { - $.util.log($.util.colors.blue(msg)); - } -} -function runNgc(directory, done) { - directory = directory || './'; - //var ngcjs = path.join(process.cwd(), 'node_modules/typescript/bin/tsc'); - //ngcjs = path.join(process.cwd(), 'node_modules/.bin/ngc'); - var ngcjs = './node_modules/@angular/compiler-cli/src/main.js'; - var childProcess = cp.spawn('node', [ngcjs, '-p', './tsconfig-ngc.json'], { cwd: process.cwd() }); - childProcess.stdout.on('data', function (data) { - console.log(data.toString()); - }); - childProcess.stderr.on('data', function (data) { - console.log(data.toString()); - }); - childProcess.on('close', function (code) { - if (code !== 0) { - throw(new Error('ngc compilation exited with an error code')) - } else { - done(); - } - }); -} diff --git a/integration/app/app.component.scss b/integration/app/app.component.scss new file mode 100755 index 0000000..e69de29 diff --git a/integration/app/app.component.spec.ts b/integration/app/app.component.spec.ts new file mode 100755 index 0000000..5bd9535 --- /dev/null +++ b/integration/app/app.component.spec.ts @@ -0,0 +1,39 @@ +// import { TestBed, ComponentFixture } from '@angular/core/testing'; +// import { RouterTestingModule } from '@angular/router/testing'; +// +// import { AppModule } from './app.module'; +// import { AppComponent } from './app.component'; +// +// describe('AppComponent', () => { +// let fixture: ComponentFixture; +// let component: AppComponent; +// +// beforeEach(() => { +// TestBed.configureTestingModule({ +// imports: [AppModule, RouterTestingModule] +// }); +// +// fixture = TestBed.createComponent(AppComponent); +// component = fixture.componentInstance; +// }); +// +// it('should add a todo', () => { +// component.addTodo('Get Milk'); +// component.addTodo('Clean Bathroom'); +// +// component.todos$.subscribe(state => { +// expect(state.length).toBe(2); +// }); +// }); +// +// it('should remove a todo', () => { +// component.addTodo('Get Milk'); +// component.addTodo('Clean Bathroom'); +// component.removeTodo(1); +// +// component.todos$.subscribe(state => { +// expect(state.length).toBe(1); +// expect(state[0]).toBe('Get Milk'); +// }); +// }); +// }); diff --git a/integration/app/app.component.ts b/integration/app/app.component.ts new file mode 100755 index 0000000..126a685 --- /dev/null +++ b/integration/app/app.component.ts @@ -0,0 +1,27 @@ +import { Component, ViewEncapsulation } from '@angular/core'; +import {HeroService} from './hero/hero.service'; + +@Component({ + selector: 'app-root', + template: ` +
+

Test

+
+ `, + styleUrls: ['./app.component.scss'], + encapsulation: ViewEncapsulation.None +}) +export class AppComponent { + + constructor(private heroService: HeroService) { + this.heroService.getHeroes().subscribe( (heros) => { + console.log(heros); + }); + } + + addTodo(todo: string) { + } + + removeTodo(index: number) { + } +} diff --git a/integration/app/app.module.ts b/integration/app/app.module.ts new file mode 100755 index 0000000..e9ddeb9 --- /dev/null +++ b/integration/app/app.module.ts @@ -0,0 +1,27 @@ +import { BrowserModule } from '@angular/platform-browser'; +import { NgModule } from '@angular/core'; +import { HttpClientInMemoryWebApiModule } from '@xmlking/angular-in-memory-web-api'; +import { HeroInMemDataService } from './hero/hero-in-mem-data.service'; + +import { AppComponent } from './app.component'; +import {HeroService} from './hero/hero.service'; +import {HttpClientHeroService} from './hero/http-client-hero.service'; +import {HttpClientModule} from '@angular/common/http'; + +@NgModule({ + declarations: [AppComponent], + imports: [ + BrowserModule, + HttpClientModule, + HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataService, { + passThruUnknownUrl: true + // delay: 500, + // apiBase: 'api' + }) + ], + providers: [ + { provide: HeroService, useClass: HttpClientHeroService } + ], + bootstrap: [AppComponent] +}) +export class AppModule {} diff --git a/src/app/hero-in-mem-data-override.service.ts b/integration/app/hero/hero-in-mem-data-override.service.ts similarity index 94% rename from src/app/hero-in-mem-data-override.service.ts rename to integration/app/hero/hero-in-mem-data-override.service.ts index 0e37be5..0f8c537 100644 --- a/src/app/hero-in-mem-data-override.service.ts +++ b/integration/app/hero/hero-in-mem-data-override.service.ts @@ -3,12 +3,9 @@ */ import { Injectable } from '@angular/core'; -// tslint:disable-next-line:no-unused-variable -import { Observable } from 'rxjs/Observable'; +import { ParsedRequestUrl, RequestInfo, RequestInfoUtilities, ResponseOptions } from '../../../src/interfaces'; -import { ParsedRequestUrl, RequestInfo, RequestInfoUtilities, ResponseOptions } from '../in-mem/interfaces'; - -import { getStatusText, STATUS } from '../in-mem/http-status-codes'; +import { getStatusText, STATUS } from '../../../src/http-status-codes'; import { HeroInMemDataService } from './hero-in-mem-data.service'; diff --git a/src/app/hero-in-mem-data.service.ts b/integration/app/hero/hero-in-mem-data.service.ts similarity index 89% rename from src/app/hero-in-mem-data.service.ts rename to integration/app/hero/hero-in-mem-data.service.ts index 6d7c1a7..91f237b 100644 --- a/src/app/hero-in-mem-data.service.ts +++ b/integration/app/hero/hero-in-mem-data.service.ts @@ -9,11 +9,9 @@ * InMemoryWebApiModule.forRoot(HeroInMemDataService) // or HeroInMemDataOverrideService */ import { Injectable } from '@angular/core'; -import { InMemoryDbService, RequestInfo } from '../in-mem/interfaces'; +import { InMemoryDbService, RequestInfo } from '../../../src/interfaces'; -// tslint:disable:no-unused-variable -import { Observable } from 'rxjs/Observable'; -import { of } from 'rxjs/observable/of'; +import { of } from 'rxjs/observable/of'; import 'rxjs/add/operator/delay'; // tslint:enable:no-unused-variable diff --git a/integration/app/hero/hero.service.spec.ts b/integration/app/hero/hero.service.spec.ts new file mode 100644 index 0000000..399f28c --- /dev/null +++ b/integration/app/hero/hero.service.spec.ts @@ -0,0 +1,145 @@ +// import { async, TestBed } from '@angular/core/testing'; +// +// import 'rxjs/add/operator/concatMap'; +// import 'rxjs/add/operator/do'; +// import 'rxjs/add/operator/map'; +// +// import { failure } from '../testing'; +// +// import { Hero } from './hero'; +// import { HeroService } from './hero.service'; +// +// /** +// * Common tests for the HeroService, whether implemented with Http or HttpClient +// * Assumes that TestBed has been configured appropriately before created and run. +// * +// * Tests with extended test expirations accommodate the default (simulated) latency delay. +// * Ideally configured for short or no delay. +// */ +// export class HeroServiceCoreSpec { +// +// run() { +// +// describe('HeroService core', () => { +// +// let heroService: HeroService; +// +// beforeEach(function() { +// heroService = TestBed.get(HeroService); +// }); +// +// it('can get heroes', async(() => { +// heroService.getHeroes() +// .subscribe( +// heroes => { +// // console.log(heroes); +// expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); +// }, +// failure +// ); +// })); +// +// it('can get hero w/ id=1', async(() => { +// heroService.getHero(1) +// .subscribe( +// hero => { +// // console.log(hero); +// expect(hero.name).toBe('Windstorm'); +// }, +// () => fail('getHero failed') +// ); +// })); +// +// it('should 404 when hero id not found', async(() => { +// const id = 123456; +// heroService.getHero(id) +// .subscribe( +// () => fail(`should not have found hero for id='${id}'`), +// err => { +// expect(err.status).toBe(404, 'should have 404 status'); +// } +// ); +// })); +// +// it('can add a hero', async(() => { +// heroService.addHero('FunkyBob') +// .do(hero => { +// // console.log(hero); +// expect(hero.name).toBe('FunkyBob'); +// }) +// // Get the new hero by its generated id +// .concatMap(hero => heroService.getHero(hero.id)) +// .subscribe( +// hero => { +// expect(hero.name).toBe('FunkyBob'); +// }, +// err => failure('re-fetch of new hero failed') +// ); +// }), 10000); +// +// it('can delete a hero', async(() => { +// const id = 1; +// heroService.deleteHero(id) +// .subscribe( +// (_: {}) => { +// expect(_).toBeDefined(); +// }, +// failure +// ); +// })); +// +// it('should allow delete of non-existent hero', async(() => { +// const id = 123456; +// heroService.deleteHero(id) +// .subscribe( +// (_: {}) => { +// expect(_).toBeDefined(); +// }, +// failure +// ); +// })); +// +// it('can search for heroes by name containing "a"', async(() => { +// heroService.searchHeroes('a') +// .subscribe( +// (heroes: Hero[]) => { +// expect(heroes.length).toBe(3, 'should find 3 heroes with letter "a"'); +// }, +// failure +// ); +// })); +// +// it('can update existing hero', async(() => { +// const id = 1; +// heroService.getHero(id) +// .concatMap(hero => { +// hero.name = 'Thunderstorm'; +// return heroService.updateHero(hero); +// }) +// .concatMap(() => { +// return heroService.getHero(id); +// }) +// .subscribe( +// hero => { +// console.log(hero); +// expect(hero.name).toBe('Thunderstorm'); +// }, +// err => fail('re-fetch of updated hero failed') +// ); +// }), 10000); +// +// it('should create new hero when try to update non-existent hero', async(() => { +// const falseHero = new Hero(12321, 'DryMan'); +// +// heroService.updateHero(falseHero) +// .subscribe( +// hero => { +// expect(hero.name).toBe(falseHero.name); +// }, +// failure +// ); +// })); +// +// }); +// } +// } diff --git a/src/app/hero.service.ts b/integration/app/hero/hero.service.ts similarity index 92% rename from src/app/hero.service.ts rename to integration/app/hero/hero.service.ts index d4df4a9..019854f 100644 --- a/src/app/hero.service.ts +++ b/integration/app/hero/hero.service.ts @@ -1,4 +1,4 @@ -import { Hero } from './hero'; +import { Hero } from './hero'; import { Observable } from 'rxjs/Observable'; export abstract class HeroService { diff --git a/src/app/hero.ts b/integration/app/hero/hero.ts similarity index 100% rename from src/app/hero.ts rename to integration/app/hero/hero.ts diff --git a/src/app/http-client-hero.service.ts b/integration/app/hero/http-client-hero.service.ts similarity index 90% rename from src/app/http-client-hero.service.ts rename to integration/app/hero/http-client-hero.service.ts index 4bfc902..0dedd08 100644 --- a/src/app/http-client-hero.service.ts +++ b/integration/app/hero/http-client-hero.service.ts @@ -1,5 +1,5 @@ -import { Injectable }from '@angular/core'; -import { HttpClient, HttpHeaders, HttpParams }from '@angular/common/http'; +import { Injectable } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/throw'; @@ -8,7 +8,7 @@ import 'rxjs/add/operator/do'; import 'rxjs/add/operator/catch'; import 'rxjs/add/operator/map'; -import { Hero } from './hero'; +import { Hero } from './hero'; import { HeroService } from './hero.service'; const cudOptions = { headers: new HttpHeaders({ 'Content-Type': 'application/json' })}; @@ -22,7 +22,7 @@ export class HttpClientHeroService extends HeroService { getHeroes (): Observable { return this.http.get(this.heroesUrl) - // .do(data => console.log(data)) // eyeball results in the console + // .do(data => console.log(data)) // eyeball results in the console .catch(this.handleError); } diff --git a/integration/app/hero/http-client-hero.service.ts.bak b/integration/app/hero/http-client-hero.service.ts.bak new file mode 100644 index 0000000..4ecde5d --- /dev/null +++ b/integration/app/hero/http-client-hero.service.ts.bak @@ -0,0 +1,84 @@ +import { Injectable } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http'; + +import { Observable } from 'rxjs/Observable'; +import { tap, catchError } from 'rxjs/operators'; +import 'rxjs/add/observable/throw'; + +import 'rxjs/add/operator/do'; +import 'rxjs/add/operator/catch'; +import 'rxjs/add/operator/map'; + +import { Hero } from './hero'; +import { HeroService } from './hero.service'; +import { throwError } from 'rxjs'; + +const cudOptions = { headers: new HttpHeaders({ 'Content-Type': 'application/json' })}; + +@Injectable() +export class HttpClientHeroService extends HeroService { + + constructor (private http: HttpClient) { + super(); + } + + getHeroes (): Observable { + return this.http.get(this.heroesUrl).pipe( + tap(data => console.log(data)), // eyeball results in the console + catchError(this.handleError) + ) + } + + // This get-by-id will 404 when id not found + getHero(id: number): Observable { + const url = `${this.heroesUrl}/${id}`; + return this.http.get(url) + .catch(this.handleError); + } + + // This get-by-id does not 404; returns undefined when id not found + // getHero(id: number): Observable { + // const url = `${this._heroesUrl}/?id=${id}`; + // return this.http.get(url) + // .map(heroes => heroes[0] as Hero) + // .catch(this.handleError); + // } + + addHero (name: string): Observable { + const hero = { name }; + + return this.http.post(this.heroesUrl, hero, cudOptions) + .catch(this.handleError); + } + + deleteHero (hero: Hero | number): Observable { + const id = typeof hero === 'number' ? hero : hero.id; + const url = `${this.heroesUrl}/${id}`; + + return this.http.delete(url, cudOptions) + .catch(this.handleError); + } + + searchHeroes(term: string): Observable { + term = term.trim(); + // add safe, encoded search parameter if term is present + const options = term ? + { params: new HttpParams().set('name', term) } : {}; + + return this.http.get(this.heroesUrl, options) + .catch(this.handleError); + } + + updateHero (hero: Hero): Observable { + return this.http.put(this.heroesUrl, hero, cudOptions).pipe( + catchError(this.handleError) + ) + } + + private handleError (error: any) { + // In a real world app, we might send the error to remote logging infrastructure + // and reformat for user consumption + console.error(error); // log to console instead + return throwError(error); + } +} diff --git a/integration/environments/environment.prod.ts b/integration/environments/environment.prod.ts new file mode 100755 index 0000000..3612073 --- /dev/null +++ b/integration/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/integration/environments/environment.ts b/integration/environments/environment.ts new file mode 100755 index 0000000..b7f639a --- /dev/null +++ b/integration/environments/environment.ts @@ -0,0 +1,8 @@ +// The file contents for the current environment will overwrite these during build. +// The build system defaults to the dev environment which uses `environment.ts`, but if you do +// `ng build --env=prod` then `environment.prod.ts` will be used instead. +// The list of which env maps to which file can be found in `.angular-cli.json`. + +export const environment = { + production: false +}; diff --git a/integration/favicon.ico b/integration/favicon.ico new file mode 100755 index 0000000000000000000000000000000000000000..8081c7ceaf2be08bf59010158c586170d9d2d517 GIT binary patch literal 5430 zcmc(je{54#6vvCoAI3i*G5%$U7!sA3wtMZ$fH6V9C`=eXGJb@R1%(I_{vnZtpD{6n z5Pl{DmxzBDbrB>}`90e12m8T*36WoeDLA&SD_hw{H^wM!cl_RWcVA!I+x87ee975; z@4kD^=bYPn&pmG@(+JZ`rqQEKxW<}RzhW}I!|ulN=fmjVi@x{p$cC`)5$a!)X&U+blKNvN5tg=uLvuLnuqRM;Yc*swiexsoh#XPNu{9F#c`G zQLe{yWA(Y6(;>y|-efAy11k<09(@Oo1B2@0`PtZSkqK&${ zgEY}`W@t{%?9u5rF?}Y7OL{338l*JY#P!%MVQY@oqnItpZ}?s z!r?*kwuR{A@jg2Chlf0^{q*>8n5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null +++ b/integration/main.ts @@ -0,0 +1,13 @@ +import { enableProdMode } from '@angular/core'; +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; + +import { AppModule } from './app/app.module'; +import { environment } from './environments/environment'; + +if (environment.production) { + enableProdMode(); +} + +platformBrowserDynamic() + .bootstrapModule(AppModule) + .catch(err => console.log(err)); diff --git a/integration/test.integration.ts b/integration/test.integration.ts new file mode 100755 index 0000000..6f1af11 --- /dev/null +++ b/integration/test.integration.ts @@ -0,0 +1,16 @@ +// This file is required by karma.conf.js and loads recursively all the .spec and framework files +import 'reflect-metadata'; +import 'zone.js/dist/zone-testing'; + +import { getTestBed } from '@angular/core/testing'; +import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; + +declare const require: any; + +// First, initialize the Angular testing environment. +getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); + +// Then we find all the tests. +const integrationContext = require.context('./', true, /\.spec\.ts$/); +// And load the modules. +integrationContext.keys().map(integrationContext); diff --git a/integration/tsconfig.app.integration.json b/integration/tsconfig.app.integration.json new file mode 100755 index 0000000..1cc0b38 --- /dev/null +++ b/integration/tsconfig.app.integration.json @@ -0,0 +1,10 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "outDir": "./out-tsc/app", + "module": "es2015", + "types": [] + }, + "include": ["**/*.ts", "../polyfills.ts"], + "exclude": ["test.integration.ts", "**/*.spec.ts"] +} diff --git a/integration/tsconfig.spec.integration.json b/integration/tsconfig.spec.integration.json new file mode 100755 index 0000000..46dda8f --- /dev/null +++ b/integration/tsconfig.spec.integration.json @@ -0,0 +1,11 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "outDir": "./out-tsc/spec", + "module": "commonjs", + "target": "es5", + "types": ["jasmine"] + }, + "files": ["test.integration.ts"], + "include": ["**/*.spec.ts"] +} diff --git a/karma-test-shim.js b/karma-test-shim.js deleted file mode 100644 index d6a6925..0000000 --- a/karma-test-shim.js +++ /dev/null @@ -1,89 +0,0 @@ -// /*global jasmine, __karma__, window*/ -Error.stackTraceLimit = 0; // "No stacktrace"" is usually best for app testing. - -// Uncomment to get full stacktrace output. Sometimes helpful, usually not. -// Error.stackTraceLimit = Infinity; // - -jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000; - -// builtPaths: root paths for output ("built") files -// get from karma.config.js, then prefix with '/src/' (default is 'app/') -var builtPaths = (__karma__.config.builtPaths || ['src/']) - .map(function(p) { return '/base/'+p;}); - -__karma__.loaded = function () { }; - -function isJsFile(path) { - return path.slice(-3) == '.js'; -} - -function isSpecFile(path) { - return /\.spec\.(.*\.)?js$/.test(path); -} - -// Is a "built" file if is JavaScript file in one of the "built" folders -function isBuiltFile(path) { - return isJsFile(path) && - builtPaths.reduce(function(keep, bp) { - return keep || (path.substr(0, bp.length) === bp); - }, false); -} - -var allSpecFiles = Object.keys(window.__karma__.files) - .filter(isSpecFile) - .filter(isBuiltFile); - -System.config({ - baseURL: 'base/src', - // add packages for application folders other than `app/` - packages: { - // a testing folder - 'testing': { main: 'index.js', defaultExtension: 'js' }, - // other app folders - 'in-mem': { main: 'index.js', defaultExtension: 'js' } - }, - - // Assume npm: is set in `paths` in systemjs.config - // Map the angular testing umd bundles - map: { - '@angular/core/testing': 'npm:@angular/core/bundles/core-testing.umd.js', - '@angular/common/testing': 'npm:@angular/common/bundles/common-testing.umd.js', - '@angular/common/http/testing': 'npm:@angular/common/bundles/common-http-testing.umd.js', - '@angular/compiler/testing': 'npm:@angular/compiler/bundles/compiler-testing.umd.js', - '@angular/platform-browser/testing': 'npm:@angular/platform-browser/bundles/platform-browser-testing.umd.js', - '@angular/platform-browser-dynamic/testing': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic-testing.umd.js', - '@angular/http/testing': 'npm:@angular/http/bundles/http-testing.umd.js', - '@angular/router/testing': 'npm:@angular/router/bundles/router-testing.umd.js', - '@angular/forms/testing': 'npm:@angular/forms/bundles/forms-testing.umd.js', - }, -}); - -System.import('systemjs.config.js') - .then(initTestBed) - .then(initTesting); - -function initTestBed(){ - return Promise.all([ - System.import('@angular/core/testing'), - System.import('@angular/platform-browser-dynamic/testing') - ]) - - .then(function (providers) { - var coreTesting = providers[0]; - var browserTesting = providers[1]; - - coreTesting.TestBed.initTestEnvironment( - browserTesting.BrowserDynamicTestingModule, - browserTesting.platformBrowserDynamicTesting()); - }) -} - -// Import all spec files and start karma -function initTesting () { - return Promise.all( - allSpecFiles.map(function (moduleName) { - return System.import(moduleName); - }) - ) - .then(__karma__.start, __karma__.error); -} diff --git a/karma.conf.js b/karma.conf.js old mode 100644 new mode 100755 index ee41c1d..b605160 --- a/karma.conf.js +++ b/karma.conf.js @@ -1,103 +1,30 @@ -// #docregion -module.exports = function(config) { - - var appBase = 'src/'; // transpiled app JS and map files - var appAssets = '/base/app/'; // component assets fetched by Angular's compiler - - // Testing helpers (optional) are conventionally in a folder called `testing` - var testingBase = 'src/testing/'; // transpiled test JS and map files - var testingSrcBase = 'src/testing/'; // test source TS files +// Karma configuration file, see link for more information +// https://karma-runner.github.io/1.0/config/configuration-file.html +module.exports = function(config) { config.set({ basePath: '', - frameworks: ['jasmine-ajax', 'jasmine'], - + frameworks: ['jasmine', '@angular/cli'], plugins: [ - require('karma-jasmine-ajax'), require('karma-jasmine'), require('karma-chrome-launcher'), - require('karma-jasmine-html-reporter') + require('karma-jasmine-html-reporter'), + require('karma-coverage-istanbul-reporter'), + require('@angular/cli/plugins/karma') ], - client: { - builtPaths: [appBase, testingBase], // add more spec base paths as needed clearContext: false // leave Jasmine Spec Runner output visible in browser }, - - customLaunchers: { - // From the CLI. Not used here but interesting - // chrome setup for travis CI using chromium - Chrome_travis_ci: { - base: 'Chrome', - flags: ['--no-sandbox'] - } - }, - - files: [ - // System.js for module loading - 'node_modules/systemjs/dist/system.src.js', - - // Polyfills - 'node_modules/core-js/client/shim.js', - - // zone.js - 'node_modules/zone.js/dist/zone.js', - 'node_modules/zone.js/dist/long-stack-trace-zone.js', - 'node_modules/zone.js/dist/proxy.js', - 'node_modules/zone.js/dist/sync-test.js', - 'node_modules/zone.js/dist/jasmine-patch.js', - 'node_modules/zone.js/dist/async-test.js', - 'node_modules/zone.js/dist/fake-async-test.js', - - // RxJs - { pattern: 'node_modules/rxjs/**/*.js', included: false, watched: false }, - { pattern: 'node_modules/rxjs/**/*.js.map', included: false, watched: false }, - - // tslib (TS helper fns such as `__extends`) - { pattern: 'node_modules/tslib/**/*.js', included: false, watched: false }, - { pattern: 'node_modules/tslib/**/*.js.map', included: false, watched: false }, - - // Paths loaded via module imports: - // Angular itself - { pattern: 'node_modules/@angular/**/*.js', included: false, watched: false }, - { pattern: 'node_modules/@angular/**/*.js.map', included: false, watched: false }, - - { pattern: appBase + '/systemjs.config.js', included: false, watched: false }, - - 'karma-test-shim.js', // optionally extend SystemJS mapping e.g., with barrels - - // transpiled application & spec code paths loaded via module imports - { pattern: appBase + '**/*.js', included: false, watched: true }, - { pattern: testingBase + '**/*.js', included: false, watched: true }, - - - // Asset (HTML & CSS) paths loaded via Angular's component compiler - // (these paths need to be rewritten, see proxies section) - { pattern: appBase + '**/*.html', included: false, watched: true }, - { pattern: appBase + '**/*.css', included: false, watched: true }, - - // Paths for debugging with source maps in dev tools - { pattern: appBase + '**/*.ts', included: false, watched: false }, - { pattern: appBase + '**/*.js.map', included: false, watched: false }, - { pattern: testingSrcBase + '**/*.ts', included: false, watched: false }, - { pattern: testingBase + '**/*.js.map', included: false, watched: false} - ], - - // Proxied base paths for loading assets - proxies: { - // required for modules fetched by SystemJS - '/base/src/node_modules/': '/base/node_modules/' + coverageIstanbulReporter: { + reports: ['html', 'lcovonly'], + fixWebpackSourcePaths: true }, - - exclude: [], - preprocessors: {}, reporters: ['progress', 'kjhtml'], - port: 9876, colors: true, logLevel: config.LOG_INFO, autoWatch: true, browsers: ['Chrome'], singleRun: false - }) -} + }); +}; diff --git a/package-lock.json b/package-lock.json index 5e26514..4565eae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,178 +1,550 @@ { - "name": "angular-in-memory-web-api", - "version": "0.5.4", + "name": "@xmlking/angular-in-memory-web-api", + "version": "0.5.8", "lockfileVersion": 1, "requires": true, "dependencies": { - "@angular/animations": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-5.1.3.tgz", - "integrity": "sha512-DlcANlrQ2aaspCZZ6yHdEx1PaLKT1q3/xkdTgoKNTJfj9eautcrEuar8NoH0dkzXuQT0i9GewK6+zsF581rpdQ==", + "@angular-devkit/build-optimizer": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@angular-devkit/build-optimizer/-/build-optimizer-0.3.2.tgz", + "integrity": "sha512-U0BCZtThq5rUfY08shHXpxe8ZhSsiYB/cJjUvAWRTs/ORrs8pbngS6xwseQws8d/vHoVrtqGD9GU9h8AmFRERQ==", + "dev": true, + "requires": { + "loader-utils": "1.1.0", + "source-map": "0.5.7", + "typescript": "2.6.2", + "webpack-sources": "1.1.0" + } + }, + "@angular-devkit/core": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-0.3.2.tgz", + "integrity": "sha512-zABk/iP7YX5SVbmK4e+IX7j2d0D37MQJQiKgWdV3JzfvVJhNJzddiirtT980pIafoq+KyvTgVwXtc+vnux0oeQ==", + "dev": true, + "requires": { + "ajv": "5.5.2", + "chokidar": "1.7.0", + "rxjs": "5.5.7", + "source-map": "0.5.7" + }, + "dependencies": { + "ajv": { + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", + "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", + "dev": true, + "requires": { + "co": "4.6.0", + "fast-deep-equal": "1.1.0", + "fast-json-stable-stringify": "2.0.0", + "json-schema-traverse": "0.3.1" + } + }, + "rxjs": { + "version": "5.5.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.7.tgz", + "integrity": "sha512-Hxo2ac8gRQjwjtKgukMIwBRbq5+KAeEV5hXM4obYBOAghev41bDQWgFH4svYiU9UnQ5kNww2LgfyBdevCd2HXA==", + "dev": true, + "requires": { + "symbol-observable": "1.0.1" + } + } + } + }, + "@angular-devkit/schematics": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-0.3.2.tgz", + "integrity": "sha512-B6zZoqvHaTJy+vVdA6EtlxnCdGMa5elCa4j9lQLC3JI8DLvMXUWkCIPVbPzJ/GSRR9nsKWpvYMYaJyfBDUqfhw==", + "dev": true, + "requires": { + "@ngtools/json-schema": "1.2.0", + "rxjs": "5.5.7" + }, + "dependencies": { + "rxjs": { + "version": "5.5.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.7.tgz", + "integrity": "sha512-Hxo2ac8gRQjwjtKgukMIwBRbq5+KAeEV5hXM4obYBOAghev41bDQWgFH4svYiU9UnQ5kNww2LgfyBdevCd2HXA==", + "dev": true, + "requires": { + "symbol-observable": "1.0.1" + } + } + } + }, + "@angular/cli": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-1.7.3.tgz", + "integrity": "sha512-19sh0SbjneG7/R/FvZBfHsHqfIqyj4LQuXdddJKMCDM97UoHQTjfgrpRvBf3a3lR79wdLXchWJBD9Yc6ifosEA==", "dev": true, "requires": { - "tslib": "1.8.0" + "@angular-devkit/build-optimizer": "0.3.2", + "@angular-devkit/core": "0.3.2", + "@angular-devkit/schematics": "0.3.2", + "@ngtools/json-schema": "1.2.0", + "@ngtools/webpack": "1.10.2", + "@schematics/angular": "0.3.2", + "@schematics/package-update": "0.3.2", + "ajv": "6.3.0", + "autoprefixer": "7.2.6", + "cache-loader": "1.2.2", + "chalk": "2.2.2", + "circular-dependency-plugin": "4.4.0", + "clean-css": "4.1.11", + "common-tags": "1.7.2", + "copy-webpack-plugin": "4.4.3", + "core-object": "3.1.5", + "denodeify": "1.2.1", + "ember-cli-string-utils": "1.1.0", + "extract-text-webpack-plugin": "3.0.2", + "file-loader": "1.1.11", + "fs-extra": "4.0.3", + "glob": "7.1.2", + "html-webpack-plugin": "2.30.1", + "istanbul-instrumenter-loader": "3.0.0", + "karma-source-map-support": "1.2.0", + "less": "2.7.3", + "less-loader": "4.1.0", + "license-webpack-plugin": "1.3.1", + "loader-utils": "1.1.0", + "lodash": "4.17.5", + "memory-fs": "0.4.1", + "minimatch": "3.0.4", + "node-modules-path": "1.0.1", + "node-sass": "4.7.2", + "nopt": "4.0.1", + "opn": "5.1.0", + "portfinder": "1.0.13", + "postcss": "6.0.20", + "postcss-import": "11.1.0", + "postcss-loader": "2.1.3", + "postcss-url": "7.3.1", + "raw-loader": "0.5.1", + "resolve": "1.6.0", + "rxjs": "5.5.7", + "sass-loader": "6.0.7", + "semver": "5.5.0", + "silent-error": "1.1.0", + "source-map-support": "0.4.18", + "style-loader": "0.19.1", + "stylus": "0.54.5", + "stylus-loader": "3.0.2", + "uglifyjs-webpack-plugin": "1.2.4", + "url-loader": "0.6.2", + "webpack": "3.11.0", + "webpack-dev-middleware": "1.12.2", + "webpack-dev-server": "2.11.2", + "webpack-merge": "4.1.2", + "webpack-sources": "1.1.0", + "webpack-subresource-integrity": "1.0.4" + }, + "dependencies": { + "rxjs": { + "version": "5.5.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.7.tgz", + "integrity": "sha512-Hxo2ac8gRQjwjtKgukMIwBRbq5+KAeEV5hXM4obYBOAghev41bDQWgFH4svYiU9UnQ5kNww2LgfyBdevCd2HXA==", + "dev": true, + "requires": { + "symbol-observable": "1.0.1" + } + } } }, "@angular/common": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/@angular/common/-/common-5.1.3.tgz", - "integrity": "sha512-n0bzjfOVZH7+FPHQ3nnE3aAgMWebz4afO/Wh01LZNfVgcjdBxHblAYcMaoJeR7zW7f1zm51P6aDa4XlVtsVupQ==", + "version": "5.2.9", + "resolved": "https://registry.npmjs.org/@angular/common/-/common-5.2.9.tgz", + "integrity": "sha512-g2hPcI0fnT4TV+Fd+1IohjuqBxPvxwyH9IzTn8PkU9X2M+F6cHCUvHxL1sWI2sF8pYcaHzVjq9WClym10X36Lg==", "dev": true, "requires": { - "tslib": "1.8.0" + "tslib": "1.9.0" } }, "@angular/compiler": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-5.1.3.tgz", - "integrity": "sha512-YQyL52+CtduFqyodv3m+s8qNDRbmEyEv/ZZHEWNKxKFr7RQ5n7+pbjdincwGf2c2mBw4EqWLgyCdd9SFmjJd0w==", + "version": "5.2.9", + "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-5.2.9.tgz", + "integrity": "sha512-mN+ofInk8y/tk2TCJZx8RrGdOKdrfunoCair7tfDy4XoQJE90waGfaYWo07hYU+UYwLhrg19m2Czy6rIDciUJA==", "dev": true, "requires": { - "tslib": "1.8.0" + "tslib": "1.9.0" } }, "@angular/compiler-cli": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-5.1.3.tgz", - "integrity": "sha512-5pmVgFch67qYxl04PitagfUgiw0k7Ak1Cvj5LY2gs0961SHo8qLRA2/4xUKAxv4rFy+fx2Qr9KD99YB+wbsb3A==", + "version": "5.2.9", + "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-5.2.9.tgz", + "integrity": "sha512-LAEpL/6PAev3zwTow/43Atzv9AtKLAiLoS285X3EV1f80yQpYAmFRrPUtDlrIZdhZHBBv7CxnyCVpOLU3T8ohw==", "dev": true, "requires": { "chokidar": "1.7.0", "minimist": "1.2.0", "reflect-metadata": "0.1.12", - "tsickle": "0.25.6" + "tsickle": "0.27.2" }, "dependencies": { - "source-map-support": { - "version": "0.4.18", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", - "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + } + } + }, + "@angular/core": { + "version": "5.2.9", + "resolved": "https://registry.npmjs.org/@angular/core/-/core-5.2.9.tgz", + "integrity": "sha512-cvHBJGtasrIoARvbLFyHaOsiWKVwMNrrSTZLwrlyHP8oYzkDrE0qKGer6QCqyKt+51hF53cgWEffGzM/u/0wYg==", + "dev": true, + "requires": { + "tslib": "1.9.0" + } + }, + "@angular/platform-browser": { + "version": "5.2.9", + "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-5.2.9.tgz", + "integrity": "sha512-P6iviRTuLsLRuqtZNOO0fd4cjTo8DWsDCecwntUlI08R3kH5qeqvqarTzlw/4oD+wBzZY6bfb89JyY+n5XbX3Q==", + "dev": true, + "requires": { + "tslib": "1.9.0" + } + }, + "@angular/platform-browser-dynamic": { + "version": "5.2.9", + "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-5.2.9.tgz", + "integrity": "sha512-8C3MtyguJKDTT8FcHIRDlBxswcIdpfugOf4S2t94pVedCr4h9w2da/lcfwJKUISw1aKjfA77Sl8TDUhoS8ymmQ==", + "dev": true, + "requires": { + "tslib": "1.9.0" + } + }, + "@babel/code-frame": { + "version": "7.0.0-beta.42", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.42.tgz", + "integrity": "sha512-L8i94FLSyaLQpRfDo/qqSm8Ndb44zMtXParXo0MebJICG1zoCCL4+GkzUOlB4BNTRSXXQdb3feam/qw7bKPipQ==", + "dev": true, + "requires": { + "@babel/highlight": "7.0.0-beta.42" + } + }, + "@babel/highlight": { + "version": "7.0.0-beta.42", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.42.tgz", + "integrity": "sha512-X3Ur/A/lIbbP8W0pmwgqtDXIxhQmxPaiwY9SKP7kF9wvZfjZRwMvbJE92ozUhF3UDK3DCKaV7oGqmI1rP/zqWA==", + "dev": true, + "requires": { + "chalk": "2.2.2", + "esutils": "2.0.2", + "js-tokens": "3.0.2" + } + }, + "@commitlint/cli": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/@commitlint/cli/-/cli-6.1.3.tgz", + "integrity": "sha1-RgbhOLBbQwNNyErxXaGOITkFhTc=", + "dev": true, + "requires": { + "@commitlint/format": "6.1.3", + "@commitlint/lint": "6.1.3", + "@commitlint/load": "6.1.3", + "@commitlint/read": "6.1.3", + "babel-polyfill": "6.26.0", + "chalk": "2.3.1", + "get-stdin": "5.0.1", + "lodash.merge": "4.6.1", + "lodash.pick": "4.4.0", + "meow": "3.7.0" + }, + "dependencies": { + "chalk": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.1.tgz", + "integrity": "sha512-QUU4ofkDoMIVO7hcx1iPTISs88wsO8jA92RQIm4JAwZvFGGAV2hSAA1NX7oVj2Ej2Q6NDTcRDjPTFrMCRZoJ6g==", "dev": true, "requires": { - "source-map": "0.5.7" + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.3.0" } }, - "tsickle": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/tsickle/-/tsickle-0.25.6.tgz", - "integrity": "sha1-tZXbFrI2chgk7u2ouyYjZbR+8zQ=", + "get-stdin": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-5.0.1.tgz", + "integrity": "sha1-Ei4WFZHiH/TFJTAwVpPyDmOTo5g=", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "supports-color": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", + "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", "dev": true, "requires": { - "minimist": "1.2.0", - "mkdirp": "0.5.1", - "source-map": "0.5.7", - "source-map-support": "0.4.18" + "has-flag": "3.0.0" } } } }, - "@angular/core": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/@angular/core/-/core-5.1.3.tgz", - "integrity": "sha512-lGlILYCumA5s8Pf+egDW6kjlrEQwnpUG2fBQ4SNRChzzRoTWeJ1XPCrEI9YyFvC8qUsYcDIZwHWBXQQqhdEvmQ==", + "@commitlint/config-conventional": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-6.1.3.tgz", + "integrity": "sha1-bAburgTFrHicNhjfTVKu2on/uBA=", + "dev": true + }, + "@commitlint/ensure": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/@commitlint/ensure/-/ensure-6.1.3.tgz", + "integrity": "sha1-gTtYyf364VNRty/mRqFi69tx6io=", "dev": true, "requires": { - "tslib": "1.8.0" + "lodash.camelcase": "4.3.0", + "lodash.kebabcase": "4.1.1", + "lodash.snakecase": "4.1.1", + "lodash.startcase": "4.4.0", + "lodash.upperfirst": "4.3.1" } }, - "@angular/platform-browser": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-5.1.3.tgz", - "integrity": "sha512-APMYMgEith68hsuSS8PpE0Dn1dEhJN1IkaIeL+ZlmhZQ4GktVAvMV2ySFYHoQofT5QIWEnvbT2r/cvgW9+8IUQ==", + "@commitlint/execute-rule": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/@commitlint/execute-rule/-/execute-rule-6.1.3.tgz", + "integrity": "sha1-SJKOc27xXocQ0zKhXHyJlVXk4Qs=", "dev": true, "requires": { - "tslib": "1.8.0" + "babel-runtime": "6.26.0" } }, - "@angular/platform-browser-dynamic": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-5.1.3.tgz", - "integrity": "sha512-LKyHzN0LZqcw8nL19yJsbqPMBZ2nxPYFDkbsBicxfr9RHWbWbDuIZXY5l742guzAFBPHhccx9Lpjd3Gwxi7syg==", + "@commitlint/format": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/@commitlint/format/-/format-6.1.3.tgz", + "integrity": "sha1-QUuQSKmvVFh9qWIicXujMjR6veM=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "chalk": "2.2.2" + } + }, + "@commitlint/is-ignored": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/@commitlint/is-ignored/-/is-ignored-6.1.3.tgz", + "integrity": "sha1-icm5ZKTWIoh1pXnCv1UtADc0t+g=", "dev": true, "requires": { - "tslib": "1.8.0" + "semver": "5.5.0" } }, - "@angular/platform-server": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/@angular/platform-server/-/platform-server-5.1.3.tgz", - "integrity": "sha512-3E9rjaZtxODO75aEr3IfEWveVuY7w6DWKMjdNV4jDaRYbc70aP4fGPI0ynKZ8y94ty8mh9OlGTVzCo4l7BGcag==", + "@commitlint/lint": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/@commitlint/lint/-/lint-6.1.3.tgz", + "integrity": "sha1-aneI6uOBrahz90IeMVWecgPKrfM=", "dev": true, "requires": { - "domino": "1.0.30", - "tslib": "1.8.0", - "xhr2": "0.1.4" + "@commitlint/is-ignored": "6.1.3", + "@commitlint/parse": "6.1.3", + "@commitlint/rules": "6.1.3", + "babel-runtime": "6.26.0", + "lodash.topairs": "4.3.0" } }, - "@angular/tsc-wrapped": { - "version": "4.4.6", - "resolved": "https://registry.npmjs.org/@angular/tsc-wrapped/-/tsc-wrapped-4.4.6.tgz", - "integrity": "sha1-Fnh8u/UL3H5zgSOxnDJSfyROF40=", + "@commitlint/load": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/@commitlint/load/-/load-6.1.3.tgz", + "integrity": "sha1-G+QHETl5WPMWz0BXepyHmhbwClQ=", "dev": true, "requires": { - "tsickle": "0.21.6" + "@commitlint/execute-rule": "6.1.3", + "@commitlint/resolve-extends": "6.1.3", + "babel-runtime": "6.26.0", + "cosmiconfig": "4.0.0", + "lodash.merge": "4.6.1", + "lodash.mergewith": "4.6.1", + "lodash.pick": "4.4.0", + "lodash.topairs": "4.3.0", + "resolve-from": "4.0.0" }, "dependencies": { - "source-map-support": { - "version": "0.4.18", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", - "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", + "cosmiconfig": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-4.0.0.tgz", + "integrity": "sha512-6e5vDdrXZD+t5v0L8CrurPeybg4Fmf+FCSYxXKYVAqLUtyCSbuyqE059d0kDthTNRzKVjL7QMgNpEUlsoYH3iQ==", "dev": true, "requires": { - "source-map": "0.5.7" + "is-directory": "0.3.1", + "js-yaml": "3.11.0", + "parse-json": "4.0.0", + "require-from-string": "2.0.1" } }, - "tsickle": { - "version": "0.21.6", - "resolved": "https://registry.npmjs.org/tsickle/-/tsickle-0.21.6.tgz", - "integrity": "sha1-U7Abl5xcE/2xOvs/uVgXflmRWI0=", + "parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", "dev": true, "requires": { - "minimist": "1.2.0", - "mkdirp": "0.5.1", - "source-map": "0.5.7", - "source-map-support": "0.4.18" + "error-ex": "1.3.1", + "json-parse-better-errors": "1.0.1" } + }, + "require-from-string": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.1.tgz", + "integrity": "sha1-xUUjPp19pmFunVmt+zn8n1iGdv8=", + "dev": true + }, + "resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true } } }, - "@ngtools/json-schema": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@ngtools/json-schema/-/json-schema-1.1.0.tgz", - "integrity": "sha1-w6DFRNYjkqzCgTpCyKDcb1j4aSI=", + "@commitlint/message": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/@commitlint/message/-/message-6.1.3.tgz", + "integrity": "sha1-XgRzMwyIcBYBDExWJwcjuAARRdI=", "dev": true }, - "@types/acorn": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@types/acorn/-/acorn-4.0.3.tgz", - "integrity": "sha512-gou/kWQkGPMZjdCKNZGDpqxLm9+ErG/pFZKPX4tvCjr0Xf4FCYYX3nAsu7aDVKJV3KUe27+mvqqyWT/9VZoM/A==", + "@commitlint/parse": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/@commitlint/parse/-/parse-6.1.3.tgz", + "integrity": "sha1-/x5NksJ81naBK7a512zYhTwNlAc=", "dev": true, "requires": { - "@types/estree": "0.0.38" + "conventional-changelog-angular": "1.6.6", + "conventional-commits-parser": "2.1.5" } }, - "@types/estree": { - "version": "0.0.38", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.38.tgz", - "integrity": "sha512-F/v7t1LwS4vnXuPooJQGBRKRGIoxWUTmA4VHfqjOccFsNDThD5bfUNpITive6s352O7o384wcpEaDV8rHCehDA==", - "dev": true + "@commitlint/read": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/@commitlint/read/-/read-6.1.3.tgz", + "integrity": "sha1-n52NtQ+/Z/MACSFlftbvrbjPnxo=", + "dev": true, + "requires": { + "@commitlint/top-level": "6.1.3", + "@marionebl/sander": "0.6.1", + "babel-runtime": "6.26.0", + "git-raw-commits": "1.3.4" + } }, - "@types/jasmine": { - "version": "2.5.54", - "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-2.5.54.tgz", - "integrity": "sha1-prXyrir7bgMHd06MfGCOA31JHGM=", + "@commitlint/resolve-extends": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/@commitlint/resolve-extends/-/resolve-extends-6.1.3.tgz", + "integrity": "sha1-9F/P5Dhg4F4489lNVMrtfdqkHiU=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "lodash.merge": "4.6.1", + "lodash.omit": "4.5.0", + "require-uncached": "1.0.3", + "resolve-from": "4.0.0", + "resolve-global": "0.1.0" + }, + "dependencies": { + "resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true + } + } + }, + "@commitlint/rules": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/@commitlint/rules/-/rules-6.1.3.tgz", + "integrity": "sha1-NOvSYsA3DUgwnlFnmUJNMsM/mEs=", + "dev": true, + "requires": { + "@commitlint/ensure": "6.1.3", + "@commitlint/message": "6.1.3", + "@commitlint/to-lines": "6.1.3", + "babel-runtime": "6.26.0" + } + }, + "@commitlint/to-lines": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/@commitlint/to-lines/-/to-lines-6.1.3.tgz", + "integrity": "sha1-erFqAsrtjapH6Vkmm5YWRhCinQw=", "dev": true }, - "@types/jasmine-ajax": { - "version": "3.1.37", - "resolved": "https://registry.npmjs.org/@types/jasmine-ajax/-/jasmine-ajax-3.1.37.tgz", - "integrity": "sha1-vO5BuDjGsMr1POcyeprQDTDK92M=", + "@commitlint/top-level": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/@commitlint/top-level/-/top-level-6.1.3.tgz", + "integrity": "sha1-Em3LbeFnY0LGnNQiYUg/RHhUcpk=", + "dev": true, + "requires": { + "find-up": "2.1.0" + } + }, + "@marionebl/sander": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/@marionebl/sander/-/sander-0.6.1.tgz", + "integrity": "sha1-GViWWHTyS8Ub5Ih1/rUNZC/EH3s=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "mkdirp": "0.5.1", + "rimraf": "2.6.2" + } + }, + "@ngtools/json-schema": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ngtools/json-schema/-/json-schema-1.2.0.tgz", + "integrity": "sha512-pMh+HDc6mOjUO3agRfB1tInimo7hf67u+0Cska2bfXFe6oU7rSMnr5PLVtiZVgwMoBHpx/6XjBymvcnWPo2Uzg==", "dev": true }, - "@types/node": { - "version": "9.4.7", - "resolved": "https://registry.npmjs.org/@types/node/-/node-9.4.7.tgz", - "integrity": "sha512-4Ba90mWNx8ddbafuyGGwjkZMigi+AWfYLSDCpovwsE63ia8w93r3oJ8PIAQc3y8U+XHcnMOHPIzNe3o438Ywcw==", + "@ngtools/webpack": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-1.10.2.tgz", + "integrity": "sha512-3u2zg2rarG3qNLSukBClGADWuq/iNn5SQtlSeAbfKzwBeyLGbF0gN1z1tVx1Bcr8YwFzR6NdRePQmJGcoqq1fg==", + "dev": true, + "requires": { + "chalk": "2.2.2", + "enhanced-resolve": "3.4.1", + "loader-utils": "1.1.0", + "magic-string": "0.22.5", + "semver": "5.5.0", + "source-map": "0.5.7", + "tree-kill": "1.2.0", + "webpack-sources": "1.1.0" + } + }, + "@schematics/angular": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-0.3.2.tgz", + "integrity": "sha512-Elrk0BA951s0ScFZU0AWrpUeJBYVR52DZ1QTIO5R0AhwEd1PW4olI8szPLGQlVW5Sd6H0FA/fyFLIvn2r9v6Rw==", + "dev": true, + "requires": { + "typescript": "2.6.2" + } + }, + "@schematics/package-update": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@schematics/package-update/-/package-update-0.3.2.tgz", + "integrity": "sha512-7aVP4994Hu8vRdTTohXkfGWEwLhrdNP3EZnWyBootm5zshWqlQojUGweZe5zwewsKcixeVOiy2YtW+aI4aGSLA==", + "dev": true, + "requires": { + "rxjs": "5.5.7", + "semver": "5.5.0", + "semver-intersect": "1.3.1" + }, + "dependencies": { + "rxjs": { + "version": "5.5.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.7.tgz", + "integrity": "sha512-Hxo2ac8gRQjwjtKgukMIwBRbq5+KAeEV5hXM4obYBOAghev41bDQWgFH4svYiU9UnQ5kNww2LgfyBdevCd2HXA==", + "dev": true, + "requires": { + "symbol-observable": "1.0.1" + } + } + } + }, + "@types/jasmine": { + "version": "2.8.6", + "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-2.8.6.tgz", + "integrity": "sha512-clg9raJTY0EOo5pVZKX3ZlMjlYzVU73L71q5OV1jhE2Uezb7oF94jh4CvwrW6wInquQAdhOxJz5VDF2TLUGmmA==", "dev": true }, "JSONStream": { @@ -185,26 +557,32 @@ "through": "2.3.8" } }, + "abab": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/abab/-/abab-1.0.4.tgz", + "integrity": "sha1-X6rZwsB/YN12dw9xzwJbYqY8/U4=", + "dev": true + }, "abbrev": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha1-+PLIh60Qv2f2NPAFtph/7TF5qsg=", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", "dev": true }, "accepts": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.3.tgz", - "integrity": "sha1-w8p0NJOGSMPg2cHjKN1otiLChMo=", + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz", + "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=", "dev": true, "requires": { - "mime-types": "2.1.17", + "mime-types": "2.1.18", "negotiator": "0.6.1" } }, "acorn": { - "version": "4.0.13", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz", - "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=", + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.5.3.tgz", + "integrity": "sha512-jd5MkIUlbbmb07nXH0DT3y7rDVtkzDi4XZOUVWAer8ajmF/DTSSbl5oNFyDOl/OXA33Bl79+ypHhl2pN20VeOQ==", "dev": true }, "acorn-dynamic-import": { @@ -214,6 +592,23 @@ "dev": true, "requires": { "acorn": "4.0.13" + }, + "dependencies": { + "acorn": { + "version": "4.0.13", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz", + "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=", + "dev": true + } + } + }, + "acorn-globals": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-4.1.0.tgz", + "integrity": "sha512-KjZwU26uG3u6eZcfGbTULzFcsoz6pegNKtHPksZPOUsiKo5bUmiBPa38FuHZ/Eun+XYh/JCCkS9AS3Lu4McQOQ==", + "dev": true, + "requires": { + "acorn": "5.5.3" } }, "acorn-node": { @@ -224,14 +619,6 @@ "requires": { "acorn": "5.5.3", "xtend": "4.0.1" - }, - "dependencies": { - "acorn": { - "version": "5.5.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.5.3.tgz", - "integrity": "sha512-jd5MkIUlbbmb07nXH0DT3y7rDVtkzDi4XZOUVWAer8ajmF/DTSSbl5oNFyDOl/OXA33Bl79+ypHhl2pN20VeOQ==", - "dev": true - } } }, "addressparser": { @@ -266,19 +653,20 @@ } }, "ajv": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz", - "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.3.0.tgz", + "integrity": "sha1-FlCkERTvAFdMrBC4Ay2PTBSBLac=", "dev": true, "requires": { - "co": "4.6.0", - "json-stable-stringify": "1.0.1" + "fast-deep-equal": "1.1.0", + "fast-json-stable-stringify": "2.0.0", + "json-schema-traverse": "0.3.1" } }, "ajv-keywords": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-1.5.1.tgz", - "integrity": "sha1-MU3QpLM2j609/NxU7eYXG4htrzw=", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.1.0.tgz", + "integrity": "sha1-rCsnk5xUPpXSwG5/f1wnvkqlQ74=", "dev": true }, "align-text": { @@ -310,6 +698,35 @@ "buffer-more-ints": "0.0.2", "readable-stream": "1.1.14", "safe-buffer": "5.1.1" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true, + "optional": true + }, + "readable-stream": { + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", + "dev": true, + "optional": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "0.0.1", + "string_decoder": "0.10.31" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true, + "optional": true + } } }, "ansi-align": { @@ -354,64 +771,70 @@ } } }, - "ansi-cyan": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-cyan/-/ansi-cyan-0.1.1.tgz", - "integrity": "sha1-U4rlKK+JgvKK4w2G8vF0VtJgmHM=", - "dev": true, - "requires": { - "ansi-wrap": "0.1.0" - } + "ansi-escapes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-1.4.0.tgz", + "integrity": "sha1-06ioOzGapneTZisT52HHkRQiMG4=", + "dev": true }, - "ansi-red": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", - "integrity": "sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw=", - "dev": true, - "requires": { - "ansi-wrap": "0.1.0" - } + "ansi-html": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/ansi-html/-/ansi-html-0.0.7.tgz", + "integrity": "sha1-gTWEAhliqenm/QOflA0S9WynhZ4=", + "dev": true }, "ansi-regex": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-0.2.1.tgz", - "integrity": "sha1-DY6UaWej2BQ/k+JOKYUl/BsiNfk=", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", "dev": true }, "ansi-styles": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-1.1.0.tgz", - "integrity": "sha1-6uy/Zs1waIJ2Cy9GkVgrj1XXp94=", - "dev": true + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "1.9.1" + } }, - "ansi-wrap": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", - "integrity": "sha1-qCJQ3bABXponyoLoLqYDu/pF768=", + "any-observable": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/any-observable/-/any-observable-0.2.0.tgz", + "integrity": "sha1-xnhwBYADV5AJCD9UrAq6+1wz0kI=", "dev": true }, "anymatch": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.2.tgz", - "integrity": "sha1-VT3Lj5HjyImEXf26NMd3IbkLnXo=", + "integrity": "sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA==", "dev": true, "requires": { "micromatch": "2.3.11", "normalize-path": "2.1.1" } }, + "app-root-path": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/app-root-path/-/app-root-path-2.0.1.tgz", + "integrity": "sha1-zWLc+OT9WkF+/GZNLlsQZTxlG0Y=", + "dev": true + }, + "append-transform": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/append-transform/-/append-transform-0.4.0.tgz", + "integrity": "sha1-126/jKlNJ24keja61EpLdKthGZE=", + "dev": true, + "requires": { + "default-require-extensions": "1.0.0" + } + }, "aproba": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", "dev": true }, - "archy": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz", - "integrity": "sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=", - "dev": true - }, "are-we-there-yet": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz", @@ -420,44 +843,6 @@ "requires": { "delegates": "1.0.0", "readable-stream": "2.3.5" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", - "dev": true - }, - "readable-stream": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", - "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", - "dev": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "2.0.0", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", - "dev": true, - "requires": { - "safe-buffer": "5.1.1" - } - } } }, "argparse": { @@ -481,25 +866,19 @@ "arr-flatten": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha1-NgSLv/TntH4TZkQxbJlmnqWukfE=", + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", "dev": true }, "arr-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-2.1.0.tgz", - "integrity": "sha1-IPnqtexw9cfSFbEHexw5Fh0pLH0=", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", "dev": true }, - "array-differ": { + "array-equal": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz", - "integrity": "sha1-7/UuN1gknTO+QCuLuOVkuytdQDE=", - "dev": true - }, - "array-each": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/array-each/-/array-each-1.0.1.tgz", - "integrity": "sha1-p5SvDAWrF1KEbudTofIRoFugxE8=", + "resolved": "https://registry.npmjs.org/array-equal/-/array-equal-1.0.0.tgz", + "integrity": "sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM=", "dev": true }, "array-filter": { @@ -514,6 +893,28 @@ "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", "dev": true }, + "array-flatten": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.1.tgz", + "integrity": "sha1-Qmu52oQJDBg42BLIFQryCoMx4pY=", + "dev": true + }, + "array-ify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz", + "integrity": "sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4=", + "dev": true + }, + "array-includes": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.0.3.tgz", + "integrity": "sha1-GEtI9i2S10UrsxsyMWXH+L0CJm0=", + "dev": true, + "requires": { + "define-properties": "1.1.2", + "es-abstract": "1.11.0" + } + }, "array-map": { "version": "0.0.0", "resolved": "https://registry.npmjs.org/array-map/-/array-map-0.0.0.tgz", @@ -527,9 +928,9 @@ "dev": true }, "array-slice": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-1.0.0.tgz", - "integrity": "sha1-5zA08A3MH0CHYAj9IP6ud71LfC8=", + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-0.2.3.tgz", + "integrity": "sha1-3Tz7gO15c6dRF82sabC5nshhhvU=", "dev": true }, "array-union": { @@ -554,9 +955,15 @@ "dev": true }, "arraybuffer.slice": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/arraybuffer.slice/-/arraybuffer.slice-0.0.6.tgz", - "integrity": "sha1-8zshWfBTKj8xB6JywMz70a0peco=", + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz", + "integrity": "sha512-wGUIVQXuehL5TCqQun8OW81jGzAWycqzFF8lFp+GOM5BXLYj3bKNsYC4daB7n6XjCqxQA/qgTJ+8ANR3acjrog==", + "dev": true + }, + "arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", "dev": true }, "asap": { @@ -573,9 +980,9 @@ "dev": true }, "asn1.js": { - "version": "4.9.1", - "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.9.1.tgz", - "integrity": "sha1-SLokC0WpKA6UdImQull9IWYX/UA=", + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz", + "integrity": "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==", "dev": true, "requires": { "bn.js": "4.11.8", @@ -598,6 +1005,12 @@ "integrity": "sha1-104bh+ev/A24qttwIfP+SBAasjQ=", "dev": true }, + "assign-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", + "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", + "dev": true + }, "ast-types": { "version": "0.11.3", "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.11.3.tgz", @@ -612,13 +1025,24 @@ "dev": true, "requires": { "acorn": "4.0.13" + }, + "dependencies": { + "acorn": { + "version": "4.0.13", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz", + "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=", + "dev": true + } } }, "async": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", - "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", - "dev": true + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.0.tgz", + "integrity": "sha512-xAfGg1/NTLBBKlHFmnd7PlmUW9KhVQIUuSrYem9xzFUZy13ScvtyGGejaae9iAVRiRq9+Cx7DPFaAAhCpyxyPw==", + "dev": true, + "requires": { + "lodash": "4.17.5" + } }, "async-each": { "version": "1.0.1", @@ -626,12 +1050,6 @@ "integrity": "sha1-GdOGodntxufByF04iu28xW0zYC0=", "dev": true }, - "async-each-series": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/async-each-series/-/async-each-series-0.1.1.tgz", - "integrity": "sha1-dhfBkXQB/Yykooqtzj266Yr+tDI=", - "dev": true - }, "async-foreach": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/async-foreach/-/async-foreach-0.1.3.tgz", @@ -650,6 +1068,12 @@ "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", "dev": true }, + "atob": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.0.3.tgz", + "integrity": "sha1-GcenYEc3dEaPILLS0DNyrX1Mv10=", + "dev": true + }, "autoprefixer": { "version": "7.2.6", "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-7.2.6.tgz", @@ -657,7 +1081,7 @@ "dev": true, "requires": { "browserslist": "2.11.3", - "caniuse-lite": "1.0.30000817", + "caniuse-lite": "1.0.30000819", "normalize-range": "0.1.2", "num2fraction": "1.2.2", "postcss": "6.0.20", @@ -697,12 +1121,6 @@ "js-tokens": "3.0.2" }, "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, "ansi-styles": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", @@ -722,24 +1140,6 @@ "supports-color": "2.0.0" } }, - "has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", - "dev": true, - "requires": { - "ansi-regex": "2.1.1" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "2.1.1" - } - }, "supports-color": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", @@ -748,6 +1148,50 @@ } } }, + "babel-generator": { + "version": "6.26.1", + "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", + "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", + "dev": true, + "requires": { + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "detect-indent": "4.0.0", + "jsesc": "1.3.0", + "lodash": "4.17.5", + "source-map": "0.5.7", + "trim-right": "1.0.1" + } + }, + "babel-messages": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", + "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-polyfill": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz", + "integrity": "sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "core-js": "2.5.3", + "regenerator-runtime": "0.10.5" + }, + "dependencies": { + "regenerator-runtime": { + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", + "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", + "dev": true + } + } + }, "babel-runtime": { "version": "6.26.0", "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", @@ -758,6 +1202,54 @@ "regenerator-runtime": "0.11.1" } }, + "babel-template": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", + "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "lodash": "4.17.5" + } + }, + "babel-traverse": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", + "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", + "dev": true, + "requires": { + "babel-code-frame": "6.26.0", + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "debug": "2.6.9", + "globals": "9.18.0", + "invariant": "2.2.4", + "lodash": "4.17.5" + } + }, + "babel-types": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", + "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "esutils": "2.0.2", + "lodash": "4.17.5", + "to-fast-properties": "1.0.3" + } + }, + "babylon": { + "version": "6.18.0", + "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", + "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", + "dev": true + }, "backo2": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/backo2/-/backo2-1.0.2.tgz", @@ -770,6 +1262,38 @@ "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", "dev": true }, + "base": { + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", + "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", + "dev": true, + "requires": { + "cache-base": "1.0.1", + "class-utils": "0.3.6", + "component-emitter": "1.2.1", + "define-property": "1.0.0", + "isobject": "3.0.1", + "mixin-deep": "1.3.1", + "pascalcase": "0.1.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "1.0.2" + } + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + } + } + }, "base64-arraybuffer": { "version": "0.1.5", "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.5.tgz", @@ -777,9 +1301,9 @@ "dev": true }, "base64-js": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.2.1.tgz", - "integrity": "sha1-qRlH2h9KUW6jjltOwOw3c2deCIY=", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.2.3.tgz", + "integrity": "sha512-MsAhsUW1GxCdgYSO6tAfZrNapmUKk7mWx/k5mFY/A1gBtkaCaNapTg+FExCw1r9yeaZhqx/xPg43xgTFH6KL5w==", "dev": true }, "base64id": { @@ -789,9 +1313,9 @@ "dev": true }, "batch": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/batch/-/batch-0.5.3.tgz", - "integrity": "sha1-PzQU84AyF0O/wQQvmoP/HVgk1GQ=", + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", + "integrity": "sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY=", "dev": true }, "bcrypt-pbkdf": { @@ -804,12 +1328,6 @@ "tweetnacl": "0.14.5" } }, - "beeper": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/beeper/-/beeper-1.1.1.tgz", - "integrity": "sha1-5tXqjF2tABMEpwsiY4RH9pyy+Ak=", - "dev": true - }, "better-assert": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/better-assert/-/better-assert-1.0.2.tgz", @@ -822,13 +1340,13 @@ "big.js": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/big.js/-/big.js-3.2.0.tgz", - "integrity": "sha1-pfwpi4G54Nyi5FiCR4S2XFK6WI4=", + "integrity": "sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q==", "dev": true }, "binary-extensions": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.10.0.tgz", - "integrity": "sha1-muuabF6IY4qtFx4Wf1kAq+JINdA=", + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.11.0.tgz", + "integrity": "sha1-RqoXUftqL5PuXmibsQh9SxTGwgU=", "dev": true }, "bitsyntax": { @@ -851,10 +1369,10 @@ "readable-stream": "2.0.6" }, "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "process-nextick-args": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz", + "integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=", "dev": true, "optional": true }, @@ -872,6 +1390,13 @@ "string_decoder": "0.10.31", "util-deprecate": "1.0.2" } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true, + "optional": true } } }, @@ -899,7 +1424,7 @@ "bn.js": { "version": "4.11.8", "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", - "integrity": "sha1-LN4J617jQfSEdGuwMJsyU7GxRC8=", + "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==", "dev": true }, "body-parser": { @@ -911,7 +1436,7 @@ "bytes": "3.0.0", "content-type": "1.0.4", "debug": "2.6.9", - "depd": "1.1.1", + "depd": "1.1.2", "http-errors": "1.6.2", "iconv-lite": "0.4.19", "on-finished": "2.3.0", @@ -928,6 +1453,26 @@ } } }, + "bonjour": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/bonjour/-/bonjour-3.5.0.tgz", + "integrity": "sha1-jokKGD2O6aI5OzhExpGkK897yfU=", + "dev": true, + "requires": { + "array-flatten": "2.1.1", + "deep-equal": "1.0.1", + "dns-equal": "1.0.0", + "dns-txt": "2.0.2", + "multicast-dns": "6.2.3", + "multicast-dns-service-types": "1.1.0" + } + }, + "boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=", + "dev": true + }, "boom": { "version": "2.10.1", "resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz", @@ -945,7 +1490,7 @@ "requires": { "ansi-align": "2.0.0", "camelcase": "4.1.0", - "chalk": "2.3.2", + "chalk": "2.2.2", "cli-boxes": "1.0.0", "string-width": "2.1.1", "term-size": "1.2.0", @@ -958,38 +1503,12 @@ "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", "dev": true }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "1.9.1" - } - }, "camelcase": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", "dev": true }, - "chalk": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz", - "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", - "dev": true, - "requires": { - "ansi-styles": "3.2.1", - "escape-string-regexp": "1.0.5", - "supports-color": "5.3.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, "is-fullwidth-code-point": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", @@ -1014,22 +1533,13 @@ "requires": { "ansi-regex": "3.0.0" } - }, - "supports-color": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", - "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", - "dev": true, - "requires": { - "has-flag": "3.0.0" - } } } }, "brace-expansion": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz", - "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, "requires": { "balanced-match": "1.0.0", @@ -1067,6 +1577,12 @@ "umd": "3.0.3" } }, + "browser-process-hrtime": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-0.1.2.tgz", + "integrity": "sha1-Ql1opY00R/AqBKqJQYf86K+Le44=", + "dev": true + }, "browser-resolve": { "version": "1.11.2", "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.2.tgz", @@ -1084,395 +1600,6 @@ } } }, - "browser-sync": { - "version": "2.18.13", - "resolved": "https://registry.npmjs.org/browser-sync/-/browser-sync-2.18.13.tgz", - "integrity": "sha1-wo3D6zvmfJepBwgrdyo3+RXBTX0=", - "dev": true, - "requires": { - "browser-sync-client": "2.5.1", - "browser-sync-ui": "0.6.3", - "bs-recipes": "1.3.4", - "chokidar": "1.7.0", - "connect": "3.5.0", - "dev-ip": "1.0.1", - "easy-extender": "2.3.2", - "eazy-logger": "3.0.2", - "emitter-steward": "1.0.0", - "fs-extra": "3.0.1", - "http-proxy": "1.15.2", - "immutable": "3.8.1", - "localtunnel": "1.8.3", - "micromatch": "2.3.11", - "opn": "4.0.2", - "portscanner": "2.1.1", - "qs": "6.2.1", - "resp-modifier": "6.0.2", - "rx": "4.1.0", - "serve-index": "1.8.0", - "serve-static": "1.12.2", - "server-destroy": "1.0.1", - "socket.io": "1.6.0", - "socket.io-client": "1.6.0", - "ua-parser-js": "0.7.12", - "yargs": "6.4.0" - }, - "dependencies": { - "after": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/after/-/after-0.8.1.tgz", - "integrity": "sha1-q11PuIP1loFtNRX495HAr0ht1ic=", - "dev": true - }, - "base64id": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/base64id/-/base64id-0.1.0.tgz", - "integrity": "sha1-As4P3u4M709ACA4ec+g08LG/zj8=", - "dev": true - }, - "camelcase": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", - "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", - "dev": true - }, - "component-emitter": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", - "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", - "dev": true - }, - "connect": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/connect/-/connect-3.5.0.tgz", - "integrity": "sha1-s1dSWgtMH1BZnNmD4dnv7qlncZg=", - "dev": true, - "requires": { - "debug": "2.2.0", - "finalhandler": "0.5.0", - "parseurl": "1.3.2", - "utils-merge": "1.0.0" - } - }, - "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", - "dev": true, - "requires": { - "ms": "0.7.1" - } - }, - "engine.io": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-1.8.0.tgz", - "integrity": "sha1-PutfJky3XbvsG6rqJtYfWk6s4qo=", - "dev": true, - "requires": { - "accepts": "1.3.3", - "base64id": "0.1.0", - "cookie": "0.3.1", - "debug": "2.3.3", - "engine.io-parser": "1.3.1", - "ws": "1.1.1" - }, - "dependencies": { - "debug": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.3.3.tgz", - "integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=", - "dev": true, - "requires": { - "ms": "0.7.2" - } - }, - "ms": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", - "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", - "dev": true - } - } - }, - "engine.io-client": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-1.8.0.tgz", - "integrity": "sha1-e3MOQSdBQIdZbZvjyI0rxf22z1w=", - "dev": true, - "requires": { - "component-emitter": "1.2.1", - "component-inherit": "0.0.3", - "debug": "2.3.3", - "engine.io-parser": "1.3.1", - "has-cors": "1.1.0", - "indexof": "0.0.1", - "parsejson": "0.0.3", - "parseqs": "0.0.5", - "parseuri": "0.0.5", - "ws": "1.1.1", - "xmlhttprequest-ssl": "1.5.3", - "yeast": "0.1.2" - }, - "dependencies": { - "debug": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.3.3.tgz", - "integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=", - "dev": true, - "requires": { - "ms": "0.7.2" - } - }, - "ms": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", - "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", - "dev": true - } - } - }, - "engine.io-parser": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-1.3.1.tgz", - "integrity": "sha1-lVTxrjMQfW+9FwylRm0vgz9qB88=", - "dev": true, - "requires": { - "after": "0.8.1", - "arraybuffer.slice": "0.0.6", - "base64-arraybuffer": "0.1.5", - "blob": "0.0.4", - "has-binary": "0.1.6", - "wtf-8": "1.0.0" - }, - "dependencies": { - "has-binary": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/has-binary/-/has-binary-0.1.6.tgz", - "integrity": "sha1-JTJvOc+k9hath4eJTjryz7x7bhA=", - "dev": true, - "requires": { - "isarray": "0.0.1" - } - } - } - }, - "finalhandler": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-0.5.0.tgz", - "integrity": "sha1-6VCKvs6bbbqHGmlCodeRG5GRGsc=", - "dev": true, - "requires": { - "debug": "2.2.0", - "escape-html": "1.0.3", - "on-finished": "2.3.0", - "statuses": "1.3.1", - "unpipe": "1.0.0" - } - }, - "fs-extra": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-3.0.1.tgz", - "integrity": "sha1-N5TzeMWLNC6n27sjCVEJxLO2IpE=", - "dev": true, - "requires": { - "graceful-fs": "4.1.11", - "jsonfile": "3.0.1", - "universalify": "0.1.1" - } - }, - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true - }, - "http-proxy": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.15.2.tgz", - "integrity": "sha1-ZC/cr/5S00SNK9o7AHnpQJBk2jE=", - "dev": true, - "requires": { - "eventemitter3": "1.2.0", - "requires-port": "1.0.0" - } - }, - "jsonfile": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-3.0.1.tgz", - "integrity": "sha1-pezG9l9T9mLEQVx2daAzHQmS7GY=", - "dev": true, - "requires": { - "graceful-fs": "4.1.11" - } - }, - "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", - "dev": true - }, - "object-assign": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.0.tgz", - "integrity": "sha1-ejs9DpgGPUP0wD8uiubNUahog6A=", - "dev": true - }, - "qs": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.2.1.tgz", - "integrity": "sha1-zgPF/wk1vB2daanxTL0Y5WjWdiU=", - "dev": true - }, - "rx": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/rx/-/rx-4.1.0.tgz", - "integrity": "sha1-pfE/957zt0D+MKqAP7CfmIBdR4I=", - "dev": true - }, - "socket.io": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-1.6.0.tgz", - "integrity": "sha1-PkDZMmN+a9kjmBslyvfFPoO24uE=", - "dev": true, - "requires": { - "debug": "2.3.3", - "engine.io": "1.8.0", - "has-binary": "0.1.7", - "object-assign": "4.1.0", - "socket.io-adapter": "0.5.0", - "socket.io-client": "1.6.0", - "socket.io-parser": "2.3.1" - }, - "dependencies": { - "debug": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.3.3.tgz", - "integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=", - "dev": true, - "requires": { - "ms": "0.7.2" - } - }, - "ms": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", - "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", - "dev": true - } - } - }, - "socket.io-client": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-1.6.0.tgz", - "integrity": "sha1-W2aPT3cTBN/u0XkGRwg4b6ZxeFM=", - "dev": true, - "requires": { - "backo2": "1.0.2", - "component-bind": "1.0.0", - "component-emitter": "1.2.1", - "debug": "2.3.3", - "engine.io-client": "1.8.0", - "has-binary": "0.1.7", - "indexof": "0.0.1", - "object-component": "0.0.3", - "parseuri": "0.0.5", - "socket.io-parser": "2.3.1", - "to-array": "0.1.4" - }, - "dependencies": { - "debug": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.3.3.tgz", - "integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=", - "dev": true, - "requires": { - "ms": "0.7.2" - } - }, - "ms": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", - "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", - "dev": true - } - } - }, - "statuses": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz", - "integrity": "sha1-+vUbnrdKrvOzrPStX2Gr8ky3uT4=", - "dev": true - }, - "utils-merge": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.0.tgz", - "integrity": "sha1-ApT7kiu5N1FTVBxPcJYjHyh8ivg=", - "dev": true - }, - "window-size": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.2.0.tgz", - "integrity": "sha1-tDFbtCFKPXBY6+7okuE/ok2YsHU=", - "dev": true - }, - "ws": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-1.1.1.tgz", - "integrity": "sha1-CC3bbGQehdS7RR8D1S8G6r2x8Bg=", - "dev": true, - "requires": { - "options": "0.0.6", - "ultron": "1.0.2" - } - }, - "yargs": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-6.4.0.tgz", - "integrity": "sha1-gW4ahm1VmMzzTlWW3c4i2S2kkNQ=", - "dev": true, - "requires": { - "camelcase": "3.0.0", - "cliui": "3.2.0", - "decamelize": "1.2.0", - "get-caller-file": "1.0.2", - "os-locale": "1.4.0", - "read-pkg-up": "1.0.1", - "require-directory": "2.1.1", - "require-main-filename": "1.0.1", - "set-blocking": "2.0.0", - "string-width": "1.0.2", - "which-module": "1.0.0", - "window-size": "0.2.0", - "y18n": "3.2.1", - "yargs-parser": "4.2.1" - } - } - } - }, - "browser-sync-client": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/browser-sync-client/-/browser-sync-client-2.5.1.tgz", - "integrity": "sha1-7BrWmknC4tS2RbGLHAbCmz2a+Os=", - "dev": true, - "requires": { - "etag": "1.8.1", - "fresh": "0.3.0" - } - }, - "browser-sync-ui": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/browser-sync-ui/-/browser-sync-ui-0.6.3.tgz", - "integrity": "sha1-ZApTfBgGiTA9W+krxHa568RBwLw=", - "dev": true, - "requires": { - "async-each-series": "0.1.1", - "connect-history-api-fallback": "1.4.0", - "immutable": "3.8.1", - "server-destroy": "1.0.1", - "stream-throttle": "0.1.3", - "weinre": "2.0.0-pre-I0Z7U9OV" - } - }, "browserify": { "version": "14.5.0", "resolved": "https://registry.npmjs.org/browserify/-/browserify-14.5.0.tgz", @@ -1489,7 +1616,7 @@ "concat-stream": "1.5.2", "console-browserify": "1.1.0", "constants-browserify": "1.0.0", - "crypto-browserify": "3.11.1", + "crypto-browserify": "3.12.0", "defined": "1.0.0", "deps-sort": "2.0.0", "domain-browser": "1.1.7", @@ -1501,7 +1628,7 @@ "https-browserify": "1.0.0", "inherits": "2.0.3", "insert-module-globals": "7.0.4", - "labeled-stream-splicer": "2.0.0", + "labeled-stream-splicer": "2.0.1", "module-deps": "4.1.1", "os-browserify": "0.3.0", "parents": "1.0.1", @@ -1511,11 +1638,11 @@ "querystring-es3": "0.2.1", "read-only-stream": "2.0.0", "readable-stream": "2.3.5", - "resolve": "1.4.0", + "resolve": "1.6.0", "shasum": "1.0.2", "shell-quote": "1.6.1", "stream-browserify": "2.0.1", - "stream-http": "2.7.2", + "stream-http": "2.8.1", "string_decoder": "1.0.3", "subarg": "1.0.0", "syntax-error": "1.4.0", @@ -1528,23 +1655,14 @@ "xtend": "4.0.1" }, "dependencies": { - "browserify-zlib": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", - "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", - "dev": true, - "requires": { - "pako": "1.0.6" - } - }, "buffer": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.1.0.tgz", "integrity": "sha512-YkIRgwsZwJWTnyQrsBTWefizHh+8GYj3kbL1BTiAQ/9pwpino0G7B2gp5tx/FUBqUlvtxV85KNR3mwfAtv15Yw==", "dev": true, "requires": { - "base64-js": "1.2.1", - "ieee754": "1.1.8" + "base64-js": "1.2.3", + "ieee754": "1.1.10" } }, "concat-stream": { @@ -1580,71 +1698,18 @@ } } }, - "duplexer2": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", - "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", - "dev": true, - "requires": { - "readable-stream": "2.3.5" - } - }, - "https-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", - "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", - "dev": true - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "os-browserify": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", - "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=", + "domain-browser": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.1.7.tgz", + "integrity": "sha1-hnqksJP6oF8d4IwG9NeyH9+GmLw=", "dev": true }, - "pako": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.6.tgz", - "integrity": "sha512-lQe48YPsMJAig+yngZ87Lus+NF+3mtu7DVOBu6b/gHO1YpKwIj5AWjZ/TOS7i46HD/UixzWb1zeWDZfGZ3iYcg==", + "process-nextick-args": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz", + "integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=", "dev": true }, - "readable-stream": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", - "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", - "dev": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "2.0.0", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" - }, - "dependencies": { - "process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", - "dev": true - } - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", - "dev": true, - "requires": { - "safe-buffer": "5.1.1" - } - }, "timers-browserify": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz", @@ -1659,7 +1724,7 @@ "browserify-aes": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.1.1.tgz", - "integrity": "sha1-OLerVe24Bv8tzaGn8WIHc6R3xJ8=", + "integrity": "sha512-UGnTYAnB2a3YuYKIRy1/4FB2HdM866E0qC46JXvVTYKlBlZlnvfpSfY6OKfXZAkv70eJ2a1SqzpAo5CRhZGDFg==", "dev": true, "requires": { "buffer-xor": "1.0.3", @@ -1699,7 +1764,7 @@ "dev": true, "requires": { "bn.js": "4.11.8", - "randombytes": "2.0.5" + "randombytes": "2.0.6" } }, "browserify-sign": { @@ -1718,12 +1783,12 @@ } }, "browserify-zlib": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.1.4.tgz", - "integrity": "sha1-uzX4pRn2AOD6a4SFJByXnQFB+y0=", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", + "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", "dev": true, "requires": { - "pako": "0.2.9" + "pako": "1.0.6" } }, "browserslist": { @@ -1732,33 +1797,19 @@ "integrity": "sha512-yWu5cXT7Av6mVwzWc8lMsJMHWn4xyjSuGYi4IozbVTLUOEYPSagUB8kiMDUHA1fS3zjr8nkxkn9jdvug4BBRmA==", "dev": true, "requires": { - "caniuse-lite": "1.0.30000817", + "caniuse-lite": "1.0.30000819", "electron-to-chromium": "1.3.40" } }, - "bs-recipes": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/bs-recipes/-/bs-recipes-1.3.4.tgz", - "integrity": "sha1-DS1NSKcYyMBEdp/cT4lZLci2lYU=", - "dev": true - }, "buffer": { "version": "4.9.1", "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", "dev": true, "requires": { - "base64-js": "1.2.1", - "ieee754": "1.1.8", + "base64-js": "1.2.3", + "ieee754": "1.1.10", "isarray": "1.0.0" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - } } }, "buffer-crc32": { @@ -1773,6 +1824,12 @@ "integrity": "sha512-83apNb8KK0Se60UE1+4Ukbe3HbfELJ6UlI4ldtOGs7So4KD26orJM8hIY9lxdzP+UpItH1Yh/Y8GUvNFWFFRxA==", "dev": true }, + "buffer-indexof": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-indexof/-/buffer-indexof-1.1.1.tgz", + "integrity": "sha512-4/rOEg86jivtPTeOUUT61jJO1Ya1TrR/OkqCSZDyq84WJh3LuuiphBYJN+fm5xufIk4XAFcEwte/8WzC8If/1g==", + "dev": true + }, "buffer-more-ints": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/buffer-more-ints/-/buffer-more-ints-0.0.2.tgz", @@ -1813,29 +1870,69 @@ "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=", "dev": true }, - "bump-regex": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/bump-regex/-/bump-regex-3.1.0.tgz", - "integrity": "sha512-pgiPDUHh6bT/MDBU/nA1dU67337qD4MbrpQHmpDMiBChEsPEZwNelO25GenJrRYUXbWZuvsIZGLBChtN8Nxb+g==", + "bytes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", + "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=", + "dev": true + }, + "cacache": { + "version": "10.0.4", + "resolved": "https://registry.npmjs.org/cacache/-/cacache-10.0.4.tgz", + "integrity": "sha512-Dph0MzuH+rTQzGPNT9fAnrPmMmjKfST6trxJeK7NQuHRaVw24VzPRWTmg9MpcwOVQZO0E1FBICUlFeNaKPIfHA==", "dev": true, "requires": { - "semver": "5.5.0", - "xtend": "4.0.1" + "bluebird": "3.5.1", + "chownr": "1.0.1", + "glob": "7.1.2", + "graceful-fs": "4.1.11", + "lru-cache": "4.1.2", + "mississippi": "2.0.0", + "mkdirp": "0.5.1", + "move-concurrently": "1.0.1", + "promise-inflight": "1.0.1", + "rimraf": "2.6.2", + "ssri": "5.3.0", + "unique-filename": "1.1.0", + "y18n": "4.0.0" + } + }, + "cache-base": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", + "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", + "dev": true, + "requires": { + "collection-visit": "1.0.0", + "component-emitter": "1.2.1", + "get-value": "2.0.6", + "has-value": "1.0.0", + "isobject": "3.0.1", + "set-value": "2.0.0", + "to-object-path": "0.3.0", + "union-value": "1.0.0", + "unset-value": "1.0.0" }, "dependencies": { - "semver": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", - "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", "dev": true } } }, - "bytes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", - "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=", - "dev": true + "cache-loader": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/cache-loader/-/cache-loader-1.2.2.tgz", + "integrity": "sha512-rsGh4SIYyB9glU+d0OcHwiXHXBoUgDhHZaQ1KAbiXqfz1CDPxtTboh1gPbJ0q2qdO8a9lfcjgC5CJ2Ms32y5bw==", + "dev": true, + "requires": { + "loader-utils": "1.1.0", + "mkdirp": "0.5.1", + "neo-async": "2.5.0", + "schema-utils": "0.4.5" + } }, "cached-path-relative": { "version": "1.0.1", @@ -1843,12 +1940,37 @@ "integrity": "sha1-0JxLUoAKpMB44t2BqGmqyQ0uVOc=", "dev": true }, + "caller-path": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-0.1.0.tgz", + "integrity": "sha1-lAhe9jWB7NPaqSREqP6U6CV3dR8=", + "dev": true, + "requires": { + "callsites": "0.2.0" + } + }, "callsite": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz", "integrity": "sha1-KAOY5dZkvXQDi28JBRU+borxvCA=", "dev": true }, + "callsites": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-0.2.0.tgz", + "integrity": "sha1-r6uWJikQp/M8GaV3WCXGnzTjUMo=", + "dev": true + }, + "camel-case": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-3.0.0.tgz", + "integrity": "sha1-yjw2iKTpzzpM2nd9xNy8cTJJz3M=", + "dev": true, + "requires": { + "no-case": "2.3.2", + "upper-case": "1.1.3" + } + }, "camelcase": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", @@ -1866,15 +1988,9 @@ } }, "caniuse-lite": { - "version": "1.0.30000817", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000817.tgz", - "integrity": "sha512-O68CSiZY4NuxdGT0gQO+2vtU07/FOrCUpGPYincrOjybQIdsSyWC9CWx+hhm+SnCTAwpG/AywH4cU5RAkqbFXA==", - "dev": true - }, - "canonical-path": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/canonical-path/-/canonical-path-0.0.2.tgz", - "integrity": "sha1-4x65N6jJPuKgHfGDl5RyGQKHRXQ=", + "version": "1.0.30000819", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000819.tgz", + "integrity": "sha512-9i1d8eiKA6dLvsMrVrXOTP9/1sd9iIv4iC/UbPbIa9iQd9Gcnozi2sQ0d69TiQY9l7Alt7YIWISOBwyGSM6H0Q==", "dev": true }, "capture-stack-trace": { @@ -1900,24 +2016,14 @@ } }, "chalk": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-0.5.1.tgz", - "integrity": "sha1-Zjs6ZItotV0EaQ1JFnqoN4WPIXQ=", + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.2.2.tgz", + "integrity": "sha512-LvixLAQ4MYhbf7hgL4o5PeK32gJKvVzDRiSNIApDofQvyhl8adgG2lJVXn4+ekQoK7HL9RF8lqxwerpe0x2pCw==", "dev": true, "requires": { - "ansi-styles": "1.1.0", + "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "has-ansi": "0.1.0", - "strip-ansi": "0.3.0", - "supports-color": "0.2.0" - }, - "dependencies": { - "supports-color": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-0.2.0.tgz", - "integrity": "sha1-2S3iaU6z9nMjlz1649i1W0wiGQo=", - "dev": true - } + "supports-color": "4.5.0" } }, "chokidar": { @@ -1928,7 +2034,7 @@ "requires": { "anymatch": "1.3.2", "async-each": "1.0.1", - "fsevents": "1.1.2", + "fsevents": "1.1.3", "glob-parent": "2.0.0", "inherits": "2.0.3", "is-binary-path": "1.0.1", @@ -1937,22 +2043,126 @@ "readdirp": "2.1.0" } }, + "chownr": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.0.1.tgz", + "integrity": "sha1-4qdQQqlVGQi+vSW4Uj1fl2nXkYE=", + "dev": true + }, + "ci-info": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-1.1.3.tgz", + "integrity": "sha512-SK/846h/Rcy8q9Z9CAwGBLfCJ6EkjJWdpelWDufQpqVDYq2Wnnv8zlSO6AMQap02jvhVruKKpEtQOufo3pFhLg==", + "dev": true + }, "cipher-base": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", - "integrity": "sha1-h2Dk7MJy9MNjUy+SbYdKriwTl94=", + "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", "dev": true, "requires": { "inherits": "2.0.3", "safe-buffer": "5.1.1" } }, + "circular-dependency-plugin": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/circular-dependency-plugin/-/circular-dependency-plugin-4.4.0.tgz", + "integrity": "sha512-yEFtUNUYT4jBykEX5ZOHw+5goA3glGZr9wAXIQqoyakjz5H5TeUmScnWRc52douAhb9eYzK3s7V6bXfNnjFdzg==", + "dev": true + }, "circular-json": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/circular-json/-/circular-json-0.5.1.tgz", "integrity": "sha512-UjgcRlTAhAkLeXmDe2wK7ktwy/tgAqxiSndTIPiFZuIPLZmzHzWMwUIe9h9m/OokypG7snxCDEuwJshGBdPvaw==", "dev": true }, + "class-utils": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", + "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "dev": true, + "requires": { + "arr-union": "3.1.0", + "define-property": "0.2.5", + "isobject": "3.0.1", + "static-extend": "0.1.2" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "0.1.6" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + } + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + }, + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, "clean-css": { "version": "4.1.11", "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.1.11.tgz", @@ -1968,6 +2178,31 @@ "integrity": "sha1-T6kXw+WclKAEzWH47lCdplFocUM=", "dev": true }, + "cli-cursor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-1.0.2.tgz", + "integrity": "sha1-ZNo/fValRBLll5S9Ytw1KV6PKYc=", + "dev": true, + "requires": { + "restore-cursor": "1.0.1" + } + }, + "cli-spinners": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-0.1.2.tgz", + "integrity": "sha1-u3ZNiOGF+54eaiofGXcjGPYF4xw=", + "dev": true + }, + "cli-truncate": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-0.2.1.tgz", + "integrity": "sha1-nxXPuwcFAFNpIWxiasfQWrkN1XQ=", + "dev": true, + "requires": { + "slice-ansi": "0.0.4", + "string-width": "1.0.2" + } + }, "cliui": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", @@ -1977,89 +2212,40 @@ "string-width": "1.0.2", "strip-ansi": "3.0.1", "wrap-ansi": "2.1.0" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "2.1.1" - } - } } }, "clone": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.2.tgz", - "integrity": "sha1-Jgt6meux7f4kdTgXX3gyQ8sZ0Uk=", - "dev": true - }, - "clone-buffer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/clone-buffer/-/clone-buffer-1.0.0.tgz", - "integrity": "sha1-4+JbIHrE5wGvch4staFnksrD3Fg=", - "dev": true - }, - "clone-stats": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-0.0.1.tgz", - "integrity": "sha1-uI+UqCzzi4eR1YBG6kAprYjKmdE=", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=", "dev": true }, - "cloneable-readable": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/cloneable-readable/-/cloneable-readable-1.1.2.tgz", - "integrity": "sha512-Bq6+4t+lbM8vhTs/Bef5c5AdEMtapp/iFb6+s4/Hh9MVTt8OLKH7ZOOZSCT+Ys7hsHvqv0GuMPJ1lnQJVHvxpg==", + "clone-deep": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-2.0.2.tgz", + "integrity": "sha512-SZegPTKjCgpQH63E+eN6mVEEPdQBOUzjyJm5Pora4lrwWRFS8I0QAxV/KD6vV/i0WuijHZWQC1fMsPEdxfdVCQ==", "dev": true, "requires": { - "inherits": "2.0.3", - "process-nextick-args": "2.0.0", - "readable-stream": "2.3.5" + "for-own": "1.0.0", + "is-plain-object": "2.0.4", + "kind-of": "6.0.2", + "shallow-clone": "1.0.0" }, "dependencies": { - "isarray": { + "for-own": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", - "dev": true - }, - "readable-stream": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", - "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", + "resolved": "https://registry.npmjs.org/for-own/-/for-own-1.0.0.tgz", + "integrity": "sha1-xjMy9BXO3EsE2/5wz4NklMU8tEs=", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "2.0.0", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" + "for-in": "1.0.2" } }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", - "dev": true, - "requires": { - "safe-buffer": "5.1.1" - } + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true } } }, @@ -2075,6 +2261,16 @@ "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", "dev": true }, + "collection-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", + "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", + "dev": true, + "requires": { + "map-visit": "1.0.0", + "object-visit": "1.0.1" + } + }, "color-convert": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.1.tgz", @@ -2091,9 +2287,9 @@ "dev": true }, "colors": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.0.3.tgz", - "integrity": "sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs=", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", + "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=", "dev": true }, "combine-lists": { @@ -2115,21 +2311,29 @@ "inline-source-map": "0.6.2", "lodash.memoize": "3.0.4", "source-map": "0.5.7" + }, + "dependencies": { + "convert-source-map": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz", + "integrity": "sha1-SCnId+n+SbMWHzvzZziI4gRpmGA=", + "dev": true + } } }, "combined-stream": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz", - "integrity": "sha1-k4NwpXtKUd6ix3wV1cX9+JUWQAk=", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", + "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", "dev": true, "requires": { "delayed-stream": "1.0.0" } }, "commander": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.6.0.tgz", - "integrity": "sha1-nfflL7Kgyw+4kFjugMMQQiXzfh0=", + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", + "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", "dev": true }, "commenting": { @@ -2138,6 +2342,37 @@ "integrity": "sha512-U7qGbcDLSNpOcV3RQRKHp7hFpy9WUmfawbkPdS4R2RhrSu4dOF85QQpx/Zjcv7uLF6tWSUKEKUIkxknPCrVjwg==", "dev": true }, + "common-tags": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.7.2.tgz", + "integrity": "sha512-joj9ZlUOjCrwdbmiLqafeUSgkUM74NqhLsZtSqDmhKudaIY197zTrb8JMl31fMnCUuxwFT23eC/oWvrZzDLRJQ==", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", + "dev": true + }, + "compare-func": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-1.3.2.tgz", + "integrity": "sha1-md0LpFfh+bxyKxLAjsM+6rMfpkg=", + "dev": true, + "requires": { + "array-ify": "1.0.0", + "dot-prop": "3.0.0" + } + }, + "compare-versions": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-3.1.0.tgz", + "integrity": "sha512-4hAxDSBypT/yp2ySFD346So6Ragw5xmBn/e/agIGl3bZr6DLUqnoRZPusxKrXdYRZpgexO9daejmIenlq/wrIQ==", + "dev": true + }, "component-bind": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/component-bind/-/component-bind-1.0.0.tgz", @@ -2145,9 +2380,9 @@ "dev": true }, "component-emitter": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.1.2.tgz", - "integrity": "sha1-KWWU8nU9qmOZbSrwjRWpURbJrsM=", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", + "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", "dev": true }, "component-inherit": { @@ -2156,6 +2391,30 @@ "integrity": "sha1-ZF/ErfWLcrZJ1crmUTVhnbJv8UM=", "dev": true }, + "compressible": { + "version": "2.0.13", + "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.13.tgz", + "integrity": "sha1-DRAgq5JLL9tNYnmHXH1tq6a6p6k=", + "dev": true, + "requires": { + "mime-db": "1.33.0" + } + }, + "compression": { + "version": "1.7.2", + "resolved": "http://registry.npmjs.org/compression/-/compression-1.7.2.tgz", + "integrity": "sha1-qv+81qr4VLROuygDU9WtFlH1mmk=", + "dev": true, + "requires": { + "accepts": "1.3.5", + "bytes": "3.0.0", + "compressible": "2.0.13", + "debug": "2.6.9", + "on-headers": "1.0.1", + "safe-buffer": "5.1.1", + "vary": "1.1.2" + } + }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -2163,62 +2422,15 @@ "dev": true }, "concat-stream": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.0.tgz", - "integrity": "sha1-CqxmL9Ur54lk1VMvaUeE5wEQrPc=", + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", "dev": true, "requires": { + "buffer-from": "1.0.0", "inherits": "2.0.3", - "readable-stream": "2.3.3", + "readable-stream": "2.3.5", "typedarray": "0.0.6" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha1-No8lEtefnUb9/HE0mueHi7weuVw=", - "dev": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha1-D8Z9fBQYJd6UKC3VNr7GubzoYKs=", - "dev": true, - "requires": { - "safe-buffer": "5.1.1" - } - } - } - }, - "concurrently": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-3.5.1.tgz", - "integrity": "sha512-689HrwGw8Rbk1xtV9C4dY6TPJAvIYZbRbnKSAtfJ7tHqICFGoZ0PCWYjxfmerRyxBG0o3sbG3pe7N8vqPwIHuQ==", - "dev": true, - "requires": { - "chalk": "0.5.1", - "commander": "2.6.0", - "date-fns": "1.29.0", - "lodash": "4.17.5", - "rx": "2.3.24", - "spawn-command": "0.0.2-1", - "supports-color": "3.2.3", - "tree-kill": "1.2.0" } }, "configstore": { @@ -2235,11 +2447,14 @@ "xdg-basedir": "3.0.0" }, "dependencies": { - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true + "dot-prop": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.2.0.tgz", + "integrity": "sha512-tUMXrxlExSW6U2EXiiKGSBVdYgtV8qlHL+C10TsW4PURY/ic+eaysnSkwB4kA/mBlCyy/IKDJ+Lc3wbWeaXtuQ==", + "dev": true, + "requires": { + "is-obj": "1.0.1" + } } } }, @@ -2253,23 +2468,37 @@ "finalhandler": "1.1.0", "parseurl": "1.3.2", "utils-merge": "1.0.1" + }, + "dependencies": { + "finalhandler": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.0.tgz", + "integrity": "sha1-zgtoVbRYU+eRsvzGgARtiCU91/U=", + "dev": true, + "requires": { + "debug": "2.6.9", + "encodeurl": "1.0.2", + "escape-html": "1.0.3", + "on-finished": "2.3.0", + "parseurl": "1.3.2", + "statuses": "1.3.1", + "unpipe": "1.0.0" + } + }, + "statuses": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz", + "integrity": "sha1-+vUbnrdKrvOzrPStX2Gr8ky3uT4=", + "dev": true + } } }, "connect-history-api-fallback": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.4.0.tgz", - "integrity": "sha1-PbJPlz9LkjsOgvYZzg3wJBHKYj0=", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.5.0.tgz", + "integrity": "sha1-sGhzk0vF40T+9hGhlqb6rgruAVo=", "dev": true }, - "connect-logger": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/connect-logger/-/connect-logger-0.0.1.tgz", - "integrity": "sha1-TZmZeKHSC7RgjnzUNNdBZSJVF0s=", - "dev": true, - "requires": { - "moment": "2.19.1" - } - }, "console-browserify": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz", @@ -2291,16 +2520,178 @@ "integrity": "sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=", "dev": true }, + "content-disposition": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz", + "integrity": "sha1-DPaLud318r55YcOoUXjLhdunjLQ=", + "dev": true + }, "content-type": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", "dev": true }, + "content-type-parser": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/content-type-parser/-/content-type-parser-1.0.2.tgz", + "integrity": "sha512-lM4l4CnMEwOLHAHr/P6MEZwZFPJFtAAKgL6pogbXmVZggIqXhdB6RbBtPOTsw2FcXwYhehRGERJmRrjOiIB8pQ==", + "dev": true + }, + "conventional-changelog-angular": { + "version": "1.6.6", + "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-1.6.6.tgz", + "integrity": "sha512-suQnFSqCxRwyBxY68pYTsFkG0taIdinHLNEAX5ivtw8bCRnIgnpvcHmlR/yjUyZIrNPYAoXlY1WiEKWgSE4BNg==", + "dev": true, + "requires": { + "compare-func": "1.3.2", + "q": "1.5.1" + } + }, + "conventional-commits-parser": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-2.1.5.tgz", + "integrity": "sha512-jaAP61py+ISMF3/n3yIiIuY5h6mJlucOqawu5mLB1HaQADLvg/y5UB3pT7HSucZJan34lp7+7ylQPfbKEGmxrA==", + "dev": true, + "requires": { + "JSONStream": "1.3.2", + "is-text-path": "1.0.1", + "lodash": "4.17.5", + "meow": "4.0.0", + "split2": "2.2.0", + "through2": "2.0.3", + "trim-off-newlines": "1.0.1" + }, + "dependencies": { + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "dev": true + }, + "camelcase-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz", + "integrity": "sha1-oqpfsa9oh1glnDLBQUJteJI7m3c=", + "dev": true, + "requires": { + "camelcase": "4.1.0", + "map-obj": "2.0.0", + "quick-lru": "1.1.0" + } + }, + "indent-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", + "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", + "dev": true + }, + "load-json-file": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "parse-json": "4.0.0", + "pify": "3.0.0", + "strip-bom": "3.0.0" + } + }, + "map-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz", + "integrity": "sha1-plzSkIepJZi4eRJXpSPgISIqwfk=", + "dev": true + }, + "meow": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-4.0.0.tgz", + "integrity": "sha512-Me/kel335m6vMKmEmA6c87Z6DUFW3JqkINRnxkbC+A/PUm0D5Fl2dEBQrPKnqCL9Te/CIa1MUt/0InMJhuC/sw==", + "dev": true, + "requires": { + "camelcase-keys": "4.2.0", + "decamelize-keys": "1.1.0", + "loud-rejection": "1.6.0", + "minimist": "1.2.0", + "minimist-options": "3.0.2", + "normalize-package-data": "2.4.0", + "read-pkg-up": "3.0.0", + "redent": "2.0.0", + "trim-newlines": "2.0.0" + } + }, + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + }, + "parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "dev": true, + "requires": { + "error-ex": "1.3.1", + "json-parse-better-errors": "1.0.1" + } + }, + "read-pkg": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "dev": true, + "requires": { + "load-json-file": "4.0.0", + "normalize-package-data": "2.4.0", + "path-type": "3.0.0" + } + }, + "read-pkg-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", + "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", + "dev": true, + "requires": { + "find-up": "2.1.0", + "read-pkg": "3.0.0" + } + }, + "redent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", + "integrity": "sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=", + "dev": true, + "requires": { + "indent-string": "3.2.0", + "strip-indent": "2.0.0" + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "dev": true + }, + "strip-indent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", + "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=", + "dev": true + }, + "trim-newlines": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", + "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", + "dev": true + } + } + }, "convert-source-map": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz", - "integrity": "sha1-SCnId+n+SbMWHzvzZziI4gRpmGA=", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.1.tgz", + "integrity": "sha1-uCeAl7m8IpNl3lxiz1/K7YtVmeU=", "dev": true }, "cookie": { @@ -2309,23 +2700,108 @@ "integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s=", "dev": true }, + "cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=", + "dev": true + }, + "copy-concurrently": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/copy-concurrently/-/copy-concurrently-1.0.5.tgz", + "integrity": "sha512-f2domd9fsVDFtaFcbaRZuYXwtdmnzqbADSwhSWYxYB/Q8zsdUUFMXVRwXGDMWmbEzAn1kdRrtI1T/KTFOL4X2A==", + "dev": true, + "requires": { + "aproba": "1.2.0", + "fs-write-stream-atomic": "1.0.10", + "iferr": "0.1.5", + "mkdirp": "0.5.1", + "rimraf": "2.6.2", + "run-queue": "1.0.3" + } + }, + "copy-descriptor": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", + "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", + "dev": true + }, + "copy-webpack-plugin": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-4.4.3.tgz", + "integrity": "sha512-v4THQ24Tks2NkyOvZuFDgZVfDD9YaA9rwYLZTrWg2GHIA8lrH5DboEyeoorh5Skki+PUbgSmnsCwhMWqYrQZrA==", + "dev": true, + "requires": { + "cacache": "10.0.4", + "find-cache-dir": "1.0.0", + "globby": "7.1.1", + "is-glob": "4.0.0", + "loader-utils": "1.1.0", + "minimatch": "3.0.4", + "p-limit": "1.2.0", + "serialize-javascript": "1.4.0" + }, + "dependencies": { + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true + }, + "is-glob": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.0.tgz", + "integrity": "sha1-lSHHaEXMJhCoUgPd8ICpWML/q8A=", + "dev": true, + "requires": { + "is-extglob": "2.1.1" + } + } + } + }, "core-js": { "version": "2.5.3", "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.3.tgz", "integrity": "sha1-isw4NFgk8W2DZbfJtCWRaOjtYD4=", "dev": true }, + "core-object": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/core-object/-/core-object-3.1.5.tgz", + "integrity": "sha512-sA2/4+/PZ/KV6CKgjrVrrUVBKCkdDO02CUlQ0YKTQoYUwPYNOtOAcWlbYhd5v/1JqYaA6oZ4sDlOU4ppVw6Wbg==", + "dev": true, + "requires": { + "chalk": "2.2.2" + } + }, "core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "dev": true }, - "corser": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/corser/-/corser-2.0.1.tgz", - "integrity": "sha1-jtolLsqrWEDc2XXOuQ2TcMgZ/4c=", - "dev": true + "cosmiconfig": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-2.2.2.tgz", + "integrity": "sha512-GiNXLwAFPYHy25XmTPpafYvn3CLAkJ8FLsscq78MQd1Kh0OU6Yzhn4eV2MVF4G9WEQZoWEGltatdR+ntGPMl5A==", + "dev": true, + "requires": { + "is-directory": "0.3.1", + "js-yaml": "3.11.0", + "minimist": "1.2.0", + "object-assign": "4.1.1", + "os-homedir": "1.0.2", + "parse-json": "2.2.0", + "require-from-string": "1.2.1" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + } + } }, "cpx": { "version": "1.5.0", @@ -2340,7 +2816,7 @@ "glob2base": "0.0.12", "minimatch": "3.0.4", "mkdirp": "0.5.1", - "resolve": "1.4.0", + "resolve": "1.6.0", "safe-buffer": "5.1.1", "shell-quote": "1.6.1", "subarg": "1.0.0" @@ -2374,7 +2850,7 @@ "cipher-base": "1.0.4", "inherits": "2.0.3", "ripemd160": "2.0.1", - "sha.js": "2.4.9" + "sha.js": "2.4.11" } }, "create-hmac": { @@ -2388,30 +2864,17 @@ "inherits": "2.0.3", "ripemd160": "2.0.1", "safe-buffer": "5.1.1", - "sha.js": "2.4.9" + "sha.js": "2.4.11" } }, "cross-spawn": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", - "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-3.0.1.tgz", + "integrity": "sha1-ElYDfsufDF9549bvE14wdwGEuYI=", "dev": true, "requires": { "lru-cache": "4.1.2", - "shebang-command": "1.2.0", "which": "1.3.0" - }, - "dependencies": { - "lru-cache": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.2.tgz", - "integrity": "sha512-wgeVXhrDwAWnIF/yZARsFnMBtdFXOg1b8RIrhilp+0iDYN4mdQcNZElDZ0e4B64BhaxeQ5zN7PMyvu7we1kPeQ==", - "dev": true, - "requires": { - "pseudomap": "1.0.2", - "yallist": "2.1.2" - } - } } }, "cryptiles": { @@ -2424,9 +2887,9 @@ } }, "crypto-browserify": { - "version": "3.11.1", - "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.11.1.tgz", - "integrity": "sha1-lIlF78Z1ekANbl5a9HGU0QBkJ58=", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", + "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", "dev": true, "requires": { "browserify-cipher": "1.0.0", @@ -2438,7 +2901,8 @@ "inherits": "2.0.3", "pbkdf2": "3.0.14", "public-encrypt": "4.0.0", - "randombytes": "2.0.5" + "randombytes": "2.0.6", + "randomfill": "1.0.4" } }, "crypto-random-string": { @@ -2453,6 +2917,39 @@ "integrity": "sha1-Mh9s9zeCpv91ERE5D8BeLGV9jJs=", "dev": true }, + "css-select": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-1.2.0.tgz", + "integrity": "sha1-KzoRBTnFNV8c2NMUYj6HCxIeyFg=", + "dev": true, + "requires": { + "boolbase": "1.0.0", + "css-what": "2.1.0", + "domutils": "1.5.1", + "nth-check": "1.0.1" + } + }, + "css-what": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-2.1.0.tgz", + "integrity": "sha1-lGfQMsOM+u+58teVASUwYvh/ob0=", + "dev": true + }, + "cssom": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.2.tgz", + "integrity": "sha1-uANhcMefB6kP8vFuIihAJ6JDhIs=", + "dev": true + }, + "cssstyle": { + "version": "0.2.37", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-0.2.37.tgz", + "integrity": "sha1-VBCXI0yyUTyDzu06zdwn/yeYfVQ=", + "dev": true, + "requires": { + "cssom": "0.3.2" + } + }, "cuint": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/cuint/-/cuint-0.2.2.tgz", @@ -2474,6 +2971,30 @@ "integrity": "sha1-XQKkaFCt8bSjF5RqOSj8y1v9BCU=", "dev": true }, + "cyclist": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-0.2.2.tgz", + "integrity": "sha1-GzN5LhHpFKL9bW7WRHRkRE5fpkA=", + "dev": true + }, + "d": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz", + "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", + "dev": true, + "requires": { + "es5-ext": "0.10.41" + } + }, + "dargs": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/dargs/-/dargs-4.1.0.tgz", + "integrity": "sha1-A6nbtLXC8Tm/FK5T8LiipqhvThc=", + "dev": true, + "requires": { + "number-is-nan": "1.0.1" + } + }, "dashdash": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", @@ -2516,34 +3037,47 @@ "integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=", "dev": true }, - "date-time": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/date-time/-/date-time-2.1.0.tgz", - "integrity": "sha512-/9+C44X7lot0IeiyfgJmETtRMhBidBYM2QFFIkGa0U1k+hSyY87Nw7PY3eDqpvCBm7I3WCSfPeZskW/YYq6m4g==", + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dev": true, "requires": { - "time-zone": "1.0.0" + "ms": "2.0.0" } }, - "dateformat": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-2.2.0.tgz", - "integrity": "sha1-QGXiATz5+5Ft39gu+1Bq1MZ2kGI=", + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", "dev": true }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8=", + "decamelize-keys": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz", + "integrity": "sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=", "dev": true, "requires": { - "ms": "2.0.0" + "decamelize": "1.2.0", + "map-obj": "1.0.1" } }, - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "decode-uri-component": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", + "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", + "dev": true + }, + "dedent": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", + "integrity": "sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw=", + "dev": true + }, + "deep-equal": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.0.1.tgz", + "integrity": "sha1-9dJgKStmDghO/0zbyfCK0yR0SLU=", "dev": true }, "deep-extend": { @@ -2556,16 +3090,43 @@ "version": "0.1.3", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", + "dev": true + }, + "default-require-extensions": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-1.0.0.tgz", + "integrity": "sha1-836hXT4T/9m0N9M+GnW1+5eHTLg=", "dev": true, - "optional": true + "requires": { + "strip-bom": "2.0.0" + } }, - "defaults": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz", - "integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=", + "define-properties": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.2.tgz", + "integrity": "sha1-g6c/L+pWmJj7c3GTyPhzyvbUXJQ=", + "dev": true, + "requires": { + "foreach": "2.0.5", + "object-keys": "1.0.11" + } + }, + "define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", "dev": true, "requires": { - "clone": "1.0.2" + "is-descriptor": "1.0.2", + "isobject": "3.0.1" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + } } }, "defined": { @@ -2584,6 +3145,15 @@ "ast-types": "0.11.3", "escodegen": "1.9.1", "esprima": "3.1.3" + }, + "dependencies": { + "esprima": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz", + "integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=", + "dev": true, + "optional": true + } } }, "del": { @@ -2600,11 +3170,26 @@ "rimraf": "2.6.2" }, "dependencies": { - "pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", - "dev": true + "globby": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", + "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", + "dev": true, + "requires": { + "array-union": "1.0.2", + "glob": "7.1.2", + "object-assign": "4.1.1", + "pify": "2.3.0", + "pinkie-promise": "2.0.1" + }, + "dependencies": { + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + } + } } } }, @@ -2620,16 +3205,16 @@ "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", "dev": true }, - "depd": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", - "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=", + "denodeify": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/denodeify/-/denodeify-1.2.1.tgz", + "integrity": "sha1-OjYof1A05pnnV3kBBSwubJQlFjE=", "dev": true }, - "deprecated": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/deprecated/-/deprecated-0.0.1.tgz", - "integrity": "sha1-+cmvVGSvoeepcUWKi97yqpTVuxk=", + "depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", "dev": true }, "deps-sort": { @@ -2660,15 +3245,21 @@ "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=", "dev": true }, - "detect-file": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/detect-file/-/detect-file-0.1.0.tgz", - "integrity": "sha1-STXe39lIhkjgBrASlWbpOGcR6mM=", + "detect-indent": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz", + "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", "dev": true, "requires": { - "fs-exists-sync": "0.1.0" + "repeating": "2.0.1" } }, + "detect-node": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.0.3.tgz", + "integrity": "sha1-ogM8CcyOFY03dI+951B4Mr1s4Sc=", + "dev": true + }, "detective": { "version": "4.7.1", "resolved": "https://registry.npmjs.org/detective/-/detective-4.7.1.tgz", @@ -2677,22 +3268,8 @@ "requires": { "acorn": "5.5.3", "defined": "1.0.0" - }, - "dependencies": { - "acorn": { - "version": "5.5.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.5.3.tgz", - "integrity": "sha512-jd5MkIUlbbmb07nXH0DT3y7rDVtkzDi4XZOUVWAer8ajmF/DTSSbl5oNFyDOl/OXA33Bl79+ypHhl2pN20VeOQ==", - "dev": true - } } }, - "dev-ip": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dev-ip/-/dev-ip-1.0.1.tgz", - "integrity": "sha1-p2o+0YVb56ASu4rBbLgPPADcKPA=", - "dev": true - }, "di": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/di/-/di-0.0.1.tgz", @@ -2713,7 +3290,59 @@ "requires": { "bn.js": "4.11.8", "miller-rabin": "4.0.1", - "randombytes": "2.0.5" + "randombytes": "2.0.6" + } + }, + "dir-glob": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-2.0.0.tgz", + "integrity": "sha512-37qirFDz8cA5fimp9feo43fSuRo2gHwaIn6dXL8Ber1dGwUosDrGZeCCXq57WnIqE4aQ+u3eQZzsk1yOzhdwag==", + "dev": true, + "requires": { + "arrify": "1.0.1", + "path-type": "3.0.0" + } + }, + "dns-equal": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", + "integrity": "sha1-s55/HabrCnW6nBcySzR1PEfgZU0=", + "dev": true + }, + "dns-packet": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-1.3.1.tgz", + "integrity": "sha512-0UxfQkMhYAUaZI+xrNZOz/as5KgDU0M/fQ9b6SpkyLbk3GEswDi6PADJVaYJradtRVsRIlF1zLyOodbcTCDzUg==", + "dev": true, + "requires": { + "ip": "1.1.5", + "safe-buffer": "5.1.1" + } + }, + "dns-txt": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/dns-txt/-/dns-txt-2.0.2.tgz", + "integrity": "sha1-uR2Ab10nGI5Ks+fRB9iBocxGQrY=", + "dev": true, + "requires": { + "buffer-indexof": "1.1.1" + } + }, + "dom-converter": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.1.4.tgz", + "integrity": "sha1-pF71cnuJDJv/5tfIduexnLDhfzs=", + "dev": true, + "requires": { + "utila": "0.3.3" + }, + "dependencies": { + "utila": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/utila/-/utila-0.3.3.tgz", + "integrity": "sha1-1+jn1+MJEHCSsF+NloiCTWM6QiY=", + "dev": true + } } }, "dom-serialize": { @@ -2728,22 +3357,68 @@ "void-elements": "2.0.1" } }, + "dom-serializer": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.0.tgz", + "integrity": "sha1-BzxpdUbOB4DOI75KKOKT5AvDDII=", + "dev": true, + "requires": { + "domelementtype": "1.1.3", + "entities": "1.1.1" + }, + "dependencies": { + "domelementtype": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.1.3.tgz", + "integrity": "sha1-vSh3PiZCiBrsUVRJJCmcXNgiGFs=", + "dev": true + } + } + }, "domain-browser": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.1.7.tgz", - "integrity": "sha1-hnqksJP6oF8d4IwG9NeyH9+GmLw=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", + "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", "dev": true }, - "domino": { - "version": "1.0.30", - "resolved": "https://registry.npmjs.org/domino/-/domino-1.0.30.tgz", - "integrity": "sha512-ikq8WiDSkICdkElud317F2Sigc6A3EDpWsxWBwIZqOl95km4p/Vc9Rj98id7qKgsjDmExj0AVM7JOd4bb647Xg==", + "domelementtype": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.0.tgz", + "integrity": "sha1-sXrtguirWeUt2cGbF1bg/BhyBMI=", "dev": true }, + "domexception": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-1.0.1.tgz", + "integrity": "sha512-raigMkn7CJNNo6Ihro1fzG7wr3fHuYVytzquZKX5n0yizGsTcYgzdIUwj1X9pK0VvjeihV+XiclP+DjwbsSKug==", + "dev": true, + "requires": { + "webidl-conversions": "4.0.2" + } + }, + "domhandler": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.1.0.tgz", + "integrity": "sha1-0mRvXlf2w7qxHPbLBdPArPdBJZQ=", + "dev": true, + "requires": { + "domelementtype": "1.3.0" + } + }, + "domutils": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.5.1.tgz", + "integrity": "sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8=", + "dev": true, + "requires": { + "dom-serializer": "0.1.0", + "domelementtype": "1.3.0" + } + }, "dot-prop": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.2.0.tgz", - "integrity": "sha512-tUMXrxlExSW6U2EXiiKGSBVdYgtV8qlHL+C10TsW4PURY/ic+eaysnSkwB4kA/mBlCyy/IKDJ+Lc3wbWeaXtuQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-3.0.0.tgz", + "integrity": "sha1-G3CK8JSknJoOfbyteQq6U52sEXc=", "dev": true, "requires": { "is-obj": "1.0.1" @@ -2763,12 +3438,12 @@ "dev": true }, "duplexer2": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz", - "integrity": "sha1-xhTc9n4vsUmVqRcR5aYX6KYKMds=", + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", "dev": true, "requires": { - "readable-stream": "1.1.14" + "readable-stream": "2.3.5" } }, "duplexer3": { @@ -2777,30 +3452,16 @@ "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=", "dev": true }, - "easy-extender": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/easy-extender/-/easy-extender-2.3.2.tgz", - "integrity": "sha1-PTJI/r4rFZYHMW2PnPSRwWZIIh0=", - "dev": true, - "requires": { - "lodash": "3.10.1" - }, - "dependencies": { - "lodash": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", - "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=", - "dev": true - } - } - }, - "eazy-logger": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/eazy-logger/-/eazy-logger-3.0.2.tgz", - "integrity": "sha1-oyWqXlPROiIliJsqxBE7K5Y29Pw=", + "duplexify": { + "version": "3.5.4", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.5.4.tgz", + "integrity": "sha512-JzYSLYMhoVVBe8+mbHQ4KgpvHpm0DZpJuL8PY93Vyv1fW7jYJ90LoXa1di/CVbJM+TgMs91rbDapE/RNIfnJsA==", "dev": true, "requires": { - "tfunk": "3.1.0" + "end-of-stream": "1.4.1", + "inherits": "2.0.3", + "readable-stream": "2.3.5", + "stream-shift": "1.0.0" } }, "ecc-jsbn": { @@ -2813,30 +3474,30 @@ "jsbn": "0.1.1" } }, - "ecstatic": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/ecstatic/-/ecstatic-3.2.0.tgz", - "integrity": "sha512-Goilx/2cfU9vvfQjgtNgc2VmJAD8CasQ6rZDqCd2u4Hsyd/qFET6nBf60jiHodevR3nl3IGzNKtrzPXWP88utQ==", - "dev": true, - "requires": { - "he": "1.1.1", - "mime": "1.6.0", - "minimist": "1.2.0", - "url-join": "2.0.5" - } - }, "ee-first": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", "dev": true }, + "ejs": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-2.5.7.tgz", + "integrity": "sha1-zIcsFoiArjxxiXYv1f/ACJbJUYo=", + "dev": true + }, "electron-to-chromium": { "version": "1.3.40", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.40.tgz", "integrity": "sha1-H71tl779crim+SHcONIkE9L2/d8=", "dev": true }, + "elegant-spinner": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/elegant-spinner/-/elegant-spinner-1.0.1.tgz", + "integrity": "sha1-2wQ1IcldfjA/2PNFvtwzSc+wcp4=", + "dev": true + }, "elliptic": { "version": "6.4.0", "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz", @@ -2852,10 +3513,10 @@ "minimalistic-crypto-utils": "1.0.1" } }, - "emitter-steward": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/emitter-steward/-/emitter-steward-1.0.0.tgz", - "integrity": "sha1-80Ea3pdYp1Zd+Eiy2gy70bRsvWQ=", + "ember-cli-string-utils": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/ember-cli-string-utils/-/ember-cli-string-utils-1.1.0.tgz", + "integrity": "sha1-ObZ3/CgF9VFzc1N2/O8njqpEUqE=", "dev": true }, "emojis-list": { @@ -2865,29 +3526,18 @@ "dev": true }, "encodeurl": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.1.tgz", - "integrity": "sha1-eePVhlU0aQn+bw9Fpd5oEDspTSA=", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", "dev": true }, "end-of-stream": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-0.1.5.tgz", - "integrity": "sha1-jhdyBsPICDfYVjLouTWd/osvbq8=", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", + "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", "dev": true, "requires": { - "once": "1.3.3" - }, - "dependencies": { - "once": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/once/-/once-1.3.3.tgz", - "integrity": "sha1-suJhVXzkwxTsgwTz+oJmPkKXyiA=", - "dev": true, - "requires": { - "wrappy": "1.0.2" - } - } + "once": "1.4.0" } }, "engine.io": { @@ -2905,16 +3555,6 @@ "ws": "3.3.3" }, "dependencies": { - "accepts": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz", - "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=", - "dev": true, - "requires": { - "mime-types": "2.1.18", - "negotiator": "0.6.1" - } - }, "debug": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", @@ -2923,21 +3563,6 @@ "requires": { "ms": "2.0.0" } - }, - "mime-db": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", - "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==", - "dev": true - }, - "mime-types": { - "version": "2.1.18", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", - "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", - "dev": true, - "requires": { - "mime-db": "1.33.0" - } } } }, @@ -2960,12 +3585,6 @@ "yeast": "0.1.2" }, "dependencies": { - "component-emitter": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", - "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", - "dev": true - }, "debug": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", @@ -2974,12 +3593,6 @@ "requires": { "ms": "2.0.0" } - }, - "xmlhttprequest-ssl": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.5.tgz", - "integrity": "sha1-wodrBhaKrcQOV9l+gRkayPQ5iz4=", - "dev": true } } }, @@ -2994,14 +3607,6 @@ "base64-arraybuffer": "0.1.5", "blob": "0.0.4", "has-binary2": "1.0.2" - }, - "dependencies": { - "arraybuffer.slice": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz", - "integrity": "sha512-wGUIVQXuehL5TCqQun8OW81jGzAWycqzFF8lFp+GOM5BXLYj3bKNsYC4daB7n6XjCqxQA/qgTJ+8ANR3acjrog==", - "dev": true - } } }, "enhanced-resolve": { @@ -3014,14 +3619,6 @@ "memory-fs": "0.4.1", "object-assign": "4.1.1", "tapable": "0.2.8" - }, - "dependencies": { - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true - } } }, "ent": { @@ -3030,13 +3627,19 @@ "integrity": "sha1-6WQhkyWiHQX0RGai9obtbOX13R0=", "dev": true }, + "entities": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.1.tgz", + "integrity": "sha1-blwtClYhtdra7O+AuQ7ftc13cvA=", + "dev": true + }, "errno": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.4.tgz", - "integrity": "sha1-uJbiOp5ei6M4cfyZar02NfyaHH0=", + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.7.tgz", + "integrity": "sha512-MfrRBDWzIWifgq6tJj60gkAwtLNb6sQPlcFrSOflcP1aFmmruKQ2wRnze/8V6kgyz7H3FF8Npzv78mZ7XLLflg==", "dev": true, "requires": { - "prr": "0.0.0" + "prr": "1.0.1" } }, "error-ex": { @@ -3048,38 +3651,138 @@ "is-arrayish": "0.2.1" } }, - "es6-promise": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.0.5.tgz", - "integrity": "sha1-eILzCt3lskDM+n99eMVIMwlRrkI=", - "dev": true + "es-abstract": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.11.0.tgz", + "integrity": "sha512-ZnQrE/lXTTQ39ulXZ+J1DTFazV9qBy61x2bY071B+qGco8Z8q1QddsLdt/EF8Ai9hcWH72dWS0kFqXLxOxqslA==", + "dev": true, + "requires": { + "es-to-primitive": "1.1.1", + "function-bind": "1.1.1", + "has": "1.0.1", + "is-callable": "1.1.3", + "is-regex": "1.0.4" + } }, - "escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=", - "dev": true + "es-to-primitive": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.1.1.tgz", + "integrity": "sha1-RTVSSKiJeQNLZ5Lhm7gfK3l13Q0=", + "dev": true, + "requires": { + "is-callable": "1.1.3", + "is-date-object": "1.0.1", + "is-symbol": "1.0.1" + } }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "es5-ext": { + "version": "0.10.41", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.41.tgz", + "integrity": "sha512-MYK02wXfwTMie5TEJWPolgOsXEmz7wKCQaGzgmRjZOoV6VLG8I5dSv2bn6AOClXhK64gnSQTQ9W9MKvx87J4gw==", + "dev": true, + "requires": { + "es6-iterator": "2.0.3", + "es6-symbol": "3.1.1", + "next-tick": "1.0.0" + } }, - "escodegen": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.9.1.tgz", - "integrity": "sha512-6hTjO1NAWkHnDk3OqQ4YrCuwwmGHL9S3nPlzBOUG/R44rda3wLNrfvQ5fkSGjyhHFKM7ALPKcKGrwvCLe0lC7Q==", + "es6-iterator": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", + "integrity": "sha1-p96IkUGgWpSwhUQDstCg+/qY87c=", "dev": true, - "optional": true, "requires": { - "esprima": "3.1.3", - "estraverse": "4.2.0", - "esutils": "2.0.2", - "optionator": "0.8.2", - "source-map": "0.6.1" - }, + "d": "1.0.0", + "es5-ext": "0.10.41", + "es6-symbol": "3.1.1" + } + }, + "es6-map": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/es6-map/-/es6-map-0.1.5.tgz", + "integrity": "sha1-kTbgUD3MBqMBaQ8LsU/042TpSfA=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.41", + "es6-iterator": "2.0.3", + "es6-set": "0.1.5", + "es6-symbol": "3.1.1", + "event-emitter": "0.3.5" + } + }, + "es6-promise": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-3.3.1.tgz", + "integrity": "sha1-oIzd6EzNvzTQJ6FFG8kdS80ophM=", + "dev": true + }, + "es6-set": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/es6-set/-/es6-set-0.1.5.tgz", + "integrity": "sha1-0rPsXU2ADO2BjbU40ol02wpzzLE=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.41", + "es6-iterator": "2.0.3", + "es6-symbol": "3.1.1", + "event-emitter": "0.3.5" + } + }, + "es6-symbol": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.1.tgz", + "integrity": "sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.41" + } + }, + "es6-weak-map": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.2.tgz", + "integrity": "sha1-XjqzIlH/0VOKH45f+hNXdy+S2W8=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.41", + "es6-iterator": "2.0.3", + "es6-symbol": "3.1.1" + } + }, + "escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=", + "dev": true + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "escodegen": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.9.1.tgz", + "integrity": "sha512-6hTjO1NAWkHnDk3OqQ4YrCuwwmGHL9S3nPlzBOUG/R44rda3wLNrfvQ5fkSGjyhHFKM7ALPKcKGrwvCLe0lC7Q==", + "dev": true, + "requires": { + "esprima": "3.1.3", + "estraverse": "4.2.0", + "esutils": "2.0.2", + "optionator": "0.8.2", + "source-map": "0.6.1" + }, "dependencies": { + "esprima": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz", + "integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=", + "dev": true + }, "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -3089,18 +3792,38 @@ } } }, + "escope": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/escope/-/escope-3.6.0.tgz", + "integrity": "sha1-4Bl16BJ4GhY6ba392AOY3GTIicM=", + "dev": true, + "requires": { + "es6-map": "0.1.5", + "es6-weak-map": "2.0.2", + "esrecurse": "4.2.1", + "estraverse": "4.2.0" + } + }, "esprima": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz", - "integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.0.tgz", + "integrity": "sha512-oftTcaMu/EGrEIu904mWteKIv8vMuOgGYo7EhVJJN00R/EED9DCua/xxHRdYnKtcECzVg7xOWhflvJMnqcFZjw==", "dev": true }, + "esrecurse": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.1.tgz", + "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", + "dev": true, + "requires": { + "estraverse": "4.2.0" + } + }, "estraverse": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz", "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=", - "dev": true, - "optional": true + "dev": true }, "estree-walker": { "version": "0.3.1", @@ -3120,6 +3843,16 @@ "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", "dev": true }, + "event-emitter": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", + "integrity": "sha1-34xp7vFkeSPHFXuc6DhAYQsCzDk=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.41" + } + }, "eventemitter3": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-1.2.0.tgz", @@ -3132,10 +3865,19 @@ "integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=", "dev": true }, + "eventsource": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-0.1.6.tgz", + "integrity": "sha1-Cs7ehJ7X3RzMMsgRuxG5RNTykjI=", + "dev": true, + "requires": { + "original": "1.0.0" + } + }, "evp_bytestokey": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", - "integrity": "sha1-f8vbGY3HGVlDLv4ThCaE4FJaywI=", + "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", "dev": true, "requires": { "md5.js": "1.3.4", @@ -3155,8 +3897,33 @@ "p-finally": "1.0.0", "signal-exit": "3.0.2", "strip-eof": "1.0.0" + }, + "dependencies": { + "cross-spawn": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", + "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", + "dev": true, + "requires": { + "lru-cache": "4.1.2", + "shebang-command": "1.2.0", + "which": "1.3.0" + } + } } }, + "exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", + "dev": true + }, + "exit-hook": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/exit-hook/-/exit-hook-1.1.1.tgz", + "integrity": "sha1-8FyiM7SMBdVP/wd2XfhQfpXAL/g=", + "dev": true + }, "expand-braces": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/expand-braces/-/expand-braces-0.1.2.tgz", @@ -3168,12 +3935,6 @@ "braces": "0.1.5" }, "dependencies": { - "array-slice": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-0.2.3.tgz", - "integrity": "sha1-3Tz7gO15c6dRF82sabC5nshhhvU=", - "dev": true - }, "braces": { "version": "0.1.5", "resolved": "https://registry.npmjs.org/braces/-/braces-0.1.5.tgz", @@ -3225,54 +3986,68 @@ "fill-range": "2.2.3" } }, - "expand-tilde": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-1.2.2.tgz", - "integrity": "sha1-C4HrqJflo9MdHD0QL48BRB5VlEk=", + "expect": { + "version": "22.4.3", + "resolved": "https://registry.npmjs.org/expect/-/expect-22.4.3.tgz", + "integrity": "sha512-XcNXEPehqn8b/jm8FYotdX0YrXn36qp4HWlrVT4ktwQas1l1LPxiVWncYnnL2eyMtKAmVIaG0XAp0QlrqJaxaA==", "dev": true, "requires": { - "os-homedir": "1.0.2" + "ansi-styles": "3.2.1", + "jest-diff": "22.4.3", + "jest-get-type": "22.4.3", + "jest-matcher-utils": "22.4.3", + "jest-message-util": "22.4.3", + "jest-regex-util": "22.4.3" } }, "express": { - "version": "2.5.11", - "resolved": "https://registry.npmjs.org/express/-/express-2.5.11.tgz", - "integrity": "sha1-TOjqHzY15p5J8Ou0l7aksKUc5vA=", + "version": "4.16.3", + "resolved": "https://registry.npmjs.org/express/-/express-4.16.3.tgz", + "integrity": "sha1-avilAjUNsyRuzEvs9rWjTSL37VM=", "dev": true, "requires": { - "connect": "1.9.2", - "mime": "1.2.4", - "mkdirp": "0.3.0", - "qs": "0.4.2" + "accepts": "1.3.5", + "array-flatten": "1.1.1", + "body-parser": "1.18.2", + "content-disposition": "0.5.2", + "content-type": "1.0.4", + "cookie": "0.3.1", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "1.1.2", + "encodeurl": "1.0.2", + "escape-html": "1.0.3", + "etag": "1.8.1", + "finalhandler": "1.1.1", + "fresh": "0.5.2", + "merge-descriptors": "1.0.1", + "methods": "1.1.2", + "on-finished": "2.3.0", + "parseurl": "1.3.2", + "path-to-regexp": "0.1.7", + "proxy-addr": "2.0.3", + "qs": "6.5.1", + "range-parser": "1.2.0", + "safe-buffer": "5.1.1", + "send": "0.16.2", + "serve-static": "1.13.2", + "setprototypeof": "1.1.0", + "statuses": "1.4.0", + "type-is": "1.6.16", + "utils-merge": "1.0.1", + "vary": "1.1.2" }, "dependencies": { - "connect": { - "version": "1.9.2", - "resolved": "https://registry.npmjs.org/connect/-/connect-1.9.2.tgz", - "integrity": "sha1-QogKIulDiuWait105Df1iujlKAc=", - "dev": true, - "requires": { - "formidable": "1.0.17", - "mime": "1.2.4", - "qs": "0.4.2" - } - }, - "mime": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.2.4.tgz", - "integrity": "sha1-EbX9rynCUJJVF2uArVIClPXekrc=", - "dev": true - }, - "mkdirp": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.0.tgz", - "integrity": "sha1-G79asbqCevI1dRQ0kEJkVfSB/h4=", + "array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=", "dev": true }, "qs": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-0.4.2.tgz", - "integrity": "sha1-PKxMhh43GoycR3CsI82o3mObjl8=", + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz", + "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A==", "dev": true } } @@ -3284,19 +4059,23 @@ "dev": true }, "extend-shallow": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-1.1.4.tgz", - "integrity": "sha1-Gda/lN/AnXa6cR85uHLSH/TdkHE=", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", "dev": true, "requires": { - "kind-of": "1.1.0" + "assign-symbols": "1.0.0", + "is-extendable": "1.0.1" }, "dependencies": { - "kind-of": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-1.1.0.tgz", - "integrity": "sha1-FAo9LUGjbS78+pN3tiwk+ElaXEQ=", - "dev": true + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "2.0.4" + } } } }, @@ -3309,47 +4088,38 @@ "is-extglob": "1.0.0" } }, - "extract-zip": { - "version": "1.6.5", - "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.6.5.tgz", - "integrity": "sha1-maBnNbbqIOqbcF13ms/8yHz/BEA=", + "extract-text-webpack-plugin": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extract-text-webpack-plugin/-/extract-text-webpack-plugin-3.0.2.tgz", + "integrity": "sha512-bt/LZ4m5Rqt/Crl2HiKuAl/oqg0psx1tsTLkvWbJen1CtD+fftkZhMaQ9HOtY2gWsl2Wq+sABmMVi9z3DhKWQQ==", "dev": true, "requires": { - "concat-stream": "1.6.0", - "debug": "2.2.0", - "mkdirp": "0.5.0", - "yauzl": "2.4.1" + "async": "2.6.0", + "loader-utils": "1.1.0", + "schema-utils": "0.3.0", + "webpack-sources": "1.1.0" }, "dependencies": { - "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", + "ajv": { + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", + "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", "dev": true, "requires": { - "ms": "0.7.1" + "co": "4.6.0", + "fast-deep-equal": "1.1.0", + "fast-json-stable-stringify": "2.0.0", + "json-schema-traverse": "0.3.1" } }, - "minimist": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true - }, - "mkdirp": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.0.tgz", - "integrity": "sha1-HXMHam35hs2TROFecfzAWkyavxI=", + "schema-utils": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-0.3.0.tgz", + "integrity": "sha1-9YdyIs4+kx7a4DnxfrNxbnE3+M8=", "dev": true, "requires": { - "minimist": "0.0.8" + "ajv": "5.5.2" } - }, - "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", - "dev": true } } }, @@ -3359,81 +4129,51 @@ "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", "dev": true }, - "fancy-log": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.0.tgz", - "integrity": "sha1-Rb4X0Cu5kX1gzP/UmVyZnmyMmUg=", - "dev": true, - "requires": { - "chalk": "1.1.3", - "time-stamp": "1.1.0" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "2.2.1", - "escape-string-regexp": "1.0.5", - "has-ansi": "2.0.0", - "strip-ansi": "3.0.1", - "supports-color": "2.0.0" - } - }, - "has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", - "dev": true, - "requires": { - "ansi-regex": "2.1.1" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "2.1.1" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } + "fast-deep-equal": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", + "integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ=", + "dev": true + }, + "fast-json-stable-stringify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", + "dev": true }, "fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "dev": true + }, + "faye-websocket": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.10.0.tgz", + "integrity": "sha1-TkkvjQTftviQA1B/btvy1QHnxvQ=", "dev": true, - "optional": true + "requires": { + "websocket-driver": "0.7.0" + } }, - "fd-slicer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.0.1.tgz", - "integrity": "sha1-i1vL2ewyfFBBv5qwI/1nUPEXfmU=", + "figures": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", + "integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=", + "dev": true, + "requires": { + "escape-string-regexp": "1.0.5", + "object-assign": "4.1.1" + } + }, + "file-loader": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-1.1.11.tgz", + "integrity": "sha512-TGR4HU7HUsGg6GCOPJnFk06RhWgEWFLAGWiT6rcD+GRC2keU3s9RGJ+b3Z6/U73jwwNb2gKLJ7YCrp+jvU4ALg==", "dev": true, "requires": { - "pend": "1.2.0" + "loader-utils": "1.1.0", + "schema-utils": "0.4.5" } }, "file-uri-to-path": { @@ -3449,6 +4189,16 @@ "integrity": "sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY=", "dev": true }, + "fileset": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/fileset/-/fileset-2.0.3.tgz", + "integrity": "sha1-jnVIqW08wjJ+5eZ0FocjozO7oqA=", + "dev": true, + "requires": { + "glob": "7.1.2", + "minimatch": "3.0.4" + } + }, "fill-range": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.3.tgz", @@ -3463,26 +4213,29 @@ } }, "finalhandler": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.0.tgz", - "integrity": "sha1-zgtoVbRYU+eRsvzGgARtiCU91/U=", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.1.tgz", + "integrity": "sha512-Y1GUDo39ez4aHAw7MysnUD5JzYX+WaIj8I57kO3aEPT1fFRL4sr7mjei97FgnwhAyyzRYmQZaTHb2+9uZ1dPtg==", "dev": true, "requires": { "debug": "2.6.9", - "encodeurl": "1.0.1", + "encodeurl": "1.0.2", "escape-html": "1.0.3", "on-finished": "2.3.0", "parseurl": "1.3.2", - "statuses": "1.3.1", + "statuses": "1.4.0", "unpipe": "1.0.0" - }, - "dependencies": { - "statuses": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz", - "integrity": "sha1-+vUbnrdKrvOzrPStX2Gr8ky3uT4=", - "dev": true - } + } + }, + "find-cache-dir": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-1.0.0.tgz", + "integrity": "sha1-kojj6ePMN0hxfTnq3hfPcfww7m8=", + "dev": true, + "requires": { + "commondir": "1.0.1", + "make-dir": "1.2.0", + "pkg-dir": "2.0.0" } }, "find-index": { @@ -3498,63 +4251,24 @@ "dev": true }, "find-up": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", - "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", "dev": true, "requires": { - "path-exists": "2.1.0", - "pinkie-promise": "2.0.1" + "locate-path": "2.0.0" } }, - "findup-sync": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.4.3.tgz", - "integrity": "sha1-QAQ5Kee8YK3wt/SCfExudaDeyhI=", + "flush-write-stream": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.0.3.tgz", + "integrity": "sha512-calZMC10u0FMUqoiunI2AiGIIUtUIvifNwkHhNupZH4cbNnW1Itkoh/Nf5HFYmDrwWPjrUxpkZT0KhuCq0jmGw==", "dev": true, "requires": { - "detect-file": "0.1.0", - "is-glob": "2.0.1", - "micromatch": "2.3.11", - "resolve-dir": "0.1.1" + "inherits": "2.0.3", + "readable-stream": "2.3.5" } }, - "fined": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fined/-/fined-1.1.0.tgz", - "integrity": "sha1-s33IRLdqL15wgeiE98CuNE8VNHY=", - "dev": true, - "requires": { - "expand-tilde": "2.0.2", - "is-plain-object": "2.0.4", - "object.defaults": "1.1.0", - "object.pick": "1.3.0", - "parse-filepath": "1.0.1" - }, - "dependencies": { - "expand-tilde": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-2.0.2.tgz", - "integrity": "sha1-l+gBqgUt8CRU3kawK/YhZCzchQI=", - "dev": true, - "requires": { - "homedir-polyfill": "1.0.1" - } - } - } - }, - "first-chunk-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/first-chunk-stream/-/first-chunk-stream-1.0.0.tgz", - "integrity": "sha1-Wb+1DNkF9g18OUzT2ayqtOatk04=", - "dev": true - }, - "flagged-respawn": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/flagged-respawn/-/flagged-respawn-0.3.2.tgz", - "integrity": "sha1-/xke3c1wiKZ1smEP/8l2vpuAdLU=", - "dev": true - }, "follow-redirects": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.0.0.tgz", @@ -3580,6 +4294,12 @@ "for-in": "1.0.2" } }, + "foreach": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz", + "integrity": "sha1-C+4AUBiusmDQo6865ljdATbsG5k=", + "dev": true + }, "forever-agent": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", @@ -3593,22 +4313,41 @@ "dev": true, "requires": { "asynckit": "0.4.0", - "combined-stream": "1.0.5", - "mime-types": "2.1.17" + "combined-stream": "1.0.6", + "mime-types": "2.1.18" } }, - "formidable": { - "version": "1.0.17", - "resolved": "https://registry.npmjs.org/formidable/-/formidable-1.0.17.tgz", - "integrity": "sha1-71SRSQ+UM7cF+qdyScmQKa40hVk=", + "forwarded": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", + "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=", "dev": true }, + "fragment-cache": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", + "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", + "dev": true, + "requires": { + "map-cache": "0.2.2" + } + }, "fresh": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.3.0.tgz", - "integrity": "sha1-ZR+DjiJCTnVm3hYdg1jKoZn4PU8=", + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=", "dev": true }, + "from2": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", + "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "readable-stream": "2.3.5" + } + }, "fs-access": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/fs-access/-/fs-access-1.0.1.tgz", @@ -3618,29 +4357,27 @@ "null-check": "1.0.0" } }, - "fs-exists-sync": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz", - "integrity": "sha1-mC1ok6+RjnLQjeyehnP/K1qNat0=", - "dev": true - }, "fs-extra": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-1.0.0.tgz", - "integrity": "sha1-zTzl9+fLYUWIP8rjGR6Yd/hYeVA=", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-4.0.3.tgz", + "integrity": "sha512-q6rbdDd1o2mAnQreO7YADIxf/Whx4AHBiRf6d+/cVT8h44ss+lHgxf1FemcqDnQt9X3ct4McHr+JMGlYSsK7Cg==", "dev": true, "requires": { "graceful-fs": "4.1.11", - "jsonfile": "2.4.0", - "klaw": "1.3.1" - }, - "dependencies": { - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true - } + "jsonfile": "4.0.0", + "universalify": "0.1.1" + } + }, + "fs-write-stream-atomic": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/fs-write-stream-atomic/-/fs-write-stream-atomic-1.0.10.tgz", + "integrity": "sha1-tH31NJPvkR33VzHnCp3tAYnbQMk=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "iferr": "0.1.5", + "imurmurhash": "0.1.4", + "readable-stream": "2.3.5" } }, "fs.realpath": { @@ -3650,27 +4387,25 @@ "dev": true }, "fsevents": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.1.2.tgz", - "integrity": "sha1-MoK3E/s62A7eDp/PRhG1qm/AM/Q=", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.1.3.tgz", + "integrity": "sha512-WIr7iDkdmdbxu/Gh6eKEZJL6KPE74/5MEsf2whTOFNxbIoIixogroLdKYqB6FDav4Wavh/lZdzzd3b2KxIXC5Q==", "dev": true, "optional": true, "requires": { - "nan": "2.7.0", - "node-pre-gyp": "0.6.36" + "nan": "2.10.0", + "node-pre-gyp": "0.6.39" }, "dependencies": { "abbrev": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.0.tgz", - "integrity": "sha1-0FVMIlZjbi9W58LlrRg/hZQo2B8=", + "bundled": true, "dev": true, "optional": true }, "ajv": { "version": "4.11.8", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz", - "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -3680,21 +4415,18 @@ }, "ansi-regex": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "bundled": true, "dev": true }, "aproba": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.1.1.tgz", - "integrity": "sha1-ldNgDwdxCqDpKYxyatXs8urLq6s=", + "bundled": true, "dev": true, "optional": true }, "are-we-there-yet": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz", - "integrity": "sha1-u13KOCu5TwXhUZQ3PRb9O6HKEQ0=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -3704,49 +4436,42 @@ }, "asn1": { "version": "0.2.3", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", - "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=", + "bundled": true, "dev": true, "optional": true }, "assert-plus": { "version": "0.2.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz", - "integrity": "sha1-104bh+ev/A24qttwIfP+SBAasjQ=", + "bundled": true, "dev": true, "optional": true }, "asynckit": { "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "bundled": true, "dev": true, "optional": true }, "aws-sign2": { "version": "0.6.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz", - "integrity": "sha1-FDQt0428yU0OW4fXY81jYSwOeU8=", + "bundled": true, "dev": true, "optional": true }, "aws4": { "version": "1.6.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.6.0.tgz", - "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4=", + "bundled": true, "dev": true, "optional": true }, "balanced-match": { "version": "0.4.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.4.2.tgz", - "integrity": "sha1-yz8+PHMtwPAe5wtAPzAuYddwmDg=", + "bundled": true, "dev": true }, "bcrypt-pbkdf": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz", - "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -3755,8 +4480,7 @@ }, "block-stream": { "version": "0.0.9", - "resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz", - "integrity": "sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo=", + "bundled": true, "dev": true, "requires": { "inherits": "2.0.3" @@ -3764,8 +4488,7 @@ }, "boom": { "version": "2.10.1", - "resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz", - "integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=", + "bundled": true, "dev": true, "requires": { "hoek": "2.16.3" @@ -3773,8 +4496,7 @@ }, "brace-expansion": { "version": "1.1.7", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.7.tgz", - "integrity": "sha1-Pv/DxQ4ABTH7cg6v+A8K6O8jz1k=", + "bundled": true, "dev": true, "requires": { "balanced-match": "0.4.2", @@ -3783,34 +4505,29 @@ }, "buffer-shims": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/buffer-shims/-/buffer-shims-1.0.0.tgz", - "integrity": "sha1-mXjOMXOIxkmth5MCjDR37wRKi1E=", + "bundled": true, "dev": true }, "caseless": { "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", + "bundled": true, "dev": true, "optional": true }, "co": { "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", + "bundled": true, "dev": true, "optional": true }, "code-point-at": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "bundled": true, "dev": true }, "combined-stream": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz", - "integrity": "sha1-k4NwpXtKUd6ix3wV1cX9+JUWQAk=", + "bundled": true, "dev": true, "requires": { "delayed-stream": "1.0.0" @@ -3818,36 +4535,30 @@ }, "concat-map": { "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "bundled": true, "dev": true }, "console-control-strings": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", - "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", + "bundled": true, "dev": true }, "core-util-is": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "bundled": true, "dev": true }, "cryptiles": { "version": "2.0.5", - "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz", - "integrity": "sha1-O9/s3GCBR8HGcgL6KR59ylnqo7g=", + "bundled": true, "dev": true, - "optional": true, "requires": { "boom": "2.10.1" } }, "dashdash": { "version": "1.14.1", - "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -3856,8 +4567,7 @@ "dependencies": { "assert-plus": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "bundled": true, "dev": true, "optional": true } @@ -3865,8 +4575,7 @@ }, "debug": { "version": "2.6.8", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.8.tgz", - "integrity": "sha1-5zFTHKLt4n0YgiJCfaF4IdaP9Pw=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -3875,28 +4584,30 @@ }, "deep-extend": { "version": "0.4.2", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.4.2.tgz", - "integrity": "sha1-SLaZwn4zS/ifEIkr5DL25MfTSn8=", + "bundled": true, "dev": true, "optional": true }, "delayed-stream": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", + "bundled": true, "dev": true }, "delegates": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", - "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", + "bundled": true, + "dev": true, + "optional": true + }, + "detect-libc": { + "version": "1.0.2", + "bundled": true, "dev": true, "optional": true }, "ecc-jsbn": { "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", - "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -3905,28 +4616,24 @@ }, "extend": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz", - "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=", + "bundled": true, "dev": true, "optional": true }, "extsprintf": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.0.2.tgz", - "integrity": "sha1-4QgOBljjALBilJkMxw4VAiNf1VA=", + "bundled": true, "dev": true }, "forever-agent": { "version": "0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", + "bundled": true, "dev": true, "optional": true }, "form-data": { "version": "2.1.4", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.1.4.tgz", - "integrity": "sha1-M8GDrPGTJ27KqYFDpp6Uv+4XUNE=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -3937,14 +4644,12 @@ }, "fs.realpath": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "bundled": true, "dev": true }, "fstream": { "version": "1.0.11", - "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.11.tgz", - "integrity": "sha1-XB+x8RdHcRTwYyoOtLcbPLD9MXE=", + "bundled": true, "dev": true, "requires": { "graceful-fs": "4.1.11", @@ -3955,8 +4660,7 @@ }, "fstream-ignore": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/fstream-ignore/-/fstream-ignore-1.0.5.tgz", - "integrity": "sha1-nDHa40dnAY/h0kmyTa2mfQktoQU=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -3967,8 +4671,7 @@ }, "gauge": { "version": "2.7.4", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", - "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -3984,8 +4687,7 @@ }, "getpass": { "version": "0.1.7", - "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -3994,8 +4696,7 @@ "dependencies": { "assert-plus": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "bundled": true, "dev": true, "optional": true } @@ -4003,8 +4704,7 @@ }, "glob": { "version": "7.1.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", - "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "bundled": true, "dev": true, "requires": { "fs.realpath": "1.0.0", @@ -4017,21 +4717,18 @@ }, "graceful-fs": { "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "bundled": true, "dev": true }, "har-schema": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-1.0.5.tgz", - "integrity": "sha1-0mMTX0MwfALGAq/I/pWXDAFRNp4=", + "bundled": true, "dev": true, "optional": true }, "har-validator": { "version": "4.2.1", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-4.2.1.tgz", - "integrity": "sha1-M0gdDxu/9gDdID11gSpqX7oALio=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4041,17 +4738,14 @@ }, "has-unicode": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", - "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", + "bundled": true, "dev": true, "optional": true }, "hawk": { "version": "3.1.3", - "resolved": "https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz", - "integrity": "sha1-B4REvXwWQLD+VA0sm3PVlnjo4cQ=", + "bundled": true, "dev": true, - "optional": true, "requires": { "boom": "2.10.1", "cryptiles": "2.0.5", @@ -4061,14 +4755,12 @@ }, "hoek": { "version": "2.16.3", - "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz", - "integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=", + "bundled": true, "dev": true }, "http-signature": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz", - "integrity": "sha1-33LiZwZs0Kxn+3at+OE0qPvPkb8=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4079,8 +4771,7 @@ }, "inflight": { "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "bundled": true, "dev": true, "requires": { "once": "1.4.0", @@ -4089,21 +4780,18 @@ }, "inherits": { "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "bundled": true, "dev": true }, "ini": { "version": "1.3.4", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.4.tgz", - "integrity": "sha1-BTfLedr1m1mhpRff9wbIbsA5Fi4=", + "bundled": true, "dev": true, "optional": true }, "is-fullwidth-code-point": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "bundled": true, "dev": true, "requires": { "number-is-nan": "1.0.1" @@ -4111,28 +4799,24 @@ }, "is-typedarray": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "bundled": true, "dev": true, "optional": true }, "isarray": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "bundled": true, "dev": true }, "isstream": { "version": "0.1.2", - "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", + "bundled": true, "dev": true, "optional": true }, "jodid25519": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/jodid25519/-/jodid25519-1.0.2.tgz", - "integrity": "sha1-BtSRIlUJNBlHfUJWM2BuDpB4KWc=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4141,22 +4825,19 @@ }, "jsbn": { "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "bundled": true, "dev": true, "optional": true }, "json-schema": { "version": "0.2.3", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", + "bundled": true, "dev": true, "optional": true }, "json-stable-stringify": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", - "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4165,22 +4846,19 @@ }, "json-stringify-safe": { "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", + "bundled": true, "dev": true, "optional": true }, "jsonify": { "version": "0.0.0", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", - "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", + "bundled": true, "dev": true, "optional": true }, "jsprim": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.0.tgz", - "integrity": "sha1-o7h+QCmNjDgFUtjMdiigu5WiKRg=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4192,8 +4870,7 @@ "dependencies": { "assert-plus": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "bundled": true, "dev": true, "optional": true } @@ -4201,14 +4878,12 @@ }, "mime-db": { "version": "1.27.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.27.0.tgz", - "integrity": "sha1-gg9XIpa70g7CXtVeW13oaeVDbrE=", + "bundled": true, "dev": true }, "mime-types": { "version": "2.1.15", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.15.tgz", - "integrity": "sha1-pOv1BkCUVpI3uM9wBGd20J/JKu0=", + "bundled": true, "dev": true, "requires": { "mime-db": "1.27.0" @@ -4216,8 +4891,7 @@ }, "minimatch": { "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "bundled": true, "dev": true, "requires": { "brace-expansion": "1.1.7" @@ -4225,14 +4899,12 @@ }, "minimist": { "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "bundled": true, "dev": true }, "mkdirp": { "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "bundled": true, "dev": true, "requires": { "minimist": "0.0.8" @@ -4240,18 +4912,18 @@ }, "ms": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "bundled": true, "dev": true, "optional": true }, "node-pre-gyp": { - "version": "0.6.36", - "resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.6.36.tgz", - "integrity": "sha1-22BBEst04NR3VU6bUFsXq936t4Y=", + "version": "0.6.39", + "bundled": true, "dev": true, "optional": true, "requires": { + "detect-libc": "1.0.2", + "hawk": "3.1.3", "mkdirp": "0.5.1", "nopt": "4.0.1", "npmlog": "4.1.0", @@ -4265,8 +4937,7 @@ }, "nopt": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz", - "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4276,8 +4947,7 @@ }, "npmlog": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.0.tgz", - "integrity": "sha512-ocolIkZYZt8UveuiDS0yAkkIjid1o7lPG8cYm05yNYzBn8ykQtaiPMEGp8fY9tKdDgm8okpdKzkvu1y9hUYugA==", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4289,28 +4959,24 @@ }, "number-is-nan": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "bundled": true, "dev": true }, "oauth-sign": { "version": "0.8.2", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", - "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=", + "bundled": true, "dev": true, "optional": true }, "object-assign": { "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "bundled": true, "dev": true, "optional": true }, "once": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "bundled": true, "dev": true, "requires": { "wrappy": "1.0.2" @@ -4318,22 +4984,19 @@ }, "os-homedir": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", - "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", + "bundled": true, "dev": true, "optional": true }, "os-tmpdir": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", + "bundled": true, "dev": true, "optional": true }, "osenv": { "version": "0.1.4", - "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.4.tgz", - "integrity": "sha1-Qv5tWVPfBsgGS+bxdsPQWqqjRkQ=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4343,41 +5006,35 @@ }, "path-is-absolute": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "bundled": true, "dev": true }, "performance-now": { "version": "0.2.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-0.2.0.tgz", - "integrity": "sha1-M+8wxcd9TqIcWlOGnZG1bY8lVeU=", + "bundled": true, "dev": true, "optional": true }, "process-nextick-args": { "version": "1.0.7", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz", - "integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=", + "bundled": true, "dev": true }, "punycode": { "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", + "bundled": true, "dev": true, "optional": true }, "qs": { "version": "6.4.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz", - "integrity": "sha1-E+JtKK1rD/qpExLNO/cI7TUecjM=", + "bundled": true, "dev": true, "optional": true }, "rc": { "version": "1.2.1", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.1.tgz", - "integrity": "sha1-LgPo5C7kULjLPc5lvhv4l04d/ZU=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4389,8 +5046,7 @@ "dependencies": { "minimist": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "bundled": true, "dev": true, "optional": true } @@ -4398,8 +5054,7 @@ }, "readable-stream": { "version": "2.2.9", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.2.9.tgz", - "integrity": "sha1-z3jsb0ptHrQ9JkiMrJfwQudLf8g=", + "bundled": true, "dev": true, "requires": { "buffer-shims": "1.0.0", @@ -4413,8 +5068,7 @@ }, "request": { "version": "2.81.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz", - "integrity": "sha1-xpKJRqDgbF+Nb4qTM0af/aRimKA=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4444,8 +5098,7 @@ }, "rimraf": { "version": "2.6.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.1.tgz", - "integrity": "sha1-wjOOxkPfeht/5cVPqG9XQopV8z0=", + "bundled": true, "dev": true, "requires": { "glob": "7.1.2" @@ -4453,45 +5106,38 @@ }, "safe-buffer": { "version": "5.0.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.0.1.tgz", - "integrity": "sha1-0mPKVGls2KMGtcplUekt5XkY++c=", + "bundled": true, "dev": true }, "semver": { "version": "5.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz", - "integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=", + "bundled": true, "dev": true, "optional": true }, "set-blocking": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "bundled": true, "dev": true, "optional": true }, "signal-exit": { "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "bundled": true, "dev": true, "optional": true }, "sntp": { "version": "1.0.9", - "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz", - "integrity": "sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg=", + "bundled": true, "dev": true, - "optional": true, "requires": { "hoek": "2.16.3" } }, "sshpk": { "version": "1.13.0", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.13.0.tgz", - "integrity": "sha1-/yo+T9BEl1Vf7Zezmg/YL6+zozw=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4508,8 +5154,7 @@ "dependencies": { "assert-plus": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "bundled": true, "dev": true, "optional": true } @@ -4517,8 +5162,7 @@ }, "string-width": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "bundled": true, "dev": true, "requires": { "code-point-at": "1.1.0", @@ -4528,8 +5172,7 @@ }, "string_decoder": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.1.tgz", - "integrity": "sha1-YuIA8DmVWmgQ2N8KM//A8BNmLZg=", + "bundled": true, "dev": true, "requires": { "safe-buffer": "5.0.1" @@ -4537,15 +5180,13 @@ }, "stringstream": { "version": "0.0.5", - "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz", - "integrity": "sha1-TkhM1N5aC7vuGORjB3EKioFiGHg=", + "bundled": true, "dev": true, "optional": true }, "strip-ansi": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "bundled": true, "dev": true, "requires": { "ansi-regex": "2.1.1" @@ -4553,15 +5194,13 @@ }, "strip-json-comments": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "bundled": true, "dev": true, "optional": true }, "tar": { "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz", - "integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=", + "bundled": true, "dev": true, "requires": { "block-stream": "0.0.9", @@ -4571,8 +5210,7 @@ }, "tar-pack": { "version": "3.4.0", - "resolved": "https://registry.npmjs.org/tar-pack/-/tar-pack-3.4.0.tgz", - "integrity": "sha1-I74tf2cagzk3bL2wuP4/3r8xeYQ=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4588,8 +5226,7 @@ }, "tough-cookie": { "version": "2.3.2", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.2.tgz", - "integrity": "sha1-8IH3bkyFcg5sN6X6ztc3FQ2EByo=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4598,8 +5235,7 @@ }, "tunnel-agent": { "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4608,35 +5244,30 @@ }, "tweetnacl": { "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "bundled": true, "dev": true, "optional": true }, "uid-number": { "version": "0.0.6", - "resolved": "https://registry.npmjs.org/uid-number/-/uid-number-0.0.6.tgz", - "integrity": "sha1-DqEOgDXo61uOREnwbaHHMGY7qoE=", + "bundled": true, "dev": true, "optional": true }, "util-deprecate": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "bundled": true, "dev": true }, "uuid": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.0.1.tgz", - "integrity": "sha1-ZUS7ot/ajBzxfmKaOjBeK7H+5sE=", + "bundled": true, "dev": true, "optional": true }, "verror": { "version": "1.3.6", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.3.6.tgz", - "integrity": "sha1-z/XfEpRtKX0rqu+qJoniW+AcAFw=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4645,8 +5276,7 @@ }, "wide-align": { "version": "1.1.2", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.2.tgz", - "integrity": "sha512-ijDLlyQ7s6x1JgCLur53osjm/UXUYD9+0PbYKrBsYisYXzCxN+HC3mYDNy/dWdmf3AwqwU3CXwDCvsNgGK1S0w==", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4655,8 +5285,7 @@ }, "wrappy": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "bundled": true, "dev": true } } @@ -4671,14 +5300,6 @@ "inherits": "2.0.3", "mkdirp": "0.5.1", "rimraf": "2.6.2" - }, - "dependencies": { - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true - } } }, "ftp": { @@ -4690,6 +5311,35 @@ "requires": { "readable-stream": "1.1.14", "xregexp": "2.0.0" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true, + "optional": true + }, + "readable-stream": { + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", + "dev": true, + "optional": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "0.0.1", + "string_decoder": "0.10.31" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true, + "optional": true + } } }, "function-bind": { @@ -4712,32 +5362,15 @@ "string-width": "1.0.2", "strip-ansi": "3.0.1", "wide-align": "1.1.2" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "2.1.1" - } - } } }, "gaze": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/gaze/-/gaze-0.5.2.tgz", - "integrity": "sha1-QLcJU30k0dRXZ9takIaJ3+aaxE8=", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.2.tgz", + "integrity": "sha1-hHIkZ3rbiHDWeSV+0ziP22HkAQU=", "dev": true, "requires": { - "globule": "0.1.0" + "globule": "1.2.0" } }, "generate-function": { @@ -4761,6 +5394,12 @@ "integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=", "dev": true }, + "get-own-enumerable-property-symbols": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-2.0.1.tgz", + "integrity": "sha512-TtY/sbOemiMKPRUDDanGCSgBYe7Mf0vbRsWnBZ+9yghpZ1MvcpSpuZFjHdEeY/LZjZy0vdLjS77L6HosisFiug==", + "dev": true + }, "get-stdin": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", @@ -4786,50 +5425,14 @@ "file-uri-to-path": "1.0.0", "ftp": "0.3.10", "readable-stream": "2.3.5" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true, - "optional": true - }, - "process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", - "dev": true, - "optional": true - }, - "readable-stream": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", - "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", - "dev": true, - "optional": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "2.0.0", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", - "dev": true, - "optional": true, - "requires": { - "safe-buffer": "5.1.1" - } - } } }, + "get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", + "dev": true + }, "getpass": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", @@ -4847,10 +5450,148 @@ } } }, + "git-raw-commits": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/git-raw-commits/-/git-raw-commits-1.3.4.tgz", + "integrity": "sha512-G3O+41xHbscpgL5nA0DUkbFVgaAz5rd57AMSIMew8p7C8SyFwZDyn08MoXHkTl9zcD0LmxsLFPxbqFY4YPbpPA==", + "dev": true, + "requires": { + "dargs": "4.1.0", + "lodash.template": "4.4.0", + "meow": "4.0.0", + "split2": "2.2.0", + "through2": "2.0.3" + }, + "dependencies": { + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "dev": true + }, + "camelcase-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz", + "integrity": "sha1-oqpfsa9oh1glnDLBQUJteJI7m3c=", + "dev": true, + "requires": { + "camelcase": "4.1.0", + "map-obj": "2.0.0", + "quick-lru": "1.1.0" + } + }, + "indent-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", + "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", + "dev": true + }, + "load-json-file": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "parse-json": "4.0.0", + "pify": "3.0.0", + "strip-bom": "3.0.0" + } + }, + "map-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz", + "integrity": "sha1-plzSkIepJZi4eRJXpSPgISIqwfk=", + "dev": true + }, + "meow": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-4.0.0.tgz", + "integrity": "sha512-Me/kel335m6vMKmEmA6c87Z6DUFW3JqkINRnxkbC+A/PUm0D5Fl2dEBQrPKnqCL9Te/CIa1MUt/0InMJhuC/sw==", + "dev": true, + "requires": { + "camelcase-keys": "4.2.0", + "decamelize-keys": "1.1.0", + "loud-rejection": "1.6.0", + "minimist": "1.2.0", + "minimist-options": "3.0.2", + "normalize-package-data": "2.4.0", + "read-pkg-up": "3.0.0", + "redent": "2.0.0", + "trim-newlines": "2.0.0" + } + }, + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + }, + "parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "dev": true, + "requires": { + "error-ex": "1.3.1", + "json-parse-better-errors": "1.0.1" + } + }, + "read-pkg": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "dev": true, + "requires": { + "load-json-file": "4.0.0", + "normalize-package-data": "2.4.0", + "path-type": "3.0.0" + } + }, + "read-pkg-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", + "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", + "dev": true, + "requires": { + "find-up": "2.1.0", + "read-pkg": "3.0.0" + } + }, + "redent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", + "integrity": "sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=", + "dev": true, + "requires": { + "indent-string": "3.2.0", + "strip-indent": "2.0.0" + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "dev": true + }, + "strip-indent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", + "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=", + "dev": true + }, + "trim-newlines": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", + "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", + "dev": true + } + } + }, "glob": { "version": "7.1.2", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", - "integrity": "sha1-wZyd+aAocC1nhhI4SmVSQExjbRU=", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", "dev": true, "requires": { "fs.realpath": "1.0.0", @@ -4880,78 +5621,10 @@ "is-glob": "2.0.1" } }, - "glob-stream": { - "version": "3.1.18", - "resolved": "https://registry.npmjs.org/glob-stream/-/glob-stream-3.1.18.tgz", - "integrity": "sha1-kXCl8St5Awb9/lmPMT+PeVT9FDs=", - "dev": true, - "requires": { - "glob": "4.5.3", - "glob2base": "0.0.12", - "minimatch": "2.0.10", - "ordered-read-streams": "0.1.0", - "through2": "0.6.5", - "unique-stream": "1.0.0" - }, - "dependencies": { - "glob": { - "version": "4.5.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-4.5.3.tgz", - "integrity": "sha1-xstz0yJsHv7wTePFbQEvAzd+4V8=", - "dev": true, - "requires": { - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "2.0.10", - "once": "1.4.0" - } - }, - "minimatch": { - "version": "2.0.10", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-2.0.10.tgz", - "integrity": "sha1-jQh8OcazjAAbl/ynzm0OHoCvusc=", - "dev": true, - "requires": { - "brace-expansion": "1.1.8" - } - }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", - "dev": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "0.0.1", - "string_decoder": "0.10.31" - } - }, - "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", - "dev": true, - "requires": { - "readable-stream": "1.0.34", - "xtend": "4.0.1" - } - } - } - }, - "glob-watcher": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/glob-watcher/-/glob-watcher-0.0.6.tgz", - "integrity": "sha1-uVtKjfdLOcgymLDAXJeLTZo7cQs=", - "dev": true, - "requires": { - "gaze": "0.5.2" - } - }, - "glob2base": { - "version": "0.0.12", - "resolved": "https://registry.npmjs.org/glob2base/-/glob2base-0.0.12.tgz", - "integrity": "sha1-nUGbPijxLoOjYhZKJ3BVkiycDVY=", + "glob2base": { + "version": "0.0.12", + "resolved": "https://registry.npmjs.org/glob2base/-/glob2base-0.0.12.tgz", + "integrity": "sha1-nUGbPijxLoOjYhZKJ3BVkiycDVY=", "dev": true, "requires": { "find-index": "0.1.1" @@ -4963,103 +5636,38 @@ "integrity": "sha1-sxnA3UYH81PzvpzKTHL8FIxJ9EU=", "dev": true, "requires": { - "ini": "1.3.4" - } - }, - "global-modules": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-0.2.3.tgz", - "integrity": "sha1-6lo77ULG1s6ZWk+KEmm12uIjgo0=", - "dev": true, - "requires": { - "global-prefix": "0.1.5", - "is-windows": "0.2.0" + "ini": "1.3.5" } }, - "global-prefix": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-0.1.5.tgz", - "integrity": "sha1-jTvGuNo8qBEqFg2NSW/wRiv+948=", - "dev": true, - "requires": { - "homedir-polyfill": "1.0.1", - "ini": "1.3.4", - "is-windows": "0.2.0", - "which": "1.3.0" - } + "globals": { + "version": "9.18.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", + "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", + "dev": true }, "globby": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", - "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/globby/-/globby-7.1.1.tgz", + "integrity": "sha1-+yzP+UAfhgCUXfral0QMypcrhoA=", "dev": true, "requires": { "array-union": "1.0.2", + "dir-glob": "2.0.0", "glob": "7.1.2", - "object-assign": "4.1.1", - "pify": "2.3.0", - "pinkie-promise": "2.0.1" + "ignore": "3.3.7", + "pify": "3.0.0", + "slash": "1.0.0" } }, "globule": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/globule/-/globule-0.1.0.tgz", - "integrity": "sha1-2cjt3h2nnRJaFRt5UzuXhnY0auU=", - "dev": true, - "requires": { - "glob": "3.1.21", - "lodash": "1.0.2", - "minimatch": "0.2.14" - }, - "dependencies": { - "glob": { - "version": "3.1.21", - "resolved": "https://registry.npmjs.org/glob/-/glob-3.1.21.tgz", - "integrity": "sha1-0p4KBV3qUTj00H7UDomC6DwgZs0=", - "dev": true, - "requires": { - "graceful-fs": "1.2.3", - "inherits": "1.0.2", - "minimatch": "0.2.14" - } - }, - "graceful-fs": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-1.2.3.tgz", - "integrity": "sha1-FaSAaldUfLLS2/J/QuiajDRRs2Q=", - "dev": true - }, - "inherits": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-1.0.2.tgz", - "integrity": "sha1-ykMJ2t7mtUzAuNJH6NfHoJdb3Js=", - "dev": true - }, - "lodash": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-1.0.2.tgz", - "integrity": "sha1-j1dWDIO1n8JwvT1WG2kAQ0MOJVE=", - "dev": true - }, - "minimatch": { - "version": "0.2.14", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz", - "integrity": "sha1-x054BXT2PG+aCQ6Q775u9TpqdWo=", - "dev": true, - "requires": { - "lru-cache": "2.7.3", - "sigmund": "1.0.1" - } - } - } - }, - "glogg": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/glogg/-/glogg-1.0.0.tgz", - "integrity": "sha1-f+DxmfV6yQbPUS/urY+Q7kooT8U=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/globule/-/globule-1.2.0.tgz", + "integrity": "sha1-HcScaCLdnoovoAuiopUAboZkvQk=", "dev": true, "requires": { - "sparkles": "1.0.0" + "glob": "7.1.2", + "lodash": "4.17.5", + "minimatch": "3.0.4" } }, "got": { @@ -5082,223 +5690,99 @@ } }, "graceful-fs": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-3.0.11.tgz", - "integrity": "sha1-dhPHeKGv6mLyXGMKCG1/Osu92Bg=", - "dev": true, - "requires": { - "natives": "1.1.0" - } + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "dev": true + }, + "handle-thing": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-1.2.5.tgz", + "integrity": "sha1-/Xqtcmvxpf0W38KbL3pmAdJxOcQ=", + "dev": true }, - "gulp": { - "version": "3.9.1", - "resolved": "https://registry.npmjs.org/gulp/-/gulp-3.9.1.tgz", - "integrity": "sha1-VxzkWSjdQK9lFPxAEYZgFsE4RbQ=", + "handlebars": { + "version": "4.0.11", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.0.11.tgz", + "integrity": "sha1-Ywo13+ApS8KB7a5v/F0yn8eYLcw=", "dev": true, "requires": { - "archy": "1.0.0", - "chalk": "1.1.3", - "deprecated": "0.0.1", - "gulp-util": "3.0.8", - "interpret": "1.0.4", - "liftoff": "2.3.0", - "minimist": "1.2.0", - "orchestrator": "0.3.8", - "pretty-hrtime": "1.0.3", - "semver": "4.3.6", - "tildify": "1.2.0", - "v8flags": "2.1.1", - "vinyl-fs": "0.3.14" + "async": "1.5.2", + "optimist": "0.6.1", + "source-map": "0.4.4", + "uglify-js": "2.8.29" }, "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "async": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", + "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", "dev": true }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "2.2.1", - "escape-string-regexp": "1.0.5", - "has-ansi": "2.0.0", - "strip-ansi": "3.0.1", - "supports-color": "2.0.0" - } - }, - "has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "camelcase": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", + "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", "dev": true, - "requires": { - "ansi-regex": "2.1.1" - } + "optional": true }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "cliui": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", + "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=", "dev": true, + "optional": true, "requires": { - "ansi-regex": "2.1.1" + "center-align": "0.1.3", + "right-align": "0.1.3", + "wordwrap": "0.0.2" } }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "gulp-bump": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/gulp-bump/-/gulp-bump-3.1.0.tgz", - "integrity": "sha512-v5FN3TGstRqkqWTPrp1jcUyCM4YbUIvYzJy/lG2YWFXk5HvFgTucBcVhhpH1nJcnI9Y3skPnpTzYoaBQO1qBzA==", - "dev": true, - "requires": { - "bump-regex": "3.1.0", - "plugin-error": "0.1.2", - "plugin-log": "0.1.0", - "semver": "5.5.0", - "through2": "2.0.3" - }, - "dependencies": { - "semver": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", - "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", - "dev": true - } - } - }, - "gulp-load-plugins": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/gulp-load-plugins/-/gulp-load-plugins-1.5.0.tgz", - "integrity": "sha1-TEGffldk2aDjMGG6uWGPgbc9QXE=", - "dev": true, - "requires": { - "array-unique": "0.2.1", - "fancy-log": "1.3.0", - "findup-sync": "0.4.3", - "gulplog": "1.0.0", - "has-gulplog": "0.1.0", - "micromatch": "2.3.11", - "resolve": "1.4.0" - } - }, - "gulp-task-listing": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gulp-task-listing/-/gulp-task-listing-1.0.1.tgz", - "integrity": "sha1-jT2IqTOBcV2A1m0I2cVVh9iJ8ro=", - "dev": true, - "requires": { - "chalk": "0.5.1" - } - }, - "gulp-util": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/gulp-util/-/gulp-util-3.0.8.tgz", - "integrity": "sha1-AFTh50RQLifATBh8PsxQXdVLu08=", - "dev": true, - "requires": { - "array-differ": "1.0.0", - "array-uniq": "1.0.3", - "beeper": "1.1.1", - "chalk": "1.1.3", - "dateformat": "2.2.0", - "fancy-log": "1.3.0", - "gulplog": "1.0.0", - "has-gulplog": "0.1.0", - "lodash._reescape": "3.0.0", - "lodash._reevaluate": "3.0.0", - "lodash._reinterpolate": "3.0.0", - "lodash.template": "3.6.2", - "minimist": "1.2.0", - "multipipe": "0.1.2", - "object-assign": "3.0.0", - "replace-ext": "0.0.1", - "through2": "2.0.3", - "vinyl": "0.5.3" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "source-map": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", + "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", "dev": true, "requires": { - "ansi-styles": "2.2.1", - "escape-string-regexp": "1.0.5", - "has-ansi": "2.0.0", - "strip-ansi": "3.0.1", - "supports-color": "2.0.0" + "amdefine": "1.0.1" } }, - "has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "uglify-js": { + "version": "2.8.29", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", + "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", "dev": true, + "optional": true, "requires": { - "ansi-regex": "2.1.1" + "source-map": "0.5.7", + "uglify-to-browserify": "1.0.2", + "yargs": "3.10.0" + }, + "dependencies": { + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true, + "optional": true + } } }, - "object-assign": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz", - "integrity": "sha1-m+3VygiXlJvKR+f/QIBi1Un1h/I=", - "dev": true - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "yargs": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", + "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", "dev": true, + "optional": true, "requires": { - "ansi-regex": "2.1.1" + "camelcase": "1.2.1", + "cliui": "2.1.0", + "decamelize": "1.2.0", + "window-size": "0.1.0" } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true } } }, - "gulplog": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/gulplog/-/gulplog-1.0.0.tgz", - "integrity": "sha1-4oxNRdBey77YGDY86PnFkmIp/+U=", - "dev": true, - "requires": { - "glogg": "1.0.0" - } - }, "har-schema": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-1.0.5.tgz", @@ -5313,6 +5797,18 @@ "requires": { "ajv": "4.11.8", "har-schema": "1.0.5" + }, + "dependencies": { + "ajv": { + "version": "4.11.8", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz", + "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=", + "dev": true, + "requires": { + "co": "4.6.0", + "json-stable-stringify": "1.0.1" + } + } } }, "has": { @@ -5325,21 +5821,12 @@ } }, "has-ansi": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-0.1.0.tgz", - "integrity": "sha1-hPJlqujA5qiKEtcCKJS3VoiUxi4=", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", "dev": true, "requires": { - "ansi-regex": "0.2.1" - } - }, - "has-binary": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/has-binary/-/has-binary-0.1.7.tgz", - "integrity": "sha1-aOYesWIQyVRaClzOBqhzkS/h5ow=", - "dev": true, - "requires": { - "isarray": "0.0.1" + "ansi-regex": "2.1.1" } }, "has-binary2": { @@ -5366,26 +5853,77 @@ "dev": true }, "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz", + "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=", "dev": true }, - "has-gulplog": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/has-gulplog/-/has-gulplog-0.1.0.tgz", - "integrity": "sha1-ZBTIKRNpfaUVkDl9r7EvIpZ4Ec4=", - "dev": true, - "requires": { - "sparkles": "1.0.0" - } - }, "has-unicode": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", "dev": true }, + "has-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", + "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", + "dev": true, + "requires": { + "get-value": "2.0.6", + "has-values": "1.0.0", + "isobject": "3.0.1" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + } + } + }, + "has-values": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", + "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", + "dev": true, + "requires": { + "is-number": "3.0.0", + "kind-of": "4.0.0" + }, + "dependencies": { + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, "hash-base": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-2.0.2.tgz", @@ -5398,23 +5936,13 @@ "hash.js": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.3.tgz", - "integrity": "sha1-NA3tvmKQGHFRweodd3o0SJNd+EY=", + "integrity": "sha512-/UETyP0W22QILqS+6HowevwhEFJ3MBJnwTf75Qob9Wz9t0DPuisL8kW8YZMK62dHAKE1c1p+gY1TtOLY+USEHA==", "dev": true, "requires": { "inherits": "2.0.3", "minimalistic-assert": "1.0.0" } }, - "hasha": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/hasha/-/hasha-2.2.0.tgz", - "integrity": "sha1-eNfL/B5tZjA/55g3NlmEUXsvbuE=", - "dev": true, - "requires": { - "is-stream": "1.1.0", - "pinkie-promise": "2.0.1" - } - }, "hawk": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz", @@ -5461,27 +5989,142 @@ "integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=", "dev": true }, - "homedir-polyfill": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.1.tgz", - "integrity": "sha1-TCu8inWJmP7r9e1oWA921GdotLw=", + "hosted-git-info": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.6.0.tgz", + "integrity": "sha512-lIbgIIQA3lz5XaB6vxakj6sDHADJiZadYEJB+FgA+C4nubM1NwcuvUr9EJPmnH1skZqpqUzWborWo8EIUi0Sdw==", + "dev": true + }, + "hpack.js": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", + "integrity": "sha1-h3dMCUnlE/QuhFdbPEVoH63ioLI=", "dev": true, "requires": { - "parse-passwd": "1.0.0" + "inherits": "2.0.3", + "obuf": "1.1.2", + "readable-stream": "2.3.5", + "wbuf": "1.7.3" } }, - "hosted-git-info": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.5.0.tgz", - "integrity": "sha1-bWDjSzq7yDEwYsO3mO+NkBoHrzw=", + "html-encoding-sniffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz", + "integrity": "sha512-71lZziiDnsuabfdYiUeWdCVyKuqwWi23L8YeIgV9jSSZHCtb6wB1BKWooH7L3tn4/FuZJMVWyNaIDr4RGmaSYw==", + "dev": true, + "requires": { + "whatwg-encoding": "1.0.3" + } + }, + "html-entities": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-1.2.1.tgz", + "integrity": "sha1-DfKTUfByEWNRXfueVUPl9u7VFi8=", "dev": true }, + "html-minifier": { + "version": "3.5.12", + "resolved": "https://registry.npmjs.org/html-minifier/-/html-minifier-3.5.12.tgz", + "integrity": "sha512-+N778qLf0RWBscD0TPGoYdeGNDZ0s76/0pQhY1/409EOudcENkm9IbSkk37RDyPdg/09GVHTKotU4ya93RF1Gg==", + "dev": true, + "requires": { + "camel-case": "3.0.0", + "clean-css": "4.1.11", + "commander": "2.15.1", + "he": "1.1.1", + "ncname": "1.0.0", + "param-case": "2.1.1", + "relateurl": "0.2.7", + "uglify-js": "3.3.16" + } + }, + "html-webpack-plugin": { + "version": "2.30.1", + "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-2.30.1.tgz", + "integrity": "sha1-f5xCG36pHsRg9WUn1430hO51N9U=", + "dev": true, + "requires": { + "bluebird": "3.5.1", + "html-minifier": "3.5.12", + "loader-utils": "0.2.17", + "lodash": "4.17.5", + "pretty-error": "2.1.1", + "toposort": "1.0.6" + }, + "dependencies": { + "loader-utils": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-0.2.17.tgz", + "integrity": "sha1-+G5jdNQyBabmxg6RlvF8Apm/s0g=", + "dev": true, + "requires": { + "big.js": "3.2.0", + "emojis-list": "2.1.0", + "json5": "0.5.1", + "object-assign": "4.1.1" + } + } + } + }, "htmlescape": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/htmlescape/-/htmlescape-1.1.1.tgz", "integrity": "sha1-OgPtwiFLyjtmQko+eVk0lQnLA1E=", "dev": true }, + "htmlparser2": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.3.0.tgz", + "integrity": "sha1-zHDQWln2VC5D8OaFyYLhTJJKnv4=", + "dev": true, + "requires": { + "domelementtype": "1.3.0", + "domhandler": "2.1.0", + "domutils": "1.1.6", + "readable-stream": "1.0.34" + }, + "dependencies": { + "domutils": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.1.6.tgz", + "integrity": "sha1-vdw94Jm5ou+sxRxiPyj0FuzFdIU=", + "dev": true, + "requires": { + "domelementtype": "1.3.0" + } + }, + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true + }, + "readable-stream": { + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "0.0.1", + "string_decoder": "0.10.31" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true + } + } + }, + "http-deceiver": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", + "integrity": "sha1-+nFolEq5pRnTN8sL7HKE3D5yPYc=", + "dev": true + }, "http-errors": { "version": "1.6.2", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.2.tgz", @@ -5492,8 +6135,28 @@ "inherits": "2.0.3", "setprototypeof": "1.0.3", "statuses": "1.4.0" + }, + "dependencies": { + "depd": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", + "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=", + "dev": true + }, + "setprototypeof": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.3.tgz", + "integrity": "sha1-ZlZ+NwQ+608E2RvWWMDL77VbjgQ=", + "dev": true + } } }, + "http-parser-js": { + "version": "0.4.11", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.4.11.tgz", + "integrity": "sha512-QCR5O2AjjMW8Mo4HyI1ctFcv+O99j/0g367V3YoVnrNw5hkDvAWZD0lWGcc+F4yN3V55USPCVix4efb75HxFfA==", + "dev": true + }, "http-proxy": { "version": "1.16.2", "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.16.2.tgz", @@ -5515,20 +6178,33 @@ "extend": "3.0.1" } }, - "http-server": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/http-server/-/http-server-0.11.1.tgz", - "integrity": "sha512-6JeGDGoujJLmhjiRGlt8yK8Z9Kl0vnl/dQoQZlc4oeqaUoAKQg94NILLfrY3oWzSyFaQCVNTcKE5PZ3cH8VP9w==", + "http-proxy-middleware": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.17.4.tgz", + "integrity": "sha1-ZC6ISIUdZvCdTxJJEoRtuutBuDM=", "dev": true, "requires": { - "colors": "1.0.3", - "corser": "2.0.1", - "ecstatic": "3.2.0", "http-proxy": "1.16.2", - "opener": "1.4.3", - "optimist": "0.6.1", - "portfinder": "1.0.13", - "union": "0.4.6" + "is-glob": "3.1.0", + "lodash": "4.17.5", + "micromatch": "2.3.11" + }, + "dependencies": { + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true + }, + "is-glob": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", + "dev": true, + "requires": { + "is-extglob": "2.1.1" + } + } } }, "http-signature": { @@ -5539,7 +6215,7 @@ "requires": { "assert-plus": "0.2.0", "jsprim": "1.4.1", - "sshpk": "1.13.1" + "sshpk": "1.14.1" } }, "httpntlm": { @@ -5559,9 +6235,9 @@ "dev": true }, "https-browserify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-0.0.1.tgz", - "integrity": "sha1-P5E2XKvmC3ftDruiS0VOPgnZWoI=", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", + "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", "dev": true }, "https-proxy-agent": { @@ -5575,6 +6251,107 @@ "extend": "3.0.1" } }, + "husky": { + "version": "0.15.0-rc.13", + "resolved": "https://registry.npmjs.org/husky/-/husky-0.15.0-rc.13.tgz", + "integrity": "sha512-J9bDyA3vllcIDPmYquNMuklEWKoHEhjqA3YG23Pic130ZueTks23JcjlVwMxWnf4dOjqEadwYFxG3svLFXZhYA==", + "dev": true, + "requires": { + "cosmiconfig": "4.0.0", + "execa": "0.9.0", + "is-ci": "1.1.0", + "pkg-dir": "2.0.0", + "pupa": "1.0.0", + "read-pkg": "3.0.0", + "run-node": "0.2.0", + "slash": "1.0.0" + }, + "dependencies": { + "cosmiconfig": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-4.0.0.tgz", + "integrity": "sha512-6e5vDdrXZD+t5v0L8CrurPeybg4Fmf+FCSYxXKYVAqLUtyCSbuyqE059d0kDthTNRzKVjL7QMgNpEUlsoYH3iQ==", + "dev": true, + "requires": { + "is-directory": "0.3.1", + "js-yaml": "3.11.0", + "parse-json": "4.0.0", + "require-from-string": "2.0.1" + } + }, + "cross-spawn": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", + "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", + "dev": true, + "requires": { + "lru-cache": "4.1.2", + "shebang-command": "1.2.0", + "which": "1.3.0" + } + }, + "execa": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-0.9.0.tgz", + "integrity": "sha512-BbUMBiX4hqiHZUA5+JujIjNb6TyAlp2D5KLheMjMluwOuzcnylDL4AxZYLLn1n2AGB49eSWwyKvvEQoRpnAtmA==", + "dev": true, + "requires": { + "cross-spawn": "5.1.0", + "get-stream": "3.0.0", + "is-stream": "1.1.0", + "npm-run-path": "2.0.2", + "p-finally": "1.0.0", + "signal-exit": "3.0.2", + "strip-eof": "1.0.0" + } + }, + "load-json-file": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "parse-json": "4.0.0", + "pify": "3.0.0", + "strip-bom": "3.0.0" + } + }, + "parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "dev": true, + "requires": { + "error-ex": "1.3.1", + "json-parse-better-errors": "1.0.1" + } + }, + "read-pkg": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "dev": true, + "requires": { + "load-json-file": "4.0.0", + "normalize-package-data": "2.4.0", + "path-type": "3.0.0" + } + }, + "require-from-string": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.1.tgz", + "integrity": "sha1-xUUjPp19pmFunVmt+zn8n1iGdv8=", + "dev": true + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "dev": true + } + } + }, "iconv-lite": { "version": "0.4.19", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz", @@ -5582,9 +6359,21 @@ "dev": true }, "ieee754": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.8.tgz", - "integrity": "sha1-vjPUCsEO8ZJnAfbwii2G+/0a0+Q=", + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.10.tgz", + "integrity": "sha512-byWFX8OyW/qeVxcY21r6Ncxl0ZYHgnf0cPup2h34eHXrCJbOp7IuqnJ4Q0omfyWl6Z++BTI6bByf31pZt7iRLg==", + "dev": true + }, + "iferr": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/iferr/-/iferr-0.1.5.tgz", + "integrity": "sha1-xg7taebY/bazEEofy8ocGS3FtQE=", + "dev": true + }, + "ignore": { + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.7.tgz", + "integrity": "sha512-YGG3ejvBNHRqu0559EOxxNFihD0AjpvHlC/pdGKd3X3ofe+CoJkYazwNJYTNebqpPKN+VVQbh4ZFn1DivMNuHA==", "dev": true }, "image-size": { @@ -5594,18 +6383,22 @@ "dev": true, "optional": true }, - "immutable": { - "version": "3.8.1", - "resolved": "https://registry.npmjs.org/immutable/-/immutable-3.8.1.tgz", - "integrity": "sha1-IAgH8Rqw9ycQ6khVQt4IgHX2jNI=", - "dev": true - }, "import-lazy": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", "integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=", "dev": true }, + "import-local": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-1.0.0.tgz", + "integrity": "sha512-vAaZHieK9qjGo58agRBg+bhHX3hoTZU/Oa3GESWLz7t1U62fk63aHuDJJEteXoDeTCcPmUT+z38gkHPZkkmpmQ==", + "dev": true, + "requires": { + "pkg-dir": "2.0.0", + "resolve-cwd": "2.0.0" + } + }, "imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", @@ -5657,9 +6450,9 @@ "dev": true }, "ini": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.4.tgz", - "integrity": "sha1-BTfLedr1m1mhpRff9wbIbsA5Fi4=", + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", + "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", "dev": true }, "injection-js": { @@ -5686,7 +6479,7 @@ "JSONStream": "1.3.2", "combine-source-map": "0.7.2", "concat-stream": "1.6.2", - "is-buffer": "1.1.5", + "is-buffer": "1.1.6", "lexical-scope": "1.2.0", "process": "0.11.10", "through2": "2.0.3", @@ -5705,62 +6498,38 @@ "source-map": "0.5.7" } }, - "concat-stream": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", - "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", - "dev": true, - "requires": { - "buffer-from": "1.0.0", - "inherits": "2.0.3", - "readable-stream": "2.3.5", - "typedarray": "0.0.6" - } - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "convert-source-map": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz", + "integrity": "sha1-SCnId+n+SbMWHzvzZziI4gRpmGA=", "dev": true - }, - "readable-stream": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", - "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", - "dev": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "2.0.0", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", - "dev": true, - "requires": { - "safe-buffer": "5.1.1" - } } } }, + "internal-ip": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/internal-ip/-/internal-ip-1.2.0.tgz", + "integrity": "sha1-rp+/k7mEh4eF1QqN4bNWlWBYz1w=", + "dev": true, + "requires": { + "meow": "3.7.0" + } + }, "interpret": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.0.4.tgz", - "integrity": "sha1-ggzdWIuGj/sZGoCVBtbJyPISsbA=", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.1.0.tgz", + "integrity": "sha1-ftGxQQxqDg94z5XTuEQMY/eLhhQ=", "dev": true }, + "invariant": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", + "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", + "dev": true, + "requires": { + "loose-envify": "1.3.1" + } + }, "invert-kv": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", @@ -5768,26 +6537,32 @@ "dev": true }, "ip": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.0.1.tgz", - "integrity": "sha1-x+NWzeoiWucbNtcPLnGpK6TkJZA=", - "dev": true, - "optional": true + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", + "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=", + "dev": true }, - "irregular-plurals": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-1.4.0.tgz", - "integrity": "sha1-LKmwM2UREYVUEvFr5dd8YqRYp2Y=", + "ipaddr.js": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.6.0.tgz", + "integrity": "sha1-4/o1e3c9phnybpXwSdBVxyeW+Gs=", "dev": true }, - "is-absolute": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-0.2.6.tgz", - "integrity": "sha1-IN5p89uULvLYe5wto28XIjWxtes=", + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", "dev": true, "requires": { - "is-relative": "0.2.1", - "is-windows": "0.2.0" + "kind-of": "6.0.2" + }, + "dependencies": { + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true + } } }, "is-arrayish": { @@ -5802,13 +6577,13 @@ "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", "dev": true, "requires": { - "binary-extensions": "1.10.0" + "binary-extensions": "1.11.0" } }, "is-buffer": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.5.tgz", - "integrity": "sha1-Hzsm72E7IUuIy8ojzGwB2Hlh7sw=", + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", "dev": true }, "is-builtin-module": { @@ -5820,6 +6595,69 @@ "builtin-modules": "1.1.1" } }, + "is-callable": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.3.tgz", + "integrity": "sha1-hut1OSgF3cM69xySoO7fdO52BLI=", + "dev": true + }, + "is-ci": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-1.1.0.tgz", + "integrity": "sha512-c7TnwxLePuqIlxHgr7xtxzycJPegNHFuIrBkwbf8hc58//+Op1CqFkyS+xnIMkwn9UsJIwc174BIjkyBmSpjKg==", + "dev": true, + "requires": { + "ci-info": "1.1.3" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "6.0.2" + }, + "dependencies": { + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true + } + } + }, + "is-date-object": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz", + "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=", + "dev": true + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + }, + "dependencies": { + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true + } + } + }, + "is-directory": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/is-directory/-/is-directory-0.3.1.tgz", + "integrity": "sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE=", + "dev": true + }, "is-dotfile": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.3.tgz", @@ -5865,6 +6703,12 @@ "number-is-nan": "1.0.1" } }, + "is-generator-fn": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-1.0.0.tgz", + "integrity": "sha1-lp1J4bszKfa7fwkIm+JleLLd1Go=", + "dev": true + }, "is-glob": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", @@ -5924,21 +6768,46 @@ "kind-of": "3.2.2" } }, - "is-number-like": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/is-number-like/-/is-number-like-1.0.8.tgz", - "integrity": "sha1-LhKWILUIkQQuROm7uzBZPnXPu+M=", - "dev": true, - "requires": { - "lodash.isfinite": "3.3.2" - } - }, "is-obj": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", "dev": true }, + "is-observable": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/is-observable/-/is-observable-0.2.0.tgz", + "integrity": "sha1-s2ExHYPG5dcmyr9eJQsCNxBvWuI=", + "dev": true, + "requires": { + "symbol-observable": "0.2.4" + }, + "dependencies": { + "symbol-observable": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-0.2.4.tgz", + "integrity": "sha1-lag9smGG1q9+ehjb2XYKL4bQj0A=", + "dev": true + } + } + }, + "is-odd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-odd/-/is-odd-2.0.0.tgz", + "integrity": "sha512-OTiixgpZAT1M4NHgS5IguFp/Vz2VI3U7Goh4/HA1adtwyLtSBrxYlcSYkhpAE07s4fKEcjrFxyvtQBND4vFQyQ==", + "dev": true, + "requires": { + "is-number": "4.0.0" + }, + "dependencies": { + "is-number": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", + "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", + "dev": true + } + } + }, "is-path-cwd": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", @@ -5963,10 +6832,16 @@ "path-is-inside": "1.0.2" } }, + "is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", + "dev": true + }, "is-plain-object": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha1-LBY7P6+xtgbZ0Xko8FwqHDjgdnc=", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", "dev": true, "requires": { "isobject": "3.0.1" @@ -5992,6 +6867,12 @@ "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", "dev": true }, + "is-promise": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz", + "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=", + "dev": true + }, "is-property": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz", @@ -6004,23 +6885,20 @@ "integrity": "sha1-HQPd7VO9jbDzDCbk+V02/HyH3CQ=", "dev": true }, - "is-reference": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.1.0.tgz", - "integrity": "sha512-h37O/IX4efe56o9k41II1ECMqKwtqHa7/12dLDEzJIFux2x15an4WCDb0/eKdmUgRpLJ3bR0DrzDc7vOrVgRDw==", + "is-regex": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", + "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", "dev": true, "requires": { - "@types/estree": "0.0.38" + "has": "1.0.1" } }, - "is-relative": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-0.2.1.tgz", - "integrity": "sha1-0n9MfVFtF1+2ENuEu+7yPDvJeqU=", - "dev": true, - "requires": { - "is-unc-path": "0.1.2" - } + "is-regexp": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz", + "integrity": "sha1-/S2INUXEa6xaYz57mgnof6LLUGk=", + "dev": true }, "is-retry-allowed": { "version": "1.1.0", @@ -6034,21 +6912,27 @@ "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", "dev": true }, - "is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "is-symbol": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.1.tgz", + "integrity": "sha1-PMWfAAJRlLarLjjbrmaJJWtmBXI=", "dev": true }, - "is-unc-path": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-0.1.2.tgz", - "integrity": "sha1-arBTpyVzwQJQ/0FqOBTDUXivObk=", + "is-text-path": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-text-path/-/is-text-path-1.0.1.tgz", + "integrity": "sha1-Thqg+1G/vLPpJogAE5cgLBd1tm4=", "dev": true, "requires": { - "unc-path-regex": "0.1.2" + "text-extensions": "1.7.0" } }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "dev": true + }, "is-utf8": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", @@ -6056,15 +6940,21 @@ "dev": true }, "is-windows": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-0.2.0.tgz", - "integrity": "sha1-3hqm1j6indJIc3tp8f+LgALSEIw=", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "dev": true + }, + "is-wsl": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz", + "integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=", "dev": true }, "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", "dev": true }, "isbinaryfile": { @@ -6086,14 +6976,6 @@ "dev": true, "requires": { "isarray": "1.0.0" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - } } }, "isstream": { @@ -6102,1624 +6984,1343 @@ "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", "dev": true }, - "jasmine-ajax": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/jasmine-ajax/-/jasmine-ajax-3.3.1.tgz", - "integrity": "sha1-+MrZ/Unf1E8895jTb06FfRJcdcU=", - "dev": true - }, - "jasmine-core": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-3.1.0.tgz", - "integrity": "sha1-pHheE11d9lAk38kiSVPfWFvSdmw=", - "dev": true - }, - "js-base64": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.4.3.tgz", - "integrity": "sha512-H7ErYLM34CvDMto3GbD6xD0JLUGYXR3QTcH6B/tr4Hi/QpSThnCsIp+Sy5FRTw3B0d6py4HcNkW7nO/wdtGWEw==", - "dev": true - }, - "js-tokens": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", - "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", - "dev": true + "istanbul-api": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/istanbul-api/-/istanbul-api-1.3.1.tgz", + "integrity": "sha512-duj6AlLcsWNwUpfyfHt0nWIeRiZpuShnP40YTxOGQgtaN8fd6JYSxsvxUphTDy8V5MfDXo4s/xVCIIvVCO808g==", + "dev": true, + "requires": { + "async": "2.6.0", + "compare-versions": "3.1.0", + "fileset": "2.0.3", + "istanbul-lib-coverage": "1.2.0", + "istanbul-lib-hook": "1.2.0", + "istanbul-lib-instrument": "1.10.1", + "istanbul-lib-report": "1.1.4", + "istanbul-lib-source-maps": "1.2.4", + "istanbul-reports": "1.3.0", + "js-yaml": "3.11.0", + "mkdirp": "0.5.1", + "once": "1.4.0" + } }, - "js-yaml": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.11.0.tgz", - "integrity": "sha512-saJstZWv7oNeOyBh3+Dx1qWzhW0+e6/8eDzo7p5rDFqxntSztloLtuKu+Ejhtq82jsilwOIZYsCz+lIjthg1Hw==", + "istanbul-instrumenter-loader": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-instrumenter-loader/-/istanbul-instrumenter-loader-3.0.0.tgz", + "integrity": "sha512-alLSEFX06ApU75sm5oWcaVNaiss/bgMRiWTct3g0P0ZZTKjR+6QiCcuVOKDI1kWJgwHEnIXsv/dWm783kPpmtw==", "dev": true, "requires": { - "argparse": "1.0.10", - "esprima": "4.0.0" + "convert-source-map": "1.5.1", + "istanbul-lib-instrument": "1.10.1", + "loader-utils": "1.1.0", + "schema-utils": "0.3.0" }, "dependencies": { - "esprima": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.0.tgz", - "integrity": "sha512-oftTcaMu/EGrEIu904mWteKIv8vMuOgGYo7EhVJJN00R/EED9DCua/xxHRdYnKtcECzVg7xOWhflvJMnqcFZjw==", - "dev": true + "ajv": { + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", + "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", + "dev": true, + "requires": { + "co": "4.6.0", + "fast-deep-equal": "1.1.0", + "fast-json-stable-stringify": "2.0.0", + "json-schema-traverse": "0.3.1" + } + }, + "schema-utils": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-0.3.0.tgz", + "integrity": "sha1-9YdyIs4+kx7a4DnxfrNxbnE3+M8=", + "dev": true, + "requires": { + "ajv": "5.5.2" + } } } }, - "jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", - "dev": true, - "optional": true - }, - "json-loader": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/json-loader/-/json-loader-0.5.7.tgz", - "integrity": "sha1-3KFKcCNf+C8KyaOr62DTN6NlGF0=", - "dev": true - }, - "json-parse-better-errors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.1.tgz", - "integrity": "sha512-xyQpxeWWMKyJps9CuGJYeng6ssI5bpqS9ltQpdVQ90t4ql6NdnxFKh95JcRt2cun/DjMVNrdjniLPuMA69xmCw==", - "dev": true - }, - "json-schema": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", + "istanbul-lib-coverage": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-1.2.0.tgz", + "integrity": "sha512-GvgM/uXRwm+gLlvkWHTjDAvwynZkL9ns15calTrmhGgowlwJBbWMYzWbKqE2DT6JDP1AFXKa+Zi0EkqNCUqY0A==", "dev": true }, - "json-stable-stringify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", - "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", + "istanbul-lib-hook": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-hook/-/istanbul-lib-hook-1.2.0.tgz", + "integrity": "sha512-p3En6/oGkFQV55Up8ZPC2oLxvgSxD8CzA0yBrhRZSh3pfv3OFj9aSGVC0yoerAi/O4u7jUVnOGVX1eVFM+0tmQ==", "dev": true, "requires": { - "jsonify": "0.0.0" + "append-transform": "0.4.0" } }, - "json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", - "dev": true - }, - "json3": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.2.tgz", - "integrity": "sha1-PAQ0dD35Pi9cQq7nsZvLSDV19OE=", - "dev": true - }, - "json5": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", - "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=", - "dev": true + "istanbul-lib-instrument": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-1.10.1.tgz", + "integrity": "sha512-1dYuzkOCbuR5GRJqySuZdsmsNKPL3PTuyPevQfoCXJePT9C8y1ga75neU+Tuy9+yS3G/dgx8wgOmp2KLpgdoeQ==", + "dev": true, + "requires": { + "babel-generator": "6.26.1", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "istanbul-lib-coverage": "1.2.0", + "semver": "5.5.0" + } }, - "jsonfile": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz", - "integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug=", + "istanbul-lib-report": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-1.1.4.tgz", + "integrity": "sha512-Azqvq5tT0U09nrncK3q82e/Zjkxa4tkFZv7E6VcqP0QCPn6oNljDPfrZEC/umNXds2t7b8sRJfs6Kmpzt8m2kA==", "dev": true, "requires": { - "graceful-fs": "4.1.11" + "istanbul-lib-coverage": "1.2.0", + "mkdirp": "0.5.1", + "path-parse": "1.0.5", + "supports-color": "3.2.3" }, "dependencies": { - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true, - "optional": true - } - } - }, - "jsonify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", - "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", - "dev": true - }, - "jsonparse": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", - "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=", - "dev": true - }, - "jsonpointer": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-4.0.1.tgz", - "integrity": "sha1-T9kss04OnbPInIYi7PUfm5eMbLk=", - "dev": true - }, - "jsprim": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", - "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", - "dev": true, - "requires": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.2.3", - "verror": "1.10.0" - }, - "dependencies": { - "assert-plus": { + "has-flag": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", + "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", "dev": true + }, + "supports-color": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", + "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", + "dev": true, + "requires": { + "has-flag": "1.0.0" + } } } }, - "karma": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/karma/-/karma-2.0.0.tgz", - "integrity": "sha512-K9Kjp8CldLyL9ANSUctDyxC7zH3hpqXj/K09qVf06K3T/kXaHtFZ5tQciK7OzQu68FLvI89Na510kqQ2LCbpIw==", + "istanbul-lib-source-maps": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.2.4.tgz", + "integrity": "sha512-UzuK0g1wyQijiaYQxj/CdNycFhAd2TLtO2obKQMTZrZ1jzEMRY3rvpASEKkaxbRR6brvdovfA03znPa/pXcejg==", "dev": true, "requires": { - "bluebird": "3.5.1", - "body-parser": "1.18.2", - "browserify": "14.5.0", - "chokidar": "1.7.0", - "colors": "1.2.1", - "combine-lists": "1.0.1", - "connect": "3.6.6", - "core-js": "2.5.3", - "di": "0.0.1", - "dom-serialize": "2.2.1", - "expand-braces": "0.1.2", - "glob": "7.1.2", - "graceful-fs": "4.1.11", - "http-proxy": "1.16.2", - "isbinaryfile": "3.0.2", - "lodash": "4.17.5", - "log4js": "2.5.3", - "mime": "1.6.0", - "minimatch": "3.0.4", - "optimist": "0.6.1", - "qjobs": "1.2.0", - "range-parser": "1.2.0", + "debug": "3.1.0", + "istanbul-lib-coverage": "1.2.0", + "mkdirp": "0.5.1", "rimraf": "2.6.2", - "safe-buffer": "5.1.1", - "socket.io": "2.0.4", - "source-map": "0.6.1", - "tmp": "0.0.33", - "useragent": "2.3.0" + "source-map": "0.5.7" }, "dependencies": { - "colors": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.2.1.tgz", - "integrity": "sha512-s8+wktIuDSLffCywiwSxQOMqtPxML11a/dtHE17tMn4B1MSWw/C22EKf7M2KGUBcDaVFEGT+S8N02geDXeuNKg==", - "dev": true - }, - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "requires": { + "ms": "2.0.0" + } } } }, - "karma-chrome-launcher": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/karma-chrome-launcher/-/karma-chrome-launcher-2.2.0.tgz", - "integrity": "sha1-zxudBxNswY/iOTJ9JGVMPbw2is8=", + "istanbul-reports": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-1.3.0.tgz", + "integrity": "sha512-y2Z2IMqE1gefWUaVjrBm0mSKvUkaBy9Vqz8iwr/r40Y9hBbIteH5wqHG/9DLTfJ9xUnUT2j7A3+VVJ6EaYBllA==", "dev": true, "requires": { - "fs-access": "1.0.1", - "which": "1.3.0" + "handlebars": "4.0.11" } }, - "karma-cli": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/karma-cli/-/karma-cli-1.0.1.tgz", - "integrity": "sha1-rmw8WKMTodALRRZMRVubhs4X+WA=", + "jasmine": { + "version": "2.99.0", + "resolved": "https://registry.npmjs.org/jasmine/-/jasmine-2.99.0.tgz", + "integrity": "sha1-jKctEC5jm4Z8ZImFbg4YqceqQrc=", "dev": true, "requires": { - "resolve": "1.4.0" + "exit": "0.1.2", + "glob": "7.1.2", + "jasmine-core": "2.99.1" + }, + "dependencies": { + "jasmine-core": { + "version": "2.99.1", + "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-2.99.1.tgz", + "integrity": "sha1-5kAN8ea1bhMLYcS80JPap/boyhU=", + "dev": true + } } }, - "karma-htmlfile-reporter": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/karma-htmlfile-reporter/-/karma-htmlfile-reporter-0.3.5.tgz", - "integrity": "sha1-CavKmRCj6x27onqadmAmlIyWygQ=", + "jasmine-core": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-2.8.0.tgz", + "integrity": "sha1-vMl5rh+f0FcB5F5S5l06XWPxok4=", + "dev": true + }, + "jasmine-spec-reporter": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/jasmine-spec-reporter/-/jasmine-spec-reporter-4.2.1.tgz", + "integrity": "sha512-FZBoZu7VE5nR7Nilzy+Np8KuVIOxF4oXDPDknehCYBDE080EnlPu0afdZNmpGDBRCUBv3mj5qgqCRmk6W/K8vg==", "dev": true, "requires": { - "xmlbuilder": "3.1.0" + "colors": "1.1.2" } }, - "karma-jasmine": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/karma-jasmine/-/karma-jasmine-1.1.1.tgz", - "integrity": "sha1-b+hA51oRYAydkehLM8RY4cRqNSk=", - "dev": true - }, - "karma-jasmine-ajax": { - "version": "0.1.13", - "resolved": "https://registry.npmjs.org/karma-jasmine-ajax/-/karma-jasmine-ajax-0.1.13.tgz", - "integrity": "sha1-eLuS2Jb+MqJaGACYxHci4dlgW/w=", + "jest-config": { + "version": "22.4.3", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-22.4.3.tgz", + "integrity": "sha512-KSg3EOToCgkX+lIvenKY7J8s426h6ahXxaUFJxvGoEk0562Z6inWj1TnKoGycTASwiLD+6kSYFALcjdosq9KIQ==", "dev": true, "requires": { - "jasmine-ajax": "3.3.1" + "chalk": "2.2.2", + "glob": "7.1.2", + "jest-environment-jsdom": "22.4.3", + "jest-environment-node": "22.4.3", + "jest-get-type": "22.4.3", + "jest-jasmine2": "22.4.3", + "jest-regex-util": "22.4.3", + "jest-resolve": "22.4.3", + "jest-util": "22.4.3", + "jest-validate": "22.4.3", + "pretty-format": "22.4.3" } }, - "karma-jasmine-html-reporter": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/karma-jasmine-html-reporter/-/karma-jasmine-html-reporter-1.0.0.tgz", - "integrity": "sha512-SN9R/Pl9cY40yLlc7FkTcfswUr19M6ZZ25eM8X5wtZ0gvp0gneWZbe5lPYcer/Yrbz0D6QUiTSJaEzr3KBPvSg==", + "jest-diff": { + "version": "22.4.3", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-22.4.3.tgz", + "integrity": "sha512-/QqGvCDP5oZOF6PebDuLwrB2BMD8ffJv6TAGAdEVuDx1+uEgrHpSFrfrOiMRx2eJ1hgNjlQrOQEHetVwij90KA==", "dev": true, "requires": { - "karma-jasmine": "1.1.1" + "chalk": "2.2.2", + "diff": "3.5.0", + "jest-get-type": "22.4.3", + "pretty-format": "22.4.3" } }, - "karma-phantomjs-launcher": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/karma-phantomjs-launcher/-/karma-phantomjs-launcher-1.0.4.tgz", - "integrity": "sha1-0jyjSAG9qYY60xjju0vUBisTrNI=", + "jest-environment-jsdom": { + "version": "22.4.3", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-22.4.3.tgz", + "integrity": "sha512-FviwfR+VyT3Datf13+ULjIMO5CSeajlayhhYQwpzgunswoaLIPutdbrnfUHEMyJCwvqQFaVtTmn9+Y8WCt6n1w==", "dev": true, "requires": { - "lodash": "4.17.5", - "phantomjs-prebuilt": "2.1.15" + "jest-mock": "22.4.3", + "jest-util": "22.4.3", + "jsdom": "11.6.2" } }, - "karma-sourcemap-loader": { - "version": "0.3.7", - "resolved": "https://registry.npmjs.org/karma-sourcemap-loader/-/karma-sourcemap-loader-0.3.7.tgz", - "integrity": "sha1-kTIsd/jxPUb+0GKwQuEAnUxFBdg=", + "jest-environment-node": { + "version": "22.4.3", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-22.4.3.tgz", + "integrity": "sha512-reZl8XF6t/lMEuPWwo9OLfttyC26A5AMgDyEQ6DBgZuyfyeNUzYT8BFo6uxCCP/Av/b7eb9fTi3sIHFPBzmlRA==", "dev": true, "requires": { - "graceful-fs": "4.1.11" - }, - "dependencies": { - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true - } + "jest-mock": "22.4.3", + "jest-util": "22.4.3" } }, - "karma-webpack": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/karma-webpack/-/karma-webpack-3.0.0.tgz", - "integrity": "sha512-Ja1o9LLoqWaJyUNhTKaXjWiEH9y7a9H3mzP8pYB30SBsgoF5KBS/65NeHFd+QPuT9ITrym8xFt8BZeGbcOfujA==", + "jest-get-type": { + "version": "22.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-22.4.3.tgz", + "integrity": "sha512-/jsz0Y+V29w1chdXVygEKSz2nBoHoYqNShPe+QgxSNjAuP1i8+k4LbQNrfoliKej0P45sivkSCh7yiD6ubHS3w==", + "dev": true + }, + "jest-jasmine2": { + "version": "22.4.3", + "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-22.4.3.tgz", + "integrity": "sha512-yZCPCJUcEY6R5KJB/VReo1AYI2b+5Ky+C+JA1v34jndJsRcLpU4IZX4rFJn7yDTtdNbO/nNqg+3SDIPNH2ecnw==", "dev": true, "requires": { - "async": "2.6.0", - "babel-runtime": "6.26.0", - "loader-utils": "1.1.0", - "lodash": "4.17.5", - "source-map": "0.5.7", - "webpack-dev-middleware": "2.0.6" + "chalk": "2.2.2", + "co": "4.6.0", + "expect": "22.4.3", + "graceful-fs": "4.1.11", + "is-generator-fn": "1.0.0", + "jest-diff": "22.4.3", + "jest-matcher-utils": "22.4.3", + "jest-message-util": "22.4.3", + "jest-snapshot": "22.4.3", + "jest-util": "22.4.3", + "source-map-support": "0.5.4" }, "dependencies": { - "async": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.0.tgz", - "integrity": "sha512-xAfGg1/NTLBBKlHFmnd7PlmUW9KhVQIUuSrYem9xzFUZy13ScvtyGGejaae9iAVRiRq9+Cx7DPFaAAhCpyxyPw==", - "dev": true, - "requires": { - "lodash": "4.17.5" - } + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true }, - "loader-utils": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz", - "integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=", + "source-map-support": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.4.tgz", + "integrity": "sha512-PETSPG6BjY1AHs2t64vS2aqAgu6dMIMXJULWFBGbh2Gr8nVLbCFDo6i/RMMvviIQ2h1Z8+5gQhVKSn2je9nmdg==", "dev": true, "requires": { - "big.js": "3.2.0", - "emojis-list": "2.1.0", - "json5": "0.5.1" + "source-map": "0.6.1" } } } }, - "kew": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/kew/-/kew-0.7.0.tgz", - "integrity": "sha1-edk9LTM2PW/dKXCzNdkUGtWR15s=", - "dev": true - }, - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "jest-matcher-utils": { + "version": "22.4.3", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-22.4.3.tgz", + "integrity": "sha512-lsEHVaTnKzdAPR5t4B6OcxXo9Vy4K+kRRbG5gtddY8lBEC+Mlpvm1CJcsMESRjzUhzkz568exMV1hTB76nAKbA==", "dev": true, "requires": { - "is-buffer": "1.1.5" + "chalk": "2.2.2", + "jest-get-type": "22.4.3", + "pretty-format": "22.4.3" } }, - "klaw": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/klaw/-/klaw-1.3.1.tgz", - "integrity": "sha1-QIhDO0azsbolnXh4XY6W9zugJDk=", + "jest-message-util": { + "version": "22.4.3", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-22.4.3.tgz", + "integrity": "sha512-iAMeKxhB3Se5xkSjU0NndLLCHtP4n+GtCqV0bISKA5dmOXQfEbdEmYiu2qpnWBDCQdEafNDDU6Q+l6oBMd/+BA==", "dev": true, "requires": { - "graceful-fs": "4.1.11" - }, - "dependencies": { - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true, - "optional": true - } + "@babel/code-frame": "7.0.0-beta.42", + "chalk": "2.2.2", + "micromatch": "2.3.11", + "slash": "1.0.0", + "stack-utils": "1.0.1" } }, - "labeled-stream-splicer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/labeled-stream-splicer/-/labeled-stream-splicer-2.0.0.tgz", - "integrity": "sha1-pS4dE4AkwAuGscDJH2d5GLiuClk=", - "dev": true, - "requires": { - "inherits": "2.0.3", - "isarray": "0.0.1", - "stream-splicer": "2.0.0" - } + "jest-mock": { + "version": "22.4.3", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-22.4.3.tgz", + "integrity": "sha512-+4R6mH5M1G4NK16CKg9N1DtCaFmuxhcIqF4lQK/Q1CIotqMs/XBemfpDPeVZBFow6iyUNu6EBT9ugdNOTT5o5Q==", + "dev": true }, - "latest-version": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-3.1.0.tgz", - "integrity": "sha1-ogU4P+oyKzO1rjsYq+4NwvNW7hU=", + "jest-regex-util": { + "version": "22.4.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-22.4.3.tgz", + "integrity": "sha512-LFg1gWr3QinIjb8j833bq7jtQopiwdAs67OGfkPrvy7uNUbVMfTXXcOKXJaeY5GgjobELkKvKENqq1xrUectWg==", + "dev": true + }, + "jest-resolve": { + "version": "22.4.3", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-22.4.3.tgz", + "integrity": "sha512-u3BkD/MQBmwrOJDzDIaxpyqTxYH+XqAXzVJP51gt29H8jpj3QgKof5GGO2uPGKGeA1yTMlpbMs1gIQ6U4vcRhw==", "dev": true, "requires": { - "package-json": "4.0.1" + "browser-resolve": "1.11.2", + "chalk": "2.2.2" } }, - "lazy-cache": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", - "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=", - "dev": true - }, - "lcid": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", - "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", + "jest-snapshot": { + "version": "22.4.3", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-22.4.3.tgz", + "integrity": "sha512-JXA0gVs5YL0HtLDCGa9YxcmmV2LZbwJ+0MfyXBBc5qpgkEYITQFJP7XNhcHFbUvRiniRpRbGVfJrOoYhhGE0RQ==", "dev": true, "requires": { - "invert-kv": "1.0.0" + "chalk": "2.2.2", + "jest-diff": "22.4.3", + "jest-matcher-utils": "22.4.3", + "mkdirp": "0.5.1", + "natural-compare": "1.4.0", + "pretty-format": "22.4.3" } }, - "less": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/less/-/less-2.7.3.tgz", - "integrity": "sha512-KPdIJKWcEAb02TuJtaLrhue0krtRLoRoo7x6BNJIBelO00t/CCdJQUnHW5V34OnHMWzIktSalJxRO+FvytQlCQ==", + "jest-util": { + "version": "22.4.3", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-22.4.3.tgz", + "integrity": "sha512-rfDfG8wyC5pDPNdcnAlZgwKnzHvZDu8Td2NJI/jAGKEGxJPYiE4F0ss/gSAkG4778Y23Hvbz+0GMrDJTeo7RjQ==", "dev": true, "requires": { - "errno": "0.1.4", + "callsites": "2.0.0", + "chalk": "2.2.2", "graceful-fs": "4.1.11", - "image-size": "0.5.5", - "mime": "1.6.0", + "is-ci": "1.1.0", + "jest-message-util": "22.4.3", "mkdirp": "0.5.1", - "promise": "7.3.1", - "request": "2.81.0", - "source-map": "0.5.7" + "source-map": "0.6.1" }, "dependencies": { - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true, - "optional": true + "callsites": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz", + "integrity": "sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA=", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true } } }, - "levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", + "jest-validate": { + "version": "22.4.3", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-22.4.3.tgz", + "integrity": "sha512-CfFM18W3GSP/xgmA4UouIx0ljdtfD2mjeBC6c89Gg17E44D4tQhAcTrZmf9djvipwU30kSTnk6CzcxdCCeSXfA==", "dev": true, - "optional": true, "requires": { - "prelude-ls": "1.1.2", - "type-check": "0.3.2" + "chalk": "2.2.2", + "jest-config": "22.4.3", + "jest-get-type": "22.4.3", + "leven": "2.1.0", + "pretty-format": "22.4.3" } }, - "lexical-scope": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/lexical-scope/-/lexical-scope-1.2.0.tgz", - "integrity": "sha1-/Ope3HBKSzqHls3KQZw6CvryLfQ=", - "dev": true, - "requires": { - "astw": "2.2.0" - } + "js-base64": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.4.3.tgz", + "integrity": "sha512-H7ErYLM34CvDMto3GbD6xD0JLUGYXR3QTcH6B/tr4Hi/QpSThnCsIp+Sy5FRTw3B0d6py4HcNkW7nO/wdtGWEw==", + "dev": true }, - "libbase64": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/libbase64/-/libbase64-0.1.0.tgz", - "integrity": "sha1-YjUag5VjrF/1vSbxL2Dpgwu3UeY=", + "js-tokens": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", + "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", "dev": true }, - "libmime": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/libmime/-/libmime-3.0.0.tgz", - "integrity": "sha1-UaGp50SOy9Ms2lRCFnW7IbwJPaY=", - "dev": true, - "requires": { - "iconv-lite": "0.4.15", - "libbase64": "0.1.0", - "libqp": "1.1.0" - }, - "dependencies": { - "iconv-lite": { - "version": "0.4.15", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.15.tgz", - "integrity": "sha1-/iZaIYrGpXz+hUkn6dBMGYJe3es=", - "dev": true - } - } - }, - "libqp": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/libqp/-/libqp-1.1.0.tgz", - "integrity": "sha1-9ebgatdLeU+1tbZpiL9yjvHe2+g=", - "dev": true - }, - "liftoff": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/liftoff/-/liftoff-2.3.0.tgz", - "integrity": "sha1-qY8v9nGD2Lp8+soQVIvX/wVQs4U=", + "js-yaml": { + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.11.0.tgz", + "integrity": "sha512-saJstZWv7oNeOyBh3+Dx1qWzhW0+e6/8eDzo7p5rDFqxntSztloLtuKu+Ejhtq82jsilwOIZYsCz+lIjthg1Hw==", "dev": true, "requires": { - "extend": "3.0.1", - "findup-sync": "0.4.3", - "fined": "1.1.0", - "flagged-respawn": "0.3.2", - "lodash.isplainobject": "4.0.6", - "lodash.isstring": "4.0.1", - "lodash.mapvalues": "4.6.0", - "rechoir": "0.6.2", - "resolve": "1.4.0" + "argparse": "1.0.10", + "esprima": "4.0.0" } }, - "limiter": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/limiter/-/limiter-1.1.2.tgz", - "integrity": "sha1-Ip2AVYkcixGvng7lIA6OCbs9y+s=", - "dev": true - }, - "lite-server": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/lite-server/-/lite-server-2.3.0.tgz", - "integrity": "sha1-W0zI9dX9SDYQVICrKsSKOg3isMg=", + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", "dev": true, - "requires": { - "browser-sync": "2.18.13", - "connect-history-api-fallback": "1.4.0", - "connect-logger": "0.0.1", - "lodash": "4.17.5", - "minimist": "1.2.0" - } + "optional": true }, - "load-json-file": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", - "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", + "jsdom": { + "version": "11.6.2", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-11.6.2.tgz", + "integrity": "sha512-pAeZhpbSlUp5yQcS6cBQJwkbzmv4tWFaYxHbFVSxzXefqjvtRA851Z5N2P+TguVG9YeUDcgb8pdeVQRJh0XR3Q==", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "parse-json": "2.2.0", - "pify": "2.3.0", - "pinkie-promise": "2.0.1", - "strip-bom": "2.0.0" + "abab": "1.0.4", + "acorn": "5.5.3", + "acorn-globals": "4.1.0", + "array-equal": "1.0.0", + "browser-process-hrtime": "0.1.2", + "content-type-parser": "1.0.2", + "cssom": "0.3.2", + "cssstyle": "0.2.37", + "domexception": "1.0.1", + "escodegen": "1.9.1", + "html-encoding-sniffer": "1.0.2", + "left-pad": "1.2.0", + "nwmatcher": "1.4.4", + "parse5": "4.0.0", + "pn": "1.1.0", + "request": "2.85.0", + "request-promise-native": "1.0.5", + "sax": "1.2.4", + "symbol-tree": "3.2.2", + "tough-cookie": "2.3.4", + "w3c-hr-time": "1.0.1", + "webidl-conversions": "4.0.2", + "whatwg-encoding": "1.0.3", + "whatwg-url": "6.4.0", + "ws": "4.1.0", + "xml-name-validator": "3.0.0" }, "dependencies": { - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "ajv": { + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", + "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", + "dev": true, + "requires": { + "co": "4.6.0", + "fast-deep-equal": "1.1.0", + "fast-json-stable-stringify": "2.0.0", + "json-schema-traverse": "0.3.1" + } + }, + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", "dev": true }, - "strip-bom": { + "aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", + "dev": true + }, + "boom": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/boom/-/boom-4.3.1.tgz", + "integrity": "sha1-T4owBctKfjiJ90kDD9JbluAdLjE=", + "dev": true, + "requires": { + "hoek": "4.2.1" + } + }, + "cryptiles": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-3.1.2.tgz", + "integrity": "sha1-qJ+7Ig9c4l7FboxKqKT9e1sNKf4=", + "dev": true, + "requires": { + "boom": "5.2.0" + }, + "dependencies": { + "boom": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/boom/-/boom-5.2.0.tgz", + "integrity": "sha512-Z5BTk6ZRe4tXXQlkqftmsAUANpXmuwlsF5Oov8ThoMbQRzdGTA1ngYRW160GexgOgjsFOKJz0LYhoNi+2AMBUw==", + "dev": true, + "requires": { + "hoek": "4.2.1" + } + } + } + }, + "form-data": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz", + "integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=", + "dev": true, + "requires": { + "asynckit": "0.4.0", + "combined-stream": "1.0.6", + "mime-types": "2.1.18" + } + }, + "har-schema": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", - "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", + "dev": true + }, + "har-validator": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz", + "integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=", "dev": true, "requires": { - "is-utf8": "0.2.1" + "ajv": "5.5.2", + "har-schema": "2.0.0" } - } - } - }, - "loader-runner": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.3.0.tgz", - "integrity": "sha1-9IKuqC1UPgeSFwDVpG7yb9rGuKI=", - "dev": true - }, - "loader-utils": { - "version": "0.2.17", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-0.2.17.tgz", - "integrity": "sha1-+G5jdNQyBabmxg6RlvF8Apm/s0g=", - "dev": true, - "requires": { - "big.js": "3.2.0", - "emojis-list": "2.1.0", - "json5": "0.5.1", - "object-assign": "4.1.1" - } - }, - "localtunnel": { - "version": "1.8.3", - "resolved": "https://registry.npmjs.org/localtunnel/-/localtunnel-1.8.3.tgz", - "integrity": "sha1-3MWSL9hWUQN9S94k/ZMkjQsk6wU=", - "dev": true, - "requires": { - "debug": "2.6.8", - "openurl": "1.1.1", - "request": "2.81.0", - "yargs": "3.29.0" - }, - "dependencies": { - "camelcase": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", - "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", + }, + "hawk": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/hawk/-/hawk-6.0.2.tgz", + "integrity": "sha512-miowhl2+U7Qle4vdLqDdPt9m09K6yZhkLDTWGoUiUzrQCn+mHHSmfJgAyGaLRZbPmTqfFFjRV1QWCW0VWUJBbQ==", + "dev": true, + "requires": { + "boom": "4.3.1", + "cryptiles": "3.1.2", + "hoek": "4.2.1", + "sntp": "2.1.0" + } + }, + "hoek": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/hoek/-/hoek-4.2.1.tgz", + "integrity": "sha512-QLg82fGkfnJ/4iy1xZ81/9SIJiq1NGFUMGs6ParyjBZr6jW2Ufj/snDqTHixNlHdPNwN2RLVD0Pi3igeK9+JfA==", "dev": true }, - "debug": { - "version": "2.6.8", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.8.tgz", - "integrity": "sha1-5zFTHKLt4n0YgiJCfaF4IdaP9Pw=", + "http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", "dev": true, "requires": { - "ms": "2.0.0" + "assert-plus": "1.0.0", + "jsprim": "1.4.1", + "sshpk": "1.14.1" } }, - "yargs": { - "version": "3.29.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.29.0.tgz", - "integrity": "sha1-GquWYOrnnYuPZ1vK7qtu40ws9pw=", + "performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", + "dev": true + }, + "qs": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz", + "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A==", + "dev": true + }, + "request": { + "version": "2.85.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.85.0.tgz", + "integrity": "sha512-8H7Ehijd4js+s6wuVPLjwORxD4zeuyjYugprdOXlPSqaApmL/QOy+EB/beICHVCHkGMKNh5rvihb5ov+IDw4mg==", "dev": true, "requires": { - "camelcase": "1.2.1", - "cliui": "3.2.0", - "decamelize": "1.2.0", - "os-locale": "1.4.0", - "window-size": "0.1.4", - "y18n": "3.2.1" + "aws-sign2": "0.7.0", + "aws4": "1.6.0", + "caseless": "0.12.0", + "combined-stream": "1.0.6", + "extend": "3.0.1", + "forever-agent": "0.6.1", + "form-data": "2.3.2", + "har-validator": "5.0.3", + "hawk": "6.0.2", + "http-signature": "1.2.0", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.18", + "oauth-sign": "0.8.2", + "performance-now": "2.1.0", + "qs": "6.5.1", + "safe-buffer": "5.1.1", + "stringstream": "0.0.5", + "tough-cookie": "2.3.4", + "tunnel-agent": "0.6.0", + "uuid": "3.2.1" } - } - } - }, - "locate-character": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/locate-character/-/locate-character-2.0.5.tgz", - "integrity": "sha512-n2GmejDXtOPBAZdIiEFy5dJ5N38xBCXLNOtw2WpB9kGh6pnrEuKlwYI+Tkpofc4wDtVXHtoAOJaMRlYG/oYaxg==", - "dev": true - }, - "locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", - "dev": true, - "requires": { - "p-locate": "2.0.0", - "path-exists": "3.0.0" - }, - "dependencies": { - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + }, + "sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", "dev": true + }, + "sntp": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/sntp/-/sntp-2.1.0.tgz", + "integrity": "sha512-FL1b58BDrqS3A11lJ0zEdnJ3UOKqVxawAkF3k7F0CVN7VQ34aZrV+G8BZ1WC9ZL7NyrwsW0oviwsWDgRuVYtJg==", + "dev": true, + "requires": { + "hoek": "4.2.1" + } + }, + "ws": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-4.1.0.tgz", + "integrity": "sha512-ZGh/8kF9rrRNffkLFV4AzhvooEclrOH0xaugmqGsIfFgOE/pIz4fMc4Ef+5HSQqTEug2S9JZIWDR47duDSLfaA==", + "dev": true, + "requires": { + "async-limiter": "1.0.0", + "safe-buffer": "5.1.1" + } } } }, - "lodash": { - "version": "4.17.5", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", - "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==", - "dev": true - }, - "lodash._basecopy": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz", - "integrity": "sha1-jaDmqHbPNEwK2KVIghEd08XHyjY=", + "jsesc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", + "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", "dev": true }, - "lodash._basetostring": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/lodash._basetostring/-/lodash._basetostring-3.0.1.tgz", - "integrity": "sha1-0YYdh3+CSlL2aYMtyvPuFVZqB9U=", + "json-loader": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/json-loader/-/json-loader-0.5.7.tgz", + "integrity": "sha512-QLPs8Dj7lnf3e3QYS1zkCo+4ZwqOiF9d/nZnYozTISxXWCfNs9yuky5rJw4/W34s7POaNlbZmQGaB5NiXCbP4w==", "dev": true }, - "lodash._basevalues": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._basevalues/-/lodash._basevalues-3.0.0.tgz", - "integrity": "sha1-W3dXYoAr3j0yl1A+JjAIIP32Ybc=", + "json-parse-better-errors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.1.tgz", + "integrity": "sha512-xyQpxeWWMKyJps9CuGJYeng6ssI5bpqS9ltQpdVQ90t4ql6NdnxFKh95JcRt2cun/DjMVNrdjniLPuMA69xmCw==", "dev": true }, - "lodash._getnative": { - "version": "3.9.1", - "resolved": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz", - "integrity": "sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U=", + "json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", "dev": true }, - "lodash._isiterateecall": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz", - "integrity": "sha1-UgOte6Ql+uhCRg5pbbnPPmqsBXw=", + "json-schema-traverse": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", + "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=", "dev": true }, - "lodash._reescape": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._reescape/-/lodash._reescape-3.0.0.tgz", - "integrity": "sha1-Kx1vXf4HyKNVdT5fJ/rH8c3hYWo=", - "dev": true + "json-stable-stringify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", + "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", + "dev": true, + "requires": { + "jsonify": "0.0.0" + } }, - "lodash._reevaluate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._reevaluate/-/lodash._reevaluate-3.0.0.tgz", - "integrity": "sha1-WLx0xAZklTrgsSTYBpltrKQx4u0=", + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", "dev": true }, - "lodash._reinterpolate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", - "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=", + "json3": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.2.tgz", + "integrity": "sha1-PAQ0dD35Pi9cQq7nsZvLSDV19OE=", "dev": true }, - "lodash._root": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/lodash._root/-/lodash._root-3.0.1.tgz", - "integrity": "sha1-+6HEUkwZ7ppfgTa0YJ8BfPTe1pI=", + "json5": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", + "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=", "dev": true }, - "lodash.assign": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz", - "integrity": "sha1-DZnzzNem0mHRm9rrkkUAXShYCOc=", - "dev": true - }, - "lodash.clonedeep": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", - "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", - "dev": true - }, - "lodash.escape": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/lodash.escape/-/lodash.escape-3.2.0.tgz", - "integrity": "sha1-mV7g3BjBtIzJLv+ucaEKq1tIdpg=", + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", "dev": true, "requires": { - "lodash._root": "3.0.1" + "graceful-fs": "4.1.11" } }, - "lodash.isarguments": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", - "integrity": "sha1-L1c9hcaiQon/AGY7SRwdM4/zRYo=", - "dev": true - }, - "lodash.isarray": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz", - "integrity": "sha1-eeTriMNqgSKvhvhEqpvNhRtfu1U=", - "dev": true - }, - "lodash.isfinite": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/lodash.isfinite/-/lodash.isfinite-3.3.2.tgz", - "integrity": "sha1-+4m2WpqAKBgz8LdHizpRBPiY67M=", + "jsonify": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", + "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", "dev": true }, - "lodash.isplainobject": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", - "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=", + "jsonparse": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", + "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=", "dev": true }, - "lodash.isstring": { + "jsonpointer": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", - "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-4.0.1.tgz", + "integrity": "sha1-T9kss04OnbPInIYi7PUfm5eMbLk=", "dev": true }, - "lodash.keys": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz", - "integrity": "sha1-TbwEcrFWvlCgsoaFXRvQsMZWCYo=", + "jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", "dev": true, "requires": { - "lodash._getnative": "3.9.1", - "lodash.isarguments": "3.1.0", - "lodash.isarray": "3.0.4" + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "dev": true + } } }, - "lodash.mapvalues": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/lodash.mapvalues/-/lodash.mapvalues-4.6.0.tgz", - "integrity": "sha1-G6+lAF3p3W9PJmaMMMo3IwzJaJw=", - "dev": true + "karma": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/karma/-/karma-2.0.0.tgz", + "integrity": "sha512-K9Kjp8CldLyL9ANSUctDyxC7zH3hpqXj/K09qVf06K3T/kXaHtFZ5tQciK7OzQu68FLvI89Na510kqQ2LCbpIw==", + "dev": true, + "requires": { + "bluebird": "3.5.1", + "body-parser": "1.18.2", + "browserify": "14.5.0", + "chokidar": "1.7.0", + "colors": "1.1.2", + "combine-lists": "1.0.1", + "connect": "3.6.6", + "core-js": "2.5.3", + "di": "0.0.1", + "dom-serialize": "2.2.1", + "expand-braces": "0.1.2", + "glob": "7.1.2", + "graceful-fs": "4.1.11", + "http-proxy": "1.16.2", + "isbinaryfile": "3.0.2", + "lodash": "4.17.5", + "log4js": "2.5.3", + "mime": "1.6.0", + "minimatch": "3.0.4", + "optimist": "0.6.1", + "qjobs": "1.2.0", + "range-parser": "1.2.0", + "rimraf": "2.6.2", + "safe-buffer": "5.1.1", + "socket.io": "2.0.4", + "source-map": "0.6.1", + "tmp": "0.0.33", + "useragent": "2.3.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } }, - "lodash.memoize": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-3.0.4.tgz", - "integrity": "sha1-LcvSwofLwKVcxCMovQxzYVDVPj8=", - "dev": true + "karma-chrome-launcher": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/karma-chrome-launcher/-/karma-chrome-launcher-2.2.0.tgz", + "integrity": "sha512-uf/ZVpAabDBPvdPdveyk1EPgbnloPvFFGgmRhYLTDH7gEB4nZdSBk8yTU47w1g/drLSx5uMOkjKk7IWKfWg/+w==", + "dev": true, + "requires": { + "fs-access": "1.0.1", + "which": "1.3.0" + } }, - "lodash.mergewith": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.1.tgz", - "integrity": "sha512-eWw5r+PYICtEBgrBE5hhlT6aAa75f411bgDz/ZL2KZqYV03USvucsxcHUIlGTDTECs1eunpI7HOV7U+WLDvNdQ==", - "dev": true + "karma-coverage-istanbul-reporter": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/karma-coverage-istanbul-reporter/-/karma-coverage-istanbul-reporter-1.4.2.tgz", + "integrity": "sha512-sQHexslLF+QHzaKfK8+onTYMyvSwv+p5cDayVxhpEELGa3z0QuB+l0IMsicIkkBNMOJKQaqueiRoW7iuo7lsog==", + "dev": true, + "requires": { + "istanbul-api": "1.3.1", + "minimatch": "3.0.4" + } }, - "lodash.restparam": { - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/lodash.restparam/-/lodash.restparam-3.6.1.tgz", - "integrity": "sha1-k2pOMJ7zMKdkXtQUWYbIWuWyCAU=", + "karma-jasmine": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/karma-jasmine/-/karma-jasmine-1.1.1.tgz", + "integrity": "sha1-b+hA51oRYAydkehLM8RY4cRqNSk=", "dev": true }, - "lodash.template": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-3.6.2.tgz", - "integrity": "sha1-+M3sxhaaJVvpCYrosMU9N4kx0U8=", + "karma-jasmine-html-reporter": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/karma-jasmine-html-reporter/-/karma-jasmine-html-reporter-0.2.2.tgz", + "integrity": "sha1-SKjl7xiAdhfuK14zwRlMNbQ5Ukw=", "dev": true, "requires": { - "lodash._basecopy": "3.0.1", - "lodash._basetostring": "3.0.1", - "lodash._basevalues": "3.0.0", - "lodash._isiterateecall": "3.0.9", - "lodash._reinterpolate": "3.0.0", - "lodash.escape": "3.2.0", - "lodash.keys": "3.1.2", - "lodash.restparam": "3.6.1", - "lodash.templatesettings": "3.1.1" + "karma-jasmine": "1.1.1" } }, - "lodash.templatesettings": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-3.1.1.tgz", - "integrity": "sha1-+zB4RHU7Zrnxr6VOJix0UwfbqOU=", + "karma-source-map-support": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/karma-source-map-support/-/karma-source-map-support-1.2.0.tgz", + "integrity": "sha1-G/gee7SwiWJ6s1LsQXnhF8QGpUA=", "dev": true, "requires": { - "lodash._reinterpolate": "3.0.0", - "lodash.escape": "3.2.0" + "source-map-support": "0.4.18" } }, - "log-symbols": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", - "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", + "killable": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/killable/-/killable-1.0.0.tgz", + "integrity": "sha1-2ouEvUfeU5WHj5XWTQLyRJ/gXms=", + "dev": true + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "chalk": "2.3.2" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "1.9.1" - } - }, - "chalk": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz", - "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", - "dev": true, - "requires": { - "ansi-styles": "3.2.1", - "escape-string-regexp": "1.0.5", - "supports-color": "5.3.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "supports-color": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", - "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", - "dev": true, - "requires": { - "has-flag": "3.0.0" - } - } + "is-buffer": "1.1.6" } }, - "log4js": { - "version": "2.5.3", - "resolved": "https://registry.npmjs.org/log4js/-/log4js-2.5.3.tgz", - "integrity": "sha512-YL/qpTxYtK0iWWbuKCrevDZz5lh+OjyHHD+mICqpjnYGKdNRBvPeh/1uYjkKUemT1CSO4wwLOwphWMpKAnD9kw==", + "labeled-stream-splicer": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/labeled-stream-splicer/-/labeled-stream-splicer-2.0.1.tgz", + "integrity": "sha512-MC94mHZRvJ3LfykJlTUipBqenZz1pacOZEMhhQ8dMGcDHs0SBE5GbsavUXV7YtP3icBW17W0Zy1I0lfASmo9Pg==", "dev": true, "requires": { - "amqplib": "0.5.2", - "axios": "0.15.3", - "circular-json": "0.5.1", - "date-format": "1.2.0", - "debug": "3.1.0", - "hipchat-notifier": "1.1.0", - "loggly": "1.1.1", - "mailgun-js": "0.7.15", - "nodemailer": "2.7.2", - "redis": "2.8.0", - "semver": "5.5.0", - "slack-node": "0.2.0", - "streamroller": "0.7.0" + "inherits": "2.0.3", + "isarray": "2.0.4", + "stream-splicer": "2.0.0" }, "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "semver": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", - "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", + "isarray": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.4.tgz", + "integrity": "sha512-GMxXOiUirWg1xTKRipM0Ek07rX+ubx4nNVElTJdNLYmNO/2YrDkgJGw9CljXn+r4EWiDQg/8lsRdHyg2PJuUaA==", "dev": true } } }, - "loggly": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/loggly/-/loggly-1.1.1.tgz", - "integrity": "sha1-Cg/B0/o6XsRP3HuJe+uipGlc6+4=", + "latest-version": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-3.1.0.tgz", + "integrity": "sha1-ogU4P+oyKzO1rjsYq+4NwvNW7hU=", "dev": true, - "optional": true, "requires": { - "json-stringify-safe": "5.0.1", - "request": "2.75.0", - "timespan": "2.3.0" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true, - "optional": true - }, - "caseless": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.11.0.tgz", - "integrity": "sha1-cVuW6phBWTzDMGeSP17GDr2k99c=", - "dev": true, - "optional": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "optional": true, - "requires": { - "ansi-styles": "2.2.1", - "escape-string-regexp": "1.0.5", - "has-ansi": "2.0.0", - "strip-ansi": "3.0.1", - "supports-color": "2.0.0" - } - }, - "commander": { - "version": "2.15.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", - "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", - "dev": true, - "optional": true - }, - "form-data": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.0.0.tgz", - "integrity": "sha1-bwrrrcxdoWwT4ezBETfYX5uIOyU=", - "dev": true, - "optional": true, - "requires": { - "asynckit": "0.4.0", - "combined-stream": "1.0.5", - "mime-types": "2.1.17" - } - }, - "har-validator": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-2.0.6.tgz", - "integrity": "sha1-zcvAgYgmWtEZtqWnyKtw7s+10n0=", - "dev": true, - "optional": true, - "requires": { - "chalk": "1.1.3", - "commander": "2.15.1", - "is-my-json-valid": "2.17.2", - "pinkie-promise": "2.0.1" - } - }, - "has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", - "dev": true, - "optional": true, - "requires": { - "ansi-regex": "2.1.1" - } - }, - "node-uuid": { - "version": "1.4.8", - "resolved": "https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.8.tgz", - "integrity": "sha1-sEDrCSOWivq/jTL7HxfxFn/auQc=", - "dev": true, - "optional": true - }, - "qs": { - "version": "6.2.3", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.2.3.tgz", - "integrity": "sha1-HPyyXBCpsrSDBT/zn138kjOQjP4=", - "dev": true, - "optional": true - }, - "request": { - "version": "2.75.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.75.0.tgz", - "integrity": "sha1-0rgmiihtoT6qXQGt9dGMyQ9lfZM=", - "dev": true, - "optional": true, - "requires": { - "aws-sign2": "0.6.0", - "aws4": "1.6.0", - "bl": "1.1.2", - "caseless": "0.11.0", - "combined-stream": "1.0.5", - "extend": "3.0.1", - "forever-agent": "0.6.1", - "form-data": "2.0.0", - "har-validator": "2.0.6", - "hawk": "3.1.3", - "http-signature": "1.1.1", - "is-typedarray": "1.0.0", - "isstream": "0.1.2", - "json-stringify-safe": "5.0.1", - "mime-types": "2.1.17", - "node-uuid": "1.4.8", - "oauth-sign": "0.8.2", - "qs": "6.2.3", - "stringstream": "0.0.5", - "tough-cookie": "2.3.3", - "tunnel-agent": "0.4.3" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "optional": true, - "requires": { - "ansi-regex": "2.1.1" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true, - "optional": true - }, - "tunnel-agent": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.3.tgz", - "integrity": "sha1-Y3PbdpCf5XDgjXNYM2Xtgop07us=", - "dev": true, - "optional": true - } + "package-json": "4.0.1" } }, - "loglevelnext": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/loglevelnext/-/loglevelnext-1.0.3.tgz", - "integrity": "sha512-OCxd/b78TijTB4b6zVqLbMrxhebyvdZKwqpL0VHUZ0pYhavXaPD4l6Xrr4n5xqTYWiqtb0i7ikSoJY/myQ/Org==", - "dev": true - }, - "longest": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", - "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", + "lazy-cache": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", + "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=", "dev": true }, - "loud-rejection": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", - "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=", + "lcid": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", + "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", "dev": true, "requires": { - "currently-unhandled": "0.4.1", - "signal-exit": "3.0.2" + "invert-kv": "1.0.0" } }, - "lowercase-keys": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.0.tgz", - "integrity": "sha1-TjNms55/VFfjXxMkvfb4jQv8cwY=", + "left-pad": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/left-pad/-/left-pad-1.2.0.tgz", + "integrity": "sha1-0wpzxrggHY99jnlWupYWCHpo4O4=", "dev": true }, - "lru-cache": { + "less": { "version": "2.7.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz", - "integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI=", - "dev": true - }, - "magic-string": { - "version": "0.22.5", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.22.5.tgz", - "integrity": "sha512-oreip9rJZkzvA8Qzk9HFs8fZGF/u7H/gtrE8EN6RjKJ9kh2HlC+yQ2QezifqTZfGyiuAV0dRv5a+y/8gBb1m9w==", + "resolved": "https://registry.npmjs.org/less/-/less-2.7.3.tgz", + "integrity": "sha512-KPdIJKWcEAb02TuJtaLrhue0krtRLoRoo7x6BNJIBelO00t/CCdJQUnHW5V34OnHMWzIktSalJxRO+FvytQlCQ==", "dev": true, "requires": { - "vlq": "0.2.3" + "errno": "0.1.7", + "graceful-fs": "4.1.11", + "image-size": "0.5.5", + "mime": "1.6.0", + "mkdirp": "0.5.1", + "promise": "7.3.1", + "request": "2.81.0", + "source-map": "0.5.7" } }, - "mailcomposer": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/mailcomposer/-/mailcomposer-4.0.1.tgz", - "integrity": "sha1-DhxEsqB890DuF9wUm6AJ8Zyt/rQ=", + "less-loader": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/less-loader/-/less-loader-4.1.0.tgz", + "integrity": "sha512-KNTsgCE9tMOM70+ddxp9yyt9iHqgmSs0yTZc5XH5Wo+g80RWRIYNqE58QJKm/yMud5wZEvz50ugRDuzVIkyahg==", "dev": true, - "optional": true, "requires": { - "buildmail": "4.0.1", - "libmime": "3.0.0" + "clone": "2.1.2", + "loader-utils": "1.1.0", + "pify": "3.0.0" } }, - "mailgun-js": { - "version": "0.7.15", - "resolved": "https://registry.npmjs.org/mailgun-js/-/mailgun-js-0.7.15.tgz", - "integrity": "sha1-7jZqINrGTDwVwD1sGz4O15UlKrs=", + "leven": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-2.1.0.tgz", + "integrity": "sha1-wuep93IJTe6dNCAq6KzORoeHVYA=", + "dev": true + }, + "levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", "dev": true, - "optional": true, "requires": { - "async": "2.1.5", - "debug": "2.2.0", - "form-data": "2.1.4", - "inflection": "1.10.0", - "is-stream": "1.1.0", - "path-proxy": "1.0.0", - "proxy-agent": "2.0.0", - "q": "1.4.1", - "tsscmp": "1.0.5" - }, - "dependencies": { - "async": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/async/-/async-2.1.5.tgz", - "integrity": "sha1-5YfGhYCZSsZ/xW/4bTrFa9voELw=", - "dev": true, - "optional": true, - "requires": { - "lodash": "4.17.5" - } - }, - "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", - "dev": true, - "optional": true, - "requires": { - "ms": "0.7.1" - } - }, - "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", - "dev": true, - "optional": true - } + "prelude-ls": "1.1.2", + "type-check": "0.3.2" } }, - "make-dir": { + "lexical-scope": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.2.0.tgz", - "integrity": "sha512-aNUAa4UMg/UougV25bbrU4ZaaKNjJ/3/xnvg/twpmKROPdKZPZ9wGgI0opdZzO8q/zUFawoUuixuOv33eZ61Iw==", + "resolved": "https://registry.npmjs.org/lexical-scope/-/lexical-scope-1.2.0.tgz", + "integrity": "sha1-/Ope3HBKSzqHls3KQZw6CvryLfQ=", "dev": true, "requires": { - "pify": "3.0.0" - }, - "dependencies": { - "pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", - "dev": true - } + "astw": "2.2.0" } }, - "map-cache": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", - "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", - "dev": true - }, - "map-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", + "libbase64": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/libbase64/-/libbase64-0.1.0.tgz", + "integrity": "sha1-YjUag5VjrF/1vSbxL2Dpgwu3UeY=", "dev": true }, - "md5.js": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.4.tgz", - "integrity": "sha1-6b296UogpawYsENA/Fdk1bCdkB0=", + "libmime": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/libmime/-/libmime-3.0.0.tgz", + "integrity": "sha1-UaGp50SOy9Ms2lRCFnW7IbwJPaY=", "dev": true, "requires": { - "hash-base": "3.0.4", - "inherits": "2.0.3" + "iconv-lite": "0.4.15", + "libbase64": "0.1.0", + "libqp": "1.1.0" }, "dependencies": { - "hash-base": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", - "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", - "dev": true, - "requires": { - "inherits": "2.0.3", - "safe-buffer": "5.1.1" - } + "iconv-lite": { + "version": "0.4.15", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.15.tgz", + "integrity": "sha1-/iZaIYrGpXz+hUkn6dBMGYJe3es=", + "dev": true } } }, - "media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", + "libqp": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/libqp/-/libqp-1.1.0.tgz", + "integrity": "sha1-9ebgatdLeU+1tbZpiL9yjvHe2+g=", "dev": true }, - "mem": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/mem/-/mem-1.1.0.tgz", - "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", + "license-webpack-plugin": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/license-webpack-plugin/-/license-webpack-plugin-1.3.1.tgz", + "integrity": "sha512-NqAFodJdpBUuf1iD+Ij8hQvF0rCFKlO2KaieoQzAPhFgzLCtJnC7Z7x5gQbGNjoe++wOKAtAmwVEIBLqq2Yp1A==", "dev": true, "requires": { - "mimic-fn": "1.2.0" + "ejs": "2.5.7" } }, - "memory-fs": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz", - "integrity": "sha1-OpoguEYlI+RHz7x+i7gO1me/xVI=", + "lint-staged": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-7.0.0.tgz", + "integrity": "sha512-6Z89we28Qy1Ez7ZxO8yYfPKqzdxkSjnURq1d3RS2gKkZrA135xN+ptF3EWHrcHyBMmgA20vA7dGCQGj+OMS22g==", "dev": true, "requires": { - "errno": "0.1.4", - "readable-stream": "2.3.3" + "app-root-path": "2.0.1", + "chalk": "2.3.2", + "commander": "2.15.1", + "cosmiconfig": "4.0.0", + "debug": "3.1.0", + "dedent": "0.7.0", + "execa": "0.9.0", + "find-parent-dir": "0.3.0", + "is-glob": "4.0.0", + "jest-validate": "22.4.3", + "listr": "0.13.0", + "lodash": "4.17.5", + "log-symbols": "2.2.0", + "micromatch": "3.1.9", + "npm-which": "3.0.1", + "p-map": "1.2.0", + "path-is-inside": "1.0.2", + "pify": "3.0.0", + "please-upgrade-node": "3.0.1", + "staged-git-files": "1.1.0", + "stringify-object": "3.2.2" }, "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", "dev": true }, - "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha1-No8lEtefnUb9/HE0mueHi7weuVw=", - "dev": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha1-D8Z9fBQYJd6UKC3VNr7GubzoYKs=", - "dev": true, - "requires": { - "safe-buffer": "5.1.1" - } - } - } - }, - "meow": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz", - "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=", - "dev": true, - "requires": { - "camelcase-keys": "2.1.0", - "decamelize": "1.2.0", - "loud-rejection": "1.6.0", - "map-obj": "1.0.1", - "minimist": "1.2.0", - "normalize-package-data": "2.4.0", - "object-assign": "4.1.1", - "read-pkg-up": "1.0.1", - "redent": "1.0.0", - "trim-newlines": "1.0.0" - } - }, - "micromatch": { - "version": "2.3.11", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", - "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", - "dev": true, - "requires": { - "arr-diff": "2.0.0", - "array-unique": "0.2.1", - "braces": "1.8.5", - "expand-brackets": "0.1.5", - "extglob": "0.3.2", - "filename-regex": "2.0.1", - "is-extglob": "1.0.0", - "is-glob": "2.0.1", - "kind-of": "3.2.2", - "normalize-path": "2.1.1", - "object.omit": "2.0.1", - "parse-glob": "3.0.4", - "regex-cache": "0.4.4" - } - }, - "miller-rabin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", - "integrity": "sha1-8IA1HIZbDcViqEYpZtqlNUPHik0=", - "dev": true, - "requires": { - "bn.js": "4.11.8", - "brorand": "1.1.0" - } - }, - "mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true - }, - "mime-db": { - "version": "1.30.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.30.0.tgz", - "integrity": "sha1-dMZD2i3Z1qRTmZY0ZbJtXKfXHwE=", - "dev": true - }, - "mime-types": { - "version": "2.1.17", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.17.tgz", - "integrity": "sha1-Cdejk/A+mVp5+K+Fe3Cp4KsWVXo=", - "dev": true, - "requires": { - "mime-db": "1.30.0" - } - }, - "mimic-fn": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", - "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", - "dev": true - }, - "minimalistic-assert": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz", - "integrity": "sha1-cCvi3aazf0g2vLP121ZkG2Sh09M=", - "dev": true - }, - "minimalistic-crypto-utils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", - "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=", - "dev": true - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=", - "dev": true, - "requires": { - "brace-expansion": "1.1.8" - } - }, - "minimist": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", - "dev": true - }, - "mkdirp": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, - "requires": { - "minimist": "0.0.8" - }, - "dependencies": { - "minimist": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", "dev": true - } - } - }, - "module-deps": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/module-deps/-/module-deps-4.1.1.tgz", - "integrity": "sha1-IyFYM/HaE/1gbMuAh7RIUty4If0=", - "dev": true, - "requires": { - "JSONStream": "1.3.2", - "browser-resolve": "1.11.2", - "cached-path-relative": "1.0.1", - "concat-stream": "1.5.2", - "defined": "1.0.0", - "detective": "4.7.1", - "duplexer2": "0.1.4", - "inherits": "2.0.3", - "parents": "1.0.1", - "readable-stream": "2.3.5", - "resolve": "1.4.0", - "stream-combiner2": "1.1.1", - "subarg": "1.0.0", - "through2": "2.0.3", - "xtend": "4.0.1" - }, - "dependencies": { - "concat-stream": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.5.2.tgz", - "integrity": "sha1-cIl4Yk2FavQaWnQd790mHadSwmY=", + }, + "braces": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.1.tgz", + "integrity": "sha512-SO5lYHA3vO6gz66erVvedSCkp7AKWdv6VcQ2N4ysXfPxdAlxAMMAdwegGGcv1Bqwm7naF1hNdk5d6AAIEHV2nQ==", "dev": true, "requires": { - "inherits": "2.0.3", - "readable-stream": "2.0.6", - "typedarray": "0.0.6" + "arr-flatten": "1.1.0", + "array-unique": "0.3.2", + "define-property": "1.0.0", + "extend-shallow": "2.0.1", + "fill-range": "4.0.0", + "isobject": "3.0.1", + "kind-of": "6.0.2", + "repeat-element": "1.1.2", + "snapdragon": "0.8.2", + "snapdragon-node": "2.1.1", + "split-string": "3.1.0", + "to-regex": "3.0.2" }, "dependencies": { - "readable-stream": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz", - "integrity": "sha1-j5A0HmilPMySh4jaz80Rs265t44=", + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "string_decoder": "0.10.31", - "util-deprecate": "1.0.2" + "is-descriptor": "1.0.2" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" } } } }, - "duplexer2": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", - "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", + "chalk": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz", + "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", "dev": true, "requires": { - "readable-stream": "2.3.5" + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.3.0" } }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true + "cosmiconfig": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-4.0.0.tgz", + "integrity": "sha512-6e5vDdrXZD+t5v0L8CrurPeybg4Fmf+FCSYxXKYVAqLUtyCSbuyqE059d0kDthTNRzKVjL7QMgNpEUlsoYH3iQ==", + "dev": true, + "requires": { + "is-directory": "0.3.1", + "js-yaml": "3.11.0", + "parse-json": "4.0.0", + "require-from-string": "2.0.1" + } }, - "readable-stream": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", - "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", + "cross-spawn": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", + "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "2.0.0", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" + "lru-cache": "4.1.2", + "shebang-command": "1.2.0", + "which": "1.3.0" + } + }, + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "execa": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-0.9.0.tgz", + "integrity": "sha512-BbUMBiX4hqiHZUA5+JujIjNb6TyAlp2D5KLheMjMluwOuzcnylDL4AxZYLLn1n2AGB49eSWwyKvvEQoRpnAtmA==", + "dev": true, + "requires": { + "cross-spawn": "5.1.0", + "get-stream": "3.0.0", + "is-stream": "1.1.0", + "npm-run-path": "2.0.2", + "p-finally": "1.0.0", + "signal-exit": "3.0.2", + "strip-eof": "1.0.0" + } + }, + "expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", + "dev": true, + "requires": { + "debug": "2.6.9", + "define-property": "0.2.5", + "extend-shallow": "2.0.1", + "posix-character-classes": "0.1.1", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" }, "dependencies": { - "process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", - "dev": true + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "is-descriptor": "0.1.6" } - } - } - } - } - }, - "moment": { - "version": "2.19.1", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.19.1.tgz", - "integrity": "sha1-VtoaLRy/AdOLfhr8McELz6GSkWc=", - "dev": true - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "multipipe": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/multipipe/-/multipipe-0.1.2.tgz", - "integrity": "sha1-Ko8t33Du1WTf8tV/HhoTfZ8FB4s=", - "dev": true, - "requires": { - "duplexer2": "0.0.2" - } - }, - "nan": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.7.0.tgz", - "integrity": "sha1-2Vv3IeyHfgjbJ27T/G63j5CDrUY=", - "dev": true - }, - "natives": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/natives/-/natives-1.1.0.tgz", - "integrity": "sha1-6f+EFBimsux6SV6TmYT3jxY+bjE=", - "dev": true - }, - "negotiator": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz", - "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=", - "dev": true - }, - "netmask": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/netmask/-/netmask-1.0.6.tgz", - "integrity": "sha1-ICl+idhvb2QA8lDZ9Pa0wZRfzTU=", - "dev": true, - "optional": true - }, - "ng-packagr": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/ng-packagr/-/ng-packagr-2.2.0.tgz", - "integrity": "sha512-2qpXc2Dgyt9/JlIXoVB1eZZTtKu9OTv7eEngLLxfDXQSJ4q8elYDYMGXytIXdBO2GlVP2Z1uOCNMryQnAvhR0Q==", - "dev": true, - "requires": { - "@ngtools/json-schema": "1.1.0", - "autoprefixer": "7.2.6", - "browserslist": "2.11.3", - "chalk": "2.3.2", - "commander": "2.15.1", - "cpx": "1.5.0", - "fs-extra": "5.0.0", - "glob": "7.1.2", - "injection-js": "2.2.1", - "less": "2.7.3", - "node-sass": "4.7.2", - "node-sass-tilde-importer": "1.0.2", - "postcss": "6.0.20", - "postcss-clean": "1.1.0", - "postcss-url": "7.3.1", - "read-pkg-up": "3.0.0", - "rimraf": "2.6.2", - "rollup": "0.55.5", - "rollup-plugin-cleanup": "2.0.0", - "rollup-plugin-commonjs": "8.3.0", - "rollup-plugin-license": "0.6.0", - "rollup-plugin-node-resolve": "3.3.0", - "rxjs": "5.5.7", - "sorcery": "0.10.0", - "strip-bom": "3.0.0", - "stylus": "0.54.5", - "uglify-js": "3.3.16", - "update-notifier": "2.3.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + } + }, + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, + "extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", "dev": true, "requires": { - "color-convert": "1.9.1" + "array-unique": "0.3.2", + "define-property": "1.0.0", + "expand-brackets": "2.1.4", + "extend-shallow": "2.0.1", + "fragment-cache": "0.2.1", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "1.0.2" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } } }, - "chalk": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz", - "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", + "fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", "dev": true, "requires": { - "ansi-styles": "3.2.1", - "escape-string-regexp": "1.0.5", - "supports-color": "5.3.0" + "extend-shallow": "2.0.1", + "is-number": "3.0.0", + "repeat-string": "1.6.1", + "to-regex-range": "2.1.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } } }, - "commander": { - "version": "2.15.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", - "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", "dev": true }, - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", "dev": true, "requires": { - "locate-path": "2.0.0" + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } } }, - "fs-extra": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-5.0.0.tgz", - "integrity": "sha512-66Pm4RYbjzdyeuqudYqhFiNBbCIuI9kgRqLPSHIlXHidW8NIQtVdkM1yeZ4lXwuhbTETv3EUGMNHAAw6hiundQ==", + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "jsonfile": "4.0.0", - "universalify": "0.1.1" + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } } }, - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", "dev": true }, - "jsonfile": { + "is-glob": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.0.tgz", + "integrity": "sha1-lSHHaEXMJhCoUgPd8ICpWML/q8A=", "dev": true, "requires": { - "graceful-fs": "4.1.11" + "is-extglob": "2.1.1" } }, - "load-json-file": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", - "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "parse-json": "4.0.0", - "pify": "3.0.0", - "strip-bom": "3.0.0" + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + }, + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true + }, + "micromatch": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.9.tgz", + "integrity": "sha512-SlIz6sv5UPaAVVFRKodKjCg48EbNoIhgetzfK/Cy0v5U52Z6zB136M8tp0UC9jM53LYbmIRihJszvvqpKkfm9g==", + "dev": true, + "requires": { + "arr-diff": "4.0.0", + "array-unique": "0.3.2", + "braces": "2.3.1", + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "extglob": "2.0.4", + "fragment-cache": "0.2.1", + "kind-of": "6.0.2", + "nanomatch": "1.2.9", + "object.pick": "1.3.0", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" } }, "parse-json": { @@ -7732,48 +8333,76 @@ "json-parse-better-errors": "1.0.1" } }, - "path-type": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", - "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", + "require-from-string": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.1.tgz", + "integrity": "sha1-xUUjPp19pmFunVmt+zn8n1iGdv8=", + "dev": true + }, + "supports-color": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", + "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", "dev": true, "requires": { - "pify": "3.0.0" + "has-flag": "3.0.0" } - }, - "pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + } + } + }, + "listr": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/listr/-/listr-0.13.0.tgz", + "integrity": "sha1-ILsLowuuZg7oTMBQPfS+PVYjiH0=", + "dev": true, + "requires": { + "chalk": "1.1.3", + "cli-truncate": "0.2.1", + "figures": "1.7.0", + "indent-string": "2.1.0", + "is-observable": "0.2.0", + "is-promise": "2.1.0", + "is-stream": "1.1.0", + "listr-silent-renderer": "1.1.1", + "listr-update-renderer": "0.4.0", + "listr-verbose-renderer": "0.4.1", + "log-symbols": "1.0.2", + "log-update": "1.0.2", + "ora": "0.2.3", + "p-map": "1.2.0", + "rxjs": "5.5.7", + "stream-to-observable": "0.2.0", + "strip-ansi": "3.0.1" + }, + "dependencies": { + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "dev": true }, - "read-pkg": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", - "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, "requires": { - "load-json-file": "4.0.0", - "normalize-package-data": "2.4.0", - "path-type": "3.0.0" + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" } }, - "read-pkg-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", - "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", + "log-symbols": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-1.0.2.tgz", + "integrity": "sha1-N2/3tY6jCGoPCfrMdGF+ylAeGhg=", "dev": true, "requires": { - "find-up": "2.1.0", - "read-pkg": "3.0.0" + "chalk": "1.1.3" } }, - "rollup": { - "version": "0.55.5", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-0.55.5.tgz", - "integrity": "sha512-2hke9NOy332kxvnmMQOgl7DHm94zihNyYJNd8ZLWo4U0EjFvjUkeWa0+ge+70bTg+mY0xJ7NUsf5kIhDtrGrtA==", - "dev": true - }, "rxjs": { "version": "5.5.7", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.7.tgz", @@ -7783,184 +8412,42 @@ "symbol-observable": "1.0.1" } }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", - "dev": true - }, - "supports-color": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", - "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", - "dev": true, - "requires": { - "has-flag": "3.0.0" - } - }, - "uglify-js": { - "version": "3.3.16", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.3.16.tgz", - "integrity": "sha512-FMh5SRqJRGhv9BbaTffENIpDDQIoPDR8DBraunGORGhySArsXlw9++CN+BWzPBLpoI4RcSnpfGPnilTxWL3Vvg==", - "dev": true, - "requires": { - "commander": "2.15.1", - "source-map": "0.6.1" - } - } - } - }, - "node-gyp": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-3.6.2.tgz", - "integrity": "sha1-m/vlRWIoYoSDjnUOrAUpWFP6HGA=", - "dev": true, - "requires": { - "fstream": "1.0.11", - "glob": "7.1.2", - "graceful-fs": "4.1.11", - "minimatch": "3.0.4", - "mkdirp": "0.5.1", - "nopt": "3.0.6", - "npmlog": "4.1.2", - "osenv": "0.1.5", - "request": "2.81.0", - "rimraf": "2.6.2", - "semver": "5.3.0", - "tar": "2.2.1", - "which": "1.3.0" - }, - "dependencies": { - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true - }, - "semver": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz", - "integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=", + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", "dev": true } } }, - "node-libs-browser": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.0.0.tgz", - "integrity": "sha1-o6WeyXAkmFtG6Vg3lkb5bEthZkY=", - "dev": true, - "requires": { - "assert": "1.4.1", - "browserify-zlib": "0.1.4", - "buffer": "4.9.1", - "console-browserify": "1.1.0", - "constants-browserify": "1.0.0", - "crypto-browserify": "3.11.1", - "domain-browser": "1.1.7", - "events": "1.1.1", - "https-browserify": "0.0.1", - "os-browserify": "0.2.1", - "path-browserify": "0.0.0", - "process": "0.11.10", - "punycode": "1.4.1", - "querystring-es3": "0.2.1", - "readable-stream": "2.3.3", - "stream-browserify": "2.0.1", - "stream-http": "2.7.2", - "string_decoder": "0.10.31", - "timers-browserify": "2.0.4", - "tty-browserify": "0.0.0", - "url": "0.11.0", - "util": "0.10.3", - "vm-browserify": "0.0.4" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha1-No8lEtefnUb9/HE0mueHi7weuVw=", - "dev": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" - }, - "dependencies": { - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha1-D8Z9fBQYJd6UKC3VNr7GubzoYKs=", - "dev": true, - "requires": { - "safe-buffer": "5.1.1" - } - } - } - } - } + "listr-silent-renderer": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/listr-silent-renderer/-/listr-silent-renderer-1.1.1.tgz", + "integrity": "sha1-kktaN1cVN3C/Go4/v3S4u/P5JC4=", + "dev": true }, - "node-sass": { - "version": "4.7.2", - "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.7.2.tgz", - "integrity": "sha512-CaV+wLqZ7//Jdom5aUFCpGNoECd7BbNhjuwdsX/LkXBrHl8eb1Wjw4HvWqcFvhr5KuNgAk8i/myf/MQ1YYeroA==", + "listr-update-renderer": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/listr-update-renderer/-/listr-update-renderer-0.4.0.tgz", + "integrity": "sha1-NE2YDaLKLosUW6MFkI8yrj9MyKc=", "dev": true, "requires": { - "async-foreach": "0.1.3", "chalk": "1.1.3", - "cross-spawn": "3.0.1", - "gaze": "1.1.2", - "get-stdin": "4.0.1", - "glob": "7.1.2", - "in-publish": "2.0.0", - "lodash.assign": "4.2.0", - "lodash.clonedeep": "4.5.0", - "lodash.mergewith": "4.6.1", - "meow": "3.7.0", - "mkdirp": "0.5.1", - "nan": "2.7.0", - "node-gyp": "3.6.2", - "npmlog": "4.1.2", - "request": "2.79.0", - "sass-graph": "2.2.4", - "stdout-stream": "1.4.0", - "true-case-path": "1.0.2" + "cli-truncate": "0.2.1", + "elegant-spinner": "1.0.1", + "figures": "1.7.0", + "indent-string": "3.2.0", + "log-symbols": "1.0.2", + "log-update": "1.0.2", + "strip-ansi": "3.0.1" }, "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, "ansi-styles": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "dev": true }, - "caseless": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.11.0.tgz", - "integrity": "sha1-cVuW6phBWTzDMGeSP17GDr2k99c=", - "dev": true - }, "chalk": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", @@ -7974,114 +8461,58 @@ "supports-color": "2.0.0" } }, - "commander": { - "version": "2.15.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", - "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", + "indent-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", + "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", "dev": true }, - "cross-spawn": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-3.0.1.tgz", - "integrity": "sha1-ElYDfsufDF9549bvE14wdwGEuYI=", - "dev": true, - "requires": { - "lru-cache": "4.1.2", - "which": "1.3.0" - } - }, - "gaze": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.2.tgz", - "integrity": "sha1-hHIkZ3rbiHDWeSV+0ziP22HkAQU=", - "dev": true, - "requires": { - "globule": "1.2.0" - } - }, - "globule": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/globule/-/globule-1.2.0.tgz", - "integrity": "sha1-HcScaCLdnoovoAuiopUAboZkvQk=", - "dev": true, - "requires": { - "glob": "7.1.2", - "lodash": "4.17.5", - "minimatch": "3.0.4" - } - }, - "har-validator": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-2.0.6.tgz", - "integrity": "sha1-zcvAgYgmWtEZtqWnyKtw7s+10n0=", + "log-symbols": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-1.0.2.tgz", + "integrity": "sha1-N2/3tY6jCGoPCfrMdGF+ylAeGhg=", "dev": true, "requires": { - "chalk": "1.1.3", - "commander": "2.15.1", - "is-my-json-valid": "2.17.2", - "pinkie-promise": "2.0.1" + "chalk": "1.1.3" } }, - "has-ansi": { + "supports-color": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", - "dev": true, - "requires": { - "ansi-regex": "2.1.1" - } - }, - "lru-cache": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.2.tgz", - "integrity": "sha512-wgeVXhrDwAWnIF/yZARsFnMBtdFXOg1b8RIrhilp+0iDYN4mdQcNZElDZ0e4B64BhaxeQ5zN7PMyvu7we1kPeQ==", - "dev": true, - "requires": { - "pseudomap": "1.0.2", - "yallist": "2.1.2" - } - }, - "qs": { - "version": "6.3.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.3.2.tgz", - "integrity": "sha1-51vV9uJoEioqDgvaYwslUMFmUCw=", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "listr-verbose-renderer": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/listr-verbose-renderer/-/listr-verbose-renderer-0.4.1.tgz", + "integrity": "sha1-ggb0z21S3cWCfl/RSYng6WWTOjU=", + "dev": true, + "requires": { + "chalk": "1.1.3", + "cli-cursor": "1.0.2", + "date-fns": "1.29.0", + "figures": "1.7.0" + }, + "dependencies": { + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "dev": true }, - "request": { - "version": "2.79.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.79.0.tgz", - "integrity": "sha1-Tf5b9r6LjNw3/Pk+BLZVd3InEN4=", - "dev": true, - "requires": { - "aws-sign2": "0.6.0", - "aws4": "1.6.0", - "caseless": "0.11.0", - "combined-stream": "1.0.5", - "extend": "3.0.1", - "forever-agent": "0.6.1", - "form-data": "2.1.4", - "har-validator": "2.0.6", - "hawk": "3.1.3", - "http-signature": "1.1.1", - "is-typedarray": "1.0.0", - "isstream": "0.1.2", - "json-stringify-safe": "5.0.1", - "mime-types": "2.1.17", - "oauth-sign": "0.8.2", - "qs": "6.3.2", - "stringstream": "0.0.5", - "tough-cookie": "2.3.3", - "tunnel-agent": "0.4.3", - "uuid": "3.1.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, "requires": { - "ansi-regex": "2.1.1" + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" } }, "supports-color": { @@ -8089,951 +8520,989 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", "dev": true - }, - "tunnel-agent": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.3.tgz", - "integrity": "sha1-Y3PbdpCf5XDgjXNYM2Xtgop07us=", - "dev": true } } }, - "node-sass-tilde-importer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/node-sass-tilde-importer/-/node-sass-tilde-importer-1.0.2.tgz", - "integrity": "sha512-Swcmr38Y7uB78itQeBm3mThjxBy9/Ah/ykPIaURY/L6Nec9AyRoL/jJ7ECfMR+oZeCTVQNxVMu/aHU+TLRVbdg==", + "load-json-file": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", + "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", "dev": true, "requires": { - "find-parent-dir": "0.3.0" - } - }, - "nodemailer": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-2.7.2.tgz", - "integrity": "sha1-8kLmSa7q45tsftdA73sGHEBNMPk=", - "dev": true, - "optional": true, - "requires": { - "libmime": "3.0.0", - "mailcomposer": "4.0.1", - "nodemailer-direct-transport": "3.3.2", - "nodemailer-shared": "1.1.0", - "nodemailer-smtp-pool": "2.8.2", - "nodemailer-smtp-transport": "2.7.2", - "socks": "1.1.9" + "graceful-fs": "4.1.11", + "parse-json": "2.2.0", + "pify": "2.3.0", + "pinkie-promise": "2.0.1", + "strip-bom": "2.0.0" }, "dependencies": { - "ip": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", - "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=", - "dev": true, - "optional": true - }, - "socks": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/socks/-/socks-1.1.9.tgz", - "integrity": "sha1-Yo1+TQSRJDVEWsC25Fk3bLPm1pE=", - "dev": true, - "optional": true, - "requires": { - "ip": "1.1.5", - "smart-buffer": "1.1.15" - } + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true } } }, - "nodemailer-direct-transport": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/nodemailer-direct-transport/-/nodemailer-direct-transport-3.3.2.tgz", - "integrity": "sha1-6W+vuQNYVglH5WkBfZfmBzilCoY=", - "dev": true, - "optional": true, - "requires": { - "nodemailer-shared": "1.1.0", - "smtp-connection": "2.12.0" - } - }, - "nodemailer-fetch": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/nodemailer-fetch/-/nodemailer-fetch-1.6.0.tgz", - "integrity": "sha1-ecSQihwPXzdbc/6IjamCj23JY6Q=", + "loader-runner": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.3.0.tgz", + "integrity": "sha1-9IKuqC1UPgeSFwDVpG7yb9rGuKI=", "dev": true }, - "nodemailer-shared": { + "loader-utils": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/nodemailer-shared/-/nodemailer-shared-1.1.0.tgz", - "integrity": "sha1-z1mU4v0mjQD1zw+nZ6CBae2wfsA=", - "dev": true, - "requires": { - "nodemailer-fetch": "1.6.0" - } - }, - "nodemailer-smtp-pool": { - "version": "2.8.2", - "resolved": "https://registry.npmjs.org/nodemailer-smtp-pool/-/nodemailer-smtp-pool-2.8.2.tgz", - "integrity": "sha1-LrlNbPhXgLG0clzoU7nL1ejajHI=", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz", + "integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=", "dev": true, - "optional": true, "requires": { - "nodemailer-shared": "1.1.0", - "nodemailer-wellknown": "0.1.10", - "smtp-connection": "2.12.0" + "big.js": "3.2.0", + "emojis-list": "2.1.0", + "json5": "0.5.1" } }, - "nodemailer-smtp-transport": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/nodemailer-smtp-transport/-/nodemailer-smtp-transport-2.7.2.tgz", - "integrity": "sha1-A9ccdjFPFKx9vHvwM6am0W1n+3c=", + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", "dev": true, - "optional": true, "requires": { - "nodemailer-shared": "1.1.0", - "nodemailer-wellknown": "0.1.10", - "smtp-connection": "2.12.0" + "p-locate": "2.0.0", + "path-exists": "3.0.0" } }, - "nodemailer-wellknown": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/nodemailer-wellknown/-/nodemailer-wellknown-0.1.10.tgz", - "integrity": "sha1-WG24EB2zDLRDjrVGc3pBqtDPE9U=", + "lodash": { + "version": "4.17.5", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", + "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==", "dev": true }, - "nopt": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", - "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=", - "dev": true, - "requires": { - "abbrev": "1.1.1" - } + "lodash._reinterpolate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", + "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=", + "dev": true }, - "normalize-package-data": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz", - "integrity": "sha1-EvlaMH1YNSB1oEkHuErIvpisAS8=", - "dev": true, - "requires": { - "hosted-git-info": "2.5.0", - "is-builtin-module": "1.0.0", - "semver": "4.3.6", - "validate-npm-package-license": "3.0.1" - } + "lodash.assign": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz", + "integrity": "sha1-DZnzzNem0mHRm9rrkkUAXShYCOc=", + "dev": true }, - "normalize-path": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", - "dev": true, - "requires": { - "remove-trailing-separator": "1.1.0" - } + "lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=", + "dev": true }, - "normalize-range": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", - "integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=", + "lodash.clonedeep": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", + "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", "dev": true }, - "npm-run-path": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", - "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", - "dev": true, - "requires": { - "path-key": "2.0.1" - } + "lodash.kebabcase": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz", + "integrity": "sha1-hImxyw0p/4gZXM7KRI/21swpXDY=", + "dev": true }, - "npmlog": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", - "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", - "dev": true, - "requires": { - "are-we-there-yet": "1.1.4", - "console-control-strings": "1.1.0", - "gauge": "2.7.4", - "set-blocking": "2.0.0" - } + "lodash.memoize": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-3.0.4.tgz", + "integrity": "sha1-LcvSwofLwKVcxCMovQxzYVDVPj8=", + "dev": true }, - "null-check": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/null-check/-/null-check-1.0.0.tgz", - "integrity": "sha1-l33/1xdgErnsMNKjnbXPcqBDnt0=", + "lodash.merge": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.1.tgz", + "integrity": "sha512-AOYza4+Hf5z1/0Hztxpm2/xiPZgi/cjMqdnKTUWTBSKchJlxXXuUSxCCl8rJlf4g6yww/j6mA8nC8Hw/EZWxKQ==", "dev": true }, - "num2fraction": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz", - "integrity": "sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4=", + "lodash.mergewith": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.1.tgz", + "integrity": "sha512-eWw5r+PYICtEBgrBE5hhlT6aAa75f411bgDz/ZL2KZqYV03USvucsxcHUIlGTDTECs1eunpI7HOV7U+WLDvNdQ==", "dev": true }, - "number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "lodash.omit": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.omit/-/lodash.omit-4.5.0.tgz", + "integrity": "sha1-brGa5aHuHdnfC5aeZs4Lf6MLXmA=", "dev": true }, - "oauth-sign": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", - "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=", + "lodash.pick": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.pick/-/lodash.pick-4.4.0.tgz", + "integrity": "sha1-UvBWEP/53tQiYRRB7R/BI6AwAbM=", "dev": true }, - "object-assign": { + "lodash.snakecase": { "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz", + "integrity": "sha1-OdcUo1NXFHg3rv1ktdy7Fr7Nj40=", "dev": true }, - "object-component": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/object-component/-/object-component-0.0.3.tgz", - "integrity": "sha1-8MaapQ78lbhmwYb0AKM3acsvEpE=", + "lodash.sortby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", + "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=", "dev": true }, - "object-path": { - "version": "0.9.2", - "resolved": "https://registry.npmjs.org/object-path/-/object-path-0.9.2.tgz", - "integrity": "sha1-D9mnT8X60a45aLWGvaXGMr1sBaU=", + "lodash.startcase": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.startcase/-/lodash.startcase-4.4.0.tgz", + "integrity": "sha1-lDbjTtJgk+1/+uGTYUQ1CRXZrdg=", "dev": true }, - "object.defaults": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/object.defaults/-/object.defaults-1.1.0.tgz", - "integrity": "sha1-On+GgzS0B96gbaFtiNXNKeQ1/s8=", + "lodash.tail": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.tail/-/lodash.tail-4.1.1.tgz", + "integrity": "sha1-0jM6NtnncXyK0vfKyv7HwytERmQ=", + "dev": true + }, + "lodash.template": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.4.0.tgz", + "integrity": "sha1-5zoDhcg1VZF0bgILmWecaQ5o+6A=", "dev": true, "requires": { - "array-each": "1.0.1", - "array-slice": "1.0.0", - "for-own": "1.0.0", - "isobject": "3.0.1" - }, - "dependencies": { - "for-own": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/for-own/-/for-own-1.0.0.tgz", - "integrity": "sha1-xjMy9BXO3EsE2/5wz4NklMU8tEs=", - "dev": true, - "requires": { - "for-in": "1.0.2" - } - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - } + "lodash._reinterpolate": "3.0.0", + "lodash.templatesettings": "4.1.0" } }, - "object.omit": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", - "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", + "lodash.templatesettings": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.1.0.tgz", + "integrity": "sha1-K01OlbpEDZFf8IvImeRVNmZxMxY=", "dev": true, "requires": { - "for-own": "0.1.5", - "is-extendable": "0.1.1" + "lodash._reinterpolate": "3.0.0" } }, - "object.pick": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", - "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", + "lodash.topairs": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.topairs/-/lodash.topairs-4.3.0.tgz", + "integrity": "sha1-O23qo31g+xFnE8RsXxfqGQ7EjWQ=", + "dev": true + }, + "lodash.upperfirst": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/lodash.upperfirst/-/lodash.upperfirst-4.3.1.tgz", + "integrity": "sha1-E2Xt9DFIBIHvDRxolXpe2Z1J984=", + "dev": true + }, + "log-symbols": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", + "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", "dev": true, "requires": { - "isobject": "3.0.1" - }, - "dependencies": { - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - } + "chalk": "2.2.2" } }, - "on-finished": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", - "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", + "log-update": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/log-update/-/log-update-1.0.2.tgz", + "integrity": "sha1-GZKfZMQJPS0ucHWh2tivWcKWuNE=", "dev": true, "requires": { - "ee-first": "1.1.1" + "ansi-escapes": "1.4.0", + "cli-cursor": "1.0.2" } }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "log4js": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/log4js/-/log4js-2.5.3.tgz", + "integrity": "sha512-YL/qpTxYtK0iWWbuKCrevDZz5lh+OjyHHD+mICqpjnYGKdNRBvPeh/1uYjkKUemT1CSO4wwLOwphWMpKAnD9kw==", "dev": true, "requires": { - "wrappy": "1.0.2" - } - }, - "opener": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/opener/-/opener-1.4.3.tgz", - "integrity": "sha1-XG2ixdflgx6P+jlklQ+NZnSskLg=", - "dev": true - }, - "openurl": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/openurl/-/openurl-1.1.1.tgz", - "integrity": "sha1-OHW0sO96UsFW8NtB1GCduw+Us4c=", - "dev": true - }, - "opn": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/opn/-/opn-4.0.2.tgz", - "integrity": "sha1-erwi5kTf9jsKltWrfyeQwPAavJU=", - "dev": true, - "requires": { - "object-assign": "4.1.1", - "pinkie-promise": "2.0.1" - } - }, - "optimist": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", - "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", - "dev": true, - "requires": { - "minimist": "0.0.10", - "wordwrap": "0.0.3" + "amqplib": "0.5.2", + "axios": "0.15.3", + "circular-json": "0.5.1", + "date-format": "1.2.0", + "debug": "3.1.0", + "hipchat-notifier": "1.1.0", + "loggly": "1.1.1", + "mailgun-js": "0.7.15", + "nodemailer": "2.7.2", + "redis": "2.8.0", + "semver": "5.5.0", + "slack-node": "0.2.0", + "streamroller": "0.7.0" }, "dependencies": { - "minimist": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", - "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=", - "dev": true + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "requires": { + "ms": "2.0.0" + } } } }, - "optionator": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", - "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", + "loggly": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/loggly/-/loggly-1.1.1.tgz", + "integrity": "sha1-Cg/B0/o6XsRP3HuJe+uipGlc6+4=", "dev": true, "optional": true, "requires": { - "deep-is": "0.1.3", - "fast-levenshtein": "2.0.6", - "levn": "0.3.0", - "prelude-ls": "1.1.2", - "type-check": "0.3.2", - "wordwrap": "1.0.0" + "json-stringify-safe": "5.0.1", + "request": "2.75.0", + "timespan": "2.3.0" }, "dependencies": { - "wordwrap": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", - "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true, + "optional": true + }, + "caseless": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.11.0.tgz", + "integrity": "sha1-cVuW6phBWTzDMGeSP17GDr2k99c=", + "dev": true, + "optional": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "optional": true, + "requires": { + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + } + }, + "form-data": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.0.0.tgz", + "integrity": "sha1-bwrrrcxdoWwT4ezBETfYX5uIOyU=", + "dev": true, + "optional": true, + "requires": { + "asynckit": "0.4.0", + "combined-stream": "1.0.6", + "mime-types": "2.1.18" + } + }, + "har-validator": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-2.0.6.tgz", + "integrity": "sha1-zcvAgYgmWtEZtqWnyKtw7s+10n0=", + "dev": true, + "optional": true, + "requires": { + "chalk": "1.1.3", + "commander": "2.15.1", + "is-my-json-valid": "2.17.2", + "pinkie-promise": "2.0.1" + } + }, + "node-uuid": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.8.tgz", + "integrity": "sha1-sEDrCSOWivq/jTL7HxfxFn/auQc=", + "dev": true, + "optional": true + }, + "qs": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.2.3.tgz", + "integrity": "sha1-HPyyXBCpsrSDBT/zn138kjOQjP4=", + "dev": true, + "optional": true + }, + "request": { + "version": "2.75.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.75.0.tgz", + "integrity": "sha1-0rgmiihtoT6qXQGt9dGMyQ9lfZM=", + "dev": true, + "optional": true, + "requires": { + "aws-sign2": "0.6.0", + "aws4": "1.6.0", + "bl": "1.1.2", + "caseless": "0.11.0", + "combined-stream": "1.0.6", + "extend": "3.0.1", + "forever-agent": "0.6.1", + "form-data": "2.0.0", + "har-validator": "2.0.6", + "hawk": "3.1.3", + "http-signature": "1.1.1", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.18", + "node-uuid": "1.4.8", + "oauth-sign": "0.8.2", + "qs": "6.2.3", + "stringstream": "0.0.5", + "tough-cookie": "2.3.4", + "tunnel-agent": "0.4.3" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true, + "optional": true + }, + "tunnel-agent": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.3.tgz", + "integrity": "sha1-Y3PbdpCf5XDgjXNYM2Xtgop07us=", "dev": true, "optional": true } } }, - "options": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/options/-/options-0.0.6.tgz", - "integrity": "sha1-7CLTEoBrtT5zF3Pnza788cZDEo8=", - "dev": true - }, - "orchestrator": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/orchestrator/-/orchestrator-0.3.8.tgz", - "integrity": "sha1-FOfp4nZPcxX7rBhOUGx6pt+UrX4=", - "dev": true, - "requires": { - "end-of-stream": "0.1.5", - "sequencify": "0.0.7", - "stream-consume": "0.1.0" - } - }, - "ordered-read-streams": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/ordered-read-streams/-/ordered-read-streams-0.1.0.tgz", - "integrity": "sha1-/VZamvjrRHO6abbtijQ1LLVS8SY=", - "dev": true - }, - "os-browserify": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.2.1.tgz", - "integrity": "sha1-Y/xMzuXS13Y9Jrv4YBB45sLgBE8=", + "loglevel": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.6.1.tgz", + "integrity": "sha1-4PyVEztu8nbNyIh82vJKpvFW+Po=", "dev": true }, - "os-homedir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", - "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", + "longest": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", + "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", "dev": true }, - "os-locale": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", - "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", + "loose-envify": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.3.1.tgz", + "integrity": "sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg=", "dev": true, "requires": { - "lcid": "1.0.0" + "js-tokens": "3.0.2" } }, - "os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", - "dev": true - }, - "osenv": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", - "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", + "loud-rejection": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", + "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=", "dev": true, "requires": { - "os-homedir": "1.0.2", - "os-tmpdir": "1.0.2" + "currently-unhandled": "0.4.1", + "signal-exit": "3.0.2" } }, - "p-finally": { + "lower-case": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-1.1.4.tgz", + "integrity": "sha1-miyr0bno4K6ZOkv31YdcOcQujqw=", + "dev": true + }, + "lowercase-keys": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.0.tgz", + "integrity": "sha1-TjNms55/VFfjXxMkvfb4jQv8cwY=", "dev": true }, - "p-limit": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.2.0.tgz", - "integrity": "sha512-Y/OtIaXtUPr4/YpMv1pCL5L5ed0rumAaAeBSj12F+bSlMdys7i8oQF/GUJmfpTS/QoaRrS/k6pma29haJpsMng==", + "lru-cache": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.2.tgz", + "integrity": "sha512-wgeVXhrDwAWnIF/yZARsFnMBtdFXOg1b8RIrhilp+0iDYN4mdQcNZElDZ0e4B64BhaxeQ5zN7PMyvu7we1kPeQ==", "dev": true, "requires": { - "p-try": "1.0.0" + "pseudomap": "1.0.2", + "yallist": "2.1.2" } }, - "p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "magic-string": { + "version": "0.22.5", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.22.5.tgz", + "integrity": "sha512-oreip9rJZkzvA8Qzk9HFs8fZGF/u7H/gtrE8EN6RjKJ9kh2HlC+yQ2QezifqTZfGyiuAV0dRv5a+y/8gBb1m9w==", "dev": true, "requires": { - "p-limit": "1.2.0" + "vlq": "0.2.3" } }, - "p-map": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-1.2.0.tgz", - "integrity": "sha512-r6zKACMNhjPJMTl8KcFH4li//gkrXWfbD6feV8l6doRHlzljFWGJ2AP6iKaCJXyZmAUMOPtvbW7EXkbWO/pLEA==", - "dev": true - }, - "p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", - "dev": true - }, - "pac-proxy-agent": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-1.1.0.tgz", - "integrity": "sha512-QBELCWyLYPgE2Gj+4wUEiMscHrQ8nRPBzYItQNOHWavwBt25ohZHQC4qnd5IszdVVrFbLsQ+dPkm6eqdjJAmwQ==", + "mailcomposer": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/mailcomposer/-/mailcomposer-4.0.1.tgz", + "integrity": "sha1-DhxEsqB890DuF9wUm6AJ8Zyt/rQ=", "dev": true, "optional": true, "requires": { - "agent-base": "2.1.1", - "debug": "2.6.9", - "extend": "3.0.1", - "get-uri": "2.0.1", - "http-proxy-agent": "1.0.0", - "https-proxy-agent": "1.0.0", - "pac-resolver": "2.0.0", - "raw-body": "2.3.2", - "socks-proxy-agent": "2.1.1" + "buildmail": "4.0.1", + "libmime": "3.0.0" } }, - "pac-resolver": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-2.0.0.tgz", - "integrity": "sha1-mbiNLxk/ve78HJpSnB8yYKtSd80=", + "mailgun-js": { + "version": "0.7.15", + "resolved": "https://registry.npmjs.org/mailgun-js/-/mailgun-js-0.7.15.tgz", + "integrity": "sha1-7jZqINrGTDwVwD1sGz4O15UlKrs=", "dev": true, "optional": true, "requires": { - "co": "3.0.6", - "degenerator": "1.0.4", - "ip": "1.0.1", - "netmask": "1.0.6", - "thunkify": "2.1.2" + "async": "2.1.5", + "debug": "2.2.0", + "form-data": "2.1.4", + "inflection": "1.10.0", + "is-stream": "1.1.0", + "path-proxy": "1.0.0", + "proxy-agent": "2.0.0", + "q": "1.4.1", + "tsscmp": "1.0.5" }, "dependencies": { - "co": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/co/-/co-3.0.6.tgz", - "integrity": "sha1-FEXyJsXrlWE45oyawwFn6n0ua9o=", + "async": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/async/-/async-2.1.5.tgz", + "integrity": "sha1-5YfGhYCZSsZ/xW/4bTrFa9voELw=", + "dev": true, + "optional": true, + "requires": { + "lodash": "4.17.5" + } + }, + "debug": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", + "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", + "dev": true, + "optional": true, + "requires": { + "ms": "0.7.1" + } + }, + "ms": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", + "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", + "dev": true, + "optional": true + }, + "q": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.4.1.tgz", + "integrity": "sha1-VXBbzZPF82c1MMLCy8DCs63cKG4=", "dev": true, "optional": true } } }, - "package-json": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/package-json/-/package-json-4.0.1.tgz", - "integrity": "sha1-iGmgQBJTZhxMTKPabCEh7VVfXu0=", + "make-dir": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.2.0.tgz", + "integrity": "sha512-aNUAa4UMg/UougV25bbrU4ZaaKNjJ/3/xnvg/twpmKROPdKZPZ9wGgI0opdZzO8q/zUFawoUuixuOv33eZ61Iw==", "dev": true, "requires": { - "got": "6.7.1", - "registry-auth-token": "3.3.2", - "registry-url": "3.1.0", - "semver": "5.5.0" - }, - "dependencies": { - "semver": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", - "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", - "dev": true - } + "pify": "3.0.0" } }, - "pako": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/pako/-/pako-0.2.9.tgz", - "integrity": "sha1-8/dSL073gjSNqBYbrZ7P1Rv4OnU=", + "map-cache": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", + "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", "dev": true }, - "parents": { + "map-obj": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parents/-/parents-1.0.1.tgz", - "integrity": "sha1-/t1NK/GTp3dF/nHjcdc8MwfZx1E=", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", + "dev": true + }, + "map-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", + "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", "dev": true, "requires": { - "path-platform": "0.11.15" + "object-visit": "1.0.1" } }, - "parse-asn1": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.0.tgz", - "integrity": "sha1-N8T5t+06tlx0gXtfJICTf7+XxxI=", + "md5.js": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.4.tgz", + "integrity": "sha1-6b296UogpawYsENA/Fdk1bCdkB0=", "dev": true, "requires": { - "asn1.js": "4.9.1", - "browserify-aes": "1.1.1", - "create-hash": "1.1.3", - "evp_bytestokey": "1.0.3", - "pbkdf2": "3.0.14" + "hash-base": "3.0.4", + "inherits": "2.0.3" + }, + "dependencies": { + "hash-base": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", + "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "safe-buffer": "5.1.1" + } + } } }, - "parse-filepath": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parse-filepath/-/parse-filepath-1.0.1.tgz", - "integrity": "sha1-FZ1hVdQ5BNFsEO9piRHaHpGWm3M=", + "media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", + "dev": true + }, + "mem": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/mem/-/mem-1.1.0.tgz", + "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", "dev": true, "requires": { - "is-absolute": "0.2.6", - "map-cache": "0.2.2", - "path-root": "0.1.1" + "mimic-fn": "1.2.0" } }, - "parse-glob": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz", - "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", + "memory-fs": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz", + "integrity": "sha1-OpoguEYlI+RHz7x+i7gO1me/xVI=", "dev": true, "requires": { - "glob-base": "0.3.0", - "is-dotfile": "1.0.3", - "is-extglob": "1.0.0", - "is-glob": "2.0.1" + "errno": "0.1.7", + "readable-stream": "2.3.5" } }, - "parse-json": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", - "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", + "meow": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz", + "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=", "dev": true, "requires": { - "error-ex": "1.3.1" + "camelcase-keys": "2.1.0", + "decamelize": "1.2.0", + "loud-rejection": "1.6.0", + "map-obj": "1.0.1", + "minimist": "1.2.0", + "normalize-package-data": "2.4.0", + "object-assign": "4.1.1", + "read-pkg-up": "1.0.1", + "redent": "1.0.0", + "trim-newlines": "1.0.0" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + } } }, - "parse-ms": { + "merge-descriptors": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parse-ms/-/parse-ms-1.0.1.tgz", - "integrity": "sha1-VjRtR0nXjyNDDKDHE4UK75GqNh0=", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=", "dev": true }, - "parse-passwd": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", - "integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=", + "methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", "dev": true }, - "parsejson": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/parsejson/-/parsejson-0.0.3.tgz", - "integrity": "sha1-q343WfIJ7OmUN5c/fQ8fZK4OZKs=", - "dev": true, - "requires": { - "better-assert": "1.0.2" - } - }, - "parseqs": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/parseqs/-/parseqs-0.0.5.tgz", - "integrity": "sha1-1SCKNzjkZ2bikbouoXNoSSGouJ0=", + "micromatch": { + "version": "2.3.11", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", + "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", "dev": true, "requires": { - "better-assert": "1.0.2" + "arr-diff": "2.0.0", + "array-unique": "0.2.1", + "braces": "1.8.5", + "expand-brackets": "0.1.5", + "extglob": "0.3.2", + "filename-regex": "2.0.1", + "is-extglob": "1.0.0", + "is-glob": "2.0.1", + "kind-of": "3.2.2", + "normalize-path": "2.1.1", + "object.omit": "2.0.1", + "parse-glob": "3.0.4", + "regex-cache": "0.4.4" } }, - "parseuri": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/parseuri/-/parseuri-0.0.5.tgz", - "integrity": "sha1-gCBKUNTbt3m/3G6+J3jZDkvOMgo=", + "miller-rabin": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", + "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", "dev": true, "requires": { - "better-assert": "1.0.2" + "bn.js": "4.11.8", + "brorand": "1.1.0" } }, - "parseurl": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.2.tgz", - "integrity": "sha1-/CidTtiZMRlGDBViUyYs3I3mW/M=", + "mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", "dev": true }, - "path-browserify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.0.tgz", - "integrity": "sha1-oLhwcpquIUAFt9UDLsLLuw+0RRo=", + "mime-db": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", + "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==", "dev": true }, - "path-exists": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", - "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", + "mime-types": { + "version": "2.1.18", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", + "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", "dev": true, "requires": { - "pinkie-promise": "2.0.1" + "mime-db": "1.33.0" } }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "mimic-fn": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", + "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", "dev": true }, - "path-is-inside": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", - "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", + "minimalistic-assert": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz", + "integrity": "sha1-cCvi3aazf0g2vLP121ZkG2Sh09M=", "dev": true }, - "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "minimalistic-crypto-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", + "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=", "dev": true }, - "path-parse": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", - "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", - "dev": true - }, - "path-platform": { - "version": "0.11.15", - "resolved": "https://registry.npmjs.org/path-platform/-/path-platform-0.11.15.tgz", - "integrity": "sha1-6GQhf3TDaFDwhSt43Hv31KVyG/I=", - "dev": true - }, - "path-proxy": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/path-proxy/-/path-proxy-1.0.0.tgz", - "integrity": "sha1-GOijaFn8nS8aU7SN7hOFQ8Ag3l4=", - "dev": true, - "optional": true, - "requires": { - "inflection": "1.3.8" - }, - "dependencies": { - "inflection": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/inflection/-/inflection-1.3.8.tgz", - "integrity": "sha1-y9Fg2p91sUw8xjV41POWeEvzAU4=", - "dev": true, - "optional": true - } - } - }, - "path-root": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz", - "integrity": "sha1-mkpoFMrBwM1zNgqV8yCDyOpHRbc=", + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "requires": { - "path-root-regex": "0.1.2" + "brace-expansion": "1.1.11" } }, - "path-root-regex": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/path-root-regex/-/path-root-regex-0.1.2.tgz", - "integrity": "sha1-v8zcjfWxLcUsi0PsONGNcsBLqW0=", + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", "dev": true }, - "path-type": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", - "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", + "minimist-options": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-3.0.2.tgz", + "integrity": "sha512-FyBrT/d0d4+uiZRbqznPXqw3IpZZG3gl3wKWiX784FycUKVwBt0uLBFkQrtE4tZOrgo78nZp2jnKz3L65T5LdQ==", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "pify": "2.3.0", - "pinkie-promise": "2.0.1" - }, - "dependencies": { - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true - } + "arrify": "1.0.1", + "is-plain-obj": "1.1.0" } }, - "pbkdf2": { - "version": "3.0.14", - "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.14.tgz", - "integrity": "sha1-o14TxkeZsGzhUyD0WcIw5o5zut4=", + "mississippi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mississippi/-/mississippi-2.0.0.tgz", + "integrity": "sha512-zHo8v+otD1J10j/tC+VNoGK9keCuByhKovAvdn74dmxJl9+mWHnx6EMsDN4lgRoMI/eYo2nchAxniIbUPb5onw==", "dev": true, "requires": { - "create-hash": "1.1.3", - "create-hmac": "1.1.6", - "ripemd160": "2.0.1", - "safe-buffer": "5.1.1", - "sha.js": "2.4.9" + "concat-stream": "1.6.2", + "duplexify": "3.5.4", + "end-of-stream": "1.4.1", + "flush-write-stream": "1.0.3", + "from2": "2.3.0", + "parallel-transform": "1.1.0", + "pump": "2.0.1", + "pumpify": "1.4.0", + "stream-each": "1.2.2", + "through2": "2.0.3" } }, - "pend": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=", - "dev": true - }, - "performance-now": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-0.2.0.tgz", - "integrity": "sha1-M+8wxcd9TqIcWlOGnZG1bY8lVeU=", - "dev": true - }, - "phantomjs-prebuilt": { - "version": "2.1.15", - "resolved": "https://registry.npmjs.org/phantomjs-prebuilt/-/phantomjs-prebuilt-2.1.15.tgz", - "integrity": "sha1-IPhugtM0nFBZF1J3RbekEeCLOQM=", + "mixin-deep": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", + "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", "dev": true, "requires": { - "es6-promise": "4.0.5", - "extract-zip": "1.6.5", - "fs-extra": "1.0.0", - "hasha": "2.2.0", - "kew": "0.7.0", - "progress": "1.1.8", - "request": "2.81.0", - "request-progress": "2.0.1", - "which": "1.2.14" + "for-in": "1.0.2", + "is-extendable": "1.0.1" }, "dependencies": { - "which": { - "version": "1.2.14", - "resolved": "https://registry.npmjs.org/which/-/which-1.2.14.tgz", - "integrity": "sha1-mofEN48D6CfOyvGs31bHNsAcFOU=", + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", "dev": true, "requires": { - "isexe": "2.0.0" + "is-plain-object": "2.0.4" } } } }, - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "dev": true - }, - "pinkie": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", - "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", - "dev": true - }, - "pinkie-promise": { + "mixin-object": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", - "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "resolved": "https://registry.npmjs.org/mixin-object/-/mixin-object-2.0.1.tgz", + "integrity": "sha1-T7lJRB2rGCVA8f4DW6YOGUel5X4=", "dev": true, "requires": { - "pinkie": "2.0.4" - } - }, - "plugin-error": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-0.1.2.tgz", - "integrity": "sha1-O5uzM1zPAPQl4HQ34ZJ2ln2kes4=", - "dev": true, - "requires": { - "ansi-cyan": "0.1.1", - "ansi-red": "0.1.1", - "arr-diff": "1.1.0", - "arr-union": "2.1.0", - "extend-shallow": "1.1.4" + "for-in": "0.1.8", + "is-extendable": "0.1.1" }, "dependencies": { - "arr-diff": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-1.1.0.tgz", - "integrity": "sha1-aHwydYFjWI/vfeezb6vklesaOZo=", - "dev": true, - "requires": { - "arr-flatten": "1.1.0", - "array-slice": "0.2.3" - } - }, - "array-slice": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-0.2.3.tgz", - "integrity": "sha1-3Tz7gO15c6dRF82sabC5nshhhvU=", + "for-in": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-0.1.8.tgz", + "integrity": "sha1-2Hc5COMSVhCZUrH9ubP6hn0ndeE=", "dev": true } } }, - "plugin-log": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/plugin-log/-/plugin-log-0.1.0.tgz", - "integrity": "sha1-hgSc9qsQgzOYqTHzaJy67nteEzM=", + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", "dev": true, "requires": { - "chalk": "1.1.3", - "dateformat": "1.0.12" + "minimist": "0.0.8" + } + }, + "module-deps": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/module-deps/-/module-deps-4.1.1.tgz", + "integrity": "sha1-IyFYM/HaE/1gbMuAh7RIUty4If0=", + "dev": true, + "requires": { + "JSONStream": "1.3.2", + "browser-resolve": "1.11.2", + "cached-path-relative": "1.0.1", + "concat-stream": "1.5.2", + "defined": "1.0.0", + "detective": "4.7.1", + "duplexer2": "0.1.4", + "inherits": "2.0.3", + "parents": "1.0.1", + "readable-stream": "2.3.5", + "resolve": "1.6.0", + "stream-combiner2": "1.1.1", + "subarg": "1.0.0", + "through2": "2.0.3", + "xtend": "4.0.1" }, "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "2.2.1", - "escape-string-regexp": "1.0.5", - "has-ansi": "2.0.0", - "strip-ansi": "3.0.1", - "supports-color": "2.0.0" - } - }, - "dateformat": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-1.0.12.tgz", - "integrity": "sha1-nxJLZ1lMk3/3BpMuSmQsyo27/uk=", - "dev": true, - "requires": { - "get-stdin": "4.0.1", - "meow": "3.7.0" - } - }, - "has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "concat-stream": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.5.2.tgz", + "integrity": "sha1-cIl4Yk2FavQaWnQd790mHadSwmY=", "dev": true, "requires": { - "ansi-regex": "2.1.1" + "inherits": "2.0.3", + "readable-stream": "2.0.6", + "typedarray": "0.0.6" + }, + "dependencies": { + "readable-stream": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz", + "integrity": "sha1-j5A0HmilPMySh4jaz80Rs265t44=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "string_decoder": "0.10.31", + "util-deprecate": "1.0.2" + } + } } }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "2.1.1" - } + "process-nextick-args": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz", + "integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=", + "dev": true }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", "dev": true } } }, - "plur": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/plur/-/plur-2.1.2.tgz", - "integrity": "sha1-dIJFLBoPUI4+NE6uwxLJHCncZVo=", + "moment": { + "version": "2.21.0", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.21.0.tgz", + "integrity": "sha512-TCZ36BjURTeFTM/CwRcViQlfkMvL1/vFISuNLO5GkcVm1+QHfbSiNqZuWeMFjj1/3+uAjXswgRk30j1kkLYJBQ==", + "dev": true + }, + "move-concurrently": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", + "integrity": "sha1-viwAX9oy4LKa8fBdfEszIUxwH5I=", "dev": true, "requires": { - "irregular-plurals": "1.4.0" + "aproba": "1.2.0", + "copy-concurrently": "1.0.5", + "fs-write-stream-atomic": "1.0.10", + "mkdirp": "0.5.1", + "rimraf": "2.6.2", + "run-queue": "1.0.3" } }, - "portfinder": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.13.tgz", - "integrity": "sha1-uzLs2HwnEErm7kS1o8y/Drsa7ek=", + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "multicast-dns": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-6.2.3.tgz", + "integrity": "sha512-ji6J5enbMyGRHIAkAOu3WdV8nggqviKCEKtXcOqfphZZtQrmHKycfynJ2V7eVPUA4NhJ6V7Wf4TmGbTwKE9B6g==", "dev": true, "requires": { - "async": "1.5.2", - "debug": "2.6.9", - "mkdirp": "0.5.1" + "dns-packet": "1.3.1", + "thunky": "1.0.2" } }, - "portscanner": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/portscanner/-/portscanner-2.1.1.tgz", - "integrity": "sha1-6rtAnk3iSVD1oqUW01rnaTQ/u5Y=", + "multicast-dns-service-types": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/multicast-dns-service-types/-/multicast-dns-service-types-1.1.0.tgz", + "integrity": "sha1-iZ8R2WhuXgXLkbNdXw5jt3PPyQE=", + "dev": true + }, + "nan": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.10.0.tgz", + "integrity": "sha512-bAdJv7fBLhWC+/Bls0Oza+mvTaNQtP+1RyhhhvD95pgUJz6XM5IzgmxOkItJ9tkoCiplvAnXI1tNmmUD/eScyA==", + "dev": true + }, + "nanomatch": { + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.9.tgz", + "integrity": "sha512-n8R9bS8yQ6eSXaV6jHUpKzD8gLsin02w1HSFiegwrs9E098Ylhw5jdyKPaYqvHknHaSCKTPp7C8dGCQ0q9koXA==", "dev": true, "requires": { - "async": "1.5.2", - "is-number-like": "1.0.8" + "arr-diff": "4.0.0", + "array-unique": "0.3.2", + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "fragment-cache": "0.2.1", + "is-odd": "2.0.0", + "is-windows": "1.0.2", + "kind-of": "6.0.2", + "object.pick": "1.3.0", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" }, "dependencies": { - "async": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", - "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", + "dev": true + }, + "array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", + "dev": true + }, + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", "dev": true } } }, - "postcss": { - "version": "6.0.20", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.20.tgz", - "integrity": "sha512-Opr6usW30Iy0xEDrJywDckRxtylfO7gTGs3Kfb2LdLQlGsUg89fTy0R3Vm1Dub2YHO7MK58avr0p70+uFFHb7A==", + "natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", + "dev": true + }, + "ncname": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ncname/-/ncname-1.0.0.tgz", + "integrity": "sha1-W1etGLHKCShk72Kwse2BlPODtxw=", "dev": true, "requires": { - "chalk": "2.3.2", - "source-map": "0.6.1", - "supports-color": "5.3.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "1.9.1" - } - }, - "chalk": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz", - "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", + "xml-char-classes": "1.0.0" + } + }, + "negotiator": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz", + "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=", + "dev": true + }, + "neo-async": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.5.0.tgz", + "integrity": "sha512-nJmSswG4As/MkRq7QZFuH/sf/yuv8ODdMZrY4Bedjp77a5MK4A6s7YbBB64c9u79EBUOfXUXBvArmvzTD0X+6g==", + "dev": true + }, + "netmask": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/netmask/-/netmask-1.0.6.tgz", + "integrity": "sha1-ICl+idhvb2QA8lDZ9Pa0wZRfzTU=", + "dev": true, + "optional": true + }, + "next-tick": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", + "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=", + "dev": true + }, + "ng-packagr": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/ng-packagr/-/ng-packagr-2.2.0.tgz", + "integrity": "sha512-2qpXc2Dgyt9/JlIXoVB1eZZTtKu9OTv7eEngLLxfDXQSJ4q8elYDYMGXytIXdBO2GlVP2Z1uOCNMryQnAvhR0Q==", + "dev": true, + "requires": { + "@ngtools/json-schema": "1.2.0", + "autoprefixer": "7.2.6", + "browserslist": "2.11.3", + "chalk": "2.3.2", + "commander": "2.15.1", + "cpx": "1.5.0", + "fs-extra": "5.0.0", + "glob": "7.1.2", + "injection-js": "2.2.1", + "less": "2.7.3", + "node-sass": "4.7.2", + "node-sass-tilde-importer": "1.0.2", + "postcss": "6.0.20", + "postcss-clean": "1.1.0", + "postcss-url": "7.3.1", + "read-pkg-up": "3.0.0", + "rimraf": "2.6.2", + "rollup": "0.55.5", + "rollup-plugin-cleanup": "2.0.0", + "rollup-plugin-commonjs": "8.3.0", + "rollup-plugin-license": "0.6.0", + "rollup-plugin-node-resolve": "3.3.0", + "rxjs": "5.5.7", + "sorcery": "0.10.0", + "strip-bom": "3.0.0", + "stylus": "0.54.5", + "uglify-js": "3.3.16", + "update-notifier": "2.3.0" + }, + "dependencies": { + "chalk": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz", + "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", "dev": true, "requires": { "ansi-styles": "3.2.1", @@ -9041,16 +9510,79 @@ "supports-color": "5.3.0" } }, + "fs-extra": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-5.0.0.tgz", + "integrity": "sha512-66Pm4RYbjzdyeuqudYqhFiNBbCIuI9kgRqLPSHIlXHidW8NIQtVdkM1yeZ4lXwuhbTETv3EUGMNHAAw6hiundQ==", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "jsonfile": "4.0.0", + "universalify": "0.1.1" + } + }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", "dev": true }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "load-json-file": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "parse-json": "4.0.0", + "pify": "3.0.0", + "strip-bom": "3.0.0" + } + }, + "parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "dev": true, + "requires": { + "error-ex": "1.3.1", + "json-parse-better-errors": "1.0.1" + } + }, + "read-pkg": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "dev": true, + "requires": { + "load-json-file": "4.0.0", + "normalize-package-data": "2.4.0", + "path-type": "3.0.0" + } + }, + "read-pkg-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", + "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", + "dev": true, + "requires": { + "find-up": "2.1.0", + "read-pkg": "3.0.0" + } + }, + "rxjs": { + "version": "5.5.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.7.tgz", + "integrity": "sha512-Hxo2ac8gRQjwjtKgukMIwBRbq5+KAeEV5hXM4obYBOAghev41bDQWgFH4svYiU9UnQ5kNww2LgfyBdevCd2HXA==", + "dev": true, + "requires": { + "symbol-observable": "1.0.1" + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", "dev": true }, "supports-color": { @@ -9064,2979 +9596,5244 @@ } } }, - "postcss-clean": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/postcss-clean/-/postcss-clean-1.1.0.tgz", - "integrity": "sha512-83g3GqMbCM5NL6MlbbPLJ/m2NrUepBF44MoDk4Gt04QGXeXKh9+ilQa0DzLnYnvqYHQCw83nckuEzBFr2muwbg==", + "no-case": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/no-case/-/no-case-2.3.2.tgz", + "integrity": "sha512-rmTZ9kz+f3rCvK2TD1Ue/oZlns7OGoIWP4fc3llxxRXlOkHKoWPPWJOfFYpITabSow43QJbRIoHQXtt10VldyQ==", "dev": true, "requires": { - "clean-css": "4.1.11", - "postcss": "6.0.20" + "lower-case": "1.1.4" } }, - "postcss-url": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/postcss-url/-/postcss-url-7.3.1.tgz", - "integrity": "sha512-Ya5KIjGptgz0OtrVYfi2UbLxVAZ6Emc4Of+Grx4Sf1deWlRpFwLr8FrtkUxfqh+XiZIVkXbjQrddE10ESpNmdA==", + "node-forge": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.7.1.tgz", + "integrity": "sha1-naYR6giYL0uUIGs760zJZl8gwwA=", + "dev": true + }, + "node-gyp": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-3.6.2.tgz", + "integrity": "sha1-m/vlRWIoYoSDjnUOrAUpWFP6HGA=", "dev": true, "requires": { - "mime": "1.6.0", + "fstream": "1.0.11", + "glob": "7.1.2", + "graceful-fs": "4.1.11", "minimatch": "3.0.4", "mkdirp": "0.5.1", - "postcss": "6.0.20", - "xxhashjs": "0.2.2" + "nopt": "3.0.6", + "npmlog": "4.1.2", + "osenv": "0.1.5", + "request": "2.81.0", + "rimraf": "2.6.2", + "semver": "5.3.0", + "tar": "2.2.1", + "which": "1.3.0" + }, + "dependencies": { + "nopt": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", + "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=", + "dev": true, + "requires": { + "abbrev": "1.1.1" + } + }, + "semver": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz", + "integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=", + "dev": true + } } }, - "postcss-value-parser": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.0.tgz", - "integrity": "sha1-h/OPnxj3dKSrTIojL1xc6IcqnRU=", - "dev": true - }, - "prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", - "dev": true - }, - "prepend-http": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", - "integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=", - "dev": true - }, - "preserve": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz", - "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", - "dev": true - }, - "pretty-hrtime": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz", - "integrity": "sha1-t+PqQkNaTJsnWdmeDyAesZWALuE=", - "dev": true - }, - "pretty-ms": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-3.1.0.tgz", - "integrity": "sha1-6crJx2v27lL+lC3ZxsQhMVOxKIE=", + "node-libs-browser": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.1.0.tgz", + "integrity": "sha512-5AzFzdoIMb89hBGMZglEegffzgRg+ZFoUmisQ8HI4j1KDdpx13J0taNp2y9xPbur6W61gepGDDotGBVQ7mfUCg==", "dev": true, "requires": { - "parse-ms": "1.0.1", - "plur": "2.1.2" + "assert": "1.4.1", + "browserify-zlib": "0.2.0", + "buffer": "4.9.1", + "console-browserify": "1.1.0", + "constants-browserify": "1.0.0", + "crypto-browserify": "3.12.0", + "domain-browser": "1.2.0", + "events": "1.1.1", + "https-browserify": "1.0.0", + "os-browserify": "0.3.0", + "path-browserify": "0.0.0", + "process": "0.11.10", + "punycode": "1.4.1", + "querystring-es3": "0.2.1", + "readable-stream": "2.3.5", + "stream-browserify": "2.0.1", + "stream-http": "2.8.1", + "string_decoder": "1.0.3", + "timers-browserify": "2.0.6", + "tty-browserify": "0.0.0", + "url": "0.11.0", + "util": "0.10.3", + "vm-browserify": "0.0.4" } }, - "process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", - "dev": true - }, - "process-nextick-args": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz", - "integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=", - "dev": true - }, - "progress": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/progress/-/progress-1.1.8.tgz", - "integrity": "sha1-4mDHj2Fhzdmw5WzD4Khd4Xx6V74=", + "node-modules-path": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/node-modules-path/-/node-modules-path-1.0.1.tgz", + "integrity": "sha1-QAlrCM560OoUaAhjr0ScfHWl0cg=", "dev": true }, - "promise": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", - "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", - "dev": true, - "optional": true, - "requires": { - "asap": "2.0.6" - } - }, - "proxy-agent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-2.0.0.tgz", - "integrity": "sha1-V+tTR6qAXXTsaByyVknbo5yTNJk=", + "node-sass": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.7.2.tgz", + "integrity": "sha512-CaV+wLqZ7//Jdom5aUFCpGNoECd7BbNhjuwdsX/LkXBrHl8eb1Wjw4HvWqcFvhr5KuNgAk8i/myf/MQ1YYeroA==", "dev": true, - "optional": true, "requires": { - "agent-base": "2.1.1", - "debug": "2.6.9", - "extend": "3.0.1", - "http-proxy-agent": "1.0.0", - "https-proxy-agent": "1.0.0", - "lru-cache": "2.6.5", - "pac-proxy-agent": "1.1.0", - "socks-proxy-agent": "2.1.1" + "async-foreach": "0.1.3", + "chalk": "1.1.3", + "cross-spawn": "3.0.1", + "gaze": "1.1.2", + "get-stdin": "4.0.1", + "glob": "7.1.2", + "in-publish": "2.0.0", + "lodash.assign": "4.2.0", + "lodash.clonedeep": "4.5.0", + "lodash.mergewith": "4.6.1", + "meow": "3.7.0", + "mkdirp": "0.5.1", + "nan": "2.10.0", + "node-gyp": "3.6.2", + "npmlog": "4.1.2", + "request": "2.79.0", + "sass-graph": "2.2.4", + "stdout-stream": "1.4.0", + "true-case-path": "1.0.2" }, "dependencies": { - "lru-cache": { - "version": "2.6.5", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.6.5.tgz", - "integrity": "sha1-5W1jVBSO3o13B7WNFDIg/QjfD9U=", + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "caseless": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.11.0.tgz", + "integrity": "sha1-cVuW6phBWTzDMGeSP17GDr2k99c=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, - "optional": true + "requires": { + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + } + }, + "har-validator": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-2.0.6.tgz", + "integrity": "sha1-zcvAgYgmWtEZtqWnyKtw7s+10n0=", + "dev": true, + "requires": { + "chalk": "1.1.3", + "commander": "2.15.1", + "is-my-json-valid": "2.17.2", + "pinkie-promise": "2.0.1" + } + }, + "qs": { + "version": "6.3.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.3.2.tgz", + "integrity": "sha1-51vV9uJoEioqDgvaYwslUMFmUCw=", + "dev": true + }, + "request": { + "version": "2.79.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.79.0.tgz", + "integrity": "sha1-Tf5b9r6LjNw3/Pk+BLZVd3InEN4=", + "dev": true, + "requires": { + "aws-sign2": "0.6.0", + "aws4": "1.6.0", + "caseless": "0.11.0", + "combined-stream": "1.0.6", + "extend": "3.0.1", + "forever-agent": "0.6.1", + "form-data": "2.1.4", + "har-validator": "2.0.6", + "hawk": "3.1.3", + "http-signature": "1.1.1", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.18", + "oauth-sign": "0.8.2", + "qs": "6.3.2", + "stringstream": "0.0.5", + "tough-cookie": "2.3.4", + "tunnel-agent": "0.4.3", + "uuid": "3.2.1" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + }, + "tunnel-agent": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.3.tgz", + "integrity": "sha1-Y3PbdpCf5XDgjXNYM2Xtgop07us=", + "dev": true } } }, - "prr": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/prr/-/prr-0.0.0.tgz", - "integrity": "sha1-GoS4WQgyVQFBGFPQCB7j+obikmo=", - "dev": true - }, - "pseudomap": { + "node-sass-tilde-importer": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", - "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", - "dev": true - }, - "public-encrypt": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.0.tgz", - "integrity": "sha1-OfaZ86RlYN1eusvKaTyvfGXBjMY=", + "resolved": "https://registry.npmjs.org/node-sass-tilde-importer/-/node-sass-tilde-importer-1.0.2.tgz", + "integrity": "sha512-Swcmr38Y7uB78itQeBm3mThjxBy9/Ah/ykPIaURY/L6Nec9AyRoL/jJ7ECfMR+oZeCTVQNxVMu/aHU+TLRVbdg==", "dev": true, "requires": { - "bn.js": "4.11.8", - "browserify-rsa": "4.0.1", - "create-hash": "1.1.3", - "parse-asn1": "5.1.0", - "randombytes": "2.0.5" + "find-parent-dir": "0.3.0" } }, - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "dev": true - }, - "q": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/q/-/q-1.4.1.tgz", - "integrity": "sha1-VXBbzZPF82c1MMLCy8DCs63cKG4=", - "dev": true, - "optional": true - }, - "qjobs": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/qjobs/-/qjobs-1.2.0.tgz", - "integrity": "sha512-8YOJEHtxpySA3fFDyCRxA+UUV+fA+rTWnuWvylOK/NCjhY+b4ocCtmu8TtsWb+mYeU+GCHf/S66KZF/AsteKHg==", - "dev": true - }, - "qs": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/qs/-/qs-2.3.3.tgz", - "integrity": "sha1-6eha2+ddoLvkyOBHaghikPhjtAQ=", - "dev": true - }, - "querystring": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", - "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", - "dev": true - }, - "querystring-es3": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", - "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=", - "dev": true - }, - "randomatic": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.7.tgz", - "integrity": "sha1-x6vpzIuHwLqodrGf3oP9RkeX44w=", + "nodemailer": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-2.7.2.tgz", + "integrity": "sha1-8kLmSa7q45tsftdA73sGHEBNMPk=", "dev": true, + "optional": true, "requires": { - "is-number": "3.0.0", - "kind-of": "4.0.0" + "libmime": "3.0.0", + "mailcomposer": "4.0.1", + "nodemailer-direct-transport": "3.3.2", + "nodemailer-shared": "1.1.0", + "nodemailer-smtp-pool": "2.8.2", + "nodemailer-smtp-transport": "2.7.2", + "socks": "1.1.9" }, "dependencies": { - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "1.1.5" - } - } - } - }, - "kind-of": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", - "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", + "socks": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/socks/-/socks-1.1.9.tgz", + "integrity": "sha1-Yo1+TQSRJDVEWsC25Fk3bLPm1pE=", "dev": true, + "optional": true, "requires": { - "is-buffer": "1.1.5" + "ip": "1.1.5", + "smart-buffer": "1.1.15" } } } }, - "randombytes": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.0.5.tgz", - "integrity": "sha1-3ACaJGuNCaF3tLegrne8Vw9LG3k=", + "nodemailer-direct-transport": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/nodemailer-direct-transport/-/nodemailer-direct-transport-3.3.2.tgz", + "integrity": "sha1-6W+vuQNYVglH5WkBfZfmBzilCoY=", "dev": true, + "optional": true, "requires": { - "safe-buffer": "5.1.1" + "nodemailer-shared": "1.1.0", + "smtp-connection": "2.12.0" } }, - "range-parser": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz", - "integrity": "sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4=", + "nodemailer-fetch": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/nodemailer-fetch/-/nodemailer-fetch-1.6.0.tgz", + "integrity": "sha1-ecSQihwPXzdbc/6IjamCj23JY6Q=", "dev": true }, - "raw-body": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.3.2.tgz", - "integrity": "sha1-vNYMd9Prk83gBQKVw/N5OJvIj4k=", + "nodemailer-shared": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/nodemailer-shared/-/nodemailer-shared-1.1.0.tgz", + "integrity": "sha1-z1mU4v0mjQD1zw+nZ6CBae2wfsA=", "dev": true, "requires": { - "bytes": "3.0.0", - "http-errors": "1.6.2", - "iconv-lite": "0.4.19", - "unpipe": "1.0.0" + "nodemailer-fetch": "1.6.0" } }, - "rc": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.6.tgz", - "integrity": "sha1-6xiYnG1PTxYsOZ953dKfODVWgJI=", + "nodemailer-smtp-pool": { + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/nodemailer-smtp-pool/-/nodemailer-smtp-pool-2.8.2.tgz", + "integrity": "sha1-LrlNbPhXgLG0clzoU7nL1ejajHI=", "dev": true, + "optional": true, "requires": { - "deep-extend": "0.4.2", - "ini": "1.3.4", - "minimist": "1.2.0", - "strip-json-comments": "2.0.1" + "nodemailer-shared": "1.1.0", + "nodemailer-wellknown": "0.1.10", + "smtp-connection": "2.12.0" } }, - "read-only-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/read-only-stream/-/read-only-stream-2.0.0.tgz", - "integrity": "sha1-JyT9aoET1zdkrCiNQ4YnDB2/F/A=", + "nodemailer-smtp-transport": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/nodemailer-smtp-transport/-/nodemailer-smtp-transport-2.7.2.tgz", + "integrity": "sha1-A9ccdjFPFKx9vHvwM6am0W1n+3c=", "dev": true, + "optional": true, "requires": { - "readable-stream": "2.3.5" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", - "dev": true - }, - "readable-stream": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", - "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", - "dev": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "2.0.0", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", - "dev": true, - "requires": { - "safe-buffer": "5.1.1" - } - } + "nodemailer-shared": "1.1.0", + "nodemailer-wellknown": "0.1.10", + "smtp-connection": "2.12.0" } }, - "read-pkg": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", - "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", - "dev": true, - "requires": { - "load-json-file": "1.1.0", - "normalize-package-data": "2.4.0", - "path-type": "1.1.0" - } + "nodemailer-wellknown": { + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/nodemailer-wellknown/-/nodemailer-wellknown-0.1.10.tgz", + "integrity": "sha1-WG24EB2zDLRDjrVGc3pBqtDPE9U=", + "dev": true }, - "read-pkg-up": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", - "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", + "nopt": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz", + "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=", "dev": true, "requires": { - "find-up": "1.1.2", - "read-pkg": "1.1.0" + "abbrev": "1.1.1", + "osenv": "0.1.5" } }, - "readable-stream": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", - "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", + "normalize-package-data": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz", + "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "0.0.1", - "string_decoder": "0.10.31" + "hosted-git-info": "2.6.0", + "is-builtin-module": "1.0.0", + "semver": "5.5.0", + "validate-npm-package-license": "3.0.3" } }, - "readdirp": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.1.0.tgz", - "integrity": "sha1-TtCtBg3zBzMAxIRANz9y0cxkLXg=", + "normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "minimatch": "3.0.4", - "readable-stream": "2.3.3", - "set-immediate-shim": "1.0.1" - }, - "dependencies": { - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha1-No8lEtefnUb9/HE0mueHi7weuVw=", - "dev": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha1-D8Z9fBQYJd6UKC3VNr7GubzoYKs=", - "dev": true, - "requires": { - "safe-buffer": "5.1.1" - } - } + "remove-trailing-separator": "1.1.0" } }, - "rechoir": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", - "integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=", - "dev": true, - "requires": { - "resolve": "1.4.0" - } + "normalize-range": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", + "integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=", + "dev": true }, - "redent": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", - "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=", + "npm-path": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/npm-path/-/npm-path-2.0.4.tgz", + "integrity": "sha512-IFsj0R9C7ZdR5cP+ET342q77uSRdtWOlWpih5eC+lu29tIDbNEgDbzgVJ5UFvYHWhxDZ5TFkJafFioO0pPQjCw==", "dev": true, "requires": { - "indent-string": "2.1.0", - "strip-indent": "1.0.1" + "which": "1.3.0" } }, - "redis": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/redis/-/redis-2.8.0.tgz", - "integrity": "sha512-M1OkonEQwtRmZv4tEWF2VgpG0JWJ8Fv1PhlgT5+B+uNq2cA3Rt1Yt/ryoR+vQNOQcIEgdCdfH0jr3bDpihAw1A==", + "npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", "dev": true, - "optional": true, "requires": { - "double-ended-queue": "2.1.0-0", - "redis-commands": "1.3.5", - "redis-parser": "2.6.0" + "path-key": "2.0.1" } }, - "redis-commands": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/redis-commands/-/redis-commands-1.3.5.tgz", - "integrity": "sha512-foGF8u6MXGFF++1TZVC6icGXuMYPftKXt1FBT2vrfU9ZATNtZJ8duRC5d1lEfE8hyVe3jhelHGB91oB7I6qLsA==", - "dev": true, - "optional": true - }, - "redis-parser": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/redis-parser/-/redis-parser-2.6.0.tgz", - "integrity": "sha1-Uu0J2srBCPGmMcB+m2mUHnoZUEs=", - "dev": true, - "optional": true - }, - "reflect-metadata": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.12.tgz", - "integrity": "sha512-n+IyV+nGz3+0q3/Yf1ra12KpCyi001bi4XFxSjbiWWjfqb52iTTtpGXmCCAOWWIAn9KEuFZKGqBERHmrtScZ3A==", - "dev": true - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "regex-cache": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz", - "integrity": "sha1-db3FiioUls7EihKDW8VMjVYjNt0=", + "npm-which": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/npm-which/-/npm-which-3.0.1.tgz", + "integrity": "sha1-kiXybsOihcIJyuZ8OxGmtKtxQKo=", "dev": true, "requires": { - "is-equal-shallow": "0.1.3" + "commander": "2.15.1", + "npm-path": "2.0.4", + "which": "1.3.0" } }, - "registry-auth-token": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.3.2.tgz", - "integrity": "sha512-JL39c60XlzCVgNrO+qq68FoNb56w/m7JYvGR2jT5iR1xBrUA3Mfx5Twk5rqTThPmQKMWydGmq8oFtDlxfrmxnQ==", + "npmlog": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", + "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", "dev": true, "requires": { - "rc": "1.2.6", - "safe-buffer": "5.1.1" + "are-we-there-yet": "1.1.4", + "console-control-strings": "1.1.0", + "gauge": "2.7.4", + "set-blocking": "2.0.0" } }, - "registry-url": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-3.1.0.tgz", - "integrity": "sha1-PU74cPc93h138M+aOBQyRE4XSUI=", + "nth-check": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.1.tgz", + "integrity": "sha1-mSms32KPwsQQmN6rgqxYDPFJquQ=", "dev": true, "requires": { - "rc": "1.2.6" + "boolbase": "1.0.0" } }, - "remove-trailing-separator": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", - "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", + "null-check": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/null-check/-/null-check-1.0.0.tgz", + "integrity": "sha1-l33/1xdgErnsMNKjnbXPcqBDnt0=", "dev": true }, - "repeat-element": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz", - "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=", + "num2fraction": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz", + "integrity": "sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4=", "dev": true }, - "repeat-string": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", + "number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", "dev": true }, - "repeating": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", - "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", - "dev": true, - "requires": { - "is-finite": "1.0.2" - } + "nwmatcher": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/nwmatcher/-/nwmatcher-1.4.4.tgz", + "integrity": "sha512-3iuY4N5dhgMpCUrOVnuAdGrgxVqV2cJpM+XNccjR2DKOB1RUP0aA+wGXEiNziG/UKboFyGBIoKOaNlJxx8bciQ==", + "dev": true }, - "replace-ext": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-0.0.1.tgz", - "integrity": "sha1-KbvZIHinOfC8zitO5B6DeVNSKSQ=", + "oauth-sign": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", + "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=", "dev": true }, - "request": { - "version": "2.81.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz", - "integrity": "sha1-xpKJRqDgbF+Nb4qTM0af/aRimKA=", + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + }, + "object-component": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/object-component/-/object-component-0.0.3.tgz", + "integrity": "sha1-8MaapQ78lbhmwYb0AKM3acsvEpE=", + "dev": true + }, + "object-copy": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", + "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", "dev": true, "requires": { - "aws-sign2": "0.6.0", - "aws4": "1.6.0", - "caseless": "0.12.0", - "combined-stream": "1.0.5", - "extend": "3.0.1", - "forever-agent": "0.6.1", - "form-data": "2.1.4", - "har-validator": "4.2.1", - "hawk": "3.1.3", - "http-signature": "1.1.1", - "is-typedarray": "1.0.0", - "isstream": "0.1.2", - "json-stringify-safe": "5.0.1", - "mime-types": "2.1.17", - "oauth-sign": "0.8.2", - "performance-now": "0.2.0", - "qs": "6.4.0", - "safe-buffer": "5.1.1", - "stringstream": "0.0.5", - "tough-cookie": "2.3.3", - "tunnel-agent": "0.6.0", - "uuid": "3.1.0" + "copy-descriptor": "0.1.1", + "define-property": "0.2.5", + "kind-of": "3.2.2" }, "dependencies": { - "qs": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz", - "integrity": "sha1-E+JtKK1rD/qpExLNO/cI7TUecjM=", + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "0.1.6" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + }, + "dependencies": { + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + } + } + }, + "object-keys": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.11.tgz", + "integrity": "sha1-xUYBd4rVYPEULODgG8yotW0TQm0=", + "dev": true + }, + "object-visit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", + "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", + "dev": true, + "requires": { + "isobject": "3.0.1" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", "dev": true } } }, - "request-progress": { + "object.omit": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/request-progress/-/request-progress-2.0.1.tgz", - "integrity": "sha1-XTa7V5YcZzqlt4jbyBQf3yO0Tgg=", + "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", + "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", "dev": true, "requires": { - "throttleit": "1.0.0" + "for-own": "0.1.5", + "is-extendable": "0.1.1" } }, - "requestretry": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/requestretry/-/requestretry-1.13.0.tgz", - "integrity": "sha512-Lmh9qMvnQXADGAQxsXHP4rbgO6pffCfuR8XUBdP9aitJcLQJxhp7YZK4xAVYXnPJ5E52mwrfiKQtKonPL8xsmg==", + "object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", "dev": true, - "optional": true, "requires": { - "extend": "3.0.1", - "lodash": "4.17.5", - "request": "2.81.0", - "when": "3.7.8" + "isobject": "3.0.1" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + } } }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", - "dev": true - }, - "require-main-filename": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", - "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", - "dev": true - }, - "require-relative": { - "version": "0.8.7", - "resolved": "https://registry.npmjs.org/require-relative/-/require-relative-0.8.7.tgz", - "integrity": "sha1-eZlTn8ngR6N5KPoZb44VY9q9Nt4=", - "dev": true - }, - "requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=", + "obuf": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", + "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==", "dev": true }, - "resolve": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.4.0.tgz", - "integrity": "sha1-p1vgHFPaJdk0qY69DkxKcxL5KoY=", + "on-finished": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", + "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", "dev": true, "requires": { - "path-parse": "1.0.5" + "ee-first": "1.1.1" } }, - "resolve-dir": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-0.1.1.tgz", - "integrity": "sha1-shklmlYC+sXFxJatiUpujMQwJh4=", - "dev": true, - "requires": { - "expand-tilde": "1.2.2", - "global-modules": "0.2.3" - } + "on-headers": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.1.tgz", + "integrity": "sha1-ko9dD0cNSTQmUepnlLCFfBAGk/c=", + "dev": true }, - "resp-modifier": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/resp-modifier/-/resp-modifier-6.0.2.tgz", - "integrity": "sha1-sSTeXE+6/LpUH0j/pzlw9KpFa08=", + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, "requires": { - "debug": "2.6.9", - "minimatch": "3.0.4" + "wrappy": "1.0.2" } }, - "right-align": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", - "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", - "dev": true, - "requires": { - "align-text": "0.1.4" - } + "onetime": { + "version": "1.1.0", + "resolved": "http://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", + "integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=", + "dev": true }, - "rimraf": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", - "integrity": "sha1-LtgVDSShbqhlHm1u8PR8QVjOejY=", + "opn": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/opn/-/opn-5.1.0.tgz", + "integrity": "sha512-iPNl7SyM8L30Rm1sjGdLLheyHVw5YXVfi3SKWJzBI7efxRwHojfRFjwE/OLM6qp9xJYMgab8WicTU1cPoY+Hpg==", "dev": true, "requires": { - "glob": "7.1.2" + "is-wsl": "1.1.0" } }, - "ripemd160": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.1.tgz", - "integrity": "sha1-D0WEKVxTo2KK9+bXmsohzlfRxuc=", + "optimist": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", + "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", "dev": true, "requires": { - "hash-base": "2.0.2", - "inherits": "2.0.3" + "minimist": "0.0.8", + "wordwrap": "0.0.2" } }, - "rollup": { - "version": "0.57.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-0.57.1.tgz", - "integrity": "sha512-I18GBqP0qJoJC1K1osYjreqA8VAKovxuI3I81RSk0Dmr4TgloI0tAULjZaox8OsJ+n7XRrhH6i0G2By/pj1LCA==", + "optionator": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", + "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", "dev": true, "requires": { - "@types/acorn": "4.0.3", - "acorn": "5.5.3", - "acorn-dynamic-import": "3.0.0", - "date-time": "2.1.0", - "is-reference": "1.1.0", - "locate-character": "2.0.5", - "pretty-ms": "3.1.0", - "require-relative": "0.8.7", - "rollup-pluginutils": "2.0.1", - "signal-exit": "3.0.2", - "sourcemap-codec": "1.4.1" + "deep-is": "0.1.3", + "fast-levenshtein": "2.0.6", + "levn": "0.3.0", + "prelude-ls": "1.1.2", + "type-check": "0.3.2", + "wordwrap": "1.0.0" }, "dependencies": { - "acorn": { - "version": "5.5.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.5.3.tgz", - "integrity": "sha512-jd5MkIUlbbmb07nXH0DT3y7rDVtkzDi4XZOUVWAer8ajmF/DTSSbl5oNFyDOl/OXA33Bl79+ypHhl2pN20VeOQ==", + "wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", "dev": true - }, - "acorn-dynamic-import": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/acorn-dynamic-import/-/acorn-dynamic-import-3.0.0.tgz", - "integrity": "sha512-zVWV8Z8lislJoOKKqdNMOB+s6+XV5WERty8MnKBeFgwA+19XJjJHs2RP5dzM57FftIs+jQnRToLiWazKr6sSWg==", - "dev": true, - "requires": { - "acorn": "5.5.3" - } } } }, - "rollup-plugin-cleanup": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/rollup-plugin-cleanup/-/rollup-plugin-cleanup-2.0.0.tgz", - "integrity": "sha1-hZdzGaO/VHUKnXX7kJx+UfWaLaQ=", - "dev": true, - "requires": { - "acorn": "4.0.13", - "magic-string": "0.22.5", - "rollup-pluginutils": "2.0.1" - } - }, - "rollup-plugin-commonjs": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/rollup-plugin-commonjs/-/rollup-plugin-commonjs-8.3.0.tgz", - "integrity": "sha512-PYs3OiYgENFYEmI3vOEm5nrp3eY90YZqd5vGmQqeXmhJsAWFIrFdROCvOasqJ1HgeTvqyYo9IGXnFDyoboNcgQ==", + "ora": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/ora/-/ora-0.2.3.tgz", + "integrity": "sha1-N1J9Igrc1Tw5tzVx11QVbV22V6Q=", "dev": true, "requires": { - "acorn": "5.5.3", - "estree-walker": "0.5.1", - "magic-string": "0.22.5", - "resolve": "1.4.0", - "rollup-pluginutils": "2.0.1" + "chalk": "1.1.3", + "cli-cursor": "1.0.2", + "cli-spinners": "0.1.2", + "object-assign": "4.1.1" }, "dependencies": { - "acorn": { - "version": "5.5.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.5.3.tgz", - "integrity": "sha512-jd5MkIUlbbmb07nXH0DT3y7rDVtkzDi4XZOUVWAer8ajmF/DTSSbl5oNFyDOl/OXA33Bl79+ypHhl2pN20VeOQ==", + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "dev": true }, - "estree-walker": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.5.1.tgz", - "integrity": "sha512-7HgCgz1axW7w5aOvgOQkoR1RMBkllygJrssU3BvymKQ95lxXYv6Pon17fBRDm9qhkvXZGijOULoSF9ShOk/ZLg==", + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", "dev": true } } }, - "rollup-plugin-license": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/rollup-plugin-license/-/rollup-plugin-license-0.6.0.tgz", - "integrity": "sha512-Ttz65oRtNKcfV5icDkQTixc8ja64ueoXejRJoAtmjXYAWVg0qx+tu5rXmEOXWXmUXeGs0ARUVIAG0p1JK0gACQ==", + "original": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/original/-/original-1.0.0.tgz", + "integrity": "sha1-kUf5P6FpbQS+YeAb1QuurKZWvTs=", "dev": true, "requires": { - "commenting": "1.0.5", - "lodash": "4.17.5", - "magic-string": "0.22.4", - "mkdirp": "0.5.1", - "moment": "2.21.0" + "url-parse": "1.0.5" }, "dependencies": { - "magic-string": { - "version": "0.22.4", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.22.4.tgz", - "integrity": "sha512-kxBL06p6iO2qPBHsqGK2b3cRwiRGpnmSuVWNhwHcMX7qJOUr1HvricYP1LZOCdkQBUp0jiWg2d6WJwR3vYgByw==", + "url-parse": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.0.5.tgz", + "integrity": "sha1-CFSGBCKv3P7+tsllxmLUgAFpkns=", "dev": true, "requires": { - "vlq": "0.2.3" + "querystringify": "0.0.4", + "requires-port": "1.0.0" } - }, - "moment": { - "version": "2.21.0", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.21.0.tgz", - "integrity": "sha512-TCZ36BjURTeFTM/CwRcViQlfkMvL1/vFISuNLO5GkcVm1+QHfbSiNqZuWeMFjj1/3+uAjXswgRk30j1kkLYJBQ==", - "dev": true } } }, - "rollup-plugin-node-resolve": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-3.3.0.tgz", - "integrity": "sha512-9zHGr3oUJq6G+X0oRMYlzid9fXicBdiydhwGChdyeNRGPcN/majtegApRKHLR5drboUvEWU+QeUmGTyEZQs3WA==", + "os-browserify": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", + "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=", + "dev": true + }, + "os-homedir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", + "dev": true + }, + "os-locale": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", + "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", "dev": true, "requires": { - "builtin-modules": "2.0.0", - "is-module": "1.0.0", - "resolve": "1.4.0" - }, - "dependencies": { - "builtin-modules": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-2.0.0.tgz", - "integrity": "sha512-3U5kUA5VPsRUA3nofm/BXX7GVHKfxz0hOBAPxXrIvHzlDRkQVqEn6yi8QJegxl4LzOHLdvb7XF5dVawa/VVYBg==", - "dev": true - } + "lcid": "1.0.0" } }, - "rollup-pluginutils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.0.1.tgz", - "integrity": "sha1-fslbNXP2VDpGpkYb2afFRFJdD8A=", + "os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", + "dev": true + }, + "osenv": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", + "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", "dev": true, "requires": { - "estree-walker": "0.3.1", - "micromatch": "2.3.11" + "os-homedir": "1.0.2", + "os-tmpdir": "1.0.2" } }, - "rollup-stream": { - "version": "1.24.1", - "resolved": "https://registry.npmjs.org/rollup-stream/-/rollup-stream-1.24.1.tgz", - "integrity": "sha1-m8ACr7pRxRfm2qPhf5VZWApGD4k=", + "p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", + "dev": true + }, + "p-limit": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.2.0.tgz", + "integrity": "sha512-Y/OtIaXtUPr4/YpMv1pCL5L5ed0rumAaAeBSj12F+bSlMdys7i8oQF/GUJmfpTS/QoaRrS/k6pma29haJpsMng==", "dev": true, "requires": { - "rollup": "0.49.3" - }, - "dependencies": { - "rollup": { - "version": "0.49.3", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-0.49.3.tgz", - "integrity": "sha512-n/vHRX4GhMIyGZEQRANcSFVtvz99bSRbNMuoC33ar9f4CViqffyF9WklLb2mxIQ6I/uFf7wDEpc66bXBFE7FvA==", - "dev": true - } + "p-try": "1.0.0" } }, - "rx": { - "version": "2.3.24", - "resolved": "https://registry.npmjs.org/rx/-/rx-2.3.24.tgz", - "integrity": "sha1-FPlQpCF9fjXapxu8vljv9o6ksrc=", - "dev": true - }, - "rxjs": { - "version": "5.6.0-forward-compat.0", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.6.0-forward-compat.0.tgz", - "integrity": "sha512-vA2yCAzU445Oqjup95I29OcS6kaVek7ukaW4GKlp1aDv74vXKnnl/vYAxCzHtqQsWkfi1JMzUM3U63E5Mb4PjQ==", + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", "dev": true, "requires": { - "symbol-observable": "1.0.1" + "p-limit": "1.2.0" } }, - "safe-buffer": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", - "integrity": "sha1-iTMSr2myEj3vcfV4iQAWce6yyFM=", + "p-map": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-1.2.0.tgz", + "integrity": "sha512-r6zKACMNhjPJMTl8KcFH4li//gkrXWfbD6feV8l6doRHlzljFWGJ2AP6iKaCJXyZmAUMOPtvbW7EXkbWO/pLEA==", "dev": true }, - "sander": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/sander/-/sander-0.5.1.tgz", - "integrity": "sha1-dB4kXiMfB8r7b98PEzrfohalAq0=", + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "dev": true + }, + "pac-proxy-agent": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-1.1.0.tgz", + "integrity": "sha512-QBELCWyLYPgE2Gj+4wUEiMscHrQ8nRPBzYItQNOHWavwBt25ohZHQC4qnd5IszdVVrFbLsQ+dPkm6eqdjJAmwQ==", "dev": true, + "optional": true, "requires": { - "es6-promise": "3.3.1", - "graceful-fs": "4.1.11", - "mkdirp": "0.5.1", - "rimraf": "2.6.2" - }, - "dependencies": { - "es6-promise": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-3.3.1.tgz", - "integrity": "sha1-oIzd6EzNvzTQJ6FFG8kdS80ophM=", - "dev": true - }, - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true - } + "agent-base": "2.1.1", + "debug": "2.6.9", + "extend": "3.0.1", + "get-uri": "2.0.1", + "http-proxy-agent": "1.0.0", + "https-proxy-agent": "1.0.0", + "pac-resolver": "2.0.0", + "raw-body": "2.3.2", + "socks-proxy-agent": "2.1.1" } }, - "sass-graph": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.2.4.tgz", - "integrity": "sha1-E/vWPNHK8JCLn9k0dq1DpR0eC0k=", + "pac-resolver": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-2.0.0.tgz", + "integrity": "sha1-mbiNLxk/ve78HJpSnB8yYKtSd80=", "dev": true, + "optional": true, "requires": { - "glob": "7.1.2", - "lodash": "4.17.5", - "scss-tokenizer": "0.2.3", - "yargs": "7.1.0" + "co": "3.0.6", + "degenerator": "1.0.4", + "ip": "1.0.1", + "netmask": "1.0.6", + "thunkify": "2.1.2" }, "dependencies": { - "camelcase": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", - "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", - "dev": true - }, - "yargs": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-7.1.0.tgz", - "integrity": "sha1-a6MY6xaWFyf10oT46gA+jWFU0Mg=", + "co": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/co/-/co-3.0.6.tgz", + "integrity": "sha1-FEXyJsXrlWE45oyawwFn6n0ua9o=", "dev": true, - "requires": { - "camelcase": "3.0.0", - "cliui": "3.2.0", - "decamelize": "1.2.0", - "get-caller-file": "1.0.2", - "os-locale": "1.4.0", - "read-pkg-up": "1.0.1", - "require-directory": "2.1.1", - "require-main-filename": "1.0.1", - "set-blocking": "2.0.0", - "string-width": "1.0.2", - "which-module": "1.0.0", - "y18n": "3.2.1", - "yargs-parser": "5.0.0" - } + "optional": true }, - "yargs-parser": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-5.0.0.tgz", - "integrity": "sha1-J17PDX/+Bcd+ZOfIbkzZS/DhIoo=", + "ip": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.0.1.tgz", + "integrity": "sha1-x+NWzeoiWucbNtcPLnGpK6TkJZA=", "dev": true, - "requires": { - "camelcase": "3.0.0" - } + "optional": true } } }, - "sax": { - "version": "0.5.8", - "resolved": "https://registry.npmjs.org/sax/-/sax-0.5.8.tgz", - "integrity": "sha1-1HLbIo6zMcJQaw6MFVJK25OdEsE=", - "dev": true - }, - "scss-tokenizer": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz", - "integrity": "sha1-jrBtualyMzOCTT9VMGQRSYR85dE=", + "package-json": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/package-json/-/package-json-4.0.1.tgz", + "integrity": "sha1-iGmgQBJTZhxMTKPabCEh7VVfXu0=", "dev": true, "requires": { - "js-base64": "2.4.3", - "source-map": "0.4.4" - }, - "dependencies": { - "source-map": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", - "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", - "dev": true, - "requires": { - "amdefine": "1.0.1" - } - } + "got": "6.7.1", + "registry-auth-token": "3.3.2", + "registry-url": "3.1.0", + "semver": "5.5.0" } }, - "semver": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/semver/-/semver-4.3.6.tgz", - "integrity": "sha1-MAvG4OhjdPe6YQaLWx7NV/xlMto=", + "pako": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.6.tgz", + "integrity": "sha512-lQe48YPsMJAig+yngZ87Lus+NF+3mtu7DVOBu6b/gHO1YpKwIj5AWjZ/TOS7i46HD/UixzWb1zeWDZfGZ3iYcg==", "dev": true }, - "semver-diff": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-2.1.0.tgz", - "integrity": "sha1-S7uEN8jTfksM8aaP1ybsbWRdbTY=", + "parallel-transform": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/parallel-transform/-/parallel-transform-1.1.0.tgz", + "integrity": "sha1-1BDwZbBdojCB/NEPKIVMKb2jOwY=", "dev": true, "requires": { - "semver": "5.5.0" - }, - "dependencies": { - "semver": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", - "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", - "dev": true - } + "cyclist": "0.2.2", + "inherits": "2.0.3", + "readable-stream": "2.3.5" } }, - "send": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/send/-/send-0.15.2.tgz", - "integrity": "sha1-+R+rRAO8+H5xb3DOtdsvV4vcF9Y=", + "param-case": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/param-case/-/param-case-2.1.1.tgz", + "integrity": "sha1-35T9jPZTHs915r75oIWPvHK+Ikc=", "dev": true, "requires": { - "debug": "2.6.4", - "depd": "1.1.1", - "destroy": "1.0.4", - "encodeurl": "1.0.1", - "escape-html": "1.0.3", - "etag": "1.8.1", - "fresh": "0.5.0", - "http-errors": "1.6.2", - "mime": "1.3.4", - "ms": "1.0.0", - "on-finished": "2.3.0", - "range-parser": "1.2.0", - "statuses": "1.3.1" - }, - "dependencies": { - "debug": { - "version": "2.6.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.4.tgz", - "integrity": "sha1-dYaps8OXQcAoKuM0RcTorHRzT+A=", - "dev": true, - "requires": { - "ms": "0.7.3" - }, - "dependencies": { - "ms": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.3.tgz", - "integrity": "sha1-cIFVpeROM/X9D8U+gdDUCpG+H/8=", - "dev": true - } - } - }, - "fresh": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.0.tgz", - "integrity": "sha1-9HTKXmqSRtb9jglTz6m5yAWvp44=", - "dev": true - }, - "mime": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.3.4.tgz", - "integrity": "sha1-EV+eO2s9rylZmDyzjxSaLUDrXVM=", - "dev": true - }, - "ms": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-1.0.0.tgz", - "integrity": "sha1-Wa3NIu3FQ/e1OBhi0xOHsfS8lHM=", - "dev": true - }, - "statuses": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz", - "integrity": "sha1-+vUbnrdKrvOzrPStX2Gr8ky3uT4=", - "dev": true - } + "no-case": "2.3.2" } }, - "sequencify": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/sequencify/-/sequencify-0.0.7.tgz", - "integrity": "sha1-kM/xnQLgcCf9dn9erT57ldHnOAw=", - "dev": true + "parents": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parents/-/parents-1.0.1.tgz", + "integrity": "sha1-/t1NK/GTp3dF/nHjcdc8MwfZx1E=", + "dev": true, + "requires": { + "path-platform": "0.11.15" + } }, - "serve-index": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.8.0.tgz", - "integrity": "sha1-fF2WwT+xMRAfk8HFd0+FFqHnjTs=", + "parse-asn1": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.0.tgz", + "integrity": "sha1-N8T5t+06tlx0gXtfJICTf7+XxxI=", "dev": true, "requires": { - "accepts": "1.3.3", - "batch": "0.5.3", - "debug": "2.2.0", - "escape-html": "1.0.3", - "http-errors": "1.5.1", - "mime-types": "2.1.17", - "parseurl": "1.3.2" - }, - "dependencies": { - "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", - "dev": true, - "requires": { - "ms": "0.7.1" - } - }, - "http-errors": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.5.1.tgz", - "integrity": "sha1-eIwNLB3iyBuebowBhDtrl+uSB1A=", - "dev": true, - "requires": { - "inherits": "2.0.3", - "setprototypeof": "1.0.2", - "statuses": "1.4.0" - } - }, - "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", - "dev": true - }, - "setprototypeof": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.2.tgz", - "integrity": "sha1-gaVSFB7BBLiOic44MQOtXGZWTQg=", - "dev": true - } + "asn1.js": "4.10.1", + "browserify-aes": "1.1.1", + "create-hash": "1.1.3", + "evp_bytestokey": "1.0.3", + "pbkdf2": "3.0.14" } }, - "serve-static": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.12.2.tgz", - "integrity": "sha1-5UbicmCBuBtLzsjpCAjrzdMjr7o=", + "parse-glob": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz", + "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", "dev": true, "requires": { - "encodeurl": "1.0.1", - "escape-html": "1.0.3", - "parseurl": "1.3.2", - "send": "0.15.2" + "glob-base": "0.3.0", + "is-dotfile": "1.0.3", + "is-extglob": "1.0.0", + "is-glob": "2.0.1" } }, - "server-destroy": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/server-destroy/-/server-destroy-1.0.1.tgz", - "integrity": "sha1-8Tv5KOQrnD55OD5hzDmYtdFObN0=", + "parse-json": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", + "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", + "dev": true, + "requires": { + "error-ex": "1.3.1" + } + }, + "parse5": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-4.0.0.tgz", + "integrity": "sha512-VrZ7eOd3T1Fk4XWNXMgiGBK/z0MG48BWG2uQNU4I72fkQuKUTZpl+u9k+CxEG0twMVzSmXEEz12z5Fnw1jIQFA==", "dev": true }, - "set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "parseqs": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/parseqs/-/parseqs-0.0.5.tgz", + "integrity": "sha1-1SCKNzjkZ2bikbouoXNoSSGouJ0=", + "dev": true, + "requires": { + "better-assert": "1.0.2" + } + }, + "parseuri": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/parseuri/-/parseuri-0.0.5.tgz", + "integrity": "sha1-gCBKUNTbt3m/3G6+J3jZDkvOMgo=", + "dev": true, + "requires": { + "better-assert": "1.0.2" + } + }, + "parseurl": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.2.tgz", + "integrity": "sha1-/CidTtiZMRlGDBViUyYs3I3mW/M=", "dev": true }, - "set-immediate-shim": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", - "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=", + "pascalcase": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", + "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", "dev": true }, - "setimmediate": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", + "path-browserify": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.0.tgz", + "integrity": "sha1-oLhwcpquIUAFt9UDLsLLuw+0RRo=", "dev": true }, - "setprototypeof": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.3.tgz", - "integrity": "sha1-ZlZ+NwQ+608E2RvWWMDL77VbjgQ=", + "path-dirname": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", + "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", "dev": true }, - "sha.js": { - "version": "2.4.9", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.9.tgz", - "integrity": "sha1-mPZIgEdLdPSji42p08Dy0QRjPn0=", - "dev": true, - "requires": { - "inherits": "2.0.3", - "safe-buffer": "5.1.1" - } + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true }, - "shasum": { + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-is-inside": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/shasum/-/shasum-1.0.2.tgz", - "integrity": "sha1-5wEjENj0F/TetXEhUOVni4euVl8=", + "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", + "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", + "dev": true + }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true + }, + "path-parse": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", + "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", + "dev": true + }, + "path-platform": { + "version": "0.11.15", + "resolved": "https://registry.npmjs.org/path-platform/-/path-platform-0.11.15.tgz", + "integrity": "sha1-6GQhf3TDaFDwhSt43Hv31KVyG/I=", + "dev": true + }, + "path-proxy": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/path-proxy/-/path-proxy-1.0.0.tgz", + "integrity": "sha1-GOijaFn8nS8aU7SN7hOFQ8Ag3l4=", "dev": true, + "optional": true, "requires": { - "json-stable-stringify": "0.0.1", - "sha.js": "2.4.9" + "inflection": "1.3.8" }, "dependencies": { - "json-stable-stringify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-0.0.1.tgz", - "integrity": "sha1-YRwj6BTbN1Un34URk9tZ3Sryf0U=", + "inflection": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/inflection/-/inflection-1.3.8.tgz", + "integrity": "sha1-y9Fg2p91sUw8xjV41POWeEvzAU4=", "dev": true, - "requires": { - "jsonify": "0.0.0" - } + "optional": true } } }, - "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=", + "dev": true + }, + "path-type": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", + "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", "dev": true, "requires": { - "shebang-regex": "1.0.0" + "pify": "3.0.0" } }, - "shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", - "dev": true - }, - "shell-quote": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.6.1.tgz", - "integrity": "sha1-9HgZSczkAmlxJ0MOo7PFR29IF2c=", + "pbkdf2": { + "version": "3.0.14", + "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.14.tgz", + "integrity": "sha512-gjsZW9O34fm0R7PaLHRJmLLVfSoesxztjPjE9o6R+qtVJij90ltg1joIovN9GKrRW3t1PzhDDG3UMEMFfZ+1wA==", "dev": true, "requires": { - "array-filter": "0.0.1", - "array-map": "0.0.0", - "array-reduce": "0.0.0", - "jsonify": "0.0.0" + "create-hash": "1.1.3", + "create-hmac": "1.1.6", + "ripemd160": "2.0.1", + "safe-buffer": "5.1.1", + "sha.js": "2.4.11" } }, - "sigmund": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz", - "integrity": "sha1-P/IfGYytIXX587eBhT/ZTQ0ZtZA=", + "performance-now": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-0.2.0.tgz", + "integrity": "sha1-M+8wxcd9TqIcWlOGnZG1bY8lVeU=", "dev": true }, - "signal-exit": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", "dev": true }, - "slack-node": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/slack-node/-/slack-node-0.2.0.tgz", - "integrity": "sha1-3kuN3aqLeT9h29KTgQT9q/N9+jA=", - "dev": true, - "optional": true, - "requires": { - "requestretry": "1.13.0" - } - }, - "smart-buffer": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-1.1.15.tgz", - "integrity": "sha1-fxFLW2X6s+KjWqd1uxLw0cZJvxY=", + "pinkie": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", + "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", "dev": true }, - "smtp-connection": { - "version": "2.12.0", - "resolved": "https://registry.npmjs.org/smtp-connection/-/smtp-connection-2.12.0.tgz", - "integrity": "sha1-1275EnyyPCJZ7bHoNJwujV4tdME=", + "pinkie-promise": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", "dev": true, "requires": { - "httpntlm": "1.6.1", - "nodemailer-shared": "1.1.0" + "pinkie": "2.0.4" } }, - "sntp": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz", - "integrity": "sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg=", + "pkg-dir": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", + "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", "dev": true, "requires": { - "hoek": "2.16.3" + "find-up": "2.1.0" } }, - "socket.io": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-2.0.4.tgz", - "integrity": "sha1-waRZDO/4fs8TxyZS8Eb3FrKeYBQ=", + "please-upgrade-node": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/please-upgrade-node/-/please-upgrade-node-3.0.1.tgz", + "integrity": "sha1-CmgfLBiRXlQzpcos2U4Lggangts=", + "dev": true + }, + "pn": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pn/-/pn-1.1.0.tgz", + "integrity": "sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==", + "dev": true + }, + "portfinder": { + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.13.tgz", + "integrity": "sha1-uzLs2HwnEErm7kS1o8y/Drsa7ek=", "dev": true, "requires": { + "async": "1.5.2", "debug": "2.6.9", - "engine.io": "3.1.5", - "socket.io-adapter": "1.1.1", - "socket.io-client": "2.0.4", - "socket.io-parser": "3.1.3" + "mkdirp": "0.5.1" }, "dependencies": { - "component-emitter": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", - "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", - "dev": true - }, - "isarray": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz", - "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4=", + "async": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", + "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", "dev": true - }, - "socket.io-adapter": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-1.1.1.tgz", - "integrity": "sha1-KoBeihTWNyEk3ZFZrUUC+MsH8Gs=", - "dev": true - }, - "socket.io-parser": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.1.3.tgz", - "integrity": "sha512-g0a2HPqLguqAczs3dMECuA1RgoGFPyvDqcbaDEdCWY9g59kdUAz3YRmaJBNKXflrHNwB7Q12Gkf/0CZXfdHR7g==", - "dev": true, - "requires": { - "component-emitter": "1.2.1", - "debug": "3.1.0", - "has-binary2": "1.0.2", - "isarray": "2.0.1" - }, - "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - } - } } } }, - "socket.io-adapter": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-0.5.0.tgz", - "integrity": "sha1-y21LuL7IHhB4uZZ3+c7QBGBmu4s=", + "posix-character-classes": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", + "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", + "dev": true + }, + "postcss": { + "version": "6.0.20", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.20.tgz", + "integrity": "sha512-Opr6usW30Iy0xEDrJywDckRxtylfO7gTGs3Kfb2LdLQlGsUg89fTy0R3Vm1Dub2YHO7MK58avr0p70+uFFHb7A==", "dev": true, "requires": { - "debug": "2.3.3", - "socket.io-parser": "2.3.1" + "chalk": "2.3.2", + "source-map": "0.6.1", + "supports-color": "5.3.0" }, "dependencies": { - "debug": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.3.3.tgz", - "integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=", + "chalk": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz", + "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", "dev": true, "requires": { - "ms": "0.7.2" + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.3.0" } }, - "ms": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", - "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", - "dev": true - } - } - }, - "socket.io-client": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-2.0.4.tgz", - "integrity": "sha1-CRilUkBtxeVAs4Dc2Xr8SmQzL44=", - "dev": true, - "requires": { - "backo2": "1.0.2", - "base64-arraybuffer": "0.1.5", - "component-bind": "1.0.0", - "component-emitter": "1.2.1", - "debug": "2.6.9", - "engine.io-client": "3.1.6", - "has-cors": "1.1.0", - "indexof": "0.0.1", - "object-component": "0.0.3", - "parseqs": "0.0.5", - "parseuri": "0.0.5", - "socket.io-parser": "3.1.3", - "to-array": "0.1.4" - }, - "dependencies": { - "component-emitter": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", - "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", "dev": true }, - "isarray": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz", - "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4=", + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true }, - "socket.io-parser": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.1.3.tgz", - "integrity": "sha512-g0a2HPqLguqAczs3dMECuA1RgoGFPyvDqcbaDEdCWY9g59kdUAz3YRmaJBNKXflrHNwB7Q12Gkf/0CZXfdHR7g==", + "supports-color": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", + "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", "dev": true, "requires": { - "component-emitter": "1.2.1", - "debug": "3.1.0", - "has-binary2": "1.0.2", - "isarray": "2.0.1" - }, - "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - } + "has-flag": "3.0.0" } } } }, - "socket.io-parser": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-2.3.1.tgz", - "integrity": "sha1-3VMgJRA85Clpcya+/WQAX8/ltKA=", + "postcss-clean": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/postcss-clean/-/postcss-clean-1.1.0.tgz", + "integrity": "sha512-83g3GqMbCM5NL6MlbbPLJ/m2NrUepBF44MoDk4Gt04QGXeXKh9+ilQa0DzLnYnvqYHQCw83nckuEzBFr2muwbg==", "dev": true, "requires": { - "component-emitter": "1.1.2", - "debug": "2.2.0", - "isarray": "0.0.1", - "json3": "3.3.2" - }, - "dependencies": { - "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", - "dev": true, - "requires": { - "ms": "0.7.1" - } - }, - "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", - "dev": true - } + "clean-css": "4.1.11", + "postcss": "6.0.20" } }, - "socks": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/socks/-/socks-1.1.10.tgz", - "integrity": "sha1-W4t/x8jzQcU+0FbpKbe/Tei6e1o=", + "postcss-import": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-11.1.0.tgz", + "integrity": "sha512-5l327iI75POonjxkXgdRCUS+AlzAdBx4pOvMEhTKTCjb1p8IEeVR9yx3cPbmN7LIWJLbfnIXxAhoB4jpD0c/Cw==", "dev": true, "requires": { - "ip": "1.1.5", - "smart-buffer": "1.1.15" - }, - "dependencies": { - "ip": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", - "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=", - "dev": true - } + "postcss": "6.0.20", + "postcss-value-parser": "3.3.0", + "read-cache": "1.0.0", + "resolve": "1.6.0" } }, - "socks-proxy-agent": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-2.1.1.tgz", - "integrity": "sha512-sFtmYqdUK5dAMh85H0LEVFUCO7OhJJe1/z2x/Z6mxp3s7/QPf1RkZmpZy+BpuU0bEjcV9npqKjq9Y3kwFUjnxw==", + "postcss-load-config": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-1.2.0.tgz", + "integrity": "sha1-U56a/J3chiASHr+djDZz4M5Q0oo=", "dev": true, "requires": { - "agent-base": "2.1.1", - "extend": "3.0.1", - "socks": "1.1.10" + "cosmiconfig": "2.2.2", + "object-assign": "4.1.1", + "postcss-load-options": "1.2.0", + "postcss-load-plugins": "2.3.0" } }, - "sorcery": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/sorcery/-/sorcery-0.10.0.tgz", - "integrity": "sha1-iukK19fLBfxZ8asMY3hF1cFaUrc=", + "postcss-load-options": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/postcss-load-options/-/postcss-load-options-1.2.0.tgz", + "integrity": "sha1-sJixVZ3awt8EvAuzdfmaXP4rbYw=", "dev": true, "requires": { - "buffer-crc32": "0.2.13", - "minimist": "1.2.0", - "sander": "0.5.1", - "sourcemap-codec": "1.4.1" + "cosmiconfig": "2.2.2", + "object-assign": "4.1.1" } }, - "source-list-map": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-0.1.8.tgz", - "integrity": "sha1-xVCyq1Qn9rPyH1r+rYjE9Vh7IQY=", - "dev": true - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true + "postcss-load-plugins": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/postcss-load-plugins/-/postcss-load-plugins-2.3.0.tgz", + "integrity": "sha1-dFdoEWWZrKLwCfrUJrABdQSdjZI=", + "dev": true, + "requires": { + "cosmiconfig": "2.2.2", + "object-assign": "4.1.1" + } }, - "source-map-support": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.4.tgz", - "integrity": "sha512-PETSPG6BjY1AHs2t64vS2aqAgu6dMIMXJULWFBGbh2Gr8nVLbCFDo6i/RMMvviIQ2h1Z8+5gQhVKSn2je9nmdg==", + "postcss-loader": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-2.1.3.tgz", + "integrity": "sha512-RuBcNE8rjCkIB0IsbmkGFRmQJTeQJfCI88E0VTarPNTvaNSv9OFv1DvTwgtAN/qlzyiELsmmmtX/tEzKp/cdug==", "dev": true, "requires": { - "source-map": "0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } + "loader-utils": "1.1.0", + "postcss": "6.0.20", + "postcss-load-config": "1.2.0", + "schema-utils": "0.4.5" } }, - "sourcemap-codec": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.1.tgz", - "integrity": "sha512-hX1eNBNuilj8yfFnECh0DzLgwKpBLMIvmhgEhixXNui8lMLBInTI8Kyxt++RwJnMNu7cAUo635L2+N1TxMJCzA==", - "dev": true + "postcss-url": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/postcss-url/-/postcss-url-7.3.1.tgz", + "integrity": "sha512-Ya5KIjGptgz0OtrVYfi2UbLxVAZ6Emc4Of+Grx4Sf1deWlRpFwLr8FrtkUxfqh+XiZIVkXbjQrddE10ESpNmdA==", + "dev": true, + "requires": { + "mime": "1.6.0", + "minimatch": "3.0.4", + "mkdirp": "0.5.1", + "postcss": "6.0.20", + "xxhashjs": "0.2.2" + } }, - "sparkles": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/sparkles/-/sparkles-1.0.0.tgz", - "integrity": "sha1-Gsu/tZJDbRC76PeFt8xvgoFQEsM=", + "postcss-value-parser": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.0.tgz", + "integrity": "sha1-h/OPnxj3dKSrTIojL1xc6IcqnRU=", "dev": true }, - "spawn-command": { - "version": "0.0.2-1", - "resolved": "https://registry.npmjs.org/spawn-command/-/spawn-command-0.0.2-1.tgz", - "integrity": "sha1-YvXpRmmBwbeW3Fkpk34RycaSG9A=", + "prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", "dev": true }, - "spdx-correct": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-1.0.2.tgz", - "integrity": "sha1-SzBz2TP/UfORLwOsVRlJikFQ20A=", - "dev": true, - "requires": { - "spdx-license-ids": "1.2.2" - } - }, - "spdx-expression-parse": { + "prepend-http": { "version": "1.0.4", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz", - "integrity": "sha1-m98vIOH0DtRH++JzJmGR/O1RYmw=", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", + "integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=", "dev": true }, - "spdx-license-ids": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz", - "integrity": "sha1-yd96NCRZSt5r0RkA1ZZpbcBrrFc=", + "preserve": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz", + "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", "dev": true }, - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "prettier": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.11.1.tgz", + "integrity": "sha512-T/KD65Ot0PB97xTrG8afQ46x3oiVhnfGjGESSI9NWYcG92+OUPZKkwHqGWXH2t9jK1crnQjubECW0FuOth+hxw==", "dev": true }, - "sshpk": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.13.1.tgz", - "integrity": "sha1-US322mKHFEMW3EwY/hzx2UBzm+M=", + "pretty-error": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-2.1.1.tgz", + "integrity": "sha1-X0+HyPkeWuPzuoerTPXgOxoX8aM=", "dev": true, "requires": { - "asn1": "0.2.3", - "assert-plus": "1.0.0", - "bcrypt-pbkdf": "1.0.1", - "dashdash": "1.14.1", - "ecc-jsbn": "0.1.1", - "getpass": "0.1.7", - "jsbn": "0.1.1", - "tweetnacl": "0.14.5" + "renderkid": "2.0.1", + "utila": "0.4.0" + } + }, + "pretty-format": { + "version": "22.4.3", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-22.4.3.tgz", + "integrity": "sha512-S4oT9/sT6MN7/3COoOy+ZJeA92VmOnveLHgrwBE3Z1W5N9S2A1QGNYiE1z75DAENbJrXXUb+OWXhpJcg05QKQQ==", + "dev": true, + "requires": { + "ansi-regex": "3.0.0", + "ansi-styles": "3.2.1" }, "dependencies": { - "assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", "dev": true } } }, - "statuses": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", - "integrity": "sha1-u3PURtonlhBu/MG2AaJT1sRr0Ic=", + "process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", "dev": true }, - "stdout-stream": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.0.tgz", - "integrity": "sha1-osfIWH5U2UJ+qe2zrD8s1SLfN4s=", - "dev": true, - "requires": { - "readable-stream": "2.3.5" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", - "dev": true - }, - "readable-stream": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", - "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", - "dev": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "2.0.0", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", - "dev": true, - "requires": { - "safe-buffer": "5.1.1" - } - } + "process-nextick-args": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "dev": true + }, + "promise": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", + "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", + "dev": true, + "optional": true, + "requires": { + "asap": "2.0.6" } }, - "stream-browserify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.1.tgz", - "integrity": "sha1-ZiZu5fm9uZQKTkUUyvtDu3Hlyds=", + "promise-inflight": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", + "integrity": "sha1-mEcocL8igTL8vdhoEputEsPAKeM=", + "dev": true + }, + "proxy-addr": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.3.tgz", + "integrity": "sha512-jQTChiCJteusULxjBp8+jftSQE5Obdl3k4cnmLA6WXtK6XFuWRnvVL7aCiBqaLPM8c4ph0S4tKna8XvmIwEnXQ==", "dev": true, "requires": { - "inherits": "2.0.3", - "readable-stream": "2.3.3" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha1-No8lEtefnUb9/HE0mueHi7weuVw=", - "dev": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha1-D8Z9fBQYJd6UKC3VNr7GubzoYKs=", - "dev": true, - "requires": { - "safe-buffer": "5.1.1" - } - } + "forwarded": "0.1.2", + "ipaddr.js": "1.6.0" } }, - "stream-combiner2": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", - "integrity": "sha1-+02KFCDqNidk4hrUeAOXvry0HL4=", + "proxy-agent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-2.0.0.tgz", + "integrity": "sha1-V+tTR6qAXXTsaByyVknbo5yTNJk=", "dev": true, + "optional": true, "requires": { - "duplexer2": "0.1.4", - "readable-stream": "2.3.5" + "agent-base": "2.1.1", + "debug": "2.6.9", + "extend": "3.0.1", + "http-proxy-agent": "1.0.0", + "https-proxy-agent": "1.0.0", + "lru-cache": "2.6.5", + "pac-proxy-agent": "1.1.0", + "socks-proxy-agent": "2.1.1" }, "dependencies": { - "duplexer2": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", - "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", - "dev": true, - "requires": { - "readable-stream": "2.3.5" - } - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", - "dev": true - }, - "readable-stream": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", - "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", - "dev": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "2.0.0", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "lru-cache": { + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.6.5.tgz", + "integrity": "sha1-5W1jVBSO3o13B7WNFDIg/QjfD9U=", "dev": true, - "requires": { - "safe-buffer": "5.1.1" - } + "optional": true } } }, - "stream-consume": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/stream-consume/-/stream-consume-0.1.0.tgz", - "integrity": "sha1-pB6tGm1ggc63n2WwYZAbbY89HQ8=", + "prr": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", + "integrity": "sha1-0/wRS6BplaRexok/SEzrHXj19HY=", "dev": true }, - "stream-http": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.7.2.tgz", - "integrity": "sha1-QKBQ7I3DtTsz2ZCUFcAsC/Gr+60=", + "pseudomap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", + "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", + "dev": true + }, + "public-encrypt": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.0.tgz", + "integrity": "sha1-OfaZ86RlYN1eusvKaTyvfGXBjMY=", "dev": true, "requires": { - "builtin-status-codes": "3.0.0", + "bn.js": "4.11.8", + "browserify-rsa": "4.0.1", + "create-hash": "1.1.3", + "parse-asn1": "5.1.0", + "randombytes": "2.0.6" + } + }, + "pump": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", + "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", + "dev": true, + "requires": { + "end-of-stream": "1.4.1", + "once": "1.4.0" + } + }, + "pumpify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-1.4.0.tgz", + "integrity": "sha512-2kmNR9ry+Pf45opRVirpNuIFotsxUGLaYqxIwuR77AYrYRMuFCz9eryHBS52L360O+NcR383CL4QYlMKPq4zYA==", + "dev": true, + "requires": { + "duplexify": "3.5.4", "inherits": "2.0.3", - "readable-stream": "2.3.3", - "to-arraybuffer": "1.0.1", - "xtend": "4.0.1" + "pump": "2.0.1" + } + }, + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", + "dev": true + }, + "pupa": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/pupa/-/pupa-1.0.0.tgz", + "integrity": "sha1-mpVopa9+ZXuEYqbp1TKHQ1YM7/Y=", + "dev": true + }, + "q": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", + "dev": true + }, + "qjobs": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/qjobs/-/qjobs-1.2.0.tgz", + "integrity": "sha512-8YOJEHtxpySA3fFDyCRxA+UUV+fA+rTWnuWvylOK/NCjhY+b4ocCtmu8TtsWb+mYeU+GCHf/S66KZF/AsteKHg==", + "dev": true + }, + "qs": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz", + "integrity": "sha1-E+JtKK1rD/qpExLNO/cI7TUecjM=", + "dev": true + }, + "querystring": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", + "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", + "dev": true + }, + "querystring-es3": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", + "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=", + "dev": true + }, + "querystringify": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-0.0.4.tgz", + "integrity": "sha1-DPf4T5Rj/wrlHExLFC2VvjdyTZw=", + "dev": true + }, + "quick-lru": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-1.1.0.tgz", + "integrity": "sha1-Q2CxfGETatOAeDl/8RQW4Ybc+7g=", + "dev": true + }, + "randomatic": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.7.tgz", + "integrity": "sha512-D5JUjPyJbaJDkuAazpVnSfVkLlpeO3wDlPROTMLGKG1zMFNFRgrciKo1ltz/AzNTkqE0HzDx655QOL51N06how==", + "dev": true, + "requires": { + "is-number": "3.0.0", + "kind-of": "4.0.0" }, "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha1-No8lEtefnUb9/HE0mueHi7weuVw=", + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } } }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha1-D8Z9fBQYJd6UKC3VNr7GubzoYKs=", + "kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "is-buffer": "1.1.6" } } } }, - "stream-splicer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/stream-splicer/-/stream-splicer-2.0.0.tgz", - "integrity": "sha1-G2O+Q4oTPktnHMGTUZdgAXWRDYM=", + "randombytes": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.0.6.tgz", + "integrity": "sha512-CIQ5OFxf4Jou6uOKe9t1AOgqpeU5fd70A8NPdHSGeYXqXsPe6peOwI0cUl88RWZ6sP1vPMV3avd/R6cZ5/sP1A==", "dev": true, "requires": { - "inherits": "2.0.3", - "readable-stream": "2.3.5" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", - "dev": true - }, - "readable-stream": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", - "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", - "dev": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "2.0.0", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", - "dev": true, - "requires": { - "safe-buffer": "5.1.1" - } - } + "safe-buffer": "5.1.1" } }, - "stream-throttle": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/stream-throttle/-/stream-throttle-0.1.3.tgz", - "integrity": "sha1-rdV8jXzHOoFjDTHNVdOWHPr7qcM=", + "randomfill": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", + "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", "dev": true, "requires": { - "commander": "2.6.0", - "limiter": "1.1.2" + "randombytes": "2.0.6", + "safe-buffer": "5.1.1" } }, - "streamroller": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/streamroller/-/streamroller-0.7.0.tgz", - "integrity": "sha512-WREzfy0r0zUqp3lGO096wRuUp7ho1X6uo/7DJfTlEi0Iv/4gT7YHqXDjKC2ioVGBZtE8QzsQD9nx1nIuoZ57jQ==", + "range-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz", + "integrity": "sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4=", + "dev": true + }, + "raw-body": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.3.2.tgz", + "integrity": "sha1-vNYMd9Prk83gBQKVw/N5OJvIj4k=", "dev": true, "requires": { - "date-format": "1.2.0", - "debug": "3.1.0", - "mkdirp": "0.5.1", - "readable-stream": "2.3.5" + "bytes": "3.0.0", + "http-errors": "1.6.2", + "iconv-lite": "0.4.19", + "unpipe": "1.0.0" + } + }, + "raw-loader": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/raw-loader/-/raw-loader-0.5.1.tgz", + "integrity": "sha1-DD0L6u2KAclm2Xh793goElKpeao=", + "dev": true + }, + "rc": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.6.tgz", + "integrity": "sha1-6xiYnG1PTxYsOZ953dKfODVWgJI=", + "dev": true, + "requires": { + "deep-extend": "0.4.2", + "ini": "1.3.5", + "minimist": "1.2.0", + "strip-json-comments": "2.0.1" }, "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", "dev": true - }, - "readable-stream": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", - "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", - "dev": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "2.0.0", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", - "dev": true, - "requires": { - "safe-buffer": "5.1.1" - } } } }, - "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "read-cache": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", + "integrity": "sha1-5mTvMRYRZsl1HNvo28+GtftY93Q=", "dev": true, "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" + "pify": "2.3.0" }, "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", "dev": true - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "2.1.1" - } } } }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - }, - "stringstream": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz", - "integrity": "sha1-TkhM1N5aC7vuGORjB3EKioFiGHg=", - "dev": true - }, - "strip-ansi": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-0.3.0.tgz", - "integrity": "sha1-JfSOoiynkYfzF0pNuHWTR7sSYiA=", + "read-only-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/read-only-stream/-/read-only-stream-2.0.0.tgz", + "integrity": "sha1-JyT9aoET1zdkrCiNQ4YnDB2/F/A=", "dev": true, "requires": { - "ansi-regex": "0.2.1" + "readable-stream": "2.3.5" } }, - "strip-bom": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-1.0.0.tgz", - "integrity": "sha1-hbiGLzhEtabV7IRnqTWYFzo295Q=", + "read-pkg": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", + "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", "dev": true, "requires": { - "first-chunk-stream": "1.0.0", - "is-utf8": "0.2.1" + "load-json-file": "1.1.0", + "normalize-package-data": "2.4.0", + "path-type": "1.1.0" + }, + "dependencies": { + "path-type": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", + "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "pify": "2.3.0", + "pinkie-promise": "2.0.1" + } + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + } } }, - "strip-eof": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", - "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", - "dev": true - }, - "strip-indent": { + "read-pkg-up": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz", - "integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=", - "dev": true, - "requires": { - "get-stdin": "4.0.1" - } - }, - "strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true - }, - "stylus": { - "version": "0.54.5", - "resolved": "https://registry.npmjs.org/stylus/-/stylus-0.54.5.tgz", - "integrity": "sha1-QrlWCTHKcJDOhRWnmLqeaqPW3Hk=", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", + "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", "dev": true, "requires": { - "css-parse": "1.7.0", - "debug": "2.6.9", - "glob": "7.0.6", - "mkdirp": "0.5.1", - "sax": "0.5.8", - "source-map": "0.1.43" + "find-up": "1.1.2", + "read-pkg": "1.1.0" }, "dependencies": { - "glob": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.0.6.tgz", - "integrity": "sha1-IRuvr0nlJbjNkyYNFKsTYVKz9Xo=", + "find-up": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", + "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", "dev": true, "requires": { - "fs.realpath": "1.0.0", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" + "path-exists": "2.1.0", + "pinkie-promise": "2.0.1" } }, - "source-map": { - "version": "0.1.43", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", - "integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=", + "path-exists": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", + "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", "dev": true, "requires": { - "amdefine": "1.0.1" + "pinkie-promise": "2.0.1" } } } }, - "subarg": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz", - "integrity": "sha1-9izxdYHplrSPyWVpn1TAauJouNI=", + "readable-stream": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", + "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", "dev": true, "requires": { - "minimist": "1.2.0" + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "2.0.0", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" } }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", + "readdirp": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.1.0.tgz", + "integrity": "sha1-TtCtBg3zBzMAxIRANz9y0cxkLXg=", "dev": true, "requires": { - "has-flag": "1.0.0" + "graceful-fs": "4.1.11", + "minimatch": "3.0.4", + "readable-stream": "2.3.5", + "set-immediate-shim": "1.0.1" } }, - "symbol-observable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.0.1.tgz", - "integrity": "sha1-g0D8RwLDEi310iKI+IKD9RPT/dQ=", - "dev": true - }, - "syntax-error": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-1.4.0.tgz", - "integrity": "sha512-YPPlu67mdnHGTup2A8ff7BC2Pjq0e0Yp/IyTFN03zWO0RcK07uLcbi7C2KpGR2FvWbaB0+bfE27a+sBKebSo7w==", + "redent": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", + "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=", "dev": true, "requires": { - "acorn-node": "1.3.0" + "indent-string": "2.1.0", + "strip-indent": "1.0.1" } }, - "systemjs": { - "version": "0.21.0", - "resolved": "https://registry.npmjs.org/systemjs/-/systemjs-0.21.0.tgz", - "integrity": "sha512-Ly/H3MUDaxl5OzMJ/loGFLWPao0h6WHcN6LHlI2HdsTJfZY9sYyn5B2SDnifuBlOUFlTr65rLAP+vSAXDsxOtg==", - "dev": true + "redis": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/redis/-/redis-2.8.0.tgz", + "integrity": "sha512-M1OkonEQwtRmZv4tEWF2VgpG0JWJ8Fv1PhlgT5+B+uNq2cA3Rt1Yt/ryoR+vQNOQcIEgdCdfH0jr3bDpihAw1A==", + "dev": true, + "optional": true, + "requires": { + "double-ended-queue": "2.1.0-0", + "redis-commands": "1.3.5", + "redis-parser": "2.6.0" + } }, - "tapable": { - "version": "0.2.8", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-0.2.8.tgz", - "integrity": "sha1-mTcqXJmb8t8WCvwNdL7U9HlIzSI=", + "redis-commands": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/redis-commands/-/redis-commands-1.3.5.tgz", + "integrity": "sha512-foGF8u6MXGFF++1TZVC6icGXuMYPftKXt1FBT2vrfU9ZATNtZJ8duRC5d1lEfE8hyVe3jhelHGB91oB7I6qLsA==", + "dev": true, + "optional": true + }, + "redis-parser": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/redis-parser/-/redis-parser-2.6.0.tgz", + "integrity": "sha1-Uu0J2srBCPGmMcB+m2mUHnoZUEs=", + "dev": true, + "optional": true + }, + "reflect-metadata": { + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.12.tgz", + "integrity": "sha512-n+IyV+nGz3+0q3/Yf1ra12KpCyi001bi4XFxSjbiWWjfqb52iTTtpGXmCCAOWWIAn9KEuFZKGqBERHmrtScZ3A==", "dev": true }, - "tar": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz", - "integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=", + "regenerator-runtime": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", + "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", + "dev": true + }, + "regex-cache": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz", + "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", "dev": true, "requires": { - "block-stream": "0.0.9", - "fstream": "1.0.11", - "inherits": "2.0.3" + "is-equal-shallow": "0.1.3" } }, - "term-size": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/term-size/-/term-size-1.2.0.tgz", - "integrity": "sha1-RYuDiH8oj8Vtb/+/rSYuJmOO+mk=", + "regex-not": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", + "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", "dev": true, "requires": { - "execa": "0.7.0" + "extend-shallow": "3.0.2", + "safe-regex": "1.1.0" + } + }, + "registry-auth-token": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.3.2.tgz", + "integrity": "sha512-JL39c60XlzCVgNrO+qq68FoNb56w/m7JYvGR2jT5iR1xBrUA3Mfx5Twk5rqTThPmQKMWydGmq8oFtDlxfrmxnQ==", + "dev": true, + "requires": { + "rc": "1.2.6", + "safe-buffer": "5.1.1" } }, - "tfunk": { + "registry-url": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/tfunk/-/tfunk-3.1.0.tgz", - "integrity": "sha1-OORBT8ZJd9h6/apy+sttKfgve1s=", + "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-3.1.0.tgz", + "integrity": "sha1-PU74cPc93h138M+aOBQyRE4XSUI=", "dev": true, "requires": { - "chalk": "1.1.3", - "object-path": "0.9.2" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "2.2.1", - "escape-string-regexp": "1.0.5", - "has-ansi": "2.0.0", - "strip-ansi": "3.0.1", - "supports-color": "2.0.0" - } - }, - "has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", - "dev": true, - "requires": { - "ansi-regex": "2.1.1" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "2.1.1" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } + "rc": "1.2.6" } }, - "throttleit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/throttleit/-/throttleit-1.0.0.tgz", - "integrity": "sha1-nnhYNtr0Z0MUWlmEtiaNgoUorGw=", + "relateurl": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", + "integrity": "sha1-VNvzd+UUQKypCkzSdGANP/LYiKk=", "dev": true }, - "through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", + "remove-trailing-separator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", + "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", "dev": true }, - "through2": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.3.tgz", - "integrity": "sha1-AARWmzfHx0ujnEPzzteNGtlBQL4=", + "renderkid": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-2.0.1.tgz", + "integrity": "sha1-iYyr/Ivt5Le5ETWj/9Mj5YwNsxk=", "dev": true, "requires": { - "readable-stream": "2.3.3", - "xtend": "4.0.1" + "css-select": "1.2.0", + "dom-converter": "0.1.4", + "htmlparser2": "3.3.0", + "strip-ansi": "3.0.1", + "utila": "0.3.3" }, "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "utila": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/utila/-/utila-0.3.3.tgz", + "integrity": "sha1-1+jn1+MJEHCSsF+NloiCTWM6QiY=", "dev": true - }, - "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha1-No8lEtefnUb9/HE0mueHi7weuVw=", - "dev": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" - } - }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha1-D8Z9fBQYJd6UKC3VNr7GubzoYKs=", - "dev": true, - "requires": { - "safe-buffer": "5.1.1" - } } } }, - "thunkify": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/thunkify/-/thunkify-2.1.2.tgz", - "integrity": "sha1-+qDp0jDFGsyVyhOjYawFyn4EVT0=", - "dev": true, - "optional": true + "repeat-element": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz", + "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=", + "dev": true }, - "tildify": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/tildify/-/tildify-1.2.0.tgz", - "integrity": "sha1-3OwD9V3Km3qj5bBPIYF+tW5jWIo=", + "repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", + "dev": true + }, + "repeating": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", + "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", "dev": true, "requires": { - "os-homedir": "1.0.2" + "is-finite": "1.0.2" } }, - "time-stamp": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-1.1.0.tgz", - "integrity": "sha1-dkpaEa9QVhkhsTPztE5hhofg9cM=", - "dev": true - }, - "time-zone": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/time-zone/-/time-zone-1.0.0.tgz", - "integrity": "sha1-mcW/VZWJZq9tBtg73zgA3IL67F0=", - "dev": true - }, - "timed-out": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", - "integrity": "sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8=", - "dev": true + "request": { + "version": "2.81.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz", + "integrity": "sha1-xpKJRqDgbF+Nb4qTM0af/aRimKA=", + "dev": true, + "requires": { + "aws-sign2": "0.6.0", + "aws4": "1.6.0", + "caseless": "0.12.0", + "combined-stream": "1.0.6", + "extend": "3.0.1", + "forever-agent": "0.6.1", + "form-data": "2.1.4", + "har-validator": "4.2.1", + "hawk": "3.1.3", + "http-signature": "1.1.1", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.18", + "oauth-sign": "0.8.2", + "performance-now": "0.2.0", + "qs": "6.4.0", + "safe-buffer": "5.1.1", + "stringstream": "0.0.5", + "tough-cookie": "2.3.4", + "tunnel-agent": "0.6.0", + "uuid": "3.2.1" + } }, - "timers-browserify": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.4.tgz", - "integrity": "sha1-lspT9LeUpefA4b18yIo3Ipj6AeY=", + "request-promise-core": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.1.tgz", + "integrity": "sha1-Pu4AssWqgyOc+wTFcA2jb4HNCLY=", "dev": true, "requires": { - "setimmediate": "1.0.5" + "lodash": "4.17.5" } }, - "timespan": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/timespan/-/timespan-2.3.0.tgz", - "integrity": "sha1-SQLOBAvRPYRcj1myfp1ZutbzmSk=", + "request-promise-native": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/request-promise-native/-/request-promise-native-1.0.5.tgz", + "integrity": "sha1-UoF3D2jgyXGeUWP9P6tIIhX0/aU=", "dev": true, - "optional": true + "requires": { + "request-promise-core": "1.1.1", + "stealthy-require": "1.1.1", + "tough-cookie": "2.3.4" + } }, - "tmp": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "requestretry": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/requestretry/-/requestretry-1.13.0.tgz", + "integrity": "sha512-Lmh9qMvnQXADGAQxsXHP4rbgO6pffCfuR8XUBdP9aitJcLQJxhp7YZK4xAVYXnPJ5E52mwrfiKQtKonPL8xsmg==", "dev": true, + "optional": true, "requires": { - "os-tmpdir": "1.0.2" + "extend": "3.0.1", + "lodash": "4.17.5", + "request": "2.81.0", + "when": "3.7.8" + }, + "dependencies": { + "when": { + "version": "3.7.8", + "resolved": "https://registry.npmjs.org/when/-/when-3.7.8.tgz", + "integrity": "sha1-xxMLan6gRpPoQs3J56Hyqjmjn4I=", + "dev": true, + "optional": true + } } }, - "to-array": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/to-array/-/to-array-0.1.4.tgz", - "integrity": "sha1-F+bBH3PdTz10zaek/zI46a2b+JA=", + "require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", "dev": true }, - "to-arraybuffer": { + "require-from-string": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-1.2.1.tgz", + "integrity": "sha1-UpyczvJzgK3+yaL5ZbZJu+5jZBg=", + "dev": true + }, + "require-main-filename": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", - "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", + "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", "dev": true }, - "tough-cookie": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.3.tgz", - "integrity": "sha1-C2GKVWW23qkL80JdBNVe3EdadWE=", + "require-uncached": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/require-uncached/-/require-uncached-1.0.3.tgz", + "integrity": "sha1-Tg1W1slmL9MeQwEcS5WqSZVUIdM=", "dev": true, "requires": { - "punycode": "1.4.1" + "caller-path": "0.1.0", + "resolve-from": "1.0.1" + }, + "dependencies": { + "resolve-from": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-1.0.1.tgz", + "integrity": "sha1-Jsv+k10a7uq7Kbw/5a6wHpPUQiY=", + "dev": true + } } }, - "tree-kill": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.0.tgz", - "integrity": "sha512-DlX6dR0lOIRDFxI0mjL9IYg6OTncLm/Zt+JiBhE5OlFcAR8yc9S7FFXU9so0oda47frdM/JFsk7UjNt9vscKcg==", - "dev": true - }, - "trim-newlines": { + "requires-port": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", - "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=", "dev": true }, - "true-case-path": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/true-case-path/-/true-case-path-1.0.2.tgz", - "integrity": "sha1-fskRMJJHZsf1c74wIMNPj9/QDWI=", + "resolve": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.6.0.tgz", + "integrity": "sha512-mw7JQNu5ExIkcw4LPih0owX/TZXjD/ZUF/ZQ/pDnkw3ZKhDcZZw5klmBlj6gVMwjQ3Pz5Jgu7F3d0jcDVuEWdw==", "dev": true, "requires": { - "glob": "6.0.4" - }, - "dependencies": { - "glob": { - "version": "6.0.4", - "resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz", - "integrity": "sha1-DwiGD2oVUSey+t1PnOJLGqtuTSI=", - "dev": true, - "requires": { - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" - } - } + "path-parse": "1.0.5" } }, - "tsickle": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/tsickle/-/tsickle-0.27.2.tgz", - "integrity": "sha512-KW+ZgY0t2cq2Qib1sfdgMiRnk+cr3brUtzZoVWjv+Ot3jNxVorFBUH+6In6hl8Dg7BI2AAFf69NHkwvZNMSFwA==", + "resolve-cwd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-2.0.0.tgz", + "integrity": "sha1-AKn3OHVW4nA46uIyyqNypqWbZlo=", "dev": true, "requires": { - "minimist": "1.2.0", - "mkdirp": "0.5.1", - "source-map": "0.6.1", - "source-map-support": "0.5.4" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } + "resolve-from": "3.0.0" } }, - "tslib": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.8.0.tgz", - "integrity": "sha1-3GBOutZLy/aW1hPabJVKoOfqHrY=", + "resolve-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", + "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", "dev": true }, - "tslint": { - "version": "5.9.1", - "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.9.1.tgz", - "integrity": "sha1-ElX4ej/1frCw4fDmEKi0dIBGya4=", + "resolve-global": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/resolve-global/-/resolve-global-0.1.0.tgz", + "integrity": "sha1-j7As/Vt9sgEY6IYxHxWvlb0V+9k=", "dev": true, "requires": { - "babel-code-frame": "6.26.0", - "builtin-modules": "1.1.1", - "chalk": "2.3.2", - "commander": "2.15.1", - "diff": "3.5.0", - "glob": "7.1.2", - "js-yaml": "3.11.0", - "minimatch": "3.0.4", - "resolve": "1.4.0", - "semver": "5.5.0", - "tslib": "1.8.0", - "tsutils": "2.22.2" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "1.9.1" - } - }, - "chalk": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz", - "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", - "dev": true, - "requires": { - "ansi-styles": "3.2.1", - "escape-string-regexp": "1.0.5", - "supports-color": "5.3.0" - } - }, - "commander": { - "version": "2.15.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", - "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", - "dev": true - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "semver": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", - "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", - "dev": true - }, - "supports-color": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", - "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", - "dev": true, - "requires": { - "has-flag": "3.0.0" - } - } + "global-dirs": "0.1.1" } }, - "tsscmp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/tsscmp/-/tsscmp-1.0.5.tgz", - "integrity": "sha1-fcSjOvcVgatDN9qR2FylQn69mpc=", - "dev": true, - "optional": true + "resolve-url": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", + "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", + "dev": true }, - "tsutils": { - "version": "2.22.2", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.22.2.tgz", - "integrity": "sha512-u06FUSulCJ+Y8a2ftuqZN6kIGqdP2yJjUPEngXqmdPND4UQfb04igcotH+dw+IFr417yP6muCLE8/5/Qlfnx0w==", + "restore-cursor": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-1.0.1.tgz", + "integrity": "sha1-NGYfRohjJ/7SmRR5FSJS35LapUE=", "dev": true, "requires": { - "tslib": "1.9.0" - }, - "dependencies": { - "tslib": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.0.tgz", - "integrity": "sha512-f/qGG2tUkrISBlQZEjEqoZ3B2+npJjIf04H1wuAv9iA8i04Icp+61KRXxFdha22670NJopsZCIjhC3SnjPRKrQ==", - "dev": true - } + "exit-hook": "1.1.1", + "onetime": "1.1.0" } }, - "tty-browserify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", - "integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=", + "ret": { + "version": "0.1.15", + "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", "dev": true }, - "tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "right-align": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", + "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "align-text": "0.1.4" } }, - "tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "rimraf": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", + "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", "dev": true, - "optional": true + "requires": { + "glob": "7.1.2" + } }, - "type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", + "ripemd160": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.1.tgz", + "integrity": "sha1-D0WEKVxTo2KK9+bXmsohzlfRxuc=", "dev": true, "requires": { - "prelude-ls": "1.1.2" + "hash-base": "2.0.2", + "inherits": "2.0.3" } }, - "type-is": { - "version": "1.6.16", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.16.tgz", - "integrity": "sha512-HRkVv/5qY2G6I8iab9cI7v1bOIdhm94dVjQCPFElW9W+3GeDOSHmy2EBYe4VTApuzolPcmgFTN3ftVJRKR2J9Q==", + "rollup": { + "version": "0.55.5", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-0.55.5.tgz", + "integrity": "sha512-2hke9NOy332kxvnmMQOgl7DHm94zihNyYJNd8ZLWo4U0EjFvjUkeWa0+ge+70bTg+mY0xJ7NUsf5kIhDtrGrtA==", + "dev": true + }, + "rollup-plugin-cleanup": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/rollup-plugin-cleanup/-/rollup-plugin-cleanup-2.0.0.tgz", + "integrity": "sha1-hZdzGaO/VHUKnXX7kJx+UfWaLaQ=", "dev": true, "requires": { - "media-typer": "0.3.0", - "mime-types": "2.1.18" + "acorn": "4.0.13", + "magic-string": "0.22.5", + "rollup-pluginutils": "2.0.1" }, "dependencies": { - "mime-db": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", - "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==", + "acorn": { + "version": "4.0.13", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz", + "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=", "dev": true - }, - "mime-types": { - "version": "2.1.18", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", - "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", - "dev": true, - "requires": { - "mime-db": "1.33.0" - } } } }, - "typedarray": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", - "dev": true - }, - "typescript": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.6.2.tgz", - "integrity": "sha1-PFtv1/beCRQmkCfwPAlGdY92c6Q=", - "dev": true - }, - "ua-parser-js": { - "version": "0.7.12", - "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.12.tgz", - "integrity": "sha1-BMgamb3V3FImPqKdJMa/jUgYpLs=", - "dev": true - }, - "uglify-js": { - "version": "2.8.29", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", - "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", + "rollup-plugin-commonjs": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/rollup-plugin-commonjs/-/rollup-plugin-commonjs-8.3.0.tgz", + "integrity": "sha512-PYs3OiYgENFYEmI3vOEm5nrp3eY90YZqd5vGmQqeXmhJsAWFIrFdROCvOasqJ1HgeTvqyYo9IGXnFDyoboNcgQ==", "dev": true, "requires": { - "source-map": "0.5.7", - "uglify-to-browserify": "1.0.2", - "yargs": "3.10.0" + "acorn": "5.5.3", + "estree-walker": "0.5.1", + "magic-string": "0.22.5", + "resolve": "1.6.0", + "rollup-pluginutils": "2.0.1" }, "dependencies": { - "camelcase": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", - "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", - "dev": true - }, - "cliui": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", - "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=", - "dev": true, - "requires": { - "center-align": "0.1.3", - "right-align": "0.1.3", - "wordwrap": "0.0.2" - } - }, - "window-size": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", - "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=", - "dev": true - }, - "wordwrap": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", - "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=", + "estree-walker": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.5.1.tgz", + "integrity": "sha512-7HgCgz1axW7w5aOvgOQkoR1RMBkllygJrssU3BvymKQ95lxXYv6Pon17fBRDm9qhkvXZGijOULoSF9ShOk/ZLg==", "dev": true - }, - "yargs": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", - "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", - "dev": true, - "requires": { - "camelcase": "1.2.1", - "cliui": "2.1.0", - "decamelize": "1.2.0", - "window-size": "0.1.0" - } } } }, - "uglify-to-browserify": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz", - "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=", + "rollup-plugin-license": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/rollup-plugin-license/-/rollup-plugin-license-0.6.0.tgz", + "integrity": "sha512-Ttz65oRtNKcfV5icDkQTixc8ja64ueoXejRJoAtmjXYAWVg0qx+tu5rXmEOXWXmUXeGs0ARUVIAG0p1JK0gACQ==", "dev": true, - "optional": true - }, - "ultron": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.0.2.tgz", - "integrity": "sha1-rOEWq1V80Zc4ak6I9GhTeMiy5Po=", - "dev": true + "requires": { + "commenting": "1.0.5", + "lodash": "4.17.5", + "magic-string": "0.22.4", + "mkdirp": "0.5.1", + "moment": "2.21.0" + }, + "dependencies": { + "magic-string": { + "version": "0.22.4", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.22.4.tgz", + "integrity": "sha512-kxBL06p6iO2qPBHsqGK2b3cRwiRGpnmSuVWNhwHcMX7qJOUr1HvricYP1LZOCdkQBUp0jiWg2d6WJwR3vYgByw==", + "dev": true, + "requires": { + "vlq": "0.2.3" + } + } + } }, - "umd": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/umd/-/umd-3.0.3.tgz", - "integrity": "sha512-4IcGSufhFshvLNcMCV80UnQVlZ5pMOC8mvNPForqwA4+lzYQuetTESLDQkeLmihq8bRcnpbQa48Wb8Lh16/xow==", - "dev": true + "rollup-plugin-node-resolve": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-3.3.0.tgz", + "integrity": "sha512-9zHGr3oUJq6G+X0oRMYlzid9fXicBdiydhwGChdyeNRGPcN/majtegApRKHLR5drboUvEWU+QeUmGTyEZQs3WA==", + "dev": true, + "requires": { + "builtin-modules": "2.0.0", + "is-module": "1.0.0", + "resolve": "1.6.0" + }, + "dependencies": { + "builtin-modules": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-2.0.0.tgz", + "integrity": "sha512-3U5kUA5VPsRUA3nofm/BXX7GVHKfxz0hOBAPxXrIvHzlDRkQVqEn6yi8QJegxl4LzOHLdvb7XF5dVawa/VVYBg==", + "dev": true + } + } }, - "unc-path-regex": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", - "integrity": "sha1-5z3T17DXxe2G+6xrCufYxqadUPo=", - "dev": true + "rollup-pluginutils": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.0.1.tgz", + "integrity": "sha1-fslbNXP2VDpGpkYb2afFRFJdD8A=", + "dev": true, + "requires": { + "estree-walker": "0.3.1", + "micromatch": "2.3.11" + } }, - "underscore": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz", - "integrity": "sha1-a7rwh3UA02vjTsqlhODbn+8DUgk=", + "run-node": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/run-node/-/run-node-0.2.0.tgz", + "integrity": "sha512-Zsnxrr+CMGfm7VFuCj96E8tOpFHTEuZS9EvlXcKapVr2RUvr+fxTMxNgK5fXi3TprSgWoxobtR/3TXZT4na/Ng==", "dev": true }, - "union": { - "version": "0.4.6", - "resolved": "https://registry.npmjs.org/union/-/union-0.4.6.tgz", - "integrity": "sha1-GY+9rrolTniLDvy2MLwR8kopWeA=", + "run-queue": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/run-queue/-/run-queue-1.0.3.tgz", + "integrity": "sha1-6Eg5bwV9Ij8kOGkkYY4laUFh7Ec=", "dev": true, "requires": { - "qs": "2.3.3" + "aproba": "1.2.0" } }, - "unique-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unique-stream/-/unique-stream-1.0.0.tgz", - "integrity": "sha1-1ZpKdUJ0R9mqbJHnAmP40mpLEEs=", - "dev": true - }, - "unique-string": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-1.0.0.tgz", - "integrity": "sha1-nhBXzKhRq7kzmPizOuGHuZyuwRo=", + "rxjs": { + "version": "5.6.0-forward-compat.0", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.6.0-forward-compat.0.tgz", + "integrity": "sha512-vA2yCAzU445Oqjup95I29OcS6kaVek7ukaW4GKlp1aDv74vXKnnl/vYAxCzHtqQsWkfi1JMzUM3U63E5Mb4PjQ==", "dev": true, "requires": { - "crypto-random-string": "1.0.0" + "symbol-observable": "1.0.1" } }, - "universalify": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.1.tgz", - "integrity": "sha1-+nG63UQ3r0wUiEHjs7Fl+enlkLc=", + "safe-buffer": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", + "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==", "dev": true }, - "unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", - "dev": true + "safe-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", + "dev": true, + "requires": { + "ret": "0.1.15" + } }, - "unzip-response": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/unzip-response/-/unzip-response-2.0.1.tgz", - "integrity": "sha1-0vD3N9FrBhXnKmk17QQhRXLVb5c=", - "dev": true + "sander": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/sander/-/sander-0.5.1.tgz", + "integrity": "sha1-dB4kXiMfB8r7b98PEzrfohalAq0=", + "dev": true, + "requires": { + "es6-promise": "3.3.1", + "graceful-fs": "4.1.11", + "mkdirp": "0.5.1", + "rimraf": "2.6.2" + } }, - "update-notifier": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-2.3.0.tgz", - "integrity": "sha1-TognpruRUUCrCTVZ1wFOPruDdFE=", + "sass-graph": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.2.4.tgz", + "integrity": "sha1-E/vWPNHK8JCLn9k0dq1DpR0eC0k=", "dev": true, "requires": { - "boxen": "1.3.0", - "chalk": "2.3.2", - "configstore": "3.1.1", - "import-lazy": "2.1.0", - "is-installed-globally": "0.1.0", - "is-npm": "1.0.0", - "latest-version": "3.1.0", - "semver-diff": "2.1.0", - "xdg-basedir": "3.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "1.9.1" - } - }, - "chalk": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz", - "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", - "dev": true, - "requires": { - "ansi-styles": "3.2.1", - "escape-string-regexp": "1.0.5", - "supports-color": "5.3.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "supports-color": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", - "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", - "dev": true, - "requires": { - "has-flag": "3.0.0" - } - } + "glob": "7.1.2", + "lodash": "4.17.5", + "scss-tokenizer": "0.2.3", + "yargs": "7.1.0" } }, - "url": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", - "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", + "sass-loader": { + "version": "6.0.7", + "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-6.0.7.tgz", + "integrity": "sha512-JoiyD00Yo1o61OJsoP2s2kb19L1/Y2p3QFcCdWdF6oomBGKVYuZyqHWemRBfQ2uGYsk+CH3eCguXNfpjzlcpaA==", "dev": true, "requires": { - "punycode": "1.3.2", - "querystring": "0.2.0" - }, - "dependencies": { - "punycode": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", - "dev": true - } + "clone-deep": "2.0.2", + "loader-utils": "1.1.0", + "lodash.tail": "4.1.1", + "neo-async": "2.5.0", + "pify": "3.0.0" } }, - "url-join": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/url-join/-/url-join-2.0.5.tgz", - "integrity": "sha1-WvIvGMBSoACkjXuCxenC4v7tpyg=", + "sax": { + "version": "0.5.8", + "resolved": "https://registry.npmjs.org/sax/-/sax-0.5.8.tgz", + "integrity": "sha1-1HLbIo6zMcJQaw6MFVJK25OdEsE=", "dev": true }, - "url-parse-lax": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz", - "integrity": "sha1-evjzA2Rem9eaJy56FKxovAYJ2nM=", + "schema-utils": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-0.4.5.tgz", + "integrity": "sha512-yYrjb9TX2k/J1Y5UNy3KYdZq10xhYcF8nMpAW6o3hy6Q8WSIEf9lJHG/ePnOBfziPM3fvQwfOwa13U/Fh8qTfA==", "dev": true, "requires": { - "prepend-http": "1.0.4" + "ajv": "6.3.0", + "ajv-keywords": "3.1.0" } }, - "user-home": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/user-home/-/user-home-1.1.1.tgz", - "integrity": "sha1-K1viOjK2Onyd640PKNSFcko98ZA=", - "dev": true - }, - "useragent": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/useragent/-/useragent-2.3.0.tgz", - "integrity": "sha512-4AoH4pxuSvHCjqLO04sU6U/uE65BYza8l/KKBS0b0hnUPWi+cQ2BpeTEwejCSx9SPV5/U03nniDTrWx5NrmKdw==", + "scss-tokenizer": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz", + "integrity": "sha1-jrBtualyMzOCTT9VMGQRSYR85dE=", "dev": true, "requires": { - "lru-cache": "4.1.2", - "tmp": "0.0.33" + "js-base64": "2.4.3", + "source-map": "0.4.4" }, "dependencies": { - "lru-cache": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.2.tgz", - "integrity": "sha512-wgeVXhrDwAWnIF/yZARsFnMBtdFXOg1b8RIrhilp+0iDYN4mdQcNZElDZ0e4B64BhaxeQ5zN7PMyvu7we1kPeQ==", + "source-map": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", + "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", "dev": true, "requires": { - "pseudomap": "1.0.2", - "yallist": "2.1.2" + "amdefine": "1.0.1" } } } }, - "util": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", - "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", + "select-hose": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", + "integrity": "sha1-Yl2GWPhlr0Psliv8N2o3NZpJlMo=", + "dev": true + }, + "selfsigned": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-1.10.2.tgz", + "integrity": "sha1-tESVgNmZKbZbEKSDiTAaZZIIh1g=", "dev": true, "requires": { - "inherits": "2.0.1" - }, - "dependencies": { - "inherits": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", - "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=", - "dev": true - } + "node-forge": "0.7.1" } }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true - }, - "utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", - "dev": true - }, - "uuid": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz", - "integrity": "sha1-PdPT55Crwk17DToDT/q6vijrvAQ=", + "semver": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", + "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", "dev": true }, - "uws": { - "version": "9.14.0", - "resolved": "https://registry.npmjs.org/uws/-/uws-9.14.0.tgz", - "integrity": "sha512-HNMztPP5A1sKuVFmdZ6BPVpBQd5bUjNC8EFMFiICK+oho/OQsAJy5hnIx4btMHiOk8j04f/DbIlqnEZ9d72dqg==", + "semver-diff": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-2.1.0.tgz", + "integrity": "sha1-S7uEN8jTfksM8aaP1ybsbWRdbTY=", "dev": true, - "optional": true + "requires": { + "semver": "5.5.0" + } }, - "v8flags": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-2.1.1.tgz", - "integrity": "sha1-qrGh+jDUX4jdMhFIh1rALAtV5bQ=", + "semver-intersect": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/semver-intersect/-/semver-intersect-1.3.1.tgz", + "integrity": "sha1-j6hKnhAovSOeRTDRo+GB5pjYhLo=", "dev": true, "requires": { - "user-home": "1.1.1" + "semver": "5.5.0" } }, - "validate-npm-package-license": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz", - "integrity": "sha1-KAS6vnEq0zeUWaz74kdGqywwP7w=", + "send": { + "version": "0.16.2", + "resolved": "https://registry.npmjs.org/send/-/send-0.16.2.tgz", + "integrity": "sha512-E64YFPUssFHEFBvpbbjr44NCLtI1AohxQ8ZSiJjQLskAdKuriYEP6VyGEsRDH8ScozGpkaX1BGvhanqCwkcEZw==", "dev": true, "requires": { - "spdx-correct": "1.0.2", - "spdx-expression-parse": "1.0.4" + "debug": "2.6.9", + "depd": "1.1.2", + "destroy": "1.0.4", + "encodeurl": "1.0.2", + "escape-html": "1.0.3", + "etag": "1.8.1", + "fresh": "0.5.2", + "http-errors": "1.6.2", + "mime": "1.4.1", + "ms": "2.0.0", + "on-finished": "2.3.0", + "range-parser": "1.2.0", + "statuses": "1.4.0" + }, + "dependencies": { + "mime": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz", + "integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ==", + "dev": true + } + } + }, + "serialize-javascript": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-1.4.0.tgz", + "integrity": "sha1-fJWFFNtqwkQ6irwGLcn3iGp/YAU=", + "dev": true + }, + "serve-index": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", + "integrity": "sha1-03aNabHn2C5c4FD/9bRTvqEqkjk=", + "dev": true, + "requires": { + "accepts": "1.3.5", + "batch": "0.6.1", + "debug": "2.6.9", + "escape-html": "1.0.3", + "http-errors": "1.6.2", + "mime-types": "2.1.18", + "parseurl": "1.3.2" + } + }, + "serve-static": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.2.tgz", + "integrity": "sha512-p/tdJrO4U387R9oMjb1oj7qSMaMfmOyd4j9hOFoxZe2baQszgHcSWjuya/CiT5kgZZKRudHNOA0pYXOl8rQ5nw==", + "dev": true, + "requires": { + "encodeurl": "1.0.2", + "escape-html": "1.0.3", + "parseurl": "1.3.2", + "send": "0.16.2" + } + }, + "set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "dev": true + }, + "set-immediate-shim": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", + "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=", + "dev": true + }, + "set-value": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.0.tgz", + "integrity": "sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg==", + "dev": true, + "requires": { + "extend-shallow": "2.0.1", + "is-extendable": "0.1.1", + "is-plain-object": "2.0.4", + "split-string": "3.1.0" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "setimmediate": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", + "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", + "dev": true + }, + "setprototypeof": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", + "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==", + "dev": true + }, + "sha.js": { + "version": "2.4.11", + "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", + "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", + "dev": true, + "requires": { + "inherits": "2.0.3", + "safe-buffer": "5.1.1" + } + }, + "shallow-clone": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-1.0.0.tgz", + "integrity": "sha512-oeXreoKR/SyNJtRJMAKPDSvd28OqEwG4eR/xc856cRGBII7gX9lvAqDxusPm0846z/w/hWYjI1NpKwJ00NHzRA==", + "dev": true, + "requires": { + "is-extendable": "0.1.1", + "kind-of": "5.1.0", + "mixin-object": "2.0.1" + }, + "dependencies": { + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, + "shasum": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/shasum/-/shasum-1.0.2.tgz", + "integrity": "sha1-5wEjENj0F/TetXEhUOVni4euVl8=", + "dev": true, + "requires": { + "json-stable-stringify": "0.0.1", + "sha.js": "2.4.11" + }, + "dependencies": { + "json-stable-stringify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-0.0.1.tgz", + "integrity": "sha1-YRwj6BTbN1Un34URk9tZ3Sryf0U=", + "dev": true, + "requires": { + "jsonify": "0.0.0" + } + } + } + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "dev": true, + "requires": { + "shebang-regex": "1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "dev": true + }, + "shell-quote": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.6.1.tgz", + "integrity": "sha1-9HgZSczkAmlxJ0MOo7PFR29IF2c=", + "dev": true, + "requires": { + "array-filter": "0.0.1", + "array-map": "0.0.0", + "array-reduce": "0.0.0", + "jsonify": "0.0.0" + } + }, + "signal-exit": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "dev": true + }, + "silent-error": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/silent-error/-/silent-error-1.1.0.tgz", + "integrity": "sha1-IglwbxyFCp8dENDYQJGLRvJuG8k=", + "dev": true, + "requires": { + "debug": "2.6.9" + } + }, + "slack-node": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/slack-node/-/slack-node-0.2.0.tgz", + "integrity": "sha1-3kuN3aqLeT9h29KTgQT9q/N9+jA=", + "dev": true, + "optional": true, + "requires": { + "requestretry": "1.13.0" + } + }, + "slash": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", + "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=", + "dev": true + }, + "slice-ansi": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-0.0.4.tgz", + "integrity": "sha1-7b+JA/ZvfOL46v1s7tZeJkyDGzU=", + "dev": true + }, + "smart-buffer": { + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-1.1.15.tgz", + "integrity": "sha1-fxFLW2X6s+KjWqd1uxLw0cZJvxY=", + "dev": true + }, + "smtp-connection": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/smtp-connection/-/smtp-connection-2.12.0.tgz", + "integrity": "sha1-1275EnyyPCJZ7bHoNJwujV4tdME=", + "dev": true, + "requires": { + "httpntlm": "1.6.1", + "nodemailer-shared": "1.1.0" + } + }, + "snapdragon": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", + "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", + "dev": true, + "requires": { + "base": "0.11.2", + "debug": "2.6.9", + "define-property": "0.2.5", + "extend-shallow": "2.0.1", + "map-cache": "0.2.2", + "source-map": "0.5.7", + "source-map-resolve": "0.5.1", + "use": "3.1.0" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "0.1.6" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + } + }, + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, + "snapdragon-node": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", + "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", + "dev": true, + "requires": { + "define-property": "1.0.0", + "isobject": "3.0.1", + "snapdragon-util": "3.0.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "1.0.2" + } + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + } + } + }, + "snapdragon-util": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", + "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + }, + "sntp": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz", + "integrity": "sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg=", + "dev": true, + "requires": { + "hoek": "2.16.3" + } + }, + "socket.io": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-2.0.4.tgz", + "integrity": "sha1-waRZDO/4fs8TxyZS8Eb3FrKeYBQ=", + "dev": true, + "requires": { + "debug": "2.6.9", + "engine.io": "3.1.5", + "socket.io-adapter": "1.1.1", + "socket.io-client": "2.0.4", + "socket.io-parser": "3.1.3" + } + }, + "socket.io-adapter": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-1.1.1.tgz", + "integrity": "sha1-KoBeihTWNyEk3ZFZrUUC+MsH8Gs=", + "dev": true + }, + "socket.io-client": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-2.0.4.tgz", + "integrity": "sha1-CRilUkBtxeVAs4Dc2Xr8SmQzL44=", + "dev": true, + "requires": { + "backo2": "1.0.2", + "base64-arraybuffer": "0.1.5", + "component-bind": "1.0.0", + "component-emitter": "1.2.1", + "debug": "2.6.9", + "engine.io-client": "3.1.6", + "has-cors": "1.1.0", + "indexof": "0.0.1", + "object-component": "0.0.3", + "parseqs": "0.0.5", + "parseuri": "0.0.5", + "socket.io-parser": "3.1.3", + "to-array": "0.1.4" + } + }, + "socket.io-parser": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.1.3.tgz", + "integrity": "sha512-g0a2HPqLguqAczs3dMECuA1RgoGFPyvDqcbaDEdCWY9g59kdUAz3YRmaJBNKXflrHNwB7Q12Gkf/0CZXfdHR7g==", + "dev": true, + "requires": { + "component-emitter": "1.2.1", + "debug": "3.1.0", + "has-binary2": "1.0.2", + "isarray": "2.0.1" + }, + "dependencies": { + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "isarray": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz", + "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4=", + "dev": true + } + } + }, + "sockjs": { + "version": "0.3.19", + "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.19.tgz", + "integrity": "sha512-V48klKZl8T6MzatbLlzzRNhMepEys9Y4oGFpypBFFn1gLI/QQ9HtLLyWJNbPlwGLelOVOEijUbTTJeLLI59jLw==", + "dev": true, + "requires": { + "faye-websocket": "0.10.0", + "uuid": "3.2.1" + } + }, + "sockjs-client": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/sockjs-client/-/sockjs-client-1.1.4.tgz", + "integrity": "sha1-W6vjhrd15M8U51IJEUUmVAFsixI=", + "dev": true, + "requires": { + "debug": "2.6.9", + "eventsource": "0.1.6", + "faye-websocket": "0.11.1", + "inherits": "2.0.3", + "json3": "3.3.2", + "url-parse": "1.2.0" + }, + "dependencies": { + "faye-websocket": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.1.tgz", + "integrity": "sha1-8O/hjE9W5PQK/H4Gxxn9XuYYjzg=", + "dev": true, + "requires": { + "websocket-driver": "0.7.0" + } + } + } + }, + "socks": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/socks/-/socks-1.1.10.tgz", + "integrity": "sha1-W4t/x8jzQcU+0FbpKbe/Tei6e1o=", + "dev": true, + "requires": { + "ip": "1.1.5", + "smart-buffer": "1.1.15" + } + }, + "socks-proxy-agent": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-2.1.1.tgz", + "integrity": "sha512-sFtmYqdUK5dAMh85H0LEVFUCO7OhJJe1/z2x/Z6mxp3s7/QPf1RkZmpZy+BpuU0bEjcV9npqKjq9Y3kwFUjnxw==", + "dev": true, + "requires": { + "agent-base": "2.1.1", + "extend": "3.0.1", + "socks": "1.1.10" + } + }, + "sorcery": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/sorcery/-/sorcery-0.10.0.tgz", + "integrity": "sha1-iukK19fLBfxZ8asMY3hF1cFaUrc=", + "dev": true, + "requires": { + "buffer-crc32": "0.2.13", + "minimist": "1.2.0", + "sander": "0.5.1", + "sourcemap-codec": "1.4.1" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + } + } + }, + "source-list-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.0.tgz", + "integrity": "sha512-I2UmuJSRr/T8jisiROLU3A3ltr+swpniSmNPI4Ml3ZCX6tVnDsuZzK7F2hl5jTqbZBWCEKlj5HRQiPExXLgE8A==", + "dev": true + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + }, + "source-map-resolve": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.1.tgz", + "integrity": "sha512-0KW2wvzfxm8NCTb30z0LMNyPqWCdDGE2viwzUaucqJdkTRXtZiSY3I+2A6nVAjmdOy0I4gU8DwnVVGsk9jvP2A==", + "dev": true, + "requires": { + "atob": "2.0.3", + "decode-uri-component": "0.2.0", + "resolve-url": "0.2.1", + "source-map-url": "0.4.0", + "urix": "0.1.0" + } + }, + "source-map-support": { + "version": "0.4.18", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", + "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", + "dev": true, + "requires": { + "source-map": "0.5.7" + } + }, + "source-map-url": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz", + "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", + "dev": true + }, + "sourcemap-codec": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.1.tgz", + "integrity": "sha512-hX1eNBNuilj8yfFnECh0DzLgwKpBLMIvmhgEhixXNui8lMLBInTI8Kyxt++RwJnMNu7cAUo635L2+N1TxMJCzA==", + "dev": true + }, + "spdx-correct": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.0.0.tgz", + "integrity": "sha512-N19o9z5cEyc8yQQPukRCZ9EUmb4HUpnrmaL/fxS2pBo2jbfcFRVuFZ/oFC+vZz0MNNk0h80iMn5/S6qGZOL5+g==", + "dev": true, + "requires": { + "spdx-expression-parse": "3.0.0", + "spdx-license-ids": "3.0.0" + } + }, + "spdx-exceptions": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.1.0.tgz", + "integrity": "sha512-4K1NsmrlCU1JJgUrtgEeTVyfx8VaYea9J9LvARxhbHtVtohPs/gFGG5yy49beySjlIMhhXZ4QqujIZEfS4l6Cg==", + "dev": true + }, + "spdx-expression-parse": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", + "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", + "dev": true, + "requires": { + "spdx-exceptions": "2.1.0", + "spdx-license-ids": "3.0.0" + } + }, + "spdx-license-ids": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.0.tgz", + "integrity": "sha512-2+EPwgbnmOIl8HjGBXXMd9NAu02vLjOO1nWw4kmeRDFyHn+M/ETfHxQUK0oXg8ctgVnl9t3rosNVsZ1jG61nDA==", + "dev": true + }, + "spdy": { + "version": "3.4.7", + "resolved": "https://registry.npmjs.org/spdy/-/spdy-3.4.7.tgz", + "integrity": "sha1-Qv9B7OXMD5mjpsKKq7c/XDsDrLw=", + "dev": true, + "requires": { + "debug": "2.6.9", + "handle-thing": "1.2.5", + "http-deceiver": "1.2.7", + "safe-buffer": "5.1.1", + "select-hose": "2.0.0", + "spdy-transport": "2.1.0" + } + }, + "spdy-transport": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-2.1.0.tgz", + "integrity": "sha512-bpUeGpZcmZ692rrTiqf9/2EUakI6/kXX1Rpe0ib/DyOzbiexVfXkw6GnvI9hVGvIwVaUhkaBojjCZwLNRGQg1g==", + "dev": true, + "requires": { + "debug": "2.6.9", + "detect-node": "2.0.3", + "hpack.js": "2.1.6", + "obuf": "1.1.2", + "readable-stream": "2.3.5", + "safe-buffer": "5.1.1", + "wbuf": "1.7.3" + } + }, + "split-string": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", + "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "dev": true, + "requires": { + "extend-shallow": "3.0.2" + } + }, + "split2": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-2.2.0.tgz", + "integrity": "sha512-RAb22TG39LhI31MbreBgIuKiIKhVsawfTgEGqKHTK87aG+ul/PB8Sqoi3I7kVdRWiCfrKxK3uo4/YUkpNvhPbw==", + "dev": true, + "requires": { + "through2": "2.0.3" + } + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "sshpk": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.1.tgz", + "integrity": "sha1-Ew9Zde3a2WPx1W+SuaxsUfqfg+s=", + "dev": true, + "requires": { + "asn1": "0.2.3", + "assert-plus": "1.0.0", + "bcrypt-pbkdf": "1.0.1", + "dashdash": "1.14.1", + "ecc-jsbn": "0.1.1", + "getpass": "0.1.7", + "jsbn": "0.1.1", + "tweetnacl": "0.14.5" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "dev": true + } + } + }, + "ssri": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-5.3.0.tgz", + "integrity": "sha512-XRSIPqLij52MtgoQavH/x/dU1qVKtWUAAZeOHsR9c2Ddi4XerFy3mc1alf+dLJKl9EUIm/Ht+EowFkTUOA6GAQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, + "stack-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-1.0.1.tgz", + "integrity": "sha1-1PM6tU6OOHeLDKXP07OvsS22hiA=", + "dev": true + }, + "staged-git-files": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/staged-git-files/-/staged-git-files-1.1.0.tgz", + "integrity": "sha1-GpuxMcGIVgECPHqt3T1UwiFCxSY=", + "dev": true + }, + "static-extend": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", + "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", + "dev": true, + "requires": { + "define-property": "0.2.5", + "object-copy": "0.1.0" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "0.1.6" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + } + }, + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, + "statuses": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", + "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==", + "dev": true + }, + "stdout-stream": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.0.tgz", + "integrity": "sha1-osfIWH5U2UJ+qe2zrD8s1SLfN4s=", + "dev": true, + "requires": { + "readable-stream": "2.3.5" + } + }, + "stealthy-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz", + "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=", + "dev": true + }, + "stream-browserify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.1.tgz", + "integrity": "sha1-ZiZu5fm9uZQKTkUUyvtDu3Hlyds=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "readable-stream": "2.3.5" + } + }, + "stream-combiner2": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", + "integrity": "sha1-+02KFCDqNidk4hrUeAOXvry0HL4=", + "dev": true, + "requires": { + "duplexer2": "0.1.4", + "readable-stream": "2.3.5" + } + }, + "stream-each": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/stream-each/-/stream-each-1.2.2.tgz", + "integrity": "sha512-mc1dbFhGBxvTM3bIWmAAINbqiuAk9TATcfIQC8P+/+HJefgaiTlMn2dHvkX8qlI12KeYKSQ1Ua9RrIqrn1VPoA==", + "dev": true, + "requires": { + "end-of-stream": "1.4.1", + "stream-shift": "1.0.0" + } + }, + "stream-http": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.8.1.tgz", + "integrity": "sha512-cQ0jo17BLca2r0GfRdZKYAGLU6JRoIWxqSOakUMuKOT6MOK7AAlE856L33QuDmAy/eeOrhLee3dZKX0Uadu93A==", + "dev": true, + "requires": { + "builtin-status-codes": "3.0.0", + "inherits": "2.0.3", + "readable-stream": "2.3.5", + "to-arraybuffer": "1.0.1", + "xtend": "4.0.1" + } + }, + "stream-shift": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.0.tgz", + "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=", + "dev": true + }, + "stream-splicer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/stream-splicer/-/stream-splicer-2.0.0.tgz", + "integrity": "sha1-G2O+Q4oTPktnHMGTUZdgAXWRDYM=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "readable-stream": "2.3.5" + } + }, + "stream-to-observable": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/stream-to-observable/-/stream-to-observable-0.2.0.tgz", + "integrity": "sha1-WdbqOT2HwsDdrBCqDVYbxrpvDhA=", + "dev": true, + "requires": { + "any-observable": "0.2.0" + } + }, + "streamroller": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/streamroller/-/streamroller-0.7.0.tgz", + "integrity": "sha512-WREzfy0r0zUqp3lGO096wRuUp7ho1X6uo/7DJfTlEi0Iv/4gT7YHqXDjKC2ioVGBZtE8QzsQD9nx1nIuoZ57jQ==", + "dev": true, + "requires": { + "date-format": "1.2.0", + "debug": "3.1.0", + "mkdirp": "0.5.1", + "readable-stream": "2.3.5" + }, + "dependencies": { + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + } + } + }, + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dev": true, + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, + "stringify-object": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-3.2.2.tgz", + "integrity": "sha512-O696NF21oLiDy8PhpWu8AEqoZHw++QW6mUv0UvKZe8gWSdSvMXkiLufK7OmnP27Dro4GU5kb9U7JIO0mBuCRQg==", + "dev": true, + "requires": { + "get-own-enumerable-property-symbols": "2.0.1", + "is-obj": "1.0.1", + "is-regexp": "1.0.0" + } + }, + "stringstream": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz", + "integrity": "sha1-TkhM1N5aC7vuGORjB3EKioFiGHg=", + "dev": true + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "strip-bom": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", + "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "dev": true, + "requires": { + "is-utf8": "0.2.1" + } + }, + "strip-eof": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", + "dev": true + }, + "strip-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz", + "integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=", + "dev": true, + "requires": { + "get-stdin": "4.0.1" + } + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "style-loader": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-0.19.1.tgz", + "integrity": "sha512-IRE+ijgojrygQi3rsqT0U4dd+UcPCqcVvauZpCnQrGAlEe+FUIyrK93bUDScamesjP08JlQNsFJU+KmPedP5Og==", + "dev": true, + "requires": { + "loader-utils": "1.1.0", + "schema-utils": "0.3.0" + }, + "dependencies": { + "ajv": { + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", + "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", + "dev": true, + "requires": { + "co": "4.6.0", + "fast-deep-equal": "1.1.0", + "fast-json-stable-stringify": "2.0.0", + "json-schema-traverse": "0.3.1" + } + }, + "schema-utils": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-0.3.0.tgz", + "integrity": "sha1-9YdyIs4+kx7a4DnxfrNxbnE3+M8=", + "dev": true, + "requires": { + "ajv": "5.5.2" + } + } + } + }, + "stylus": { + "version": "0.54.5", + "resolved": "https://registry.npmjs.org/stylus/-/stylus-0.54.5.tgz", + "integrity": "sha1-QrlWCTHKcJDOhRWnmLqeaqPW3Hk=", + "dev": true, + "requires": { + "css-parse": "1.7.0", + "debug": "2.6.9", + "glob": "7.0.6", + "mkdirp": "0.5.1", + "sax": "0.5.8", + "source-map": "0.1.43" + }, + "dependencies": { + "glob": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.0.6.tgz", + "integrity": "sha1-IRuvr0nlJbjNkyYNFKsTYVKz9Xo=", + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "source-map": { + "version": "0.1.43", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", + "integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=", + "dev": true, + "requires": { + "amdefine": "1.0.1" + } + } + } + }, + "stylus-loader": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/stylus-loader/-/stylus-loader-3.0.2.tgz", + "integrity": "sha512-+VomPdZ6a0razP+zinir61yZgpw2NfljeSsdUF5kJuEzlo3khXhY19Fn6l8QQz1GRJGtMCo8nG5C04ePyV7SUA==", + "dev": true, + "requires": { + "loader-utils": "1.1.0", + "lodash.clonedeep": "4.5.0", + "when": "3.6.4" + } + }, + "subarg": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz", + "integrity": "sha1-9izxdYHplrSPyWVpn1TAauJouNI=", + "dev": true, + "requires": { + "minimist": "1.2.0" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + } + } + }, + "supports-color": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.5.0.tgz", + "integrity": "sha1-vnoN5ITexcXN34s9WRJQRJEvY1s=", + "dev": true, + "requires": { + "has-flag": "2.0.0" + } + }, + "symbol-observable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.0.1.tgz", + "integrity": "sha1-g0D8RwLDEi310iKI+IKD9RPT/dQ=", + "dev": true + }, + "symbol-tree": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.2.tgz", + "integrity": "sha1-rifbOPZgp64uHDt9G8KQgZuFGeY=", + "dev": true + }, + "syntax-error": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-1.4.0.tgz", + "integrity": "sha512-YPPlu67mdnHGTup2A8ff7BC2Pjq0e0Yp/IyTFN03zWO0RcK07uLcbi7C2KpGR2FvWbaB0+bfE27a+sBKebSo7w==", + "dev": true, + "requires": { + "acorn-node": "1.3.0" + } + }, + "tapable": { + "version": "0.2.8", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-0.2.8.tgz", + "integrity": "sha1-mTcqXJmb8t8WCvwNdL7U9HlIzSI=", + "dev": true + }, + "tar": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz", + "integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=", + "dev": true, + "requires": { + "block-stream": "0.0.9", + "fstream": "1.0.11", + "inherits": "2.0.3" + } + }, + "term-size": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/term-size/-/term-size-1.2.0.tgz", + "integrity": "sha1-RYuDiH8oj8Vtb/+/rSYuJmOO+mk=", + "dev": true, + "requires": { + "execa": "0.7.0" + } + }, + "text-extensions": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/text-extensions/-/text-extensions-1.7.0.tgz", + "integrity": "sha512-AKXZeDq230UaSzaO5s3qQUZOaC7iKbzq0jOFL614R7d9R593HLqAOL0cYoqLdkNrjBSOdmoQI06yigq1TSBXAg==", + "dev": true + }, + "through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", + "dev": true + }, + "through2": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.3.tgz", + "integrity": "sha1-AARWmzfHx0ujnEPzzteNGtlBQL4=", + "dev": true, + "requires": { + "readable-stream": "2.3.5", + "xtend": "4.0.1" + } + }, + "thunkify": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/thunkify/-/thunkify-2.1.2.tgz", + "integrity": "sha1-+qDp0jDFGsyVyhOjYawFyn4EVT0=", + "dev": true, + "optional": true + }, + "thunky": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.0.2.tgz", + "integrity": "sha1-qGLgGOP7HqLsP85dVWBc9X8kc3E=", + "dev": true + }, + "time-stamp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-2.0.0.tgz", + "integrity": "sha1-lcakRTDhW6jW9KPsuMOj+sRto1c=", + "dev": true + }, + "timed-out": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", + "integrity": "sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8=", + "dev": true + }, + "timers-browserify": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.6.tgz", + "integrity": "sha512-HQ3nbYRAowdVd0ckGFvmJPPCOH/CHleFN/Y0YQCX1DVaB7t+KFvisuyN09fuP8Jtp1CpfSh8O8bMkHbdbPe6Pw==", + "dev": true, + "requires": { + "setimmediate": "1.0.5" + } + }, + "timespan": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/timespan/-/timespan-2.3.0.tgz", + "integrity": "sha1-SQLOBAvRPYRcj1myfp1ZutbzmSk=", + "dev": true, + "optional": true + }, + "tmp": { + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "dev": true, + "requires": { + "os-tmpdir": "1.0.2" + } + }, + "to-array": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/to-array/-/to-array-0.1.4.tgz", + "integrity": "sha1-F+bBH3PdTz10zaek/zI46a2b+JA=", + "dev": true + }, + "to-arraybuffer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", + "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=", + "dev": true + }, + "to-fast-properties": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", + "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", + "dev": true + }, + "to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + }, + "to-regex": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", + "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "dev": true, + "requires": { + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "regex-not": "1.0.2", + "safe-regex": "1.1.0" + } + }, + "to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", + "dev": true, + "requires": { + "is-number": "3.0.0", + "repeat-string": "1.6.1" + }, + "dependencies": { + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + } + } + }, + "toposort": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/toposort/-/toposort-1.0.6.tgz", + "integrity": "sha1-wxdI5V0hDv/AD9zcfW5o19e7nOw=", + "dev": true + }, + "tough-cookie": { + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.4.tgz", + "integrity": "sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA==", + "dev": true, + "requires": { + "punycode": "1.4.1" + } + }, + "tr46": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", + "integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=", + "dev": true, + "requires": { + "punycode": "2.1.0" + }, + "dependencies": { + "punycode": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.0.tgz", + "integrity": "sha1-X4Y+3Im5bbCQdLrXlHvwkFbKTn0=", + "dev": true + } + } + }, + "tree-kill": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.0.tgz", + "integrity": "sha512-DlX6dR0lOIRDFxI0mjL9IYg6OTncLm/Zt+JiBhE5OlFcAR8yc9S7FFXU9so0oda47frdM/JFsk7UjNt9vscKcg==", + "dev": true + }, + "trim-newlines": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", + "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=", + "dev": true + }, + "trim-off-newlines": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz", + "integrity": "sha1-n5up2e+odkw4dpi8v+sshI8RrbM=", + "dev": true + }, + "trim-right": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", + "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", + "dev": true + }, + "true-case-path": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/true-case-path/-/true-case-path-1.0.2.tgz", + "integrity": "sha1-fskRMJJHZsf1c74wIMNPj9/QDWI=", + "dev": true, + "requires": { + "glob": "6.0.4" + }, + "dependencies": { + "glob": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz", + "integrity": "sha1-DwiGD2oVUSey+t1PnOJLGqtuTSI=", + "dev": true, + "requires": { + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + } + } + }, + "tsickle": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/tsickle/-/tsickle-0.27.2.tgz", + "integrity": "sha512-KW+ZgY0t2cq2Qib1sfdgMiRnk+cr3brUtzZoVWjv+Ot3jNxVorFBUH+6In6hl8Dg7BI2AAFf69NHkwvZNMSFwA==", + "dev": true, + "requires": { + "minimist": "1.2.0", + "mkdirp": "0.5.1", + "source-map": "0.6.1", + "source-map-support": "0.5.4" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "source-map-support": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.4.tgz", + "integrity": "sha512-PETSPG6BjY1AHs2t64vS2aqAgu6dMIMXJULWFBGbh2Gr8nVLbCFDo6i/RMMvviIQ2h1Z8+5gQhVKSn2je9nmdg==", + "dev": true, + "requires": { + "source-map": "0.6.1" + } + } + } + }, + "tslib": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.0.tgz", + "integrity": "sha512-f/qGG2tUkrISBlQZEjEqoZ3B2+npJjIf04H1wuAv9iA8i04Icp+61KRXxFdha22670NJopsZCIjhC3SnjPRKrQ==", + "dev": true + }, + "tslint": { + "version": "5.9.1", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.9.1.tgz", + "integrity": "sha1-ElX4ej/1frCw4fDmEKi0dIBGya4=", + "dev": true, + "requires": { + "babel-code-frame": "6.26.0", + "builtin-modules": "1.1.1", + "chalk": "2.3.2", + "commander": "2.15.1", + "diff": "3.5.0", + "glob": "7.1.2", + "js-yaml": "3.11.0", + "minimatch": "3.0.4", + "resolve": "1.6.0", + "semver": "5.5.0", + "tslib": "1.9.0", + "tsutils": "2.22.2" + }, + "dependencies": { + "chalk": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz", + "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", + "dev": true, + "requires": { + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.3.0" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "supports-color": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", + "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", + "dev": true, + "requires": { + "has-flag": "3.0.0" + } + } + } + }, + "tsscmp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tsscmp/-/tsscmp-1.0.5.tgz", + "integrity": "sha1-fcSjOvcVgatDN9qR2FylQn69mpc=", + "dev": true, + "optional": true + }, + "tsutils": { + "version": "2.22.2", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.22.2.tgz", + "integrity": "sha512-u06FUSulCJ+Y8a2ftuqZN6kIGqdP2yJjUPEngXqmdPND4UQfb04igcotH+dw+IFr417yP6muCLE8/5/Qlfnx0w==", + "dev": true, + "requires": { + "tslib": "1.9.0" + } + }, + "tty-browserify": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", + "integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=", + "dev": true + }, + "tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "dev": true, + "optional": true + }, + "type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", + "dev": true, + "requires": { + "prelude-ls": "1.1.2" + } + }, + "type-is": { + "version": "1.6.16", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.16.tgz", + "integrity": "sha512-HRkVv/5qY2G6I8iab9cI7v1bOIdhm94dVjQCPFElW9W+3GeDOSHmy2EBYe4VTApuzolPcmgFTN3ftVJRKR2J9Q==", + "dev": true, + "requires": { + "media-typer": "0.3.0", + "mime-types": "2.1.18" + } + }, + "typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", + "dev": true + }, + "typescript": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.6.2.tgz", + "integrity": "sha1-PFtv1/beCRQmkCfwPAlGdY92c6Q=", + "dev": true + }, + "uglify-js": { + "version": "3.3.16", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.3.16.tgz", + "integrity": "sha512-FMh5SRqJRGhv9BbaTffENIpDDQIoPDR8DBraunGORGhySArsXlw9++CN+BWzPBLpoI4RcSnpfGPnilTxWL3Vvg==", + "dev": true, + "requires": { + "commander": "2.15.1", + "source-map": "0.6.1" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "uglify-to-browserify": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz", + "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=", + "dev": true, + "optional": true + }, + "uglifyjs-webpack-plugin": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-1.2.4.tgz", + "integrity": "sha512-z0IbjpW8b3O/OVn+TTZN4pI29RN1zktFBXLIzzfZ+++cUtZ1ERSlLWgpE/5OERuEUs1ijVQnpYAkSlpoVmQmSQ==", + "dev": true, + "requires": { + "cacache": "10.0.4", + "find-cache-dir": "1.0.0", + "schema-utils": "0.4.5", + "serialize-javascript": "1.4.0", + "source-map": "0.6.1", + "uglify-es": "3.3.9", + "webpack-sources": "1.1.0", + "worker-farm": "1.6.0" + }, + "dependencies": { + "commander": { + "version": "2.13.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.13.0.tgz", + "integrity": "sha512-MVuS359B+YzaWqjCL/c+22gfryv+mCBPHAv3zyVI2GN8EY6IRP8VwtasXn8jyyhvvq84R4ImN1OKRtcbIasjYA==", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "uglify-es": { + "version": "3.3.9", + "resolved": "https://registry.npmjs.org/uglify-es/-/uglify-es-3.3.9.tgz", + "integrity": "sha512-r+MU0rfv4L/0eeW3xZrd16t4NZfK8Ld4SWVglYBb7ez5uXFWHuVRs6xCTrf1yirs9a4j4Y27nn7SRfO6v67XsQ==", + "dev": true, + "requires": { + "commander": "2.13.0", + "source-map": "0.6.1" + } + } + } + }, + "ultron": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.1.1.tgz", + "integrity": "sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og==", + "dev": true + }, + "umd": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/umd/-/umd-3.0.3.tgz", + "integrity": "sha512-4IcGSufhFshvLNcMCV80UnQVlZ5pMOC8mvNPForqwA4+lzYQuetTESLDQkeLmihq8bRcnpbQa48Wb8Lh16/xow==", + "dev": true + }, + "underscore": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz", + "integrity": "sha1-a7rwh3UA02vjTsqlhODbn+8DUgk=", + "dev": true + }, + "union-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz", + "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=", + "dev": true, + "requires": { + "arr-union": "3.1.0", + "get-value": "2.0.6", + "is-extendable": "0.1.1", + "set-value": "0.4.3" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + }, + "set-value": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz", + "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=", + "dev": true, + "requires": { + "extend-shallow": "2.0.1", + "is-extendable": "0.1.1", + "is-plain-object": "2.0.4", + "to-object-path": "0.3.0" + } + } + } + }, + "unique-filename": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.0.tgz", + "integrity": "sha1-0F8v5AMlYIcfMOk8vnNe6iAVFPM=", + "dev": true, + "requires": { + "unique-slug": "2.0.0" + } + }, + "unique-slug": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.0.tgz", + "integrity": "sha1-22Z258fMBimHj/GWCXx4hVrp9Ks=", + "dev": true, + "requires": { + "imurmurhash": "0.1.4" + } + }, + "unique-string": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-1.0.0.tgz", + "integrity": "sha1-nhBXzKhRq7kzmPizOuGHuZyuwRo=", + "dev": true, + "requires": { + "crypto-random-string": "1.0.0" + } + }, + "universalify": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.1.tgz", + "integrity": "sha1-+nG63UQ3r0wUiEHjs7Fl+enlkLc=", + "dev": true + }, + "unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", + "dev": true + }, + "unset-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", + "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", + "dev": true, + "requires": { + "has-value": "0.3.1", + "isobject": "3.0.1" + }, + "dependencies": { + "has-value": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", + "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", + "dev": true, + "requires": { + "get-value": "2.0.6", + "has-values": "0.1.4", + "isobject": "2.1.0" + }, + "dependencies": { + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "dev": true, + "requires": { + "isarray": "1.0.0" + } + } + } + }, + "has-values": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", + "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", + "dev": true + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + } + } + }, + "unzip-response": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unzip-response/-/unzip-response-2.0.1.tgz", + "integrity": "sha1-0vD3N9FrBhXnKmk17QQhRXLVb5c=", + "dev": true + }, + "upath": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/upath/-/upath-1.0.4.tgz", + "integrity": "sha512-d4SJySNBXDaQp+DPrziv3xGS6w3d2Xt69FijJr86zMPBy23JEloMCEOUBBzuN7xCtjLCnmB9tI/z7SBCahHBOw==", + "dev": true + }, + "update-notifier": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-2.3.0.tgz", + "integrity": "sha1-TognpruRUUCrCTVZ1wFOPruDdFE=", + "dev": true, + "requires": { + "boxen": "1.3.0", + "chalk": "2.2.2", + "configstore": "3.1.1", + "import-lazy": "2.1.0", + "is-installed-globally": "0.1.0", + "is-npm": "1.0.0", + "latest-version": "3.1.0", + "semver-diff": "2.1.0", + "xdg-basedir": "3.0.0" + } + }, + "upper-case": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/upper-case/-/upper-case-1.1.3.tgz", + "integrity": "sha1-9rRQHC7EzdJrp4vnIilh3ndiFZg=", + "dev": true + }, + "urix": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", + "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", + "dev": true + }, + "url": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", + "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", + "dev": true, + "requires": { + "punycode": "1.3.2", + "querystring": "0.2.0" + }, + "dependencies": { + "punycode": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", + "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", + "dev": true + } + } + }, + "url-loader": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/url-loader/-/url-loader-0.6.2.tgz", + "integrity": "sha512-h3qf9TNn53BpuXTTcpC+UehiRrl0Cv45Yr/xWayApjw6G8Bg2dGke7rIwDQ39piciWCWrC+WiqLjOh3SUp9n0Q==", + "dev": true, + "requires": { + "loader-utils": "1.1.0", + "mime": "1.6.0", + "schema-utils": "0.3.0" + }, + "dependencies": { + "ajv": { + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", + "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", + "dev": true, + "requires": { + "co": "4.6.0", + "fast-deep-equal": "1.1.0", + "fast-json-stable-stringify": "2.0.0", + "json-schema-traverse": "0.3.1" + } + }, + "schema-utils": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-0.3.0.tgz", + "integrity": "sha1-9YdyIs4+kx7a4DnxfrNxbnE3+M8=", + "dev": true, + "requires": { + "ajv": "5.5.2" + } + } + } + }, + "url-parse": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.2.0.tgz", + "integrity": "sha512-DT1XbYAfmQP65M/mE6OALxmXzZ/z1+e5zk2TcSKe/KiYbNGZxgtttzC0mR/sjopbpOXcbniq7eIKmocJnUWlEw==", + "dev": true, + "requires": { + "querystringify": "1.0.0", + "requires-port": "1.0.0" + }, + "dependencies": { + "querystringify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-1.0.0.tgz", + "integrity": "sha1-YoYkIRLFtxL6ZU5SZlK/ahP/Bcs=", + "dev": true + } + } + }, + "url-parse-lax": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz", + "integrity": "sha1-evjzA2Rem9eaJy56FKxovAYJ2nM=", + "dev": true, + "requires": { + "prepend-http": "1.0.4" + } + }, + "use": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/use/-/use-3.1.0.tgz", + "integrity": "sha512-6UJEQM/L+mzC3ZJNM56Q4DFGLX/evKGRg15UJHGB9X5j5Z3AFbgZvjUh2yq/UJUY4U5dh7Fal++XbNg1uzpRAw==", + "dev": true, + "requires": { + "kind-of": "6.0.2" + }, + "dependencies": { + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true + } + } + }, + "useragent": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/useragent/-/useragent-2.3.0.tgz", + "integrity": "sha512-4AoH4pxuSvHCjqLO04sU6U/uE65BYza8l/KKBS0b0hnUPWi+cQ2BpeTEwejCSx9SPV5/U03nniDTrWx5NrmKdw==", + "dev": true, + "requires": { + "lru-cache": "4.1.2", + "tmp": "0.0.33" + } + }, + "util": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", + "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", + "dev": true, + "requires": { + "inherits": "2.0.1" + }, + "dependencies": { + "inherits": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", + "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=", + "dev": true + } + } + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "dev": true + }, + "utila": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/utila/-/utila-0.4.0.tgz", + "integrity": "sha1-ihagXURWV6Oupe7MWxKk+lN5dyw=", + "dev": true + }, + "utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", + "dev": true + }, + "uuid": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.2.1.tgz", + "integrity": "sha512-jZnMwlb9Iku/O3smGWvZhauCf6cvvpKi4BKRiliS3cxnI+Gz9j5MEpTz2UFuXiKPJocb7gnsLHwiS05ige5BEA==", + "dev": true + }, + "uws": { + "version": "9.14.0", + "resolved": "https://registry.npmjs.org/uws/-/uws-9.14.0.tgz", + "integrity": "sha512-HNMztPP5A1sKuVFmdZ6BPVpBQd5bUjNC8EFMFiICK+oho/OQsAJy5hnIx4btMHiOk8j04f/DbIlqnEZ9d72dqg==", + "dev": true, + "optional": true + }, + "validate-npm-package-license": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.3.tgz", + "integrity": "sha512-63ZOUnL4SIXj4L0NixR3L1lcjO38crAbgrTpl28t8jjrfuiOBL5Iygm+60qPs/KsZGzPNg6Smnc/oY16QTjF0g==", + "dev": true, + "requires": { + "spdx-correct": "3.0.0", + "spdx-expression-parse": "3.0.0" + } + }, + "vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", + "dev": true + }, + "verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "dev": true, + "requires": { + "assert-plus": "1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "1.3.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "dev": true + } + } + }, + "vlq": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/vlq/-/vlq-0.2.3.tgz", + "integrity": "sha512-DRibZL6DsNhIgYQ+wNdWDL2SL3bKPlVrRiBqV5yuMm++op8W4kGFtaQfCs4KEJn0wBZcHVHJ3eoywX8983k1ow==", + "dev": true + }, + "vm-browserify": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-0.0.4.tgz", + "integrity": "sha1-XX6kW7755Kb/ZflUOOCofDV9WnM=", + "dev": true, + "requires": { + "indexof": "0.0.1" + } + }, + "void-elements": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/void-elements/-/void-elements-2.0.1.tgz", + "integrity": "sha1-wGavtYK7HLQSjWDqkjkulNXp2+w=", + "dev": true + }, + "w3c-hr-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz", + "integrity": "sha1-gqwr/2PZUOqeMYmlimViX+3xkEU=", + "dev": true, + "requires": { + "browser-process-hrtime": "0.1.2" + } + }, + "watchpack": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.5.0.tgz", + "integrity": "sha512-RSlipNQB1u48cq0wH/BNfCu1tD/cJ8ydFIkNYhp9o+3d+8unClkIovpW5qpFPgmL9OE48wfAnlZydXByWP82AA==", + "dev": true, + "requires": { + "chokidar": "2.0.2", + "graceful-fs": "4.1.11", + "neo-async": "2.5.0" + }, + "dependencies": { + "anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "dev": true, + "requires": { + "micromatch": "3.1.9", + "normalize-path": "2.1.1" + } + }, + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", + "dev": true + }, + "array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", + "dev": true + }, + "braces": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.1.tgz", + "integrity": "sha512-SO5lYHA3vO6gz66erVvedSCkp7AKWdv6VcQ2N4ysXfPxdAlxAMMAdwegGGcv1Bqwm7naF1hNdk5d6AAIEHV2nQ==", + "dev": true, + "requires": { + "arr-flatten": "1.1.0", + "array-unique": "0.3.2", + "define-property": "1.0.0", + "extend-shallow": "2.0.1", + "fill-range": "4.0.0", + "isobject": "3.0.1", + "kind-of": "6.0.2", + "repeat-element": "1.1.2", + "snapdragon": "0.8.2", + "snapdragon-node": "2.1.1", + "split-string": "3.1.0", + "to-regex": "3.0.2" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "1.0.2" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "chokidar": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.0.2.tgz", + "integrity": "sha512-l32Hw3wqB0L2kGVmSbK/a+xXLDrUEsc84pSgMkmwygHvD7ubRsP/vxxHa5BtB6oix1XLLVCHyYMsckRXxThmZw==", + "dev": true, + "requires": { + "anymatch": "2.0.0", + "async-each": "1.0.1", + "braces": "2.3.1", + "fsevents": "1.1.3", + "glob-parent": "3.1.0", + "inherits": "2.0.3", + "is-binary-path": "1.0.1", + "is-glob": "4.0.0", + "normalize-path": "2.1.1", + "path-is-absolute": "1.0.1", + "readdirp": "2.1.0", + "upath": "1.0.4" + } + }, + "expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", + "dev": true, + "requires": { + "debug": "2.6.9", + "define-property": "0.2.5", + "extend-shallow": "2.0.1", + "posix-character-classes": "0.1.1", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "0.1.6" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + } + }, + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, + "extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "dev": true, + "requires": { + "array-unique": "0.3.2", + "define-property": "1.0.0", + "expand-brackets": "2.1.4", + "extend-shallow": "2.0.1", + "fragment-cache": "0.2.1", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "1.0.2" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", + "dev": true, + "requires": { + "extend-shallow": "2.0.1", + "is-number": "3.0.0", + "repeat-string": "1.6.1", + "to-regex-range": "2.1.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "glob-parent": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", + "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", + "dev": true, + "requires": { + "is-glob": "3.1.0", + "path-dirname": "1.0.2" + }, + "dependencies": { + "is-glob": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", + "dev": true, + "requires": { + "is-extglob": "2.1.1" + } + } + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true + }, + "is-glob": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.0.tgz", + "integrity": "sha1-lSHHaEXMJhCoUgPd8ICpWML/q8A=", + "dev": true, + "requires": { + "is-extglob": "2.1.1" + } + }, + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + }, + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true + }, + "micromatch": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.9.tgz", + "integrity": "sha512-SlIz6sv5UPaAVVFRKodKjCg48EbNoIhgetzfK/Cy0v5U52Z6zB136M8tp0UC9jM53LYbmIRihJszvvqpKkfm9g==", + "dev": true, + "requires": { + "arr-diff": "4.0.0", + "array-unique": "0.3.2", + "braces": "2.3.1", + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "extglob": "2.0.4", + "fragment-cache": "0.2.1", + "kind-of": "6.0.2", + "nanomatch": "1.2.9", + "object.pick": "1.3.0", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + } + } + } + }, + "wbuf": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz", + "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==", + "dev": true, + "requires": { + "minimalistic-assert": "1.0.0" + } + }, + "webidl-conversions": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", + "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==", + "dev": true + }, + "webpack": { + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-3.11.0.tgz", + "integrity": "sha512-3kOFejWqj5ISpJk4Qj/V7w98h9Vl52wak3CLiw/cDOfbVTq7FeoZ0SdoHHY9PYlHr50ZS42OfvzE2vB4nncKQg==", + "dev": true, + "requires": { + "acorn": "5.5.3", + "acorn-dynamic-import": "2.0.2", + "ajv": "6.3.0", + "ajv-keywords": "3.1.0", + "async": "2.6.0", + "enhanced-resolve": "3.4.1", + "escope": "3.6.0", + "interpret": "1.1.0", + "json-loader": "0.5.7", + "json5": "0.5.1", + "loader-runner": "2.3.0", + "loader-utils": "1.1.0", + "memory-fs": "0.4.1", + "mkdirp": "0.5.1", + "node-libs-browser": "2.1.0", + "source-map": "0.5.7", + "supports-color": "4.5.0", + "tapable": "0.2.8", + "uglifyjs-webpack-plugin": "0.4.6", + "watchpack": "1.5.0", + "webpack-sources": "1.1.0", + "yargs": "8.0.2" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "camelcase": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", + "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", + "dev": true + }, + "cliui": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", + "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=", + "dev": true, + "requires": { + "center-align": "0.1.3", + "right-align": "0.1.3", + "wordwrap": "0.0.2" + } + }, + "load-json-file": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz", + "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "parse-json": "2.2.0", + "pify": "2.3.0", + "strip-bom": "3.0.0" + } + }, + "os-locale": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz", + "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", + "dev": true, + "requires": { + "execa": "0.7.0", + "lcid": "1.0.0", + "mem": "1.1.0" + } + }, + "path-type": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz", + "integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=", + "dev": true, + "requires": { + "pify": "2.3.0" + } + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + }, + "read-pkg": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz", + "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=", + "dev": true, + "requires": { + "load-json-file": "2.0.0", + "normalize-package-data": "2.4.0", + "path-type": "2.0.0" + } + }, + "read-pkg-up": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz", + "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=", + "dev": true, + "requires": { + "find-up": "2.1.0", + "read-pkg": "2.0.0" + } + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "2.0.0", + "strip-ansi": "4.0.0" + }, + "dependencies": { + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + } + } + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "dev": true + }, + "uglify-js": { + "version": "2.8.29", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", + "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", + "dev": true, + "requires": { + "source-map": "0.5.7", + "uglify-to-browserify": "1.0.2", + "yargs": "3.10.0" + }, + "dependencies": { + "yargs": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", + "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", + "dev": true, + "requires": { + "camelcase": "1.2.1", + "cliui": "2.1.0", + "decamelize": "1.2.0", + "window-size": "0.1.0" + } + } + } + }, + "uglifyjs-webpack-plugin": { + "version": "0.4.6", + "resolved": "https://registry.npmjs.org/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-0.4.6.tgz", + "integrity": "sha1-uVH0q7a9YX5m9j64kUmOORdj4wk=", + "dev": true, + "requires": { + "source-map": "0.5.7", + "uglify-js": "2.8.29", + "webpack-sources": "1.1.0" + } + }, + "which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", + "dev": true + }, + "y18n": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", + "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", + "dev": true + }, + "yargs": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-8.0.2.tgz", + "integrity": "sha1-YpmpBVsc78lp/355wdkY3Osiw2A=", + "dev": true, + "requires": { + "camelcase": "4.1.0", + "cliui": "3.2.0", + "decamelize": "1.2.0", + "get-caller-file": "1.0.2", + "os-locale": "2.1.0", + "read-pkg-up": "2.0.0", + "require-directory": "2.1.1", + "require-main-filename": "1.0.1", + "set-blocking": "2.0.0", + "string-width": "2.1.1", + "which-module": "2.0.0", + "y18n": "3.2.1", + "yargs-parser": "7.0.0" + }, + "dependencies": { + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "dev": true + }, + "cliui": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", + "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", + "dev": true, + "requires": { + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wrap-ansi": "2.1.0" + }, + "dependencies": { + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dev": true, + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" + } + } + } + } + } + }, + "yargs-parser": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-7.0.0.tgz", + "integrity": "sha1-jQrELxbqVd69MyyvTEA4s+P139k=", + "dev": true, + "requires": { + "camelcase": "4.1.0" + }, + "dependencies": { + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "dev": true + } + } + } } }, - "verror": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", - "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "webpack-core": { + "version": "0.6.9", + "resolved": "https://registry.npmjs.org/webpack-core/-/webpack-core-0.6.9.tgz", + "integrity": "sha1-/FcViMhVjad76e+23r3Fo7FyvcI=", "dev": true, "requires": { - "assert-plus": "1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "1.3.0" + "source-list-map": "0.1.8", + "source-map": "0.4.4" }, "dependencies": { - "assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "source-list-map": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-0.1.8.tgz", + "integrity": "sha1-xVCyq1Qn9rPyH1r+rYjE9Vh7IQY=", "dev": true + }, + "source-map": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", + "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", + "dev": true, + "requires": { + "amdefine": "1.0.1" + } } } }, - "vinyl": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.5.3.tgz", - "integrity": "sha1-sEVbOPxeDPMNQyUTLkYZcMIJHN4=", + "webpack-dev-middleware": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-1.12.2.tgz", + "integrity": "sha512-FCrqPy1yy/sN6U/SaEZcHKRXGlqU0DUaEBL45jkUYoB8foVb6wCnbIJ1HKIx+qUFTW+3JpVcCJCxZ8VATL4e+A==", "dev": true, "requires": { - "clone": "1.0.2", - "clone-stats": "0.0.1", - "replace-ext": "0.0.1" + "memory-fs": "0.4.1", + "mime": "1.6.0", + "path-is-absolute": "1.0.1", + "range-parser": "1.2.0", + "time-stamp": "2.0.0" } }, - "vinyl-fs": { - "version": "0.3.14", - "resolved": "https://registry.npmjs.org/vinyl-fs/-/vinyl-fs-0.3.14.tgz", - "integrity": "sha1-mmhRzhysHBzqX+hsCTHWIMLPqeY=", + "webpack-dev-server": { + "version": "2.11.2", + "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-2.11.2.tgz", + "integrity": "sha512-zrPoX97bx47vZiAXfDrkw8pe9QjJ+lunQl3dypojyWwWr1M5I2h0VSrMPfTjopHQPRNn+NqfjcMmhoLcUJe2gA==", "dev": true, "requires": { - "defaults": "1.0.3", - "glob-stream": "3.1.18", - "glob-watcher": "0.0.6", - "graceful-fs": "3.0.11", - "mkdirp": "0.5.1", - "strip-bom": "1.0.0", - "through2": "0.6.5", - "vinyl": "0.4.6" + "ansi-html": "0.0.7", + "array-includes": "3.0.3", + "bonjour": "3.5.0", + "chokidar": "2.0.2", + "compression": "1.7.2", + "connect-history-api-fallback": "1.5.0", + "debug": "3.1.0", + "del": "3.0.0", + "express": "4.16.3", + "html-entities": "1.2.1", + "http-proxy-middleware": "0.17.4", + "import-local": "1.0.0", + "internal-ip": "1.2.0", + "ip": "1.1.5", + "killable": "1.0.0", + "loglevel": "1.6.1", + "opn": "5.1.0", + "portfinder": "1.0.13", + "selfsigned": "1.10.2", + "serve-index": "1.9.1", + "sockjs": "0.3.19", + "sockjs-client": "1.1.4", + "spdy": "3.4.7", + "strip-ansi": "3.0.1", + "supports-color": "5.3.0", + "webpack-dev-middleware": "1.12.2", + "yargs": "6.6.0" }, "dependencies": { - "clone": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/clone/-/clone-0.2.0.tgz", - "integrity": "sha1-xhJqkK1Pctv1rNskPMN3JP6T/B8=", + "anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "dev": true, + "requires": { + "micromatch": "3.1.9", + "normalize-path": "2.1.1" + } + }, + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", "dev": true }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", + "array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", + "dev": true + }, + "braces": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.1.tgz", + "integrity": "sha512-SO5lYHA3vO6gz66erVvedSCkp7AKWdv6VcQ2N4ysXfPxdAlxAMMAdwegGGcv1Bqwm7naF1hNdk5d6AAIEHV2nQ==", "dev": true, "requires": { - "core-util-is": "1.0.2", + "arr-flatten": "1.1.0", + "array-unique": "0.3.2", + "define-property": "1.0.0", + "extend-shallow": "2.0.1", + "fill-range": "4.0.0", + "isobject": "3.0.1", + "kind-of": "6.0.2", + "repeat-element": "1.1.2", + "snapdragon": "0.8.2", + "snapdragon-node": "2.1.1", + "split-string": "3.1.0", + "to-regex": "3.0.2" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "1.0.2" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "camelcase": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", + "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", + "dev": true + }, + "chokidar": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.0.2.tgz", + "integrity": "sha512-l32Hw3wqB0L2kGVmSbK/a+xXLDrUEsc84pSgMkmwygHvD7ubRsP/vxxHa5BtB6oix1XLLVCHyYMsckRXxThmZw==", + "dev": true, + "requires": { + "anymatch": "2.0.0", + "async-each": "1.0.1", + "braces": "2.3.1", + "fsevents": "1.1.3", + "glob-parent": "3.1.0", "inherits": "2.0.3", - "isarray": "0.0.1", - "string_decoder": "0.10.31" + "is-binary-path": "1.0.1", + "is-glob": "4.0.0", + "normalize-path": "2.1.1", + "path-is-absolute": "1.0.1", + "readdirp": "2.1.0", + "upath": "1.0.4" } }, - "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", "dev": true, "requires": { - "readable-stream": "1.0.34", - "xtend": "4.0.1" + "ms": "2.0.0" } }, - "vinyl": { - "version": "0.4.6", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.4.6.tgz", - "integrity": "sha1-LzVsh6VQolVGHza76ypbqL94SEc=", + "expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", "dev": true, "requires": { - "clone": "0.2.0", - "clone-stats": "0.0.1" + "debug": "2.6.9", + "define-property": "0.2.5", + "extend-shallow": "2.0.1", + "posix-character-classes": "0.1.1", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "0.1.6" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + } + }, + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } } - } - } - }, - "vinyl-source-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/vinyl-source-stream/-/vinyl-source-stream-2.0.0.tgz", - "integrity": "sha1-84pa+53R6Ttl1VBGmsYYKsT1S44=", - "dev": true, - "requires": { - "through2": "2.0.3", - "vinyl": "2.1.0" - }, - "dependencies": { - "clone": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", - "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=", - "dev": true }, - "clone-stats": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz", - "integrity": "sha1-s3gt/4u1R04Yuba/D9/ngvh3doA=", + "extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "dev": true, + "requires": { + "array-unique": "0.3.2", + "define-property": "1.0.0", + "expand-brackets": "2.1.4", + "extend-shallow": "2.0.1", + "fragment-cache": "0.2.1", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "1.0.2" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", + "dev": true, + "requires": { + "extend-shallow": "2.0.1", + "is-number": "3.0.0", + "repeat-string": "1.6.1", + "to-regex-range": "2.1.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "glob-parent": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", + "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", + "dev": true, + "requires": { + "is-glob": "3.1.0", + "path-dirname": "1.0.2" + }, + "dependencies": { + "is-glob": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", + "dev": true, + "requires": { + "is-extglob": "2.1.1" + } + } + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", "dev": true }, - "replace-ext": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz", - "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=", + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", "dev": true }, - "vinyl": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.1.0.tgz", - "integrity": "sha1-Ah+cLPlR1rk5lDyJ617lrdT9kkw=", + "is-glob": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.0.tgz", + "integrity": "sha1-lSHHaEXMJhCoUgPd8ICpWML/q8A=", "dev": true, "requires": { - "clone": "2.1.2", - "clone-buffer": "1.0.0", - "clone-stats": "1.0.0", - "cloneable-readable": "1.1.2", - "remove-trailing-separator": "1.1.0", - "replace-ext": "1.0.0" + "is-extglob": "2.1.1" } - } - } - }, - "vlq": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/vlq/-/vlq-0.2.3.tgz", - "integrity": "sha512-DRibZL6DsNhIgYQ+wNdWDL2SL3bKPlVrRiBqV5yuMm++op8W4kGFtaQfCs4KEJn0wBZcHVHJ3eoywX8983k1ow==", - "dev": true - }, - "vm-browserify": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-0.0.4.tgz", - "integrity": "sha1-XX6kW7755Kb/ZflUOOCofDV9WnM=", - "dev": true, - "requires": { - "indexof": "0.0.1" - } - }, - "void-elements": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/void-elements/-/void-elements-2.0.1.tgz", - "integrity": "sha1-wGavtYK7HLQSjWDqkjkulNXp2+w=", - "dev": true - }, - "watchpack": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.4.0.tgz", - "integrity": "sha1-ShRyvLuVK9Cpu0A2gB+VTfs5+qw=", - "dev": true, - "requires": { - "async": "2.5.0", - "chokidar": "1.7.0", - "graceful-fs": "4.1.11" - }, - "dependencies": { - "async": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/async/-/async-2.5.0.tgz", - "integrity": "sha1-hDGQ/WtzV6C54clW7d3V7IRitU0=", + }, + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + }, + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true + }, + "micromatch": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.9.tgz", + "integrity": "sha512-SlIz6sv5UPaAVVFRKodKjCg48EbNoIhgetzfK/Cy0v5U52Z6zB136M8tp0UC9jM53LYbmIRihJszvvqpKkfm9g==", "dev": true, "requires": { - "lodash": "4.17.5" + "arr-diff": "4.0.0", + "array-unique": "0.3.2", + "braces": "2.3.1", + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "extglob": "2.0.4", + "fragment-cache": "0.2.1", + "kind-of": "6.0.2", + "nanomatch": "1.2.9", + "object.pick": "1.3.0", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" } }, - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true - } - } - }, - "webpack": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-2.2.1.tgz", - "integrity": "sha1-e7HXKuIIfdGkr1Jq/sFe7RfdpHU=", - "dev": true, - "requires": { - "acorn": "4.0.13", - "acorn-dynamic-import": "2.0.2", - "ajv": "4.11.8", - "ajv-keywords": "1.5.1", - "async": "2.5.0", - "enhanced-resolve": "3.4.1", - "interpret": "1.0.4", - "json-loader": "0.5.7", - "loader-runner": "2.3.0", - "loader-utils": "0.2.17", - "memory-fs": "0.4.1", - "mkdirp": "0.5.1", - "node-libs-browser": "2.0.0", - "source-map": "0.5.7", - "supports-color": "3.2.3", - "tapable": "0.2.8", - "uglify-js": "2.8.29", - "watchpack": "1.4.0", - "webpack-sources": "0.1.5", - "yargs": "6.6.0" - }, - "dependencies": { - "async": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/async/-/async-2.5.0.tgz", - "integrity": "sha1-hDGQ/WtzV6C54clW7d3V7IRitU0=", + "supports-color": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", + "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", "dev": true, "requires": { - "lodash": "4.17.5" + "has-flag": "3.0.0" } }, - "camelcase": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", - "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", + "y18n": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", + "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", "dev": true }, "yargs": { @@ -12059,113 +14856,100 @@ "y18n": "3.2.1", "yargs-parser": "4.2.1" } + }, + "yargs-parser": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-4.2.1.tgz", + "integrity": "sha1-KczqwNxPA8bIe0qfIX3RjJ90hxw=", + "dev": true, + "requires": { + "camelcase": "3.0.0" + } } } }, - "webpack-dev-middleware": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-2.0.6.tgz", - "integrity": "sha512-tj5LLD9r4tDuRIDa5Mu9lnY2qBBehAITv6A9irqXhw/HQquZgTx3BCd57zYbU2gMDnncA49ufK2qVQSbaKJwOw==", + "webpack-merge": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-4.1.2.tgz", + "integrity": "sha512-/0QYwW/H1N/CdXYA2PNPVbsxO3u2Fpz34vs72xm03SRfg6bMNGfMJIQEpQjKRvkG2JvT6oRJFpDtSrwbX8Jzvw==", "dev": true, "requires": { - "loud-rejection": "1.6.0", - "memory-fs": "0.4.1", - "mime": "2.2.0", - "path-is-absolute": "1.0.1", - "range-parser": "1.2.0", - "url-join": "2.0.5", - "webpack-log": "1.1.2" - }, - "dependencies": { - "mime": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-2.2.0.tgz", - "integrity": "sha512-0Qz9uF1ATtl8RKJG4VRfOymh7PyEor6NbrI/61lRfuRe4vx9SNATrvAeTj2EWVRKjEQGskrzWkJBBY5NbaVHIA==", - "dev": true - } + "lodash": "4.17.5" } }, - "webpack-log": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/webpack-log/-/webpack-log-1.1.2.tgz", - "integrity": "sha512-B53SD4N4BHpZdUwZcj4st2QT7gVfqZtqHDruC1N+K2sciq0Rt/3F1Dx6RlylVkcrToMLTaiaeT48k9Lq4iDVDA==", + "webpack-sources": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.1.0.tgz", + "integrity": "sha512-aqYp18kPphgoO5c/+NaUvEeACtZjMESmDChuD3NBciVpah3XpMEU9VAAtIaB1BsfJWWTSdv8Vv1m3T0aRk2dUw==", "dev": true, "requires": { - "chalk": "2.3.2", - "log-symbols": "2.2.0", - "loglevelnext": "1.0.3", - "uuid": "3.1.0" + "source-list-map": "2.0.0", + "source-map": "0.6.1" }, "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "1.9.1" - } - }, - "chalk": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz", - "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", - "dev": true, - "requires": { - "ansi-styles": "3.2.1", - "escape-string-regexp": "1.0.5", - "supports-color": "5.3.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true - }, - "supports-color": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", - "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", - "dev": true, - "requires": { - "has-flag": "3.0.0" - } } } }, - "webpack-sources": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-0.1.5.tgz", - "integrity": "sha1-qh86vw8NdNtxEcQOUAuE+WZkB1A=", + "webpack-subresource-integrity": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/webpack-subresource-integrity/-/webpack-subresource-integrity-1.0.4.tgz", + "integrity": "sha1-j6yKfo61n8ahZ2ioXJ2U7n+dDts=", "dev": true, "requires": { - "source-list-map": "0.1.8", - "source-map": "0.5.7" + "webpack-core": "0.6.9" } }, - "weinre": { - "version": "2.0.0-pre-I0Z7U9OV", - "resolved": "https://registry.npmjs.org/weinre/-/weinre-2.0.0-pre-I0Z7U9OV.tgz", - "integrity": "sha1-/viqIjkh97QLu71MPtQwL2/QqBM=", + "websocket-driver": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.0.tgz", + "integrity": "sha1-DK+dLXVdk67gSdS90NP+LMoqJOs=", "dev": true, "requires": { - "express": "2.5.11", - "nopt": "3.0.6", - "underscore": "1.7.0" + "http-parser-js": "0.4.11", + "websocket-extensions": "0.1.3" } }, - "when": { - "version": "3.7.8", - "resolved": "https://registry.npmjs.org/when/-/when-3.7.8.tgz", - "integrity": "sha1-xxMLan6gRpPoQs3J56Hyqjmjn4I=", + "websocket-extensions": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.3.tgz", + "integrity": "sha512-nqHUnMXmBzT0w570r2JpJxfiSD1IzoI+HGVdd3aZ0yNi3ngvQ4jv1dtHt5VGxfI2yj5yqImPhOK4vmIh2xMbGg==", + "dev": true + }, + "whatwg-encoding": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.3.tgz", + "integrity": "sha512-jLBwwKUhi8WtBfsMQlL4bUUcT8sMkAtQinscJAe/M4KHCkHuUJAF6vuB0tueNIw4c8ziO6AkRmgY+jL3a0iiPw==", "dev": true, - "optional": true + "requires": { + "iconv-lite": "0.4.19" + } + }, + "whatwg-url": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-6.4.0.tgz", + "integrity": "sha512-Z0CVh/YE217Foyb488eo+iBv+r7eAQ0wSTyApi9n06jhcA3z6Nidg/EGvl0UFkg7kMdKxfBzzr+o9JF+cevgMg==", + "dev": true, + "requires": { + "lodash.sortby": "4.7.0", + "tr46": "1.0.1", + "webidl-conversions": "4.0.2" + } + }, + "when": { + "version": "3.6.4", + "resolved": "https://registry.npmjs.org/when/-/when-3.6.4.tgz", + "integrity": "sha1-RztRfsFZ4rhQBUl6E5g/CVQS404=", + "dev": true }, "which": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/which/-/which-1.3.0.tgz", - "integrity": "sha1-/wS9/AEO5UfXgL7DjhrBwnd9JTo=", + "integrity": "sha512-xcJpopdamTuY5duC/KnTTNBraPK54YwpenP4lzxU8H91GudWpFv38u0CKjclE1Wi2EH2EDz5LRcHcKbCIzqGyg==", "dev": true, "requires": { "isexe": "2.0.0" @@ -12229,17 +15013,26 @@ } }, "window-size": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.4.tgz", - "integrity": "sha1-+OGqHuWlPsW/FR/6CXQqatdpeHY=", + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", + "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=", "dev": true }, "wordwrap": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", - "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=", + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", + "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=", "dev": true }, + "worker-farm": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/worker-farm/-/worker-farm-1.6.0.tgz", + "integrity": "sha512-6w+3tHbM87WnSWnENBUvA2pxJPLhQUg5LKwUQHq3r+XPhIM+Gh2R5ycbwPCyuGbNg+lPgdcnQUhuC02kJCvffQ==", + "dev": true, + "requires": { + "errno": "0.1.7" + } + }, "wrap-ansi": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", @@ -12248,23 +15041,6 @@ "requires": { "string-width": "1.0.2", "strip-ansi": "3.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "2.1.1" - } - } } }, "wrappy": { @@ -12282,14 +15058,6 @@ "graceful-fs": "4.1.11", "imurmurhash": "0.1.4", "signal-exit": "3.0.2" - }, - "dependencies": { - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true - } } }, "ws": { @@ -12301,55 +15069,30 @@ "async-limiter": "1.0.0", "safe-buffer": "5.1.1", "ultron": "1.1.1" - }, - "dependencies": { - "ultron": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.1.1.tgz", - "integrity": "sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og==", - "dev": true - } } }, - "wtf-8": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/wtf-8/-/wtf-8-1.0.0.tgz", - "integrity": "sha1-OS2LotDxw00e4tYw8V0O+2jhBIo=", - "dev": true - }, "xdg-basedir": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-3.0.0.tgz", "integrity": "sha1-SWsswQnsqNus/i3HK2A8F8WHCtQ=", "dev": true }, - "xhr2": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/xhr2/-/xhr2-0.1.4.tgz", - "integrity": "sha1-f4dliEdxbbUCYyOBL4GMras4el8=", + "xml-char-classes": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/xml-char-classes/-/xml-char-classes-1.0.0.tgz", + "integrity": "sha1-ZGV4SKIP/F31g6Qq2KJ3tFErvE0=", "dev": true }, - "xmlbuilder": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-3.1.0.tgz", - "integrity": "sha1-LIaIjy1OrehQ+jjKf3Ij9yCVFuE=", - "dev": true, - "requires": { - "lodash": "3.10.1" - }, - "dependencies": { - "lodash": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", - "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=", - "dev": true - } - } + "xml-name-validator": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", + "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", + "dev": true }, "xmlhttprequest-ssl": { - "version": "1.5.3", - "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.3.tgz", - "integrity": "sha1-GFqIjATspGw+QHDZn3tJ3jUomS0=", + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.5.tgz", + "integrity": "sha1-wodrBhaKrcQOV9l+gRkayPQ5iz4=", "dev": true }, "xregexp": { @@ -12375,9 +15118,9 @@ } }, "y18n": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", - "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", + "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", "dev": true }, "yallist": { @@ -12387,114 +15130,44 @@ "dev": true }, "yargs": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-11.1.0.tgz", - "integrity": "sha512-NwW69J42EsCSanF8kyn5upxvjp5ds+t3+udGBeTbFnERA+lF541DDpMawzo4z6W/QrzNM18D+BPMiOBibnFV5A==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-7.1.0.tgz", + "integrity": "sha1-a6MY6xaWFyf10oT46gA+jWFU0Mg=", "dev": true, "requires": { - "cliui": "4.0.0", + "camelcase": "3.0.0", + "cliui": "3.2.0", "decamelize": "1.2.0", - "find-up": "2.1.0", "get-caller-file": "1.0.2", - "os-locale": "2.1.0", + "os-locale": "1.4.0", + "read-pkg-up": "1.0.1", "require-directory": "2.1.1", "require-main-filename": "1.0.1", "set-blocking": "2.0.0", - "string-width": "2.1.1", - "which-module": "2.0.0", + "string-width": "1.0.2", + "which-module": "1.0.0", "y18n": "3.2.1", - "yargs-parser": "9.0.2" + "yargs-parser": "5.0.0" }, "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, "camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", - "dev": true - }, - "cliui": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.0.0.tgz", - "integrity": "sha512-nY3W5Gu2racvdDk//ELReY+dHjb9PlIcVDFXP72nVIhq2Gy3LuVXYwJoPVudwQnv1shtohpgkdCKT2YaKY0CKw==", - "dev": true, - "requires": { - "string-width": "2.1.1", - "strip-ansi": "4.0.0", - "wrap-ansi": "2.1.0" - } - }, - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "2.0.0" - } - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", + "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", "dev": true }, - "os-locale": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz", - "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", - "dev": true, - "requires": { - "execa": "0.7.0", - "lcid": "1.0.0", - "mem": "1.1.0" - } - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "2.0.0", - "strip-ansi": "4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "3.0.0" - } - }, - "which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", + "y18n": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", + "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", "dev": true - }, - "yargs-parser": { - "version": "9.0.2", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-9.0.2.tgz", - "integrity": "sha1-nM9qQ0YP5O1Aqbto9I1DuKaMwHc=", - "dev": true, - "requires": { - "camelcase": "4.1.0" - } } } }, "yargs-parser": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-4.2.1.tgz", - "integrity": "sha1-KczqwNxPA8bIe0qfIX3RjJ90hxw=", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-5.0.0.tgz", + "integrity": "sha1-J17PDX/+Bcd+ZOfIbkzZS/DhIoo=", "dev": true, "requires": { "camelcase": "3.0.0" @@ -12508,15 +15181,6 @@ } } }, - "yauzl": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.4.1.tgz", - "integrity": "sha1-lSj0QtqxsihOWLQ3m7GU4i4MQAU=", - "dev": true, - "requires": { - "fd-slicer": "1.0.1" - } - }, "yeast": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/yeast/-/yeast-0.1.2.tgz", diff --git a/package.json b/package.json index ab1c49e..250f374 100644 --- a/package.json +++ b/package.json @@ -1,20 +1,18 @@ { "name": "@xmlking/angular-in-memory-web-api", - "version": "0.5.7", + "version": "0.5.8", "description": "An in-memory web api for Angular demos and tests", "main": "bundles/in-memory-web-api.umd.js", "module": "index.js", "scripts": { + "start": "ng serve --aot", + "start:integration": "ng serve --aot --app 1", + "test": "ng test", + "test:integration": "npm run build && npm link ./dist && ng test --preserve-symlinks --app 1 -sr --browsers ChromeHeadless && ng build --preserve-symlinks --app 1 --prod", + "test:ci": "ng test -cc --browsers ChromeHeadless --single-run && npm run test:integration", "build": "ng-packagr -p package.json", - "build:watch": "tsc -w", - "lint": "tslint ./src/*.ts -t verbose -e ./src/*.d.ts", - "start": "concurrently \"npm run build:watch\" \"npm run serve\"", - "pretest": "npm run build", - "test": "concurrently \"npm run build:watch\" \"karma start karma.conf.js\"", - "pretest:once": "npm run build", - "test:once": "karma start karma.conf.js --single-run", - "tsc": "tsc", - "tsc:w": "tsc -w" + "lint": "tslint -c tslint.json 'src/**/*.ts'", + "prettier": "prettier --write \"**/*.ts\"" }, "repository": { "type": "git", @@ -33,59 +31,37 @@ "rxjs": "^5.6.0-forward-compat.0 || ^6.0.0-beta.0" }, "devDependencies": { - "@angular/animations": "~5.1.3", - "@angular/common": "~5.1.3", - "@angular/compiler": "~5.1.3", - "@angular/compiler-cli": "~5.1.3", - "@angular/core": "~5.1.3", - "@angular/platform-browser": "~5.1.3", - "@angular/platform-browser-dynamic": "~5.1.3", - "@angular/platform-server": "~5.1.3", - "@angular/tsc-wrapped": "~4.4.6", - "@types/jasmine": "2.5.54", - "@types/jasmine-ajax": "^3.1.37", - "@types/node": "^9.4.7", - "canonical-path": "0.0.2", - "concurrently": "^3.5.1", - "core-js": "^2.5.3", - "del": "^3.0.0", - "gulp": "^3.9.1", - "gulp-bump": "^3.1.0", - "gulp-load-plugins": "^1.3.0", - "gulp-task-listing": "^1.0.1", - "gulp-util": "^3.0.7", - "http-server": "^0.11.1", - "jasmine-ajax": "^3.3.1", - "jasmine-core": "~3.1.0", - "karma": "^2.0.0", - "karma-chrome-launcher": "^2.2.0", - "karma-cli": "^1.0.1", - "karma-htmlfile-reporter": "^0.3.5", - "karma-jasmine": "^1.1.1", - "karma-jasmine-ajax": "^0.1.13", - "karma-jasmine-html-reporter": "^1.0.0", - "karma-phantomjs-launcher": "^1.0.4", - "karma-sourcemap-loader": "^0.3.7", - "karma-webpack": "^3.0.0", - "lite-server": "^2.3.0", - "lodash": "^4.17.5", + "@angular/cli": "^1.7.3", + "@angular/common": "^5.1.3", + "@angular/compiler": "^5.1.3", + "@angular/compiler-cli": "^5.1.3", + "@angular/core": "^5.1.3", + "@angular/platform-browser": "^5.1.3", + "@angular/platform-browser-dynamic": "^5.1.3", + "@commitlint/cli": "^6.1.3", + "@commitlint/config-conventional": "^6.1.3", + "@types/jasmine": "^2.8.0", + "husky": "^0.15.0-rc.8", + "jasmine": "^2.8.0", + "jasmine-core": "~2.8.0", + "jasmine-spec-reporter": "~4.2.1", + "karma": "~2.0.0", + "karma-chrome-launcher": "~2.2.0", + "karma-coverage-istanbul-reporter": "^1.2.1", + "karma-jasmine": "~1.1.0", + "karma-jasmine-html-reporter": "^0.2.2", + "lint-staged": "^7.0.0", "ng-packagr": "^2.2.0", - "rimraf": "^2.6.1", - "rollup": "^0.57.1", - "rollup-stream": "^1.24.1", + "prettier": "^1.11.1", "rxjs": "^5.6.0-forward-compat.0", - "systemjs": "0.21.0", "tsickle": "^0.27.2", - "tslint": "^5.9.1", + "tslint": "^5.8.0", "typescript": "~2.6.2", - "vinyl-source-stream": "^2.0.0", - "webpack": "2.2.1", - "yargs": "^11.1.0", - "zone.js": "^0.8.20" + "zone.js": "^0.8.4" }, "ngPackage": { "lib": { - "entryFile": "src/in-mem/index.ts", + "entryFile": "src/index.ts", "flatModuleFile": "angular-in-memory-web-api" } } diff --git a/polyfills.ts b/polyfills.ts new file mode 100755 index 0000000..741c886 --- /dev/null +++ b/polyfills.ts @@ -0,0 +1 @@ +import 'zone.js/dist/zone'; diff --git a/rollup.config.js b/rollup.config.js deleted file mode 100644 index 56b096a..0000000 --- a/rollup.config.js +++ /dev/null @@ -1,25 +0,0 @@ -export default { - input: './src/in-mem/index.js', - // output: { ... does not work! Why? - file: './bundles/in-memory-web-api.umd.js', - format: 'umd', - name: 'ng.inMemoryWebApi', - sourcemap: true, - globals: { - '@angular/core': 'ng.core', - '@angular/http': 'ng.http', - '@angular/common/http': 'ng.common.http', - 'rxjs/BehaviorSubject': 'Rx', - 'rxjs/Observable': 'Rx', - 'rxjs/add/operator/delay': 'Rx', - 'rxjs/observable/of': 'Rx', - 'rxjs/observable/fromPromise': 'Rx', - 'rxjs/util/isPromise': 'Rx', - 'rxjs/operator/concatMap': 'Rx', - 'rxjs/operator/delay': 'Rx', - 'rxjs/operator/filter': 'Rx', - 'rxjs/operator/first': 'Rx', - 'rxjs/operator/map': 'Rx' - } - // } -} diff --git a/src/app/hero.service.spec.ts b/src/app/hero.service.spec.ts deleted file mode 100644 index 2397e1b..0000000 --- a/src/app/hero.service.spec.ts +++ /dev/null @@ -1,145 +0,0 @@ -import { async, TestBed } from '@angular/core/testing'; - -import 'rxjs/add/operator/concatMap'; -import 'rxjs/add/operator/do'; -import 'rxjs/add/operator/map'; - -import { failure } from '../testing'; - -import { Hero } from './hero'; -import { HeroService } from './hero.service'; - -/** - * Common tests for the HeroService, whether implemented with Http or HttpClient - * Assumes that TestBed has been configured appropriately before created and run. - * - * Tests with extended test expirations accommodate the default (simulated) latency delay. - * Ideally configured for short or no delay. - */ -export class HeroServiceCoreSpec { - - run() { - - describe('HeroService core', () => { - - let heroService: HeroService; - - beforeEach(function() { - heroService = TestBed.get(HeroService); - }); - - it('can get heroes', async(() => { - heroService.getHeroes() - .subscribe( - heroes => { - // console.log(heroes); - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); - - it('can get hero w/ id=1', async(() => { - heroService.getHero(1) - .subscribe( - hero => { - // console.log(hero); - expect(hero.name).toBe('Windstorm'); - }, - () => fail('getHero failed') - ); - })); - - it('should 404 when hero id not found', async(() => { - const id = 123456; - heroService.getHero(id) - .subscribe( - () => fail(`should not have found hero for id='${id}'`), - err => { - expect(err.status).toBe(404, 'should have 404 status'); - } - ); - })); - - it('can add a hero', async(() => { - heroService.addHero('FunkyBob') - .do(hero => { - // console.log(hero); - expect(hero.name).toBe('FunkyBob'); - }) - // Get the new hero by its generated id - .concatMap(hero => heroService.getHero(hero.id)) - .subscribe( - hero => { - expect(hero.name).toBe('FunkyBob'); - }, - err => failure('re-fetch of new hero failed') - ); - }), 10000); - - it('can delete a hero', async(() => { - const id = 1; - heroService.deleteHero(id) - .subscribe( - (_: {}) => { - expect(_).toBeDefined(); - }, - failure - ); - })); - - it('should allow delete of non-existent hero', async(() => { - const id = 123456; - heroService.deleteHero(id) - .subscribe( - (_: {}) => { - expect(_).toBeDefined(); - }, - failure - ); - })); - - it('can search for heroes by name containing "a"', async(() => { - heroService.searchHeroes('a') - .subscribe( - (heroes: Hero[]) => { - expect(heroes.length).toBe(3, 'should find 3 heroes with letter "a"'); - }, - failure - ); - })); - - it('can update existing hero', async(() => { - const id = 1; - heroService.getHero(id) - .concatMap(hero => { - hero.name = 'Thunderstorm'; - return heroService.updateHero(hero); - }) - .concatMap(() => { - return heroService.getHero(id); - }) - .subscribe( - hero => { - console.log(hero); - expect(hero.name).toBe('Thunderstorm'); - }, - err => fail('re-fetch of updated hero failed') - ); - }), 10000); - - it('should create new hero when try to update non-existent hero', async(() => { - const falseHero = new Hero(12321, 'DryMan'); - - heroService.updateHero(falseHero) - .subscribe( - hero => { - expect(hero.name).toBe(falseHero.name); - }, - failure - ); - })); - - }); - } -} diff --git a/src/in-mem/backend.service.ts b/src/backend.service.ts similarity index 98% rename from src/in-mem/backend.service.ts rename to src/backend.service.ts index c272d48..87c639e 100644 --- a/src/in-mem/backend.service.ts +++ b/src/backend.service.ts @@ -1,10 +1,10 @@ -import { Observable } from 'rxjs/Observable'; -import { Observer } from 'rxjs/Observer'; +import { Observable } from 'rxjs/Observable'; +import { Observer } from 'rxjs/Observer'; import { BehaviorSubject } from 'rxjs/BehaviorSubject'; -import { of } from 'rxjs/observable/of'; -import { fromPromise } from 'rxjs/observable/fromPromise'; -import { isPromise } from 'rxjs/util/isPromise'; +import { of } from 'rxjs/observable/of'; +import { fromPromise } from 'rxjs/observable/fromPromise'; +import { isPromise } from 'rxjs/util/isPromise'; // import { isPromise } from 'rxjs/internal/util/isPromise'; // import { concatMap } from 'rxjs/operator/concatMap'; @@ -679,7 +679,7 @@ export abstract class BackendService { this.dbReadySubject.next(false); const db = this.inMemDbService.createDb(reqInfo); const db$ = db instanceof Observable ? db : - this.isPromise(db) ? fromPromise(db) : + isPromise(db) ? fromPromise(db) : of(db); first.call(db$).subscribe((d: {}) => { this.db = d; @@ -688,8 +688,8 @@ export abstract class BackendService { return this.dbReady; } - private isPromise(value: any): value is PromiseLike { - return value && typeof (value).subscribe !== 'function' && typeof (value as any).then === 'function'; - } + // private isPromise(value: any): value is PromiseLike { + // return value && typeof (value).subscribe !== 'function' && typeof (value as any).then === 'function'; + // } } diff --git a/src/in-mem/delay-response.ts b/src/delay-response.ts similarity index 100% rename from src/in-mem/delay-response.ts rename to src/delay-response.ts diff --git a/src/in-mem/http-client-backend.service.spec.ts b/src/http-client-backend.service.spec.ts similarity index 100% rename from src/in-mem/http-client-backend.service.spec.ts rename to src/http-client-backend.service.spec.ts diff --git a/src/in-mem/http-client-backend.service.ts b/src/http-client-backend.service.ts similarity index 100% rename from src/in-mem/http-client-backend.service.ts rename to src/http-client-backend.service.ts diff --git a/src/in-mem/http-client-in-memory-web-api.module.ts b/src/http-client-in-memory-web-api.module.ts similarity index 100% rename from src/in-mem/http-client-in-memory-web-api.module.ts rename to src/http-client-in-memory-web-api.module.ts diff --git a/src/in-mem/http-status-codes.ts b/src/http-status-codes.ts similarity index 100% rename from src/in-mem/http-status-codes.ts rename to src/http-status-codes.ts diff --git a/src/in-mem/index.ts b/src/index.ts similarity index 100% rename from src/in-mem/index.ts rename to src/index.ts diff --git a/src/in-mem/interfaces.ts b/src/interfaces.ts similarity index 100% rename from src/in-mem/interfaces.ts rename to src/interfaces.ts diff --git a/src/systemjs-angular-loader.js b/src/systemjs-angular-loader.js deleted file mode 100644 index 8b10054..0000000 --- a/src/systemjs-angular-loader.js +++ /dev/null @@ -1,49 +0,0 @@ -var templateUrlRegex = /templateUrl\s*:(\s*['"`](.*?)['"`]\s*)/gm; -var stylesRegex = /styleUrls *:(\s*\[[^\]]*?\])/g; -var stringRegex = /(['`"])((?:[^\\]\\\1|.)*?)\1/g; - -module.exports.translate = function(load){ - if (load.source.indexOf('moduleId') != -1) return load; - - var url = document.createElement('a'); - url.href = load.address; - - var basePathParts = url.pathname.split('/'); - - basePathParts.pop(); - var basePath = basePathParts.join('/'); - - var baseHref = document.createElement('a'); - baseHref.href = this.baseURL; - baseHref = baseHref.pathname; - - if (!baseHref.startsWith('/base/')) { // it is not karma - basePath = basePath.replace(baseHref, ''); - } - - load.source = load.source - .replace(templateUrlRegex, function(match, quote, url){ - var resolvedUrl = url; - - if (url.startsWith('.')) { - resolvedUrl = basePath + url.substr(1); - } - - return 'templateUrl: "' + resolvedUrl + '"'; - }) - .replace(stylesRegex, function(match, relativeUrls) { - var urls = []; - - while ((match = stringRegex.exec(relativeUrls)) !== null) { - if (match[2].startsWith('.')) { - urls.push('"' + basePath + match[2].substr(1) + '"'); - } else { - urls.push('"' + match[2] + '"'); - } - } - - return "styleUrls: [" + urls.join(', ') + "]"; - }); - - return load; -}; diff --git a/src/systemjs.config.js b/src/systemjs.config.js deleted file mode 100644 index 30d4e54..0000000 --- a/src/systemjs.config.js +++ /dev/null @@ -1,54 +0,0 @@ -/** - * System configuration for Angular samples - * Adjust as necessary for your application needs. - */ -(function (global) { - System.config({ - paths: { - // paths serve as alias - 'npm:': 'node_modules/' - }, - // map tells the System loader where to look for things - map: { - // our app is within the app folder - 'app': 'app', - - // angular bundles - '@angular/animations': 'npm:@angular/animations/bundles/animations.umd.js', - '@angular/animations/browser': 'npm:@angular/animations/bundles/animations-browser.umd.js', - '@angular/core': 'npm:@angular/core/bundles/core.umd.js', - '@angular/common': 'npm:@angular/common/bundles/common.umd.js', - '@angular/common/http': 'npm:@angular/common/bundles/common-http.umd.js', - '@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js', - '@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js', - '@angular/platform-browser/animations': 'npm:@angular/platform-browser/bundles/platform-browser-animations.umd.js', - '@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js', - '@angular/http': 'npm:@angular/http/bundles/http.umd.js', - '@angular/router': 'npm:@angular/router/bundles/router.umd.js', - '@angular/router/upgrade': 'npm:@angular/router/bundles/router-upgrade.umd.js', - '@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js', - '@angular/upgrade': 'npm:@angular/upgrade/bundles/upgrade.umd.js', - '@angular/upgrade/static': 'npm:@angular/upgrade/bundles/upgrade-static.umd.js', - - // other libraries - 'rxjs': 'npm:rxjs', - 'tslib': 'npm:tslib/tslib.js', - 'angular-in-memory-web-api': 'npm:angular-in-memory-web-api/bundles/in-memory-web-api.umd.js' - }, - // packages tells the System loader how to load when no filename and/or no extension - packages: { - app: { - main: './main.js', - defaultExtension: 'js', - meta: { - './*.js': { - loader: 'systemjs-angular-loader.js' - } - } - }, - rxjs: { - defaultExtension: 'js' - } - } - }); -})(this); diff --git a/test.ts b/test.ts new file mode 100755 index 0000000..e5317c3 --- /dev/null +++ b/test.ts @@ -0,0 +1,17 @@ +// This file is required by karma.conf.js and loads recursively all the .spec and framework files + +import 'reflect-metadata'; +import 'zone.js/dist/zone-testing'; + +import { getTestBed } from '@angular/core/testing'; +import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; + +declare const require: any; + +// First, initialize the Angular testing environment. +getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); + +// Then we find all the tests. +const libContext = require.context('./src', true, /\.spec\.ts$/); +// And load the modules. +libContext.keys().map(libContext); diff --git a/tsconfig-ngc.json b/tsconfig-ngc.json deleted file mode 100644 index 73d5110..0000000 --- a/tsconfig-ngc.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "module": "es2015", - "moduleResolution": "node", - "sourceMap": true, - "inlineSources": true, - "declaration": true, - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "lib": [ "es2015", "dom" ], - "noImplicitAny": true, - "suppressImplicitAnyIndexErrors": true - }, - "files": [ - "src/in-mem/index.ts" - ], - "angularCompilerOptions": { - "genDir": "aot", - "skipMetadataEmit" : false - } -} diff --git a/tsconfig.app.json b/tsconfig.app.json new file mode 100755 index 0000000..b5cd196 --- /dev/null +++ b/tsconfig.app.json @@ -0,0 +1,14 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./out-tsc/app", + "baseUrl": "./", + "module": "es2015", + "types": [], + "paths": { + "ngxs": ["src/index.ts"] + } + }, + "include": ["integration/**/*.ts", "polyfills.ts"], + "exclude": ["test.ts", "**/*.spec.ts"] +} diff --git a/tsconfig.json b/tsconfig.json old mode 100644 new mode 100755 index f972920..969e988 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,24 +1,23 @@ { "compilerOptions": { - "target": "es5", + "baseUrl": "./", + "paths": { + "@xmlking/angular-in-memory-web-api": ["src/index.ts"], + "@angular/*": ["node_modules/@angular/*"] + }, "module": "commonjs", - "moduleResolution": "node", + "noEmitHelpers": false, + "noEmitOnError": false, + "skipDefaultLibCheck": true, + "skipLibCheck": true, + "noImplicitAny": false, + "noUnusedLocals": true, "sourceMap": true, - "inlineSources": true, - "declaration": true, + "declaration": false, + "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, - "lib": [ "es2015", "dom" ], - "noImplicitAny": true, - "suppressImplicitAnyIndexErrors": true - }, - "exclude": [ - "node_modules", - "typings/main", - "typings/main.d.ts" - ], - "angularCompilerOptions": { - "genDir": "aot", - "skipMetadataEmit" : false + "target": "es5", + "lib": ["es2017", "dom"] } } diff --git a/tsconfig.spec.json b/tsconfig.spec.json new file mode 100755 index 0000000..0c67739 --- /dev/null +++ b/tsconfig.spec.json @@ -0,0 +1,11 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./out-tsc/spec", + "module": "commonjs", + "target": "es5", + "types": ["jasmine"] + }, + "files": ["test.ts"], + "include": ["src/**/*.spec.ts"] +} diff --git a/tslint.json b/tslint.json old mode 100644 new mode 100755 index 276453f..ce8599d --- a/tslint.json +++ b/tslint.json @@ -1,19 +1,22 @@ { "rules": { + "callable-types": true, "class-name": true, "comment-format": [ true, "check-space" ], - "curly": true, "eofline": true, - "forin": true, + "import-blacklist": [ + true, + "rxjs" + ], + "import-spacing": true, "indent": [ true, "spaces" ], "label-position": true, - "label-undefined": true, "max-line-length": [ true, 140 @@ -21,8 +24,14 @@ "member-access": false, "member-ordering": [ true, - "static-before-instance", - "variables-before-functions" + { + "order": [ + "static-field", + "instance-field", + "static-method", + "instance-method" + ] + } ], "no-arg": true, "no-bitwise": true, @@ -36,19 +45,22 @@ ], "no-construct": true, "no-debugger": true, - "no-duplicate-key": true, - "no-duplicate-variable": true, + "no-duplicate-super": true, "no-empty": false, "no-eval": true, - "no-inferrable-types": true, + "no-inferrable-types": [ + true, + "ignore-params" + ], + "no-misused-new": true, + "no-non-null-assertion": true, "no-shadowed-variable": true, "no-string-literal": false, + "no-string-throw": true, "no-switch-case-fall-through": true, "no-trailing-whitespace": true, - "no-unused-expression": true, - "no-unused-variable": true, - "no-unreachable": true, - "no-use-before-declare": true, + "no-unnecessary-initializer": true, + "no-use-before-declare": false, "no-var-keyword": true, "object-literal-sort-keys": false, "one-line": [ @@ -58,12 +70,14 @@ "check-else", "check-whitespace" ], + "prefer-const": true, "quotemark": [ true, "single" ], "radix": true, "semicolon": [ + true, "always" ], "triple-equals": [ @@ -80,6 +94,8 @@ "variable-declaration": "nospace" } ], + "typeof-compare": true, + "unified-signatures": true, "variable-name": false, "whitespace": [ true, From 78c50683fb229339653f16e2c59b4adbfeac2b0d Mon Sep 17 00:00:00 2001 From: Sumanth Chinthagunta Date: Thu, 22 Mar 2018 12:10:22 -0700 Subject: [PATCH 3/8] working --- .commitlintrc.json | 3 + .gitignore | 58 +- .lintstagedrc.json | 3 + .npmignore | 17 - .prettierrc.json | 5 + integration/app/app.component.html | 7 + integration/app/app.component.scss | 73 ++ integration/app/app.component.ts | 22 +- integration/app/app.module.ts | 22 +- .../hero/hero-in-mem-data-override.service.ts | 33 +- .../app/hero/hero-in-mem-data.service.ts | 14 +- integration/app/hero/hero.service.spec.ts | 297 +++---- integration/app/hero/hero.service.ts | 10 +- integration/app/hero/hero.ts | 6 +- .../app/hero/http-client-hero.service.ts | 44 +- integration/app/hero/http-hero.service.ts | 91 ++ integration/app/hero/in-mem-hero.service.ts | 13 + package-lock.json | 23 +- package.json | 12 +- src/backend.service.ts | 168 ++-- src/delay-response.ts | 4 +- src/{testing/index.ts => failure.ts} | 0 src/http-backend.service.spec.ts | 558 +++++++++++++ src/http-backend.service.ts | 129 +++ src/http-client-backend.service.spec.ts | 782 +++++++++--------- src/http-client-backend.service.ts | 31 +- src/http-client-in-memory-web-api.module.ts | 46 +- src/http-in-memory-web-api.module.ts | 62 ++ src/http-status-codes.ts | 599 +++++++------- src/in-memory-web-api.module.ts | 60 ++ src/index.ts | 3 + src/interfaces.ts | 124 +-- src/jasmine-ajax.spec.js | 91 ++ src/{testing => }/jasmine-ajax.spec.ts | 24 +- test.ts | 1 - 35 files changed, 2286 insertions(+), 1149 deletions(-) create mode 100644 .commitlintrc.json create mode 100644 .lintstagedrc.json delete mode 100644 .npmignore create mode 100644 .prettierrc.json create mode 100644 integration/app/app.component.html create mode 100755 integration/app/hero/http-hero.service.ts create mode 100644 integration/app/hero/in-mem-hero.service.ts mode change 100644 => 100755 src/backend.service.ts mode change 100644 => 100755 src/delay-response.ts rename src/{testing/index.ts => failure.ts} (100%) create mode 100755 src/http-backend.service.spec.ts create mode 100755 src/http-backend.service.ts mode change 100644 => 100755 src/http-client-backend.service.spec.ts mode change 100644 => 100755 src/http-client-backend.service.ts mode change 100644 => 100755 src/http-client-in-memory-web-api.module.ts create mode 100755 src/http-in-memory-web-api.module.ts mode change 100644 => 100755 src/http-status-codes.ts create mode 100755 src/in-memory-web-api.module.ts mode change 100644 => 100755 src/index.ts mode change 100644 => 100755 src/interfaces.ts create mode 100644 src/jasmine-ajax.spec.js rename src/{testing => }/jasmine-ajax.spec.ts (88%) diff --git a/.commitlintrc.json b/.commitlintrc.json new file mode 100644 index 0000000..c30e5a9 --- /dev/null +++ b/.commitlintrc.json @@ -0,0 +1,3 @@ +{ + "extends": ["@commitlint/config-conventional"] +} diff --git a/.gitignore b/.gitignore index 987b44a..e7dbb02 100644 --- a/.gitignore +++ b/.gitignore @@ -1,15 +1,49 @@ -aot -in-memory-web-api -node_modules -typings +# See http://help.github.com/ignore-files/ for more about ignoring files. + +# compiled output +/dist +/tmp +/out-tsc +/src/environments/version.ts + +# dependencies +/node_modules + +# IDEs and editors +/.idea +.project +.classpath +.c9/ +*.launch +.settings/ +*.sublime-workspace +*.bak + +# IDE - VSCode +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json + +# misc +/.sass-cache +/connect.lock +/coverage +/libpeerconnection.log npm-debug.log -src/**/*.d.ts -src/**/*.js -src/**/*.js.map -src/**/*.metadata.json -yarn.lock - -.idea/ -dist +testem.log +/typings +.test-results.json /dist-lib /dist-integration + +# e2e +/e2e/*.js +/e2e/*.map + +# System Files +.DS_Store +Thumbs.db +/storybook-static +/yarn-error.log diff --git a/.lintstagedrc.json b/.lintstagedrc.json new file mode 100644 index 0000000..4756414 --- /dev/null +++ b/.lintstagedrc.json @@ -0,0 +1,3 @@ +{ + "*.ts": ["prettier --write", "git add"] +} diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 141a1fc..0000000 --- a/.npmignore +++ /dev/null @@ -1,17 +0,0 @@ -.editorconfig -.gitignore -.npmignore -.travis.yml -aot -gulpfile.js -in-memory-web-api -karma-test-shim.js -karma.conf.js -rollup.config.js -src -tsconfig.json -tsconfig-ngc.json -tslint.json -yarn.lock - -.idea/ diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..d0ed5e8 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,5 @@ +{ + "singleQuote": true, + "printWidth": 120, + "tabWidth": 2 +} diff --git a/integration/app/app.component.html b/integration/app/app.component.html new file mode 100644 index 0000000..b60344c --- /dev/null +++ b/integration/app/app.component.html @@ -0,0 +1,7 @@ +

My Heroes

+ +
    +
  • + {{hero.id}} {{hero.name}} +
  • +
diff --git a/integration/app/app.component.scss b/integration/app/app.component.scss index e69de29..9178390 100755 --- a/integration/app/app.component.scss +++ b/integration/app/app.component.scss @@ -0,0 +1,73 @@ +.heroes { + margin: 0 0 2em 0; + list-style-type: none; + padding: 0; + width: 15em; +} +.heroes li { + position: relative; + cursor: pointer; + background-color: #EEE; + margin: .5em; + padding: .3em 0; + height: 1.6em; + border-radius: 4px; +} + +.heroes li:hover { + color: #607D8B; + background-color: #DDD; + left: .1em; +} + +.heroes a { + color: #888; + text-decoration: none; + position: relative; + display: block; + width: 250px; +} + +.heroes a:hover { + color:#607D8B; +} + +.heroes .badge { + display: inline-block; + font-size: small; + color: white; + padding: 0.8em 0.7em 0 0.7em; + background-color: #607D8B; + line-height: 1em; + position: relative; + left: -1px; + top: -4px; + height: 1.8em; + min-width: 16px; + text-align: right; + margin-right: .8em; + border-radius: 4px 0 0 4px; +} + +button { + background-color: #eee; + border: none; + padding: 5px 10px; + border-radius: 4px; + cursor: pointer; + cursor: hand; + font-family: Arial; +} + +button:hover { + background-color: #cfd8dc; +} + +button.delete { + position: relative; + left: 194px; + top: -32px; + background-color: gray !important; + color: white; +} + diff --git a/integration/app/app.component.ts b/integration/app/app.component.ts index 126a685..e0170b2 100755 --- a/integration/app/app.component.ts +++ b/integration/app/app.component.ts @@ -1,27 +1,23 @@ import { Component, ViewEncapsulation } from '@angular/core'; -import {HeroService} from './hero/hero.service'; +import { HeroService } from './hero/hero.service'; +import { Hero } from './hero/hero'; @Component({ selector: 'app-root', - template: ` -
-

Test

-
- `, + templateUrl: './app.component.html', styleUrls: ['./app.component.scss'], encapsulation: ViewEncapsulation.None }) export class AppComponent { + heroes: Hero[]; - constructor(private heroService: HeroService) { - this.heroService.getHeroes().subscribe( (heros) => { - console.log(heros); - }); - } + constructor(private heroService: HeroService) {} - addTodo(todo: string) { + ngOnInit() { + this.getHeroes(); } - removeTodo(index: number) { + getHeroes(): void { + this.heroService.getHeroes().subscribe(heroes => (this.heroes = heroes)); } } diff --git a/integration/app/app.module.ts b/integration/app/app.module.ts index e9ddeb9..7cc2394 100755 --- a/integration/app/app.module.ts +++ b/integration/app/app.module.ts @@ -1,27 +1,25 @@ import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { HttpClientInMemoryWebApiModule } from '@xmlking/angular-in-memory-web-api'; -import { HeroInMemDataService } from './hero/hero-in-mem-data.service'; +// import { HeroInMemDataService } from './hero/hero-in-mem-data.service'; +import { InMemHeroService } from './hero/in-mem-hero.service'; import { AppComponent } from './app.component'; -import {HeroService} from './hero/hero.service'; -import {HttpClientHeroService} from './hero/http-client-hero.service'; -import {HttpClientModule} from '@angular/common/http'; +import { HeroService } from './hero/hero.service'; +import { HttpClientHeroService } from './hero/http-client-hero.service'; +import { HttpClientModule } from '@angular/common/http'; @NgModule({ declarations: [AppComponent], imports: [ BrowserModule, HttpClientModule, - HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataService, { - passThruUnknownUrl: true - // delay: 500, - // apiBase: 'api' - }) - ], - providers: [ - { provide: HeroService, useClass: HttpClientHeroService } + HttpClientInMemoryWebApiModule.forRoot(InMemHeroService) + // HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataService, { + // passThruUnknownUrl: true + // }) ], + providers: [{ provide: HeroService, useClass: HttpClientHeroService }], bootstrap: [AppComponent] }) export class AppModule {} diff --git a/integration/app/hero/hero-in-mem-data-override.service.ts b/integration/app/hero/hero-in-mem-data-override.service.ts index 0f8c537..10b3f12 100644 --- a/integration/app/hero/hero-in-mem-data-override.service.ts +++ b/integration/app/hero/hero-in-mem-data-override.service.ts @@ -11,9 +11,9 @@ import { HeroInMemDataService } from './hero-in-mem-data.service'; const villains = [ // deliberately using string ids that look numeric - {id: 100, name: 'Snidley Wipsnatch'}, - {id: 101, name: 'Boris Badenov'}, - {id: 103, name: 'Natasha Fatale'} + { id: 100, name: 'Snidley Wipsnatch' }, + { id: 101, name: 'Boris Badenov' }, + { id: 103, name: 'Natasha Fatale' } ]; // Pseudo guid generator @@ -23,17 +23,15 @@ function guid() { .toString(16) .substring(1); } - return s4() + s4() + '-' + s4() + '-' + s4() + '-' + - s4() + '-' + s4() + s4() + s4(); + return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4(); } @Injectable() export class HeroInMemDataOverrideService extends HeroInMemDataService { - // Overrides id generator and delivers next available `id`, starting with 1001. genId(collection: T[], collectionName: string): any { if (collectionName === 'nobodies') { - console.log('genId override for \'nobodies\''); + console.log("genId override for 'nobodies'"); return guid(); } else if (collection) { console.log(`genId override for '${collectionName}'`); @@ -62,15 +60,15 @@ export class HeroInMemDataOverrideService extends HeroInMemDataService { // tslint:disable-next-line:triple-equals const data = id == undefined ? collection : reqInfo.utils.findById(collection, id); - const options: ResponseOptions = data ? - { - body: dataEncapsulation ? { data } : data, - status: STATUS.OK - } : - { - body: { error: `'Villains' with id='${id}' not found` }, - status: STATUS.NOT_FOUND - }; + const options: ResponseOptions = data + ? { + body: dataEncapsulation ? { data } : data, + status: STATUS.OK + } + : { + body: { error: `'Villains' with id='${id}' not found` }, + status: STATUS.NOT_FOUND + }; return this.finishOptions(options, reqInfo); }); } @@ -92,7 +90,6 @@ export class HeroInMemDataOverrideService extends HeroInMemDataService { // intercept ResponseOptions from default HTTP method handlers // add a response header and report interception to console.log responseInterceptor(resOptions: ResponseOptions, reqInfo: RequestInfo) { - resOptions.headers.set('x-test', 'test-header'); const method = reqInfo.method.toUpperCase(); const body = JSON.stringify(resOptions); @@ -103,7 +100,7 @@ export class HeroInMemDataOverrideService extends HeroInMemDataService { /////////// helpers /////////////// - private finishOptions(options: ResponseOptions, {headers, url}: RequestInfo) { + private finishOptions(options: ResponseOptions, { headers, url }: RequestInfo) { options.statusText = getStatusText(options.status); options.headers = headers; options.url = url; diff --git a/integration/app/hero/hero-in-mem-data.service.ts b/integration/app/hero/hero-in-mem-data.service.ts index 91f237b..4d2bbee 100644 --- a/integration/app/hero/hero-in-mem-data.service.ts +++ b/integration/app/hero/hero-in-mem-data.service.ts @@ -18,7 +18,6 @@ import 'rxjs/add/operator/delay'; @Injectable() export class HeroInMemDataService implements InMemoryDbService { createDb(reqInfo?: RequestInfo) { - const heroes = [ { id: 1, name: 'Windstorm' }, { id: 2, name: 'Bombasto' }, @@ -26,16 +25,13 @@ export class HeroInMemDataService implements InMemoryDbService { { id: 4, name: 'Tornado' } ]; - const nobodies: any[] = [ ]; + const nobodies: any[] = []; // entities with string ids that look like numbers - const stringers = [ - { id: '10', name: 'Bob String'}, - { id: '20', name: 'Jill String'} - ]; + const stringers = [{ id: '10', name: 'Bob String' }, { id: '20', name: 'Jill String' }]; // default returnType - let returnType = 'object'; + let returnType = 'object'; // let returnType = 'observable'; // let returnType = 'promise'; @@ -55,9 +51,9 @@ export class HeroInMemDataService implements InMemoryDbService { const db = { heroes, nobodies, stringers }; switch (returnType) { - case ('observable'): + case 'observable': return of(db).delay(10); - case ('promise'): + case 'promise': return new Promise(resolve => { setTimeout(() => resolve(db), 10); }); diff --git a/integration/app/hero/hero.service.spec.ts b/integration/app/hero/hero.service.spec.ts index 399f28c..31928f4 100644 --- a/integration/app/hero/hero.service.spec.ts +++ b/integration/app/hero/hero.service.spec.ts @@ -1,145 +1,152 @@ -// import { async, TestBed } from '@angular/core/testing'; -// -// import 'rxjs/add/operator/concatMap'; -// import 'rxjs/add/operator/do'; -// import 'rxjs/add/operator/map'; -// -// import { failure } from '../testing'; -// -// import { Hero } from './hero'; -// import { HeroService } from './hero.service'; -// -// /** -// * Common tests for the HeroService, whether implemented with Http or HttpClient -// * Assumes that TestBed has been configured appropriately before created and run. -// * -// * Tests with extended test expirations accommodate the default (simulated) latency delay. -// * Ideally configured for short or no delay. -// */ -// export class HeroServiceCoreSpec { -// -// run() { -// -// describe('HeroService core', () => { -// -// let heroService: HeroService; -// -// beforeEach(function() { -// heroService = TestBed.get(HeroService); -// }); -// -// it('can get heroes', async(() => { -// heroService.getHeroes() -// .subscribe( -// heroes => { -// // console.log(heroes); -// expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); -// }, -// failure -// ); -// })); -// -// it('can get hero w/ id=1', async(() => { -// heroService.getHero(1) -// .subscribe( -// hero => { -// // console.log(hero); -// expect(hero.name).toBe('Windstorm'); -// }, -// () => fail('getHero failed') -// ); -// })); -// -// it('should 404 when hero id not found', async(() => { -// const id = 123456; -// heroService.getHero(id) -// .subscribe( -// () => fail(`should not have found hero for id='${id}'`), -// err => { -// expect(err.status).toBe(404, 'should have 404 status'); -// } -// ); -// })); -// -// it('can add a hero', async(() => { -// heroService.addHero('FunkyBob') -// .do(hero => { -// // console.log(hero); -// expect(hero.name).toBe('FunkyBob'); -// }) -// // Get the new hero by its generated id -// .concatMap(hero => heroService.getHero(hero.id)) -// .subscribe( -// hero => { -// expect(hero.name).toBe('FunkyBob'); -// }, -// err => failure('re-fetch of new hero failed') -// ); -// }), 10000); -// -// it('can delete a hero', async(() => { -// const id = 1; -// heroService.deleteHero(id) -// .subscribe( -// (_: {}) => { -// expect(_).toBeDefined(); -// }, -// failure -// ); -// })); -// -// it('should allow delete of non-existent hero', async(() => { -// const id = 123456; -// heroService.deleteHero(id) -// .subscribe( -// (_: {}) => { -// expect(_).toBeDefined(); -// }, -// failure -// ); -// })); -// -// it('can search for heroes by name containing "a"', async(() => { -// heroService.searchHeroes('a') -// .subscribe( -// (heroes: Hero[]) => { -// expect(heroes.length).toBe(3, 'should find 3 heroes with letter "a"'); -// }, -// failure -// ); -// })); -// -// it('can update existing hero', async(() => { -// const id = 1; -// heroService.getHero(id) -// .concatMap(hero => { -// hero.name = 'Thunderstorm'; -// return heroService.updateHero(hero); -// }) -// .concatMap(() => { -// return heroService.getHero(id); -// }) -// .subscribe( -// hero => { -// console.log(hero); -// expect(hero.name).toBe('Thunderstorm'); -// }, -// err => fail('re-fetch of updated hero failed') -// ); -// }), 10000); -// -// it('should create new hero when try to update non-existent hero', async(() => { -// const falseHero = new Hero(12321, 'DryMan'); -// -// heroService.updateHero(falseHero) -// .subscribe( -// hero => { -// expect(hero.name).toBe(falseHero.name); -// }, -// failure -// ); -// })); -// -// }); -// } -// } +import { async, TestBed } from '@angular/core/testing'; + +import 'rxjs/add/operator/concatMap'; +import 'rxjs/add/operator/do'; +import 'rxjs/add/operator/map'; + +export function failure(err: any) { + fail(JSON.stringify(err)); +} + +import { Hero } from './hero'; +import { HeroService } from './hero.service'; + +/** + * Common tests for the HeroService, whether implemented with Http or HttpClient + * Assumes that TestBed has been configured appropriately before created and run. + * + * Tests with extended test expirations accommodate the default (simulated) latency delay. + * Ideally configured for short or no delay. + */ +export class HeroServiceCoreSpec { + run() { + describe('HeroService core', () => { + let heroService: HeroService; + + beforeEach(function() { + heroService = TestBed.get(HeroService); + }); + + it( + 'can get heroes', + async(() => { + heroService.getHeroes().subscribe(heroes => { + // console.log(heroes); + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }, failure); + }) + ); + + it( + 'can get hero w/ id=1', + async(() => { + heroService.getHero(1).subscribe( + hero => { + // console.log(hero); + expect(hero.name).toBe('Windstorm'); + }, + () => fail('getHero failed') + ); + }) + ); + + it( + 'should 404 when hero id not found', + async(() => { + const id = 123456; + heroService.getHero(id).subscribe( + () => fail(`should not have found hero for id='${id}'`), + err => { + expect(err.status).toBe(404, 'should have 404 status'); + } + ); + }) + ); + + it( + 'can add a hero', + async(() => { + heroService + .addHero('FunkyBob') + .do(hero => { + // console.log(hero); + expect(hero.name).toBe('FunkyBob'); + }) + // Get the new hero by its generated id + .concatMap(hero => heroService.getHero(hero.id)) + .subscribe( + hero => { + expect(hero.name).toBe('FunkyBob'); + }, + err => failure('re-fetch of new hero failed') + ); + }), + 10000 + ); + + it( + 'can delete a hero', + async(() => { + const id = 1; + heroService.deleteHero(id).subscribe((_: {}) => { + expect(_).toBeDefined(); + }, failure); + }) + ); + + it( + 'should allow delete of non-existent hero', + async(() => { + const id = 123456; + heroService.deleteHero(id).subscribe((_: {}) => { + expect(_).toBeDefined(); + }, failure); + }) + ); + + it( + 'can search for heroes by name containing "a"', + async(() => { + heroService.searchHeroes('a').subscribe((heroes: Hero[]) => { + expect(heroes.length).toBe(3, 'should find 3 heroes with letter "a"'); + }, failure); + }) + ); + + it( + 'can update existing hero', + async(() => { + const id = 1; + heroService + .getHero(id) + .concatMap(hero => { + hero.name = 'Thunderstorm'; + return heroService.updateHero(hero); + }) + .concatMap(() => { + return heroService.getHero(id); + }) + .subscribe( + hero => { + console.log(hero); + expect(hero.name).toBe('Thunderstorm'); + }, + err => fail('re-fetch of updated hero failed') + ); + }), + 10000 + ); + + it( + 'should create new hero when try to update non-existent hero', + async(() => { + const falseHero = new Hero(12321, 'DryMan'); + + heroService.updateHero(falseHero).subscribe(hero => { + expect(hero.name).toBe(falseHero.name); + }, failure); + }) + ); + }); + } +} diff --git a/integration/app/hero/hero.service.ts b/integration/app/hero/hero.service.ts index 019854f..5311b0e 100644 --- a/integration/app/hero/hero.service.ts +++ b/integration/app/hero/hero.service.ts @@ -2,12 +2,12 @@ import { Hero } from './hero'; import { Observable } from 'rxjs/Observable'; export abstract class HeroService { - heroesUrl = 'api/heroes'; // URL to web api + heroesUrl = 'api/heroes'; // URL to web api - abstract getHeroes (): Observable; + abstract getHeroes(): Observable; abstract getHero(id: number): Observable; - abstract addHero (name: string): Observable; - abstract deleteHero (hero: Hero | number): Observable; + abstract addHero(name: string): Observable; + abstract deleteHero(hero: Hero | number): Observable; abstract searchHeroes(term: string): Observable; - abstract updateHero (hero: Hero): Observable; + abstract updateHero(hero: Hero): Observable; } diff --git a/integration/app/hero/hero.ts b/integration/app/hero/hero.ts index 6a98f0d..a4d169f 100644 --- a/integration/app/hero/hero.ts +++ b/integration/app/hero/hero.ts @@ -1,4 +1,6 @@ export class Hero { - constructor(public id = 0, public name = '') { } - clone() { return new Hero(this.id, this.name); } + constructor(public id = 0, public name = '') {} + clone() { + return new Hero(this.id, this.name); + } } diff --git a/integration/app/hero/http-client-hero.service.ts b/integration/app/hero/http-client-hero.service.ts index 0dedd08..0c46090 100644 --- a/integration/app/hero/http-client-hero.service.ts +++ b/integration/app/hero/http-client-hero.service.ts @@ -11,26 +11,29 @@ import 'rxjs/add/operator/map'; import { Hero } from './hero'; import { HeroService } from './hero.service'; -const cudOptions = { headers: new HttpHeaders({ 'Content-Type': 'application/json' })}; +const cudOptions = { + headers: new HttpHeaders({ 'Content-Type': 'application/json' }) +}; @Injectable() export class HttpClientHeroService extends HeroService { - - constructor (private http: HttpClient) { + constructor(private http: HttpClient) { super(); } - getHeroes (): Observable { - return this.http.get(this.heroesUrl) - // .do(data => console.log(data)) // eyeball results in the console - .catch(this.handleError); + getHeroes(): Observable { + return ( + this.http + .get(this.heroesUrl) + // .do(data => console.log(data)) // eyeball results in the console + .catch(this.handleError) + ); } // This get-by-id will 404 when id not found getHero(id: number): Observable { const url = `${this.heroesUrl}/${id}`; - return this.http.get(url) - .catch(this.handleError); + return this.http.get(url).catch(this.handleError); } // This get-by-id does not 404; returns undefined when id not found @@ -41,37 +44,32 @@ export class HttpClientHeroService extends HeroService { // .catch(this.handleError); // } - addHero (name: string): Observable { + addHero(name: string): Observable { const hero = { name }; - return this.http.post(this.heroesUrl, hero, cudOptions) - .catch(this.handleError); + return this.http.post(this.heroesUrl, hero, cudOptions).catch(this.handleError); } - deleteHero (hero: Hero | number): Observable { + deleteHero(hero: Hero | number): Observable { const id = typeof hero === 'number' ? hero : hero.id; const url = `${this.heroesUrl}/${id}`; - return this.http.delete(url, cudOptions) - .catch(this.handleError); + return this.http.delete(url, cudOptions).catch(this.handleError); } searchHeroes(term: string): Observable { term = term.trim(); // add safe, encoded search parameter if term is present - const options = term ? - { params: new HttpParams().set('name', term) } : {}; + const options = term ? { params: new HttpParams().set('name', term) } : {}; - return this.http.get(this.heroesUrl, options) - .catch(this.handleError); + return this.http.get(this.heroesUrl, options).catch(this.handleError); } - updateHero (hero: Hero): Observable { - return this.http.put(this.heroesUrl, hero, cudOptions) - .catch(this.handleError); + updateHero(hero: Hero): Observable { + return this.http.put(this.heroesUrl, hero, cudOptions).catch(this.handleError); } - private handleError (error: any) { + private handleError(error: any) { // In a real world app, we might send the error to remote logging infrastructure // and reformat for user consumption console.error(error); // log to console instead diff --git a/integration/app/hero/http-hero.service.ts b/integration/app/hero/http-hero.service.ts new file mode 100755 index 0000000..fc1a96b --- /dev/null +++ b/integration/app/hero/http-hero.service.ts @@ -0,0 +1,91 @@ +import { Injectable } from '@angular/core'; +import { Headers, Http, Response } from '@angular/http'; + +import { Observable } from 'rxjs/Observable'; +import 'rxjs/add/observable/throw'; + +import 'rxjs/add/operator/do'; +import 'rxjs/add/operator/catch'; +import 'rxjs/add/operator/map'; + +import { Hero } from './hero'; +import { HeroService } from './hero.service'; + +const cudOptions = { + headers: new Headers({ 'Content-Type': 'application/json' }) +}; + +@Injectable() +export class HttpHeroService extends HeroService { + constructor(private http: Http) { + super(); + } + + getHeroes(): Observable { + return ( + this.http + .get(this.heroesUrl) + // .do(data => console.log(data)) // eyeball results in the console + .map(res => res.json()) + .catch(this.handleError) + ); + } + + // This get-by-id will 404 when id not found + getHero(id: number): Observable { + const url = `${this.heroesUrl}/${id}`; + return this.http + .get(url) + .map((r: Response) => r.json() as Hero) + .catch(this.handleError); + } + + // This get-by-id does not 404; returns empty array when id not found + // getHero(id: number) { + // const url = `${this._heroesUrl}/?id=${id}`; + // return this.http + // .get(url) + // .map((r: Response) => r.json()[0] as Hero); + // .catch(this.handleError); + // } + + addHero(name: string): Observable { + const hero = { name }; + + return this.http + .post(this.heroesUrl, hero, cudOptions) + .map(res => res.json()) + .catch(this.handleError); + } + + deleteHero(hero: Hero | number): Observable { + const id = typeof hero === 'number' ? hero : hero.id; + const url = `${this.heroesUrl}/${id}`; + + return this.http.delete(url, cudOptions).catch(this.handleError); + } + + searchHeroes(term: string): Observable { + term = term.trim(); + // NB: not a safe encoded search parameter + const search = term ? '/?name=' + term : ''; + return this.http + .get(this.heroesUrl + search) + .map(res => res.json()) + .catch(this.handleError); + } + + updateHero(hero: Hero): Observable { + return this.http + .put(this.heroesUrl, hero, cudOptions) + .map(res => res.json()) + .catch(this.handleError); + } + + private handleError(error: any) { + // In a real world app, we might send the error to remote logging infrastructure + // and reformat for user consumption + console.error(error); // log to console instead + return Observable.throw(error); + } +} diff --git a/integration/app/hero/in-mem-hero.service.ts b/integration/app/hero/in-mem-hero.service.ts new file mode 100644 index 0000000..2521ea6 --- /dev/null +++ b/integration/app/hero/in-mem-hero.service.ts @@ -0,0 +1,13 @@ +import { InMemoryDbService } from '@xmlking/angular-in-memory-web-api'; + +export class InMemHeroService implements InMemoryDbService { + createDb() { + const heroes = [ + { id: 1, name: 'Windstorm' }, + { id: 2, name: 'Bombasto' }, + { id: 3, name: 'Magneta' }, + { id: 4, name: 'Tornado' } + ]; + return { heroes }; + } +} diff --git a/package-lock.json b/package-lock.json index 4565eae..520d552 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@xmlking/angular-in-memory-web-api", - "version": "0.5.8", + "version": "0.5.9", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -197,6 +197,15 @@ "tslib": "1.9.0" } }, + "@angular/http": { + "version": "5.2.9", + "resolved": "https://registry.npmjs.org/@angular/http/-/http-5.2.9.tgz", + "integrity": "sha512-DKjgIk+Dp0Xv1ieG8LawvUnL4dYZp1KroAq5cfKuO9EojP0zM3tUvBtw2vbPLsHYma7g7ZMjOoAbzVxtmTBZqw==", + "dev": true, + "requires": { + "tslib": "1.9.0" + } + }, "@angular/platform-browser": { "version": "5.2.9", "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-5.2.9.tgz", @@ -547,6 +556,12 @@ "integrity": "sha512-clg9raJTY0EOo5pVZKX3ZlMjlYzVU73L71q5OV1jhE2Uezb7oF94jh4CvwrW6wInquQAdhOxJz5VDF2TLUGmmA==", "dev": true }, + "@types/jasmine-ajax": { + "version": "3.1.37", + "resolved": "https://registry.npmjs.org/@types/jasmine-ajax/-/jasmine-ajax-3.1.37.tgz", + "integrity": "sha512-4HDzl2HLLmnEuRKqDA3RRqBumkKkK6yHdUcsAGRdsx05/sKaRw6O6shtbPRv4FBt16ywJQwflIYSdB3kLE2ttA==", + "dev": true + }, "JSONStream": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.2.tgz", @@ -7150,6 +7165,12 @@ } } }, + "jasmine-ajax": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/jasmine-ajax/-/jasmine-ajax-3.3.1.tgz", + "integrity": "sha1-+MrZ/Unf1E8895jTb06FfRJcdcU=", + "dev": true + }, "jasmine-core": { "version": "2.8.0", "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-2.8.0.tgz", diff --git a/package.json b/package.json index 250f374..e462a1a 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,14 @@ { "name": "@xmlking/angular-in-memory-web-api", - "version": "0.5.8", + "version": "0.5.9", "description": "An in-memory web api for Angular demos and tests", - "main": "bundles/in-memory-web-api.umd.js", - "module": "index.js", + "main": "index.js", "scripts": { + "//": "Dev Tools", "start": "ng serve --aot", "start:integration": "ng serve --aot --app 1", "test": "ng test", - "test:integration": "npm run build && npm link ./dist && ng test --preserve-symlinks --app 1 -sr --browsers ChromeHeadless && ng build --preserve-symlinks --app 1 --prod", - "test:ci": "ng test -cc --browsers ChromeHeadless --single-run && npm run test:integration", + "test:integration": "yarn build && yarn link --frozen-lockfile --silent && ng test --progress=false --preserve-symlinks --app 1 -sr --browsers ChromeHeadless", "build": "ng-packagr -p package.json", "lint": "tslint -c tslint.json 'src/**/*.ts'", "prettier": "prettier --write \"**/*.ts\"" @@ -36,13 +35,16 @@ "@angular/compiler": "^5.1.3", "@angular/compiler-cli": "^5.1.3", "@angular/core": "^5.1.3", + "@angular/http": "^5.1.3", "@angular/platform-browser": "^5.1.3", "@angular/platform-browser-dynamic": "^5.1.3", "@commitlint/cli": "^6.1.3", "@commitlint/config-conventional": "^6.1.3", "@types/jasmine": "^2.8.0", + "@types/jasmine-ajax": "^3.1.37", "husky": "^0.15.0-rc.8", "jasmine": "^2.8.0", + "jasmine-ajax": "^3.3.1", "jasmine-core": "~2.8.0", "jasmine-spec-reporter": "~4.2.1", "karma": "~2.0.0", diff --git a/src/backend.service.ts b/src/backend.service.ts old mode 100644 new mode 100755 index 87c639e..f69b945 --- a/src/backend.service.ts +++ b/src/backend.service.ts @@ -5,12 +5,9 @@ import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import { of } from 'rxjs/observable/of'; import { fromPromise } from 'rxjs/observable/fromPromise'; import { isPromise } from 'rxjs/util/isPromise'; -// import { isPromise } from 'rxjs/internal/util/isPromise'; -// import { concatMap } from 'rxjs/operator/concatMap'; -// import { first } from 'rxjs/operator/first'; -import { concatMap } from 'rxjs/operators/concatMap'; -import { first } from 'rxjs/operators/first'; +import { concatMap } from 'rxjs/operator/concatMap'; +import { first } from 'rxjs/operator/first'; import { getStatusText, isSuccess, STATUS } from './http-status-codes'; import { delayResponse } from './delay-response'; @@ -31,7 +28,6 @@ import { UriInfo } from './interfaces'; - /** * Base class for in-memory web api back-ends * Simulate the behavior of a RESTy web api @@ -46,12 +42,9 @@ export abstract class BackendService { private passThruBackend: PassThruBackend; protected requestInfoUtils = this.getRequestInfoUtils(); - constructor( - protected inMemDbService: InMemoryDbService, - config: InMemoryBackendConfigArgs = {} - ) { + constructor(protected inMemDbService: InMemoryDbService, config: InMemoryBackendConfigArgs = {}) { const loc = this.getLocation('/'); - this.config.host = loc.host; // default to app web server host + this.config.host = loc.host; // default to app web server host this.config.rootPath = loc.path; // default to path when app is served (e.g.'/') Object.assign(this.config, config); } @@ -96,15 +89,12 @@ export abstract class BackendService { } protected handleRequest_(req: RequestCore): Observable { - const url = req.urlWithParams ? req.urlWithParams : req.url; // Try override parser // If no override parser or it returns nothing, use default parser const parser = this.bind('parseRequestUrl'); - const parsed: ParsedRequestUrl = - ( parser && parser(url, this.requestInfoUtils)) || - this.parseRequestUrl(url); + const parsed: ParsedRequestUrl = (parser && parser(url, this.requestInfoUtils)) || this.parseRequestUrl(url); const collectionName = parsed.collectionName; const collection = this.db[collectionName]; @@ -137,7 +127,7 @@ export abstract class BackendService { const interceptorResponse = methodInterceptor(reqInfo); if (interceptorResponse) { return interceptorResponse; - }; + } } if (this.db[collectionName]) { @@ -151,11 +141,7 @@ export abstract class BackendService { } // 404 - can't handle this request - resOptions = this.createErrorResponseOptions( - url, - STATUS.NOT_FOUND, - `Collection '${collectionName}' not found` - ); + resOptions = this.createErrorResponseOptions(url, STATUS.NOT_FOUND, `Collection '${collectionName}' not found`); return this.createResponse$(() => resOptions); } @@ -174,14 +160,16 @@ export abstract class BackendService { */ protected applyQuery(collection: any[], query: Map): any[] { // extract filtering conditions - {propertyName, RegExps) - from query/search parameters - const conditions: { name: string, rx: RegExp }[] = []; + const conditions: { name: string; rx: RegExp }[] = []; const caseSensitive = this.config.caseSensitiveSearch ? undefined : 'i'; query.forEach((value: string[], name: string) => { value.forEach(v => conditions.push({ name, rx: new RegExp(decodeURI(v), caseSensitive) })); }); const len = conditions.length; - if (!len) { return collection; } + if (!len) { + return collection; + } // AND the RegExp conditions return collection.filter(row => { @@ -201,7 +189,7 @@ export abstract class BackendService { */ protected bind(methodName: string) { const fn = this.inMemDbService[methodName] as T; - return fn ? fn.bind(this.inMemDbService) : undefined; + return fn ? fn.bind(this.inMemDbService) : undefined; } protected bodify(data: any) { @@ -214,28 +202,28 @@ export abstract class BackendService { protected collectionHandler(reqInfo: RequestInfo): ResponseOptions { // const req = reqInfo.req; - let resOptions: ResponseOptions; - switch (reqInfo.method) { - case 'get': - resOptions = this.get(reqInfo); - break; - case 'post': - resOptions = this.post(reqInfo); - break; - case 'put': - resOptions = this.put(reqInfo); - break; - case 'delete': - resOptions = this.delete(reqInfo); - break; - default: - resOptions = this.createErrorResponseOptions(reqInfo.url, STATUS.METHOD_NOT_ALLOWED, 'Method not allowed'); - break; - } + let resOptions: ResponseOptions; + switch (reqInfo.method) { + case 'get': + resOptions = this.get(reqInfo); + break; + case 'post': + resOptions = this.post(reqInfo); + break; + case 'put': + resOptions = this.put(reqInfo); + break; + case 'delete': + resOptions = this.delete(reqInfo); + break; + default: + resOptions = this.createErrorResponseOptions(reqInfo.url, STATUS.METHOD_NOT_ALLOWED, 'Method not allowed'); + break; + } - // If `inMemDbService.responseInterceptor` exists, let it morph the response options - const interceptor = this.bind('responseInterceptor'); - return interceptor ? interceptor(resOptions, reqInfo) : resOptions; + // If `inMemDbService.responseInterceptor` exists, let it morph the response options + const interceptor = this.bind('responseInterceptor'); + return interceptor ? interceptor(resOptions, reqInfo) : resOptions; } /** @@ -266,16 +254,16 @@ export abstract class BackendService { switch (command) { case 'resetdb': resOptions.status = STATUS.NO_CONTENT; - return concatMap.call( - this.resetDb(reqInfo), - () => this.createResponse$(() => resOptions, false /* no latency delay */)); + return concatMap.call(this.resetDb(reqInfo), () => + this.createResponse$(() => resOptions, false /* no latency delay */) + ); case 'config': if (method === 'get') { resOptions.status = STATUS.OK; resOptions.body = this.clone(this.config); - // any other HTTP method is assumed to be a config update + // any other HTTP method is assumed to be a config update } else { const body = this.getJsonBody(reqInfo.req); Object.assign(this.config, body); @@ -309,7 +297,7 @@ export abstract class BackendService { * Create standard HTTP headers object from hash map of header strings * @param headers */ - protected abstract createHeaders(headers: {[index: string]: string}): HeadersCore; + protected abstract createHeaders(headers: { [index: string]: string }): HeadersCore; /** * create the function that passes unhandled requests through to the "real" backend. @@ -328,7 +316,7 @@ export abstract class BackendService { */ protected createResponse$(resOptionsFactory: () => ResponseOptions, withDelay = true): Observable { const resOptions$ = this.createResponseOptions$(resOptionsFactory); - let resp$ = this.createResponse$fromResponseOptions$(resOptions$); + const resp$ = this.createResponse$fromResponseOptions$(resOptions$); return withDelay ? this.addDelay(resp$) : resp$; } @@ -342,7 +330,6 @@ export abstract class BackendService { * @param resOptionsFactory - creates ResponseOptions when observable is subscribed */ protected createResponseOptions$(resOptionsFactory: () => ResponseOptions): Observable { - return new Observable((responseObserver: Observer) => { let resOptions: ResponseOptions; try { @@ -355,18 +342,20 @@ export abstract class BackendService { const status = resOptions.status; try { resOptions.statusText = getStatusText(status); - } catch (e) { /* ignore failure */} + } catch (e) { + /* ignore failure */ + } if (isSuccess(status)) { responseObserver.next(resOptions); responseObserver.complete(); } else { responseObserver.error(resOptions); } - return () => { }; // unsubscribe function + return () => {}; // unsubscribe function }); } - protected delete({ collection, collectionName, headers, id, url}: RequestInfo): ResponseOptions { + protected delete({ collection, collectionName, headers, id, url }: RequestInfo): ResponseOptions { // tslint:disable-next-line:triple-equals if (id == undefined) { return this.createErrorResponseOptions(url, STATUS.NOT_FOUND, `Missing "${collectionName}" id`); @@ -374,7 +363,7 @@ export abstract class BackendService { const exists = this.removeById(collection, id); return { headers: headers, - status: (exists || !this.config.delete404) ? STATUS.NO_CONTENT : STATUS.NOT_FOUND + status: exists || !this.config.delete404 ? STATUS.NO_CONTENT : STATUS.NOT_FOUND }; } @@ -398,7 +387,9 @@ export abstract class BackendService { if (genId) { const id = genId(collection, collectionName); // tslint:disable-next-line:triple-equals - if (id != undefined) { return id; } + if (id != undefined) { + return id; + } } return this.genIdDefault(collection, collectionName); } @@ -412,7 +403,8 @@ export abstract class BackendService { protected genIdDefault(collection: T[], collectionName: string): any { if (!this.isCollectionIdNumeric(collection, collectionName)) { throw new Error( - `Collection '${collectionName}' id type is non-numeric or unknown. Can only generate numeric ids.`); + `Collection '${collectionName}' id type is non-numeric or unknown. Can only generate numeric ids.` + ); } let maxId = 0; @@ -451,22 +443,20 @@ export abstract class BackendService { protected getLocation(url: string): UriInfo { if (!url.startsWith('http')) { // get the document iff running in browser - const doc: Document = (typeof document === 'undefined') ? undefined : document; + const doc: Document = typeof document === 'undefined' ? undefined : document; // add host info to url before parsing. Use a fake host when not in browser. const base = doc ? doc.location.protocol + '//' + doc.location.host : 'http://fake'; url = url.startsWith('/') ? base + url : base + '/' + url; } return parseUri(url); - }; + } /** * get or create the function that passes unhandled requests * through to the "real" backend. */ protected getPassThruBackend(): PassThruBackend { - return this.passThruBackend ? - this.passThruBackend : - this.passThruBackend = this.createPassThruBackend(); + return this.passThruBackend ? this.passThruBackend : (this.passThruBackend = this.createPassThruBackend()); } /** @@ -483,7 +473,7 @@ export abstract class BackendService { getJsonBody: this.getJsonBody.bind(this), getLocation: this.getLocation.bind(this), getPassThruBackend: this.getPassThruBackend.bind(this), - parseRequestUrl: this.parseRequestUrl.bind(this), + parseRequestUrl: this.parseRequestUrl.bind(this) }; } @@ -578,7 +568,6 @@ export abstract class BackendService { const query = this.createQueryMap(loc.query); const resourceUrl = urlRoot + apiBase + collectionName + '/'; return { apiBase, collectionName, id, query, resourceUrl }; - } catch (err) { const msg = `unable to parse url '${url}'; original error: ${err.message}`; throw new Error(msg); @@ -600,8 +589,11 @@ export abstract class BackendService { return this.createErrorResponseOptions(url, STATUS.UNPROCESSABLE_ENTRY, emsg); } else { console.error(err); - return this.createErrorResponseOptions(url, STATUS.INTERNAL_SERVER_ERROR, - `Failed to generate new id for '${collectionName}'`); + return this.createErrorResponseOptions( + url, + STATUS.INTERNAL_SERVER_ERROR, + `Failed to generate new id for '${collectionName}'` + ); } } } @@ -619,13 +611,16 @@ export abstract class BackendService { headers.set('Location', resourceUrl + '/' + id); return { headers, body, status: STATUS.CREATED }; } else if (this.config.post409) { - return this.createErrorResponseOptions(url, STATUS.CONFLICT, - `'${collectionName}' item with id='${id} exists and may not be updated with POST; use PUT instead.`); + return this.createErrorResponseOptions( + url, + STATUS.CONFLICT, + `'${collectionName}' item with id='${id} exists and may not be updated with POST; use PUT instead.` + ); } else { collection[existingIx] = item; - return this.config.post204 ? - { headers, status: STATUS.NO_CONTENT } : // successful; no content - { headers, body, status: STATUS.OK }; // successful; return entity + return this.config.post204 + ? { headers, status: STATUS.NO_CONTENT } // successful; no content + : { headers, body, status: STATUS.OK }; // successful; return entity } } @@ -638,8 +633,11 @@ export abstract class BackendService { return this.createErrorResponseOptions(url, STATUS.NOT_FOUND, `Missing '${collectionName}' id`); } if (id && id !== item.id) { - return this.createErrorResponseOptions(url, STATUS.BAD_REQUEST, - `Request for '${collectionName}' id does not match item.id`); + return this.createErrorResponseOptions( + url, + STATUS.BAD_REQUEST, + `Request for '${collectionName}' id does not match item.id` + ); } else { id = item.id; } @@ -648,13 +646,16 @@ export abstract class BackendService { if (existingIx > -1) { collection[existingIx] = item; - return this.config.put204 ? - { headers, status: STATUS.NO_CONTENT } : // successful; no content - { headers, body, status: STATUS.OK }; // successful; return entity + return this.config.put204 + ? { headers, status: STATUS.NO_CONTENT } // successful; no content + : { headers, body, status: STATUS.OK }; // successful; return entity } else if (this.config.put404) { // item to update not found; use POST to create new item for this id. - return this.createErrorResponseOptions(url, STATUS.NOT_FOUND, - `'${collectionName}' item with id='${id} not found and may not be created with PUT; use POST instead.`); + return this.createErrorResponseOptions( + url, + STATUS.NOT_FOUND, + `'${collectionName}' item with id='${id} not found and may not be created with PUT; use POST instead.` + ); } else { // create new item for id not found collection.push(item); @@ -678,18 +679,11 @@ export abstract class BackendService { protected resetDb(reqInfo?: RequestInfo): Observable { this.dbReadySubject.next(false); const db = this.inMemDbService.createDb(reqInfo); - const db$ = db instanceof Observable ? db : - isPromise(db) ? fromPromise(db) : - of(db); + const db$ = db instanceof Observable ? db : isPromise(db) ? fromPromise(db) : of(db); first.call(db$).subscribe((d: {}) => { this.db = d; this.dbReadySubject.next(true); }); return this.dbReady; } - - // private isPromise(value: any): value is PromiseLike { - // return value && typeof (value).subscribe !== 'function' && typeof (value as any).then === 'function'; - // } - } diff --git a/src/delay-response.ts b/src/delay-response.ts old mode 100644 new mode 100755 index 06ed1f6..c68df7d --- a/src/delay-response.ts +++ b/src/delay-response.ts @@ -8,8 +8,8 @@ export function delayResponse(response$: Observable, delayMs: number): Obs let nextPending = false; const subscription = response$.subscribe( value => { - nextPending = true; - setTimeout(() => { + nextPending = true; + setTimeout(() => { observer.next(value); if (completePending) { observer.complete(); diff --git a/src/testing/index.ts b/src/failure.ts similarity index 100% rename from src/testing/index.ts rename to src/failure.ts diff --git a/src/http-backend.service.spec.ts b/src/http-backend.service.spec.ts new file mode 100755 index 0000000..2760d25 --- /dev/null +++ b/src/http-backend.service.spec.ts @@ -0,0 +1,558 @@ +import { async, TestBed } from '@angular/core/testing'; +import { HttpModule, Http, XHRBackend } from '@angular/http'; + +import { zip } from 'rxjs/observable/zip'; + +import 'rxjs/add/operator/concatMap'; +import 'rxjs/add/operator/map'; +import 'rxjs/add/operator/zip'; + +import { failure } from './failure'; + +import { HttpBackendService } from './http-backend.service'; +import { HttpInMemoryWebApiModule } from './http-in-memory-web-api.module'; + +import { Hero } from '../integration/app/hero/hero'; +import { HeroService } from '../integration/app/hero/hero.service'; +import { HttpHeroService } from '../integration/app/hero/http-hero.service'; + +import { HeroInMemDataService } from '../integration/app/hero/hero-in-mem-data.service'; +import { HeroInMemDataOverrideService } from '../integration/app/hero/hero-in-mem-data-override.service'; +import { HeroServiceCoreSpec } from '../integration/app/hero/hero.service.spec'; + +describe('Http Backend Service', () => { + const delay = 1; // some minimal simulated latency delay + + describe('raw Angular Http', () => { + let http: Http; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [HttpModule, HttpInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay })] + }); + + http = TestBed.get(Http); + }); + + it( + 'can get heroes', + async(() => { + http + .get('api/heroes') + .map(res => res.json() as Hero[]) + .subscribe(heroes => { + // console.log(heroes); + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }, failure); + }) + ); + + it( + 'GET should be a "cold" observable', + async(() => { + const httpBackend = TestBed.get(XHRBackend); + + const spy = spyOn(httpBackend, 'collectionHandler').and.callThrough(); + + const get$ = http.get('api/heroes'); + + // spy on `collectionHandler` should not be called before subscribe + expect(spy).not.toHaveBeenCalled(); + + get$.map(res => res.json() as Hero[]).subscribe(heroes => { + expect(spy).toHaveBeenCalled(); + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }, failure); + }) + ); + + it( + 'GET should wait until after delay to respond', + async(() => { + // to make test fail, set `delay=0` above + let gotResponse = false; + + http + .get('api/heroes') + .map(res => res.json() as Hero[]) + .subscribe(heroes => { + gotResponse = true; + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }, failure); + + expect(gotResponse).toBe(false, 'should delay before response'); + }) + ); + + it( + 'can get heroes (w/ a different base path)', + async(() => { + http + .get('some-base-path/heroes') + .map(res => res.json() as Hero[]) + .subscribe(heroes => { + // console.log(heroes); + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }, failure); + }) + ); + + it( + 'should 404 when GET unknown collection (after delay)', + async(() => { + let gotError = false; + const url = 'api/unknown-collection'; + http.get(url).subscribe( + _ => { + console.log(_); + fail(`should not have found data for '${url}'`); + }, + err => { + gotError = true; + expect(err.status).toBe(404, 'should have 404 status'); + } + ); + + expect(gotError).toBe(false, 'should not get error until after delay'); + }) + ); + + it( + 'should return the hero w/id=1 for GET app/heroes/1', + async(() => { + http + .get('api/heroes/1') + .map(res => res.json() as Hero) + .subscribe(hero => { + expect(hero).toBeDefined('should find hero with id=1'); + }, failure); + }) + ); + + // test where id is string that looks like a number + it( + 'should return the stringer w/id="10" for GET app/stringers/10', + async(() => { + http + .get('api/stringers/10') + .map(res => res.json() as { id: string; name: string }) + .subscribe(hero => { + expect(hero).toBeDefined('should find string with id="10"'); + }, failure); + }) + ); + + it( + 'should return 1-item array for GET app/heroes/?id=1', + async(() => { + http + .get('api/heroes/?id=1') + .map(res => res.json() as Hero[]) + .subscribe(heroes => { + expect(heroes.length).toBe(1, 'should find one hero w/id=1'); + }, failure); + }) + ); + + it( + 'should return 1-item array for GET app/heroes?id=1', + async(() => { + http + .get('api/heroes?id=1') + .map(res => res.json() as Hero[]) + .subscribe(heroes => { + expect(heroes.length).toBe(1, 'should find one hero w/id=1'); + }, failure); + }) + ); + + it( + 'should return undefined for GET app/heroes?id=not-found-id', + async(() => { + http + .get('api/heroes?id=123456') + .map(res => res.json() as Hero[]) + .subscribe(heroes => { + expect(heroes.length).toBe(0); + }, failure); + }) + ); + + it( + 'should return 404 for GET app/heroes/not-found-id', + async(() => { + const url = 'api/heroes/123456'; + http.get(url).subscribe( + _ => { + console.log(_); + fail(`should not have found data for '${url}'`); + }, + err => { + expect(err.status).toBe(404, 'should have 404 status'); + } + ); + }) + ); + + it( + 'can generate the id when add a hero with no id', + async(() => { + const hero = new Hero(null, 'SuperDooper'); + http + .post('api/heroes', hero) + .map(res => res.json()) + .subscribe(replyHero => { + expect(replyHero.id).toBeTruthy('added hero should have an id'); + expect(replyHero).not.toBe(hero, 'reply hero should not be the request hero'); + }, failure); + }) + ); + + it( + 'can get nobodies (empty collection)', + async(() => { + http + .get('api/nobodies') + .map(res => res.json()) + .subscribe(nobodies => { + expect(nobodies.length).toBe(0, 'should have no nobodies'); + }, failure); + }) + ); + + it( + 'can add a nobody with an id to empty nobodies collection', + async(() => { + const id = 'g-u-i-d'; + + http + .post('api/nobodies', { id, name: 'Noman' }) + .concatMap(() => http.get('api/nobodies')) + .map(res => res.json()) + .subscribe(nobodies => { + expect(nobodies.length).toBe(1, 'should a nobody'); + expect(nobodies[0].name).toBe('Noman', 'should be "Noman"'); + expect(nobodies[0].id).toBe(id, 'should preserve the submitted, ' + id); + }, failure); + }) + ); + + it( + 'should fail when add a nobody without an id to empty nobodies collection', + async(() => { + http.post('api/nobodies', { name: 'Noman' }).subscribe( + _ => { + console.log(_); + fail(`should not have been able to add 'Norman' to 'nobodies'`); + }, + err => { + expect(err.status).toBe(422, 'should have 422 status'); + expect(err.body.error).toContain('id type is non-numeric'); + } + ); + }) + ); + + it('can reset the database to empty (object db)', async(() => resetDatabaseTest('object'))); + + it('can reset the database to empty (observable db)', async(() => resetDatabaseTest('observable'))); + + it('can reset the database to empty (promise db)', async(() => resetDatabaseTest('promise'))); + + function resetDatabaseTest(returnType: string) { + // Observable of the number of heroes and nobodies + const sizes$ = zip(http.get('api/heroes'), http.get('api/nobodies'), http.get('api/stringers'), (h, n, s) => ({ + heroes: h.json().length as number, + nobodies: n.json().length as number, + stringers: n.json().length as number + })); + + // Add a nobody so that we have one + http + .post('api/nobodies', { id: 42, name: 'Noman' }) + // Reset database with "clear" option + .concatMap(() => http.post('commands/resetDb', { clear: true })) + // get the number of heroes and nobodies + .concatMap(() => sizes$) + .subscribe(sizes => { + expect(sizes.heroes).toBe(0, 'reset should have cleared the heroes'); + expect(sizes.nobodies).toBe(0, 'reset should have cleared the nobodies'); + expect(sizes.stringers).toBe(0, 'reset should have cleared the stringers'); + }, failure); + } + }); + + //////////////// + describe('raw Angular Http w/ override service', () => { + let http: Http; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [HttpModule, HttpInMemoryWebApiModule.forRoot(HeroInMemDataOverrideService, { delay })] + }); + + http = TestBed.get(Http); + }); + + it( + 'can get heroes', + async(() => { + http + .get('api/heroes') + .map(res => res.json() as Hero[]) + .subscribe(heroes => { + // console.log(heroes); + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }, failure); + }) + ); + + it( + 'can translate `foo/heroes` to `heroes` via `parsedRequestUrl` override', + async(() => { + http + .get('api/foo/heroes') + .map(res => res.json() as Hero[]) + .subscribe(heroes => { + // console.log(heroes); + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }, failure); + }) + ); + + it( + 'can get villains', + async(() => { + http + .get('api/villains') + .map(res => res.json() as Hero[]) + .subscribe(villains => { + // console.log(villains); + expect(villains.length).toBeGreaterThan(0, 'should have villains'); + }, failure); + }) + ); + + it( + 'should 404 when POST to villains', + async(() => { + const url = 'api/villains'; + http.post(url, { id: 42, name: 'Dr. Evil' }).subscribe( + _ => { + console.log(_); + fail(`should not have POSTed data for '${url}'`); + }, + err => { + expect(err.status).toBe(404, 'should have 404 status'); + } + ); + }) + ); + + it( + 'should 404 when GET unknown collection', + async(() => { + const url = 'api/unknown-collection'; + http.get(url).subscribe( + _ => { + console.log(_); + fail(`should not have found data for '${url}'`); + }, + err => { + expect(err.status).toBe(404, 'should have 404 status'); + } + ); + }) + ); + + it( + 'should use genId override to add new hero, "Maxinius"', + async(() => { + http + .post('api/heroes', { name: 'Maxinius' }) + .concatMap(() => http.get('api/heroes?name=Maxi')) + .map(res => res.json()) + .subscribe(heroes => { + expect(heroes.length).toBe(1, 'should have found "Maxinius"'); + expect(heroes[0].name).toBe('Maxinius'); + expect(heroes[0].id).toBeGreaterThan(1000); + }, failure); + }) + ); + + it( + 'should use genId override guid generator for a new nobody without an id', + async(() => { + http + .post('api/nobodies', { name: 'Noman' }) + .concatMap(() => http.get('api/nobodies')) + .map(res => res.json()) + .subscribe(nobodies => { + expect(nobodies.length).toBe(1, 'should a nobody'); + expect(nobodies[0].name).toBe('Noman', 'should be "Noman"'); + expect(typeof nobodies[0].id).toBe('string', 'should create a string (guid) id'); + }, failure); + }) + ); + + it('can reset the database to empty (object db)', async(() => resetDatabaseTest('object'))); + + it('can reset the database to empty (observable db)', async(() => resetDatabaseTest('observable'))); + + it('can reset the database to empty (promise db)', async(() => resetDatabaseTest('promise'))); + + function resetDatabaseTest(returnType: string) { + // Observable of the number of heroes, nobodies and villains + const sizes$ = zip( + http.get('api/heroes'), + http.get('api/nobodies'), + http.get('api/stringers'), + http.get('api/villains'), + (h, n, s, v) => ({ + heroes: h.json().length as number, + nobodies: n.json().length as number, + stringers: s.json().length as number, + villains: v.json().length as number + }) + ); + + // Add a nobody so that we have one + http + .post('api/nobodies', { id: 42, name: 'Noman' }) + // Reset database with "clear" option + .concatMap(() => http.post('commands/resetDb', { clear: true })) + // count all the collections + .concatMap(() => sizes$) + .subscribe(sizes => { + expect(sizes.heroes).toBe(0, 'reset should have cleared the heroes'); + expect(sizes.nobodies).toBe(0, 'reset should have cleared the nobodies'); + expect(sizes.stringers).toBe(0, 'reset should have cleared the stringers'); + expect(sizes.villains).toBeGreaterThan(0, 'reset should NOT clear villains'); + }, failure); + } + }); + + //////////////// + + describe('Http HeroService', () => { + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [HttpModule, HttpInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay })], + providers: [{ provide: HeroService, useClass: HttpHeroService }] + }); + }); + + new HeroServiceCoreSpec().run(); + }); + + //////////////// + describe('Http passThru', () => { + let http: Http; + let httpBackend: HttpBackendService; + let createPassThruBackend: jasmine.Spy; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [ + HttpModule, + HttpInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay, passThruUnknownUrl: true }) + ] + }); + + http = TestBed.get(Http); + httpBackend = TestBed.get(XHRBackend); + createPassThruBackend = spyOn(httpBackend, 'createPassThruBackend').and.callThrough(); + }); + + beforeEach(function() { + jasmine.Ajax.install(); + }); + + afterEach(function() { + jasmine.Ajax.uninstall(); + }); + + it( + 'can get heroes (no passthru)', + async(() => { + http + .get('api/heroes') + .map(res => res.json() as Hero[]) + .subscribe(heroes => { + expect(createPassThruBackend).not.toHaveBeenCalled(); + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }, failure); + }) + ); + + // `passthru` is NOT a collection in the data store + // so requests for it should pass thru to the "real" server + + it( + 'can GET passthru', + async(() => { + jasmine.Ajax.stubRequest('api/passthru').andReturn({ + status: 200, + contentType: 'application/json', + response: JSON.stringify([{ id: 42, name: 'Dude' }]) + }); + + http + .get('api/passthru') + .map(res => res.json() as any[]) + .subscribe(passthru => { + console.log('GET passthru data', passthru); + expect(passthru.length).toBeGreaterThan(0, 'should have passthru data'); + }, failure); + }) + ); + + it( + 'can ADD to passthru', + async(() => { + jasmine.Ajax.stubRequest('api/passthru').andReturn({ + status: 200, + contentType: 'application/json', + response: JSON.stringify({ id: 42, name: 'Dude' }) + }); + + http + .post('api/passthru', { name: 'Dude' }) + .map(res => res.json() as any) + .subscribe(passthru => { + console.log('POST passthru data', passthru); + expect(passthru).toBeDefined('should have passthru data'); + expect(passthru.id).toBe(42, 'passthru object should have id 42'); + }, failure); + }) + ); + }); + + //////////////// + describe('Http dataEncapsulation = true', () => { + let http: Http; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [ + HttpModule, + HttpInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay, dataEncapsulation: true }) + ] + }); + + http = TestBed.get(Http); + }); + + it( + 'can get heroes (encapsulated)', + async(() => { + http + .get('api/heroes') + .map(res => res.json().data as Hero[]) // unwrap data object + .subscribe(heroes => { + expect(heroes.length).toBeGreaterThan(0, 'should have data.heroes'); + }, failure); + }) + ); + }); +}); diff --git a/src/http-backend.service.ts b/src/http-backend.service.ts new file mode 100755 index 0000000..34d775b --- /dev/null +++ b/src/http-backend.service.ts @@ -0,0 +1,129 @@ +import { Inject, Injectable, Injector, Optional } from '@angular/core'; + +import { + BrowserXhr, + Connection, + ConnectionBackend, + Headers, + ReadyState, + Request, + RequestMethod, + Response, + ResponseOptions as HttpResponseOptions, + ResponseOptionsArgs, + URLSearchParams, + XHRBackend, + XSRFStrategy +} from '@angular/http'; + +import { Observable } from 'rxjs/Observable'; +import { map } from 'rxjs/operator/map'; + +import { STATUS } from './http-status-codes'; + +import { InMemoryBackendConfig, InMemoryBackendConfigArgs, InMemoryDbService, ResponseOptions } from './interfaces'; + +import { BackendService } from './backend.service'; + +/** + * For Angular `Http` simulate the behavior of a RESTy web api + * backed by the simple in-memory data store provided by the injected `InMemoryDbService`. + * Conforms mostly to behavior described here: + * http://www.restapitutorial.com/lessons/httpmethods.html + * + * ### Usage + * + * Create an in-memory data store class that implements `InMemoryDbService`. + * Call `forRoot` static method with this service class and optional configuration object: + * ``` + * // other imports + * import { HttpModule } from '@angular/http'; + * import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api'; + * + * import { InMemHeroService, inMemConfig } from '../api/in-memory-hero.service'; + * @NgModule({ + * imports: [ + * HttpModule, + * HttpClientInMemoryWebApiModule.forRoot(InMemHeroService, inMemConfig), + * ... + * ], + * ... + * }) + * export class AppModule { ... } + * ``` + */ +@Injectable() +export class HttpBackendService extends BackendService implements ConnectionBackend { + constructor( + private injector: Injector, + inMemDbService: InMemoryDbService, + @Inject(InMemoryBackendConfig) + @Optional() + config: InMemoryBackendConfigArgs + ) { + super(inMemDbService, config); + } + + createConnection(req: Request): Connection { + let response: Observable; + try { + response = this.handleRequest(req); + } catch (error) { + const err = error.message || error; + const resOptions = this.createErrorResponseOptions(req.url, STATUS.INTERNAL_SERVER_ERROR, `${err}`); + response = this.createResponse$(() => resOptions); + } + + return { + readyState: ReadyState.Done, + request: req, + response + }; + } + + //// protected overrides ///// + + protected getJsonBody(req: Request): any { + try { + return req.json(); + } catch (e) { + const msg = `'${req.url}' request body-to-json error\n${JSON.stringify(e)}`; + throw new Error(msg); + } + } + + protected getRequestMethod(req: Request): string { + return RequestMethod[req.method || 0].toLowerCase(); + } + + protected createHeaders(headers: { [index: string]: string }): Headers { + return new Headers(headers); + } + + protected createQueryMap(search: string): Map { + return search ? new URLSearchParams(search).paramsMap : new Map(); + } + + protected createResponse$fromResponseOptions$(resOptions$: Observable): Observable { + return map.call(resOptions$, (opts: ResponseOptionsArgs) => { + return new Response(new HttpResponseOptions(opts)); + }); + } + + protected createPassThruBackend() { + try { + // copied from @angular/http/backends/xhr_backend + const browserXhr = this.injector.get(BrowserXhr); + const baseResponseOptions = this.injector.get(HttpResponseOptions); + const xsrfStrategy = this.injector.get(XSRFStrategy); + const xhrBackend = new XHRBackend(browserXhr, baseResponseOptions, xsrfStrategy); + + return { + handle: (req: Request) => xhrBackend.createConnection(req).response + }; + } catch (e) { + e.message = 'Cannot create passThru404 backend; ' + (e.message || ''); + throw e; + } + } +} diff --git a/src/http-client-backend.service.spec.ts b/src/http-client-backend.service.spec.ts old mode 100644 new mode 100755 index 594e170..523288d --- a/src/http-client-backend.service.spec.ts +++ b/src/http-client-backend.service.spec.ts @@ -4,7 +4,8 @@ import { HttpClientModule, HttpClient } from '@angular/common/http'; import { HttpBackend, - HttpEvent, HttpEventType, + HttpEvent, + HttpEventType, HttpHandler, HttpInterceptor, HTTP_INTERCEPTORS, @@ -19,20 +20,23 @@ import 'rxjs/add/operator/concatMap'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/zip'; -import { failure } from '../testing'; +import { failure } from './failure'; import { HttpClientBackendService } from './http-client-backend.service'; import { HttpClientInMemoryWebApiModule } from './http-client-in-memory-web-api.module'; -import { Hero } from '../app/hero'; -import { HeroService } from '../app/hero.service'; -import { HttpClientHeroService } from '../app/http-client-hero.service'; +import { Hero } from '../integration/app/hero/hero'; +import { HeroService } from '../integration/app/hero/hero.service'; +import { HttpClientHeroService } from '../integration/app/hero/http-client-hero.service'; -import { HeroInMemDataService } from '../app/hero-in-mem-data.service'; -import { HeroInMemDataOverrideService } from '../app/hero-in-mem-data-override.service'; -import { HeroServiceCoreSpec } from '../app/hero.service.spec'; +import { HeroInMemDataService } from '../integration/app/hero/hero-in-mem-data.service'; +import { HeroInMemDataOverrideService } from '../integration/app/hero/hero-in-mem-data-override.service'; +import { HeroServiceCoreSpec } from '../integration/app/hero/hero.service.spec'; -class Nobody { id: string; name: string; } +class Nobody { + id: string; + name: string; +} /** * Test interceptor adds a request header and a response header @@ -40,248 +44,242 @@ class Nobody { id: string; name: string; } @Injectable() export class TestHeaderInterceptor implements HttpInterceptor { intercept(req: HttpRequest, next: HttpHandler): Observable> { + const reqClone = req.clone({ setHeaders: { 'x-test-req': 'req-test-header' } }); - const reqClone = req.clone({setHeaders: {'x-test-req': 'req-test-header'}}); - - return next.handle(reqClone) - .map(event => { - if (event instanceof HttpResponse) { - event = event.clone({ - headers: event.headers.set('x-test-res', 'res-test-header') - }); - } - return event; - }); + return next.handle(reqClone).map(event => { + if (event instanceof HttpResponse) { + event = event.clone({ + headers: event.headers.set('x-test-res', 'res-test-header') + }); + } + return event; + }); } } -type Data = { data: any } +type Data = { data: any }; describe('HttpClient Backend Service', () => { - const delay = 1; // some minimal simulated latency delay describe('raw Angular HttpClient', () => { - let http: HttpClient; beforeEach(() => { TestBed.configureTestingModule({ - imports: [ - HttpClientModule, - HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay }) - ] + imports: [HttpClientModule, HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay })] }); http = TestBed.get(HttpClient); }); - it('can get heroes', async(() => { - http.get('api/heroes') - .subscribe( - heroes => { + it( + 'can get heroes', + async(() => { + http.get('api/heroes').subscribe(heroes => { // console.log(heroes); expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); + }, failure); + }) + ); - it('GET should be a "cold" observable', async(() => { - const httpBackend = TestBed.get(HttpBackend); + it( + 'GET should be a "cold" observable', + async(() => { + const httpBackend = TestBed.get(HttpBackend); - const spy = spyOn(httpBackend, 'collectionHandler').and.callThrough(); + const spy = spyOn(httpBackend, 'collectionHandler').and.callThrough(); - const get$ = http.get('api/heroes'); + const get$ = http.get('api/heroes'); - // spy on `collectionHandler` should not be called before subscribe - expect(spy).not.toHaveBeenCalled(); + // spy on `collectionHandler` should not be called before subscribe + expect(spy).not.toHaveBeenCalled(); - get$.subscribe( - heroes => { + get$.subscribe(heroes => { expect(spy).toHaveBeenCalled(); expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); + }, failure); + }) + ); - it('GET should wait until after delay to respond', async(() => { - // to make test fail, set `delay=0` above - let gotResponse = false; + it( + 'GET should wait until after delay to respond', + async(() => { + // to make test fail, set `delay=0` above + let gotResponse = false; - http.get('api/heroes').subscribe( - heroes => { + http.get('api/heroes').subscribe(heroes => { gotResponse = true; expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - - expect(gotResponse).toBe(false, 'should delay before response'); - })); - - it('Should only initialize the db once', async(() => { - const httpBackend = TestBed.get(HttpBackend); - - const spy = spyOn(httpBackend, 'resetDb').and.callThrough(); - - // Simultaneous backend.handler calls - // Only the first should initialize by calling `resetDb` - // All should wait until the db is "ready" - // then they share the same db instance. - http.get('api/heroes').subscribe(); - http.get('api/heroes').subscribe(); - http.get('api/heroes').subscribe(); - http.get('api/heroes').subscribe(); - - expect(spy.calls.count()).toBe(1); - })); - - it('can get heroes (w/ a different base path)', async(() => { - http.get('some-base-path/heroes') - .subscribe( - heroes => { + }, failure); + + expect(gotResponse).toBe(false, 'should delay before response'); + }) + ); + + it( + 'Should only initialize the db once', + async(() => { + const httpBackend = TestBed.get(HttpBackend); + + const spy = spyOn(httpBackend, 'resetDb').and.callThrough(); + + // Simultaneous backend.handler calls + // Only the first should initialize by calling `resetDb` + // All should wait until the db is "ready" + // then they share the same db instance. + http.get('api/heroes').subscribe(); + http.get('api/heroes').subscribe(); + http.get('api/heroes').subscribe(); + http.get('api/heroes').subscribe(); + + expect(spy.calls.count()).toBe(1); + }) + ); + + it( + 'can get heroes (w/ a different base path)', + async(() => { + http.get('some-base-path/heroes').subscribe(heroes => { // console.log(heroes); expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); - - it('should 404 when GET unknown collection (after delay)', async(() => { - let gotError = false; - const url = 'api/unknown-collection'; - http.get(url).subscribe( - _ => { - console.log(_); - fail(`should not have found data for '${url}'`); - }, - err => { - gotError = true; - expect(err.status).toBe(404, 'should have 404 status'); - } - ); + }, failure); + }) + ); + + it( + 'should 404 when GET unknown collection (after delay)', + async(() => { + let gotError = false; + const url = 'api/unknown-collection'; + http.get(url).subscribe( + _ => { + console.log(_); + fail(`should not have found data for '${url}'`); + }, + err => { + gotError = true; + expect(err.status).toBe(404, 'should have 404 status'); + } + ); - expect(gotError).toBe(false, 'should not get error until after delay'); - })); + expect(gotError).toBe(false, 'should not get error until after delay'); + }) + ); - it('should return the hero w/id=1 for GET app/heroes/1', async(() => { - http.get('api/heroes/1') - .subscribe( - hero => { + it( + 'should return the hero w/id=1 for GET app/heroes/1', + async(() => { + http.get('api/heroes/1').subscribe(hero => { expect(hero).toBeDefined('should find hero with id=1'); - }, - failure - ); - })); + }, failure); + }) + ); // test where id is string that looks like a number - it('should return the stringer w/id="10" for GET app/stringers/10', async(() => { - http.get('api/stringers/10') - .subscribe( - hero => { + it( + 'should return the stringer w/id="10" for GET app/stringers/10', + async(() => { + http.get('api/stringers/10').subscribe(hero => { expect(hero).toBeDefined('should find string with id="10"'); - }, - failure - ); - })); - - it('should return 1-item array for GET app/heroes/?id=1', async(() => { - http.get('api/heroes/?id=1') - .subscribe( - heroes => { + }, failure); + }) + ); + + it( + 'should return 1-item array for GET app/heroes/?id=1', + async(() => { + http.get('api/heroes/?id=1').subscribe(heroes => { expect(heroes.length).toBe(1, 'should find one hero w/id=1'); - }, - failure - ); - })); - - it('should return 1-item array for GET app/heroes?id=1', async(() => { - http.get('api/heroes?id=1') - .subscribe( - heroes => { + }, failure); + }) + ); + + it( + 'should return 1-item array for GET app/heroes?id=1', + async(() => { + http.get('api/heroes?id=1').subscribe(heroes => { expect(heroes.length).toBe(1, 'should find one hero w/id=1'); - }, - failure - ); - })); - - it('should return undefined for GET app/heroes?id=not-found-id', async(() => { - http.get('api/heroes?id=123456') - .subscribe( - heroes => { + }, failure); + }) + ); + + it( + 'should return undefined for GET app/heroes?id=not-found-id', + async(() => { + http.get('api/heroes?id=123456').subscribe(heroes => { expect(heroes.length).toBe(0); - }, - failure - ); - })); - - it('should return 404 for GET app/heroes/not-found-id', async(() => { - const url = 'api/heroes/123456'; - http.get(url) - .subscribe( - _ => { - console.log(_); - fail(`should not have found data for '${url}'`); - }, - err => { - expect(err.status).toBe(404, 'should have 404 status'); - } - ); - })); - - it('can generate the id when add a hero with no id', async(() => { - const hero = new Hero(null, 'SuperDooper'); - http.post('api/heroes', hero) - .subscribe( - replyHero => { - expect(replyHero.id).toBeTruthy('added hero should have an id'); - expect(replyHero).not.toBe(hero, - 'reply hero should not be the request hero'); + }, failure); + }) + ); + + it( + 'should return 404 for GET app/heroes/not-found-id', + async(() => { + const url = 'api/heroes/123456'; + http.get(url).subscribe( + _ => { + console.log(_); + fail(`should not have found data for '${url}'`); }, - failure + err => { + expect(err.status).toBe(404, 'should have 404 status'); + } ); - })); - - it('can get nobodies (empty collection)', async(() => { - http.get('api/nobodies') - .subscribe( - nobodies => { + }) + ); + + it( + 'can generate the id when add a hero with no id', + async(() => { + const hero = new Hero(null, 'SuperDooper'); + http.post('api/heroes', hero).subscribe(replyHero => { + expect(replyHero.id).toBeTruthy('added hero should have an id'); + expect(replyHero).not.toBe(hero, 'reply hero should not be the request hero'); + }, failure); + }) + ); + + it( + 'can get nobodies (empty collection)', + async(() => { + http.get('api/nobodies').subscribe(nobodies => { expect(nobodies.length).toBe(0, 'should have no nobodies'); - }, - failure - ); - })); - - it('can add a nobody with an id to empty nobodies collection', async(() => { - - const id = 'g-u-i-d'; - - http.post('api/nobodies', { id, name: 'Noman' }) - .concatMap(() => http.get('api/nobodies')) - .subscribe( - nobodies => { + }, failure); + }) + ); + + it( + 'can add a nobody with an id to empty nobodies collection', + async(() => { + const id = 'g-u-i-d'; + + http + .post('api/nobodies', { id, name: 'Noman' }) + .concatMap(() => http.get('api/nobodies')) + .subscribe(nobodies => { expect(nobodies.length).toBe(1, 'should a nobody'); expect(nobodies[0].name).toBe('Noman', 'should be "Noman"'); expect(nobodies[0].id).toBe(id, 'should preserve the submitted, ' + id); + }, failure); + }) + ); + + it( + 'should fail when add a nobody without an id to empty nobodies collection', + async(() => { + http.post('api/nobodies', { name: 'Noman' }).subscribe( + _ => { + console.log(_); + fail(`should not have been able to add 'Norman' to 'nobodies'`); }, - failure + err => { + expect(err.status).toBe(422, 'should have 422 status'); + expect(err.body.error).toContain('id type is non-numeric'); + } ); - })); - - it('should fail when add a nobody without an id to empty nobodies collection', async(() => { - http.post('api/nobodies', { name: 'Noman' }) - .subscribe( - _ => { - console.log(_); - fail(`should not have been able to add 'Norman' to 'nobodies'`); - }, - err => { - expect(err.status).toBe(422, 'should have 422 status'); - expect(err.body.error).toContain('id type is non-numeric'); - }); - })); + }) + ); it('can reset the database to empty (object db)', async(() => resetDatabaseTest('object'))); @@ -296,132 +294,129 @@ describe('HttpClient Backend Service', () => { http.get('api/nobodies'), http.get('api/stringers'), (h, n, s) => ({ - heroes: h.length as number, - nobodies: n.length as number, + heroes: h.length as number, + nobodies: n.length as number, stringers: s.length as number - })); + }) + ); // Add a nobody so that we have one - http.post('api/nobodies', { id: 42, name: 'Noman' }) - // Reset database with "clear" option - .concatMap(() => http.post('commands/resetDb', - { clear: true, returnType })) - // get the number of heroes and nobodies - .concatMap(() => sizes$) - .subscribe( - sizes => { + http + .post('api/nobodies', { id: 42, name: 'Noman' }) + // Reset database with "clear" option + .concatMap(() => http.post('commands/resetDb', { clear: true, returnType })) + // get the number of heroes and nobodies + .concatMap(() => sizes$) + .subscribe(sizes => { expect(sizes.heroes).toBe(0, 'reset should have cleared the heroes'); expect(sizes.nobodies).toBe(0, 'reset should have cleared the nobodies'); expect(sizes.stringers).toBe(0, 'reset should have cleared the stringers'); - }, - failure - ); + }, failure); } }); //////////////// describe('raw Angular HttpClient w/ override service', () => { - let http: HttpClient; beforeEach(() => { TestBed.configureTestingModule({ - imports: [ - HttpClientModule, - HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataOverrideService, { delay }) - ] + imports: [HttpClientModule, HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataOverrideService, { delay })] }); http = TestBed.get(HttpClient); }); - it('can get heroes', async(() => { - http.get('api/heroes') - .subscribe( - heroes => { + it( + 'can get heroes', + async(() => { + http.get('api/heroes').subscribe(heroes => { // console.log(heroes); expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); - - it('can translate `foo/heroes` to `heroes` via `parsedRequestUrl` override', async(() => { - http.get('api/foo/heroes') - .subscribe( - heroes => { + }, failure); + }) + ); + + it( + 'can translate `foo/heroes` to `heroes` via `parsedRequestUrl` override', + async(() => { + http.get('api/foo/heroes').subscribe(heroes => { // console.log(heroes); expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); - - it('can get villains', async(() => { - http.get('api/villains') - .subscribe( - villains => { + }, failure); + }) + ); + + it( + 'can get villains', + async(() => { + http.get('api/villains').subscribe(villains => { // console.log(villains); expect(villains.length).toBeGreaterThan(0, 'should have villains'); - }, - failure - ); - })); - - it('should 404 when POST to villains', async(() => { - const url = 'api/villains'; - http.post(url, {id: 42, name: 'Dr. Evil'}) - .subscribe( - _ => { - console.log(_); - fail(`should not have POSTed data for '${url}'`); - }, - err => { - expect(err.status).toBe(404, 'should have 404 status'); - } - ); - })); - - it('should 404 when GET unknown collection', async(() => { - const url = 'api/unknown-collection'; - http.get(url) - .subscribe( - _ => { - console.log(_); - fail(`should not have found data for '${url}'`); - }, - err => { - expect(err.status).toBe(404, 'should have 404 status'); - } - ); - })); - - it('should use genId override to add new hero, "Maxinius"', async(() => { - http.post('api/heroes', { name: 'Maxinius' }) - .concatMap(() => http.get('api/heroes?name=Maxi')) - .subscribe( - heroes => { - expect(heroes.length).toBe(1, 'should have found "Maxinius"'); - expect(heroes[0].name).toBe('Maxinius'); - expect(heroes[0].id).toBeGreaterThan(1000); - }, - failure - ); - })); - - it('should use genId override guid generator for a new nobody without an id', async(() => { - http.post('api/nobodies', { name: 'Noman' }) - .concatMap(() => http.get('api/nobodies')) - .subscribe( - nobodies => { + }, failure); + }) + ); + + it( + 'should 404 when POST to villains', + async(() => { + const url = 'api/villains'; + http.post(url, { id: 42, name: 'Dr. Evil' }).subscribe( + _ => { + console.log(_); + fail(`should not have POSTed data for '${url}'`); + }, + err => { + expect(err.status).toBe(404, 'should have 404 status'); + } + ); + }) + ); + + it( + 'should 404 when GET unknown collection', + async(() => { + const url = 'api/unknown-collection'; + http.get(url).subscribe( + _ => { + console.log(_); + fail(`should not have found data for '${url}'`); + }, + err => { + expect(err.status).toBe(404, 'should have 404 status'); + } + ); + }) + ); + + it( + 'should use genId override to add new hero, "Maxinius"', + async(() => { + http + .post('api/heroes', { name: 'Maxinius' }) + .concatMap(() => http.get('api/heroes?name=Maxi')) + .subscribe(heroes => { + expect(heroes.length).toBe(1, 'should have found "Maxinius"'); + expect(heroes[0].name).toBe('Maxinius'); + expect(heroes[0].id).toBeGreaterThan(1000); + }, failure); + }) + ); + + it( + 'should use genId override guid generator for a new nobody without an id', + async(() => { + http + .post('api/nobodies', { name: 'Noman' }) + .concatMap(() => http.get('api/nobodies')) + .subscribe(nobodies => { expect(nobodies.length).toBe(1, 'should a nobody'); expect(nobodies[0].name).toBe('Noman', 'should be "Noman"'); expect(typeof nobodies[0].id).toBe('string', 'should create a string (guid) id'); - }, - failure - ); - })); + }, failure); + }) + ); it('can reset the database to empty (object db)', async(() => resetDatabaseTest('object'))); @@ -437,46 +432,37 @@ describe('HttpClient Backend Service', () => { http.get('api/stringers'), http.get('api/villains'), (h, n, s, v) => ({ - heroes: h.length as number, - nobodies: n.length as number, + heroes: h.length as number, + nobodies: n.length as number, stringers: s.length as number, - villains: v.length as number - })); + villains: v.length as number + }) + ); // Add a nobody so that we have one - http.post('api/nobodies', { id: 42, name: 'Noman' }) - // Reset database with "clear" option - .concatMap(() => http.post('commands/resetDb', - { clear: true, returnType })) - // count all the collections - .concatMap(() => sizes$) - .subscribe( - sizes => { + http + .post('api/nobodies', { id: 42, name: 'Noman' }) + // Reset database with "clear" option + .concatMap(() => http.post('commands/resetDb', { clear: true, returnType })) + // count all the collections + .concatMap(() => sizes$) + .subscribe(sizes => { expect(sizes.heroes).toBe(0, 'reset should have cleared the heroes'); expect(sizes.nobodies).toBe(0, 'reset should have cleared the nobodies'); expect(sizes.stringers).toBe(0, 'reset should have cleared the stringers'); expect(sizes.villains).toBeGreaterThan(0, 'reset should NOT clear villains'); - }, - failure - ); + }, failure); } }); //////////////// describe('HttpClient HeroService', () => { - beforeEach(() => { TestBed.configureTestingModule({ - imports: [ - HttpClientModule, - HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay }) - ], - providers: [ - { provide: HeroService, useClass: HttpClientHeroService } - ] + imports: [HttpClientModule, HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay })], + providers: [{ provide: HeroService, useClass: HttpClientHeroService }] }); - }); new HeroServiceCoreSpec().run(); @@ -485,17 +471,13 @@ describe('HttpClient Backend Service', () => { /////////////// describe('HttpClient interceptor', () => { - let http: HttpClient; let interceptors: HttpInterceptor[]; let httpBackend: HttpClientBackendService; beforeEach(() => { TestBed.configureTestingModule({ - imports: [ - HttpClientModule, - HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay }) - ], + imports: [HttpClientModule, HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay })], providers: [ // Add test interceptor just for this test suite { provide: HTTP_INTERCEPTORS, useClass: TestHeaderInterceptor, multi: true } @@ -513,28 +495,28 @@ describe('HttpClient Backend Service', () => { expect(ti).toBeDefined(); }); - it('should have GET request header from test interceptor', async(() => { - const handle = spyOn(httpBackend, 'handle').and.callThrough(); - - http.get('api/heroes') - .subscribe( - heroes => { - // HttpRequest is first arg of the first call to in-mem backend `handle` - const req: HttpRequest = handle.calls.argsFor(0)[0]; - const reqHeader = req.headers.get('x-test-req'); - expect(reqHeader).toBe('req-test-header'); + it( + 'should have GET request header from test interceptor', + async(() => { + const handle = spyOn(httpBackend, 'handle').and.callThrough(); - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); + http.get('api/heroes').subscribe(heroes => { + // HttpRequest is first arg of the first call to in-mem backend `handle` + const req: HttpRequest = handle.calls.argsFor(0)[0]; + const reqHeader = req.headers.get('x-test-req'); + expect(reqHeader).toBe('req-test-header'); - it('should have GET response header from test interceptor', async(() => { - let gotResponse = false; - const req = new HttpRequest('GET', 'api/heroes'); - http.request(req) - .subscribe( + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }, failure); + }) + ); + + it( + 'should have GET response header from test interceptor', + async(() => { + let gotResponse = false; + const req = new HttpRequest('GET', 'api/heroes'); + http.request(req).subscribe( event => { if (event.type === HttpEventType.Response) { gotResponse = true; @@ -549,12 +531,12 @@ describe('HttpClient Backend Service', () => { failure, () => expect(gotResponse).toBe(true, 'should have seen Response event') ); - })); + }) + ); }); ////////////// - //////////////// describe('HttpClient passThru', () => { let http: HttpClient; @@ -582,54 +564,51 @@ describe('HttpClient Backend Service', () => { jasmine.Ajax.uninstall(); }); - it('can get heroes (no passthru)', async(() => { - http.get('api/heroes') - .subscribe( - heroes => { - expect(createPassThruBackend).not.toHaveBeenCalled(); - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); + it( + 'can get heroes (no passthru)', + async(() => { + http.get('api/heroes').subscribe(heroes => { + expect(createPassThruBackend).not.toHaveBeenCalled(); + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }, failure); + }) + ); // `passthru` is NOT a collection in the data store // so requests for it should pass thru to the "real" server - it('can GET passthru', async(() => { - - jasmine.Ajax.stubRequest('api/passthru').andReturn({ - 'status': 200, - 'contentType': 'application/json', - 'response': JSON.stringify([{ id: 42, name: 'Dude' }]) - }); - - http.get('api/passthru') - .subscribe( - passthru => { - console.log('GET passthru data', passthru); - expect(passthru.length).toBeGreaterThan(0, 'should have passthru data'); - }, - failure - ); - })); + it( + 'can GET passthru', + async(() => { + jasmine.Ajax.stubRequest('api/passthru').andReturn({ + status: 200, + contentType: 'application/json', + response: JSON.stringify([{ id: 42, name: 'Dude' }]) + }); - it('can ADD to passthru', async(() => { - jasmine.Ajax.stubRequest('api/passthru').andReturn({ - 'status': 200, - 'contentType': 'application/json', - 'response': JSON.stringify({ id: 42, name: 'Dude' }) - }); + http.get('api/passthru').subscribe(passthru => { + console.log('GET passthru data', passthru); + expect(passthru.length).toBeGreaterThan(0, 'should have passthru data'); + }, failure); + }) + ); + + it( + 'can ADD to passthru', + async(() => { + jasmine.Ajax.stubRequest('api/passthru').andReturn({ + status: 200, + contentType: 'application/json', + response: JSON.stringify({ id: 42, name: 'Dude' }) + }); - http.post('api/passthru', { name: 'Dude' }) - .subscribe( - passthru => { - console.log('POST passthru data', passthru); - expect(passthru).toBeDefined('should have passthru data'); - expect(passthru.id).toBe(42, 'passthru object should have id 42'); }, - failure - ); - })); + http.post('api/passthru', { name: 'Dude' }).subscribe(passthru => { + console.log('POST passthru data', passthru); + expect(passthru).toBeDefined('should have passthru data'); + expect(passthru.id).toBe(42, 'passthru object should have id 42'); + }, failure); + }) + ); }); //////////////// @@ -647,17 +626,16 @@ describe('HttpClient Backend Service', () => { http = TestBed.get(HttpClient); }); - it('can get heroes (encapsulated)', async(() => { - http.get('api/heroes') - .map(data => data.data as Hero[]) // unwrap data object - .subscribe( - heroes => { - expect(heroes.length).toBeGreaterThan(0, 'should have data.heroes'); - }, - failure - ); - })); - + it( + 'can get heroes (encapsulated)', + async(() => { + http + .get('api/heroes') + .map(data => data.data as Hero[]) // unwrap data object + .subscribe(heroes => { + expect(heroes.length).toBeGreaterThan(0, 'should have data.heroes'); + }, failure); + }) + ); }); }); - diff --git a/src/http-client-backend.service.ts b/src/http-client-backend.service.ts old mode 100644 new mode 100755 index 2984a39..3e0c331 --- a/src/http-client-backend.service.ts +++ b/src/http-client-backend.service.ts @@ -5,22 +5,18 @@ import { HttpHeaders, HttpParams, HttpRequest, - HttpResponse, HttpResponseBase, + HttpResponse, + HttpResponseBase, HttpXhrBackend, XhrFactory } from '@angular/common/http'; import { Observable } from 'rxjs/Observable'; -import { map } from 'rxjs/operators'; +import { map } from 'rxjs/operator/map'; import { STATUS } from './http-status-codes'; -import { - InMemoryBackendConfig, - InMemoryBackendConfigArgs, - InMemoryDbService, - ResponseOptions -} from './interfaces'; +import { InMemoryBackendConfig, InMemoryBackendConfigArgs, InMemoryDbService, ResponseOptions } from './interfaces'; import { BackendService } from './backend.service'; @@ -53,19 +49,19 @@ import { BackendService } from './backend.service'; */ @Injectable() export class HttpClientBackendService extends BackendService implements HttpBackend { - constructor( inMemDbService: InMemoryDbService, - @Inject(InMemoryBackendConfig) @Optional() config: InMemoryBackendConfigArgs, + @Inject(InMemoryBackendConfig) + @Optional() + config: InMemoryBackendConfigArgs, private xhrFactory: XhrFactory - ) { + ) { super(inMemDbService, config); } handle(req: HttpRequest): Observable> { try { return this.handleRequest(req); - } catch (error) { const err = error.message || error; const resOptions = this.createErrorResponseOptions(req.url, STATUS.INTERNAL_SERVER_ERROR, `${err}`); @@ -83,22 +79,23 @@ export class HttpClientBackendService extends BackendService implements HttpBack return (req.method || 'get').toLowerCase(); } - protected createHeaders(headers: { [index: string]: string; }): HttpHeaders { + protected createHeaders(headers: { [index: string]: string }): HttpHeaders { return new HttpHeaders(headers); } protected createQueryMap(search: string): Map { const map = new Map(); if (search) { - const params = new HttpParams({fromString: search}); + const params = new HttpParams({ fromString: search }); params.keys().forEach(p => map.set(p, params.getAll(p))); } return map; } - protected createResponse$fromResponseOptions$(resOptions$: Observable): Observable> { - return map.call(resOptions$, - (opts: HttpResponseBase) => new HttpResponse(opts)); + protected createResponse$fromResponseOptions$( + resOptions$: Observable + ): Observable> { + return map.call(resOptions$, (opts: HttpResponseBase) => new HttpResponse(opts)); } protected createPassThruBackend() { diff --git a/src/http-client-in-memory-web-api.module.ts b/src/http-client-in-memory-web-api.module.ts old mode 100644 new mode 100755 index 57b7e15..7a1cac1 --- a/src/http-client-in-memory-web-api.module.ts +++ b/src/http-client-in-memory-web-api.module.ts @@ -3,11 +3,7 @@ import { NgModule, ModuleWithProviders, Type } from '@angular/core'; import { HttpBackend, XhrFactory } from '@angular/common/http'; -import { - InMemoryBackendConfigArgs, - InMemoryBackendConfig, - InMemoryDbService -} from './interfaces'; +import { InMemoryBackendConfigArgs, InMemoryBackendConfig, InMemoryDbService } from './interfaces'; import { HttpClientBackendService } from './http-client-backend.service'; @@ -16,7 +12,7 @@ import { HttpClientBackendService } from './http-client-backend.service'; export function httpClientInMemBackendServiceFactory( dbService: InMemoryDbService, options: InMemoryBackendConfig, - xhrFactory: XhrFactory, + xhrFactory: XhrFactory ): HttpBackend { const backend: any = new HttpClientBackendService(dbService, options, xhrFactory); return backend; @@ -25,34 +21,36 @@ export function httpClientInMemBackendServiceFactory( @NgModule({}) export class HttpClientInMemoryWebApiModule { /** - * Redirect the Angular `HttpClient` XHR calls - * to in-memory data store that implements `InMemoryDbService`. - * with class that implements InMemoryDbService and creates an in-memory database. - * - * Usually imported in the root application module. - * Can import in a lazy feature module too, which will shadow modules loaded earlier - * - * @param dbCreator - Class that creates seed data for in-memory database. Must implement InMemoryDbService. - * @param [options] - * - * @example - * HttpInMemoryWebApiModule.forRoot(dbCreator); - * HttpInMemoryWebApiModule.forRoot(dbCreator, {useValue: {delay:600}}); - */ + * Redirect the Angular `HttpClient` XHR calls + * to in-memory data store that implements `InMemoryDbService`. + * with class that implements InMemoryDbService and creates an in-memory database. + * + * Usually imported in the root application module. + * Can import in a lazy feature module too, which will shadow modules loaded earlier + * + * @param dbCreator - Class that creates seed data for in-memory database. Must implement InMemoryDbService. + * @param [options] + * + * @example + * HttpInMemoryWebApiModule.forRoot(dbCreator); + * HttpInMemoryWebApiModule.forRoot(dbCreator, {useValue: {delay:600}}); + */ static forRoot(dbCreator: Type, options?: InMemoryBackendConfigArgs): ModuleWithProviders { return { ngModule: HttpClientInMemoryWebApiModule, providers: [ - { provide: InMemoryDbService, useClass: dbCreator }, + { provide: InMemoryDbService, useClass: dbCreator }, { provide: InMemoryBackendConfig, useValue: options }, - { provide: HttpBackend, + { + provide: HttpBackend, useFactory: httpClientInMemBackendServiceFactory, - deps: [InMemoryDbService, InMemoryBackendConfig, XhrFactory]} + deps: [InMemoryDbService, InMemoryBackendConfig, XhrFactory] + } ] }; } - /** + /** * * Enable and configure the in-memory web api in a lazy-loaded feature module. * Same as `forRoot`. diff --git a/src/http-in-memory-web-api.module.ts b/src/http-in-memory-web-api.module.ts new file mode 100755 index 0000000..289a371 --- /dev/null +++ b/src/http-in-memory-web-api.module.ts @@ -0,0 +1,62 @@ +////// Http-Only version //// + +import { Injector, NgModule, ModuleWithProviders, Type } from '@angular/core'; +import { XHRBackend } from '@angular/http'; + +import { InMemoryBackendConfigArgs, InMemoryBackendConfig, InMemoryDbService } from './interfaces'; + +import { HttpBackendService } from './http-backend.service'; + +// Internal - Creates the in-mem backend for the Http module +// AoT requires factory to be exported +export function httpInMemBackendServiceFactory( + injector: Injector, + dbService: InMemoryDbService, + options: InMemoryBackendConfig +): XHRBackend { + const backend: any = new HttpBackendService(injector, dbService, options); + return backend as XHRBackend; +} + +@NgModule({}) +export class HttpInMemoryWebApiModule { + /** + * Redirect the Angular `Http` XHR calls + * to in-memory data store that implements `InMemoryDbService`. + * with class that implements InMemoryDbService and creates an in-memory database. + * + * Usually imported in the root application module. + * Can import in a lazy feature module too, which will shadow modules loaded earlier + * + * @param dbCreator - Class that creates seed data for in-memory database. Must implement InMemoryDbService. + * @param [options] + * + * @example + * HttpInMemoryWebApiModule.forRoot(dbCreator); + * HttpInMemoryWebApiModule.forRoot(dbCreator, {useValue: {delay:600}}); + */ + static forRoot(dbCreator: Type, options?: InMemoryBackendConfigArgs): ModuleWithProviders { + return { + ngModule: HttpInMemoryWebApiModule, + providers: [ + { provide: InMemoryDbService, useClass: dbCreator }, + { provide: InMemoryBackendConfig, useValue: options }, + + { + provide: XHRBackend, + useFactory: httpInMemBackendServiceFactory, + deps: [Injector, InMemoryDbService, InMemoryBackendConfig] + } + ] + }; + } + /** + * + * Enable and configure the in-memory web api in a lazy-loaded feature module. + * Same as `forRoot`. + * This is a feel-good method so you can follow the Angular style guide for lazy-loaded modules. + */ + static forFeature(dbCreator: Type, options?: InMemoryBackendConfigArgs): ModuleWithProviders { + return HttpInMemoryWebApiModule.forRoot(dbCreator, options); + } +} diff --git a/src/http-status-codes.ts b/src/http-status-codes.ts old mode 100644 new mode 100755 index 072dc83..5553986 --- a/src/http-status-codes.ts +++ b/src/http-status-codes.ts @@ -60,396 +60,431 @@ export const STATUS = { /*tslint:disable:quotemark max-line-length one-line */ export const STATUS_CODE_INFO = { '100': { - 'code': 100, - 'text': 'Continue', - 'description': '\"The initial part of a request has been received and has not yet been rejected by the server.\"', - 'spec_title': 'RFC7231#6.2.1', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.2.1' + code: 100, + text: 'Continue', + description: '"The initial part of a request has been received and has not yet been rejected by the server."', + spec_title: 'RFC7231#6.2.1', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.2.1' }, '101': { - 'code': 101, - 'text': 'Switching Protocols', - '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.\"', - 'spec_title': 'RFC7231#6.2.2', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.2.2' + code: 101, + text: 'Switching Protocols', + 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."', + spec_title: 'RFC7231#6.2.2', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.2.2' }, '200': { - 'code': 200, - 'text': 'OK', - 'description': '\"The request has succeeded.\"', - 'spec_title': 'RFC7231#6.3.1', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.1' + code: 200, + text: 'OK', + description: '"The request has succeeded."', + spec_title: 'RFC7231#6.3.1', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.3.1' }, '201': { - 'code': 201, - 'text': 'Created', - 'description': '\"The request has been fulfilled and has resulted in one or more new resources being created.\"', - 'spec_title': 'RFC7231#6.3.2', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.2' + code: 201, + text: 'Created', + description: '"The request has been fulfilled and has resulted in one or more new resources being created."', + spec_title: 'RFC7231#6.3.2', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.3.2' }, '202': { - 'code': 202, - 'text': 'Accepted', - 'description': '\"The request has been accepted for processing, but the processing has not been completed.\"', - 'spec_title': 'RFC7231#6.3.3', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.3' + code: 202, + text: 'Accepted', + description: '"The request has been accepted for processing, but the processing has not been completed."', + spec_title: 'RFC7231#6.3.3', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.3.3' }, '203': { - 'code': 203, - 'text': 'Non-Authoritative Information', - '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.\"', - 'spec_title': 'RFC7231#6.3.4', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.4' + code: 203, + text: 'Non-Authoritative Information', + 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."', + spec_title: 'RFC7231#6.3.4', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.3.4' }, '204': { - 'code': 204, - 'text': 'No Content', - 'description': '\"The server has successfully fulfilled the request and that there is no additional content to send in the response payload body.\"', - 'spec_title': 'RFC7231#6.3.5', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.5' + code: 204, + text: 'No Content', + description: + '"The server has successfully fulfilled the request and that there is no additional content to send in the response payload body."', + spec_title: 'RFC7231#6.3.5', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.3.5' }, '205': { - 'code': 205, - 'text': 'Reset Content', - '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.\"', - 'spec_title': 'RFC7231#6.3.6', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.6' + code: 205, + text: 'Reset Content', + 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."', + spec_title: 'RFC7231#6.3.6', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.3.6' }, '206': { - 'code': 206, - 'text': 'Partial Content', - '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.\"', - 'spec_title': 'RFC7233#4.1', - 'spec_href': 'http://tools.ietf.org/html/rfc7233#section-4.1' + code: 206, + text: 'Partial Content', + 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."', + spec_title: 'RFC7233#4.1', + spec_href: 'http://tools.ietf.org/html/rfc7233#section-4.1' }, '300': { - 'code': 300, - 'text': 'Multiple Choices', - '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.\"', - 'spec_title': 'RFC7231#6.4.1', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.1' + code: 300, + text: 'Multiple Choices', + 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."', + spec_title: 'RFC7231#6.4.1', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.4.1' }, '301': { - 'code': 301, - 'text': 'Moved Permanently', - '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.\"', - 'spec_title': 'RFC7231#6.4.2', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.2' + code: 301, + text: 'Moved Permanently', + 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."', + spec_title: 'RFC7231#6.4.2', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.4.2' }, '302': { - 'code': 302, - 'text': 'Found', - 'description': '\"The target resource resides temporarily under a different URI.\"', - 'spec_title': 'RFC7231#6.4.3', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.3' + code: 302, + text: 'Found', + description: '"The target resource resides temporarily under a different URI."', + spec_title: 'RFC7231#6.4.3', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.4.3' }, '303': { - 'code': 303, - 'text': 'See Other', - '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.\"', - 'spec_title': 'RFC7231#6.4.4', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.4' + code: 303, + text: 'See Other', + 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."', + spec_title: 'RFC7231#6.4.4', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.4.4' }, '304': { - 'code': 304, - 'text': 'Not Modified', - '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.\"', - 'spec_title': 'RFC7232#4.1', - 'spec_href': 'http://tools.ietf.org/html/rfc7232#section-4.1' + code: 304, + text: 'Not Modified', + 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."', + spec_title: 'RFC7232#4.1', + spec_href: 'http://tools.ietf.org/html/rfc7232#section-4.1' }, '305': { - 'code': 305, - 'text': 'Use Proxy', - 'description': '*deprecated*', - 'spec_title': 'RFC7231#6.4.5', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.5' + code: 305, + text: 'Use Proxy', + description: '*deprecated*', + spec_title: 'RFC7231#6.4.5', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.4.5' }, '307': { - 'code': 307, - 'text': 'Temporary Redirect', - '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.\"', - 'spec_title': 'RFC7231#6.4.7', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.7' + code: 307, + text: 'Temporary Redirect', + 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."', + spec_title: 'RFC7231#6.4.7', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.4.7' }, '400': { - 'code': 400, - 'text': 'Bad Request', - '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.\"', - 'spec_title': 'RFC7231#6.5.1', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.1' + code: 400, + text: 'Bad Request', + 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."', + spec_title: 'RFC7231#6.5.1', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.5.1' }, '401': { - 'code': 401, - 'text': 'Unauthorized', - 'description': '\"The request has not been applied because it lacks valid authentication credentials for the target resource.\"', - 'spec_title': 'RFC7235#6.3.1', - 'spec_href': 'http://tools.ietf.org/html/rfc7235#section-3.1' + code: 401, + text: 'Unauthorized', + description: + '"The request has not been applied because it lacks valid authentication credentials for the target resource."', + spec_title: 'RFC7235#6.3.1', + spec_href: 'http://tools.ietf.org/html/rfc7235#section-3.1' }, '402': { - 'code': 402, - 'text': 'Payment Required', - 'description': '*reserved*', - 'spec_title': 'RFC7231#6.5.2', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.2' + code: 402, + text: 'Payment Required', + description: '*reserved*', + spec_title: 'RFC7231#6.5.2', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.5.2' }, '403': { - 'code': 403, - 'text': 'Forbidden', - 'description': '\"The server understood the request but refuses to authorize it.\"', - 'spec_title': 'RFC7231#6.5.3', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.3' + code: 403, + text: 'Forbidden', + description: '"The server understood the request but refuses to authorize it."', + spec_title: 'RFC7231#6.5.3', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.5.3' }, '404': { - 'code': 404, - 'text': 'Not Found', - 'description': '\"The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.\"', - 'spec_title': 'RFC7231#6.5.4', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.4' + code: 404, + text: 'Not Found', + description: + '"The origin server did not find a current representation for the target resource or is not willing to disclose that one exists."', + spec_title: 'RFC7231#6.5.4', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.5.4' }, '405': { - 'code': 405, - 'text': 'Method Not Allowed', - 'description': '\"The method specified in the request-line is known by the origin server but not supported by the target resource.\"', - 'spec_title': 'RFC7231#6.5.5', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.5' + code: 405, + text: 'Method Not Allowed', + description: + '"The method specified in the request-line is known by the origin server but not supported by the target resource."', + spec_title: 'RFC7231#6.5.5', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.5.5' }, '406': { - 'code': 406, - 'text': 'Not Acceptable', - '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.\"', - 'spec_title': 'RFC7231#6.5.6', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.6' + code: 406, + text: 'Not Acceptable', + 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."', + spec_title: 'RFC7231#6.5.6', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.5.6' }, '407': { - 'code': 407, - 'text': 'Proxy Authentication Required', - 'description': '\"The client needs to authenticate itself in order to use a proxy.\"', - 'spec_title': 'RFC7231#6.3.2', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.2' + code: 407, + text: 'Proxy Authentication Required', + description: '"The client needs to authenticate itself in order to use a proxy."', + spec_title: 'RFC7231#6.3.2', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.3.2' }, '408': { - 'code': 408, - 'text': 'Request Timeout', - 'description': '\"The server did not receive a complete request message within the time that it was prepared to wait.\"', - 'spec_title': 'RFC7231#6.5.7', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.7' + code: 408, + text: 'Request Timeout', + description: + '"The server did not receive a complete request message within the time that it was prepared to wait."', + spec_title: 'RFC7231#6.5.7', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.5.7' }, '409': { - 'code': 409, - 'text': 'Conflict', - 'description': '\"The request could not be completed due to a conflict with the current state of the resource.\"', - 'spec_title': 'RFC7231#6.5.8', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.8' + code: 409, + text: 'Conflict', + description: '"The request could not be completed due to a conflict with the current state of the resource."', + spec_title: 'RFC7231#6.5.8', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.5.8' }, '410': { - 'code': 410, - 'text': 'Gone', - 'description': '\"Access to the target resource is no longer available at the origin server and that this condition is likely to be permanent.\"', - 'spec_title': 'RFC7231#6.5.9', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.9' + code: 410, + text: 'Gone', + description: + '"Access to the target resource is no longer available at the origin server and that this condition is likely to be permanent."', + spec_title: 'RFC7231#6.5.9', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.5.9' }, '411': { - 'code': 411, - 'text': 'Length Required', - 'description': '\"The server refuses to accept the request without a defined Content-Length.\"', - 'spec_title': 'RFC7231#6.5.10', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.10' + code: 411, + text: 'Length Required', + description: '"The server refuses to accept the request without a defined Content-Length."', + spec_title: 'RFC7231#6.5.10', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.5.10' }, '412': { - 'code': 412, - 'text': 'Precondition Failed', - 'description': '\"One or more preconditions given in the request header fields evaluated to false when tested on the server.\"', - 'spec_title': 'RFC7232#4.2', - 'spec_href': 'http://tools.ietf.org/html/rfc7232#section-4.2' + code: 412, + text: 'Precondition Failed', + description: + '"One or more preconditions given in the request header fields evaluated to false when tested on the server."', + spec_title: 'RFC7232#4.2', + spec_href: 'http://tools.ietf.org/html/rfc7232#section-4.2' }, '413': { - 'code': 413, - 'text': 'Payload Too Large', - 'description': '\"The server is refusing to process a request because the request payload is larger than the server is willing or able to process.\"', - 'spec_title': 'RFC7231#6.5.11', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.11' + code: 413, + text: 'Payload Too Large', + description: + '"The server is refusing to process a request because the request payload is larger than the server is willing or able to process."', + spec_title: 'RFC7231#6.5.11', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.5.11' }, '414': { - 'code': 414, - 'text': 'URI Too Long', - 'description': '\"The server is refusing to service the request because the request-target is longer than the server is willing to interpret.\"', - 'spec_title': 'RFC7231#6.5.12', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.12' + code: 414, + text: 'URI Too Long', + description: + '"The server is refusing to service the request because the request-target is longer than the server is willing to interpret."', + spec_title: 'RFC7231#6.5.12', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.5.12' }, '415': { - 'code': 415, - 'text': 'Unsupported Media Type', - '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.\"', - 'spec_title': 'RFC7231#6.5.13', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.13' + code: 415, + text: 'Unsupported Media Type', + 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."', + spec_title: 'RFC7231#6.5.13', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.5.13' }, '416': { - 'code': 416, - 'text': 'Range Not Satisfiable', - '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.\"', - 'spec_title': 'RFC7233#4.4', - 'spec_href': 'http://tools.ietf.org/html/rfc7233#section-4.4' + code: 416, + text: 'Range Not Satisfiable', + 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."', + spec_title: 'RFC7233#4.4', + spec_href: 'http://tools.ietf.org/html/rfc7233#section-4.4' }, '417': { - 'code': 417, - 'text': 'Expectation Failed', - 'description': '\"The expectation given in the request\'s Expect header field could not be met by at least one of the inbound servers.\"', - 'spec_title': 'RFC7231#6.5.14', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.14' + code: 417, + text: 'Expectation Failed', + description: + '"The expectation given in the request\'s Expect header field could not be met by at least one of the inbound servers."', + spec_title: 'RFC7231#6.5.14', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.5.14' }, '418': { - 'code': 418, - 'text': 'I\'m a teapot', - 'description': '\"1988 April Fools Joke. Returned by tea pots requested to brew coffee.\"', - 'spec_title': 'RFC 2324', - 'spec_href': 'https://tools.ietf.org/html/rfc2324' + code: 418, + text: "I'm a teapot", + description: '"1988 April Fools Joke. Returned by tea pots requested to brew coffee."', + spec_title: 'RFC 2324', + spec_href: 'https://tools.ietf.org/html/rfc2324' }, '426': { - 'code': 426, - 'text': 'Upgrade Required', - '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.\"', - 'spec_title': 'RFC7231#6.5.15', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.15' + code: 426, + text: 'Upgrade Required', + 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."', + spec_title: 'RFC7231#6.5.15', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.5.15' }, '500': { - 'code': 500, - 'text': 'Internal Server Error', - 'description': '\"The server encountered an unexpected condition that prevented it from fulfilling the request.\"', - 'spec_title': 'RFC7231#6.6.1', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.1' + code: 500, + text: 'Internal Server Error', + description: '"The server encountered an unexpected condition that prevented it from fulfilling the request."', + spec_title: 'RFC7231#6.6.1', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.6.1' }, '501': { - 'code': 501, - 'text': 'Not Implemented', - 'description': '\"The server does not support the functionality required to fulfill the request.\"', - 'spec_title': 'RFC7231#6.6.2', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.2' + code: 501, + text: 'Not Implemented', + description: '"The server does not support the functionality required to fulfill the request."', + spec_title: 'RFC7231#6.6.2', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.6.2' }, '502': { - 'code': 502, - 'text': 'Bad Gateway', - '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.\"', - 'spec_title': 'RFC7231#6.6.3', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.3' + code: 502, + text: 'Bad Gateway', + 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."', + spec_title: 'RFC7231#6.6.3', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.6.3' }, '503': { - 'code': 503, - 'text': 'Service Unavailable', - '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.\"', - 'spec_title': 'RFC7231#6.6.4', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.4' + code: 503, + text: 'Service Unavailable', + 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."', + spec_title: 'RFC7231#6.6.4', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.6.4' }, '504': { - 'code': 504, - 'text': 'Gateway Time-out', - '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.\"', - 'spec_title': 'RFC7231#6.6.5', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.5' + code: 504, + text: 'Gateway Time-out', + 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."', + spec_title: 'RFC7231#6.6.5', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.6.5' }, '505': { - 'code': 505, - 'text': 'HTTP Version Not Supported', - 'description': '\"The server does not support, or refuses to support, the protocol version that was used in the request message.\"', - 'spec_title': 'RFC7231#6.6.6', - 'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.6' + code: 505, + text: 'HTTP Version Not Supported', + description: + '"The server does not support, or refuses to support, the protocol version that was used in the request message."', + spec_title: 'RFC7231#6.6.6', + spec_href: 'http://tools.ietf.org/html/rfc7231#section-6.6.6' }, '102': { - 'code': 102, - 'text': 'Processing', - 'description': '\"An interim response to inform the client that the server has accepted the complete request, but has not yet completed it.\"', - 'spec_title': 'RFC5218#10.1', - 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.1' + code: 102, + text: 'Processing', + description: + '"An interim response to inform the client that the server has accepted the complete request, but has not yet completed it."', + spec_title: 'RFC5218#10.1', + spec_href: 'http://tools.ietf.org/html/rfc2518#section-10.1' }, '207': { - 'code': 207, - 'text': 'Multi-Status', - 'description': '\"Status for multiple independent operations.\"', - 'spec_title': 'RFC5218#10.2', - 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.2' + code: 207, + text: 'Multi-Status', + description: '"Status for multiple independent operations."', + spec_title: 'RFC5218#10.2', + spec_href: 'http://tools.ietf.org/html/rfc2518#section-10.2' }, '226': { - 'code': 226, - 'text': 'IM Used', - '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.\"', - 'spec_title': 'RFC3229#10.4.1', - 'spec_href': 'http://tools.ietf.org/html/rfc3229#section-10.4.1' + code: 226, + text: 'IM Used', + 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."', + spec_title: 'RFC3229#10.4.1', + spec_href: 'http://tools.ietf.org/html/rfc3229#section-10.4.1' }, '308': { - 'code': 308, - 'text': 'Permanent Redirect', - '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.\"', - 'spec_title': 'RFC7238', - 'spec_href': 'http://tools.ietf.org/html/rfc7238' + code: 308, + text: 'Permanent Redirect', + 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."', + spec_title: 'RFC7238', + spec_href: 'http://tools.ietf.org/html/rfc7238' }, '422': { - 'code': 422, - 'text': 'Unprocessable Entity', - '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.\"', - 'spec_title': 'RFC5218#10.3', - 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.3' + code: 422, + text: 'Unprocessable Entity', + 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."', + spec_title: 'RFC5218#10.3', + spec_href: 'http://tools.ietf.org/html/rfc2518#section-10.3' }, '423': { - 'code': 423, - 'text': 'Locked', - 'description': '\"The source or destination resource of a method is locked.\"', - 'spec_title': 'RFC5218#10.4', - 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.4' + code: 423, + text: 'Locked', + description: '"The source or destination resource of a method is locked."', + spec_title: 'RFC5218#10.4', + spec_href: 'http://tools.ietf.org/html/rfc2518#section-10.4' }, '424': { - 'code': 424, - 'text': 'Failed Dependency', - 'description': '\"The method could not be performed on the resource because the requested action depended on another action and that action failed.\"', - 'spec_title': 'RFC5218#10.5', - 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.5' + code: 424, + text: 'Failed Dependency', + description: + '"The method could not be performed on the resource because the requested action depended on another action and that action failed."', + spec_title: 'RFC5218#10.5', + spec_href: 'http://tools.ietf.org/html/rfc2518#section-10.5' }, '428': { - 'code': 428, - 'text': 'Precondition Required', - 'description': '\"The origin server requires the request to be conditional.\"', - 'spec_title': 'RFC6585#3', - 'spec_href': 'http://tools.ietf.org/html/rfc6585#section-3' + code: 428, + text: 'Precondition Required', + description: '"The origin server requires the request to be conditional."', + spec_title: 'RFC6585#3', + spec_href: 'http://tools.ietf.org/html/rfc6585#section-3' }, '429': { - 'code': 429, - 'text': 'Too Many Requests', - 'description': '\"The user has sent too many requests in a given amount of time (\"rate limiting\").\"', - 'spec_title': 'RFC6585#4', - 'spec_href': 'http://tools.ietf.org/html/rfc6585#section-4' + code: 429, + text: 'Too Many Requests', + description: '"The user has sent too many requests in a given amount of time ("rate limiting")."', + spec_title: 'RFC6585#4', + spec_href: 'http://tools.ietf.org/html/rfc6585#section-4' }, '431': { - 'code': 431, - 'text': 'Request Header Fields Too Large', - 'description': '\"The server is unwilling to process the request because its header fields are too large.\"', - 'spec_title': 'RFC6585#5', - 'spec_href': 'http://tools.ietf.org/html/rfc6585#section-5' + code: 431, + text: 'Request Header Fields Too Large', + description: '"The server is unwilling to process the request because its header fields are too large."', + spec_title: 'RFC6585#5', + spec_href: 'http://tools.ietf.org/html/rfc6585#section-5' }, '451': { - 'code': 451, - 'text': 'Unavailable For Legal Reasons', - 'description': '\"The server is denying access to the resource in response to a legal demand.\"', - 'spec_title': 'draft-ietf-httpbis-legally-restricted-status', - 'spec_href': 'http://tools.ietf.org/html/draft-ietf-httpbis-legally-restricted-status' + code: 451, + text: 'Unavailable For Legal Reasons', + description: '"The server is denying access to the resource in response to a legal demand."', + spec_title: 'draft-ietf-httpbis-legally-restricted-status', + spec_href: 'http://tools.ietf.org/html/draft-ietf-httpbis-legally-restricted-status' }, '506': { - 'code': 506, - 'text': 'Variant Also Negotiates', - '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.\"', - 'spec_title': 'RFC2295#8.1', - 'spec_href': 'http://tools.ietf.org/html/rfc2295#section-8.1' + code: 506, + text: 'Variant Also Negotiates', + 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."', + spec_title: 'RFC2295#8.1', + spec_href: 'http://tools.ietf.org/html/rfc2295#section-8.1' }, '507': { - 'code': 507, - 'text': 'Insufficient Storage', - '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.\"', - 'spec_title': 'RFC5218#10.6', - 'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.6' + code: 507, + text: 'Insufficient Storage', + 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."', + spec_title: 'RFC5218#10.6', + spec_href: 'http://tools.ietf.org/html/rfc2518#section-10.6' }, '511': { - 'code': 511, - 'text': 'Network Authentication Required', - 'description': '\"The client needs to authenticate to gain network access.\"', - 'spec_title': 'RFC6585#6', - 'spec_href': 'http://tools.ietf.org/html/rfc6585#section-6' + code: 511, + text: 'Network Authentication Required', + description: '"The client needs to authenticate to gain network access."', + spec_title: 'RFC6585#6', + spec_href: 'http://tools.ietf.org/html/rfc6585#section-6' } }; @@ -463,4 +498,6 @@ export function getStatusText(status: number) { /** * Returns true if the the Http Status Code is 200-299 (success) */ -export function isSuccess(status: number): boolean { return status >= 200 && status < 300; }; +export function isSuccess(status: number): boolean { + return status >= 200 && status < 300; +} diff --git a/src/in-memory-web-api.module.ts b/src/in-memory-web-api.module.ts new file mode 100755 index 0000000..97ed075 --- /dev/null +++ b/src/in-memory-web-api.module.ts @@ -0,0 +1,60 @@ +////// For apps with both Http and HttpClient //// + +import { Injector, NgModule, ModuleWithProviders, Type } from '@angular/core'; +import { XHRBackend } from '@angular/http'; +import { HttpBackend, XhrFactory } from '@angular/common/http'; + +import { InMemoryBackendConfigArgs, InMemoryBackendConfig, InMemoryDbService } from './interfaces'; + +import { httpInMemBackendServiceFactory } from './http-in-memory-web-api.module'; +import { httpClientInMemBackendServiceFactory } from './http-client-in-memory-web-api.module'; + +@NgModule({}) +export class InMemoryWebApiModule { + /** + * Redirect BOTH Angular `Http` and `HttpClient` XHR calls + * to in-memory data store that implements `InMemoryDbService`. + * with class that implements InMemoryDbService and creates an in-memory database. + * + * Usually imported in the root application module. + * Can import in a lazy feature module too, which will shadow modules loaded earlier + * + * @param dbCreator - Class that creates seed data for in-memory database. Must implement InMemoryDbService. + * @param [options] + * + * @example + * InMemoryWebApiModule.forRoot(dbCreator); + * InMemoryWebApiModule.forRoot(dbCreator, {useValue: {delay:600}}); + */ + static forRoot(dbCreator: Type, options?: InMemoryBackendConfigArgs): ModuleWithProviders { + return { + ngModule: InMemoryWebApiModule, + providers: [ + { provide: InMemoryDbService, useClass: dbCreator }, + { provide: InMemoryBackendConfig, useValue: options }, + + { + provide: XHRBackend, + useFactory: httpInMemBackendServiceFactory, + deps: [Injector, InMemoryDbService, InMemoryBackendConfig] + }, + + { + provide: HttpBackend, + useFactory: httpClientInMemBackendServiceFactory, + deps: [InMemoryDbService, InMemoryBackendConfig, XhrFactory] + } + ] + }; + } + + /** + * + * Enable and configure the in-memory web api in a lazy-loaded feature module. + * Same as `forRoot`. + * This is a feel-good method so you can follow the Angular style guide for lazy-loaded modules. + */ + static forFeature(dbCreator: Type, options?: InMemoryBackendConfigArgs): ModuleWithProviders { + return InMemoryWebApiModule.forRoot(dbCreator, options); + } +} diff --git a/src/index.ts b/src/index.ts old mode 100644 new mode 100755 index 4c01a15..9b57d66 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,8 @@ export * from './backend.service'; export * from './http-status-codes'; +export * from './http-backend.service'; export * from './http-client-backend.service'; +export * from './in-memory-web-api.module'; +export * from './http-in-memory-web-api.module'; export * from './http-client-in-memory-web-api.module'; export * from './interfaces'; diff --git a/src/interfaces.ts b/src/interfaces.ts old mode 100644 new mode 100755 index 04de375..974c92d --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -9,37 +9,37 @@ export interface HeadersCore { } /** -* Interface for a class that creates an in-memory database -* -* Its `createDb` method creates a hash of named collections that represents the database -* -* For maximum flexibility, the service may define HTTP method overrides. -* Such methods must match the spelling of an HTTP method in lower case (e.g, "get"). -* If a request has a matching method, it will be called as in -* `get(info: requestInfo, db: {})` where `db` is the database object described above. -*/ + * Interface for a class that creates an in-memory database + * + * Its `createDb` method creates a hash of named collections that represents the database + * + * For maximum flexibility, the service may define HTTP method overrides. + * Such methods must match the spelling of an HTTP method in lower case (e.g, "get"). + * If a request has a matching method, it will be called as in + * `get(info: requestInfo, db: {})` where `db` is the database object described above. + */ export abstract class InMemoryDbService { /** - * Creates an in-memory "database" hash whose keys are collection names - * and whose values are arrays of collection objects to return or update. - * - * returns Observable of the database because could have to create it asynchronously. - * - * This method must be safe to call repeatedly. - * Each time it should return a new object with new arrays containing new item objects. - * This condition allows the in-memory backend service to mutate the collections - * and their items without touching the original source data. - * - * The in-mem backend service calls this method without a value the first time. - * The service calls it with the `RequestInfo` when it receives a POST `commands/resetDb` request. - * Your InMemoryDbService can adjust its behavior accordingly. - */ + * Creates an in-memory "database" hash whose keys are collection names + * and whose values are arrays of collection objects to return or update. + * + * returns Observable of the database because could have to create it asynchronously. + * + * This method must be safe to call repeatedly. + * Each time it should return a new object with new arrays containing new item objects. + * This condition allows the in-memory backend service to mutate the collections + * and their items without touching the original source data. + * + * The in-mem backend service calls this method without a value the first time. + * The service calls it with the `RequestInfo` when it receives a POST `commands/resetDb` request. + * Your InMemoryDbService can adjust its behavior accordingly. + */ abstract createDb(reqInfo?: RequestInfo): {} | Observable<{}> | Promise<{}>; } /** -* Interface for InMemoryBackend configuration options -*/ + * Interface for InMemoryBackend configuration options + */ export abstract class InMemoryBackendConfigArgs { /** * The base path to the api, e.g, 'api/'. @@ -76,12 +76,12 @@ export abstract class InMemoryBackendConfigArgs { */ post204?: boolean; /** - * false (default) should NOT update existing item with POST. false: OK to update. - */ + * false (default) should NOT update existing item with POST. false: OK to update. + */ post409?: boolean; /** - * true (default) should NOT return the item (204) after a POST. false: return the item (200). - */ + * true (default) should NOT return the item (204) after a POST. false: return the item (200). + */ put204?: boolean; /** * false (default) if item not found, create as new item; false: should 404. @@ -95,31 +95,35 @@ export abstract class InMemoryBackendConfigArgs { ///////////////////////////////// /** -* InMemoryBackendService configuration options -* Usage: -* InMemoryWebApiModule.forRoot(InMemHeroService, {delay: 600}) -* -* or if providing separately: -* provide(InMemoryBackendConfig, {useValue: {delay: 600}}), -*/ + * InMemoryBackendService configuration options + * Usage: + * InMemoryWebApiModule.forRoot(InMemHeroService, {delay: 600}) + * + * or if providing separately: + * provide(InMemoryBackendConfig, {useValue: {delay: 600}}), + */ @Injectable() export class InMemoryBackendConfig implements InMemoryBackendConfigArgs { constructor(config: InMemoryBackendConfigArgs = {}) { - Object.assign(this, { - // default config: - caseSensitiveSearch: false, - dataEncapsulation: false, // do NOT wrap content within an object with a `data` property - delay: 500, // simulate latency by delaying response - delete404: false, // don't complain if can't find entity to delete - passThruUnknownUrl: false, // 404 if can't process URL - post204: true, // don't return the item after a POST - post409: false, // don't update existing item with that ID - put204: true, // don't return the item after a PUT - put404: false, // create new item if PUT item with that ID not found - apiBase: undefined, // assumed to be the first path segment - host: undefined, // default value is actually set in InMemoryBackendService ctor - rootPath: undefined // default value is actually set in InMemoryBackendService ctor - }, config); + Object.assign( + this, + { + // default config: + caseSensitiveSearch: false, + dataEncapsulation: false, // do NOT wrap content within an object with a `data` property + delay: 500, // simulate latency by delaying response + delete404: false, // don't complain if can't find entity to delete + passThruUnknownUrl: false, // 404 if can't process URL + post204: true, // don't return the item after a POST + post409: false, // don't update existing item with that ID + put204: true, // don't return the item after a PUT + put404: false, // create new item if PUT item with that ID not found + apiBase: undefined, // assumed to be the first path segment + host: undefined, // default value is actually set in InMemoryBackendService ctor + rootPath: undefined // default value is actually set in InMemoryBackendService ctor + }, + config + ); } } @@ -148,7 +152,9 @@ export function parseUri(str: string): UriInfo { const keys = Object.keys(uri); let i = keys.length; - while (i--) { uri[keys[i]] = m[i] || ''; } + while (i--) { + uri[keys[i]] = m[i] || ''; + } return uri; } @@ -163,11 +169,11 @@ export function parseUri(str: string): UriInfo { * resourceUrl: 'http://localhost/api/customers/' */ export interface ParsedRequestUrl { - apiBase: string; // the slash-terminated "base" for api requests (e.g. `api/`) + apiBase: string; // the slash-terminated "base" for api requests (e.g. `api/`) collectionName: string; // the name of the collection of data items (e.g.,`customers`) - id: string; // the (optional) id of the item in the collection (e.g., `42`) + id: string; // the (optional) id of the item in the collection (e.g., `42`) query: Map; // the query parameters; - resourceUrl: string; // the effective URL for the resource (e.g., 'http://localhost/api/customers/') + resourceUrl: string; // the effective URL for the resource (e.g., 'http://localhost/api/customers/') } export interface PassThruBackend { @@ -191,10 +197,10 @@ export interface RequestCore { } /** -* Interface for object w/ info about the current request url -* extracted from an Http Request. -* Also holds utility methods and configuration data from this service -*/ + * Interface for object w/ info about the current request url + * extracted from an Http Request. + * Also holds utility methods and configuration data from this service + */ export interface RequestInfo { req: RequestCore; // concrete type depends upon the Http library apiBase: string; diff --git a/src/jasmine-ajax.spec.js b/src/jasmine-ajax.spec.js new file mode 100644 index 0000000..22d62e2 --- /dev/null +++ b/src/jasmine-ajax.spec.js @@ -0,0 +1,91 @@ +// Confirm that the jasmine ajax testing library works in this project stand-alone. +// These tests are copied from the documentation +// https://jasmine.github.io/edge/ajax.html +// See karma.conf and package.json changes related to using this jasmine plugin +// https://www.npmjs.com/package/karma-jasmine-ajax +describe('Jasmine ajax mocking proof-of-life', function () { + describe('suite wide usage', function () { + beforeEach(function () { + jasmine.Ajax.install(); + }); + afterEach(function () { + jasmine.Ajax.uninstall(); + }); + it('specifying response when you need it', function () { + var doneFn = jasmine.createSpy('success'); + var xhr = new XMLHttpRequest(); + xhr.onreadystatechange = function (args) { + if (this.readyState === this.DONE) { + doneFn(this.responseText); + } + }; + xhr.open('GET', '/some/cool/url'); + xhr.send(); + expect(jasmine.Ajax.requests.mostRecent().url).toBe('/some/cool/url'); + expect(doneFn).not.toHaveBeenCalled(); + jasmine.Ajax.requests.mostRecent().respondWith({ + 'status': 200, + 'contentType': 'text/plain', + 'responseText': 'awesome response' + }); + expect(doneFn).toHaveBeenCalledWith('awesome response'); + }); + it('allows responses to be setup ahead of time', function () { + var doneFn = jasmine.createSpy('success'); + jasmine.Ajax.stubRequest('/another/url').andReturn({ + 'responseText': 'immediate response' + }); + var xhr = new XMLHttpRequest(); + xhr.onreadystatechange = function (args) { + if (this.readyState === this.DONE) { + doneFn(this.responseText); + } + }; + xhr.open('GET', '/another/url'); + xhr.send(); + expect(doneFn).toHaveBeenCalledWith('immediate response'); + }); + }); + it('allows use in a single spec', function () { + var doneFn = jasmine.createSpy('success'); + jasmine.Ajax.withMock(function () { + var xhr = new XMLHttpRequest(); + xhr.onreadystatechange = function (args) { + if (this.readyState === this.DONE) { + doneFn(this.responseText); + } + }; + xhr.open('GET', '/some/cool/url'); + xhr.send(); + expect(doneFn).not.toHaveBeenCalled(); + jasmine.Ajax.requests.mostRecent().respondWith({ + 'status': 200, + 'responseText': 'in spec response' + }); + expect(doneFn).toHaveBeenCalledWith('in spec response'); + }); + }); + it('allows use in a single spec (json response)', function () { + var doneFn = jasmine.createSpy('success'); + jasmine.Ajax.withMock(function () { + var xhr = new XMLHttpRequest(); + xhr.onreadystatechange = function (args) { + if (this.readyState === this.DONE) { + doneFn(this.response); + } + }; + xhr.open('GET', '/some/cool/url'); + xhr.send(); + expect(doneFn).not.toHaveBeenCalled(); + var data = { data: [{ id: 42, name: 'Dude' }] }; + var expectedResponse = JSON.stringify(data); + jasmine.Ajax.requests.mostRecent().respondWith({ + 'status': 200, + 'contentType': 'application/json', + 'response': expectedResponse + }); + expect(doneFn).toHaveBeenCalledWith(expectedResponse); + }); + }); +}); +//# sourceMappingURL=jasmine-ajax.spec.js.map \ No newline at end of file diff --git a/src/testing/jasmine-ajax.spec.ts b/src/jasmine-ajax.spec.ts similarity index 88% rename from src/testing/jasmine-ajax.spec.ts rename to src/jasmine-ajax.spec.ts index 262d365..a6726be 100644 --- a/src/testing/jasmine-ajax.spec.ts +++ b/src/jasmine-ajax.spec.ts @@ -5,9 +5,7 @@ // https://www.npmjs.com/package/karma-jasmine-ajax describe('Jasmine ajax mocking proof-of-life', () => { - describe('suite wide usage', () => { - beforeEach(function() { jasmine.Ajax.install(); }); @@ -33,9 +31,9 @@ describe('Jasmine ajax mocking proof-of-life', () => { expect(doneFn).not.toHaveBeenCalled(); jasmine.Ajax.requests.mostRecent().respondWith({ - 'status': 200, - 'contentType': 'text/plain', - 'responseText': 'awesome response' + status: 200, + contentType: 'text/plain', + responseText: 'awesome response' }); expect(doneFn).toHaveBeenCalledWith('awesome response'); @@ -45,7 +43,7 @@ describe('Jasmine ajax mocking proof-of-life', () => { const doneFn = jasmine.createSpy('success'); jasmine.Ajax.stubRequest('/another/url').andReturn({ - 'responseText': 'immediate response' + responseText: 'immediate response' }); const xhr = new XMLHttpRequest(); xhr.onreadystatechange = function(args) { @@ -59,7 +57,6 @@ describe('Jasmine ajax mocking proof-of-life', () => { expect(doneFn).toHaveBeenCalledWith('immediate response'); }); - }); it('allows use in a single spec', () => { @@ -78,8 +75,8 @@ describe('Jasmine ajax mocking proof-of-life', () => { expect(doneFn).not.toHaveBeenCalled(); jasmine.Ajax.requests.mostRecent().respondWith({ - 'status': 200, - 'responseText': 'in spec response' + status: 200, + responseText: 'in spec response' }); expect(doneFn).toHaveBeenCalledWith('in spec response'); @@ -102,16 +99,15 @@ describe('Jasmine ajax mocking proof-of-life', () => { expect(doneFn).not.toHaveBeenCalled(); const data = { data: [{ id: 42, name: 'Dude' }] }; - const expectedResponse = JSON.stringify(data); + const expectedResponse = JSON.stringify(data); jasmine.Ajax.requests.mostRecent().respondWith({ - 'status': 200, - 'contentType': 'application/json', - 'response': expectedResponse + status: 200, + contentType: 'application/json', + response: expectedResponse }); expect(doneFn).toHaveBeenCalledWith(expectedResponse); }); }); - }); diff --git a/test.ts b/test.ts index e5317c3..ba1ce20 100755 --- a/test.ts +++ b/test.ts @@ -1,5 +1,4 @@ // This file is required by karma.conf.js and loads recursively all the .spec and framework files - import 'reflect-metadata'; import 'zone.js/dist/zone-testing'; From bc0ea0c9ab8631b6834fb316c3f2d7d3d4bfa72a Mon Sep 17 00:00:00 2001 From: Sumanth Chinthagunta Date: Thu, 22 Mar 2018 13:19:51 -0700 Subject: [PATCH 4/8] working2 --- integration/app/app.component.ts | 5 ++++- .../app/hero/http-client-hero.service.ts | 19 ++++++++++--------- package.json | 10 ++++++++-- src/backend.service.ts | 7 +++++++ src/http-backend.service.ts | 1 + src/http-client-backend.service.ts | 1 + 6 files changed, 31 insertions(+), 12 deletions(-) diff --git a/integration/app/app.component.ts b/integration/app/app.component.ts index e0170b2..0c7613f 100755 --- a/integration/app/app.component.ts +++ b/integration/app/app.component.ts @@ -18,6 +18,9 @@ export class AppComponent { } getHeroes(): void { - this.heroService.getHeroes().subscribe(heroes => (this.heroes = heroes)); + this.heroService.getHeroes().subscribe( + heroes => (this.heroes = heroes), + error => console.log(error) + ); } } diff --git a/integration/app/hero/http-client-hero.service.ts b/integration/app/hero/http-client-hero.service.ts index 0c46090..a3cdf8b 100644 --- a/integration/app/hero/http-client-hero.service.ts +++ b/integration/app/hero/http-client-hero.service.ts @@ -2,6 +2,7 @@ import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http'; import { Observable } from 'rxjs/Observable'; +import { tap, catchError } from 'rxjs/operators'; import 'rxjs/add/observable/throw'; import 'rxjs/add/operator/do'; @@ -21,12 +22,10 @@ export class HttpClientHeroService extends HeroService { super(); } - getHeroes(): Observable { - return ( - this.http - .get(this.heroesUrl) - // .do(data => console.log(data)) // eyeball results in the console - .catch(this.handleError) + getHeroes (): Observable { + return this.http.get(this.heroesUrl).pipe( + tap(data => console.log(data)), // eyeball results in the console + catchError(this.handleError) ); } @@ -65,14 +64,16 @@ export class HttpClientHeroService extends HeroService { return this.http.get(this.heroesUrl, options).catch(this.handleError); } - updateHero(hero: Hero): Observable { - return this.http.put(this.heroesUrl, hero, cudOptions).catch(this.handleError); + updateHero (hero: Hero): Observable { + return this.http.put(this.heroesUrl, hero, cudOptions).pipe( + catchError(this.handleError) + ); } private handleError(error: any) { // In a real world app, we might send the error to remote logging infrastructure // and reformat for user consumption console.error(error); // log to console instead - return Observable.throw(error); + return Observable.throw(new Error(error)); } } diff --git a/package.json b/package.json index e462a1a..5ce8b6e 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,21 @@ { "name": "@xmlking/angular-in-memory-web-api", - "version": "0.5.9", + "version": "0.5.10", "description": "An in-memory web api for Angular demos and tests", "main": "index.js", "scripts": { - "//": "Dev Tools", + "//": "Start the applications", "start": "ng serve --aot", "start:integration": "ng serve --aot --app 1", + + "//": "Testing", "test": "ng test", "test:integration": "yarn build && yarn link --frozen-lockfile --silent && ng test --progress=false --preserve-symlinks --app 1 -sr --browsers ChromeHeadless", + + "//": "Building", "build": "ng-packagr -p package.json", + + "//": "Dev Tools", "lint": "tslint -c tslint.json 'src/**/*.ts'", "prettier": "prettier --write \"**/*.ts\"" }, diff --git a/src/backend.service.ts b/src/backend.service.ts index f69b945..6a1f2cd 100755 --- a/src/backend.service.ts +++ b/src/backend.service.ts @@ -8,8 +8,11 @@ import { isPromise } from 'rxjs/util/isPromise'; import { concatMap } from 'rxjs/operator/concatMap'; import { first } from 'rxjs/operator/first'; +// import { concatMap } from 'rxjs/operators'; +// import { first } from 'rxjs/operators'; import { getStatusText, isSuccess, STATUS } from './http-status-codes'; +import { delay } from 'rxjs/operators'; import { delayResponse } from './delay-response'; import { @@ -152,6 +155,10 @@ export abstract class BackendService { const d = this.config.delay; return d === 0 ? response : delayResponse(response, d || 500); } + protected addDelay0(response: Observable): Observable { + const d = this.config.delay; + return d === 0 ? response : delay.call(response, d || 500); + } /** * Apply query/search parameters as a filter over the collection diff --git a/src/http-backend.service.ts b/src/http-backend.service.ts index 34d775b..d9671ea 100755 --- a/src/http-backend.service.ts +++ b/src/http-backend.service.ts @@ -18,6 +18,7 @@ import { import { Observable } from 'rxjs/Observable'; import { map } from 'rxjs/operator/map'; +// import { map } from 'rxjs/operators'; import { STATUS } from './http-status-codes'; diff --git a/src/http-client-backend.service.ts b/src/http-client-backend.service.ts index 3e0c331..6b6fde8 100755 --- a/src/http-client-backend.service.ts +++ b/src/http-client-backend.service.ts @@ -13,6 +13,7 @@ import { import { Observable } from 'rxjs/Observable'; import { map } from 'rxjs/operator/map'; +// import { map } from 'rxjs/operators'; import { STATUS } from './http-status-codes'; From 5a41a0c95753d8cd896325d25264728d29671824 Mon Sep 17 00:00:00 2001 From: Sumanth Chinthagunta Date: Thu, 22 Mar 2018 14:09:21 -0700 Subject: [PATCH 5/8] fully working --- integration/app/app.component.ts | 5 +---- .../app/hero/http-client-hero.service.ts | 12 +++++------ package.json | 2 +- src/backend.service.ts | 21 +++++++------------ src/http-backend.service.ts | 6 ++---- src/http-client-backend.service.ts | 12 +++++------ src/utils.ts | 3 +++ 7 files changed, 24 insertions(+), 37 deletions(-) create mode 100644 src/utils.ts diff --git a/integration/app/app.component.ts b/integration/app/app.component.ts index 0c7613f..fc7f2b2 100755 --- a/integration/app/app.component.ts +++ b/integration/app/app.component.ts @@ -18,9 +18,6 @@ export class AppComponent { } getHeroes(): void { - this.heroService.getHeroes().subscribe( - heroes => (this.heroes = heroes), - error => console.log(error) - ); + this.heroService.getHeroes().subscribe(heroes => (this.heroes = heroes), error => console.log(error)); } } diff --git a/integration/app/hero/http-client-hero.service.ts b/integration/app/hero/http-client-hero.service.ts index a3cdf8b..61d8ef0 100644 --- a/integration/app/hero/http-client-hero.service.ts +++ b/integration/app/hero/http-client-hero.service.ts @@ -2,7 +2,7 @@ import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http'; import { Observable } from 'rxjs/Observable'; -import { tap, catchError } from 'rxjs/operators'; +import { catchError } from 'rxjs/operators'; import 'rxjs/add/observable/throw'; import 'rxjs/add/operator/do'; @@ -22,9 +22,9 @@ export class HttpClientHeroService extends HeroService { super(); } - getHeroes (): Observable { + getHeroes(): Observable { return this.http.get(this.heroesUrl).pipe( - tap(data => console.log(data)), // eyeball results in the console + // tap(data => console.log(data)), // eyeball results in the console catchError(this.handleError) ); } @@ -64,10 +64,8 @@ export class HttpClientHeroService extends HeroService { return this.http.get(this.heroesUrl, options).catch(this.handleError); } - updateHero (hero: Hero): Observable { - return this.http.put(this.heroesUrl, hero, cudOptions).pipe( - catchError(this.handleError) - ); + updateHero(hero: Hero): Observable { + return this.http.put(this.heroesUrl, hero, cudOptions).pipe(catchError(this.handleError)); } private handleError(error: any) { diff --git a/package.json b/package.json index 5ce8b6e..529e5a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@xmlking/angular-in-memory-web-api", - "version": "0.5.10", + "version": "0.5.11", "description": "An in-memory web api for Angular demos and tests", "main": "index.js", "scripts": { diff --git a/src/backend.service.ts b/src/backend.service.ts index 6a1f2cd..75af5df 100755 --- a/src/backend.service.ts +++ b/src/backend.service.ts @@ -4,16 +4,13 @@ import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import { of } from 'rxjs/observable/of'; import { fromPromise } from 'rxjs/observable/fromPromise'; -import { isPromise } from 'rxjs/util/isPromise'; -import { concatMap } from 'rxjs/operator/concatMap'; -import { first } from 'rxjs/operator/first'; -// import { concatMap } from 'rxjs/operators'; -// import { first } from 'rxjs/operators'; +import 'rxjs/add/operator/concatMap'; +import 'rxjs/add/operator/first'; import { getStatusText, isSuccess, STATUS } from './http-status-codes'; -import { delay } from 'rxjs/operators'; import { delayResponse } from './delay-response'; +import { isPromise } from './utils'; import { HeadersCore, @@ -59,7 +56,7 @@ export abstract class BackendService { this.dbReadySubject = new BehaviorSubject(false); this.resetDb(); } - return first.call(this.dbReadySubject.asObservable(), (r: boolean) => r); + return this.dbReadySubject.asObservable().first((r: boolean) => r); } /** @@ -88,7 +85,7 @@ export abstract class BackendService { */ protected handleRequest(req: RequestCore): Observable { // handle the request when there is an in-memory database - return concatMap.call(this.dbReady, () => this.handleRequest_(req)); + return this.dbReady.concatMap(() => this.handleRequest_(req)); } protected handleRequest_(req: RequestCore): Observable { @@ -155,10 +152,6 @@ export abstract class BackendService { const d = this.config.delay; return d === 0 ? response : delayResponse(response, d || 500); } - protected addDelay0(response: Observable): Observable { - const d = this.config.delay; - return d === 0 ? response : delay.call(response, d || 500); - } /** * Apply query/search parameters as a filter over the collection @@ -261,7 +254,7 @@ export abstract class BackendService { switch (command) { case 'resetdb': resOptions.status = STATUS.NO_CONTENT; - return concatMap.call(this.resetDb(reqInfo), () => + return this.resetDb(reqInfo).concatMap(() => this.createResponse$(() => resOptions, false /* no latency delay */) ); @@ -687,7 +680,7 @@ export abstract class BackendService { this.dbReadySubject.next(false); const db = this.inMemDbService.createDb(reqInfo); const db$ = db instanceof Observable ? db : isPromise(db) ? fromPromise(db) : of(db); - first.call(db$).subscribe((d: {}) => { + db$.first().subscribe((d: {}) => { this.db = d; this.dbReadySubject.next(true); }); diff --git a/src/http-backend.service.ts b/src/http-backend.service.ts index d9671ea..aa8e298 100755 --- a/src/http-backend.service.ts +++ b/src/http-backend.service.ts @@ -17,9 +17,7 @@ import { } from '@angular/http'; import { Observable } from 'rxjs/Observable'; -import { map } from 'rxjs/operator/map'; -// import { map } from 'rxjs/operators'; - +import 'rxjs/add/operator/map'; import { STATUS } from './http-status-codes'; import { InMemoryBackendConfig, InMemoryBackendConfigArgs, InMemoryDbService, ResponseOptions } from './interfaces'; @@ -106,7 +104,7 @@ export class HttpBackendService extends BackendService implements ConnectionBack } protected createResponse$fromResponseOptions$(resOptions$: Observable): Observable { - return map.call(resOptions$, (opts: ResponseOptionsArgs) => { + return resOptions$.map((opts: ResponseOptionsArgs) => { return new Response(new HttpResponseOptions(opts)); }); } diff --git a/src/http-client-backend.service.ts b/src/http-client-backend.service.ts index 6b6fde8..3014413 100755 --- a/src/http-client-backend.service.ts +++ b/src/http-client-backend.service.ts @@ -12,9 +12,7 @@ import { } from '@angular/common/http'; import { Observable } from 'rxjs/Observable'; -import { map } from 'rxjs/operator/map'; -// import { map } from 'rxjs/operators'; - +import 'rxjs/add/operator/map'; import { STATUS } from './http-status-codes'; import { InMemoryBackendConfig, InMemoryBackendConfigArgs, InMemoryDbService, ResponseOptions } from './interfaces'; @@ -85,18 +83,18 @@ export class HttpClientBackendService extends BackendService implements HttpBack } protected createQueryMap(search: string): Map { - const map = new Map(); + const myMap = new Map(); if (search) { const params = new HttpParams({ fromString: search }); - params.keys().forEach(p => map.set(p, params.getAll(p))); + params.keys().forEach(p => myMap.set(p, params.getAll(p))); } - return map; + return myMap; } protected createResponse$fromResponseOptions$( resOptions$: Observable ): Observable> { - return map.call(resOptions$, (opts: HttpResponseBase) => new HttpResponse(opts)); + return resOptions$.map((opts: HttpResponseBase) => new HttpResponse(opts)); } protected createPassThruBackend() { diff --git a/src/utils.ts b/src/utils.ts new file mode 100644 index 0000000..b8e1517 --- /dev/null +++ b/src/utils.ts @@ -0,0 +1,3 @@ +export function isPromise(value: any): value is PromiseLike { + return value && typeof (value).subscribe !== 'function' && typeof (value as any).then === 'function'; +} From e25fbb807d360941734c794f4eb6e3f7cb962e0b Mon Sep 17 00:00:00 2001 From: Sumanth Chinthagunta Date: Sat, 24 Mar 2018 18:16:59 -0700 Subject: [PATCH 6/8] Merge remote-tracking branch 'upstream/master' angular/core => 6.0.0-rc.0 --- integration/app/app.module.ts | 2 +- .../hero/hero-in-mem-data-override.service.ts | 0 .../app/hero/hero-in-mem-data.service.ts | 7 +- integration/app/hero/hero.service.spec.ts | 229 ++--- integration/app/hero/hero.service.ts | 12 +- integration/app/hero/hero.ts | 0 .../app/hero/http-client-hero.service.ts | 25 +- integration/app/hero/http-hero.service.ts | 60 +- integration/app/hero/in-mem-hero.service.ts | 2 +- package-lock.json | 590 ++++++------- package.json | 42 +- src/backend.service.ts | 25 +- src/http-backend.service.spec.ts | 790 +++++++++--------- src/http-backend.service.ts | 13 +- src/http-client-backend.service.spec.ts | 768 +++++++++-------- src/http-client-backend.service.ts | 7 +- tsconfig.json | 2 +- tslint.json | 3 +- 18 files changed, 1238 insertions(+), 1339 deletions(-) mode change 100644 => 100755 integration/app/hero/hero-in-mem-data-override.service.ts mode change 100644 => 100755 integration/app/hero/hero-in-mem-data.service.ts mode change 100644 => 100755 integration/app/hero/hero.service.spec.ts mode change 100644 => 100755 integration/app/hero/hero.service.ts mode change 100644 => 100755 integration/app/hero/hero.ts mode change 100644 => 100755 integration/app/hero/http-client-hero.service.ts mode change 100644 => 100755 src/http-backend.service.spec.ts mode change 100644 => 100755 src/http-client-backend.service.spec.ts diff --git a/integration/app/app.module.ts b/integration/app/app.module.ts index 7cc2394..8483b00 100755 --- a/integration/app/app.module.ts +++ b/integration/app/app.module.ts @@ -1,6 +1,6 @@ import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; -import { HttpClientInMemoryWebApiModule } from '@xmlking/angular-in-memory-web-api'; +import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api'; // import { HeroInMemDataService } from './hero/hero-in-mem-data.service'; import { InMemHeroService } from './hero/in-mem-hero.service'; diff --git a/integration/app/hero/hero-in-mem-data-override.service.ts b/integration/app/hero/hero-in-mem-data-override.service.ts old mode 100644 new mode 100755 diff --git a/integration/app/hero/hero-in-mem-data.service.ts b/integration/app/hero/hero-in-mem-data.service.ts old mode 100644 new mode 100755 index 4d2bbee..c1e83c9 --- a/integration/app/hero/hero-in-mem-data.service.ts +++ b/integration/app/hero/hero-in-mem-data.service.ts @@ -11,9 +11,8 @@ import { Injectable } from '@angular/core'; import { InMemoryDbService, RequestInfo } from '../../../src/interfaces'; -import { of } from 'rxjs/observable/of'; -import 'rxjs/add/operator/delay'; -// tslint:enable:no-unused-variable +import { of } from 'rxjs'; +import { delay } from 'rxjs/operators'; @Injectable() export class HeroInMemDataService implements InMemoryDbService { @@ -52,7 +51,7 @@ export class HeroInMemDataService implements InMemoryDbService { switch (returnType) { case 'observable': - return of(db).delay(10); + return of(db).pipe(delay(10)); case 'promise': return new Promise(resolve => { setTimeout(() => resolve(db), 10); diff --git a/integration/app/hero/hero.service.spec.ts b/integration/app/hero/hero.service.spec.ts old mode 100644 new mode 100755 index 86e8d8d..1684af4 --- a/integration/app/hero/hero.service.spec.ts +++ b/integration/app/hero/hero.service.spec.ts @@ -1,8 +1,10 @@ import { async, TestBed } from '@angular/core/testing'; -import { concatMap, tap, map } from 'rxjs/operators'; +import { concatMap, tap } from 'rxjs/operators'; -import { failure } from '../testing'; +export function failure(err: any) { + fail(JSON.stringify(err)); +} import { Hero } from './hero'; import { HeroService } from './hero.service'; @@ -15,129 +17,136 @@ import { HeroService } from './hero.service'; * Ideally configured for short or no delay. */ export class HeroServiceCoreSpec { - run() { - describe('HeroService core', () => { - let heroService: HeroService; beforeEach(function() { heroService = TestBed.get(HeroService); }); - it('can get heroes', async(() => { - heroService.getHeroes() - .subscribe( - heroes => { + it( + 'can get heroes', + async(() => { + heroService.getHeroes().subscribe(heroes => { // console.log(heroes); expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); - - it('can get hero w/ id=1', async(() => { - heroService.getHero(1) - .subscribe( - hero => { - // console.log(hero); - expect(hero.name).toBe('Windstorm'); - }, - () => fail('getHero failed') + }, failure); + }) + ); + + it( + 'can get hero w/ id=1', + async(() => { + heroService.getHero(1).subscribe( + hero => { + // console.log(hero); + expect(hero.name).toBe('Windstorm'); + }, + () => fail('getHero failed') ); - })); - - it('should 404 when hero id not found', async(() => { - const id = 123456; - heroService.getHero(id) - .subscribe( - () => fail(`should not have found hero for id='${id}'`), - err => { - expect(err.status).toBe(404, 'should have 404 status'); - } + }) + ); + + it( + 'should 404 when hero id not found', + async(() => { + const id = 123456; + heroService.getHero(id).subscribe( + () => fail(`should not have found hero for id='${id}'`), + err => { + expect(err.status).toBe(404, 'should have 404 status'); + } ); - })); - - it('can add a hero', async(() => { - heroService.addHero('FunkyBob').pipe( - tap(hero => { - // console.log(hero); - expect(hero.name).toBe('FunkyBob'); - }), - // Get the new hero by its generated id - concatMap(hero => heroService.getHero(hero.id)), - ).subscribe( - hero => { - expect(hero.name).toBe('FunkyBob'); - }, - err => failure('re-fetch of new hero failed') - ); - }), 10000); - - it('can delete a hero', async(() => { - const id = 1; - heroService.deleteHero(id) - .subscribe( - (_: {}) => { + }) + ); + + it( + 'can add a hero', + async(() => { + heroService + .addHero('FunkyBob').pipe( + tap(hero => { + // console.log(hero); + expect(hero.name).toBe('FunkyBob'); + }), + // Get the new hero by its generated id + concatMap(hero => heroService.getHero(hero.id)) + ) + .subscribe( + hero => { + expect(hero.name).toBe('FunkyBob'); + }, + err => failure('re-fetch of new hero failed') + ); + }), + 10000 + ); + + it( + 'can delete a hero', + async(() => { + const id = 1; + heroService.deleteHero(id).subscribe((_: {}) => { expect(_).toBeDefined(); - }, - failure - ); - })); - - it('should allow delete of non-existent hero', async(() => { - const id = 123456; - heroService.deleteHero(id) - .subscribe( - (_: {}) => { + }, failure); + }) + ); + + it( + 'should allow delete of non-existent hero', + async(() => { + const id = 123456; + heroService.deleteHero(id).subscribe((_: {}) => { expect(_).toBeDefined(); - }, - failure - ); - })); - - it('can search for heroes by name containing "a"', async(() => { - heroService.searchHeroes('a') - .subscribe( - (heroes: Hero[]) => { + }, failure); + }) + ); + + it( + 'can search for heroes by name containing "a"', + async(() => { + heroService.searchHeroes('a').subscribe((heroes: Hero[]) => { expect(heroes.length).toBe(3, 'should find 3 heroes with letter "a"'); - }, - failure - ); - })); - - it('can update existing hero', async(() => { - const id = 1; - heroService.getHero(id).pipe( - concatMap(hero => { - hero.name = 'Thunderstorm'; - return heroService.updateHero(hero); - }), - concatMap(() => { - return heroService.getHero(id); - }) - ).subscribe( - hero => { - console.log(hero); - expect(hero.name).toBe('Thunderstorm'); - }, - err => fail('re-fetch of updated hero failed') - ); - }), 10000); - - it('should create new hero when try to update non-existent hero', async(() => { - const falseHero = new Hero(12321, 'DryMan'); - - heroService.updateHero(falseHero) - .subscribe( - hero => { + }, failure); + }) + ); + + it( + 'can update existing hero', + async(() => { + const id = 1; + heroService + .getHero(id).pipe( + concatMap(hero => { + hero.name = 'Thunderstorm'; + return heroService.updateHero(hero); + }), + concatMap(() => { + return heroService.getHero(id); + }) + ) + .subscribe( + hero => { + console.log(hero); + expect(hero.name).toBe('Thunderstorm'); + }, + err => fail('re-fetch of updated hero failed') + ); + }), + 10000 + ); + + it( + 'should create new hero when try to update non-existent hero', + async(() => { + const falseHero = new Hero(12321, 'DryMan'); + + heroService.updateHero(falseHero).subscribe(hero => { expect(hero.name).toBe(falseHero.name); - }, - failure - ); - })); - + }, failure); + }) + ); }); - } + } } diff --git a/integration/app/hero/hero.service.ts b/integration/app/hero/hero.service.ts old mode 100644 new mode 100755 index 33f5c3f..6e6097b --- a/integration/app/hero/hero.service.ts +++ b/integration/app/hero/hero.service.ts @@ -1,13 +1,13 @@ -import { Hero } from './hero'; +import { Hero } from './hero'; import { Observable } from 'rxjs'; export abstract class HeroService { - heroesUrl = 'api/heroes'; // URL to web api + heroesUrl = 'api/heroes'; // URL to web api - abstract getHeroes (): Observable; + abstract getHeroes(): Observable; abstract getHero(id: number): Observable; - abstract addHero (name: string): Observable; - abstract deleteHero (hero: Hero | number): Observable; + abstract addHero(name: string): Observable; + abstract deleteHero(hero: Hero | number): Observable; abstract searchHeroes(term: string): Observable; - abstract updateHero (hero: Hero): Observable; + abstract updateHero(hero: Hero): Observable; } diff --git a/integration/app/hero/hero.ts b/integration/app/hero/hero.ts old mode 100644 new mode 100755 diff --git a/integration/app/hero/http-client-hero.service.ts b/integration/app/hero/http-client-hero.service.ts old mode 100644 new mode 100755 index 61d8ef0..041ecd9 --- a/integration/app/hero/http-client-hero.service.ts +++ b/integration/app/hero/http-client-hero.service.ts @@ -1,20 +1,13 @@ import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http'; -import { Observable } from 'rxjs/Observable'; +import { Observable, throwError } from 'rxjs'; import { catchError } from 'rxjs/operators'; -import 'rxjs/add/observable/throw'; - -import 'rxjs/add/operator/do'; -import 'rxjs/add/operator/catch'; -import 'rxjs/add/operator/map'; import { Hero } from './hero'; import { HeroService } from './hero.service'; -const cudOptions = { - headers: new HttpHeaders({ 'Content-Type': 'application/json' }) -}; +const cudOptions = { headers: new HttpHeaders({ 'Content-Type': 'application/json' }) }; @Injectable() export class HttpClientHeroService extends HeroService { @@ -32,7 +25,7 @@ export class HttpClientHeroService extends HeroService { // This get-by-id will 404 when id not found getHero(id: number): Observable { const url = `${this.heroesUrl}/${id}`; - return this.http.get(url).catch(this.handleError); + return this.http.get(url).pipe(catchError(this.handleError)); } // This get-by-id does not 404; returns undefined when id not found @@ -46,14 +39,14 @@ export class HttpClientHeroService extends HeroService { addHero(name: string): Observable { const hero = { name }; - return this.http.post(this.heroesUrl, hero, cudOptions).catch(this.handleError); + return this.http.post(this.heroesUrl, hero, cudOptions).pipe(catchError(this.handleError)); } deleteHero(hero: Hero | number): Observable { const id = typeof hero === 'number' ? hero : hero.id; const url = `${this.heroesUrl}/${id}`; - return this.http.delete(url, cudOptions).catch(this.handleError); + return this.http.delete(url, cudOptions).pipe(catchError(this.handleError)); } searchHeroes(term: string): Observable { @@ -61,17 +54,17 @@ export class HttpClientHeroService extends HeroService { // add safe, encoded search parameter if term is present const options = term ? { params: new HttpParams().set('name', term) } : {}; - return this.http.get(this.heroesUrl, options).catch(this.handleError); + return this.http.get(this.heroesUrl, options).pipe(catchError(this.handleError)); } - updateHero(hero: Hero): Observable { - return this.http.put(this.heroesUrl, hero, cudOptions).pipe(catchError(this.handleError)); + updateHero(hero: Hero): Observable { + return this.http.put(this.heroesUrl, hero, cudOptions).pipe(catchError(this.handleError)); } private handleError(error: any) { // In a real world app, we might send the error to remote logging infrastructure // and reformat for user consumption console.error(error); // log to console instead - return Observable.throw(new Error(error)); + return throwError(error); } } diff --git a/integration/app/hero/http-hero.service.ts b/integration/app/hero/http-hero.service.ts index fc1a96b..a4dad42 100755 --- a/integration/app/hero/http-hero.service.ts +++ b/integration/app/hero/http-hero.service.ts @@ -1,19 +1,13 @@ import { Injectable } from '@angular/core'; import { Headers, Http, Response } from '@angular/http'; -import { Observable } from 'rxjs/Observable'; -import 'rxjs/add/observable/throw'; - -import 'rxjs/add/operator/do'; -import 'rxjs/add/operator/catch'; -import 'rxjs/add/operator/map'; +import { Observable, throwError } from 'rxjs'; +import { catchError, map } from 'rxjs/operators'; import { Hero } from './hero'; import { HeroService } from './hero.service'; -const cudOptions = { - headers: new Headers({ 'Content-Type': 'application/json' }) -}; +const cudOptions = { headers: new Headers({ 'Content-Type': 'application/json' }) }; @Injectable() export class HttpHeroService extends HeroService { @@ -22,22 +16,20 @@ export class HttpHeroService extends HeroService { } getHeroes(): Observable { - return ( - this.http - .get(this.heroesUrl) - // .do(data => console.log(data)) // eyeball results in the console - .map(res => res.json()) - .catch(this.handleError) + return this.http.get(this.heroesUrl).pipe( + // tap(data => console.log(data)), // eyeball results in the console + map(res => res.json()), + catchError(this.handleError) ); } // This get-by-id will 404 when id not found getHero(id: number): Observable { const url = `${this.heroesUrl}/${id}`; - return this.http - .get(url) - .map((r: Response) => r.json() as Hero) - .catch(this.handleError); + return this.http.get(url).pipe( + map((r: Response) => r.json() as Hero), + catchError(this.handleError) + ); } // This get-by-id does not 404; returns empty array when id not found @@ -52,40 +44,40 @@ export class HttpHeroService extends HeroService { addHero(name: string): Observable { const hero = { name }; - return this.http - .post(this.heroesUrl, hero, cudOptions) - .map(res => res.json()) - .catch(this.handleError); + return this.http.post(this.heroesUrl, hero, cudOptions).pipe( + map(res => res.json()), + catchError(this.handleError) + ); } deleteHero(hero: Hero | number): Observable { const id = typeof hero === 'number' ? hero : hero.id; const url = `${this.heroesUrl}/${id}`; - return this.http.delete(url, cudOptions).catch(this.handleError); + return this.http.delete(url, cudOptions).pipe( + map(_ => (_ as any) as Hero), // TODO: this is wrong, but I don't know what the right thing is + catchError(this.handleError) + ); } searchHeroes(term: string): Observable { term = term.trim(); // NB: not a safe encoded search parameter const search = term ? '/?name=' + term : ''; - return this.http - .get(this.heroesUrl + search) - .map(res => res.json()) - .catch(this.handleError); + return this.http.get(this.heroesUrl + search).pipe( + map(res => res.json()), + catchError(this.handleError) + ); } - updateHero(hero: Hero): Observable { - return this.http - .put(this.heroesUrl, hero, cudOptions) - .map(res => res.json()) - .catch(this.handleError); + updateHero(hero: Hero): Observable { + return this.http.put(this.heroesUrl, hero, cudOptions).pipe(map(res => res.json()), catchError(this.handleError)); } private handleError(error: any) { // In a real world app, we might send the error to remote logging infrastructure // and reformat for user consumption console.error(error); // log to console instead - return Observable.throw(error); + return throwError(error); } } diff --git a/integration/app/hero/in-mem-hero.service.ts b/integration/app/hero/in-mem-hero.service.ts index 2521ea6..fd1cc69 100644 --- a/integration/app/hero/in-mem-hero.service.ts +++ b/integration/app/hero/in-mem-hero.service.ts @@ -1,4 +1,4 @@ -import { InMemoryDbService } from '@xmlking/angular-in-memory-web-api'; +import { InMemoryDbService } from 'angular-in-memory-web-api'; export class InMemHeroService implements InMemoryDbService { createDb() { diff --git a/package-lock.json b/package-lock.json index 3e12265..ecac354 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "@xmlking/angular-in-memory-web-api", + "name": "angular-in-memory-web-api", "version": "0.5.11", "lockfileVersion": 1, "requires": true, @@ -14,6 +14,14 @@ "source-map": "0.5.7", "typescript": "2.6.2", "webpack-sources": "1.1.0" + }, + "dependencies": { + "typescript": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.6.2.tgz", + "integrity": "sha1-PFtv1/beCRQmkCfwPAlGdY92c6Q=", + "dev": true + } } }, "@angular-devkit/core": { @@ -111,11 +119,11 @@ "memory-fs": "0.4.1", "minimatch": "3.0.4", "node-modules-path": "1.0.1", - "node-sass": "4.7.2", + "node-sass": "4.8.3", "nopt": "4.0.1", "opn": "5.1.0", "portfinder": "1.0.13", - "postcss": "6.0.20", + "postcss": "6.0.21", "postcss-import": "11.1.0", "postcss-loader": "2.1.3", "postcss-url": "7.3.1", @@ -147,15 +155,6 @@ "requires": { "symbol-observable": "1.0.1" } - }, - "source-map-support": { - "version": "0.4.18", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", - "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", - "dev": true, - "requires": { - "source-map": "0.5.7" - } } } }, @@ -431,7 +430,7 @@ "dev": true, "requires": { "conventional-changelog-angular": "1.6.6", - "conventional-commits-parser": "2.1.5" + "conventional-commits-parser": "2.1.6" } }, "@commitlint/read": { @@ -443,7 +442,7 @@ "@commitlint/top-level": "6.1.3", "@marionebl/sander": "0.6.1", "babel-runtime": "6.26.0", - "git-raw-commits": "1.3.4" + "git-raw-commits": "1.3.5" } }, "@commitlint/resolve-extends": { @@ -535,6 +534,14 @@ "dev": true, "requires": { "typescript": "2.6.2" + }, + "dependencies": { + "typescript": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.6.2.tgz", + "integrity": "sha1-PFtv1/beCRQmkCfwPAlGdY92c6Q=", + "dev": true + } } }, "@schematics/package-update": { @@ -1108,7 +1115,7 @@ "caniuse-lite": "1.0.30000819", "normalize-range": "0.1.2", "num2fraction": "1.2.2", - "postcss": "6.0.20", + "postcss": "6.0.21", "postcss-value-parser": "3.3.0" } }, @@ -1686,7 +1693,7 @@ "dev": true, "requires": { "base64-js": "1.2.3", - "ieee754": "1.1.10" + "ieee754": "1.1.11" } }, "concat-stream": { @@ -1832,7 +1839,7 @@ "dev": true, "requires": { "base64-js": "1.2.3", - "ieee754": "1.1.10", + "ieee754": "1.1.11", "isarray": "1.0.0" } }, @@ -2573,9 +2580,9 @@ } }, "conventional-commits-parser": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-2.1.5.tgz", - "integrity": "sha512-jaAP61py+ISMF3/n3yIiIuY5h6mJlucOqawu5mLB1HaQADLvg/y5UB3pT7HSucZJan34lp7+7ylQPfbKEGmxrA==", + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-2.1.6.tgz", + "integrity": "sha512-3Z77cAKSvEG3D5BSm3IFkOTP2qz8TZX8e8OPU7BGP2ruP7zPs7laHSqiZ7eYup835FKP4yyj+DHjmcvmOyp/0w==", "dev": true, "requires": { "JSONStream": "1.3.2", @@ -3188,7 +3195,7 @@ "requires": { "globby": "6.1.0", "is-path-cwd": "1.0.0", - "is-path-in-cwd": "1.0.0", + "is-path-in-cwd": "1.0.1", "p-map": "1.2.0", "pify": "3.0.0", "rimraf": "2.6.2" @@ -4423,15 +4430,13 @@ "dependencies": { "abbrev": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.0.tgz", - "integrity": "sha1-0FVMIlZjbi9W58LlrRg/hZQo2B8=", + "bundled": true, "dev": true, "optional": true }, "ajv": { "version": "4.11.8", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz", - "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4441,21 +4446,18 @@ }, "ansi-regex": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "bundled": true, "dev": true }, "aproba": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.1.1.tgz", - "integrity": "sha1-ldNgDwdxCqDpKYxyatXs8urLq6s=", + "bundled": true, "dev": true, "optional": true }, "are-we-there-yet": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz", - "integrity": "sha1-u13KOCu5TwXhUZQ3PRb9O6HKEQ0=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4465,49 +4467,42 @@ }, "asn1": { "version": "0.2.3", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", - "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=", + "bundled": true, "dev": true, "optional": true }, "assert-plus": { "version": "0.2.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz", - "integrity": "sha1-104bh+ev/A24qttwIfP+SBAasjQ=", + "bundled": true, "dev": true, "optional": true }, "asynckit": { "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "bundled": true, "dev": true, "optional": true }, "aws-sign2": { "version": "0.6.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz", - "integrity": "sha1-FDQt0428yU0OW4fXY81jYSwOeU8=", + "bundled": true, "dev": true, "optional": true }, "aws4": { "version": "1.6.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.6.0.tgz", - "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4=", + "bundled": true, "dev": true, "optional": true }, "balanced-match": { "version": "0.4.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.4.2.tgz", - "integrity": "sha1-yz8+PHMtwPAe5wtAPzAuYddwmDg=", + "bundled": true, "dev": true }, "bcrypt-pbkdf": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz", - "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4516,8 +4511,7 @@ }, "block-stream": { "version": "0.0.9", - "resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz", - "integrity": "sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo=", + "bundled": true, "dev": true, "requires": { "inherits": "2.0.3" @@ -4525,8 +4519,7 @@ }, "boom": { "version": "2.10.1", - "resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz", - "integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=", + "bundled": true, "dev": true, "requires": { "hoek": "2.16.3" @@ -4534,8 +4527,7 @@ }, "brace-expansion": { "version": "1.1.7", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.7.tgz", - "integrity": "sha1-Pv/DxQ4ABTH7cg6v+A8K6O8jz1k=", + "bundled": true, "dev": true, "requires": { "balanced-match": "0.4.2", @@ -4544,34 +4536,29 @@ }, "buffer-shims": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/buffer-shims/-/buffer-shims-1.0.0.tgz", - "integrity": "sha1-mXjOMXOIxkmth5MCjDR37wRKi1E=", + "bundled": true, "dev": true }, "caseless": { "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", + "bundled": true, "dev": true, "optional": true }, "co": { "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", + "bundled": true, "dev": true, "optional": true }, "code-point-at": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "bundled": true, "dev": true }, "combined-stream": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz", - "integrity": "sha1-k4NwpXtKUd6ix3wV1cX9+JUWQAk=", + "bundled": true, "dev": true, "requires": { "delayed-stream": "1.0.0" @@ -4579,26 +4566,22 @@ }, "concat-map": { "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "bundled": true, "dev": true }, "console-control-strings": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", - "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", + "bundled": true, "dev": true }, "core-util-is": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "bundled": true, "dev": true }, "cryptiles": { "version": "2.0.5", - "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz", - "integrity": "sha1-O9/s3GCBR8HGcgL6KR59ylnqo7g=", + "bundled": true, "dev": true, "requires": { "boom": "2.10.1" @@ -4606,8 +4589,7 @@ }, "dashdash": { "version": "1.14.1", - "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4616,8 +4598,7 @@ "dependencies": { "assert-plus": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "bundled": true, "dev": true, "optional": true } @@ -4625,8 +4606,7 @@ }, "debug": { "version": "2.6.8", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.8.tgz", - "integrity": "sha1-5zFTHKLt4n0YgiJCfaF4IdaP9Pw=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4635,35 +4615,30 @@ }, "deep-extend": { "version": "0.4.2", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.4.2.tgz", - "integrity": "sha1-SLaZwn4zS/ifEIkr5DL25MfTSn8=", + "bundled": true, "dev": true, "optional": true }, "delayed-stream": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", + "bundled": true, "dev": true }, "delegates": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", - "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", + "bundled": true, "dev": true, "optional": true }, "detect-libc": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.2.tgz", - "integrity": "sha1-ca1dIEvxempsqPRQxhRUBm70YeE=", + "bundled": true, "dev": true, "optional": true }, "ecc-jsbn": { "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", - "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4672,28 +4647,24 @@ }, "extend": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz", - "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=", + "bundled": true, "dev": true, "optional": true }, "extsprintf": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.0.2.tgz", - "integrity": "sha1-4QgOBljjALBilJkMxw4VAiNf1VA=", + "bundled": true, "dev": true }, "forever-agent": { "version": "0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", + "bundled": true, "dev": true, "optional": true }, "form-data": { "version": "2.1.4", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.1.4.tgz", - "integrity": "sha1-M8GDrPGTJ27KqYFDpp6Uv+4XUNE=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4704,14 +4675,12 @@ }, "fs.realpath": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "bundled": true, "dev": true }, "fstream": { "version": "1.0.11", - "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.11.tgz", - "integrity": "sha1-XB+x8RdHcRTwYyoOtLcbPLD9MXE=", + "bundled": true, "dev": true, "requires": { "graceful-fs": "4.1.11", @@ -4722,8 +4691,7 @@ }, "fstream-ignore": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/fstream-ignore/-/fstream-ignore-1.0.5.tgz", - "integrity": "sha1-nDHa40dnAY/h0kmyTa2mfQktoQU=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4734,8 +4702,7 @@ }, "gauge": { "version": "2.7.4", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", - "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4751,8 +4718,7 @@ }, "getpass": { "version": "0.1.7", - "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4761,8 +4727,7 @@ "dependencies": { "assert-plus": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "bundled": true, "dev": true, "optional": true } @@ -4770,8 +4735,7 @@ }, "glob": { "version": "7.1.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", - "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "bundled": true, "dev": true, "requires": { "fs.realpath": "1.0.0", @@ -4784,21 +4748,18 @@ }, "graceful-fs": { "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "bundled": true, "dev": true }, "har-schema": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-1.0.5.tgz", - "integrity": "sha1-0mMTX0MwfALGAq/I/pWXDAFRNp4=", + "bundled": true, "dev": true, "optional": true }, "har-validator": { "version": "4.2.1", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-4.2.1.tgz", - "integrity": "sha1-M0gdDxu/9gDdID11gSpqX7oALio=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4808,15 +4769,13 @@ }, "has-unicode": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", - "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", + "bundled": true, "dev": true, "optional": true }, "hawk": { "version": "3.1.3", - "resolved": "https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz", - "integrity": "sha1-B4REvXwWQLD+VA0sm3PVlnjo4cQ=", + "bundled": true, "dev": true, "requires": { "boom": "2.10.1", @@ -4827,14 +4786,12 @@ }, "hoek": { "version": "2.16.3", - "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz", - "integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=", + "bundled": true, "dev": true }, "http-signature": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz", - "integrity": "sha1-33LiZwZs0Kxn+3at+OE0qPvPkb8=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4845,8 +4802,7 @@ }, "inflight": { "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "bundled": true, "dev": true, "requires": { "once": "1.4.0", @@ -4855,21 +4811,18 @@ }, "inherits": { "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "bundled": true, "dev": true }, "ini": { "version": "1.3.4", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.4.tgz", - "integrity": "sha1-BTfLedr1m1mhpRff9wbIbsA5Fi4=", + "bundled": true, "dev": true, "optional": true }, "is-fullwidth-code-point": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "bundled": true, "dev": true, "requires": { "number-is-nan": "1.0.1" @@ -4877,28 +4830,24 @@ }, "is-typedarray": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "bundled": true, "dev": true, "optional": true }, "isarray": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "bundled": true, "dev": true }, "isstream": { "version": "0.1.2", - "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", + "bundled": true, "dev": true, "optional": true }, "jodid25519": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/jodid25519/-/jodid25519-1.0.2.tgz", - "integrity": "sha1-BtSRIlUJNBlHfUJWM2BuDpB4KWc=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4907,22 +4856,19 @@ }, "jsbn": { "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "bundled": true, "dev": true, "optional": true }, "json-schema": { "version": "0.2.3", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", + "bundled": true, "dev": true, "optional": true }, "json-stable-stringify": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", - "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4931,22 +4877,19 @@ }, "json-stringify-safe": { "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", + "bundled": true, "dev": true, "optional": true }, "jsonify": { "version": "0.0.0", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", - "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", + "bundled": true, "dev": true, "optional": true }, "jsprim": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.0.tgz", - "integrity": "sha1-o7h+QCmNjDgFUtjMdiigu5WiKRg=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -4958,8 +4901,7 @@ "dependencies": { "assert-plus": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "bundled": true, "dev": true, "optional": true } @@ -4967,14 +4909,12 @@ }, "mime-db": { "version": "1.27.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.27.0.tgz", - "integrity": "sha1-gg9XIpa70g7CXtVeW13oaeVDbrE=", + "bundled": true, "dev": true }, "mime-types": { "version": "2.1.15", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.15.tgz", - "integrity": "sha1-pOv1BkCUVpI3uM9wBGd20J/JKu0=", + "bundled": true, "dev": true, "requires": { "mime-db": "1.27.0" @@ -4982,8 +4922,7 @@ }, "minimatch": { "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "bundled": true, "dev": true, "requires": { "brace-expansion": "1.1.7" @@ -4991,14 +4930,12 @@ }, "minimist": { "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "bundled": true, "dev": true }, "mkdirp": { "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "bundled": true, "dev": true, "requires": { "minimist": "0.0.8" @@ -5006,15 +4943,13 @@ }, "ms": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "bundled": true, "dev": true, "optional": true }, "node-pre-gyp": { "version": "0.6.39", - "resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.6.39.tgz", - "integrity": "sha512-OsJV74qxnvz/AMGgcfZoDaeDXKD3oY3QVIbBmwszTFkRisTSXbMQyn4UWzUMOtA5SVhrBZOTp0wcoSBgfMfMmQ==", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5033,8 +4968,7 @@ }, "nopt": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz", - "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5044,8 +4978,7 @@ }, "npmlog": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.0.tgz", - "integrity": "sha512-ocolIkZYZt8UveuiDS0yAkkIjid1o7lPG8cYm05yNYzBn8ykQtaiPMEGp8fY9tKdDgm8okpdKzkvu1y9hUYugA==", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5057,28 +4990,24 @@ }, "number-is-nan": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "bundled": true, "dev": true }, "oauth-sign": { "version": "0.8.2", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", - "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=", + "bundled": true, "dev": true, "optional": true }, "object-assign": { "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "bundled": true, "dev": true, "optional": true }, "once": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "bundled": true, "dev": true, "requires": { "wrappy": "1.0.2" @@ -5086,22 +5015,19 @@ }, "os-homedir": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", - "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", + "bundled": true, "dev": true, "optional": true }, "os-tmpdir": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", + "bundled": true, "dev": true, "optional": true }, "osenv": { "version": "0.1.4", - "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.4.tgz", - "integrity": "sha1-Qv5tWVPfBsgGS+bxdsPQWqqjRkQ=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5111,41 +5037,35 @@ }, "path-is-absolute": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "bundled": true, "dev": true }, "performance-now": { "version": "0.2.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-0.2.0.tgz", - "integrity": "sha1-M+8wxcd9TqIcWlOGnZG1bY8lVeU=", + "bundled": true, "dev": true, "optional": true }, "process-nextick-args": { "version": "1.0.7", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz", - "integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=", + "bundled": true, "dev": true }, "punycode": { "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", + "bundled": true, "dev": true, "optional": true }, "qs": { "version": "6.4.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz", - "integrity": "sha1-E+JtKK1rD/qpExLNO/cI7TUecjM=", + "bundled": true, "dev": true, "optional": true }, "rc": { "version": "1.2.1", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.1.tgz", - "integrity": "sha1-LgPo5C7kULjLPc5lvhv4l04d/ZU=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5157,8 +5077,7 @@ "dependencies": { "minimist": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "bundled": true, "dev": true, "optional": true } @@ -5166,8 +5085,7 @@ }, "readable-stream": { "version": "2.2.9", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.2.9.tgz", - "integrity": "sha1-z3jsb0ptHrQ9JkiMrJfwQudLf8g=", + "bundled": true, "dev": true, "requires": { "buffer-shims": "1.0.0", @@ -5181,8 +5099,7 @@ }, "request": { "version": "2.81.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz", - "integrity": "sha1-xpKJRqDgbF+Nb4qTM0af/aRimKA=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5212,8 +5129,7 @@ }, "rimraf": { "version": "2.6.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.1.tgz", - "integrity": "sha1-wjOOxkPfeht/5cVPqG9XQopV8z0=", + "bundled": true, "dev": true, "requires": { "glob": "7.1.2" @@ -5221,35 +5137,30 @@ }, "safe-buffer": { "version": "5.0.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.0.1.tgz", - "integrity": "sha1-0mPKVGls2KMGtcplUekt5XkY++c=", + "bundled": true, "dev": true }, "semver": { "version": "5.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz", - "integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=", + "bundled": true, "dev": true, "optional": true }, "set-blocking": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "bundled": true, "dev": true, "optional": true }, "signal-exit": { "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "bundled": true, "dev": true, "optional": true }, "sntp": { "version": "1.0.9", - "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz", - "integrity": "sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg=", + "bundled": true, "dev": true, "requires": { "hoek": "2.16.3" @@ -5257,8 +5168,7 @@ }, "sshpk": { "version": "1.13.0", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.13.0.tgz", - "integrity": "sha1-/yo+T9BEl1Vf7Zezmg/YL6+zozw=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5275,8 +5185,7 @@ "dependencies": { "assert-plus": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "bundled": true, "dev": true, "optional": true } @@ -5284,8 +5193,7 @@ }, "string-width": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "bundled": true, "dev": true, "requires": { "code-point-at": "1.1.0", @@ -5295,8 +5203,7 @@ }, "string_decoder": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.1.tgz", - "integrity": "sha1-YuIA8DmVWmgQ2N8KM//A8BNmLZg=", + "bundled": true, "dev": true, "requires": { "safe-buffer": "5.0.1" @@ -5304,15 +5211,13 @@ }, "stringstream": { "version": "0.0.5", - "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz", - "integrity": "sha1-TkhM1N5aC7vuGORjB3EKioFiGHg=", + "bundled": true, "dev": true, "optional": true }, "strip-ansi": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "bundled": true, "dev": true, "requires": { "ansi-regex": "2.1.1" @@ -5320,15 +5225,13 @@ }, "strip-json-comments": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "bundled": true, "dev": true, "optional": true }, "tar": { "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz", - "integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=", + "bundled": true, "dev": true, "requires": { "block-stream": "0.0.9", @@ -5338,8 +5241,7 @@ }, "tar-pack": { "version": "3.4.0", - "resolved": "https://registry.npmjs.org/tar-pack/-/tar-pack-3.4.0.tgz", - "integrity": "sha1-I74tf2cagzk3bL2wuP4/3r8xeYQ=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5355,8 +5257,7 @@ }, "tough-cookie": { "version": "2.3.2", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.2.tgz", - "integrity": "sha1-8IH3bkyFcg5sN6X6ztc3FQ2EByo=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5365,8 +5266,7 @@ }, "tunnel-agent": { "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5375,35 +5275,30 @@ }, "tweetnacl": { "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "bundled": true, "dev": true, "optional": true }, "uid-number": { "version": "0.0.6", - "resolved": "https://registry.npmjs.org/uid-number/-/uid-number-0.0.6.tgz", - "integrity": "sha1-DqEOgDXo61uOREnwbaHHMGY7qoE=", + "bundled": true, "dev": true, "optional": true }, "util-deprecate": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "bundled": true, "dev": true }, "uuid": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.0.1.tgz", - "integrity": "sha1-ZUS7ot/ajBzxfmKaOjBeK7H+5sE=", + "bundled": true, "dev": true, "optional": true }, "verror": { "version": "1.3.6", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.3.6.tgz", - "integrity": "sha1-z/XfEpRtKX0rqu+qJoniW+AcAFw=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5412,8 +5307,7 @@ }, "wide-align": { "version": "1.1.2", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.2.tgz", - "integrity": "sha512-ijDLlyQ7s6x1JgCLur53osjm/UXUYD9+0PbYKrBsYisYXzCxN+HC3mYDNy/dWdmf3AwqwU3CXwDCvsNgGK1S0w==", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5422,8 +5316,7 @@ }, "wrappy": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "bundled": true, "dev": true } } @@ -5589,9 +5482,9 @@ } }, "git-raw-commits": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/git-raw-commits/-/git-raw-commits-1.3.4.tgz", - "integrity": "sha512-G3O+41xHbscpgL5nA0DUkbFVgaAz5rd57AMSIMew8p7C8SyFwZDyn08MoXHkTl9zcD0LmxsLFPxbqFY4YPbpPA==", + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/git-raw-commits/-/git-raw-commits-1.3.5.tgz", + "integrity": "sha512-r6NFrgh9oGzHwMA0go6sEa8jgR+N2/74HPXIXR59asiJzxPXpmk3aM5SMH2bLGsmTPwJtysgbf8EE/LwWHqGgg==", "dev": true, "requires": { "dargs": "4.1.0", @@ -5820,7 +5713,7 @@ "is-redirect": "1.0.0", "is-retry-allowed": "1.1.0", "is-stream": "1.1.0", - "lowercase-keys": "1.0.0", + "lowercase-keys": "1.0.1", "safe-buffer": "5.1.1", "timed-out": "4.0.1", "unzip-response": "2.0.1", @@ -6497,9 +6390,9 @@ "dev": true }, "ieee754": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.10.tgz", - "integrity": "sha512-byWFX8OyW/qeVxcY21r6Ncxl0ZYHgnf0cPup2h34eHXrCJbOp7IuqnJ4Q0omfyWl6Z++BTI6bByf31pZt7iRLg==", + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.11.tgz", + "integrity": "sha512-VhDzCKN7K8ufStx/CLj5/PDTMgph+qwN5Pkd5i0sGnVwk56zJ0lkT8Qzi1xqWLS0Wp29DgDtNeS7v8/wMoZeHg==", "dev": true }, "iferr": { @@ -6953,9 +6846,9 @@ "dev": true }, "is-path-in-cwd": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz", - "integrity": "sha1-ZHdYK4IU1gI0YJRWcAO+ip6sBNw=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.1.tgz", + "integrity": "sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ==", "dev": true, "requires": { "is-path-inside": "1.0.1" @@ -7929,6 +7822,16 @@ "karma-jasmine": "1.1.1" } }, + "karma-junit-reporter": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/karma-junit-reporter/-/karma-junit-reporter-1.2.0.tgz", + "integrity": "sha1-T5xAzt+xo5X4rvh2q/lhiZF8Y5Y=", + "dev": true, + "requires": { + "path-is-absolute": "1.0.1", + "xmlbuilder": "8.2.2" + } + }, "karma-source-map-support": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/karma-source-map-support/-/karma-source-map-support-1.2.0.tgz", @@ -7936,17 +7839,6 @@ "dev": true, "requires": { "source-map-support": "0.4.18" - }, - "dependencies": { - "source-map-support": { - "version": "0.4.18", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", - "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", - "dev": true, - "requires": { - "source-map": "0.5.7" - } - } } }, "killable": { @@ -8124,7 +8016,7 @@ "listr": "0.13.0", "lodash": "4.17.5", "log-symbols": "2.2.0", - "micromatch": "3.1.9", + "micromatch": "3.1.10", "npm-which": "3.0.1", "p-map": "1.2.0", "path-is-inside": "1.0.2", @@ -8458,9 +8350,9 @@ "dev": true }, "micromatch": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.9.tgz", - "integrity": "sha512-SlIz6sv5UPaAVVFRKodKjCg48EbNoIhgetzfK/Cy0v5U52Z6zB136M8tp0UC9jM53LYbmIRihJszvvqpKkfm9g==", + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", "dev": true, "requires": { "arr-diff": "4.0.0", @@ -9061,9 +8953,9 @@ "dev": true }, "lowercase-keys": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.0.tgz", - "integrity": "sha1-TjNms55/VFfjXxMkvfb4jQv8cwY=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", "dev": true }, "lru-cache": { @@ -9399,6 +9291,24 @@ } } }, + "mixin-object": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mixin-object/-/mixin-object-2.0.1.tgz", + "integrity": "sha1-T7lJRB2rGCVA8f4DW6YOGUel5X4=", + "dev": true, + "requires": { + "for-in": "0.1.8", + "is-extendable": "0.1.1" + }, + "dependencies": { + "for-in": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-0.1.8.tgz", + "integrity": "sha1-2Hc5COMSVhCZUrH9ubP6hn0ndeE=", + "dev": true + } + } + }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", @@ -9616,9 +9526,9 @@ "glob": "7.1.2", "injection-js": "2.2.1", "less": "2.7.3", - "node-sass": "4.7.2", + "node-sass": "4.8.3", "node-sass-tilde-importer": "1.0.2", - "postcss": "6.0.20", + "postcss": "6.0.21", "postcss-clean": "1.1.0", "postcss-url": "7.3.1", "read-pkg-up": "3.0.0", @@ -9824,9 +9734,9 @@ "dev": true }, "node-sass": { - "version": "4.7.2", - "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.7.2.tgz", - "integrity": "sha512-CaV+wLqZ7//Jdom5aUFCpGNoECd7BbNhjuwdsX/LkXBrHl8eb1Wjw4HvWqcFvhr5KuNgAk8i/myf/MQ1YYeroA==", + "version": "4.8.3", + "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.8.3.tgz", + "integrity": "sha512-tfFWhUsCk/Y19zarDcPo5xpj+IW3qCfOjVdHtYeG6S1CKbQOh1zqylnQK6cV3z9k80yxAnFX9Y+a9+XysDhhfg==", "dev": true, "requires": { "async-foreach": "0.1.3", @@ -10811,9 +10721,9 @@ "dev": true }, "postcss": { - "version": "6.0.20", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.20.tgz", - "integrity": "sha512-Opr6usW30Iy0xEDrJywDckRxtylfO7gTGs3Kfb2LdLQlGsUg89fTy0R3Vm1Dub2YHO7MK58avr0p70+uFFHb7A==", + "version": "6.0.21", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.21.tgz", + "integrity": "sha512-y/bKfbQz2Nn/QBC08bwvYUxEFOVGfPIUOTsJ2CK5inzlXW9SdYR1x4pEsG9blRAF/PX+wRNdOah+gx/hv4q7dw==", "dev": true, "requires": { "chalk": "2.3.2", @@ -10862,7 +10772,7 @@ "dev": true, "requires": { "clean-css": "4.1.11", - "postcss": "6.0.20" + "postcss": "6.0.21" } }, "postcss-import": { @@ -10871,7 +10781,7 @@ "integrity": "sha512-5l327iI75POonjxkXgdRCUS+AlzAdBx4pOvMEhTKTCjb1p8IEeVR9yx3cPbmN7LIWJLbfnIXxAhoB4jpD0c/Cw==", "dev": true, "requires": { - "postcss": "6.0.20", + "postcss": "6.0.21", "postcss-value-parser": "3.3.0", "read-cache": "1.0.0", "resolve": "1.6.0" @@ -10916,7 +10826,7 @@ "dev": true, "requires": { "loader-utils": "1.1.0", - "postcss": "6.0.20", + "postcss": "6.0.21", "postcss-load-config": "1.2.0", "schema-utils": "0.4.5" } @@ -10930,7 +10840,7 @@ "mime": "1.6.0", "minimatch": "3.0.4", "mkdirp": "0.5.1", - "postcss": "6.0.20", + "postcss": "6.0.21", "xxhashjs": "0.2.2" } }, @@ -11826,20 +11736,12 @@ } }, "rxjs": { - "version": "6.0.0-beta.1", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.0.0-beta.1.tgz", - "integrity": "sha512-W5CIv+iYavprY8u5rJiTWTwPscni4XO4y4Xls05Cz6sbizXgN5bJYs07yhfGUC/ebei/VA/j2QDFReALUC658Q==", + "version": "6.0.0-beta.2", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.0.0-beta.2.tgz", + "integrity": "sha512-CNCB8iHaqv5Q4IFWo1TjLOW2uWMXJ7tzPJQZ1WQkx5QQR97ATbs8fEMdzQ9fwl6i6C1bMLqPBvdWO0ZmPx0n4A==", "dev": true, "requires": { "tslib": "1.9.0" - }, - "dependencies": { - "tslib": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.0.tgz", - "integrity": "sha512-f/qGG2tUkrISBlQZEjEqoZ3B2+npJjIf04H1wuAv9iA8i04Icp+61KRXxFdha22670NJopsZCIjhC3SnjPRKrQ==", - "dev": true - } } }, "safe-buffer": { @@ -12091,9 +11993,22 @@ }, "shallow-clone": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", - "integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=", - "dev": true + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-1.0.0.tgz", + "integrity": "sha512-oeXreoKR/SyNJtRJMAKPDSvd28OqEwG4eR/xc856cRGBII7gX9lvAqDxusPm0846z/w/hWYjI1NpKwJ00NHzRA==", + "dev": true, + "requires": { + "is-extendable": "0.1.1", + "kind-of": "5.1.0", + "mixin-object": "2.0.1" + }, + "dependencies": { + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } }, "shasum": { "version": "1.0.2", @@ -12506,20 +12421,12 @@ } }, "source-map-support": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.4.tgz", - "integrity": "sha512-PETSPG6BjY1AHs2t64vS2aqAgu6dMIMXJULWFBGbh2Gr8nVLbCFDo6i/RMMvviIQ2h1Z8+5gQhVKSn2je9nmdg==", + "version": "0.4.18", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", + "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", "dev": true, "requires": { - "source-map": "0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } + "source-map": "0.5.7" } }, "source-map-url": { @@ -13321,6 +13228,15 @@ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true + }, + "source-map-support": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.4.tgz", + "integrity": "sha512-PETSPG6BjY1AHs2t64vS2aqAgu6dMIMXJULWFBGbh2Gr8nVLbCFDo6i/RMMvviIQ2h1Z8+5gQhVKSn2je9nmdg==", + "dev": true, + "requires": { + "source-map": "0.6.1" + } } } }, @@ -13442,9 +13358,9 @@ "dev": true }, "typescript": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.6.2.tgz", - "integrity": "sha1-PFtv1/beCRQmkCfwPAlGdY92c6Q=", + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.7.2.tgz", + "integrity": "sha512-p5TCYZDAO0m4G344hD+wx/LATebLWZNkkh2asWUFqSsD2OrDNhbAHuSjobrmsUmdzjJjEeZVU9g1h3O6vpstnw==", "dev": true }, "uglify-js": { @@ -13916,7 +13832,7 @@ "integrity": "sha512-RSlipNQB1u48cq0wH/BNfCu1tD/cJ8ydFIkNYhp9o+3d+8unClkIovpW5qpFPgmL9OE48wfAnlZydXByWP82AA==", "dev": true, "requires": { - "chokidar": "2.0.2", + "chokidar": "2.0.3", "graceful-fs": "4.1.11", "neo-async": "2.5.0" }, @@ -13927,7 +13843,7 @@ "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", "dev": true, "requires": { - "micromatch": "3.1.9", + "micromatch": "3.1.10", "normalize-path": "2.1.1" } }, @@ -13984,9 +13900,9 @@ } }, "chokidar": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.0.2.tgz", - "integrity": "sha512-l32Hw3wqB0L2kGVmSbK/a+xXLDrUEsc84pSgMkmwygHvD7ubRsP/vxxHa5BtB6oix1XLLVCHyYMsckRXxThmZw==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.0.3.tgz", + "integrity": "sha512-zW8iXYZtXMx4kux/nuZVXjkLP+CyIK5Al5FHnj1OgTKGZfp4Oy6/ymtMSKFv3GD8DviEmUPmJg9eFdJ/JzudMg==", "dev": true, "requires": { "anymatch": "2.0.0", @@ -14223,9 +14139,9 @@ "dev": true }, "micromatch": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.9.tgz", - "integrity": "sha512-SlIz6sv5UPaAVVFRKodKjCg48EbNoIhgetzfK/Cy0v5U52Z6zB136M8tp0UC9jM53LYbmIRihJszvvqpKkfm9g==", + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", "dev": true, "requires": { "arr-diff": "4.0.0", @@ -14574,7 +14490,7 @@ "ansi-html": "0.0.7", "array-includes": "3.0.3", "bonjour": "3.5.0", - "chokidar": "2.0.2", + "chokidar": "2.0.3", "compression": "1.7.2", "connect-history-api-fallback": "1.5.0", "debug": "3.1.0", @@ -14606,7 +14522,7 @@ "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", "dev": true, "requires": { - "micromatch": "3.1.9", + "micromatch": "3.1.10", "normalize-path": "2.1.1" } }, @@ -14669,9 +14585,9 @@ "dev": true }, "chokidar": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.0.2.tgz", - "integrity": "sha512-l32Hw3wqB0L2kGVmSbK/a+xXLDrUEsc84pSgMkmwygHvD7ubRsP/vxxHa5BtB6oix1XLLVCHyYMsckRXxThmZw==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.0.3.tgz", + "integrity": "sha512-zW8iXYZtXMx4kux/nuZVXjkLP+CyIK5Al5FHnj1OgTKGZfp4Oy6/ymtMSKFv3GD8DviEmUPmJg9eFdJ/JzudMg==", "dev": true, "requires": { "anymatch": "2.0.0", @@ -14932,9 +14848,9 @@ "dev": true }, "micromatch": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.9.tgz", - "integrity": "sha512-SlIz6sv5UPaAVVFRKodKjCg48EbNoIhgetzfK/Cy0v5U52Z6zB136M8tp0UC9jM53LYbmIRihJszvvqpKkfm9g==", + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", "dev": true, "requires": { "arr-diff": "4.0.0", @@ -15220,6 +15136,12 @@ "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", "dev": true }, + "xmlbuilder": { + "version": "8.2.2", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-8.2.2.tgz", + "integrity": "sha1-aSSGc0ELS6QuGmE2VR0pIjNap3M=", + "dev": true + }, "xmlhttprequest-ssl": { "version": "1.5.5", "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.5.tgz", diff --git a/package.json b/package.json index 529e5a3..e0c90f3 100644 --- a/package.json +++ b/package.json @@ -1,21 +1,21 @@ { - "name": "@xmlking/angular-in-memory-web-api", - "version": "0.5.11", + "name": "angular-in-memory-web-api", + "version": "0.6.1", "description": "An in-memory web api for Angular demos and tests", "main": "index.js", "scripts": { - "//": "Start the applications", - "start": "ng serve --aot", - "start:integration": "ng serve --aot --app 1", + "// - APPS": "Start the applications", + "start": "ng serve --aot --app 1", - "//": "Testing", + "// - TESTING": "Testing", "test": "ng test", - "test:integration": "yarn build && yarn link --frozen-lockfile --silent && ng test --progress=false --preserve-symlinks --app 1 -sr --browsers ChromeHeadless", + "test:integration": + "npm run build && yarn link --frozen-lockfile --silent && ng test --progress=false --preserve-symlinks --app 1 -sr", - "//": "Building", + "// - BUILDING": "Building", "build": "ng-packagr -p package.json", - "//": "Dev Tools", + "// - DEV TOOLS": "Dev Tools", "lint": "tslint -c tslint.json 'src/**/*.ts'", "prettier": "prettier --write \"**/*.ts\"" }, @@ -32,23 +32,22 @@ "homepage": "https://github.com/angular/in-memory-web-api#readme", "peerDependencies": { "@angular/core": ">=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0", - "@angular/common": ">=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0", - "rxjs": "^5.6.0-forward-compat.0 || ^6.0.0-beta.0" + "rxjs": ">=6.0.0 || ^5.6.0-forward-compat.1 || ^6.0.0-beta.0" }, "devDependencies": { "@angular/cli": "^1.7.3", - "@angular/common": "^5.1.3", - "@angular/compiler": "^5.1.3", - "@angular/compiler-cli": "^5.1.3", - "@angular/core": "^5.1.3", - "@angular/http": "^5.1.3", - "@angular/platform-browser": "^5.1.3", - "@angular/platform-browser-dynamic": "^5.1.3", + "@angular/core": "^6.0.0-rc.0", + "@angular/common": "^6.0.0-rc.0", + "@angular/compiler": "^6.0.0-rc.0", + "@angular/compiler-cli": "^6.0.0-rc.0", + "@angular/http": "^6.0.0-rc.0", + "@angular/platform-browser": "^6.0.0-rc.0", + "@angular/platform-browser-dynamic": "^6.0.0-rc.0", "@commitlint/cli": "^6.1.3", "@commitlint/config-conventional": "^6.1.3", "@types/jasmine": "^2.8.0", "@types/jasmine-ajax": "^3.1.37", - "husky": "^0.15.0-rc.8", + "husky": "^0.15.0-rc.13", "jasmine": "^2.8.0", "jasmine-ajax": "^3.3.1", "jasmine-core": "~2.8.0", @@ -58,13 +57,14 @@ "karma-coverage-istanbul-reporter": "^1.2.1", "karma-jasmine": "~1.1.0", "karma-jasmine-html-reporter": "^0.2.2", + "karma-junit-reporter": "^1.2.0", "lint-staged": "^7.0.0", "ng-packagr": "^2.2.0", "prettier": "^1.11.1", - "rxjs": "^5.6.0-forward-compat.0", + "rxjs": "^6.0.0-beta.1", "tsickle": "^0.27.2", "tslint": "^5.8.0", - "typescript": "~2.6.2", + "typescript": "~2.7.2", "zone.js": "^0.8.4" }, "ngPackage": { diff --git a/src/backend.service.ts b/src/backend.service.ts index 75af5df..6fcd779 100755 --- a/src/backend.service.ts +++ b/src/backend.service.ts @@ -1,16 +1,8 @@ -import { Observable } from 'rxjs/Observable'; -import { Observer } from 'rxjs/Observer'; -import { BehaviorSubject } from 'rxjs/BehaviorSubject'; - -import { of } from 'rxjs/observable/of'; -import { fromPromise } from 'rxjs/observable/fromPromise'; - -import 'rxjs/add/operator/concatMap'; -import 'rxjs/add/operator/first'; +import { Observable, Observer, BehaviorSubject, of, from } from 'rxjs'; +import { concatMap, first } from 'rxjs/operators'; import { getStatusText, isSuccess, STATUS } from './http-status-codes'; import { delayResponse } from './delay-response'; -import { isPromise } from './utils'; import { HeadersCore, @@ -56,7 +48,7 @@ export abstract class BackendService { this.dbReadySubject = new BehaviorSubject(false); this.resetDb(); } - return this.dbReadySubject.asObservable().first((r: boolean) => r); + return this.dbReadySubject.asObservable().pipe(first((r: boolean) => r)); } /** @@ -85,7 +77,7 @@ export abstract class BackendService { */ protected handleRequest(req: RequestCore): Observable { // handle the request when there is an in-memory database - return this.dbReady.concatMap(() => this.handleRequest_(req)); + return this.dbReady.pipe(concatMap(() => this.handleRequest_(req))); } protected handleRequest_(req: RequestCore): Observable { @@ -254,8 +246,8 @@ export abstract class BackendService { switch (command) { case 'resetdb': resOptions.status = STATUS.NO_CONTENT; - return this.resetDb(reqInfo).concatMap(() => - this.createResponse$(() => resOptions, false /* no latency delay */) + return this.resetDb(reqInfo).pipe( + concatMap(() => this.createResponse$(() => resOptions, false /* no latency delay */)) ); case 'config': @@ -679,8 +671,9 @@ export abstract class BackendService { protected resetDb(reqInfo?: RequestInfo): Observable { this.dbReadySubject.next(false); const db = this.inMemDbService.createDb(reqInfo); - const db$ = db instanceof Observable ? db : isPromise(db) ? fromPromise(db) : of(db); - db$.first().subscribe((d: {}) => { + const db$ = + db instanceof Observable ? db : typeof (db as any).then === 'function' ? from(db as Promise) : of(db); + db$.pipe(first()).subscribe((d: {}) => { this.db = d; this.dbReadySubject.next(true); }); diff --git a/src/http-backend.service.spec.ts b/src/http-backend.service.spec.ts old mode 100644 new mode 100755 index 0aed6e8..4383910 --- a/src/http-backend.service.spec.ts +++ b/src/http-backend.service.spec.ts @@ -4,243 +4,250 @@ import { HttpModule, Http, XHRBackend } from '@angular/http'; import { zip } from 'rxjs'; import { concatMap, map } from 'rxjs/operators'; -import { failure } from '../testing'; +import { failure } from './failure'; import { HttpBackendService } from './http-backend.service'; import { HttpInMemoryWebApiModule } from './http-in-memory-web-api.module'; -import { Hero } from '../app/hero'; -import { HeroService } from '../app/hero.service'; -import { HttpHeroService } from '../app/http-hero.service'; +import { Hero } from '../integration/app/hero/hero'; +import { HeroService } from '../integration/app/hero/hero.service'; +import { HttpHeroService } from '../integration/app/hero/http-hero.service'; -import { HeroInMemDataService } from '../app/hero-in-mem-data.service'; -import { HeroInMemDataOverrideService } from '../app/hero-in-mem-data-override.service'; -import { HeroServiceCoreSpec } from '../app/hero.service.spec'; - -class Nobody { id: string; name: string; } +import { HeroInMemDataService } from '../integration/app/hero/hero-in-mem-data.service'; +import { HeroInMemDataOverrideService } from '../integration/app/hero/hero-in-mem-data-override.service'; +import { HeroServiceCoreSpec } from '../integration/app/hero/hero.service.spec'; describe('Http Backend Service', () => { - const delay = 1; // some minimal simulated latency delay describe('raw Angular Http', () => { - let http: Http; beforeEach(() => { TestBed.configureTestingModule({ - imports: [ - HttpModule, - HttpInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay }) - ] + imports: [HttpModule, HttpInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay })] }); http = TestBed.get(Http); }); - it('can get heroes', async(() => { - http.get('api/heroes').pipe( - map(res => res.json() as Hero[]) - ).subscribe( - heroes => { - // console.log(heroes); - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); + it( + 'can get heroes', + async(() => { + http + .get('api/heroes') + .pipe(map(res => res.json() as Hero[])) + .subscribe(heroes => { + // console.log(heroes); + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }, failure); + }) + ); - it('GET should be a "cold" observable', async(() => { - const httpBackend = TestBed.get(XHRBackend); + it( + 'GET should be a "cold" observable', + async(() => { + const httpBackend = TestBed.get(XHRBackend); - const spy = spyOn(httpBackend, 'collectionHandler').and.callThrough(); + const spy = spyOn(httpBackend, 'collectionHandler').and.callThrough(); - const get$ = http.get('api/heroes'); + const get$ = http.get('api/heroes'); - // spy on `collectionHandler` should not be called before subscribe - expect(spy).not.toHaveBeenCalled(); + // spy on `collectionHandler` should not be called before subscribe + expect(spy).not.toHaveBeenCalled(); - get$.pipe(map(res => res.json() as Hero[])) - .subscribe( - heroes => { + get$.pipe(map(res => res.json() as Hero[])).subscribe(heroes => { expect(spy).toHaveBeenCalled(); expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); - - it('GET should wait until after delay to respond', async(() => { - // to make test fail, set `delay=0` above - let gotResponse = false; - - http.get('api/heroes').pipe( - map(res => res.json() as Hero[]), - ).subscribe( - heroes => { - gotResponse = true; - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - - expect(gotResponse).toBe(false, 'should delay before response'); - })); - - it('can get heroes (w/ a different base path)', async(() => { - http.get('some-base-path/heroes').pipe( - map(res => res.json() as Hero[]) - ).subscribe( - heroes => { - // console.log(heroes); - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); - - it('should 404 when GET unknown collection (after delay)', async(() => { - let gotError = false; - const url = 'api/unknown-collection'; - http.get(url) - .subscribe( - _ => { - console.log(_); - fail(`should not have found data for '${url}'`); - }, - err => { - gotError = true; - expect(err.status).toBe(404, 'should have 404 status'); - } - ); + }, failure); + }) + ); + + it( + 'GET should wait until after delay to respond', + async(() => { + // to make test fail, set `delay=0` above + let gotResponse = false; + + http + .get('api/heroes') + .pipe(map(res => res.json() as Hero[])) + .subscribe(heroes => { + gotResponse = true; + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }, failure); + + expect(gotResponse).toBe(false, 'should delay before response'); + }) + ); + + it( + 'can get heroes (w/ a different base path)', + async(() => { + http + .get('some-base-path/heroes') + .pipe(map(res => res.json() as Hero[])) + .subscribe(heroes => { + // console.log(heroes); + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }, failure); + }) + ); + + it( + 'should 404 when GET unknown collection (after delay)', + async(() => { + let gotError = false; + const url = 'api/unknown-collection'; + http.get(url).subscribe( + _ => { + console.log(_); + fail(`should not have found data for '${url}'`); + }, + err => { + gotError = true; + expect(err.status).toBe(404, 'should have 404 status'); + } + ); - expect(gotError).toBe(false, 'should not get error until after delay'); - })); - - it('should return the hero w/id=1 for GET app/heroes/1', async(() => { - http.get('api/heroes/1').pipe( - map(res => res.json() as Hero) - ).subscribe( - hero => { - expect(hero).toBeDefined('should find hero with id=1'); - }, - failure - ); - })); + expect(gotError).toBe(false, 'should not get error until after delay'); + }) + ); + + it( + 'should return the hero w/id=1 for GET app/heroes/1', + async(() => { + http + .get('api/heroes/1') + .pipe(map(res => res.json() as Hero)) + .subscribe(hero => { + expect(hero).toBeDefined('should find hero with id=1'); + }, failure); + }) + ); // test where id is string that looks like a number - it('should return the stringer w/id="10" for GET app/stringers/10', async(() => { - http.get('api/stringers/10').pipe( - map(res => res.json() as { id: string, name: string }) - ).subscribe( - hero => { - expect(hero).toBeDefined('should find string with id="10"'); - }, - failure - ); - })); - - it('should return 1-item array for GET app/heroes/?id=1', async(() => { - http.get('api/heroes/?id=1').pipe( - map(res => res.json() as Hero[]) - ).subscribe( - heroes => { - expect(heroes.length).toBe(1, 'should find one hero w/id=1'); - }, - failure - ); - })); - - it('should return 1-item array for GET app/heroes?id=1', async(() => { - http.get('api/heroes?id=1').pipe( - map(res => res.json() as Hero[]) - ).subscribe( - heroes => { - expect(heroes.length).toBe(1, 'should find one hero w/id=1'); - }, - failure - ); - })); - - it('should return undefined for GET app/heroes?id=not-found-id', async(() => { - http.get('api/heroes?id=123456').pipe( - map(res => res.json() as Hero[]) - ).subscribe( - heroes => { - expect(heroes.length).toBe(0); - }, - failure - ); - })); - - it('should return 404 for GET app/heroes/not-found-id', async(() => { - const url = 'api/heroes/123456'; - http.get(url) - .subscribe( - _ => { - console.log(_); - fail(`should not have found data for '${url}'`); - }, - err => { - expect(err.status).toBe(404, 'should have 404 status'); - } - ); - })); - - it('can generate the id when add a hero with no id', async(() => { - const hero = new Hero(null, 'SuperDooper'); - http.post('api/heroes', hero).pipe( - map(res => res.json()) - ).subscribe( - replyHero => { - expect(replyHero.id).toBeTruthy('added hero should have an id'); - expect(replyHero).not.toBe(hero, - 'reply hero should not be the request hero'); + it( + 'should return the stringer w/id="10" for GET app/stringers/10', + async(() => { + http + .get('api/stringers/10') + .pipe(map(res => res.json() as { id: string; name: string })) + .subscribe(hero => { + expect(hero).toBeDefined('should find string with id="10"'); + }, failure); + }) + ); + + it( + 'should return 1-item array for GET app/heroes/?id=1', + async(() => { + http + .get('api/heroes/?id=1') + .pipe(map(res => res.json() as Hero[])) + .subscribe(heroes => { + expect(heroes.length).toBe(1, 'should find one hero w/id=1'); + }, failure); + }) + ); + + it( + 'should return 1-item array for GET app/heroes?id=1', + async(() => { + http + .get('api/heroes?id=1') + .pipe(map(res => res.json() as Hero[])) + .subscribe(heroes => { + expect(heroes.length).toBe(1, 'should find one hero w/id=1'); + }, failure); + }) + ); + + it( + 'should return undefined for GET app/heroes?id=not-found-id', + async(() => { + http + .get('api/heroes?id=123456') + .pipe(map(res => res.json() as Hero[])) + .subscribe(heroes => { + expect(heroes.length).toBe(0); + }, failure); + }) + ); + + it( + 'should return 404 for GET app/heroes/not-found-id', + async(() => { + const url = 'api/heroes/123456'; + http.get(url).subscribe( + _ => { + console.log(_); + fail(`should not have found data for '${url}'`); }, - failure + err => { + expect(err.status).toBe(404, 'should have 404 status'); + } ); - })); - - it('can get nobodies (empty collection)', async(() => { - http.get('api/nobodies').pipe( - map(res => res.json()) - ).subscribe( - nobodies => { - expect(nobodies.length).toBe(0, 'should have no nobodies'); - }, - failure - ); - })); - - it('can add a nobody with an id to empty nobodies collection', async(() => { - - const id = 'g-u-i-d'; - - http.post('api/nobodies', { id, name: 'Noman' }).pipe( - concatMap(() => http.get('api/nobodies')), - map(res => res.json()) - ).subscribe( - nobodies => { + }) + ); + + it( + 'can generate the id when add a hero with no id', + async(() => { + const hero = new Hero(null, 'SuperDooper'); + http + .post('api/heroes', hero) + .pipe(map(res => res.json())) + .subscribe(replyHero => { + expect(replyHero.id).toBeTruthy('added hero should have an id'); + expect(replyHero).not.toBe(hero, 'reply hero should not be the request hero'); + }, failure); + }) + ); + + it( + 'can get nobodies (empty collection)', + async(() => { + http + .get('api/nobodies') + .pipe(map(res => res.json())) + .subscribe(nobodies => { + expect(nobodies.length).toBe(0, 'should have no nobodies'); + }, failure); + }) + ); + + it( + 'can add a nobody with an id to empty nobodies collection', + async(() => { + const id = 'g-u-i-d'; + + http + .post('api/nobodies', { id, name: 'Noman' }) + .pipe(concatMap(() => http.get('api/nobodies')), map(res => res.json())) + .subscribe(nobodies => { expect(nobodies.length).toBe(1, 'should a nobody'); expect(nobodies[0].name).toBe('Noman', 'should be "Noman"'); expect(nobodies[0].id).toBe(id, 'should preserve the submitted, ' + id); + }, failure); + }) + ); + + it( + 'should fail when add a nobody without an id to empty nobodies collection', + async(() => { + http.post('api/nobodies', { name: 'Noman' }).subscribe( + _ => { + console.log(_); + fail(`should not have been able to add 'Norman' to 'nobodies'`); }, - failure + err => { + expect(err.status).toBe(422, 'should have 422 status'); + expect(err.body.error).toContain('id type is non-numeric'); + } ); - })); - - it('should fail when add a nobody without an id to empty nobodies collection', async(() => { - http.post('api/nobodies', { name: 'Noman' }) - .subscribe( - _ => { - console.log(_); - fail(`should not have been able to add 'Norman' to 'nobodies'`); - }, - err => { - expect(err.status).toBe(422, 'should have 422 status'); - expect(err.body.error).toContain('id type is non-numeric'); - }); - })); + }) + ); it('can reset the database to empty (object db)', async(() => resetDatabaseTest('object'))); @@ -250,141 +257,139 @@ describe('Http Backend Service', () => { function resetDatabaseTest(returnType: string) { // Observable of the number of heroes and nobodies - const sizes$ = zip( - http.get('api/heroes'), - http.get('api/nobodies'), - http.get('api/stringers'), - (h, n, s) => ({ - heroes: h.json().length as number, - nobodies: n.json().length as number, - stringers: n.json().length as number - })); + const sizes$ = zip(http.get('api/heroes'), http.get('api/nobodies'), http.get('api/stringers'), (h, n, s) => ({ + heroes: h.json().length as number, + nobodies: n.json().length as number, + stringers: n.json().length as number + })); // Add a nobody so that we have one - http.post('api/nobodies', { id: 42, name: 'Noman' }).pipe( - // Reset database with "clear" option - concatMap(() => http.post('commands/resetDb', { clear: true })), - // get the number of heroes and nobodies - concatMap(() => sizes$), - ).subscribe( - sizes => { + http + .post('api/nobodies', { id: 42, name: 'Noman' }) + .pipe( + // Reset database with "clear" option + concatMap(() => http.post('commands/resetDb', { clear: true })), + // get the number of heroes and nobodies + concatMap(() => sizes$) + ) + .subscribe(sizes => { expect(sizes.heroes).toBe(0, 'reset should have cleared the heroes'); expect(sizes.nobodies).toBe(0, 'reset should have cleared the nobodies'); expect(sizes.stringers).toBe(0, 'reset should have cleared the stringers'); - }, - failure - ); + }, failure); } - }); //////////////// describe('raw Angular Http w/ override service', () => { - let http: Http; beforeEach(() => { TestBed.configureTestingModule({ - imports: [ - HttpModule, - HttpInMemoryWebApiModule.forRoot(HeroInMemDataOverrideService, { delay }) - ] + imports: [HttpModule, HttpInMemoryWebApiModule.forRoot(HeroInMemDataOverrideService, { delay })] }); http = TestBed.get(Http); }); - it('can get heroes', async(() => { - http.get('api/heroes').pipe( - map(res => res.json() as Hero[]) - ).subscribe( - heroes => { - // console.log(heroes); - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); - - it('can translate `foo/heroes` to `heroes` via `parsedRequestUrl` override', async(() => { - http.get('api/foo/heroes').pipe( - map(res => res.json() as Hero[]) - ).subscribe( - heroes => { - // console.log(heroes); - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); - - it('can get villains', async(() => { - http.get('api/villains').pipe( - map(res => res.json() as Hero[]) - ).subscribe( - villains => { - // console.log(villains); - expect(villains.length).toBeGreaterThan(0, 'should have villains'); - }, - failure - ); - })); - - it('should 404 when POST to villains', async(() => { - const url = 'api/villains'; - http.post(url, {id: 42, name: 'Dr. Evil'}) - .subscribe( - _ => { - console.log(_); - fail(`should not have POSTed data for '${url}'`); - }, - err => { - expect(err.status).toBe(404, 'should have 404 status'); - } - ); - })); - - it('should 404 when GET unknown collection', async(() => { - const url = 'api/unknown-collection'; - http.get(url) - .subscribe( - _ => { - console.log(_); - fail(`should not have found data for '${url}'`); - }, - err => { - expect(err.status).toBe(404, 'should have 404 status'); - } - ); - })); - - it('should use genId override to add new hero, "Maxinius"', async(() => { - http.post('api/heroes', { name: 'Maxinius' }).pipe( - concatMap(() => http.get('api/heroes?name=Maxi')), - map(res => res.json()) - ).subscribe( - heroes => { - expect(heroes.length).toBe(1, 'should have found "Maxinius"'); - expect(heroes[0].name).toBe('Maxinius'); - expect(heroes[0].id).toBeGreaterThan(1000); - }, - failure - ); - })); - - it('should use genId override guid generator for a new nobody without an id', async(() => { - http.post('api/nobodies', { name: 'Noman' }).pipe( - concatMap(() => http.get('api/nobodies')), - map(res => res.json()) - ).subscribe( - nobodies => { + it( + 'can get heroes', + async(() => { + http + .get('api/heroes') + .pipe(map(res => res.json() as Hero[])) + .subscribe(heroes => { + // console.log(heroes); + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }, failure); + }) + ); + + it( + 'can translate `foo/heroes` to `heroes` via `parsedRequestUrl` override', + async(() => { + http + .get('api/foo/heroes') + .pipe(map(res => res.json() as Hero[])) + .subscribe(heroes => { + // console.log(heroes); + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }, failure); + }) + ); + + it( + 'can get villains', + async(() => { + http + .get('api/villains') + .pipe(map(res => res.json() as Hero[])) + .subscribe(villains => { + // console.log(villains); + expect(villains.length).toBeGreaterThan(0, 'should have villains'); + }, failure); + }) + ); + + it( + 'should 404 when POST to villains', + async(() => { + const url = 'api/villains'; + http.post(url, { id: 42, name: 'Dr. Evil' }).subscribe( + _ => { + console.log(_); + fail(`should not have POSTed data for '${url}'`); + }, + err => { + expect(err.status).toBe(404, 'should have 404 status'); + } + ); + }) + ); + + it( + 'should 404 when GET unknown collection', + async(() => { + const url = 'api/unknown-collection'; + http.get(url).subscribe( + _ => { + console.log(_); + fail(`should not have found data for '${url}'`); + }, + err => { + expect(err.status).toBe(404, 'should have 404 status'); + } + ); + }) + ); + + it( + 'should use genId override to add new hero, "Maxinius"', + async(() => { + http + .post('api/heroes', { name: 'Maxinius' }) + .pipe(concatMap(() => http.get('api/heroes?name=Maxi')), map(res => res.json())) + .subscribe(heroes => { + expect(heroes.length).toBe(1, 'should have found "Maxinius"'); + expect(heroes[0].name).toBe('Maxinius'); + expect(heroes[0].id).toBeGreaterThan(1000); + }, failure); + }) + ); + + it( + 'should use genId override guid generator for a new nobody without an id', + async(() => { + http + .post('api/nobodies', { name: 'Noman' }) + .pipe(concatMap(() => http.get('api/nobodies')), map(res => res.json())) + .subscribe(nobodies => { expect(nobodies.length).toBe(1, 'should a nobody'); expect(nobodies[0].name).toBe('Noman', 'should be "Noman"'); expect(typeof nobodies[0].id).toBe('string', 'should create a string (guid) id'); - }, - failure - ); - })); + }, failure); + }) + ); it('can reset the database to empty (object db)', async(() => resetDatabaseTest('object'))); @@ -399,49 +404,44 @@ describe('Http Backend Service', () => { http.get('api/nobodies'), http.get('api/stringers'), http.get('api/villains') - ).pipe(map(results => { - const [h, n, s, v] = results; - return { - heroes: h.json().length as number, - nobodies: n.json().length as number, - stringers: s.json().length as number, - villains: v.json().length as number - } - })); + ).pipe( + map(results => { + const [h, n, s, v] = results; + return { + heroes: h.json().length as number, + nobodies: n.json().length as number, + stringers: s.json().length as number, + villains: v.json().length as number + }; + }) + ); // Add a nobody so that we have one - http.post('api/nobodies', { id: 42, name: 'Noman' }).pipe( - // Reset database with "clear" option - concatMap(() => http.post('commands/resetDb', { clear: true })), - // count all the collections - concatMap(() => sizes$) - ).subscribe( - sizes => { + http + .post('api/nobodies', { id: 42, name: 'Noman' }) + .pipe( + // Reset database with "clear" option + concatMap(() => http.post('commands/resetDb', { clear: true })), + // count all the collections + concatMap(() => sizes$) + ) + .subscribe(sizes => { expect(sizes.heroes).toBe(0, 'reset should have cleared the heroes'); expect(sizes.nobodies).toBe(0, 'reset should have cleared the nobodies'); expect(sizes.stringers).toBe(0, 'reset should have cleared the stringers'); expect(sizes.villains).toBeGreaterThan(0, 'reset should NOT clear villains'); - }, - failure - ); - }; + }, failure); + } }); //////////////// describe('Http HeroService', () => { - beforeEach(() => { TestBed.configureTestingModule({ - imports: [ - HttpModule, - HttpInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay }) - ], - providers: [ - { provide: HeroService, useClass: HttpHeroService } - ] + imports: [HttpModule, HttpInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay })], + providers: [{ provide: HeroService, useClass: HttpHeroService }] }); - }); new HeroServiceCoreSpec().run(); @@ -474,58 +474,60 @@ describe('Http Backend Service', () => { jasmine.Ajax.uninstall(); }); - it('can get heroes (no passthru)', async(() => { - http.get('api/heroes').pipe( - map(res => res.json() as Hero[]) - ).subscribe( - heroes => { + it( + 'can get heroes (no passthru)', + async(() => { + http + .get('api/heroes') + .pipe(map(res => res.json() as Hero[])) + .subscribe(heroes => { expect(createPassThruBackend).not.toHaveBeenCalled(); expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); + }, failure); + }) + ); // `passthru` is NOT a collection in the data store // so requests for it should pass thru to the "real" server - it('can GET passthru', async(() => { - - jasmine.Ajax.stubRequest('api/passthru').andReturn({ - 'status': 200, - 'contentType': 'application/json', - 'response': JSON.stringify([ {id: 42, name: 'Dude' }]) - }); + it( + 'can GET passthru', + async(() => { + jasmine.Ajax.stubRequest('api/passthru').andReturn({ + status: 200, + contentType: 'application/json', + response: JSON.stringify([{ id: 42, name: 'Dude' }]) + }); - http.get('api/passthru').pipe( - map(res => res.json() as any[]) - ).subscribe( - passthru => { + http + .get('api/passthru') + .pipe(map(res => res.json() as any[])) + .subscribe(passthru => { console.log('GET passthru data', passthru); expect(passthru.length).toBeGreaterThan(0, 'should have passthru data'); - }, - failure - ); - })); - - it('can ADD to passthru', async(() => { - jasmine.Ajax.stubRequest('api/passthru').andReturn({ - 'status': 200, - 'contentType': 'application/json', - 'response': JSON.stringify({ id: 42, name: 'Dude' }) - }); + }, failure); + }) + ); + + it( + 'can ADD to passthru', + async(() => { + jasmine.Ajax.stubRequest('api/passthru').andReturn({ + status: 200, + contentType: 'application/json', + response: JSON.stringify({ id: 42, name: 'Dude' }) + }); - http.post('api/passthru', { name: 'Dude' }).pipe( - map(res => res.json() as any) - ).subscribe( - passthru => { + http + .post('api/passthru', { name: 'Dude' }) + .pipe(map(res => res.json() as any)) + .subscribe(passthru => { console.log('POST passthru data', passthru); expect(passthru).toBeDefined('should have passthru data'); expect(passthru.id).toBe(42, 'passthru object should have id 42'); - }, - failure - ); - })); + }, failure); + }) + ); }); //////////////// @@ -543,16 +545,18 @@ describe('Http Backend Service', () => { http = TestBed.get(Http); }); - it('can get heroes (encapsulated)', async(() => { - http.get('api/heroes').pipe( - map(res => res.json().data as Hero[]) // unwrap data object - ).subscribe( - heroes => { - expect(heroes.length).toBeGreaterThan(0, 'should have data.heroes'); - }, - failure - ); - })); - + it( + 'can get heroes (encapsulated)', + async(() => { + http + .get('api/heroes') + .pipe( + map(res => res.json().data as Hero[]) // unwrap data object + ) + .subscribe(heroes => { + expect(heroes.length).toBeGreaterThan(0, 'should have data.heroes'); + }, failure); + }) + ); }); }); diff --git a/src/http-backend.service.ts b/src/http-backend.service.ts index aa8e298..ac7ff79 100755 --- a/src/http-backend.service.ts +++ b/src/http-backend.service.ts @@ -16,8 +16,9 @@ import { XSRFStrategy } from '@angular/http'; -import { Observable } from 'rxjs/Observable'; -import 'rxjs/add/operator/map'; +import { Observable } from 'rxjs'; +import { map } from 'rxjs/operators'; + import { STATUS } from './http-status-codes'; import { InMemoryBackendConfig, InMemoryBackendConfigArgs, InMemoryDbService, ResponseOptions } from './interfaces'; @@ -104,9 +105,11 @@ export class HttpBackendService extends BackendService implements ConnectionBack } protected createResponse$fromResponseOptions$(resOptions$: Observable): Observable { - return resOptions$.map((opts: ResponseOptionsArgs) => { - return new Response(new HttpResponseOptions(opts)); - }); + return resOptions$.pipe( + map((opts: ResponseOptionsArgs) => { + return new Response(new HttpResponseOptions(opts)); + }) + ); } protected createPassThruBackend() { diff --git a/src/http-client-backend.service.spec.ts b/src/http-client-backend.service.spec.ts old mode 100644 new mode 100755 index 69c3962..7698cd7 --- a/src/http-client-backend.service.spec.ts +++ b/src/http-client-backend.service.spec.ts @@ -4,7 +4,8 @@ import { HttpClientModule, HttpClient } from '@angular/common/http'; import { HttpBackend, - HttpEvent, HttpEventType, + HttpEvent, + HttpEventType, HttpHandler, HttpInterceptor, HTTP_INTERCEPTORS, @@ -12,23 +13,26 @@ import { HttpResponse } from '@angular/common/http'; -import { Observable, zip} from 'rxjs'; +import { Observable, zip } from 'rxjs'; import { concatMap, map } from 'rxjs/operators'; -import { failure } from '../testing'; +import { failure } from './failure'; import { HttpClientBackendService } from './http-client-backend.service'; import { HttpClientInMemoryWebApiModule } from './http-client-in-memory-web-api.module'; -import { Hero } from '../app/hero'; -import { HeroService } from '../app/hero.service'; -import { HttpClientHeroService } from '../app/http-client-hero.service'; +import { Hero } from '../integration/app/hero/hero'; +import { HeroService } from '../integration/app/hero/hero.service'; +import { HttpClientHeroService } from '../integration/app/hero/http-client-hero.service'; -import { HeroInMemDataService } from '../app/hero-in-mem-data.service'; -import { HeroInMemDataOverrideService } from '../app/hero-in-mem-data-override.service'; -import { HeroServiceCoreSpec } from '../app/hero.service.spec'; +import { HeroInMemDataService } from '../integration/app/hero/hero-in-mem-data.service'; +import { HeroInMemDataOverrideService } from '../integration/app/hero/hero-in-mem-data-override.service'; +import { HeroServiceCoreSpec } from '../integration/app/hero/hero.service.spec'; -class Nobody { id: string; name: string; } +class Nobody { + id: string; + name: string; +} /** * Test interceptor adds a request header and a response header @@ -36,8 +40,7 @@ class Nobody { id: string; name: string; } @Injectable() export class TestHeaderInterceptor implements HttpInterceptor { intercept(req: HttpRequest, next: HttpHandler): Observable> { - - const reqClone = req.clone({setHeaders: {'x-test-req': 'req-test-header'}}); + const reqClone = req.clone({ setHeaders: { 'x-test-req': 'req-test-header' } }); return next.handle(reqClone).pipe( map(event => { @@ -52,233 +55,229 @@ export class TestHeaderInterceptor implements HttpInterceptor { } } -type Data = { data: any } +type Data = { data: any }; describe('HttpClient Backend Service', () => { - const delay = 1; // some minimal simulated latency delay describe('raw Angular HttpClient', () => { - let http: HttpClient; beforeEach(() => { TestBed.configureTestingModule({ - imports: [ - HttpClientModule, - HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay }) - ] + imports: [HttpClientModule, HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay })] }); http = TestBed.get(HttpClient); }); - it('can get heroes', async(() => { - http.get('api/heroes') - .subscribe( - heroes => { + it( + 'can get heroes', + async(() => { + http.get('api/heroes').subscribe(heroes => { // console.log(heroes); expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); + }, failure); + }) + ); - it('GET should be a "cold" observable', async(() => { - const httpBackend = TestBed.get(HttpBackend); + it( + 'GET should be a "cold" observable', + async(() => { + const httpBackend = TestBed.get(HttpBackend); - const spy = spyOn(httpBackend, 'collectionHandler').and.callThrough(); + const spy = spyOn(httpBackend, 'collectionHandler').and.callThrough(); - const get$ = http.get('api/heroes'); + const get$ = http.get('api/heroes'); - // spy on `collectionHandler` should not be called before subscribe - expect(spy).not.toHaveBeenCalled(); + // spy on `collectionHandler` should not be called before subscribe + expect(spy).not.toHaveBeenCalled(); - get$.subscribe( - heroes => { + get$.subscribe(heroes => { expect(spy).toHaveBeenCalled(); expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); + }, failure); + }) + ); - it('GET should wait until after delay to respond', async(() => { - // to make test fail, set `delay=0` above - let gotResponse = false; + it( + 'GET should wait until after delay to respond', + async(() => { + // to make test fail, set `delay=0` above + let gotResponse = false; - http.get('api/heroes').subscribe( - heroes => { + http.get('api/heroes').subscribe(heroes => { gotResponse = true; expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - - expect(gotResponse).toBe(false, 'should delay before response'); - })); - - it('Should only initialize the db once', async(() => { - const httpBackend = TestBed.get(HttpBackend); - - const spy = spyOn(httpBackend, 'resetDb').and.callThrough(); - - // Simultaneous backend.handler calls - // Only the first should initialize by calling `resetDb` - // All should wait until the db is "ready" - // then they share the same db instance. - http.get('api/heroes').subscribe(); - http.get('api/heroes').subscribe(); - http.get('api/heroes').subscribe(); - http.get('api/heroes').subscribe(); - - expect(spy.calls.count()).toBe(1); - })); - - it('can get heroes (w/ a different base path)', async(() => { - http.get('some-base-path/heroes') - .subscribe( - heroes => { + }, failure); + + expect(gotResponse).toBe(false, 'should delay before response'); + }) + ); + + it( + 'Should only initialize the db once', + async(() => { + const httpBackend = TestBed.get(HttpBackend); + + const spy = spyOn(httpBackend, 'resetDb').and.callThrough(); + + // Simultaneous backend.handler calls + // Only the first should initialize by calling `resetDb` + // All should wait until the db is "ready" + // then they share the same db instance. + http.get('api/heroes').subscribe(); + http.get('api/heroes').subscribe(); + http.get('api/heroes').subscribe(); + http.get('api/heroes').subscribe(); + + expect(spy.calls.count()).toBe(1); + }) + ); + + it( + 'can get heroes (w/ a different base path)', + async(() => { + http.get('some-base-path/heroes').subscribe(heroes => { // console.log(heroes); expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); - - it('should 404 when GET unknown collection (after delay)', async(() => { - let gotError = false; - const url = 'api/unknown-collection'; - http.get(url).subscribe( - _ => { - console.log(_); - fail(`should not have found data for '${url}'`); - }, - err => { - gotError = true; - expect(err.status).toBe(404, 'should have 404 status'); - } - ); + }, failure); + }) + ); - expect(gotError).toBe(false, 'should not get error until after delay'); - })); + it( + 'should 404 when GET unknown collection (after delay)', + async(() => { + let gotError = false; + const url = 'api/unknown-collection'; + http.get(url).subscribe( + _ => { + console.log(_); + fail(`should not have found data for '${url}'`); + }, + err => { + gotError = true; + expect(err.status).toBe(404, 'should have 404 status'); + } + ); - it('should return the hero w/id=1 for GET app/heroes/1', async(() => { - http.get('api/heroes/1') - .subscribe( - hero => { + expect(gotError).toBe(false, 'should not get error until after delay'); + }) + ); + + it( + 'should return the hero w/id=1 for GET app/heroes/1', + async(() => { + http.get('api/heroes/1').subscribe(hero => { expect(hero).toBeDefined('should find hero with id=1'); - }, - failure - ); - })); + }, failure); + }) + ); // test where id is string that looks like a number - it('should return the stringer w/id="10" for GET app/stringers/10', async(() => { - http.get('api/stringers/10') - .subscribe( - hero => { + it( + 'should return the stringer w/id="10" for GET app/stringers/10', + async(() => { + http.get('api/stringers/10').subscribe(hero => { expect(hero).toBeDefined('should find string with id="10"'); - }, - failure - ); - })); - - it('should return 1-item array for GET app/heroes/?id=1', async(() => { - http.get('api/heroes/?id=1') - .subscribe( - heroes => { + }, failure); + }) + ); + + it( + 'should return 1-item array for GET app/heroes/?id=1', + async(() => { + http.get('api/heroes/?id=1').subscribe(heroes => { expect(heroes.length).toBe(1, 'should find one hero w/id=1'); - }, - failure - ); - })); - - it('should return 1-item array for GET app/heroes?id=1', async(() => { - http.get('api/heroes?id=1') - .subscribe( - heroes => { + }, failure); + }) + ); + + it( + 'should return 1-item array for GET app/heroes?id=1', + async(() => { + http.get('api/heroes?id=1').subscribe(heroes => { expect(heroes.length).toBe(1, 'should find one hero w/id=1'); - }, - failure - ); - })); - - it('should return undefined for GET app/heroes?id=not-found-id', async(() => { - http.get('api/heroes?id=123456') - .subscribe( - heroes => { + }, failure); + }) + ); + + it( + 'should return undefined for GET app/heroes?id=not-found-id', + async(() => { + http.get('api/heroes?id=123456').subscribe(heroes => { expect(heroes.length).toBe(0); - }, - failure - ); - })); - - it('should return 404 for GET app/heroes/not-found-id', async(() => { - const url = 'api/heroes/123456'; - http.get(url) - .subscribe( - _ => { - console.log(_); - fail(`should not have found data for '${url}'`); - }, - err => { - expect(err.status).toBe(404, 'should have 404 status'); - } - ); - })); - - it('can generate the id when add a hero with no id', async(() => { - const hero = new Hero(null, 'SuperDooper'); - http.post('api/heroes', hero) - .subscribe( - replyHero => { - expect(replyHero.id).toBeTruthy('added hero should have an id'); - expect(replyHero).not.toBe(hero, - 'reply hero should not be the request hero'); + }, failure); + }) + ); + + it( + 'should return 404 for GET app/heroes/not-found-id', + async(() => { + const url = 'api/heroes/123456'; + http.get(url).subscribe( + _ => { + console.log(_); + fail(`should not have found data for '${url}'`); }, - failure + err => { + expect(err.status).toBe(404, 'should have 404 status'); + } ); - })); + }) + ); - it('can get nobodies (empty collection)', async(() => { - http.get('api/nobodies') - .subscribe( - nobodies => { - expect(nobodies.length).toBe(0, 'should have no nobodies'); - }, - failure - ); - })); + it( + 'can generate the id when add a hero with no id', + async(() => { + const hero = new Hero(null, 'SuperDooper'); + http.post('api/heroes', hero).subscribe(replyHero => { + expect(replyHero.id).toBeTruthy('added hero should have an id'); + expect(replyHero).not.toBe(hero, 'reply hero should not be the request hero'); + }, failure); + }) + ); - it('can add a nobody with an id to empty nobodies collection', async(() => { + it( + 'can get nobodies (empty collection)', + async(() => { + http.get('api/nobodies').subscribe(nobodies => { + expect(nobodies.length).toBe(0, 'should have no nobodies'); + }, failure); + }) + ); - const id = 'g-u-i-d'; + it( + 'can add a nobody with an id to empty nobodies collection', + async(() => { + const id = 'g-u-i-d'; - http.post('api/nobodies', { id, name: 'Noman' }).pipe( - concatMap(() => http.get('api/nobodies')) - ).subscribe( - nobodies => { + http + .post('api/nobodies', { id, name: 'Noman' }) + .pipe(concatMap(() => http.get('api/nobodies'))) + .subscribe(nobodies => { expect(nobodies.length).toBe(1, 'should a nobody'); expect(nobodies[0].name).toBe('Noman', 'should be "Noman"'); expect(nobodies[0].id).toBe(id, 'should preserve the submitted, ' + id); + }, failure); + }) + ); + + it( + 'should fail when add a nobody without an id to empty nobodies collection', + async(() => { + http.post('api/nobodies', { name: 'Noman' }).subscribe( + _ => { + console.log(_); + fail(`should not have been able to add 'Norman' to 'nobodies'`); }, - failure + err => { + expect(err.status).toBe(422, 'should have 422 status'); + expect(err.body.error).toContain('id type is non-numeric'); + } ); - })); - - it('should fail when add a nobody without an id to empty nobodies collection', async(() => { - http.post('api/nobodies', { name: 'Noman' }) - .subscribe( - _ => { - console.log(_); - fail(`should not have been able to add 'Norman' to 'nobodies'`); - }, - err => { - expect(err.status).toBe(422, 'should have 422 status'); - expect(err.body.error).toContain('id type is non-numeric'); - }); - })); + }) + ); describe('can reset the database', () => { it('to empty (object db)', async(() => resetDatabaseTest('object'))); @@ -296,28 +295,27 @@ describe('HttpClient Backend Service', () => { ).pipe( map(([h, n, s]) => { return { - heroes: h.length as number, - nobodies: n.length as number, + heroes: h.length as number, + nobodies: n.length as number, stringers: s.length as number }; }) ); // Add a nobody so that we have one - http.post('api/nobodies', { id: 42, name: 'Noman' }).pipe( - // Reset database with "clear" option - concatMap(() => http.post('commands/resetDb', - { clear: true, returnType })), - // get the number of heroes and nobodies - concatMap(() => sizes$) - ).subscribe( - sizes => { + http + .post('api/nobodies', { id: 42, name: 'Noman' }) + .pipe( + // Reset database with "clear" option + concatMap(() => http.post('commands/resetDb', { clear: true, returnType })), + // get the number of heroes and nobodies + concatMap(() => sizes$) + ) + .subscribe(sizes => { expect(sizes.heroes).toBe(0, 'reset should have cleared the heroes'); expect(sizes.nobodies).toBe(0, 'reset should have cleared the nobodies'); expect(sizes.stringers).toBe(0, 'reset should have cleared the stringers'); - }, - failure - ); + }, failure); } }); }); @@ -325,106 +323,105 @@ describe('HttpClient Backend Service', () => { //////////////// describe('raw Angular HttpClient w/ override service', () => { - let http: HttpClient; beforeEach(() => { TestBed.configureTestingModule({ - imports: [ - HttpClientModule, - HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataOverrideService, { delay }) - ] + imports: [HttpClientModule, HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataOverrideService, { delay })] }); http = TestBed.get(HttpClient); }); - it('can get heroes', async(() => { - http.get('api/heroes') - .subscribe( - heroes => { + it( + 'can get heroes', + async(() => { + http.get('api/heroes').subscribe(heroes => { // console.log(heroes); expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); - - it('can translate `foo/heroes` to `heroes` via `parsedRequestUrl` override', async(() => { - http.get('api/foo/heroes') - .subscribe( - heroes => { + }, failure); + }) + ); + + it( + 'can translate `foo/heroes` to `heroes` via `parsedRequestUrl` override', + async(() => { + http.get('api/foo/heroes').subscribe(heroes => { // console.log(heroes); expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); - - it('can get villains', async(() => { - http.get('api/villains') - .subscribe( - villains => { + }, failure); + }) + ); + + it( + 'can get villains', + async(() => { + http.get('api/villains').subscribe(villains => { // console.log(villains); expect(villains.length).toBeGreaterThan(0, 'should have villains'); - }, - failure - ); - })); - - it('should 404 when POST to villains', async(() => { - const url = 'api/villains'; - http.post(url, {id: 42, name: 'Dr. Evil'}) - .subscribe( - _ => { - console.log(_); - fail(`should not have POSTed data for '${url}'`); - }, - err => { - expect(err.status).toBe(404, 'should have 404 status'); - } - ); - })); - - it('should 404 when GET unknown collection', async(() => { - const url = 'api/unknown-collection'; - http.get(url) - .subscribe( - _ => { - console.log(_); - fail(`should not have found data for '${url}'`); - }, - err => { - expect(err.status).toBe(404, 'should have 404 status'); - } - ); - })); - - it('should use genId override to add new hero, "Maxinius"', async(() => { - http.post('api/heroes', { name: 'Maxinius' }).pipe( - concatMap(() => http.get('api/heroes?name=Maxi')) - ).subscribe( - heroes => { - expect(heroes.length).toBe(1, 'should have found "Maxinius"'); - expect(heroes[0].name).toBe('Maxinius'); - expect(heroes[0].id).toBeGreaterThan(1000); - }, - failure - ); - })); - - it('should use genId override guid generator for a new nobody without an id', async(() => { - http.post('api/nobodies', { name: 'Noman' }).pipe( - concatMap(() => http.get('api/nobodies')) - ).subscribe( - nobodies => { + }, failure); + }) + ); + + it( + 'should 404 when POST to villains', + async(() => { + const url = 'api/villains'; + http.post(url, { id: 42, name: 'Dr. Evil' }).subscribe( + _ => { + console.log(_); + fail(`should not have POSTed data for '${url}'`); + }, + err => { + expect(err.status).toBe(404, 'should have 404 status'); + } + ); + }) + ); + + it( + 'should 404 when GET unknown collection', + async(() => { + const url = 'api/unknown-collection'; + http.get(url).subscribe( + _ => { + console.log(_); + fail(`should not have found data for '${url}'`); + }, + err => { + expect(err.status).toBe(404, 'should have 404 status'); + } + ); + }) + ); + + it( + 'should use genId override to add new hero, "Maxinius"', + async(() => { + http + .post('api/heroes', { name: 'Maxinius' }) + .pipe(concatMap(() => http.get('api/heroes?name=Maxi'))) + .subscribe(heroes => { + expect(heroes.length).toBe(1, 'should have found "Maxinius"'); + expect(heroes[0].name).toBe('Maxinius'); + expect(heroes[0].id).toBeGreaterThan(1000); + }, failure); + }) + ); + + it( + 'should use genId override guid generator for a new nobody without an id', + async(() => { + http + .post('api/nobodies', { name: 'Noman' }) + .pipe(concatMap(() => http.get('api/nobodies'))) + .subscribe(nobodies => { expect(nobodies.length).toBe(1, 'should a nobody'); expect(nobodies[0].name).toBe('Noman', 'should be "Noman"'); expect(typeof nobodies[0].id).toBe('string', 'should create a string (guid) id'); - }, - failure - ); - })); + }, failure); + }) + ); describe('can reset the database', () => { it('to empty (object db)', async(() => resetDatabaseTest('object'))); @@ -441,31 +438,31 @@ describe('HttpClient Backend Service', () => { http.get('api/stringers'), http.get('api/villains') ).pipe( - map(([h, n, s, v]) => { - return { - heroes: h.length as number, - nobodies: n.length as number, - stringers: s.length as number, - villains: v.length as number - }; - }) - ); + map(([h, n, s, v]) => { + return { + heroes: h.length as number, + nobodies: n.length as number, + stringers: s.length as number, + villains: v.length as number + }; + }) + ); // Add a nobody so that we have one - http.post('api/nobodies', { id: 42, name: 'Noman' }).pipe( - // Reset database with "clear" option - concatMap(() => http.post('commands/resetDb', { clear: true, returnType })), - // count all the collections - concatMap(() => sizes$) - ).subscribe( - sizes => { + http + .post('api/nobodies', { id: 42, name: 'Noman' }) + .pipe( + // Reset database with "clear" option + concatMap(() => http.post('commands/resetDb', { clear: true, returnType })), + // count all the collections + concatMap(() => sizes$) + ) + .subscribe(sizes => { expect(sizes.heroes).toBe(0, 'reset should have cleared the heroes'); expect(sizes.nobodies).toBe(0, 'reset should have cleared the nobodies'); expect(sizes.stringers).toBe(0, 'reset should have cleared the stringers'); expect(sizes.villains).toBeGreaterThan(0, 'reset should NOT clear villains'); - }, - failure - ); + }, failure); } }); }); @@ -473,18 +470,11 @@ describe('HttpClient Backend Service', () => { //////////////// describe('HttpClient HeroService', () => { - beforeEach(() => { TestBed.configureTestingModule({ - imports: [ - HttpClientModule, - HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay }) - ], - providers: [ - { provide: HeroService, useClass: HttpClientHeroService } - ] + imports: [HttpClientModule, HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay })], + providers: [{ provide: HeroService, useClass: HttpClientHeroService }] }); - }); new HeroServiceCoreSpec().run(); @@ -493,17 +483,13 @@ describe('HttpClient Backend Service', () => { /////////////// describe('HttpClient interceptor', () => { - let http: HttpClient; let interceptors: HttpInterceptor[]; let httpBackend: HttpClientBackendService; beforeEach(() => { TestBed.configureTestingModule({ - imports: [ - HttpClientModule, - HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay }) - ], + imports: [HttpClientModule, HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay })], providers: [ // Add test interceptor just for this test suite { provide: HTTP_INTERCEPTORS, useClass: TestHeaderInterceptor, multi: true } @@ -521,28 +507,28 @@ describe('HttpClient Backend Service', () => { expect(ti).toBeDefined(); }); - it('should have GET request header from test interceptor', async(() => { - const handle = spyOn(httpBackend, 'handle').and.callThrough(); + it( + 'should have GET request header from test interceptor', + async(() => { + const handle = spyOn(httpBackend, 'handle').and.callThrough(); - http.get('api/heroes') - .subscribe( - heroes => { - // HttpRequest is first arg of the first call to in-mem backend `handle` - const req: HttpRequest = handle.calls.argsFor(0)[0]; - const reqHeader = req.headers.get('x-test-req'); - expect(reqHeader).toBe('req-test-header'); + http.get('api/heroes').subscribe(heroes => { + // HttpRequest is first arg of the first call to in-mem backend `handle` + const req: HttpRequest = handle.calls.argsFor(0)[0]; + const reqHeader = req.headers.get('x-test-req'); + expect(reqHeader).toBe('req-test-header'); - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }, failure); + }) + ); - it('should have GET response header from test interceptor', async(() => { - let gotResponse = false; - const req = new HttpRequest('GET', 'api/heroes'); - http.request(req) - .subscribe( + it( + 'should have GET response header from test interceptor', + async(() => { + let gotResponse = false; + const req = new HttpRequest('GET', 'api/heroes'); + http.request(req).subscribe( event => { if (event.type === HttpEventType.Response) { gotResponse = true; @@ -557,12 +543,12 @@ describe('HttpClient Backend Service', () => { failure, () => expect(gotResponse).toBe(true, 'should have seen Response event') ); - })); + }) + ); }); ////////////// - //////////////// describe('HttpClient passThru', () => { let http: HttpClient; @@ -590,54 +576,51 @@ describe('HttpClient Backend Service', () => { jasmine.Ajax.uninstall(); }); - it('can get heroes (no passthru)', async(() => { - http.get('api/heroes') - .subscribe( - heroes => { - expect(createPassThruBackend).not.toHaveBeenCalled(); - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - failure - ); - })); + it( + 'can get heroes (no passthru)', + async(() => { + http.get('api/heroes').subscribe(heroes => { + expect(createPassThruBackend).not.toHaveBeenCalled(); + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }, failure); + }) + ); // `passthru` is NOT a collection in the data store // so requests for it should pass thru to the "real" server - it('can GET passthru', async(() => { - - jasmine.Ajax.stubRequest('api/passthru').andReturn({ - 'status': 200, - 'contentType': 'application/json', - 'response': JSON.stringify([{ id: 42, name: 'Dude' }]) - }); + it( + 'can GET passthru', + async(() => { + jasmine.Ajax.stubRequest('api/passthru').andReturn({ + status: 200, + contentType: 'application/json', + response: JSON.stringify([{ id: 42, name: 'Dude' }]) + }); - http.get('api/passthru') - .subscribe( - passthru => { - console.log('GET passthru data', passthru); - expect(passthru.length).toBeGreaterThan(0, 'should have passthru data'); - }, - failure - ); - })); + http.get('api/passthru').subscribe(passthru => { + console.log('GET passthru data', passthru); + expect(passthru.length).toBeGreaterThan(0, 'should have passthru data'); + }, failure); + }) + ); - it('can ADD to passthru', async(() => { - jasmine.Ajax.stubRequest('api/passthru').andReturn({ - 'status': 200, - 'contentType': 'application/json', - 'response': JSON.stringify({ id: 42, name: 'Dude' }) - }); + it( + 'can ADD to passthru', + async(() => { + jasmine.Ajax.stubRequest('api/passthru').andReturn({ + status: 200, + contentType: 'application/json', + response: JSON.stringify({ id: 42, name: 'Dude' }) + }); - http.post('api/passthru', { name: 'Dude' }) - .subscribe( - passthru => { - console.log('POST passthru data', passthru); - expect(passthru).toBeDefined('should have passthru data'); - expect(passthru.id).toBe(42, 'passthru object should have id 42'); }, - failure - ); - })); + http.post('api/passthru', { name: 'Dude' }).subscribe(passthru => { + console.log('POST passthru data', passthru); + expect(passthru).toBeDefined('should have passthru data'); + expect(passthru.id).toBe(42, 'passthru object should have id 42'); + }, failure); + }) + ); }); //////////////// @@ -655,17 +638,18 @@ describe('HttpClient Backend Service', () => { http = TestBed.get(HttpClient); }); - it('can get heroes (encapsulated)', async(() => { - http.get('api/heroes').pipe( - map(data => data.data as Hero[]) // unwrap data object - ).subscribe( - heroes => { - expect(heroes.length).toBeGreaterThan(0, 'should have data.heroes'); - }, - failure - ); - })); - + it( + 'can get heroes (encapsulated)', + async(() => { + http + .get('api/heroes') + .pipe( + map(data => data.data as Hero[]) // unwrap data object + ) + .subscribe(heroes => { + expect(heroes.length).toBeGreaterThan(0, 'should have data.heroes'); + }, failure); + }) + ); }); }); - diff --git a/src/http-client-backend.service.ts b/src/http-client-backend.service.ts index 3014413..7d2fa4d 100755 --- a/src/http-client-backend.service.ts +++ b/src/http-client-backend.service.ts @@ -11,8 +11,9 @@ import { XhrFactory } from '@angular/common/http'; -import { Observable } from 'rxjs/Observable'; -import 'rxjs/add/operator/map'; +import { Observable } from 'rxjs'; +import { map } from 'rxjs/operators'; + import { STATUS } from './http-status-codes'; import { InMemoryBackendConfig, InMemoryBackendConfigArgs, InMemoryDbService, ResponseOptions } from './interfaces'; @@ -94,7 +95,7 @@ export class HttpClientBackendService extends BackendService implements HttpBack protected createResponse$fromResponseOptions$( resOptions$: Observable ): Observable> { - return resOptions$.map((opts: HttpResponseBase) => new HttpResponse(opts)); + return resOptions$.pipe(map((opts: HttpResponseBase) => new HttpResponse(opts))); } protected createPassThruBackend() { diff --git a/tsconfig.json b/tsconfig.json index 969e988..edf01a9 100755 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "baseUrl": "./", "paths": { - "@xmlking/angular-in-memory-web-api": ["src/index.ts"], + "angular-in-memory-web-api": ["src/index.ts"], "@angular/*": ["node_modules/@angular/*"] }, "module": "commonjs", diff --git a/tslint.json b/tslint.json index ce8599d..69a6e52 100755 --- a/tslint.json +++ b/tslint.json @@ -8,8 +8,7 @@ ], "eofline": true, "import-blacklist": [ - true, - "rxjs" + true ], "import-spacing": true, "indent": [ From 159062e365edda6f051de55240e9772684f5e667 Mon Sep 17 00:00:00 2001 From: Sumanth Chinthagunta Date: Sat, 24 Mar 2018 22:42:05 -0700 Subject: [PATCH 7/8] tests passing. updated travis --- .angular-cli.json | 2 +- .travis.yml | 6 ++---- karma.conf.js | 3 ++- package-lock.json | 11 ++++++++++- package.json | 3 ++- src/http-backend.service.spec.ts | 2 ++ tsconfig.app.json | 2 +- 7 files changed, 20 insertions(+), 9 deletions(-) diff --git a/.angular-cli.json b/.angular-cli.json index 52511cc..b79cf1f 100644 --- a/.angular-cli.json +++ b/.angular-cli.json @@ -1,7 +1,7 @@ { "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "project": { - "name": "ngxs" + "name": "in-memory-web-api" }, "apps": [ { diff --git a/.travis.yml b/.travis.yml index f6c8148..6c60644 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,10 +13,8 @@ env: before_script: - sh -e /etc/init.d/xvfb start install: - - npm install -g gulp - npm install script: - npm run lint - - npm run tsc - - gulp build - - npm run test:once + - npm run build + - npm run test diff --git a/karma.conf.js b/karma.conf.js index b605160..fe14b59 100755 --- a/karma.conf.js +++ b/karma.conf.js @@ -4,8 +4,9 @@ module.exports = function(config) { config.set({ basePath: '', - frameworks: ['jasmine', '@angular/cli'], + frameworks: ['jasmine-ajax', 'jasmine', '@angular/cli'], plugins: [ + require('karma-jasmine-ajax'), require('karma-jasmine'), require('karma-chrome-launcher'), require('karma-jasmine-html-reporter'), diff --git a/package-lock.json b/package-lock.json index ecac354..b532881 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "angular-in-memory-web-api", - "version": "0.5.11", + "version": "0.6.1", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -7813,6 +7813,15 @@ "integrity": "sha1-b+hA51oRYAydkehLM8RY4cRqNSk=", "dev": true }, + "karma-jasmine-ajax": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/karma-jasmine-ajax/-/karma-jasmine-ajax-0.1.13.tgz", + "integrity": "sha1-eLuS2Jb+MqJaGACYxHci4dlgW/w=", + "dev": true, + "requires": { + "jasmine-ajax": "3.3.1" + } + }, "karma-jasmine-html-reporter": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/karma-jasmine-html-reporter/-/karma-jasmine-html-reporter-0.2.2.tgz", diff --git a/package.json b/package.json index e0c90f3..8755504 100644 --- a/package.json +++ b/package.json @@ -36,10 +36,10 @@ }, "devDependencies": { "@angular/cli": "^1.7.3", - "@angular/core": "^6.0.0-rc.0", "@angular/common": "^6.0.0-rc.0", "@angular/compiler": "^6.0.0-rc.0", "@angular/compiler-cli": "^6.0.0-rc.0", + "@angular/core": "^6.0.0-rc.0", "@angular/http": "^6.0.0-rc.0", "@angular/platform-browser": "^6.0.0-rc.0", "@angular/platform-browser-dynamic": "^6.0.0-rc.0", @@ -56,6 +56,7 @@ "karma-chrome-launcher": "~2.2.0", "karma-coverage-istanbul-reporter": "^1.2.1", "karma-jasmine": "~1.1.0", + "karma-jasmine-ajax": "^0.1.13", "karma-jasmine-html-reporter": "^0.2.2", "karma-junit-reporter": "^1.2.0", "lint-staged": "^7.0.0", diff --git a/src/http-backend.service.spec.ts b/src/http-backend.service.spec.ts index 4383910..58c6b93 100755 --- a/src/http-backend.service.spec.ts +++ b/src/http-backend.service.spec.ts @@ -17,6 +17,8 @@ import { HeroInMemDataService } from '../integration/app/hero/hero-in-mem-data.s import { HeroInMemDataOverrideService } from '../integration/app/hero/hero-in-mem-data-override.service'; import { HeroServiceCoreSpec } from '../integration/app/hero/hero.service.spec'; +import 'jasmine-ajax'; + describe('Http Backend Service', () => { const delay = 1; // some minimal simulated latency delay diff --git a/tsconfig.app.json b/tsconfig.app.json index b5cd196..a89c251 100755 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -6,7 +6,7 @@ "module": "es2015", "types": [], "paths": { - "ngxs": ["src/index.ts"] + "in-memory-web-api": ["src/index.ts"] } }, "include": ["integration/**/*.ts", "polyfills.ts"], From 94dec45a894ee3ad69b389f086c70861c89613cb Mon Sep 17 00:00:00 2001 From: Sumanth Chinthagunta Date: Sat, 24 Mar 2018 22:59:02 -0700 Subject: [PATCH 8/8] test once --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8755504..3ea8b90 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "start": "ng serve --aot --app 1", "// - TESTING": "Testing", - "test": "ng test", + "test": "ng test -sr", "test:integration": "npm run build && yarn link --frozen-lockfile --silent && ng test --progress=false --preserve-symlinks --app 1 -sr",