diff --git a/.angular-cli.json b/.angular-cli.json new file mode 100644 index 0000000..b79cf1f --- /dev/null +++ b/.angular-cli.json @@ -0,0 +1,35 @@ +{ + "$schema": "./node_modules/@angular/cli/lib/config/schema.json", + "project": { + "name": "in-memory-web-api" + }, + "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/.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 98a45e9..e7dbb02 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +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 +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 93811dd..0000000 --- a/.npmignore +++ /dev/null @@ -1,15 +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 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/.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/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 ec1b9ab..0000000 --- a/backend.service.d.ts +++ /dev/null @@ -1,198 +0,0 @@ -import { Observable, BehaviorSubject } from 'rxjs'; -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 7f3e30f..0000000 --- a/backend.service.js +++ /dev/null @@ -1,842 +0,0 @@ -import { Observable, 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 { 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 /** - * 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 - */ -BackendService = /** @class */ (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 this.dbReadySubject.asObservable().pipe(first(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"). - */ - /** - * 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 = /** - * 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"). - */ - function (req) { - var _this = this; - // handle the request when there is an in-memory database - return this.dbReady.pipe(concatMap(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 - */ - /** - * Add configured delay to response observable unless delay === 0 - */ - BackendService.prototype.addDelay = /** - * Add configured delay to response observable unless delay === 0 - */ - 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 - */ - /** - * 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 = /** - * 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 - */ - 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 - */ - /** - * Get a method from the `InMemoryDbService` (if it exists), bound to that service - */ - BackendService.prototype.bind = /** - * Get a method from the `InMemoryDbService` (if it exists), bound to that service - */ - 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}'); - */ - /** - * 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 = /** - * 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}'); - */ - 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 this.resetDb(reqInfo).pipe(concatMap(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 - */ - /** - * 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$ = /** - * 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 - */ - 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 - */ - /** - * Create a cold Observable of ResponseOptions. - * @param resOptionsFactory - creates ResponseOptions when observable is subscribed - */ - BackendService.prototype.createResponseOptions$ = /** - * Create a cold Observable of ResponseOptions. - * @param resOptionsFactory - creates ResponseOptions when observable is subscribed - */ - 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) { - /* ignore failure */ - } - 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 - */ - /** - * Find first instance of item in collection by `item.id` - * @param collection - * @param id - */ - BackendService.prototype.findById = /** - * Find first instance of item in collection by `item.id` - * @param collection - * @param id - */ - 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 - */ - /** - * 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 = /** - * 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 - */ - 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 - */ - /** - * 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 = /** - * 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 - */ - 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 - */ - /** - * Get location info from a url, even on server where `document` is not defined - */ - BackendService.prototype.getLocation = /** - * Get location info from a url, even on server where `document` is not defined - */ - 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. - */ - /** - * get or create the function that passes unhandled requests - * through to the "real" backend. - */ - BackendService.prototype.getPassThruBackend = /** - * get or create the function that passes unhandled requests - * through to the "real" backend. - */ - function () { - return this.passThruBackend ? - this.passThruBackend : - this.passThruBackend = this.createPassThruBackend(); - }; - /** - * Get utility methods from this service instance. - * Useful within an HTTP method override - */ - /** - * Get utility methods from this service instance. - * Useful within an HTTP method override - */ - BackendService.prototype.getRequestInfoUtils = /** - * Get utility methods from this service instance. - * Useful within an HTTP method override - */ - 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. */ - /** Parse the id as a number. Return original value if not a number. */ - BackendService.prototype.parseId = /** Parse the id as a number. Return original value if not a number. */ - 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 - * */ - /** - * 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 = /** - * 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 - * */ - 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'] - */ - /** - * 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 = /** - * 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'] - */ - 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. - // Create entity - // Can update an existing entity too if post409 is false. - BackendService.prototype.post = - // Create entity - // Can update an existing entity too if post409 is false. - 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 } : // successful; no content - { headers: headers, body: body, status: STATUS.OK }; // successful; return entity - } - }; - // Update existing entity - // Can create an entity too if put404 is false. - // Update existing entity - // Can create an entity too if put404 is false. - BackendService.prototype.put = - // Update existing entity - // Can create an entity too if put404 is false. - 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 } : // successful; 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 - */ - /** - * Tell your in-mem "database" to reset. - * returns Observable of the database because resetting it could be async - */ - BackendService.prototype.resetDb = /** - * Tell your in-mem "database" to reset. - * returns Observable of the database because resetting it could be async - */ - function (reqInfo) { - var _this = this; - this.dbReadySubject.next(false); - var db = this.inMemDbService.createDb(reqInfo); - var db$ = db instanceof Observable ? db : - typeof db.then === 'function' ? from(db) : - of(db); - db$.pipe(first()).subscribe(function (d) { - _this.db = d; - _this.dbReadySubject.next(true); - }); - return this.dbReady; - }; - return BackendService; -}()); -/** - * 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 { BackendService }; -//# sourceMappingURL=backend.service.js.map \ No newline at end of file diff --git a/backend.service.js.map b/backend.service.js.map deleted file mode 100644 index d5718f2..0000000 --- a/backend.service.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"backend.service.js","sourceRoot":"","sources":["backend.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAY,eAAe,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,gBAA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AAU;QAChD,IAAM,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;QACxC,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YACZ,UAAU,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;YACzB,MAAM,CAAC,IAAI,CAAC;SACb;QACD,MAAM,CAAC,KAAK,CAAC;KACd;IAED;;;OAGG;;;;;IACO,gCAAO;;;;IAAjB,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,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;YACpC,OAAQ,EAAU,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,EAAkB,CAAC,CAAC,CAAC;gBACnE,EAAE,CAAC,EAAE,CAAC,CAAC;QACd,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,SAAS,CAAC,UAAC,CAAK;YAChC,KAAI,CAAC,EAAE,GAAG,CAAC,CAAC;YACZ,KAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAChC,CAAC,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;KACrB;yBApqBH;IAsqBC,CAAA;;;;;;;;AAzoBD,0BAyoBC","sourcesContent":["import { Observable, Observer, BehaviorSubject, of, from } from 'rxjs';\nimport { concatMap, first } from 'rxjs/operators';\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 this.dbReadySubject.asObservable().pipe(first((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 this.dbReady.pipe(concatMap(() => 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 this.resetDb(reqInfo).pipe(\n concatMap(() => this.createResponse$(() => resOptions, false /* no latency delay */))\n );\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 typeof (db as any).then === 'function' ? from(db as Promise) :\n of(db);\n db$.pipe(first()).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 ed91dba..0000000 --- a/backend.service.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":4,"metadata":{"BackendService":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService","line":37,"character":30},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfigArgs","line":38,"character":12}]}],"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 13081d8..0000000 --- a/bundles/in-memory-web-api.umd.js +++ /dev/null @@ -1,1933 +0,0 @@ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs'), require('rxjs/operators'), require('@angular/core'), require('@angular/http'), require('@angular/common/http')) : - typeof define === 'function' && define.amd ? define(['exports', 'rxjs', 'rxjs/operators', '@angular/core', '@angular/http', '@angular/common/http'], factory) : - (factory((global.ng = global.ng || {}, global.ng.inMemoryWebApi = {}),global.rxjs,global.rxjs.operators,global.ng.core,global.ng.http,global.ng.common.http)); -}(this, (function (exports,rxjs,operators,core,http,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 rxjs.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 = /** @class */ (function () { - function InMemoryDbService() { - } - return InMemoryDbService; -}()); -/** -* Interface for InMemoryBackend configuration options -*/ -var InMemoryBackendConfigArgs = /** @class */ (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 = /** @class */ (function () { - function InMemoryBackendConfig(config) { - if (config === void 0) { 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); - } - InMemoryBackendConfig.decorators = [ - { type: core.Injectable }, - ]; - /** @nocollapse */ - InMemoryBackendConfig.ctorParameters = function () { return [ - { type: InMemoryBackendConfigArgs, }, - ]; }; - return InMemoryBackendConfig; -}()); -/** 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 = /** @class */ (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 rxjs.BehaviorSubject(false); - this.resetDb(); - } - return this.dbReadySubject.asObservable().pipe(operators.first(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"). - */ - /** - * 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 = /** - * 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"). - */ - function (req) { - var _this = this; - // handle the request when there is an in-memory database - return this.dbReady.pipe(operators.concatMap(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 - */ - /** - * Add configured delay to response observable unless delay === 0 - */ - BackendService.prototype.addDelay = /** - * Add configured delay to response observable unless delay === 0 - */ - 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 - */ - /** - * 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 = /** - * 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 - */ - 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 - */ - /** - * Get a method from the `InMemoryDbService` (if it exists), bound to that service - */ - BackendService.prototype.bind = /** - * Get a method from the `InMemoryDbService` (if it exists), bound to that service - */ - 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}'); - */ - /** - * 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 = /** - * 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}'); - */ - 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 this.resetDb(reqInfo).pipe(operators.concatMap(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 - */ - /** - * 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$ = /** - * 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 - */ - 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 - */ - /** - * Create a cold Observable of ResponseOptions. - * @param resOptionsFactory - creates ResponseOptions when observable is subscribed - */ - BackendService.prototype.createResponseOptions$ = /** - * Create a cold Observable of ResponseOptions. - * @param resOptionsFactory - creates ResponseOptions when observable is subscribed - */ - function (resOptionsFactory) { - var _this = this; - return new rxjs.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) { - /* ignore failure */ - } - 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 - */ - /** - * Find first instance of item in collection by `item.id` - * @param collection - * @param id - */ - BackendService.prototype.findById = /** - * Find first instance of item in collection by `item.id` - * @param collection - * @param id - */ - 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 - */ - /** - * 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 = /** - * 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 - */ - 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 - */ - /** - * 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 = /** - * 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 - */ - 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 - */ - /** - * Get location info from a url, even on server where `document` is not defined - */ - BackendService.prototype.getLocation = /** - * Get location info from a url, even on server where `document` is not defined - */ - 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. - */ - /** - * get or create the function that passes unhandled requests - * through to the "real" backend. - */ - BackendService.prototype.getPassThruBackend = /** - * get or create the function that passes unhandled requests - * through to the "real" backend. - */ - function () { - return this.passThruBackend ? - this.passThruBackend : - this.passThruBackend = this.createPassThruBackend(); - }; - /** - * Get utility methods from this service instance. - * Useful within an HTTP method override - */ - /** - * Get utility methods from this service instance. - * Useful within an HTTP method override - */ - BackendService.prototype.getRequestInfoUtils = /** - * Get utility methods from this service instance. - * Useful within an HTTP method override - */ - 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. */ - /** Parse the id as a number. Return original value if not a number. */ - BackendService.prototype.parseId = /** Parse the id as a number. Return original value if not a number. */ - 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 - * */ - /** - * 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 = /** - * 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 - * */ - 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'] - */ - /** - * 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 = /** - * 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'] - */ - 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. - // Create entity - // Can update an existing entity too if post409 is false. - BackendService.prototype.post = - // Create entity - // Can update an existing entity too if post409 is false. - 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 } : // successful; no content - { headers: headers, body: body, status: STATUS.OK }; // successful; return entity - } - }; - // Update existing entity - // Can create an entity too if put404 is false. - // Update existing entity - // Can create an entity too if put404 is false. - BackendService.prototype.put = - // Update existing entity - // Can create an entity too if put404 is false. - 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 } : // successful; 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 - */ - /** - * Tell your in-mem "database" to reset. - * returns Observable of the database because resetting it could be async - */ - BackendService.prototype.resetDb = /** - * Tell your in-mem "database" to reset. - * returns Observable of the database because resetting it could be async - */ - function (reqInfo) { - var _this = this; - this.dbReadySubject.next(false); - var db = this.inMemDbService.createDb(reqInfo); - var db$ = db instanceof rxjs.Observable ? db : - typeof db.then === 'function' ? rxjs.from(db) : - rxjs.of(db); - db$.pipe(operators.first()).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 = /** @class */ (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 resOptions$.pipe(operators.map(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; - } - }; - 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 },] }, - ]; }; - return HttpBackendService; -}(BackendService)); - -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 = /** @class */ (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 resOptions$.pipe(operators.map(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; - } - }; - 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, }, - ]; }; - return HttpClientBackendService; -}(BackendService)); - -// 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 = /** @class */ (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}}); - */ - /** - * 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 = /** - * 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}}); - */ - 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. - */ - /** - * - * 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 = /** - * - * 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. - */ - function (dbCreator, options) { - return HttpInMemoryWebApiModule.forRoot(dbCreator, options); - }; - HttpInMemoryWebApiModule.decorators = [ - { type: core.NgModule, args: [{},] }, - ]; - /** @nocollapse */ - HttpInMemoryWebApiModule.ctorParameters = function () { return []; }; - return HttpInMemoryWebApiModule; -}()); - -// 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 = /** @class */ (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}}); - */ - /** - * 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 = /** - * 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}}); - */ - 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. - */ - /** - * - * 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 = /** - * - * 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. - */ - function (dbCreator, options) { - return HttpClientInMemoryWebApiModule.forRoot(dbCreator, options); - }; - HttpClientInMemoryWebApiModule.decorators = [ - { type: core.NgModule, args: [{},] }, - ]; - /** @nocollapse */ - HttpClientInMemoryWebApiModule.ctorParameters = function () { return []; }; - return HttpClientInMemoryWebApiModule; -}()); - -var InMemoryWebApiModule = /** @class */ (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}}); - */ - /** - * 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 = /** - * 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}}); - */ - 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. - */ - /** - * - * 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 = /** - * - * 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. - */ - function (dbCreator, options) { - return InMemoryWebApiModule.forRoot(dbCreator, options); - }; - InMemoryWebApiModule.decorators = [ - { type: core.NgModule, args: [{},] }, - ]; - /** @nocollapse */ - InMemoryWebApiModule.ctorParameters = function () { return []; }; - return InMemoryWebApiModule; -}()); - -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW4tbWVtb3J5LXdlYi1hcGkudW1kLmpzIiwic291cmNlcyI6WyIuLi9zcmMvaW4tbWVtL2h0dHAtc3RhdHVzLWNvZGVzLmpzIiwiLi4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yB7IGRhdGE6IGRhdGEgfSA6IGRhdGE7XG4gICAgfTtcbiAgICBCYWNrZW5kU2VydmljZS5wcm90b3R5cGUuY2xvbmUgPSBmdW5jdGlvbiAoZGF0YSkge1xuICAgICAgICByZXR1cm4gSlNPTi5wYXJzZShKU09OLnN0cmluZ2lmeShkYXRhKSk7XG4gICAgfTtcbiAgICBCYWNrZW5kU2VydmljZS5wcm90b3R5cGUuY29sbGVjdGlvbkhhbmRsZXIgPSBmdW5jdGlvbiAocmVxSW5mbykge1xuICAgICAgICAvLyBjb25zdCByZXEgPSByZXFJbmZvLnJlcTtcbiAgICAgICAgdmFyIHJlc09wdGlvbnM7XG4gICAgICAgIHN3aXRjaCAocmVxSW5mby5tZXRob2QpIHtcbiAgICAgICAgICAgIGNhc2UgJ2dldCc6XG4gICAgICAgICAgICAgICAgcmVzT3B0aW9ucyA9IHRoaXMuZ2V0KHJlcUluZm8pO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSAncG9zdCc6XG4gICAgICAgICAgICAgICAgcmVzT3B0aW9ucyA9IHRoaXMucG9zdChyZXFJbmZvKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgJ3B1dCc6XG4gICAgICAgICAgICAgICAgcmVzT3B0aW9ucyA9IHRoaXMucHV0KHJlcUluZm8pO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSAnZGVsZXRlJzpcbiAgICAgICAgICAgICAgICByZXNPcHRpb25zID0gdGhpcy5kZWxldGUocmVxSW5mbyk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgIHJlc09wdGlvbnMgPSB0aGlzLmNyZWF0ZUVycm9yUmVzcG9uc2VPcHRpb25zKHJlcUluZm8udXJsLCBTVEFUVVMuTUVUSE9EX05PVF9BTExPV0VELCAnTWV0aG9kIG5vdCBhbGxvd2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biAgICAgICAqICAgaHR0cC5wb3N0KCdjb21tYW5kcy9jb25maWcnLCAne1wiZGVsYXlcIjoxMDAwfScpO1xuICAgICAgICovXG4gICAgZnVuY3Rpb24gKHJlcUluZm8pIHtcbiAgICAgICAgdmFyIF90aGlzID0gdGhpcztcbiAgICAgICAgdmFyIGNvbW1hbmQgPSByZXFJbmZvLmNvbGxlY3Rpb25OYW1lLnRvTG93ZXJDYXNlKCk7XG4gICAgICAgIHZhciBtZXRob2QgPSByZXFJbmZvLm1ldGhvZDtcbiAgICAgICAgdmFyIHJlc09wdGlvbnMgPSB7XG4gICAgICAgICAgICB1cmw6IHJlcUluZm8udXJsXG4gICAgICAgIH07XG4gICAgICAgIHN3aXRjaCAoY29tbWFuZCkge1xuICAgICAgICAgICAgY2FzZSAncmVzZXRkYic6XG4gICAgICAgICAgICAgICAgcmVzT3B0aW9ucy5zdGF0dXMgPSBTVEFUVVMuTk9fQ09OVEVOVDtcbiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5yZXNldERiKHJlcUluZm8pLnBpcGUoY29uY2F0TWFwKGZ1bmN0aW9uICgpIHsgcmV0dXJuIF90aGlzLmNyZWF0ZVJlc3BvbnNlJChmdW5jdGlvbiAoKSB7IHJldHVybiByZXNPcHRpb25zOyB9LCBmYWxzZSAvKiBubyBsYXRlbmN5IGRlbGF5ICovKTsgfSkpO1xuICAgICAgICAgICAgY2FzZSAnY29uZmlnJzpcbiAgICAgICAgICAgICAgICBpZiAobWV0aG9kID09PSAnZ2V0Jykge1xuICAgICAgICAgICAgICAgICAgICByZXNPcHRpb25zLnN0YXR1cyA9IFNUQVRVUy5PSztcbiAgICAgICAgICAgICAgICAgICAgcmVzT3B0aW9ucy5ib2R5ID0gdGhpcy5jbG9uZSh0aGlzLmNvbmZpZyk7XG4gICAgICAgICAgICAgICAgICAgIC8vIGFueSBvdGhlciBIVFRQIG1ldGhvZCBpcyBhc3N1bWVkIHRvIGJlIGEgY29uZmlnIHVwZGF0ZVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgdmFyIGJvZHkgPSB0aGlzLmdldEpzb25Cb2R5KHJlcUluZm8ucmVxKTtcbiAgICAgICAgICAgICAgICAgICAgT2JqZWN0LmFzc2lnbih0aGlzLmNvbmZpZywgYm9keSk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMucGFzc1RocnVCYWNrZW5kID0gdW5kZWZpbmVkOyAvLyByZS1jcmVhdGUgd2hlbiBuZWVkZWRcbiAgICAgICAgICAgICAgICAgICAgcmVzT3B0aW9ucy5zdGF0dXMgPSBTVEFUVVMuTk9fQ09OVEVOVDtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgIHJlc09wdGlvbnMgPSB0aGlzLmNyZWF0ZUVycm9yUmVzcG9uc2VPcHRpb25zKHJlcUluZm8udXJsLCBTVEFUVVMuSU5URVJOQUxfU0VSVkVSX0VSUk9SLCBcIlVua25vd24gY29tbWFuZCBcXFwiXCIgKyBjb21tYW5kICsgXCJcXFwiXCIpO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiB0aGlzLmNyZWF0ZVJlc3BvbnNlJChmdW5jdGlvbiAoKSB7IHJldHVybiByZXNPcHRpb25zOyB9LCBmYWxzZSAvKiBubyBsYXRlbmN5IGRlbGF5ICovKTtcbiAgICB9O1xuICAgIEJhY2tlbmRTZXJ2aWNlLnByb3RvdHlwZS5jcmVhdGVFcnJvclJlc3BvbnNlT3B0aW9ucyA9IGZ1bmN0aW9uICh1cmwsIHN0YXR1cywgbWVzc2FnZSkge1xuICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgYm9keTogeyBlcnJvcjogXCJcIiArIG1lc3NhZ2UgfSxcbiAgICAgICAgICAgIHVybDogdXJsLFxuICAgICAgICAgICAgaGVhZGVyczogdGhpcy5jcmVhd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2cpKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLmNyZWF0ZUVycm9yUmVzcG9uc2VPcHRpb25zKHVybCwgU1RBVFVTLlVOUFJPQ0VTU0FCTEVfRU5UUlksIGVtc2cpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgY29uc29sZS5lcnJvcihlcnIpO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5jcmVhdGVFcnJvclJlc3BvbnNlT3B0aW9ucyh1cmwsIFNUQVRVUy5JTlRFUk5BTF9TRVJWRVJfRVJST1IsIFwiRmFpbGVkIHRvIGdlbmVyYXRlIG5ldyBpZCBmb3IgJ1wiICsgY29sbGVjdGlvbk5hbWUgKyBcIidcIik7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGlmIChpZCAmJiBpZCAhPT0gaXRlbS5pZCkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMuY3JlYXRlRXJyb3JSZXNwb25zZU9wdGlvbnModXJsLCBTVEFUVVMuQkFEX1JFUVVFU1QsIFwiUmVxdWVzdCBpZCBkb2VzIG5vdCBtYXRjaCBpdGVtLmlkXCIpO1xuICAgICAgICB9XG4gICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgaWQgPSBpdGVtLmlkO1xuICAgICAgICB9XG4gICAgICAgIHZhciBleGlzdGluZ0l4ID0gdGhpcy5pbmRleE9mKGNvbGxlY3Rpb24sIGlkKTtcbiAgICAgICAgdmFyIGJvZHkgPSB0aGlzLmJvZGlmeShpdGVtKTtcbiAgICAgICAgaWYgKGV4aXN0aW5nSXggPT09IC0xKSB7XG4gICAgICAgICAgICBjb2xsZWN0aW9uLnB1c2goaXRlbSk7XG4gICAgICAgICAgICBoZWFkZXJzLnNldCgnTG9jYXRpb24nLCByZXNvdXJjZVVybCArICcvJyArIGlkKTtcbiAgICAgICAg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ICAgICAgICB9XG4gICAgICAgIGNhdGNoIChlcnJvcikge1xuICAgICAgICAgICAgdmFyIGVyciA9IGVycm9yLm1lc3NhZ2UgfHwgZXJyb3I7XG4gICAgICAgICAgICB2YXIgcmVzT3B0aW9uc18xID0gdGhpcy5jcmVhdGVFcnJvclJlc3BvbnNlT3B0aW9ucyhyZXEudXJsLCBTVEFUVVMuSU5URVJOQUxfU0VSVkVSX0VSUk9SLCBcIlwiICsgZXJyKTtcbiAgICAgICAgICAgIHJlc3BvbnNlID0gdGhpcy5jcmVhdGVSZXNwb25zZSQoZnVuY3Rpb24gKCkgeyByZXR1cm4gcmVzT3B0aW9uc18xOyB9KTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgcmVhZHlTdGF0ZTogUmVhZHlTdGF0ZS5Eb25lLFxuICAgICAgICAgICAgcmVxdWVzdDogcmVxLFxuICAgICAgICAgICAgcmVzcG9uc2U6IHJlc3BvbnNlXG4gICAgICAgIH07XG4gICAgfTtcbiAgICAvLy8vICBwcm90ZWN0ZWQgb3ZlcnJpZGVzIC8vLy8vXG4gICAgSHR0cEJhY2tlbmRTZXJ2aWNlLnByb3RvdHlwZS5nZXRKc29uQm9keSA9IGZ1bmN0aW9uIChyZXEpIHtcbiAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgIHJldHVybiByZXEuanNvbigpO1xuICAgICAgICB9XG4gICAgICAgIGNhdGNoIChlKSB7XG4gICAgICAgICAgICB2YXIgbXNnID0gXCInXCIgKyByZXEudXJsICsgXCInIHJlcXVlc3QgYm9keS10by1qc29uIGVycm9yXFxuXCIgKyBKU09OLnN0cmluZ2lmeShlKTtcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihtc2cpO1xuICAgICAgICB9XG4gICAgfTtcbiAgICBIdHRwQmFja2VuZFNlcnZpY2UucHJvdG90eXBlLmdldFJlcXVlc3RNZXRob2QgPSBmdW5jdGlvbiAocmVxKSB7XG4gICAgICAgIHJldHV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FCLENBQUMsRUFBRTtnQkFDaEUsRUFBRSxPQUFPLEVBQUVVLGtCQUFXO29CQUNsQixVQUFVLEVBQUUsb0NBQW9DO29CQUNoRCxJQUFJLEVBQUUsQ0FBQyxpQkFBaUIsRUFBRSxxQkFBcUIsRUFBRUYsaUJBQVUsQ0FBQyxFQUFFO2FBQ3JFO1NBQ0osQ0FBQztLQUNMLENBQUM7Ozs7Ozs7Ozs7Ozs7SUFhRixvQkFBb0IsQ0FBQyxVQUFVOzs7Ozs7SUFNL0IsVUFBVSxTQUFTLEVBQUUsT0FBTyxFQUFFO1FBQzFCLE9BQU8sb0JBQW9CLENBQUMsT0FBTyxDQUFDLFNBQVMsRUFBRSxPQUFPLENBQUMsQ0FBQztLQUMzRCxDQUFDO0lBQ0Ysb0JBQW9CLENBQUMsVUFBVSxHQUFHO1FBQzlCLEVBQUUsSUFBSSxFQUFFQyxhQUFRLEVBQUUsSUFBSSxFQUFFLENBQUMsRUFBRSxFQUFFLEVBQUU7S0FDbEMsQ0FBQzs7SUFFRixvQkFBb0IsQ0FBQyxjQUFjLEdBQUcsWUFBWSxFQUFFLE9BQU8sRUFBRSxDQUFDLEVBQUUsQ0FBQztJQUNqRSxPQUFPLG9CQUFvQixDQUFDO0NBQy9CLEVBQUUsQ0FBQzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzsifQ== \ No newline at end of file diff --git a/delay-response.js.map b/delay-response.js.map deleted file mode 100644 index 44ff592..0000000 --- a/delay-response.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"delay-response.js","sourceRoot":"","sources":["delay-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;;;AAIlC,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';\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 deleted file mode 100644 index 8403e43..0000000 --- a/delay-response.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":4,"metadata":{"delayResponse":{"__symbolic":"function","parameters":["response$","delayMs"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"rxjs","name":"Observable","line":5,"character":13},"arguments":[{"__symbolic":"error","message":"Lambda not supported","line":5,"character":27}]}}}}] \ No newline at end of file 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/http-backend.service.d.ts b/http-backend.service.d.ts deleted file mode 100644 index a78fe8c..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'; -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 a7dda14..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/operators'; -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 = /** @class */ (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 resOptions$.pipe(map(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; - } - }; - HttpBackendService.decorators = [ - { type: Injectable }, - ]; - /** @nocollapse */ - HttpBackendService.ctorParameters = function () { return [ - { type: Injector, }, - { type: InMemoryDbService, }, - { type: InMemoryBackendConfigArgs, decorators: [{ type: Inject, args: [InMemoryBackendConfig,] }, { type: Optional },] }, - ]; }; - return HttpBackendService; -}(BackendService)); -export { HttpBackendService }; -//# 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 b7de567..0000000 --- a/http-backend.service.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"http-backend.service.js","sourceRoot":"","sources":["http-backend.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEvE,OAAO,EAAE,UAAU,EACV,OAAO,EAAE,UAAU,EAAW,aAAa,EAC3C,QAAQ,EACR,eAAe,IAAI,mBAAmB,EAEtC,eAAe,EACf,UAAU,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAGzD,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAErC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EACzB,iBAAiB,EAEl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;gBAkBnC,iBAAiB;gBADjB,yBAAyB,uBAwCtB,MAAM,SAAC,qBAAqB,cAAG,QAAQ;;6BAzD5C;EAoDwC,cAAc;SAAzC,kBAAkB","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';\nimport { map } from 'rxjs/operators';\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@Injectable()\nexport class HttpBackendService extends BackendService implements ConnectionBackend {\n\n constructor(\n private injector: Injector,\n inMemDbService: InMemoryDbService,\n @Inject(InMemoryBackendConfig) @Optional() 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 resOptions$.pipe(map((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 }\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 7039d0d..0000000 --- a/http-backend.service.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":4,"metadata":{"HttpBackendService":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./backend.service","name":"BackendService","line":52,"character":40},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":51,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":57,"character":5},"arguments":[{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig","line":57,"character":12}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":57,"character":36}}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":55,"character":22},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService","line":56,"character":20},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfigArgs","line":57,"character":55}]}],"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-backend.service.ngfactory.js.map b/http-backend.service.ngfactory.js.map deleted file mode 100644 index 3fc2eb3..0000000 --- a/http-backend.service.ngfactory.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"http-backend.service.ngfactory.js","sourceRoot":"","sources":["http-backend.service.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]} \ 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 24fa0a5..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'; -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 2b70ea4..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/operators'; -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 = /** @class */ (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 resOptions$.pipe(map(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; - } - }; - HttpClientBackendService.decorators = [ - { type: Injectable }, - ]; - /** @nocollapse */ - HttpClientBackendService.ctorParameters = function () { return [ - { type: InMemoryDbService, }, - { type: InMemoryBackendConfigArgs, decorators: [{ type: Inject, args: [InMemoryBackendConfig,] }, { type: Optional },] }, - { type: XhrFactory, }, - ]; }; - return HttpClientBackendService; -}(BackendService)); -export { HttpClientBackendService }; -//# 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 e4fbec3..0000000 --- a/http-client-backend.service.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"http-client-backend.service.js","sourceRoot":"","sources":["http-client-backend.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAGL,WAAW,EACX,UAAU,EAEV,YAAY,EACZ,cAAc,EACd,UAAU,EACX,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAErC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EACzB,iBAAiB,EAElB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8BL,4CAAc;IAE1D,kCACE,cAAiC,EACU,QACnC,UAAsB;QAHhC,YAKE,kBAAM,cAAc,EAAE,MAAM,CAAC,SAC9B;QAHS,gBAAU,GAAV,UAAU,CAAY;;KAG/B;IAED,yCAAM,GAAN,UAAO,GAAqB;QAC1B,IAAI,CAAC;YACH,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;SAEhC;QAAC,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC;YACf,IAAM,GAAG,GAAG,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC;YACnC,IAAM,YA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AC,CAAC;SAC5C;QAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC;YACZ,EAAE,CAAC,OAAO,GAAG,qCAAqC,GAAG,CAAC,EAAE,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;YACxE,MAAM,EAAE,CAAC;SACV;KACF;;gBAxDF,UAAU;;;;gBAjCT,iBAAiB;gBADjB,yBAAyB,uBAuCtB,MAAM,SAAC,qBAAqB,cAAG,QAAQ;gBAjD1C,UAAU;;mCATZ;EAsD8C,cAAc;SAA/C,wBAAwB","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';\nimport { map } from 'rxjs/operators';\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@Injectable()\nexport class HttpClientBackendService extends BackendService implements HttpBackend {\n\n constructor(\n inMemDbService: InMemoryDbService,\n @Inject(InMemoryBackendConfig) @Optional() 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 resOptions$.pipe(map((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 }\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 2160b9d..0000000 --- a/http-client-backend.service.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":4,"metadata":{"HttpClientBackendService":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./backend.service","name":"BackendService","line":54,"character":46},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":53,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":58,"character":5},"arguments":[{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig","line":58,"character":12}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":58,"character":36}}],null],"parameters":[{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService","line":57,"character":20},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfigArgs","line":58,"character":55},{"__symbolic":"reference","module":"@angular/common/http","name":"XhrFactory","line":59,"character":24}]}],"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-backend.service.ngfactory.js.map b/http-client-backend.service.ngfactory.js.map deleted file mode 100644 index f50b715..0000000 --- a/http-client-backend.service.ngfactory.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"http-client-backend.service.ngfactory.js","sourceRoot":"","sources":["http-client-backend.service.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]} \ 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 593dd28..0000000 --- a/http-client-in-memory-web-api.module.js +++ /dev/null @@ -1,100 +0,0 @@ -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 = /** @class */ (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}}); - */ - /** - * 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 = /** - * 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}}); - */ - 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. - */ - /** - * - * 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 = /** - * - * 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. - */ - function (dbCreator, options) { - return HttpClientInMemoryWebApiModule.forRoot(dbCreator, options); - }; - HttpClientInMemoryWebApiModule.decorators = [ - { type: NgModule, args: [{},] }, - ]; - /** @nocollapse */ - HttpClientInMemoryWebApiModule.ctorParameters = function () { return []; }; - return HttpClientInMemoryWebApiModule; -}()); -export { HttpClientInMemoryWebApiModule }; -//# 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 dc5bdfa..0000000 --- a/http-client-in-memory-web-api.module.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"http-client-in-memory-web-api.module.js","sourceRoot":"","sources":["http-client-in-memory-web-api.module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAA6B,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EAEL,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;;;AAIzE,MAAM,+CACJ,SAA4B,EAC5B,OAA8B,EAC9B,UAAsB;IAEtB,IAAM,OAAO,GAAQ,IAAI,wBAAwB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;IAClF,MAAM,CAAC,OAAO,CAAC;CAChB;;;;IAIC;;;;;;;;;;;;;;MAcE;;;;;;;;;;;;;;;;IACK,sCAAO;;;;;;;;;;;;;;;IAAd,UAAe,SAAkC,EAAE,OAAmC;QACpF,MAAM,CAAC;YACL,QAAQ,EAAE,8BAA8B;YACxC,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,WAAW;oBACpB,UAAU,EAAE,oCAAoC;oBAChD,IAAI,EAAE,CAAC,iBAAiB,EAAE,qBAAqB,EAAE,UAAU,CAAC,EAAC;aAChE;SACF,CAAC;KACH;IACC;;;;;KAKC;;;;;;;IACI,yCAAU;;;;;;IAAjB,UAAkB,SAAkC,EAAE,OAAmC;QACvF,MAAM,CAAC,8BAA8B,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;KACnE;;gBAtCF,QAAQ,SAAC,EAAE;;;;yCAxBZ;;SAyBa,8BAA8B","sourcesContent":["////// HttpClient-Only version ////\n\nimport { NgModule, 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@NgModule({})\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 }\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 2cc8b81..0000000 --- a/http-client-in-memory-web-api.module.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":4,"metadata":{"httpClientInMemBackendServiceFactory":{"__symbolic":"function"},"HttpClientInMemoryWebApiModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":24,"character":1},"arguments":[{}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["dbCreator","options"],"value":{"ngModule":{"__symbolic":"reference","name":"HttpClientInMemoryWebApiModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService","line":45,"character":19},"useClass":{"__symbolic":"reference","name":"dbCreator"}},{"provide":{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig","line":46,"character":19},"useValue":{"__symbolic":"reference","name":"options"}},{"provide":{"__symbolic":"reference","module":"@angular/common/http","name":"HttpBackend","line":48,"character":19},"useFactory":{"__symbolic":"reference","name":"httpClientInMemBackendServiceFactory"},"deps":[{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService","line":50,"character":17},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig","line":50,"character":36},{"__symbolic":"reference","module":"@angular/common/http","name":"XhrFactory","line":50,"character":59}]}]}},"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-client-in-memory-web-api.module.ngfactory.d.ts b/http-client-in-memory-web-api.module.ngfactory.d.ts deleted file mode 100644 index db0be0f..0000000 --- a/http-client-in-memory-web-api.module.ngfactory.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as i0 from '@angular/core'; -import * as i1 from './http-client-in-memory-web-api.module'; -export declare const HttpClientInMemoryWebApiModuleNgFactory: i0.NgModuleFactory; diff --git a/http-client-in-memory-web-api.module.ngfactory.js b/http-client-in-memory-web-api.module.ngfactory.js deleted file mode 100644 index f1b43f1..0000000 --- a/http-client-in-memory-web-api.module.ngfactory.js +++ /dev/null @@ -1,11 +0,0 @@ -/** - * @fileoverview This file was generated by the Angular template compiler. Do not edit. - * - * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes} - * tslint:disable - */ -import * as i0 from "@angular/core"; -import * as i1 from "./http-client-in-memory-web-api.module"; -var HttpClientInMemoryWebApiModuleNgFactory = i0.ɵcmf(i1.HttpClientInMemoryWebApiModule, [], function (_l) { return i0.ɵmod([i0.ɵmpd(512, i0.ComponentFactoryResolver, i0.ɵCodegenComponentFactoryResolver, [[8, []], [3, i0.ComponentFactoryResolver], i0.NgModuleRef]), i0.ɵmpd(1073742336, i1.HttpClientInMemoryWebApiModule, i1.HttpClientInMemoryWebApiModule, [])]); }); -export { HttpClientInMemoryWebApiModuleNgFactory as HttpClientInMemoryWebApiModuleNgFactory }; -//# sourceMappingURL=http-client-in-memory-web-api.module.ngfactory.js.map \ No newline at end of file diff --git a/http-client-in-memory-web-api.module.ngfactory.js.map b/http-client-in-memory-web-api.module.ngfactory.js.map deleted file mode 100644 index ff24c2e..0000000 --- a/http-client-in-memory-web-api.module.ngfactory.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"http-client-in-memory-web-api.module.ngfactory.js","sourceRoot":"","sources":["http-client-in-memory-web-api.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './http-client-in-memory-web-api.module';\nexport const HttpClientInMemoryWebApiModuleNgFactory:i0.NgModuleFactory = (null as any);\nvar _decl0_0:i0.TemplateRef = ((null as any));\nvar _decl0_1:i0.ElementRef = ((null as any));\n"]} \ 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 2e3a61a..0000000 --- a/http-in-memory-web-api.module.js +++ /dev/null @@ -1,100 +0,0 @@ -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 = /** @class */ (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}}); - */ - /** - * 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 = /** - * 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}}); - */ - 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. - */ - /** - * - * 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 = /** - * - * 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. - */ - function (dbCreator, options) { - return HttpInMemoryWebApiModule.forRoot(dbCreator, options); - }; - HttpInMemoryWebApiModule.decorators = [ - { type: NgModule, args: [{},] }, - ]; - /** @nocollapse */ - HttpInMemoryWebApiModule.ctorParameters = function () { return []; }; - return HttpInMemoryWebApiModule; -}()); -export { HttpInMemoryWebApiModule }; -//# 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 0560648..0000000 --- a/http-in-memory-web-api.module.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"http-in-memory-web-api.module.js","sourceRoot":"","sources":["http-in-memory-web-api.module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAA6B,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAEL,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,kBAAkB,EAAE,MAAY,wBAAwB,CAAC;;;AAIlE,MAAM,yCACJ,QAAkB,EAClB,SAA4B,EAC5B,OAA8B;IAE9B,IAAM,OAAO,GAAQ,IAAI,kBAAkB,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IAC1E,MAAM,CAAC,OAAqB,CAAC;CAC9B;;;;IAIC;;;;;;;;;;;;;;MAcE;;;;;;;;;;;;;;;;IACK,gCAAO;;;;;;;;;;;;;;;IAAd,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;KACH;IACC;;;;;KAKC;;;;;;;IACI,mCAAU;;;;;;IAAjB,UAAkB,SAAkC,EAAE,OAAmC;QACvF,MAAM,CAAC,wBAAwB,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;KAC7D;;gBAtCF,QAAQ,SAAC,EAAE;;;;mCAxBZ;;SAyBa,wBAAwB","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@NgModule({})\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 }\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 05d6c23..0000000 --- a/http-in-memory-web-api.module.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":4,"metadata":{"httpInMemBackendServiceFactory":{"__symbolic":"function"},"HttpInMemoryWebApiModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":24,"character":1},"arguments":[{}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["dbCreator","options"],"value":{"ngModule":{"__symbolic":"reference","name":"HttpInMemoryWebApiModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService","line":45,"character":19},"useClass":{"__symbolic":"reference","name":"dbCreator"}},{"provide":{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig","line":46,"character":19},"useValue":{"__symbolic":"reference","name":"options"}},{"provide":{"__symbolic":"reference","module":"@angular/http","name":"XHRBackend","line":48,"character":19},"useFactory":{"__symbolic":"reference","name":"httpInMemBackendServiceFactory"},"deps":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":50,"character":17},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService","line":50,"character":27},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig","line":50,"character":46}]}]}},"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-in-memory-web-api.module.ngfactory.d.ts b/http-in-memory-web-api.module.ngfactory.d.ts deleted file mode 100644 index ecb65b7..0000000 --- a/http-in-memory-web-api.module.ngfactory.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as i0 from '@angular/core'; -import * as i1 from './http-in-memory-web-api.module'; -export declare const HttpInMemoryWebApiModuleNgFactory: i0.NgModuleFactory; diff --git a/http-in-memory-web-api.module.ngfactory.js b/http-in-memory-web-api.module.ngfactory.js deleted file mode 100644 index 88c4d39..0000000 --- a/http-in-memory-web-api.module.ngfactory.js +++ /dev/null @@ -1,11 +0,0 @@ -/** - * @fileoverview This file was generated by the Angular template compiler. Do not edit. - * - * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes} - * tslint:disable - */ -import * as i0 from "@angular/core"; -import * as i1 from "./http-in-memory-web-api.module"; -var HttpInMemoryWebApiModuleNgFactory = i0.ɵcmf(i1.HttpInMemoryWebApiModule, [], function (_l) { return i0.ɵmod([i0.ɵmpd(512, i0.ComponentFactoryResolver, i0.ɵCodegenComponentFactoryResolver, [[8, []], [3, i0.ComponentFactoryResolver], i0.NgModuleRef]), i0.ɵmpd(1073742336, i1.HttpInMemoryWebApiModule, i1.HttpInMemoryWebApiModule, [])]); }); -export { HttpInMemoryWebApiModuleNgFactory as HttpInMemoryWebApiModuleNgFactory }; -//# sourceMappingURL=http-in-memory-web-api.module.ngfactory.js.map \ No newline at end of file diff --git a/http-in-memory-web-api.module.ngfactory.js.map b/http-in-memory-web-api.module.ngfactory.js.map deleted file mode 100644 index 8bdd8b2..0000000 --- a/http-in-memory-web-api.module.ngfactory.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"http-in-memory-web-api.module.ngfactory.js","sourceRoot":"","sources":["http-in-memory-web-api.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './http-in-memory-web-api.module';\nexport const HttpInMemoryWebApiModuleNgFactory:i0.NgModuleFactory = (null as any);\nvar _decl0_0:i0.TemplateRef = ((null as any));\nvar _decl0_1:i0.ElementRef = ((null as any));\n"]} \ 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 32f8014..0000000 --- a/http-status-codes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"http-status-codes.js","sourceRoot":"","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,GA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AKD,MAAM,oBAAoB,MAAc,IAAa,MAAM,CAAC,MAAM,IAAI,GAAG,IAAI,MAAM,GAAG,GAAG,CAAC,EAAE;AAAA,CAAC","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 3f41b7c..0000000 --- a/http-status-codes.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":4,"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}}}}}] \ 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 a2dda5d..0000000 --- a/in-memory-web-api.module.js +++ /dev/null @@ -1,99 +0,0 @@ -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 = /** @class */ (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}}); - */ - /** - * 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 = /** - * 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}}); - */ - 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. - */ - /** - * - * 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 = /** - * - * 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. - */ - function (dbCreator, options) { - return InMemoryWebApiModule.forRoot(dbCreator, options); - }; - InMemoryWebApiModule.decorators = [ - { type: NgModule, args: [{},] }, - ]; - /** @nocollapse */ - InMemoryWebApiModule.ctorParameters = function () { return []; }; - return InMemoryWebApiModule; -}()); -export { InMemoryWebApiModule }; -//# 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 0c3cdc6..0000000 --- a/in-memory-web-api.module.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"in-memory-web-api.module.js","sourceRoot":"","sources":["in-memory-web-api.module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAA6B,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EAEL,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAC;;;;IAI5F;;;;;;;;;;;;;;MAcE;;;;;;;;;;;;;;;;IACK,4BAAO;;;;;;;;;;;;;;;IAAd,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;KACH;IAED;;;;;OAKG;;;;;;;IACI,+BAAU;;;;;;IAAjB,UAAkB,SAAkC,EAAE,OAAmC;QACvF,MAAM,CAAC,oBAAoB,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;KACzD;;gBA3CF,QAAQ,SAAC,EAAE;;;;+BAfZ;;SAgBa,oBAAoB","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@NgModule({})\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 }\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 1377578..0000000 --- a/in-memory-web-api.module.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":4,"metadata":{"InMemoryWebApiModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":15,"character":1},"arguments":[{}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["dbCreator","options"],"value":{"ngModule":{"__symbolic":"reference","name":"InMemoryWebApiModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService","line":36,"character":19},"useClass":{"__symbolic":"reference","name":"dbCreator"}},{"provide":{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig","line":37,"character":19},"useValue":{"__symbolic":"reference","name":"options"}},{"provide":{"__symbolic":"reference","module":"@angular/http","name":"XHRBackend","line":39,"character":19},"useFactory":{"__symbolic":"reference","module":"./http-in-memory-web-api.module","name":"httpInMemBackendServiceFactory","line":40,"character":22},"deps":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":41,"character":17},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService","line":41,"character":27},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig","line":41,"character":46}]},{"provide":{"__symbolic":"reference","module":"@angular/common/http","name":"HttpBackend","line":43,"character":19},"useFactory":{"__symbolic":"reference","module":"./http-client-in-memory-web-api.module","name":"httpClientInMemBackendServiceFactory","line":44,"character":22},"deps":[{"__symbolic":"reference","module":"./interfaces","name":"InMemoryDbService","line":45,"character":17},{"__symbolic":"reference","module":"./interfaces","name":"InMemoryBackendConfig","line":45,"character":36},{"__symbolic":"reference","module":"@angular/common/http","name":"XhrFactory","line":45,"character":59}]}]}},"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/in-memory-web-api.module.ngfactory.d.ts b/in-memory-web-api.module.ngfactory.d.ts deleted file mode 100644 index f4c7e1a..0000000 --- a/in-memory-web-api.module.ngfactory.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as i0 from '@angular/core'; -import * as i1 from './in-memory-web-api.module'; -export declare const InMemoryWebApiModuleNgFactory: i0.NgModuleFactory; diff --git a/in-memory-web-api.module.ngfactory.js b/in-memory-web-api.module.ngfactory.js deleted file mode 100644 index edcebbf..0000000 --- a/in-memory-web-api.module.ngfactory.js +++ /dev/null @@ -1,11 +0,0 @@ -/** - * @fileoverview This file was generated by the Angular template compiler. Do not edit. - * - * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes} - * tslint:disable - */ -import * as i0 from "@angular/core"; -import * as i1 from "./in-memory-web-api.module"; -var InMemoryWebApiModuleNgFactory = i0.ɵcmf(i1.InMemoryWebApiModule, [], function (_l) { return i0.ɵmod([i0.ɵmpd(512, i0.ComponentFactoryResolver, i0.ɵCodegenComponentFactoryResolver, [[8, []], [3, i0.ComponentFactoryResolver], i0.NgModuleRef]), i0.ɵmpd(1073742336, i1.InMemoryWebApiModule, i1.InMemoryWebApiModule, [])]); }); -export { InMemoryWebApiModuleNgFactory as InMemoryWebApiModuleNgFactory }; -//# sourceMappingURL=in-memory-web-api.module.ngfactory.js.map \ No newline at end of file diff --git a/in-memory-web-api.module.ngfactory.js.map b/in-memory-web-api.module.ngfactory.js.map deleted file mode 100644 index 0ecce9b..0000000 --- a/in-memory-web-api.module.ngfactory.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"in-memory-web-api.module.ngfactory.js","sourceRoot":"","sources":["in-memory-web-api.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './in-memory-web-api.module';\nexport const InMemoryWebApiModuleNgFactory:i0.NgModuleFactory = (null as any);\nvar _decl0_0:i0.TemplateRef = ((null as any));\nvar _decl0_1:i0.ElementRef = ((null as any));\n"]} \ 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 18fd73f..0000000 --- a/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","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","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 7876a47..0000000 --- a/index.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":4,"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/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 new file mode 100755 index 0000000..9178390 --- /dev/null +++ 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.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..fc7f2b2 --- /dev/null +++ b/integration/app/app.component.ts @@ -0,0 +1,23 @@ +import { Component, ViewEncapsulation } from '@angular/core'; +import { HeroService } from './hero/hero.service'; +import { Hero } from './hero/hero'; + +@Component({ + selector: 'app-root', + templateUrl: './app.component.html', + styleUrls: ['./app.component.scss'], + encapsulation: ViewEncapsulation.None +}) +export class AppComponent { + heroes: Hero[]; + + constructor(private heroService: HeroService) {} + + ngOnInit() { + this.getHeroes(); + } + + getHeroes(): void { + this.heroService.getHeroes().subscribe(heroes => (this.heroes = heroes), error => console.log(error)); + } +} diff --git a/integration/app/app.module.ts b/integration/app/app.module.ts new file mode 100755 index 0000000..8483b00 --- /dev/null +++ b/integration/app/app.module.ts @@ -0,0 +1,25 @@ +import { BrowserModule } from '@angular/platform-browser'; +import { NgModule } from '@angular/core'; +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'; + +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(InMemHeroService) + // HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataService, { + // passThruUnknownUrl: true + // }) + ], + 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 old mode 100644 new mode 100755 similarity index 79% rename from src/app/hero-in-mem-data-override.service.ts rename to integration/app/hero/hero-in-mem-data-override.service.ts index 7dcea0b..10b3f12 --- a/src/app/hero-in-mem-data-override.service.ts +++ b/integration/app/hero/hero-in-mem-data-override.service.ts @@ -3,20 +3,17 @@ */ import { Injectable } from '@angular/core'; -// tslint:disable-next-line:no-unused-variable -import { Observable } from 'rxjs'; +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'; 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 @@ -26,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}'`); @@ -65,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); }); } @@ -95,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); @@ -106,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/src/app/hero-in-mem-data.service.ts b/integration/app/hero/hero-in-mem-data.service.ts old mode 100644 new mode 100755 similarity index 79% rename from src/app/hero-in-mem-data.service.ts rename to integration/app/hero/hero-in-mem-data.service.ts index 75acbdc..c1e83c9 --- a/src/app/hero-in-mem-data.service.ts +++ b/integration/app/hero/hero-in-mem-data.service.ts @@ -9,17 +9,14 @@ * 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, of } from 'rxjs'; +import { of } from 'rxjs'; import { delay } from 'rxjs/operators'; -// tslint:enable:no-unused-variable @Injectable() export class HeroInMemDataService implements InMemoryDbService { createDb(reqInfo?: RequestInfo) { - const heroes = [ { id: 1, name: 'Windstorm' }, { id: 2, name: 'Bombasto' }, @@ -27,16 +24,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'; @@ -56,9 +50,9 @@ export class HeroInMemDataService implements InMemoryDbService { const db = { heroes, nobodies, stringers }; switch (returnType) { - case ('observable'): + case 'observable': return of(db).pipe(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 new file mode 100755 index 0000000..1684af4 --- /dev/null +++ b/integration/app/hero/hero.service.spec.ts @@ -0,0 +1,152 @@ +import { async, TestBed } from '@angular/core/testing'; + +import { concatMap, tap } from 'rxjs/operators'; + +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').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((_: {}) => { + 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).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); + }) + ); + }); + } +} diff --git a/integration/app/hero/hero.service.ts b/integration/app/hero/hero.service.ts new file mode 100755 index 0000000..6e6097b --- /dev/null +++ b/integration/app/hero/hero.service.ts @@ -0,0 +1,13 @@ +import { Hero } from './hero'; +import { Observable } from 'rxjs'; + +export abstract class HeroService { + heroesUrl = 'api/heroes'; // URL to web api + + abstract getHeroes(): Observable; + abstract getHero(id: number): Observable; + abstract addHero(name: string): Observable; + abstract deleteHero(hero: Hero | number): Observable; + abstract searchHeroes(term: string): Observable; + abstract updateHero(hero: Hero): Observable; +} diff --git a/integration/app/hero/hero.ts b/integration/app/hero/hero.ts new file mode 100755 index 0000000..a4d169f --- /dev/null +++ b/integration/app/hero/hero.ts @@ -0,0 +1,6 @@ +export class Hero { + constructor(public id = 0, public name = '') {} + clone() { + return new Hero(this.id, this.name); + } +} diff --git a/src/app/http-client-hero.service.ts b/integration/app/hero/http-client-hero.service.ts old mode 100644 new mode 100755 similarity index 57% rename from src/app/http-client-hero.service.ts rename to integration/app/hero/http-client-hero.service.ts index 08247ee..041ecd9 --- a/src/app/http-client-hero.service.ts +++ b/integration/app/hero/http-client-hero.service.ts @@ -1,24 +1,23 @@ -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, throwError } from 'rxjs'; -import { tap, catchError, map } from 'rxjs/operators'; +import { catchError } from 'rxjs/operators'; -import { Hero } from './hero'; +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 { + 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) ); } @@ -26,9 +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).pipe( - catchError(this.handleError) - ); + return this.http.get(url).pipe(catchError(this.handleError)); } // This get-by-id does not 404; returns undefined when id not found @@ -39,41 +36,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).pipe( - catchError(this.handleError) - ); + return this.http.post(this.heroesUrl, hero, cudOptions).pipe(catchError(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).pipe( - catchError(this.handleError) - ); + return this.http.delete(url, cudOptions).pipe(catchError(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).pipe( - catchError(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) { + 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/src/app/http-hero.service.ts b/integration/app/hero/http-hero.service.ts old mode 100644 new mode 100755 similarity index 75% rename from src/app/http-hero.service.ts rename to integration/app/hero/http-hero.service.ts index c5f7f0c..a4dad42 --- a/src/app/http-hero.service.ts +++ b/integration/app/hero/http-hero.service.ts @@ -1,24 +1,23 @@ -import { Injectable }from '@angular/core'; +import { Injectable } from '@angular/core'; import { Headers, Http, Response } from '@angular/http'; import { Observable, throwError } from 'rxjs'; -import { tap, catchError, map } from 'rxjs/operators'; +import { catchError, map } from 'rxjs/operators'; -import { Hero } from './hero'; +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 { - - constructor (private http: Http) { + constructor(private http: Http) { 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 map(res => res.json()), catchError(this.handleError) ); @@ -42,7 +41,7 @@ export class HttpHeroService extends HeroService { // .catch(this.handleError); // } - addHero (name: string): Observable { + addHero(name: string): Observable { const hero = { name }; return this.http.post(this.heroesUrl, hero, cudOptions).pipe( @@ -51,17 +50,16 @@ export class HttpHeroService extends HeroService { ); } - 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).pipe( - map(_ => (_ as any as Hero)), // TODO: this is wrong, but I don't know what the right thing is + 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 @@ -72,14 +70,11 @@ export class HttpHeroService extends HeroService { ); } - updateHero (hero: Hero): Observable { - return this.http.put(this.heroesUrl, hero, cudOptions).pipe( - map(res => res.json()), - catchError(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) { + 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/in-mem-hero.service.ts b/integration/app/hero/in-mem-hero.service.ts new file mode 100644 index 0000000..fd1cc69 --- /dev/null +++ b/integration/app/hero/in-mem-hero.service.ts @@ -0,0 +1,13 @@ +import { InMemoryDbService } from '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/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 0000000..8081c7c Binary files /dev/null and b/integration/favicon.ico differ diff --git a/integration/index.html b/integration/index.html new file mode 100755 index 0000000..dd1e06e --- /dev/null +++ b/integration/index.html @@ -0,0 +1,20 @@ + + + + + + + IMWI + + + + + + + + + + + + + diff --git a/integration/main.ts b/integration/main.ts new file mode 100755 index 0000000..5aa3bf0 --- /dev/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/interfaces.d.ts b/interfaces.d.ts deleted file mode 100644 index 4c174cc..0000000 --- a/interfaces.d.ts +++ /dev/null @@ -1,240 +0,0 @@ -import { Observable } from 'rxjs'; -/** - * 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 8b401d6..0000000 --- a/interfaces.js +++ /dev/null @@ -1,132 +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 /** -* 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. -*/ -InMemoryDbService = /** @class */ (function () { - function InMemoryDbService() { - } - return InMemoryDbService; -}()); -/** -* 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 { InMemoryDbService }; -/** -* Interface for InMemoryBackend configuration options -*/ -var /** -* Interface for InMemoryBackend configuration options -*/ -InMemoryBackendConfigArgs = /** @class */ (function () { - function InMemoryBackendConfigArgs() { - } - return InMemoryBackendConfigArgs; -}()); -/** -* Interface for InMemoryBackend configuration options -*/ -export { InMemoryBackendConfigArgs }; -/** -* InMemoryBackendService configuration options -* Usage: -* InMemoryWebApiModule.forRoot(InMemHeroService, {delay: 600}) -* -* or if providing separately: -* provide(InMemoryBackendConfig, {useValue: {delay: 600}}), -*/ -var InMemoryBackendConfig = /** @class */ (function () { - function InMemoryBackendConfig(config) { - if (config === void 0) { 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); - } - InMemoryBackendConfig.decorators = [ - { type: Injectable }, - ]; - /** @nocollapse */ - InMemoryBackendConfig.ctorParameters = function () { return [ - { type: InMemoryBackendConfigArgs, }, - ]; }; - return InMemoryBackendConfig; -}()); -export { InMemoryBackendConfig }; -/** 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 2a4df00..0000000 --- a/interfaces.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;;;;;;;;;;;AAoB3C;;;;;;;;;;AAAA;;;4BApBA;IAqCC,CAAA;;;;;;;;;;;AAjBD,6BAiBC;;;;AAKD;;;AAAA;;;oCA1CA;IA6FC,CAAA;;;;AAnDD,qCAmDC;;;;;;;;;;IAaC,+BAAY,MAAsC;QAAtC,uBAAA,EAAA,WAAsC;QAChD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE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AC9C,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;CAChC","sourcesContent":["import { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\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@Injectable()\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 }\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"]} \ No newline at end of file diff --git a/interfaces.metadata.json b/interfaces.metadata.json deleted file mode 100644 index bbc7c8a..0000000 --- a/interfaces.metadata.json +++ /dev/null @@ -1 +0,0 @@ -[{"__symbolic":"module","version":4,"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","line":104,"character":1}}],"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":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"path"},"member":"replace"},"arguments":[{"__symbolic":"error","message":"Expression form not supported","line":181,"character":22},""]}},"RequestCore":{"__symbolic":"interface"},"RequestInfo":{"__symbolic":"interface"},"RequestInfoUtilities":{"__symbolic":"interface"},"ResponseInterceptor":{"__symbolic":"interface"},"ResponseOptions":{"__symbolic":"interface"},"UriInfo":{"__symbolic":"interface"}}}] \ No newline at end of file diff --git a/interfaces.ngfactory.js.map b/interfaces.ngfactory.js.map deleted file mode 100644 index 494dd0e..0000000 --- a/interfaces.ngfactory.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"interfaces.ngfactory.js","sourceRoot":"","sources":["interfaces.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]} \ No newline at end of file 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..fe14b59 --- a/karma.conf.js +++ b/karma.conf.js @@ -1,103 +1,31 @@ -// #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-ajax', '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 17acc13..b532881 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,161 @@ { "name": "angular-in-memory-web-api", - "version": "0.5.4", + "version": "0.6.1", "lockfileVersion": 1, "requires": true, "dependencies": { - "@angular/animations": { - "version": "6.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-6.0.0-rc.0.tgz", - "integrity": "sha512-0OeClBhZzLvHv86DrsnVnCml7PObgTjLfWMgmkjil9GX8R5P7Ha8CmSkFqw01btvwYEW1IiIAODufFL+/Rm48Q==", + "@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": { - "tslib": "1.9.0" + "loader-utils": "1.1.0", + "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": { + "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": { + "@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.8.3", + "nopt": "4.0.1", + "opn": "5.1.0", + "portfinder": "1.0.13", + "postcss": "6.0.21", + "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": { @@ -41,6 +186,14 @@ "minimist": "1.2.0", "reflect-metadata": "0.1.12", "tsickle": "0.27.2" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + } } }, "@angular/core": { @@ -79,55 +232,388 @@ "tslib": "1.9.0" } }, - "@angular/platform-server": { - "version": "6.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@angular/platform-server/-/platform-server-6.0.0-rc.0.tgz", - "integrity": "sha512-roJnke7VV4ryR/nsiqyOiV2UzdJnySN2u7lTuniHTKZbCSe9ZNoOT3OJMHhfakMD6hc9/mDIFHTB4ghP4Iw9wA==", + "@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": { - "domino": "2.0.1", - "tslib": "1.9.0", - "xhr2": "0.1.4" + "@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": { + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.3.0" + } + }, + "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": { + "has-flag": "3.0.0" + } + } + } + }, + "@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": { + "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" + } + }, + "@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": { + "babel-runtime": "6.26.0" + } + }, + "@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": { + "semver": "5.5.0" + } + }, + "@commitlint/lint": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/@commitlint/lint/-/lint-6.1.3.tgz", + "integrity": "sha1-aneI6uOBrahz90IeMVWecgPKrfM=", + "dev": true, + "requires": { + "@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" + } + }, + "@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": { + "@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": { + "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" + } + }, + "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" + } + }, + "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 + } + } + }, + "@commitlint/message": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/@commitlint/message/-/message-6.1.3.tgz", + "integrity": "sha1-XgRzMwyIcBYBDExWJwcjuAARRdI=", + "dev": true + }, + "@commitlint/parse": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/@commitlint/parse/-/parse-6.1.3.tgz", + "integrity": "sha1-/x5NksJ81naBK7a512zYhTwNlAc=", + "dev": true, + "requires": { + "conventional-changelog-angular": "1.6.6", + "conventional-commits-parser": "2.1.6" + } + }, + "@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.5" + } + }, + "@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 + }, + "@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 + }, + "@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" + }, + "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": { + "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.5.54", - "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-2.5.54.tgz", - "integrity": "sha1-prXyrir7bgMHd06MfGCOA31JHGM=", + "version": "2.8.6", + "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-2.8.6.tgz", + "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": "sha1-vO5BuDjGsMr1POcyeprQDTDK92M=", + "integrity": "sha512-4HDzl2HLLmnEuRKqDA3RRqBumkKkK6yHdUcsAGRdsx05/sKaRw6O6shtbPRv4FBt16ywJQwflIYSdB3kLE2ttA==", "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=", + "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" + } + }, + "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": { @@ -137,28 +623,81 @@ "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": { + "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" } }, + "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", - "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": { @@ -178,58 +717,174 @@ "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", "dev": true }, - "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-red": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", - "integrity": "sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw=", + "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": { - "ansi-wrap": "0.1.0" - } - }, - "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=", - "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 - }, - "ansi-wrap": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", - "integrity": "sha1-qCJQ3bABXponyoLoLqYDu/pF768=", - "dev": true - }, - "anymatch": { + "bitsyntax": "0.0.4", + "bluebird": "3.5.1", + "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": { + "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-escapes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-1.4.0.tgz", + "integrity": "sha1-06ioOzGapneTZisT52HHkRQiMG4=", + "dev": true + }, + "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": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "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" + } + }, + "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" } }, - "archy": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz", - "integrity": "sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=", + "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 }, + "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" + } + }, + "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", @@ -242,25 +897,25 @@ "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=", + "resolved": "https://registry.npmjs.org/array-equal/-/array-equal-1.0.0.tgz", + "integrity": "sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM=", "dev": true }, - "array-each": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/array-each/-/array-each-1.0.1.tgz", - "integrity": "sha1-p5SvDAWrF1KEbudTofIRoFugxE8=", + "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": { @@ -269,10 +924,44 @@ "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", "dev": true }, - "array-slice": { + "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-slice/-/array-slice-1.0.0.tgz", - "integrity": "sha1-5zA08A3MH0CHYAj9IP6ud71LfC8=", + "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", + "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": "0.2.3", + "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-0.2.3.tgz", + "integrity": "sha1-3Tz7gO15c6dRF82sabC5nshhhvU=", "dev": true }, "array-union": { @@ -297,9 +986,9 @@ "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": { @@ -308,6 +997,13 @@ "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", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", @@ -315,9 +1011,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", @@ -340,22 +1036,61 @@ "integrity": "sha1-104bh+ev/A24qttwIfP+SBAasjQ=", "dev": true }, - "async": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/async/-/async-0.9.0.tgz", - "integrity": "sha1-rDYTsdqb7RtHUQu0ZRuJMeRxRsc=", + "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", + "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" + }, + "dependencies": { + "acorn": { + "version": "4.0.13", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz", + "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=", + "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" + } + }, "async-each": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.1.tgz", "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=", + "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": { @@ -364,6 +1099,26 @@ "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", + "integrity": "sha512-Iq8TRIB+/9eQ8rbGhcP7ct5cYb/3qjNYAR2SnzLCEcwF6rvVOax8+9+fccgXk4bEhQGjOZd5TLhsksmAdsbGqQ==", + "dev": true, + "requires": { + "browserslist": "2.11.3", + "caniuse-lite": "1.0.30000819", + "normalize-range": "0.1.2", + "num2fraction": "1.2.2", + "postcss": "6.0.21", + "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", @@ -376,6 +1131,156 @@ "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-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" + } + }, + "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-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", + "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", + "dev": true, + "requires": { + "core-js": "2.5.3", + "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", @@ -388,6 +1293,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", @@ -395,9 +1332,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": { @@ -407,9 +1344,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": { @@ -422,12 +1359,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", @@ -440,31 +1371,91 @@ "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 }, - "blob": { + "bitsyntax": { "version": "0.0.4", - "resolved": "https://registry.npmjs.org/blob/-/blob-0.0.4.tgz", - "integrity": "sha1-vPEwUspURj8w+fx+lbmkdjCpSSE=", - "dev": true - }, - "bluebird": { - "version": "3.5.1", + "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": { + "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 + }, + "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" + } + }, + "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 + } + } + }, + "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": { "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": { @@ -476,23 +1467,43 @@ "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", "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 } } }, + "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", @@ -502,10 +1513,64 @@ "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.2.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 + }, + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "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" + } + } + } + }, "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", @@ -529,399 +1594,168 @@ "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=", "dev": true }, - "browser-sync": { - "version": "2.18.13", - "resolved": "https://registry.npmjs.org/browser-sync/-/browser-sync-2.18.13.tgz", - "integrity": "sha1-wo3D6zvmfJepBwgrdyo3+RXBTX0=", + "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": { - "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" + "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-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", + "integrity": "sha1-j/CbCixCFxihBRwmCzLkj0QpOM4=", + "dev": true, + "requires": { + "resolve": "1.1.7" }, "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=", + "resolve": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", + "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=", "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=", + } + } + }, + "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.12.0", + "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.1", + "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.6.0", + "shasum": "1.0.2", + "shell-quote": "1.6.1", + "stream-browserify": "2.0.1", + "stream-http": "2.8.1", + "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": { + "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": { - "ms": "0.7.1" + "base64-js": "1.2.3", + "ieee754": "1.1.11" } }, - "engine.io": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-1.8.0.tgz", - "integrity": "sha1-PutfJky3XbvsG6rqJtYfWk6s4qo=", + "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": { - "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" + "inherits": "2.0.3", + "readable-stream": "2.0.6", + "typedarray": "0.0.6" }, "dependencies": { - "debug": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.3.3.tgz", - "integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=", + "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": { - "ms": "0.7.2" + "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" } }, - "ms": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", - "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", + "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 } } }, - "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=", + "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 }, - "rx": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/rx/-/rx-4.1.0.tgz", - "integrity": "sha1-pfE/957zt0D+MKqAP7CfmIBdR4I=", + "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 }, - "socket.io": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-1.6.0.tgz", - "integrity": "sha1-PkDZMmN+a9kjmBslyvfFPoO24uE=", + "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": { - "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" + "process": "0.11.10" } } } }, - "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-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", @@ -961,7 +1795,7 @@ "dev": true, "requires": { "bn.js": "4.11.8", - "randombytes": "2.0.5" + "randombytes": "2.0.6" } }, "browserify-sign": { @@ -980,19 +1814,23 @@ } }, "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" } }, - "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 + "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.30000819", + "electron-to-chromium": "1.3.40" + } }, "buffer": { "version": "4.9.1", @@ -1000,25 +1838,57 @@ "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", "dev": true, "requires": { - "base64-js": "1.2.1", - "ieee754": "1.1.8", + "base64-js": "1.2.3", + "ieee754": "1.1.11", "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": { + "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-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", + "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", @@ -1031,36 +1901,107 @@ "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=", "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=", + "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.4.1", - "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.4.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz", - "integrity": "sha1-4FnAnYVx8FQII3M0M1BdOi8AsY4=", + "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=", + "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", + "resolved": "https://registry.npmjs.org/cached-path-relative/-/cached-path-relative-1.0.1.tgz", + "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", @@ -1077,10 +2018,16 @@ "map-obj": "1.0.1" } }, - "canonical-path": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/canonical-path/-/canonical-path-0.0.2.tgz", - "integrity": "sha1-4x65N6jJPuKgHfGDl5RyGQKHRXQ=", + "caniuse-lite": { + "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": { + "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": { @@ -1100,24 +2047,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": { @@ -1128,7 +2065,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", @@ -1137,16 +2074,166 @@ "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", + "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 + }, + "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", @@ -1156,37 +2243,43 @@ "string-width": "1.0.2", "strip-ansi": "3.0.1", "wrap-ansi": "2.1.0" + } + }, + "clone": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=", + "dev": true + }, + "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": { + "for-own": "1.0.0", + "is-plain-object": "2.0.4", + "kind-of": "6.0.2", + "shallow-clone": "1.0.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=", + "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": { - "ansi-regex": "2.1.1" + "for-in": "1.0.2" } + }, + "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 } } }, - "clone": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.2.tgz", - "integrity": "sha1-Jgt6meux7f4kdTgXX3gyQ8sZ0Uk=", - "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", @@ -1199,34 +2292,116 @@ "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", "dev": true }, - "colors": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.0.3.tgz", - "integrity": "sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs=", - "dev": true - }, - "combine-lists": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/combine-lists/-/combine-lists-1.0.1.tgz", - "integrity": "sha1-RYwH4J4NkA/Ci3Cj/sLazR0st/Y=", + "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": { - "lodash": "4.17.4" + "map-visit": "1.0.0", + "object-visit": "1.0.1" } }, - "combined-stream": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz", - "integrity": "sha1-k4NwpXtKUd6ix3wV1cX9+JUWQAk=", + "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": { - "delayed-stream": "1.0.0" + "color-name": "1.1.3" } }, - "commander": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.6.0.tgz", - "integrity": "sha1-nfflL7Kgyw+4kFjugMMQQiXzfh0=", + "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.1.2", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", + "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=", + "dev": true + }, + "combine-lists": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/combine-lists/-/combine-lists-1.0.1.tgz", + "integrity": "sha1-RYwH4J4NkA/Ci3Cj/sLazR0st/Y=", + "dev": true, + "requires": { + "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" + }, + "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.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.15.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", + "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", + "dev": true + }, + "commenting": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/commenting/-/commenting-1.0.5.tgz", + "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": { @@ -1236,9 +2411,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": { @@ -1247,6 +2422,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", @@ -1254,91 +2453,83 @@ "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" + } + }, + "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": { - "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=", + "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": { - "safe-buffer": "5.1.1" + "is-obj": "1.0.1" } } } }, - "concurrently": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-3.5.0.tgz", - "integrity": "sha1-jPG3cHppFqeKT/W3e7BN7FSzebI=", - "dev": true, - "requires": { - "chalk": "0.5.1", - "commander": "2.6.0", - "date-fns": "1.29.0", - "lodash": "4.17.4", - "rx": "2.3.24", - "spawn-command": "0.0.2-1", - "supports-color": "3.2.3", - "tree-kill": "1.2.0" - } - }, "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" + }, + "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", @@ -1348,16 +2539,190 @@ "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", "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": "sha1-4TjMdeBAxyexlm/l5fjJruJW/js=", + "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.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", + "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.5.1", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.1.tgz", + "integrity": "sha1-uCeAl7m8IpNl3lxiz1/K7YtVmeU=", "dev": true }, "cookie": { @@ -1366,58 +2731,181 @@ "integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s=", "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=", + "cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=", "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=", - "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" + } }, - "corser": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/corser/-/corser-2.0.1.tgz", - "integrity": "sha1-jtolLsqrWEDc2XXOuQ2TcMgZ/4c=", + "copy-descriptor": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", + "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", "dev": true }, - "create-ecdh": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.0.tgz", - "integrity": "sha1-iIxyNZbN92EvZJgjPuvXo1MBc30=", + "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": { - "bn.js": "4.11.8", - "elliptic": "6.4.0" + "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" + } + } } }, - "create-hash": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.1.3.tgz", - "integrity": "sha1-YGBCrIuSYnUPSDyt2rD1gZFy2P0=", + "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": { - "cipher-base": "1.0.4", - "inherits": "2.0.3", - "ripemd160": "2.0.1", - "sha.js": "2.4.9" + "chalk": "2.2.2" } }, - "create-hmac": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.6.tgz", - "integrity": "sha1-rLniIaThe9sHbpBlfEK5PjcmzwY=", - "dev": true, - "requires": { - "cipher-base": "1.0.4", - "create-hash": "1.1.3", - "inherits": "2.0.3", + "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 + }, + "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", + "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.6.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", + "integrity": "sha1-iIxyNZbN92EvZJgjPuvXo1MBc30=", + "dev": true, + "requires": { + "bn.js": "4.11.8", + "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", + "integrity": "sha1-YGBCrIuSYnUPSDyt2rD1gZFy2P0=", + "dev": true, + "requires": { + "cipher-base": "1.0.4", + "inherits": "2.0.3", + "ripemd160": "2.0.1", + "sha.js": "2.4.11" + } + }, + "create-hmac": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.6.tgz", + "integrity": "sha1-rLniIaThe9sHbpBlfEK5PjcmzwY=", + "dev": true, + "requires": { + "cipher-base": "1.0.4", + "create-hash": "1.1.3", + "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": "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" } }, "cryptiles": { @@ -1430,9 +2918,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", @@ -1444,9 +2932,61 @@ "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": { + "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 + }, + "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", + "integrity": "sha1-QICG1AlVDCYxFVYZ6fp7ytw7mRs=", + "dev": true + }, "currently-unhandled": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", @@ -1462,6 +3002,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", @@ -1479,10 +3043,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": { @@ -1491,16 +3068,10 @@ "integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=", "dev": true }, - "dateformat": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-2.2.0.tgz", - "integrity": "sha1-QGXiATz5+5Ft39gu+1Bq1MZ2kGI=", - "dev": true - }, "debug": { "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8=", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dev": true, "requires": { "ms": "2.0.0" @@ -1512,28 +3083,145 @@ "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", "dev": true }, - "defaults": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz", - "integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=", + "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": { + "decamelize": "1.2.0", + "map-obj": "1.0.1" + } + }, + "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": { + "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 + }, + "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, + "requires": { + "strip-bom": "2.0.0" + } + }, + "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": { + "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": { + "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": { - "clone": "1.0.2" + "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": { - "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", + "is-path-in-cwd": "1.0.1", + "p-map": "1.2.0", + "pify": "3.0.0", "rimraf": "2.6.2" + }, + "dependencies": { + "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 + } + } + } } }, "delayed-stream": { @@ -1542,18 +3230,36 @@ "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", "dev": true }, - "depd": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", - "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=", + "delegates": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", "dev": true }, - "deprecated": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/deprecated/-/deprecated-0.0.1.tgz", - "integrity": "sha1-+cmvVGSvoeepcUWKi97yqpTVuxk=", + "denodeify": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/denodeify/-/denodeify-1.2.1.tgz", + "integrity": "sha1-OjYof1A05pnnV3kBBSwubJQlFjE=", + "dev": true + }, + "depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", "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", @@ -1570,21 +3276,31 @@ "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" } }, - "dev-ip": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dev-ip/-/dev-ip-1.0.1.tgz", - "integrity": "sha1-p2o+0YVb56ASu4rBbLgPPADcKPA=", + "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", + "integrity": "sha512-H6PmeeUcZloWtdt4DAkFyzFL94arpHr3NOwwmVILFiy+9Qd4JTxxXrzfyGk/lmct2qVGBwTSwSXagqu2BxmWig==", + "dev": true, + "requires": { + "acorn": "5.5.3", + "defined": "1.0.0" + } + }, "di": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/di/-/di-0.0.1.tgz", @@ -1592,9 +3308,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": { @@ -1605,88 +3321,188 @@ "requires": { "bn.js": "4.11.8", "miller-rabin": "4.0.1", - "randombytes": "2.0.5" + "randombytes": "2.0.6" } }, - "dom-serialize": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/dom-serialize/-/dom-serialize-2.2.1.tgz", - "integrity": "sha1-ViromZ9Evl6jB29UGdzVnrQ6yVs=", + "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": { - "custom-event": "1.0.1", - "ent": "2.2.0", - "extend": "3.0.1", - "void-elements": "2.0.1" + "arrify": "1.0.1", + "path-type": "3.0.0" } }, - "domain-browser": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.1.7.tgz", - "integrity": "sha1-hnqksJP6oF8d4IwG9NeyH9+GmLw=", + "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 }, - "domino": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/domino/-/domino-2.0.1.tgz", - "integrity": "sha512-f08oiY92tD+GHNiBTZKWmU9l2dbpWEMC9/UX4hM2kD3TSONcfHmCR2llqZpcipSAtVMz/dVgLfg5tfxy7axwLw==", - "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" + } }, - "duplexer2": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz", - "integrity": "sha1-xhTc9n4vsUmVqRcR5aYX6KYKMds=", + "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": { - "readable-stream": "1.1.14" + "buffer-indexof": "1.1.1" } }, - "easy-extender": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/easy-extender/-/easy-extender-2.3.2.tgz", - "integrity": "sha1-PTJI/r4rFZYHMW2PnPSRwWZIIh0=", + "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": { - "lodash": "3.10.1" + "utila": "0.3.3" }, "dependencies": { - "lodash": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", - "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=", + "utila": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/utila/-/utila-0.3.3.tgz", + "integrity": "sha1-1+jn1+MJEHCSsF+NloiCTWM6QiY=", "dev": true } } }, - "eazy-logger": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/eazy-logger/-/eazy-logger-3.0.2.tgz", - "integrity": "sha1-oyWqXlPROiIliJsqxBE7K5Y29Pw=", + "dom-serialize": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/dom-serialize/-/dom-serialize-2.2.1.tgz", + "integrity": "sha1-ViromZ9Evl6jB29UGdzVnrQ6yVs=", "dev": true, "requires": { - "tfunk": "3.1.0" + "custom-event": "1.0.1", + "ent": "2.2.0", + "extend": "3.0.1", + "void-elements": "2.0.1" } }, - "ecc-jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", - "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", + "dom-serializer": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.0.tgz", + "integrity": "sha1-BzxpdUbOB4DOI75KKOKT5AvDDII=", "dev": true, - "optional": true, "requires": { - "jsbn": "0.1.1" + "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 + } } }, - "ecstatic": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/ecstatic/-/ecstatic-1.4.1.tgz", - "integrity": "sha1-Mst7b6LikNWGaGdNEV6PDD1WfWo=", + "domain-browser": { + "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 + }, + "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": { - "he": "0.5.0", - "mime": "1.4.1", - "minimist": "1.2.0", - "url-join": "1.1.0" + "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": "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" + } + }, + "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.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" + } + }, + "duplexer3": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", + "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=", + "dev": true + }, + "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": { + "end-of-stream": "1.4.1", + "inherits": "2.0.3", + "readable-stream": "2.3.5", + "stream-shift": "1.0.0" + } + }, + "ecc-jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", + "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", + "dev": true, + "optional": true, + "requires": { + "jsbn": "0.1.1" } }, "ee-first": { @@ -1695,6 +3511,24 @@ "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", @@ -1710,10 +3544,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": { @@ -1723,117 +3557,87 @@ "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": { - "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": { "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=", - "dev": true } } }, "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": { - "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": "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=", - "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" } }, "enhanced-resolve": { @@ -1846,14 +3650,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": { @@ -1862,13 +3658,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": { @@ -1880,12 +3682,107 @@ "is-arrayish": "0.2.1" } }, + "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" + } + }, + "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" + } + }, + "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" + } + }, + "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, + "requires": { + "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": "4.0.5", - "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.0.5.tgz", - "integrity": "sha1-eILzCt3lskDM+n99eMVIMwlRrkI=", + "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", @@ -1898,12 +3795,95 @@ "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", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "optional": true + } + } + }, + "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": "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 + }, + "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 }, + "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", @@ -1916,16 +3896,65 @@ "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", "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" + }, + "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", @@ -1937,12 +3966,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", @@ -1994,54 +4017,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 } } @@ -2053,19 +4090,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" + } } } }, @@ -2078,47 +4119,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 } } }, @@ -2128,82 +4160,76 @@ "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=", + "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, "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 - } + "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": { + "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", "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", @@ -2218,26 +4244,29 @@ } }, "finalhandler": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.0.6.tgz", - "integrity": "sha1-AHrqM9Gk0+QgF/YkhIrVjSEvgU8=", + "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": { @@ -2246,64 +4275,41 @@ "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", - "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=", + "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": { - "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" - } - } + "debug": "2.6.9" } }, - "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 - }, "for-in": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", @@ -2319,6 +4325,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", @@ -2332,22 +4344,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", @@ -2357,29 +4388,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": { @@ -2389,27 +4418,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": { @@ -2419,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": { @@ -2443,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": { @@ -2494,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" @@ -2503,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" @@ -2512,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", @@ -2522,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" @@ -2557,36 +4566,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": { @@ -2595,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 } @@ -2604,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": { @@ -2614,28 +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", + "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": { @@ -2644,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": { @@ -2676,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", @@ -2694,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": { @@ -2706,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": { @@ -2723,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": { @@ -2733,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 } @@ -2742,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", @@ -2756,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": { @@ -2780,17 +4769,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", @@ -2800,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": { @@ -2818,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", @@ -2828,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" @@ -2850,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": { @@ -2880,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": { @@ -2904,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": { @@ -2931,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 } @@ -2940,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" @@ -2955,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" @@ -2964,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" @@ -2979,18 +4943,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", @@ -3004,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": { @@ -3015,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": { @@ -3028,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" @@ -3057,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": { @@ -3082,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": { @@ -3128,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 } @@ -3137,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", @@ -3152,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": { @@ -3183,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" @@ -3192,45 +5137,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": { @@ -3247,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 } @@ -3256,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", @@ -3267,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" @@ -3276,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" @@ -3292,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", @@ -3310,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": { @@ -3327,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": { @@ -3337,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": { @@ -3347,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": { @@ -3384,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": { @@ -3394,19 +5316,107 @@ }, "wrappy": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "bundled": true, "dev": true } } }, + "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" + } + }, + "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" + }, + "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": { + "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" + } + }, "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": "1.2.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": { - "globule": "0.1.0" + "is-property": "1.0.2" } }, "get-caller-file": { @@ -3415,12 +5425,45 @@ "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", "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" + } + }, + "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", @@ -3438,105 +5481,175 @@ } } }, - "glob": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", - "integrity": "sha1-wZyd+aAocC1nhhI4SmVSQExjbRU=", + "git-raw-commits": { + "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": { - "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" - } - }, - "glob-base": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz", - "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", - "dev": true, - "requires": { - "glob-parent": "2.0.0", - "is-glob": "2.0.1" - } - }, - "glob-parent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", - "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", - "dev": true, - "requires": { - "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" + "dargs": "4.1.0", + "lodash.template": "4.4.0", + "meow": "4.0.0", + "split2": "2.2.0", + "through2": "2.0.3" }, "dependencies": { - "glob": { - "version": "4.5.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-4.5.3.tgz", - "integrity": "sha1-xstz0yJsHv7wTePFbQEvAzd+4V8=", + "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": { - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "2.0.10", - "once": "1.4.0" + "camelcase": "4.1.0", + "map-obj": "2.0.0", + "quick-lru": "1.1.0" } }, - "minimatch": { - "version": "2.0.10", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-2.0.10.tgz", - "integrity": "sha1-jQh8OcazjAAbl/ynzm0OHoCvusc=", + "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": { - "brace-expansion": "1.1.8" + "graceful-fs": "4.1.11", + "parse-json": "4.0.0", + "pify": "3.0.0", + "strip-bom": "3.0.0" } }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", + "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": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "0.0.1", - "string_decoder": "0.10.31" + "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" } }, - "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", + "redent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", + "integrity": "sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=", "dev": true, "requires": { - "readable-stream": "1.0.34", - "xtend": "4.0.1" + "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-watcher": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/glob-watcher/-/glob-watcher-0.0.6.tgz", - "integrity": "sha1-uVtKjfdLOcgymLDAXJeLTZo7cQs=", + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "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" + } + }, + "glob-base": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz", + "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", + "dev": true, + "requires": { + "glob-parent": "2.0.0", + "is-glob": "2.0.1" + } + }, + "glob-parent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", + "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", "dev": true, "requires": { - "gaze": "0.5.2" + "is-glob": "2.0.1" } }, "glob2base": { @@ -3548,355 +5661,222 @@ "find-index": "0.1.1" } }, - "global-modules": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-0.2.3.tgz", - "integrity": "sha1-6lo77ULG1s6ZWk+KEmm12uIjgo0=", + "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": { - "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": "5.0.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-5.0.0.tgz", - "integrity": "sha1-69hGZ8oNuzMLmbz8aOrCvFQ3Dg0=", + "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", - "arrify": "1.0.1", + "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=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/globule/-/globule-1.2.0.tgz", + "integrity": "sha1-HcScaCLdnoovoAuiopUAboZkvQk=", "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" - } - } + "glob": "7.1.2", + "lodash": "4.17.5", + "minimatch": "3.0.4" } }, - "glogg": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/glogg/-/glogg-1.0.0.tgz", - "integrity": "sha1-f+DxmfV6yQbPUS/urY+Q7kooT8U=", + "got": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/got/-/got-6.7.1.tgz", + "integrity": "sha1-JAzQV4WpoY5WHcG0S0HHY+8ejbA=", "dev": true, "requires": { - "sparkles": "1.0.0" + "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.1", + "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", - "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=", + "async": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", + "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", "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 + "camelcase": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", + "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", + "dev": true, + "optional": true }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "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-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" + "center-align": "0.1.3", + "right-align": "0.1.3", + "wordwrap": "0.0.2" } }, - "has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "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-regex": "2.1.1" + "amdefine": "1.0.1" } }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "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 + } } }, - "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 + "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": { + "camelcase": "1.2.1", + "cliui": "2.1.0", + "decamelize": "1.2.0", + "window-size": "0.1.0" + } } } }, - "gulp-bump": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/gulp-bump/-/gulp-bump-2.8.0.tgz", - "integrity": "sha1-f+9CIF61wSTY3EZBhmYGPlMY2p4=", + "har-schema": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-1.0.5.tgz", + "integrity": "sha1-0mMTX0MwfALGAq/I/pWXDAFRNp4=", + "dev": true + }, + "har-validator": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-4.2.1.tgz", + "integrity": "sha1-M0gdDxu/9gDdID11gSpqX7oALio=", "dev": true, "requires": { - "bump-regex": "2.8.0", - "plugin-error": "0.1.2", - "plugin-log": "0.1.0", - "semver": "5.4.1", - "through2": "2.0.3" + "ajv": "4.11.8", + "har-schema": "1.0.5" }, "dependencies": { - "semver": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz", - "integrity": "sha1-4FnAnYVx8FQII3M0M1BdOi8AsY4=", - "dev": true + "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" + } } } }, - "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=", + "has": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.1.tgz", + "integrity": "sha1-hGFzP1OLCDfJNh45qauelwTcLyg=", "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" + "function-bind": "1.1.1" } }, - "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=", + "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": { - "chalk": "0.5.1" + "ansi-regex": "2.1.1" } }, - "gulp-util": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/gulp-util/-/gulp-util-3.0.8.tgz", - "integrity": "sha1-AFTh50RQLifATBh8PsxQXdVLu08=", + "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": { - "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" + "isarray": "2.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" - } - }, - "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" - } - }, - "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=", - "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=", + "isarray": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz", + "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4=", "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", - "integrity": "sha1-0mMTX0MwfALGAq/I/pWXDAFRNp4=", - "dev": true - }, - "har-validator": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-4.2.1.tgz", - "integrity": "sha1-M0gdDxu/9gDdID11gSpqX7oALio=", - "dev": true, - "requires": { - "ajv": "4.11.8", - "har-schema": "1.0.5" - } - }, - "has-ansi": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-0.1.0.tgz", - "integrity": "sha1-hPJlqujA5qiKEtcCKJS3VoiUxi4=", - "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" - } - }, "has-cors": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/has-cors/-/has-cors-1.1.0.tgz", @@ -3904,18 +5884,75 @@ "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=", + "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": { - "sparkles": "1.0.0" + "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": { @@ -3930,23 +5967,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", @@ -3960,11 +5987,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", @@ -3982,19 +6020,140 @@ "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": { @@ -4007,8 +6166,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", @@ -4019,20 +6198,44 @@ "requires-port": "1.0.0" } }, - "http-server": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/http-server/-/http-server-0.9.0.tgz", - "integrity": "sha1-jxsGvcczYY1NxCgxx7oa/04GABo=", + "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-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": "1.4.1", "http-proxy": "1.16.2", - "opener": "1.4.3", - "optimist": "0.6.1", - "portfinder": "0.4.0", - "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": { @@ -4043,31 +6246,200 @@ "requires": { "assert-plus": "0.2.0", "jsprim": "1.4.1", - "sshpk": "1.13.1" + "sshpk": "1.14.1" } }, - "https-browserify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-0.0.1.tgz", - "integrity": "sha1-P5E2XKvmC3ftDruiS0VOPgnZWoI=", - "dev": true + "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" + } }, - "iconv-lite": { - "version": "0.4.19", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz", - "integrity": "sha1-90aPYBNfXl2tM5nAqBvpoWA6CCs=", + "httpreq": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/httpreq/-/httpreq-0.4.24.tgz", + "integrity": "sha1-QzX/2CzZaWaKOUZckprGHWOTYn8=", "dev": true }, - "ieee754": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.8.tgz", - "integrity": "sha1-vjPUCsEO8ZJnAfbwii2G+/0a0+Q=", + "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 }, - "immutable": { - "version": "3.8.1", - "resolved": "https://registry.npmjs.org/immutable/-/immutable-3.8.1.tgz", - "integrity": "sha1-IAgH8Rqw9ycQ6khVQt4IgHX2jNI=", + "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" + } + }, + "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", + "integrity": "sha512-oTZqweIP51xaGPI4uPa56/Pri/480R+mo7SeU+YETByQNhDG55ycFyNLIgta9vXhILrxXDmF7ZGhqZIcuN0gJQ==", + "dev": true + }, + "ieee754": { + "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": { + "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": { + "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 + }, + "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", + "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": { @@ -4085,6 +6457,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", @@ -4102,31 +6481,119 @@ "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": { + "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 }, + "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": { + "source-map": "0.5.7" + } + }, + "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": { + "JSONStream": "1.3.2", + "combine-source-map": "0.7.2", + "concat-stream": "1.6.2", + "is-buffer": "1.1.6", + "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" + } + }, + "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 + } + } + }, + "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", "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", "dev": true }, - "is-absolute": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-0.2.6.tgz", - "integrity": "sha1-IN5p89uULvLYe5wto28XIjWxtes=", + "ip": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", + "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=", + "dev": true + }, + "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-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": { @@ -4141,13 +6608,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": { @@ -4159,6 +6626,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", @@ -4204,6 +6734,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", @@ -4213,6 +6749,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", @@ -4222,13 +6799,44 @@ "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=", + "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": { - "lodash.isfinite": "3.3.2" + "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": { @@ -4238,27 +6846,33 @@ "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.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" } }, + "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" @@ -4284,36 +6898,72 @@ "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", "dev": true }, - "is-relative": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-0.2.1.tgz", - "integrity": "sha1-0n9MfVFtF1+2ENuEu+7yPDvJeqU=", + "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", + "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-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": { - "is-unc-path": "0.1.2" + "has": "1.0.1" } }, + "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", + "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", "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", @@ -4321,15 +6971,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": { @@ -4351,14 +7007,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": { @@ -4367,2936 +7015,7212 @@ "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": "2.8.0", - "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-2.8.0.tgz", - "integrity": "sha1-vMl5rh+f0FcB5F5S5l06XWPxok4=", - "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" + } }, - "jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "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, - "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 + "requires": { + "convert-source-map": "1.5.1", + "istanbul-lib-instrument": "1.10.1", + "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" + } + } + } }, - "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 - }, - "jsonfile": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz", - "integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug=", + "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": { - "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-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" } }, - "jsonify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", - "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", - "dev": true - }, - "jsprim": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", - "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "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": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.2.3", - "verror": "1.10.0" + "istanbul-lib-coverage": "1.2.0", + "mkdirp": "0.5.1", + "path-parse": "1.0.5", + "supports-color": "3.2.3" }, "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": "1.7.1", - "resolved": "https://registry.npmjs.org/karma/-/karma-1.7.1.tgz", - "integrity": "sha1-hcwI6eCiLXzpzKN8ShvoJPaisa4=", + "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", - "chokidar": "1.7.0", - "colors": "1.1.2", - "combine-lists": "1.0.1", - "connect": "3.6.5", - "core-js": "2.5.1", - "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": "3.10.1", - "log4js": "0.6.38", - "mime": "1.4.1", - "minimatch": "3.0.4", - "optimist": "0.6.1", - "qjobs": "1.1.5", - "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": "1.7.3", - "source-map": "0.5.7", - "tmp": "0.0.31", - "useragent": "2.2.1" + "source-map": "0.5.7" }, "dependencies": { - "colors": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", - "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=", - "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 - }, - "lodash": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", - "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=", - "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-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", + "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.0", - "resolved": "https://registry.npmjs.org/karma-jasmine/-/karma-jasmine-1.1.0.tgz", - "integrity": "sha1-IuTAa/mhguUpTR9wXjczgRuBCs8=", - "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": "0.2.2", - "resolved": "https://registry.npmjs.org/karma-jasmine-html-reporter/-/karma-jasmine-html-reporter-0.2.2.tgz", - "integrity": "sha1-SKjl7xiAdhfuK14zwRlMNbQ5Ukw=", + "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.0" + "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.4", - "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": "2.0.5", - "resolved": "https://registry.npmjs.org/karma-webpack/-/karma-webpack-2.0.5.tgz", - "integrity": "sha1-T1aIfjLPT5WDORwjiEFd4Grwbv0=", + "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": "0.9.0", - "loader-utils": "0.2.17", - "lodash": "3.10.1", - "source-map": "0.1.43", - "webpack-dev-middleware": "1.12.0" + "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": { - "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 }, - "source-map": { - "version": "0.1.43", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", - "integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=", + "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": { - "amdefine": "1.0.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" } }, - "lazy-cache": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", - "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=", + "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 }, - "lcid": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", - "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", - "dev": true, - "requires": { - "invert-kv": "1.0.0" - } + "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 }, - "liftoff": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/liftoff/-/liftoff-2.3.0.tgz", - "integrity": "sha1-qY8v9nGD2Lp8+soQVIvX/wVQs4U=", + "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": { - "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" + "browser-resolve": "1.11.2", + "chalk": "2.2.2" } }, - "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=", + "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": { - "browser-sync": "2.18.13", - "connect-history-api-fallback": "1.4.0", - "connect-logger": "0.0.1", - "lodash": "4.17.4", - "minimist": "1.2.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" } }, - "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=", + "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": { + "callsites": "2.0.0", + "chalk": "2.2.2", "graceful-fs": "4.1.11", - "parse-json": "2.2.0", - "pify": "2.3.0", - "pinkie-promise": "2.0.1", - "strip-bom": "2.0.0" + "is-ci": "1.1.0", + "jest-message-util": "22.4.3", + "mkdirp": "0.5.1", + "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=", + "callsites": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz", + "integrity": "sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA=", "dev": true }, - "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" - } + "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-runner": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.3.0.tgz", - "integrity": "sha1-9IKuqC1UPgeSFwDVpG7yb9rGuKI=", + "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, + "requires": { + "chalk": "2.2.2", + "jest-config": "22.4.3", + "jest-get-type": "22.4.3", + "leven": "2.1.0", + "pretty-format": "22.4.3" + } + }, + "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 }, - "loader-utils": { - "version": "0.2.17", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-0.2.17.tgz", - "integrity": "sha1-+G5jdNQyBabmxg6RlvF8Apm/s0g=", + "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": { - "big.js": "3.2.0", - "emojis-list": "2.1.0", - "json5": "0.5.1", - "object-assign": "4.1.1" + "argparse": "1.0.10", + "esprima": "4.0.0" } }, - "localtunnel": { - "version": "1.8.3", - "resolved": "https://registry.npmjs.org/localtunnel/-/localtunnel-1.8.3.tgz", - "integrity": "sha1-3MWSL9hWUQN9S94k/ZMkjQsk6wU=", + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", "dev": true, - "requires": { - "debug": "2.6.8", - "openurl": "1.1.1", - "request": "2.81.0", - "yargs": "3.29.0" + "optional": true + }, + "jsdom": { + "version": "11.6.2", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-11.6.2.tgz", + "integrity": "sha512-pAeZhpbSlUp5yQcS6cBQJwkbzmv4tWFaYxHbFVSxzXefqjvtRA851Z5N2P+TguVG9YeUDcgb8pdeVQRJh0XR3Q==", + "dev": true, + "requires": { + "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": { - "camelcase": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", - "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", + "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 }, - "debug": { - "version": "2.6.8", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.8.tgz", - "integrity": "sha1-5zFTHKLt4n0YgiJCfaF4IdaP9Pw=", + "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": { - "ms": "2.0.0" + "hoek": "4.2.1" } }, - "yargs": { - "version": "3.29.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.29.0.tgz", - "integrity": "sha1-GquWYOrnnYuPZ1vK7qtu40ws9pw=", + "cryptiles": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-3.1.2.tgz", + "integrity": "sha1-qJ+7Ig9c4l7FboxKqKT9e1sNKf4=", "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" + "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/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": { + "ajv": "5.5.2", + "har-schema": "2.0.0" + } + }, + "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 + }, + "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": { + "assert-plus": "1.0.0", + "jsprim": "1.4.1", + "sshpk": "1.14.1" + } + }, + "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": { + "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" + } + }, + "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.4", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", - "dev": true - }, - "lodash._basecopy": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz", - "integrity": "sha1-jaDmqHbPNEwK2KVIghEd08XHyjY=", - "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=", - "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=", - "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=", - "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=", - "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=", + "jsesc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", + "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", "dev": true }, - "lodash._reevaluate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._reevaluate/-/lodash._reevaluate-3.0.0.tgz", - "integrity": "sha1-WLx0xAZklTrgsSTYBpltrKQx4u0=", + "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._reinterpolate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", - "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=", + "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._root": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/lodash._root/-/lodash._root-3.0.1.tgz", - "integrity": "sha1-+6HEUkwZ7ppfgTa0YJ8BfPTe1pI=", + "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.assign": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz", - "integrity": "sha1-DZnzzNem0mHRm9rrkkUAXShYCOc=", + "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.escape": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/lodash.escape/-/lodash.escape-3.2.0.tgz", - "integrity": "sha1-mV7g3BjBtIzJLv+ucaEKq1tIdpg=", + "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": { - "lodash._root": "3.0.1" + "jsonify": "0.0.0" } }, - "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=", + "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.isfinite": { + "json3": { "version": "3.3.2", - "resolved": "https://registry.npmjs.org/lodash.isfinite/-/lodash.isfinite-3.3.2.tgz", - "integrity": "sha1-+4m2WpqAKBgz8LdHizpRBPiY67M=", - "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=", + "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.2.tgz", + "integrity": "sha1-PAQ0dD35Pi9cQq7nsZvLSDV19OE=", "dev": true }, - "lodash.isstring": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", - "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=", + "json5": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", + "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=", "dev": true }, - "lodash.keys": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz", - "integrity": "sha1-TbwEcrFWvlCgsoaFXRvQsMZWCYo=", + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", "dev": true, "requires": { - "lodash._getnative": "3.9.1", - "lodash.isarguments": "3.1.0", - "lodash.isarray": "3.0.4" + "graceful-fs": "4.1.11" } }, - "lodash.mapvalues": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/lodash.mapvalues/-/lodash.mapvalues-4.6.0.tgz", - "integrity": "sha1-G6+lAF3p3W9PJmaMMMo3IwzJaJw=", + "jsonify": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", + "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", "dev": true }, - "lodash.restparam": { - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/lodash.restparam/-/lodash.restparam-3.6.1.tgz", - "integrity": "sha1-k2pOMJ7zMKdkXtQUWYbIWuWyCAU=", + "jsonparse": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", + "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=", "dev": true }, - "lodash.template": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-3.6.2.tgz", - "integrity": "sha1-+M3sxhaaJVvpCYrosMU9N4kx0U8=", - "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" - } + "jsonpointer": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-4.0.1.tgz", + "integrity": "sha1-T9kss04OnbPInIYi7PUfm5eMbLk=", + "dev": true }, - "lodash.templatesettings": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-3.1.1.tgz", - "integrity": "sha1-+zB4RHU7Zrnxr6VOJix0UwfbqOU=", + "jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", "dev": true, "requires": { - "lodash._reinterpolate": "3.0.0", - "lodash.escape": "3.2.0" + "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 + } } }, - "log4js": { - "version": "0.6.38", - "resolved": "https://registry.npmjs.org/log4js/-/log4js-0.6.38.tgz", - "integrity": "sha1-LElBFmldb7JUgJQ9P8hy5mKlIv0=", + "karma": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/karma/-/karma-2.0.0.tgz", + "integrity": "sha512-K9Kjp8CldLyL9ANSUctDyxC7zH3hpqXj/K09qVf06K3T/kXaHtFZ5tQciK7OzQu68FLvI89Na510kqQ2LCbpIw==", "dev": true, "requires": { - "readable-stream": "1.0.34", - "semver": "4.3.6" + "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": { - "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" - } + "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 } } }, - "longest": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", - "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", - "dev": true - }, - "loud-rejection": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", - "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=", + "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": { - "currently-unhandled": "0.4.1", - "signal-exit": "3.0.2" + "fs-access": "1.0.1", + "which": "1.3.0" } }, - "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 - }, - "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=", - "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=", + "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": { - "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" - } - } + "istanbul-api": "1.3.1", + "minimatch": "3.0.4" } }, - "media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", + "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 }, - "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=", + "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": { - "errno": "0.1.4", - "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" - } - } + "jasmine-ajax": "3.3.1" } }, - "meow": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz", - "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=", + "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": { - "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" + "karma-jasmine": "1.1.1" } }, - "micromatch": { - "version": "2.3.11", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", - "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", + "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": { - "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" + "path-is-absolute": "1.0.1", + "xmlbuilder": "8.2.2" } }, - "miller-rabin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", - "integrity": "sha1-8IA1HIZbDcViqEYpZtqlNUPHik0=", + "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": { - "bn.js": "4.11.8", - "brorand": "1.1.0" + "source-map-support": "0.4.18" } }, - "mime": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz", - "integrity": "sha1-Eh+evEnjdm8xGnbh+hyAA8SwOqY=", + "killable": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/killable/-/killable-1.0.0.tgz", + "integrity": "sha1-2ouEvUfeU5WHj5XWTQLyRJ/gXms=", "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 + "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" + } }, - "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=", + "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": { - "mime-db": "1.30.0" + "inherits": "2.0.3", + "isarray": "2.0.4", + "stream-splicer": "2.0.0" + }, + "dependencies": { + "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 + } } }, - "minimalistic-assert": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz", - "integrity": "sha1-cCvi3aazf0g2vLP121ZkG2Sh09M=", - "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=", + "dev": true, + "requires": { + "package-json": "4.0.1" + } }, - "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=", + "lazy-cache": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", + "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=", "dev": true }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=", + "lcid": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", + "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", "dev": true, "requires": { - "brace-expansion": "1.1.8" + "invert-kv": "1.0.0" } }, - "minimist": { + "left-pad": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "resolved": "https://registry.npmjs.org/left-pad/-/left-pad-1.2.0.tgz", + "integrity": "sha1-0wpzxrggHY99jnlWupYWCHpo4O4=", "dev": true }, - "mkdirp": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "less": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/less/-/less-2.7.3.tgz", + "integrity": "sha512-KPdIJKWcEAb02TuJtaLrhue0krtRLoRoo7x6BNJIBelO00t/CCdJQUnHW5V34OnHMWzIktSalJxRO+FvytQlCQ==", "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=", - "dev": true - } + "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" } }, - "moment": { - "version": "2.19.1", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.19.1.tgz", - "integrity": "sha1-VtoaLRy/AdOLfhr8McELz6GSkWc=", - "dev": true + "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, + "requires": { + "clone": "2.1.2", + "loader-utils": "1.1.0", + "pify": "3.0.0" + } }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "leven": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-2.1.0.tgz", + "integrity": "sha1-wuep93IJTe6dNCAq6KzORoeHVYA=", "dev": true }, - "multipipe": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/multipipe/-/multipipe-0.1.2.tgz", - "integrity": "sha1-Ko8t33Du1WTf8tV/HhoTfZ8FB4s=", + "levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", "dev": true, "requires": { - "duplexer2": "0.0.2" + "prelude-ls": "1.1.2", + "type-check": "0.3.2" } }, - "nan": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.7.0.tgz", - "integrity": "sha1-2Vv3IeyHfgjbJ27T/G63j5CDrUY=", + "lexical-scope": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/lexical-scope/-/lexical-scope-1.2.0.tgz", + "integrity": "sha1-/Ope3HBKSzqHls3KQZw6CvryLfQ=", "dev": true, - "optional": true - }, - "natives": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/natives/-/natives-1.1.0.tgz", - "integrity": "sha1-6f+EFBimsux6SV6TmYT3jxY+bjE=", - "dev": true + "requires": { + "astw": "2.2.0" + } }, - "negotiator": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz", - "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=", + "libbase64": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/libbase64/-/libbase64-0.1.0.tgz", + "integrity": "sha1-YjUag5VjrF/1vSbxL2Dpgwu3UeY=", "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=", + "libmime": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/libmime/-/libmime-3.0.0.tgz", + "integrity": "sha1-UaGp50SOy9Ms2lRCFnW7IbwJPaY=", "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" + "iconv-lite": "0.4.15", + "libbase64": "0.1.0", + "libqp": "1.1.0" }, "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "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 + }, + "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": { + "ejs": "2.5.7" + } + }, + "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": { + "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.10", + "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": { + "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=", + "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", - "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" + "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": { - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha1-D8Z9fBQYJd6UKC3VNr7GubzoYKs=", + "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==", + "dev": true, + "requires": { + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.3.0" + } + }, + "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" + } + }, + "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": { + "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 + } + } + }, + "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" + } + } + } + }, + "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-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": { - "safe-buffer": "5.1.1" + "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.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", + "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": { + "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" + } + }, + "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": { + "has-flag": "3.0.0" + } + } + } + }, + "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 + }, + "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" + } + }, + "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" + } + }, + "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" + } + }, + "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 + } + } + }, + "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 + }, + "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": { + "chalk": "1.1.3", + "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-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" + } + }, + "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 + }, + "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" + } + }, + "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 + } + } + }, + "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 + }, + "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 + } + } + }, + "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": { + "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": { + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + } + } + }, + "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": "1.1.0", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz", + "integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=", + "dev": true, + "requires": { + "big.js": "3.2.0", + "emojis-list": "2.1.0", + "json5": "0.5.1" + } + }, + "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" + } + }, + "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._reinterpolate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", + "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=", + "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.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=", + "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.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 + }, + "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.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 + }, + "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.omit": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.omit/-/lodash.omit-4.5.0.tgz", + "integrity": "sha1-brGa5aHuHdnfC5aeZs4Lf6MLXmA=", + "dev": true + }, + "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 + }, + "lodash.snakecase": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz", + "integrity": "sha1-OdcUo1NXFHg3rv1ktdy7Fr7Nj40=", + "dev": true + }, + "lodash.sortby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", + "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=", + "dev": true + }, + "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 + }, + "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": { + "lodash._reinterpolate": "3.0.0", + "lodash.templatesettings": "4.1.0" + } + }, + "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": { + "lodash._reinterpolate": "3.0.0" + } + }, + "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": { + "chalk": "2.2.2" + } + }, + "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": { + "ansi-escapes": "1.4.0", + "cli-cursor": "1.0.2" + } + }, + "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": { + "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" + } + } + } + }, + "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": { + "json-stringify-safe": "5.0.1", + "request": "2.75.0", + "timespan": "2.3.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, + "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 + } + } + }, + "loglevel": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.6.1.tgz", + "integrity": "sha1-4PyVEztu8nbNyIh82vJKpvFW+Po=", + "dev": true + }, + "longest": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", + "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", + "dev": true + }, + "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": { + "js-tokens": "3.0.2" + } + }, + "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": { + "currently-unhandled": "0.4.1", + "signal-exit": "3.0.2" + } + }, + "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.1", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", + "dev": true + }, + "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" + } + }, + "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 + }, + "q": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.4.1.tgz", + "integrity": "sha1-VXBbzZPF82c1MMLCy8DCs63cKG4=", + "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" + } + }, + "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=", + "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": { + "object-visit": "1.0.1" + } + }, + "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": { + "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" + } + } + } + }, + "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": { + "mimic-fn": "1.2.0" + } + }, + "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": { + "errno": "0.1.7", + "readable-stream": "2.3.5" + } + }, + "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" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + } + } + }, + "merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=", + "dev": true + }, + "methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", + "dev": true + }, + "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": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", + "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.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" + } + }, + "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": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "1.1.11" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "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": { + "arrify": "1.0.1", + "is-plain-obj": "1.1.0" + } + }, + "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": { + "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" + } + }, + "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": { + "for-in": "1.0.2", + "is-extendable": "1.0.1" + }, + "dependencies": { + "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" + } + } + } + }, + "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", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "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": { + "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" + } + } + } + }, + "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 + }, + "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 + } + } + }, + "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": { + "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" + } + }, + "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": { + "dns-packet": "1.3.1", + "thunky": "1.0.2" + } + }, + "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": { + "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": { + "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 + } + } + }, + "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": { + "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.8.3", + "node-sass-tilde-importer": "1.0.2", + "postcss": "6.0.21", + "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", + "escape-string-regexp": "1.0.5", + "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 + }, + "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": { + "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" + } + } + } + }, + "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": { + "lower-case": "1.1.4" + } + }, + "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": { + "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": { + "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 + } + } + }, + "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": { + "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" + } + }, + "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 + }, + "node-sass": { + "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", + "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": { + "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" + } + }, + "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 + } + } + }, + "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": { + "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" + } + } + } + }, + "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": "4.0.1", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz", + "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=", + "dev": true, + "requires": { + "abbrev": "1.1.1", + "osenv": "0.1.5" + } + }, + "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": { + "hosted-git-info": "2.6.0", + "is-builtin-module": "1.0.0", + "semver": "5.5.0", + "validate-npm-package-license": "3.0.3" + } + }, + "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" + } + }, + "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-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": { + "which": "1.3.0" + } + }, + "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" + } + }, + "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": { + "commander": "2.15.1", + "npm-path": "2.0.4", + "which": "1.3.0" + } + }, + "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" + } + }, + "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": { + "boolbase": "1.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", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "dev": true + }, + "nwmatcher": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/nwmatcher/-/nwmatcher-1.4.4.tgz", + "integrity": "sha512-3iuY4N5dhgMpCUrOVnuAdGrgxVqV2cJpM+XNccjR2DKOB1RUP0aA+wGXEiNziG/UKboFyGBIoKOaNlJxx8bciQ==", + "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=", + "dev": true + }, + "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": { + "copy-descriptor": "0.1.1", + "define-property": "0.2.5", + "kind-of": "3.2.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" + } + }, + "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 + } + } + }, + "object.omit": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", + "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", + "dev": true, + "requires": { + "for-own": "0.1.5", + "is-extendable": "0.1.1" + } + }, + "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, + "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 + } + } + }, + "obuf": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", + "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==", + "dev": true + }, + "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": { + "ee-first": "1.1.1" + } + }, + "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 + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1.0.2" + } + }, + "onetime": { + "version": "1.1.0", + "resolved": "http://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", + "integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=", + "dev": true + }, + "opn": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/opn/-/opn-5.1.0.tgz", + "integrity": "sha512-iPNl7SyM8L30Rm1sjGdLLheyHVw5YXVfi3SKWJzBI7efxRwHojfRFjwE/OLM6qp9xJYMgab8WicTU1cPoY+Hpg==", + "dev": true, + "requires": { + "is-wsl": "1.1.0" + } + }, + "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.8", + "wordwrap": "0.0.2" + } + }, + "optionator": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", + "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", + "dev": 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 + } + } + }, + "ora": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/ora/-/ora-0.2.3.tgz", + "integrity": "sha1-N1J9Igrc1Tw5tzVx11QVbV22V6Q=", + "dev": true, + "requires": { + "chalk": "1.1.3", + "cli-cursor": "1.0.2", + "cli-spinners": "0.1.2", + "object-assign": "4.1.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 + }, + "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 + } + } + }, + "original": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/original/-/original-1.0.0.tgz", + "integrity": "sha1-kUf5P6FpbQS+YeAb1QuurKZWvTs=", + "dev": true, + "requires": { + "url-parse": "1.0.5" + }, + "dependencies": { + "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": { + "querystringify": "0.0.4", + "requires-port": "1.0.0" + } + } + } + }, + "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": { + "lcid": "1.0.0" + } + }, + "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": { + "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 + }, + "ip": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.0.1.tgz", + "integrity": "sha1-x+NWzeoiWucbNtcPLnGpK6TkJZA=", + "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" + } + }, + "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 + }, + "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": { + "cyclist": "0.2.2", + "inherits": "2.0.3", + "readable-stream": "2.3.5" + } + }, + "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": { + "no-case": "2.3.2" + } + }, + "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", + "integrity": "sha1-N8T5t+06tlx0gXtfJICTf7+XxxI=", + "dev": true, + "requires": { + "asn1.js": "4.10.1", + "browserify-aes": "1.1.1", + "create-hash": "1.1.3", + "evp_bytestokey": "1.0.3", + "pbkdf2": "3.0.14" + } + }, + "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": { + "glob-base": "0.3.0", + "is-dotfile": "1.0.3", + "is-extglob": "1.0.0", + "is-glob": "2.0.1" + } + }, + "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 + }, + "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 + }, + "pascalcase": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", + "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", + "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=", + "dev": true + }, + "path-dirname": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", + "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", + "dev": true + }, + "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 + }, + "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/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": { + "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-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": { + "pify": "3.0.0" + } + }, + "pbkdf2": { + "version": "3.0.14", + "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.14.tgz", + "integrity": "sha512-gjsZW9O34fm0R7PaLHRJmLLVfSoesxztjPjE9o6R+qtVJij90ltg1joIovN9GKrRW3t1PzhDDG3UMEMFfZ+1wA==", + "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.11" + } + }, + "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 + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "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": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "dev": true, + "requires": { + "pinkie": "2.0.4" + } + }, + "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": { + "find-up": "2.1.0" + } + }, + "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", + "mkdirp": "0.5.1" + }, + "dependencies": { + "async": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", + "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", + "dev": true + } + } + }, + "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.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", + "source-map": "0.6.1", + "supports-color": "5.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", + "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.21" + } + }, + "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": { + "postcss": "6.0.21", + "postcss-value-parser": "3.3.0", + "read-cache": "1.0.0", + "resolve": "1.6.0" + } + }, + "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": { + "cosmiconfig": "2.2.2", + "object-assign": "4.1.1", + "postcss-load-options": "1.2.0", + "postcss-load-plugins": "2.3.0" + } + }, + "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": { + "cosmiconfig": "2.2.2", + "object-assign": "4.1.1" + } + }, + "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" + } + }, + "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": { + "loader-utils": "1.1.0", + "postcss": "6.0.21", + "postcss-load-config": "1.2.0", + "schema-utils": "0.4.5" + } + }, + "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.21", + "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", + "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", + "dev": true + }, + "prettier": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.11.1.tgz", + "integrity": "sha512-T/KD65Ot0PB97xTrG8afQ46x3oiVhnfGjGESSI9NWYcG92+OUPZKkwHqGWXH2t9jK1crnQjubECW0FuOth+hxw==", + "dev": true + }, + "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": { + "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": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + } + } + }, + "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": "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" + } + }, + "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": { + "forwarded": "0.1.2", + "ipaddr.js": "1.6.0" + } + }, + "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": "1.0.1", + "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", + "integrity": "sha1-0/wRS6BplaRexok/SEzrHXj19HY=", + "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", + "integrity": "sha1-OfaZ86RlYN1eusvKaTyvfGXBjMY=", + "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.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", + "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": { + "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" + } + } + } + }, + "randombytes": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.0.6.tgz", + "integrity": "sha512-CIQ5OFxf4Jou6uOKe9t1AOgqpeU5fd70A8NPdHSGeYXqXsPe6peOwI0cUl88RWZ6sP1vPMV3avd/R6cZ5/sP1A==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, + "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": { + "randombytes": "2.0.6", + "safe-buffer": "5.1.1" + } + }, + "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": { + "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": { + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + } + } + }, + "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": { + "pify": "2.3.0" + }, + "dependencies": { + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + } + } + }, + "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" + } + }, + "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" + }, + "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 + } + } + }, + "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=", + "dev": true, + "requires": { + "find-up": "1.1.2", + "read-pkg": "1.1.0" + }, + "dependencies": { + "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": { + "path-exists": "2.1.0", + "pinkie-promise": "2.0.1" + } + }, + "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": { + "pinkie-promise": "2.0.1" + } } } }, - "nopt": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", - "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=", + "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": { - "abbrev": "1.1.1" + "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" } }, - "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=", + "readdirp": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.1.0.tgz", + "integrity": "sha1-TtCtBg3zBzMAxIRANz9y0cxkLXg=", "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" + "graceful-fs": "4.1.11", + "minimatch": "3.0.4", + "readable-stream": "2.3.5", + "set-immediate-shim": "1.0.1" } }, - "normalize-path": { + "redent": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", + "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=", + "dev": true, + "requires": { + "indent-string": "2.1.0", + "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.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": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", + "dev": true, + "requires": { + "is-equal-shallow": "0.1.3" + } + }, + "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": { + "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" + } + }, + "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" + } + }, + "relateurl": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", + "integrity": "sha1-VNvzd+UUQKypCkzSdGANP/LYiKk=", + "dev": true + }, + "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 + }, + "renderkid": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-2.0.1.tgz", + "integrity": "sha1-iYyr/Ivt5Le5ETWj/9Mj5YwNsxk=", + "dev": true, + "requires": { + "css-select": "1.2.0", + "dom-converter": "0.1.4", + "htmlparser2": "3.3.0", + "strip-ansi": "3.0.1", + "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 + } + } + }, + "repeat-element": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz", + "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=", + "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=", + "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" + } + }, + "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" + } + }, + "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": { + "lodash": "4.17.5" + } + }, + "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, + "requires": { + "request-promise-core": "1.1.1", + "stealthy-require": "1.1.1", + "tough-cookie": "2.3.4" + } + }, + "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" + }, + "dependencies": { + "when": { + "version": "3.7.8", + "resolved": "https://registry.npmjs.org/when/-/when-3.7.8.tgz", + "integrity": "sha1-xxMLan6gRpPoQs3J56Hyqjmjn4I=", + "dev": true, + "optional": true + } + } + }, + "require-directory": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "dev": true + }, + "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/require-main-filename/-/require-main-filename-1.0.1.tgz", + "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", + "dev": true + }, + "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": { - "remove-trailing-separator": "1.1.0" + "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 + } } }, - "null-check": { + "requires-port": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/null-check/-/null-check-1.0.0.tgz", - "integrity": "sha1-l33/1xdgErnsMNKjnbXPcqBDnt0=", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=", "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=", + "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": { + "path-parse": "1.0.5" + } + }, + "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": { + "resolve-from": "3.0.0" + } + }, + "resolve-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", + "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", "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=", + "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": { + "global-dirs": "0.1.1" + } + }, + "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 }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "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": { + "exit-hook": "1.1.1", + "onetime": "1.1.0" + } + }, + "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 }, - "object-component": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/object-component/-/object-component-0.0.3.tgz", - "integrity": "sha1-8MaapQ78lbhmwYb0AKM3acsvEpE=", + "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" + } + }, + "rimraf": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", + "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", + "dev": true, + "requires": { + "glob": "7.1.2" + } + }, + "ripemd160": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.1.tgz", + "integrity": "sha1-D0WEKVxTo2KK9+bXmsohzlfRxuc=", + "dev": true, + "requires": { + "hash-base": "2.0.2", + "inherits": "2.0.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 }, - "object-path": { - "version": "0.9.2", - "resolved": "https://registry.npmjs.org/object-path/-/object-path-0.9.2.tgz", - "integrity": "sha1-D9mnT8X60a45aLWGvaXGMr1sBaU=", - "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": { + "acorn": "4.0.13", + "magic-string": "0.22.5", + "rollup-pluginutils": "2.0.1" + }, + "dependencies": { + "acorn": { + "version": "4.0.13", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz", + "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=", + "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=", + "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": { - "array-each": "1.0.1", - "array-slice": "1.0.0", - "for-own": "1.0.0", - "isobject": "3.0.1" + "acorn": "5.5.3", + "estree-walker": "0.5.1", + "magic-string": "0.22.5", + "resolve": "1.6.0", + "rollup-pluginutils": "2.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=", + "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 } } }, - "object.omit": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", - "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", + "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": { - "for-own": "0.1.5", - "is-extendable": "0.1.1" + "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" + } + } } }, - "object.pick": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", - "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", + "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": { - "isobject": "3.0.1" + "builtin-modules": "2.0.0", + "is-module": "1.0.0", + "resolve": "1.6.0" }, "dependencies": { - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "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 } } }, - "on-finished": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", - "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", + "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": { - "ee-first": "1.1.1" + "estree-walker": "0.3.1", + "micromatch": "2.3.11" } }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "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 + }, + "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": { - "wrappy": "1.0.2" + "aproba": "1.2.0" + } + }, + "rxjs": { + "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" } }, - "opener": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/opener/-/opener-1.4.3.tgz", - "integrity": "sha1-XG2ixdflgx6P+jlklQ+NZnSskLg=", + "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 }, - "openurl": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/openurl/-/openurl-1.1.1.tgz", - "integrity": "sha1-OHW0sO96UsFW8NtB1GCduw+Us4c=", + "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" + } + }, + "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" + } + }, + "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" + } + }, + "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": { + "clone-deep": "2.0.2", + "loader-utils": "1.1.0", + "lodash.tail": "4.1.1", + "neo-async": "2.5.0", + "pify": "3.0.0" + } + }, + "sax": { + "version": "0.5.8", + "resolved": "https://registry.npmjs.org/sax/-/sax-0.5.8.tgz", + "integrity": "sha1-1HLbIo6zMcJQaw6MFVJK25OdEsE=", "dev": true }, - "opn": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/opn/-/opn-4.0.2.tgz", - "integrity": "sha1-erwi5kTf9jsKltWrfyeQwPAavJU=", + "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": { - "object-assign": "4.1.1", - "pinkie-promise": "2.0.1" + "ajv": "6.3.0", + "ajv-keywords": "3.1.0" } }, - "optimist": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", - "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", + "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": { - "minimist": "0.0.10", - "wordwrap": "0.0.3" + "js-base64": "2.4.3", + "source-map": "0.4.4" }, "dependencies": { - "minimist": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", - "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=", - "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" + } } } }, - "options": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/options/-/options-0.0.6.tgz", - "integrity": "sha1-7CLTEoBrtT5zF3Pnza788cZDEo8=", + "select-hose": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", + "integrity": "sha1-Yl2GWPhlr0Psliv8N2o3NZpJlMo=", "dev": true }, - "orchestrator": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/orchestrator/-/orchestrator-0.3.8.tgz", - "integrity": "sha1-FOfp4nZPcxX7rBhOUGx6pt+UrX4=", + "selfsigned": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-1.10.2.tgz", + "integrity": "sha1-tESVgNmZKbZbEKSDiTAaZZIIh1g=", "dev": true, "requires": { - "end-of-stream": "0.1.5", - "sequencify": "0.0.7", - "stream-consume": "0.1.0" + "node-forge": "0.7.1" } }, - "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=", + "semver": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", + "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", "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 + "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" + } }, - "os-locale": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", - "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", + "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": { - "lcid": "1.0.0" + "semver": "5.5.0" } }, - "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 + "send": { + "version": "0.16.2", + "resolved": "https://registry.npmjs.org/send/-/send-0.16.2.tgz", + "integrity": "sha512-E64YFPUssFHEFBvpbbjr44NCLtI1AohxQ8ZSiJjQLskAdKuriYEP6VyGEsRDH8ScozGpkaX1BGvhanqCwkcEZw==", + "dev": true, + "requires": { + "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 + } + } }, - "pako": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/pako/-/pako-0.2.9.tgz", - "integrity": "sha1-8/dSL073gjSNqBYbrZ7P1Rv4OnU=", + "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 }, - "parse-asn1": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.0.tgz", - "integrity": "sha1-N8T5t+06tlx0gXtfJICTf7+XxxI=", + "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": { - "asn1.js": "4.9.1", - "browserify-aes": "1.1.1", - "create-hash": "1.1.3", - "evp_bytestokey": "1.0.3", - "pbkdf2": "3.0.14" + "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" } }, - "parse-filepath": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parse-filepath/-/parse-filepath-1.0.1.tgz", - "integrity": "sha1-FZ1hVdQ5BNFsEO9piRHaHpGWm3M=", + "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": { - "is-absolute": "0.2.6", - "map-cache": "0.2.2", - "path-root": "0.1.1" + "encodeurl": "1.0.2", + "escape-html": "1.0.3", + "parseurl": "1.3.2", + "send": "0.16.2" } }, - "parse-glob": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz", - "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", + "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": { - "glob-base": "0.3.0", - "is-dotfile": "1.0.3", - "is-extglob": "1.0.0", - "is-glob": "2.0.1" + "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" + } + } } }, - "parse-json": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", - "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", + "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": { - "error-ex": "1.3.1" + "inherits": "2.0.3", + "safe-buffer": "5.1.1" } }, - "parse-passwd": { + "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 - }, - "parsejson": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/parsejson/-/parsejson-0.0.3.tgz", - "integrity": "sha1-q343WfIJ7OmUN5c/fQ8fZK4OZKs=", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-1.0.0.tgz", + "integrity": "sha512-oeXreoKR/SyNJtRJMAKPDSvd28OqEwG4eR/xc856cRGBII7gX9lvAqDxusPm0846z/w/hWYjI1NpKwJ00NHzRA==", "dev": true, "requires": { - "better-assert": "1.0.2" + "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 + } } }, - "parseqs": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/parseqs/-/parseqs-0.0.5.tgz", - "integrity": "sha1-1SCKNzjkZ2bikbouoXNoSSGouJ0=", + "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": { - "better-assert": "1.0.2" + "shebang-regex": "1.0.0" } }, - "parseuri": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/parseuri/-/parseuri-0.0.5.tgz", - "integrity": "sha1-gCBKUNTbt3m/3G6+J3jZDkvOMgo=", + "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": { - "better-assert": "1.0.2" + "array-filter": "0.0.1", + "array-map": "0.0.0", + "array-reduce": "0.0.0", + "jsonify": "0.0.0" } }, - "parseurl": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.2.tgz", - "integrity": "sha1-/CidTtiZMRlGDBViUyYs3I3mW/M=", + "signal-exit": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", "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=", - "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" + } }, - "path-exists": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", - "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", + "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": { - "pinkie-promise": "2.0.1" + "requestretry": "1.13.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=", + "slash": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", + "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=", "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=", + "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 }, - "path-parse": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", - "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", + "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 }, - "path-root": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz", - "integrity": "sha1-mkpoFMrBwM1zNgqV8yCDyOpHRbc=", + "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": { - "path-root-regex": "0.1.2" + "httpntlm": "1.6.1", + "nodemailer-shared": "1.1.0" } }, - "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=", - "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=", + "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": { - "graceful-fs": "4.1.11", - "pify": "2.3.0", - "pinkie-promise": "2.0.1" + "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": { - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "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 } } }, - "pbkdf2": { - "version": "3.0.14", - "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.14.tgz", - "integrity": "sha1-o14TxkeZsGzhUyD0WcIw5o5zut4=", - "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" - } - }, - "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=", + "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": { - "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" + "define-property": "1.0.0", + "isobject": "3.0.1", + "snapdragon-util": "3.0.1" }, "dependencies": { - "which": { - "version": "1.2.14", - "resolved": "https://registry.npmjs.org/which/-/which-1.2.14.tgz", - "integrity": "sha1-mofEN48D6CfOyvGs31bHNsAcFOU=", + "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": { - "isexe": "2.0.0" + "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 } } }, - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "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" + } }, - "pinkie": { + "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/pinkie/-/pinkie-2.0.4.tgz", - "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", + "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 }, - "pinkie-promise": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", - "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "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": { - "pinkie": "2.0.4" + "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" } }, - "plugin-error": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-0.1.2.tgz", - "integrity": "sha1-O5uzM1zPAPQl4HQ34ZJ2ln2kes4=", + "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": { - "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" + "component-emitter": "1.2.1", + "debug": "3.1.0", + "has-binary2": "1.0.2", + "isarray": "2.0.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=", + "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": { - "arr-flatten": "1.1.0", - "array-slice": "0.2.3" + "ms": "2.0.0" } }, - "array-slice": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-0.2.3.tgz", - "integrity": "sha1-3Tz7gO15c6dRF82sabC5nshhhvU=", + "isarray": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz", + "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4=", "dev": true } } }, - "plugin-log": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/plugin-log/-/plugin-log-0.1.0.tgz", - "integrity": "sha1-hgSc9qsQgzOYqTHzaJy67nteEzM=", + "sockjs": { + "version": "0.3.19", + "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.19.tgz", + "integrity": "sha512-V48klKZl8T6MzatbLlzzRNhMepEys9Y4oGFpypBFFn1gLI/QQ9HtLLyWJNbPlwGLelOVOEijUbTTJeLLI59jLw==", "dev": true, "requires": { - "chalk": "1.1.3", - "dateformat": "1.0.12" + "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": { - "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=", - "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=", + "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": { - "ansi-regex": "2.1.1" + "websocket-driver": "0.7.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 } } }, - "portfinder": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-0.4.0.tgz", - "integrity": "sha1-o/+t/6/k+5jgYBqF7aJ8J86Eyh4=", + "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": { - "async": "0.9.0", - "mkdirp": "0.5.1" + "ip": "1.1.5", + "smart-buffer": "1.1.15" } }, - "portscanner": { + "socks-proxy-agent": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/portscanner/-/portscanner-2.1.1.tgz", - "integrity": "sha1-6rtAnk3iSVD1oqUW01rnaTQ/u5Y=", + "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": { - "async": "1.5.2", - "is-number-like": "1.0.8" + "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": { - "async": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", - "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", "dev": true } } }, - "preserve": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz", - "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", + "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 }, - "pretty-hrtime": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz", - "integrity": "sha1-t+PqQkNaTJsnWdmeDyAesZWALuE=", + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", "dev": true }, - "process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", - "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" + } }, - "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 + "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" + } }, - "progress": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/progress/-/progress-1.1.8.tgz", - "integrity": "sha1-4mDHj2Fhzdmw5WzD4Khd4Xx6V74=", + "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 }, - "prr": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/prr/-/prr-0.0.0.tgz", - "integrity": "sha1-GoS4WQgyVQFBGFPQCB7j+obikmo=", + "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 }, - "public-encrypt": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.0.tgz", - "integrity": "sha1-OfaZ86RlYN1eusvKaTyvfGXBjMY=", + "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": { - "bn.js": "4.11.8", - "browserify-rsa": "4.0.1", - "create-hash": "1.1.3", - "parse-asn1": "5.1.0", - "randombytes": "2.0.5" + "spdx-expression-parse": "3.0.0", + "spdx-license-ids": "3.0.0" } }, - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "dev": true - }, - "qjobs": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/qjobs/-/qjobs-1.1.5.tgz", - "integrity": "sha1-ZZ3p8s+NzCehSBJ28gU3cnI4LnM=", - "dev": true - }, - "qs": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/qs/-/qs-2.3.3.tgz", - "integrity": "sha1-6eha2+ddoLvkyOBHaghikPhjtAQ=", + "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 }, - "querystring": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", - "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", - "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" + } }, - "querystring-es3": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", - "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=", + "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 }, - "randomatic": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.7.tgz", - "integrity": "sha1-x6vpzIuHwLqodrGf3oP9RkeX44w=", + "spdy": { + "version": "3.4.7", + "resolved": "https://registry.npmjs.org/spdy/-/spdy-3.4.7.tgz", + "integrity": "sha1-Qv9B7OXMD5mjpsKKq7c/XDsDrLw=", "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.5" - } - } - } - }, - "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.5" - } - } + "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" } }, - "randombytes": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.0.5.tgz", - "integrity": "sha1-3ACaJGuNCaF3tLegrne8Vw9LG3k=", + "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": { - "safe-buffer": "5.1.1" + "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" } }, - "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=", + "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": { - "bytes": "3.0.0", - "http-errors": "1.6.2", - "iconv-lite": "0.4.19", - "unpipe": "1.0.0" + "extend-shallow": "3.0.2" } }, - "read-pkg": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", - "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", + "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": { - "load-json-file": "1.1.0", - "normalize-package-data": "2.4.0", - "path-type": "1.1.0" + "through2": "2.0.3" } }, - "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=", + "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": { - "find-up": "1.1.2", - "read-pkg": "1.1.0" + "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 + } } }, - "readable-stream": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", - "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", + "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": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "0.0.1", - "string_decoder": "0.10.31" + "safe-buffer": "5.1.1" } }, - "readdirp": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.1.0.tgz", - "integrity": "sha1-TtCtBg3zBzMAxIRANz9y0cxkLXg=", + "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": { - "graceful-fs": "4.1.11", - "minimatch": "3.0.4", - "readable-stream": "2.3.3", - "set-immediate-shim": "1.0.1" + "define-property": "0.2.5", + "object-copy": "0.1.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 + "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" + } }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true + "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" + } + } + } }, - "readable-stream": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", - "integrity": "sha1-No8lEtefnUb9/HE0mueHi7weuVw=", + "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": { - "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=", + "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": { - "safe-buffer": "5.1.1" + "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 } } }, - "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" - } - }, - "redent": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", - "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=", - "dev": true, - "requires": { - "indent-string": "2.1.0", - "strip-indent": "1.0.1" - } - }, - "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==", + "statuses": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", + "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==", "dev": true }, - "regex-cache": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz", - "integrity": "sha1-db3FiioUls7EihKDW8VMjVYjNt0=", + "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": { - "is-equal-shallow": "0.1.3" + "readable-stream": "2.3.5" } }, - "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 - }, - "repeat-element": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz", - "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=", - "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=", + "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 }, - "repeating": { + "stream-browserify": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", - "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", + "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.1.tgz", + "integrity": "sha1-ZiZu5fm9uZQKTkUUyvtDu3Hlyds=", "dev": true, "requires": { - "is-finite": "1.0.2" + "inherits": "2.0.3", + "readable-stream": "2.3.5" } }, - "replace-ext": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-0.0.1.tgz", - "integrity": "sha1-KbvZIHinOfC8zitO5B6DeVNSKSQ=", - "dev": true + "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" + } }, - "request": { - "version": "2.81.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz", - "integrity": "sha1-xpKJRqDgbF+Nb4qTM0af/aRimKA=", + "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": { - "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" - }, - "dependencies": { - "qs": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz", - "integrity": "sha1-E+JtKK1rD/qpExLNO/cI7TUecjM=", - "dev": true - } + "end-of-stream": "1.4.1", + "stream-shift": "1.0.0" } }, - "request-progress": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/request-progress/-/request-progress-2.0.1.tgz", - "integrity": "sha1-XTa7V5YcZzqlt4jbyBQf3yO0Tgg=", + "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": { - "throttleit": "1.0.0" + "builtin-status-codes": "3.0.0", + "inherits": "2.0.3", + "readable-stream": "2.3.5", + "to-arraybuffer": "1.0.1", + "xtend": "4.0.1" } }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "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 }, - "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 + "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" + } }, - "requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=", - "dev": true + "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" + } }, - "resolve": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.4.0.tgz", - "integrity": "sha1-p1vgHFPaJdk0qY69DkxKcxL5KoY=", + "streamroller": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/streamroller/-/streamroller-0.7.0.tgz", + "integrity": "sha512-WREzfy0r0zUqp3lGO096wRuUp7ho1X6uo/7DJfTlEi0Iv/4gT7YHqXDjKC2ioVGBZtE8QzsQD9nx1nIuoZ57jQ==", "dev": true, "requires": { - "path-parse": "1.0.5" + "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" + } + } } }, - "resolve-dir": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-0.1.1.tgz", - "integrity": "sha1-shklmlYC+sXFxJatiUpujMQwJh4=", + "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": { - "expand-tilde": "1.2.2", - "global-modules": "0.2.3" + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" } }, - "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=", + "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": { - "debug": "2.6.9", - "minimatch": "3.0.4" + "safe-buffer": "5.1.1" } }, - "right-align": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", - "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", + "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": { - "align-text": "0.1.4" + "get-own-enumerable-property-symbols": "2.0.1", + "is-obj": "1.0.1", + "is-regexp": "1.0.0" } }, - "rimraf": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", - "integrity": "sha1-LtgVDSShbqhlHm1u8PR8QVjOejY=", + "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": { - "glob": "7.1.2" + "ansi-regex": "2.1.1" } }, - "ripemd160": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.1.tgz", - "integrity": "sha1-D0WEKVxTo2KK9+bXmsohzlfRxuc=", + "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": { - "hash-base": "2.0.2", - "inherits": "2.0.3" + "is-utf8": "0.2.1" } }, - "rollup": { - "version": "0.49.3", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-0.49.3.tgz", - "integrity": "sha1-TM4yZD3YzyFUxp/w5DRwBn2wrb8=", + "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 }, - "rollup-stream": { - "version": "1.24.1", - "resolved": "https://registry.npmjs.org/rollup-stream/-/rollup-stream-1.24.1.tgz", - "integrity": "sha1-m8ACr7pRxRfm2qPhf5VZWApGD4k=", + "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": { - "rollup": "0.49.3" + "get-stdin": "4.0.1" } }, - "rx": { - "version": "2.3.24", - "resolved": "https://registry.npmjs.org/rx/-/rx-2.3.24.tgz", - "integrity": "sha1-FPlQpCF9fjXapxu8vljv9o6ksrc=", + "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 }, - "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==", + "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": { - "tslib": "1.9.0" + "loader-utils": "1.1.0", + "schema-utils": "0.3.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 + "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" + } } } }, - "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 - }, - "send": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/send/-/send-0.15.2.tgz", - "integrity": "sha1-+R+rRAO8+H5xb3DOtdsvV4vcF9Y=", + "stylus": { + "version": "0.54.5", + "resolved": "https://registry.npmjs.org/stylus/-/stylus-0.54.5.tgz", + "integrity": "sha1-QrlWCTHKcJDOhRWnmLqeaqPW3Hk=", "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" + "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": { - "debug": { - "version": "2.6.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.4.tgz", - "integrity": "sha1-dYaps8OXQcAoKuM0RcTorHRzT+A=", + "glob": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.0.6.tgz", + "integrity": "sha1-IRuvr0nlJbjNkyYNFKsTYVKz9Xo=", "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 - } + "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" } }, - "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=", + "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 } } }, - "sequencify": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/sequencify/-/sequencify-0.0.7.tgz", - "integrity": "sha1-kM/xnQLgcCf9dn9erT57ldHnOAw=", + "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 }, - "serve-index": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.8.0.tgz", - "integrity": "sha1-fF2WwT+xMRAfk8HFd0+FFqHnjTs=", + "tar": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz", + "integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=", "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 - } + "block-stream": "0.0.9", + "fstream": "1.0.11", + "inherits": "2.0.3" } }, - "serve-static": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.12.2.tgz", - "integrity": "sha1-5UbicmCBuBtLzsjpCAjrzdMjr7o=", + "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": { - "encodeurl": "1.0.1", - "escape-html": "1.0.3", - "parseurl": "1.3.2", - "send": "0.15.2" + "execa": "0.7.0" } }, - "server-destroy": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/server-destroy/-/server-destroy-1.0.1.tgz", - "integrity": "sha1-8Tv5KOQrnD55OD5hzDmYtdFObN0=", + "text-extensions": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/text-extensions/-/text-extensions-1.7.0.tgz", + "integrity": "sha512-AKXZeDq230UaSzaO5s3qQUZOaC7iKbzq0jOFL614R7d9R593HLqAOL0cYoqLdkNrjBSOdmoQI06yigq1TSBXAg==", "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=", + "through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", "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=", + "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 }, - "setimmediate": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", + "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 }, - "setprototypeof": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.3.tgz", - "integrity": "sha1-ZlZ+NwQ+608E2RvWWMDL77VbjgQ=", + "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 }, - "sha.js": { - "version": "2.4.9", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.9.tgz", - "integrity": "sha1-mPZIgEdLdPSji42p08Dy0QRjPn0=", + "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": { - "inherits": "2.0.3", - "safe-buffer": "5.1.1" + "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" } }, - "sigmund": { + "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/sigmund/-/sigmund-1.0.1.tgz", - "integrity": "sha1-P/IfGYytIXX587eBhT/ZTQ0ZtZA=", + "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", + "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=", "dev": true }, - "signal-exit": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "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 }, - "sntp": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz", - "integrity": "sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg=", + "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": { - "hoek": "2.16.3" + "kind-of": "3.2.2" } }, - "socket.io": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-1.7.3.tgz", - "integrity": "sha1-uK+cq6AJSeVo42nxMn6pvp6iRhs=", + "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": { - "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" + "is-number": "3.0.0", + "repeat-string": "1.6.1" }, "dependencies": { - "debug": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.3.3.tgz", - "integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=", + "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": { - "ms": "0.7.2" + "kind-of": "3.2.2" } - }, - "ms": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", - "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", - "dev": true - }, - "object-assign": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.0.tgz", - "integrity": "sha1-ejs9DpgGPUP0wD8uiubNUahog6A=", + } + } + }, + "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 } } }, - "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=", + "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": { - "debug": "2.3.3", - "socket.io-parser": "2.3.1" + "glob": "6.0.4" }, "dependencies": { - "debug": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.3.3.tgz", - "integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=", + "glob": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz", + "integrity": "sha1-DwiGD2oVUSey+t1PnOJLGqtuTSI=", "dev": true, "requires": { - "ms": "0.7.2" + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" } - }, - "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.7.3", - "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-1.7.3.tgz", - "integrity": "sha1-sw6GqhDV7zVGYBwJzeR2Xjgdo3c=", + "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": { - "backo2": "1.0.2", - "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", - "indexof": "0.0.1", - "object-component": "0.0.3", - "parseuri": "0.0.5", - "socket.io-parser": "2.3.1", - "to-array": "0.1.4" + "minimist": "1.2.0", + "mkdirp": "0.5.1", + "source-map": "0.6.1", + "source-map-support": "0.5.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=", + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", "dev": true }, - "debug": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.3.3.tgz", - "integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=", + "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": { - "ms": "0.7.2" + "source-map": "0.6.1" } - }, - "ms": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", - "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", - "dev": true } } }, - "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=", + "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": { - "component-emitter": "1.1.2", - "debug": "2.2.0", - "isarray": "0.0.1", - "json3": "3.3.2" + "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": { - "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", + "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.1" + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.3.0" } }, - "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", + "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" + } } } }, - "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 + "tsscmp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tsscmp/-/tsscmp-1.0.5.tgz", + "integrity": "sha1-fcSjOvcVgatDN9qR2FylQn69mpc=", + "dev": true, + "optional": true }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "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 }, - "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==", + "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": { - "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 - } + "safe-buffer": "5.1.1" } }, - "sparkles": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/sparkles/-/sparkles-1.0.0.tgz", - "integrity": "sha1-Gsu/tZJDbRC76PeFt8xvgoFQEsM=", - "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=", - "dev": true + "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 }, - "spdx-correct": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-1.0.2.tgz", - "integrity": "sha1-SzBz2TP/UfORLwOsVRlJikFQ20A=", + "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": { - "spdx-license-ids": "1.2.2" + "prelude-ls": "1.1.2" } }, - "spdx-expression-parse": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz", - "integrity": "sha1-m98vIOH0DtRH++JzJmGR/O1RYmw=", - "dev": true + "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" + } }, - "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=", + "typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", "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=", + "typescript": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.7.2.tgz", + "integrity": "sha512-p5TCYZDAO0m4G344hD+wx/LATebLWZNkkh2asWUFqSsD2OrDNhbAHuSjobrmsUmdzjJjEeZVU9g1h3O6vpstnw==", "dev": true }, - "sshpk": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.13.1.tgz", - "integrity": "sha1-US322mKHFEMW3EwY/hzx2UBzm+M=", + "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": { - "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" + "commander": "2.15.1", + "source-map": "0.6.1" }, "dependencies": { - "assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "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 } } }, - "statuses": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", - "integrity": "sha1-u3PURtonlhBu/MG2AaJT1sRr0Ic=", - "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 }, - "stream-browserify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.1.tgz", - "integrity": "sha1-ZiZu5fm9uZQKTkUUyvtDu3Hlyds=", + "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": { - "inherits": "2.0.3", - "readable-stream": "2.3.3" + "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": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "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 }, - "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" - } + "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 }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha1-D8Z9fBQYJd6UKC3VNr7GubzoYKs=", + "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": { - "safe-buffer": "5.1.1" + "commander": "2.13.0", + "source-map": "0.6.1" } } } }, - "stream-consume": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/stream-consume/-/stream-consume-0.1.0.tgz", - "integrity": "sha1-pB6tGm1ggc63n2WwYZAbbY89HQ8=", + "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 }, - "stream-http": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.7.2.tgz", - "integrity": "sha1-QKBQ7I3DtTsz2ZCUFcAsC/Gr+60=", + "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": { - "builtin-status-codes": "3.0.0", - "inherits": "2.0.3", - "readable-stream": "2.3.3", - "to-arraybuffer": "1.0.1", - "xtend": "4.0.1" + "arr-union": "3.1.0", + "get-value": "2.0.6", + "is-extendable": "0.1.1", + "set-value": "0.4.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=", + "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": { - "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" + "is-extendable": "0.1.1" } }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha1-D8Z9fBQYJd6UKC3VNr7GubzoYKs=", + "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": { - "safe-buffer": "5.1.1" + "extend-shallow": "2.0.1", + "is-extendable": "0.1.1", + "is-plain-object": "2.0.4", + "to-object-path": "0.3.0" } } } }, - "stream-throttle": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/stream-throttle/-/stream-throttle-0.1.3.tgz", - "integrity": "sha1-rdV8jXzHOoFjDTHNVdOWHPr7qcM=", - "dev": true, - "requires": { - "commander": "2.6.0", - "limiter": "1.1.2" - } - }, - "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "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": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "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" - } - } + "unique-slug": "2.0.0" } }, - "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=", + "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": { - "ansi-regex": "0.2.1" + "imurmurhash": "0.1.4" } }, - "strip-bom": { + "unique-string": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-1.0.0.tgz", - "integrity": "sha1-hbiGLzhEtabV7IRnqTWYFzo295Q=", - "dev": true, - "requires": { - "first-chunk-stream": "1.0.0", - "is-utf8": "0.2.1" - } - }, - "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" - } - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-1.0.0.tgz", + "integrity": "sha1-nhBXzKhRq7kzmPizOuGHuZyuwRo=", "dev": true, "requires": { - "has-flag": "1.0.0" + "crypto-random-string": "1.0.0" } }, - "systemjs": { - "version": "0.20.18", - "resolved": "https://registry.npmjs.org/systemjs/-/systemjs-0.20.18.tgz", - "integrity": "sha1-Lf1VqXDPigT6U8mYwA2CJqg7HbA=", + "universalify": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.1.tgz", + "integrity": "sha1-+nG63UQ3r0wUiEHjs7Fl+enlkLc=", "dev": true }, - "tapable": { - "version": "0.2.8", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-0.2.8.tgz", - "integrity": "sha1-mTcqXJmb8t8WCvwNdL7U9HlIzSI=", + "unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", "dev": true }, - "tfunk": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/tfunk/-/tfunk-3.1.0.tgz", - "integrity": "sha1-OORBT8ZJd9h6/apy+sttKfgve1s=", + "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": { - "chalk": "1.1.3", - "object-path": "0.9.2" + "has-value": "0.3.1", + "isobject": "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 - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "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": { - "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" + "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-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" - } + "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 }, - "strip-ansi": { + "isobject": { "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=", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", "dev": true } } }, - "throttleit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/throttleit/-/throttleit-1.0.0.tgz", - "integrity": "sha1-nnhYNtr0Z0MUWlmEtiaNgoUorGw=", + "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 }, - "through2": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.3.tgz", - "integrity": "sha1-AARWmzfHx0ujnEPzzteNGtlBQL4=", + "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": { - "readable-stream": "2.3.3", - "xtend": "4.0.1" + "punycode": "1.3.2", + "querystring": "0.2.0" }, "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "punycode": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", + "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", "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=", + } + } + }, + "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": { - "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" + "co": "4.6.0", + "fast-deep-equal": "1.1.0", + "fast-json-stable-stringify": "2.0.0", + "json-schema-traverse": "0.3.1" } }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha1-D8Z9fBQYJd6UKC3VNr7GubzoYKs=", + "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": { - "safe-buffer": "5.1.1" + "ajv": "5.5.2" } } } }, - "tildify": { + "url-parse": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/tildify/-/tildify-1.2.0.tgz", - "integrity": "sha1-3OwD9V3Km3qj5bBPIYF+tW5jWIo=", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.2.0.tgz", + "integrity": "sha512-DT1XbYAfmQP65M/mE6OALxmXzZ/z1+e5zk2TcSKe/KiYbNGZxgtttzC0mR/sjopbpOXcbniq7eIKmocJnUWlEw==", "dev": true, "requires": { - "os-homedir": "1.0.2" + "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 + } } }, - "time-stamp": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-1.1.0.tgz", - "integrity": "sha1-dkpaEa9QVhkhsTPztE5hhofg9cM=", - "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" + } }, - "timers-browserify": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.4.tgz", - "integrity": "sha1-lspT9LeUpefA4b18yIo3Ipj6AeY=", + "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": { - "setimmediate": "1.0.5" + "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 + } } }, - "tmp": { - "version": "0.0.31", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.31.tgz", - "integrity": "sha1-jzirlDjhcxXl29izZX6L+yd65Kc=", + "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": { - "os-tmpdir": "1.0.2" + "lru-cache": "4.1.2", + "tmp": "0.0.33" } }, - "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=", + "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 }, - "to-arraybuffer": { + "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/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", - "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", "dev": true }, - "tough-cookie": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.3.tgz", - "integrity": "sha1-C2GKVWW23qkL80JdBNVe3EdadWE=", + "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": { - "punycode": "1.4.1" + "spdx-correct": "3.0.0", + "spdx-expression-parse": "3.0.0" } }, - "tree-kill": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.0.tgz", - "integrity": "sha1-WEZ4Yje0I5AU8F2xVrZDIS1MbzY=", - "dev": true - }, - "trim-newlines": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", - "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=", + "vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", "dev": true }, - "tsickle": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/tsickle/-/tsickle-0.27.2.tgz", - "integrity": "sha512-KW+ZgY0t2cq2Qib1sfdgMiRnk+cr3brUtzZoVWjv+Ot3jNxVorFBUH+6In6hl8Dg7BI2AAFf69NHkwvZNMSFwA==", + "verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", "dev": true, "requires": { - "minimist": "1.2.0", - "mkdirp": "0.5.1", - "source-map": "0.6.1", - "source-map-support": "0.5.4" + "assert-plus": "1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "1.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==", + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", "dev": true } } }, - "tslib": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.0.tgz", - "integrity": "sha512-f/qGG2tUkrISBlQZEjEqoZ3B2+npJjIf04H1wuAv9iA8i04Icp+61KRXxFdha22670NJopsZCIjhC3SnjPRKrQ==", + "vlq": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/vlq/-/vlq-0.2.3.tgz", + "integrity": "sha512-DRibZL6DsNhIgYQ+wNdWDL2SL3bKPlVrRiBqV5yuMm++op8W4kGFtaQfCs4KEJn0wBZcHVHJ3eoywX8983k1ow==", "dev": true }, - "tslint": { - "version": "3.15.1", - "resolved": "https://registry.npmjs.org/tslint/-/tslint-3.15.1.tgz", - "integrity": "sha1-2hZcqT2P3CwIa1EWXuG6y0jJjqU=", + "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": { - "colors": "1.1.2", - "diff": "2.2.3", - "findup-sync": "0.3.0", - "glob": "7.1.2", - "optimist": "0.6.1", - "resolve": "1.4.0", - "underscore.string": "3.3.4" + "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.3", + "graceful-fs": "4.1.11", + "neo-async": "2.5.0" }, "dependencies": { - "colors": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", - "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=", + "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.10", + "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.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", + "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 }, - "findup-sync": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.3.0.tgz", - "integrity": "sha1-N5MKpdgWt3fANEXhlmzGeQpMCxY=", + "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": { - "glob": "5.0.15" + "kind-of": "3.2.2" }, "dependencies": { - "glob": { - "version": "5.0.15", - "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", - "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=", + "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": { - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" + "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.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", + "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" + } } } }, - "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-is": { - "version": "1.6.15", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.15.tgz", - "integrity": "sha1-yrEPtJCeRByChC6v4a1kbIGARBA=", + "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": { - "media-typer": "0.3.0", - "mime-types": "2.1.17" + "minimalistic-assert": "1.0.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.7.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.7.2.tgz", - "integrity": "sha512-p5TCYZDAO0m4G344hD+wx/LATebLWZNkkh2asWUFqSsD2OrDNhbAHuSjobrmsUmdzjJjEeZVU9g1h3O6vpstnw==", - "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=", + "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 }, - "uglify-js": { - "version": "2.8.29", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", - "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", + "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", - "uglify-to-browserify": "1.0.2", - "yargs": "3.10.0" + "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", @@ -7314,416 +14238,658 @@ "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=", + "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 }, - "wordwrap": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", - "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=", + "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 }, - "yargs": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", - "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", + "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": { - "camelcase": "1.2.1", - "cliui": "2.1.0", - "decamelize": "1.2.0", - "window-size": "0.1.0" + "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" + } + } } - } - } - }, - "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 - }, - "ultron": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.0.2.tgz", - "integrity": "sha1-rOEWq1V80Zc4ak6I9GhTeMiy5Po=", - "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 - }, - "underscore": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz", - "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", - "integrity": "sha1-GY+9rrolTniLDvy2MLwR8kopWeA=", - "dev": true, - "requires": { - "qs": "2.3.3" - } - }, - "unique-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unique-stream/-/unique-stream-1.0.0.tgz", - "integrity": "sha1-1ZpKdUJ0R9mqbJHnAmP40mpLEEs=", - "dev": true - }, - "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 - }, - "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=", + }, + "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 - } - } - }, - "url-join": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/url-join/-/url-join-1.1.0.tgz", - "integrity": "sha1-dBxsL0WWxIMNZxhGCSDQySIC3Hg=", - "dev": true - }, - "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.2.1", - "resolved": "https://registry.npmjs.org/useragent/-/useragent-2.2.1.tgz", - "integrity": "sha1-z1k+9PLRdYdei7ZY6pLhik/QbY4=", - "dev": true, - "requires": { - "lru-cache": "2.2.4", - "tmp": "0.0.31" - }, - "dependencies": { - "lru-cache": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.2.4.tgz", - "integrity": "sha1-bGWGGb7PFAMdDQtZSxYELOTcBj0=", + }, + "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 + } + } } } }, - "util": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", - "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", + "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": { - "inherits": "2.0.1" + "source-list-map": "0.1.8", + "source-map": "0.4.4" }, "dependencies": { - "inherits": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", - "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=", + "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" + } } } }, - "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=", - "dev": true - }, - "v8flags": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-2.1.1.tgz", - "integrity": "sha1-qrGh+jDUX4jdMhFIh1rALAtV5bQ=", - "dev": true, - "requires": { - "user-home": "1.1.1" - } - }, - "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=", + "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": { - "spdx-correct": "1.0.2", - "spdx-expression-parse": "1.0.4" + "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" } }, - "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" + "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": { + "ansi-html": "0.0.7", + "array-includes": "3.0.3", + "bonjour": "3.5.0", + "chokidar": "2.0.3", + "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": { - "assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "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.10", + "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 - } - } - }, - "vinyl": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.5.3.tgz", - "integrity": "sha1-sEVbOPxeDPMNQyUTLkYZcMIJHN4=", - "dev": true, - "requires": { - "clone": "1.0.2", - "clone-stats": "0.0.1", - "replace-ext": "0.0.1" - } - }, - "vinyl-fs": { - "version": "0.3.14", - "resolved": "https://registry.npmjs.org/vinyl-fs/-/vinyl-fs-0.3.14.tgz", - "integrity": "sha1-mmhRzhysHBzqX+hsCTHWIMLPqeY=", - "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" - }, - "dependencies": { - "clone": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/clone/-/clone-0.2.0.tgz", - "integrity": "sha1-xhJqkK1Pctv1rNskPMN3JP6T/B8=", + }, + "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 }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", + "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.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", + "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": "1.1.0", - "resolved": "https://registry.npmjs.org/vinyl-source-stream/-/vinyl-source-stream-1.1.0.tgz", - "integrity": "sha1-RMvlEIIFJ53rDFZTwJSiiHk4sas=", - "dev": true, - "requires": { - "through2": "0.6.5", - "vinyl": "0.4.6" - }, - "dependencies": { - "clone": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/clone/-/clone-0.2.0.tgz", - "integrity": "sha1-xhJqkK1Pctv1rNskPMN3JP6T/B8=", + }, + "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 }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", + "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": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "0.0.1", - "string_decoder": "0.10.31" + "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" + } + } } }, - "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", + "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": { - "readable-stream": "1.0.34", - "xtend": "4.0.1" + "is-extglob": "2.1.1" } }, - "vinyl": { - "version": "0.4.6", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.4.6.tgz", - "integrity": "sha1-LzVsh6VQolVGHza76ypbqL94SEc=", + "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": { - "clone": "0.2.0", - "clone-stats": "0.0.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" + } + } } - } - } - }, - "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=", + }, + "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.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", "dev": true, "requires": { - "lodash": "4.17.4" + "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.4" + "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": { @@ -7746,55 +14912,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": "1.12.0", - "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-1.12.0.tgz", - "integrity": "sha1-007++y7dp+HTtdvgcolRMhllFwk=", + "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": { - "memory-fs": "0.4.1", - "mime": "1.4.1", - "path-is-absolute": "1.0.1", - "range-parser": "1.2.0", - "time-stamp": "2.0.0" + "lodash": "4.17.5" + } + }, + "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": { + "source-list-map": "2.0.0", + "source-map": "0.6.1" }, "dependencies": { - "time-stamp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-2.0.0.tgz", - "integrity": "sha1-lcakRTDhW6jW9KPsuMOj+sRto1c=", + "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 } } }, - "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" + } + }, + "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, + "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" @@ -7806,18 +15017,78 @@ "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", - "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", @@ -7826,23 +15097,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": { @@ -7851,73 +15105,102 @@ "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" + } + }, "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" } }, - "wtf-8": { + "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 + }, + "xml-char-classes": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/wtf-8/-/wtf-8-1.0.0.tgz", - "integrity": "sha1-OS2LotDxw00e4tYw8V0O+2jhBIo=", + "resolved": "https://registry.npmjs.org/xml-char-classes/-/xml-char-classes-1.0.0.tgz", + "integrity": "sha1-ZGV4SKIP/F31g6Qq2KJ3tFErvE0=", "dev": true }, - "xhr2": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/xhr2/-/xhr2-0.1.4.tgz", - "integrity": "sha1-f4dliEdxbbUCYyOBL4GMras4el8=", + "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 }, "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 - } - } + "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.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": { + "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=", + "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": { + "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": "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", - "lodash.assign": "4.2.0", "os-locale": "1.4.0", "read-pkg-up": "1.0.1", "require-directory": "2.1.1", @@ -7925,9 +15208,8 @@ "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": "3.2.0" + "yargs-parser": "5.0.0" }, "dependencies": { "camelcase": { @@ -7936,28 +15218,18 @@ "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", "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=", + "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": "3.2.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-3.2.0.tgz", - "integrity": "sha1-UIE1XRnZ0MjF2BrakIy05tGGZk8=", - "dev": true, - "requires": { - "camelcase": "3.0.0", - "lodash.assign": "4.2.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" @@ -7971,15 +15243,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", @@ -7987,9 +15250,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 4302035..3ea8b90 100644 --- a/package.json +++ b/package.json @@ -1,20 +1,23 @@ { "name": "angular-in-memory-web-api", - "version": "0.6.0", + "version": "0.6.1", "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": { - "build": "tsc", - "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" + "// - APPS": "Start the applications", + "start": "ng serve --aot --app 1", + + "// - TESTING": "Testing", + "test": "ng test -sr", + "test:integration": + "npm run build && yarn link --frozen-lockfile --silent && ng test --progress=false --preserve-symlinks --app 1 -sr", + + "// - BUILDING": "Building", + "build": "ng-packagr -p package.json", + + "// - DEV TOOLS": "Dev Tools", + "lint": "tslint -c tslint.json 'src/**/*.ts'", + "prettier": "prettier --write \"**/*.ts\"" }, "repository": { "type": "git", @@ -28,58 +31,47 @@ }, "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", + "rxjs": ">=6.0.0 || ^5.6.0-forward-compat.1 || ^6.0.0-beta.0" + }, + "devDependencies": { + "@angular/cli": "^1.7.3", "@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", - "rxjs": "^6.0.0-beta.1" - }, - "devDependencies": { - "@angular/animations": "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", - "@angular/platform-server": "6.0.0-rc.0", - "@types/jasmine": "2.5.54", + "@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", - "@types/node": "^6.0.46", - "canonical-path": "0.0.2", - "concurrently": "^3.0.0", - "core-js": "^2.4.1", - "del": "^2.2.2", - "gulp": "^3.9.1", - "gulp-bump": "^2.4.0", - "gulp-load-plugins": "^1.3.0", - "gulp-task-listing": "^1.0.1", - "gulp-util": "^3.0.7", - "http-server": "^0.9.0", + "husky": "^0.15.0-rc.13", + "jasmine": "^2.8.0", "jasmine-ajax": "^3.3.1", "jasmine-core": "~2.8.0", - "karma": "^1.7.1", - "karma-chrome-launcher": "^2.2.0", - "karma-cli": "^1.0.1", - "karma-htmlfile-reporter": "^0.3.5", - "karma-jasmine": "^1.1.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-ajax": "^0.1.13", "karma-jasmine-html-reporter": "^0.2.2", - "karma-phantomjs-launcher": "^1.0.4", - "karma-sourcemap-loader": "^0.3.7", - "karma-webpack": "^2.0.4", - "lite-server": "^2.3.0", - "lodash": "^4.17.4", - "rimraf": "^2.6.1", - "rollup": "^0.49.3", - "rollup-stream": "^1.24.1", + "karma-junit-reporter": "^1.2.0", + "lint-staged": "^7.0.0", + "ng-packagr": "^2.2.0", + "prettier": "^1.11.1", "rxjs": "^6.0.0-beta.1", - "systemjs": "0.20.18", - "tslint": "^3.15.1", + "tsickle": "^0.27.2", + "tslint": "^5.8.0", "typescript": "~2.7.2", - "vinyl-source-stream": "^1.1.0", - "webpack": "2.2.1", - "yargs": "^5.0.0", "zone.js": "^0.8.4" + }, + "ngPackage": { + "lib": { + "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 d03df47..0000000 --- a/rollup.config.js +++ /dev/null @@ -1,17 +0,0 @@ -const globals = { - '@angular/core': 'ng.core', - '@angular/http': 'ng.http', - '@angular/common/http': 'ng.common.http', - 'rxjs': 'rxjs', - 'rxjs/operators': 'rxjs.operators' -}; - -export default { - input: './src/in-mem/index.js', - file: './bundles/in-memory-web-api.umd.js', - format: 'umd', - name: 'ng.inMemoryWebApi', - sourcemap: true, - globals, - external: Object.keys(globals) -} diff --git a/src/app/hero.service.spec.ts b/src/app/hero.service.spec.ts deleted file mode 100644 index 86e8d8d..0000000 --- a/src/app/hero.service.spec.ts +++ /dev/null @@ -1,143 +0,0 @@ -import { async, TestBed } from '@angular/core/testing'; - -import { concatMap, tap, map } from 'rxjs/operators'; - -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').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( - (_: {}) => { - 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).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 - ); - })); - - }); - } -} diff --git a/src/app/hero.service.ts b/src/app/hero.service.ts deleted file mode 100644 index 33f5c3f..0000000 --- a/src/app/hero.service.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Hero } from './hero'; -import { Observable } from 'rxjs'; - -export abstract class HeroService { - heroesUrl = 'api/heroes'; // URL to web api - - abstract getHeroes (): Observable; - abstract getHero(id: number): Observable; - abstract addHero (name: string): Observable; - abstract deleteHero (hero: Hero | number): Observable; - abstract searchHeroes(term: string): Observable; - abstract updateHero (hero: Hero): Observable; -} diff --git a/src/app/hero.ts b/src/app/hero.ts deleted file mode 100644 index 6a98f0d..0000000 --- a/src/app/hero.ts +++ /dev/null @@ -1,4 +0,0 @@ -export class Hero { - constructor(public id = 0, public name = '') { } - clone() { return new Hero(this.id, this.name); } -} diff --git a/src/in-mem/backend.service.ts b/src/backend.service.ts old mode 100644 new mode 100755 similarity index 87% rename from src/in-mem/backend.service.ts rename to src/backend.service.ts index 7639fad..6fcd779 --- a/src/in-mem/backend.service.ts +++ b/src/backend.service.ts @@ -34,12 +34,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); } @@ -84,15 +81,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]; @@ -125,7 +119,7 @@ export abstract class BackendService { const interceptorResponse = methodInterceptor(reqInfo); if (interceptorResponse) { return interceptorResponse; - }; + } } if (this.db[collectionName]) { @@ -139,11 +133,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); } @@ -162,14 +152,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 => { @@ -189,7 +181,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) { @@ -202,28 +194,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; } /** @@ -263,7 +255,7 @@ export abstract class BackendService { 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); @@ -297,7 +289,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. @@ -316,7 +308,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$; } @@ -330,7 +322,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 { @@ -343,18 +334,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`); @@ -362,7 +355,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 }; } @@ -386,7 +379,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); } @@ -400,7 +395,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; @@ -439,22 +435,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()); } /** @@ -471,7 +465,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) }; } @@ -566,7 +560,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); @@ -588,8 +581,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}'` + ); } } } @@ -607,13 +603,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 } } @@ -626,8 +625,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; } @@ -636,13 +638,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); @@ -666,14 +671,12 @@ 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 : - typeof (db as any).then === 'function' ? from(db as Promise) : - of(db); + 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); }); return this.dbReady; } - } diff --git a/src/in-mem/delay-response.ts b/src/delay-response.ts old mode 100644 new mode 100755 similarity index 93% rename from src/in-mem/delay-response.ts rename to src/delay-response.ts index b9bed45..4266f7f --- a/src/in-mem/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..58c6b93 --- /dev/null +++ b/src/http-backend.service.spec.ts @@ -0,0 +1,564 @@ +import { async, TestBed } from '@angular/core/testing'; +import { HttpModule, Http, XHRBackend } from '@angular/http'; + +import { zip } from 'rxjs'; +import { concatMap, map } from 'rxjs/operators'; + +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'; + +import 'jasmine-ajax'; + +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') + .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); + + 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$.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'); + } + ); + + 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'); + }, 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'`); + }, + 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' }) + .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); + } + }); + + //////////////// + 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') + .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); + }) + ); + + 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') + ).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 => { + 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') + .pipe(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') + .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' }) + }); + + 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); + }) + ); + }); + + //////////////// + 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') + .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/in-mem/http-backend.service.ts b/src/http-backend.service.ts old mode 100644 new mode 100755 similarity index 81% rename from src/in-mem/http-backend.service.ts rename to src/http-backend.service.ts index 24e2502..ac7ff79 --- a/src/in-mem/http-backend.service.ts +++ b/src/http-backend.service.ts @@ -1,24 +1,27 @@ 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 { + BrowserXhr, + Connection, + ConnectionBackend, + Headers, + ReadyState, + Request, + RequestMethod, + Response, + ResponseOptions as HttpResponseOptions, + ResponseOptionsArgs, + URLSearchParams, + XHRBackend, + XSRFStrategy +} from '@angular/http'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; 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'; @@ -51,12 +54,13 @@ import { BackendService } from './backend.service'; */ @Injectable() export class HttpBackendService extends BackendService implements ConnectionBackend { - constructor( private injector: Injector, inMemDbService: InMemoryDbService, - @Inject(InMemoryBackendConfig) @Optional() config: InMemoryBackendConfigArgs - ) { + @Inject(InMemoryBackendConfig) + @Optional() + config: InMemoryBackendConfigArgs + ) { super(inMemDbService, config); } @@ -64,7 +68,6 @@ export class HttpBackendService extends BackendService implements ConnectionBack 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}`); @@ -93,7 +96,7 @@ export class HttpBackendService extends BackendService implements ConnectionBack return RequestMethod[req.method || 0].toLowerCase(); } - protected createHeaders(headers: { [index: string]: string; }): Headers { + protected createHeaders(headers: { [index: string]: string }): Headers { return new Headers(headers); } @@ -102,9 +105,11 @@ export class HttpBackendService extends BackendService implements ConnectionBack } protected createResponse$fromResponseOptions$(resOptions$: Observable): Observable { - return resOptions$.pipe(map((opts: ResponseOptionsArgs) => { - return new Response(new HttpResponseOptions(opts)); - })); + return resOptions$.pipe( + map((opts: ResponseOptionsArgs) => { + return new Response(new HttpResponseOptions(opts)); + }) + ); } protected createPassThruBackend() { @@ -118,7 +123,6 @@ export class HttpBackendService extends BackendService implements ConnectionBack 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 new file mode 100755 index 0000000..7698cd7 --- /dev/null +++ b/src/http-client-backend.service.spec.ts @@ -0,0 +1,655 @@ +import { Injectable } from '@angular/core'; +import { async, TestBed } from '@angular/core/testing'; +import { HttpClientModule, HttpClient } from '@angular/common/http'; + +import { + HttpBackend, + HttpEvent, + HttpEventType, + HttpHandler, + HttpInterceptor, + HTTP_INTERCEPTORS, + HttpRequest, + HttpResponse +} from '@angular/common/http'; + +import { Observable, zip } from 'rxjs'; +import { concatMap, map } from 'rxjs/operators'; + +import { failure } from './failure'; + +import { HttpClientBackendService } from './http-client-backend.service'; +import { HttpClientInMemoryWebApiModule } from './http-client-in-memory-web-api.module'; + +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 '../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; +} + +/** + * Test interceptor adds a request header and a response header + */ +@Injectable() +export class TestHeaderInterceptor implements HttpInterceptor { + intercept(req: HttpRequest, next: HttpHandler): Observable> { + const reqClone = req.clone({ setHeaders: { 'x-test-req': 'req-test-header' } }); + + return next.handle(reqClone).pipe( + 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 }; + +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 })] + }); + + http = TestBed.get(HttpClient); + }); + + it( + 'can get heroes', + async(() => { + http.get('api/heroes').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(HttpBackend); + + 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$.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').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 => { + // 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').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').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 => { + 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 => { + 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 => { + 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( + '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' }) + .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'`); + }, + 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'))); + + it('to empty (observable db)', async(() => resetDatabaseTest('observable'))); + + it('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') + ).pipe( + map(([h, n, s]) => { + return { + 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 => { + 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 HttpClient w/ override service', () => { + let http: HttpClient; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [HttpClientModule, HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataOverrideService, { delay })] + }); + + http = TestBed.get(HttpClient); + }); + + 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 => { + // console.log(heroes); + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }, 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 => { + 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); + }) + ); + + describe('can reset the database', () => { + it('to empty (object db)', async(() => resetDatabaseTest('object'))); + + it('to empty (observable db)', async(() => resetDatabaseTest('observable'))); + + it('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') + ).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 + }; + }) + ); + + // 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 => { + 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('HttpClient HeroService', () => { + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [HttpClientModule, HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay })], + providers: [{ provide: HeroService, useClass: HttpClientHeroService }] + }); + }); + + new HeroServiceCoreSpec().run(); + }); + + /////////////// + + describe('HttpClient interceptor', () => { + let http: HttpClient; + let interceptors: HttpInterceptor[]; + let httpBackend: HttpClientBackendService; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [HttpClientModule, HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay })], + providers: [ + // Add test interceptor just for this test suite + { provide: HTTP_INTERCEPTORS, useClass: TestHeaderInterceptor, multi: true } + ] + }); + + http = TestBed.get(HttpClient); + httpBackend = TestBed.get(HttpBackend); + interceptors = TestBed.get(HTTP_INTERCEPTORS); + }); + + // sanity test + it('TestingModule should provide the test interceptor', () => { + const ti = interceptors.find(i => i instanceof TestHeaderInterceptor); + 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'); + + 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; + + const resHeader = event.headers.get('x-test-res'); + expect(resHeader).toBe('res-test-header'); + + const heroes = event.body as Hero[]; + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + } + }, + failure, + () => expect(gotResponse).toBe(true, 'should have seen Response event') + ); + }) + ); + }); + + ////////////// + + //////////////// + describe('HttpClient passThru', () => { + let http: HttpClient; + let httpBackend: HttpClientBackendService; + let createPassThruBackend: jasmine.Spy; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [ + HttpClientModule, + HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay, passThruUnknownUrl: true }) + ] + }); + + http = TestBed.get(HttpClient); + httpBackend = TestBed.get(HttpBackend); + 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').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 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); + }) + ); + }); + + //////////////// + describe('Http dataEncapsulation = true', () => { + let http: HttpClient; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [ + HttpClientModule, + HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay, dataEncapsulation: true }) + ] + }); + + 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); + }) + ); + }); +}); diff --git a/src/in-mem/http-client-backend.service.ts b/src/http-client-backend.service.ts old mode 100644 new mode 100755 similarity index 79% rename from src/in-mem/http-client-backend.service.ts rename to src/http-client-backend.service.ts index 269009b..7d2fa4d --- a/src/in-mem/http-client-backend.service.ts +++ b/src/http-client-backend.service.ts @@ -5,7 +5,8 @@ import { HttpHeaders, HttpParams, HttpRequest, - HttpResponse, HttpResponseBase, + HttpResponse, + HttpResponseBase, HttpXhrBackend, XhrFactory } from '@angular/common/http'; @@ -15,12 +16,7 @@ import { map } from 'rxjs/operators'; 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,20 +79,22 @@ 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(); + const myMap = new Map(); if (search) { - const params = new HttpParams({fromString: search}); - params.keys().forEach(p => map.set(p, params.getAll(p))); + const params = new HttpParams({ fromString: search }); + params.keys().forEach(p => myMap.set(p, params.getAll(p))); } - return map; + return myMap; } - protected createResponse$fromResponseOptions$(resOptions$: Observable): Observable> { + protected createResponse$fromResponseOptions$( + resOptions$: Observable + ): Observable> { return resOptions$.pipe(map((opts: HttpResponseBase) => new HttpResponse(opts))); } diff --git a/src/in-mem/http-client-in-memory-web-api.module.ts b/src/http-client-in-memory-web-api.module.ts old mode 100644 new mode 100755 similarity index 61% rename from src/in-mem/http-client-in-memory-web-api.module.ts rename to src/http-client-in-memory-web-api.module.ts index e0a3ef6..7a1cac1 --- a/src/in-mem/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 {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}}); - */ + * 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/in-mem/http-in-memory-web-api.module.ts b/src/http-in-memory-web-api.module.ts old mode 100644 new mode 100755 similarity index 59% rename from src/in-mem/http-in-memory-web-api.module.ts rename to src/http-in-memory-web-api.module.ts index 9285bd5..289a371 --- a/src/in-mem/http-in-memory-web-api.module.ts +++ b/src/http-in-memory-web-api.module.ts @@ -3,13 +3,9 @@ import { Injector, NgModule, ModuleWithProviders, Type } from '@angular/core'; import { XHRBackend } from '@angular/http'; -import { - InMemoryBackendConfigArgs, - InMemoryBackendConfig, - InMemoryDbService -} from './interfaces'; +import { InMemoryBackendConfigArgs, InMemoryBackendConfig, InMemoryDbService } from './interfaces'; -import { HttpBackendService } from './http-backend.service'; +import { HttpBackendService } from './http-backend.service'; // Internal - Creates the in-mem backend for the Http module // AoT requires factory to be exported @@ -25,34 +21,36 @@ export function httpInMemBackendServiceFactory( @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}}); - */ + * 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: InMemoryDbService, useClass: dbCreator }, { provide: InMemoryBackendConfig, useValue: options }, - { provide: XHRBackend, + { + provide: XHRBackend, useFactory: httpInMemBackendServiceFactory, - deps: [Injector, InMemoryDbService, InMemoryBackendConfig]} + deps: [Injector, InMemoryDbService, InMemoryBackendConfig] + } ] }; } - /** + /** * * Enable and configure the in-memory web api in a lazy-loaded feature module. * Same as `forRoot`. diff --git a/src/http-status-codes.ts b/src/http-status-codes.ts new file mode 100755 index 0000000..5553986 --- /dev/null +++ b/src/http-status-codes.ts @@ -0,0 +1,503 @@ +export const 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 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' + }, + '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: number) { + return STATUS_CODE_INFO[status].text || 'Unknown Status'; +} + +/** + * Returns true if the the Http Status Code is 200-299 (success) + */ +export function isSuccess(status: number): boolean { + return status >= 200 && status < 300; +} diff --git a/src/in-mem/backend.service.ngsummary.json b/src/in-mem/backend.service.ngsummary.json deleted file mode 100644 index 99ccfaa..0000000 --- a/src/in-mem/backend.service.ngsummary.json +++ /dev/null @@ -1 +0,0 @@ -{"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbol":1,"members":[]},{"__symbol":2,"members":[]}]}],"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"}]}}}],"symbols":[{"__symbol":0,"name":"BackendService","filePath":"./backend.service"},{"__symbol":1,"name":"InMemoryDbService","filePath":"./interfaces"},{"__symbol":2,"name":"InMemoryBackendConfigArgs","filePath":"./interfaces"}]} \ No newline at end of file diff --git a/src/in-mem/delay-response.ngsummary.json b/src/in-mem/delay-response.ngsummary.json deleted file mode 100644 index 94bf2a5..0000000 --- a/src/in-mem/delay-response.ngsummary.json +++ /dev/null @@ -1 +0,0 @@ -{"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"function","parameters":["response$","delayMs"],"value":{"__symbolic":"new","expression":{"__symbol":1,"members":[]},"arguments":[{"__symbolic":"error","message":"Lambda not supported","fileName":"src/in-mem/delay-response.ts"}]}}}],"symbols":[{"__symbol":0,"name":"delayResponse","filePath":"./delay-response"},{"__symbol":1,"name":"Observable","filePath":"rxjs/index"}]} \ No newline at end of file diff --git a/src/in-mem/http-backend.service.ngsummary.json b/src/in-mem/http-backend.service.ngsummary.json deleted file mode 100644 index b77b95e..0000000 --- a/src/in-mem/http-backend.service.ngsummary.json +++ /dev/null @@ -1 +0,0 @@ -{"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","extends":{"__symbol":1,"members":[]},"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbol":2,"members":[]},"arguments":[{"__symbol":3,"members":[]}]},{"__symbolic":"call","expression":{"__symbol":4,"members":[]}}]],"parameters":[{"__symbol":5,"members":[]},{"__symbol":6,"members":[]},{"__symbol":7,"members":[]}]}],"createConnection":[{"__symbolic":"method"}],"getJsonBody":[{"__symbolic":"method"}],"getRequestMethod":[{"__symbolic":"method"}],"createHeaders":[{"__symbolic":"method"}],"createQueryMap":[{"__symbolic":"method"}],"createResponse$fromResponseOptions$":[{"__symbolic":"method"}],"createPassThruBackend":[{"__symbolic":"method"}]}},"type":{"summaryKind":3,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":5,"members":[]}}}},{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":6,"members":[]}}}},{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":true,"token":{"identifier":{"reference":{"__symbol":3,"members":[]}}}}],"lifecycleHooks":[]}}}],"symbols":[{"__symbol":0,"name":"HttpBackendService","filePath":"./http-backend.service"},{"__symbol":1,"name":"BackendService","filePath":"./backend.service"},{"__symbol":2,"name":"Inject","filePath":"@angular/core/core"},{"__symbol":3,"name":"InMemoryBackendConfig","filePath":"./interfaces"},{"__symbol":4,"name":"Optional","filePath":"@angular/core/core"},{"__symbol":5,"name":"Injector","filePath":"@angular/core/core"},{"__symbol":6,"name":"InMemoryDbService","filePath":"./interfaces"},{"__symbol":7,"name":"InMemoryBackendConfigArgs","filePath":"./interfaces"}]} \ No newline at end of file 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 0aed6e8..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'; -import { concatMap, map } from 'rxjs/operators'; - -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').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); - - 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$.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'); - } - ); - - 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'); - }, - 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'`); - }, - 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' }).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 - ); - } - - }); - - //////////////// - 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').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 - ); - })); - - 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') - ).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 => { - 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').pipe( - 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').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' }) - }); - - 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 - ); - })); - }); - - //////////////// - 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').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/in-mem/http-client-backend.service.ngsummary.json b/src/in-mem/http-client-backend.service.ngsummary.json deleted file mode 100644 index d6f5ec8..0000000 --- a/src/in-mem/http-client-backend.service.ngsummary.json +++ /dev/null @@ -1 +0,0 @@ -{"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","extends":{"__symbol":1,"members":[]},"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbol":2,"members":[]},"arguments":[{"__symbol":3,"members":[]}]},{"__symbolic":"call","expression":{"__symbol":4,"members":[]}}],null],"parameters":[{"__symbol":5,"members":[]},{"__symbol":6,"members":[]},{"__symbol":7,"members":[]}]}],"handle":[{"__symbolic":"method"}],"getJsonBody":[{"__symbolic":"method"}],"getRequestMethod":[{"__symbolic":"method"}],"createHeaders":[{"__symbolic":"method"}],"createQueryMap":[{"__symbolic":"method"}],"createResponse$fromResponseOptions$":[{"__symbolic":"method"}],"createPassThruBackend":[{"__symbolic":"method"}]}},"type":{"summaryKind":3,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":5,"members":[]}}}},{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":true,"token":{"identifier":{"reference":{"__symbol":3,"members":[]}}}},{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":7,"members":[]}}}}],"lifecycleHooks":[]}}}],"symbols":[{"__symbol":0,"name":"HttpClientBackendService","filePath":"./http-client-backend.service"},{"__symbol":1,"name":"BackendService","filePath":"./backend.service"},{"__symbol":2,"name":"Inject","filePath":"@angular/core/core"},{"__symbol":3,"name":"InMemoryBackendConfig","filePath":"./interfaces"},{"__symbol":4,"name":"Optional","filePath":"@angular/core/core"},{"__symbol":5,"name":"InMemoryDbService","filePath":"./interfaces"},{"__symbol":6,"name":"InMemoryBackendConfigArgs","filePath":"./interfaces"},{"__symbol":7,"name":"XhrFactory","filePath":"@angular/common/http/http"}]} \ No newline at end of file diff --git a/src/in-mem/http-client-backend.service.spec.ts b/src/in-mem/http-client-backend.service.spec.ts deleted file mode 100644 index 69c3962..0000000 --- a/src/in-mem/http-client-backend.service.spec.ts +++ /dev/null @@ -1,671 +0,0 @@ -import { Injectable } from '@angular/core'; -import { async, TestBed } from '@angular/core/testing'; -import { HttpClientModule, HttpClient } from '@angular/common/http'; - -import { - HttpBackend, - HttpEvent, HttpEventType, - HttpHandler, - HttpInterceptor, - HTTP_INTERCEPTORS, - HttpRequest, - HttpResponse -} from '@angular/common/http'; - -import { Observable, zip} from 'rxjs'; -import { concatMap, map } from 'rxjs/operators'; - -import { failure } from '../testing'; - -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 { 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; } - -/** - * Test interceptor adds a request header and a response header - */ -@Injectable() -export class TestHeaderInterceptor implements HttpInterceptor { - intercept(req: HttpRequest, next: HttpHandler): Observable> { - - const reqClone = req.clone({setHeaders: {'x-test-req': 'req-test-header'}}); - - return next.handle(reqClone).pipe( - 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 } - -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 }) - ] - }); - - http = TestBed.get(HttpClient); - }); - - it('can get heroes', async(() => { - http.get('api/heroes') - .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(HttpBackend); - - 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$.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').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 => { - // 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') - .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') - .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 => { - 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 => { - 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 => { - 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('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' }).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'`); - }, - 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'))); - - it('to empty (observable db)', async(() => resetDatabaseTest('observable'))); - - it('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') - ).pipe( - map(([h, n, s]) => { - return { - 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 => { - 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 HttpClient w/ override service', () => { - - let http: HttpClient; - - beforeEach(() => { - TestBed.configureTestingModule({ - imports: [ - HttpClientModule, - HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataOverrideService, { delay }) - ] - }); - - http = TestBed.get(HttpClient); - }); - - 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 => { - // console.log(heroes); - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, - 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 => { - 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 - ); - })); - - describe('can reset the database', () => { - it('to empty (object db)', async(() => resetDatabaseTest('object'))); - - it('to empty (observable db)', async(() => resetDatabaseTest('observable'))); - - it('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') - ).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 - }; - }) - ); - - // 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 => { - 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('HttpClient HeroService', () => { - - beforeEach(() => { - TestBed.configureTestingModule({ - imports: [ - HttpClientModule, - HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay }) - ], - providers: [ - { provide: HeroService, useClass: HttpClientHeroService } - ] - }); - - }); - - new HeroServiceCoreSpec().run(); - }); - - /////////////// - - describe('HttpClient interceptor', () => { - - let http: HttpClient; - let interceptors: HttpInterceptor[]; - let httpBackend: HttpClientBackendService; - - beforeEach(() => { - TestBed.configureTestingModule({ - imports: [ - HttpClientModule, - HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay }) - ], - providers: [ - // Add test interceptor just for this test suite - { provide: HTTP_INTERCEPTORS, useClass: TestHeaderInterceptor, multi: true } - ] - }); - - http = TestBed.get(HttpClient); - httpBackend = TestBed.get(HttpBackend); - interceptors = TestBed.get(HTTP_INTERCEPTORS); - }); - - // sanity test - it('TestingModule should provide the test interceptor', () => { - const ti = interceptors.find(i => i instanceof TestHeaderInterceptor); - 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'); - - 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; - - const resHeader = event.headers.get('x-test-res'); - expect(resHeader).toBe('res-test-header'); - - const heroes = event.body as Hero[]; - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - } - }, - failure, - () => expect(gotResponse).toBe(true, 'should have seen Response event') - ); - })); - }); - - ////////////// - - - //////////////// - describe('HttpClient passThru', () => { - let http: HttpClient; - let httpBackend: HttpClientBackendService; - let createPassThruBackend: jasmine.Spy; - - beforeEach(() => { - TestBed.configureTestingModule({ - imports: [ - HttpClientModule, - HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay, passThruUnknownUrl: true }) - ] - }); - - http = TestBed.get(HttpClient); - httpBackend = TestBed.get(HttpBackend); - 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') - .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 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 - ); - })); - }); - - //////////////// - describe('Http dataEncapsulation = true', () => { - let http: HttpClient; - - beforeEach(() => { - TestBed.configureTestingModule({ - imports: [ - HttpClientModule, - HttpClientInMemoryWebApiModule.forRoot(HeroInMemDataService, { delay, dataEncapsulation: true }) - ] - }); - - 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 - ); - })); - - }); -}); - diff --git a/src/in-mem/http-client-in-memory-web-api.module.ngsummary.json b/src/in-mem/http-client-in-memory-web-api.module.ngsummary.json deleted file mode 100644 index 03b0571..0000000 --- a/src/in-mem/http-client-in-memory-web-api.module.ngsummary.json +++ /dev/null @@ -1 +0,0 @@ -{"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"function"}},{"symbol":{"__symbol":1,"members":[]},"metadata":{"__symbolic":"class","statics":{"forRoot":{"__symbolic":"function","parameters":["dbCreator","options"],"value":{"ngModule":{"__symbol":1,"members":[]},"providers":[{"provide":{"__symbol":2,"members":[]},"useClass":{"__symbolic":"reference","name":"dbCreator"}},{"provide":{"__symbol":3,"members":[]},"useValue":{"__symbolic":"reference","name":"options"}},{"provide":{"__symbol":4,"members":[]},"useFactory":{"__symbol":0,"members":[]},"deps":[{"__symbol":2,"members":[]},{"__symbol":3,"members":[]},{"__symbol":5,"members":[]}]}]}},"forFeature":{"__symbolic":"function","parameters":["dbCreator","options"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbol":1,"members":[]},"member":"forRoot"},"arguments":[{"__symbolic":"reference","name":"dbCreator"},{"__symbolic":"reference","name":"options"}]}}}},"type":{"summaryKind":2,"type":{"reference":{"__symbol":1,"members":[]},"diDeps":[],"lifecycleHooks":[]},"entryComponents":[],"providers":[],"modules":[{"reference":{"__symbol":1,"members":[]},"diDeps":[],"lifecycleHooks":[]}],"exportedDirectives":[],"exportedPipes":[]}}],"symbols":[{"__symbol":0,"name":"httpClientInMemBackendServiceFactory","filePath":"./http-client-in-memory-web-api.module"},{"__symbol":1,"name":"HttpClientInMemoryWebApiModule","filePath":"./http-client-in-memory-web-api.module"},{"__symbol":2,"name":"InMemoryDbService","filePath":"./interfaces"},{"__symbol":3,"name":"InMemoryBackendConfig","filePath":"./interfaces"},{"__symbol":4,"name":"HttpBackend","filePath":"@angular/common/http/http"},{"__symbol":5,"name":"XhrFactory","filePath":"@angular/common/http/http"}]} \ No newline at end of file diff --git a/src/in-mem/http-in-memory-web-api.module.ngsummary.json b/src/in-mem/http-in-memory-web-api.module.ngsummary.json deleted file mode 100644 index 58bb810..0000000 --- a/src/in-mem/http-in-memory-web-api.module.ngsummary.json +++ /dev/null @@ -1 +0,0 @@ -{"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"function"}},{"symbol":{"__symbol":1,"members":[]},"metadata":{"__symbolic":"class","statics":{"forRoot":{"__symbolic":"function","parameters":["dbCreator","options"],"value":{"ngModule":{"__symbol":1,"members":[]},"providers":[{"provide":{"__symbol":2,"members":[]},"useClass":{"__symbolic":"reference","name":"dbCreator"}},{"provide":{"__symbol":3,"members":[]},"useValue":{"__symbolic":"reference","name":"options"}},{"provide":{"__symbol":4,"members":[]},"useFactory":{"__symbol":0,"members":[]},"deps":[{"__symbol":5,"members":[]},{"__symbol":2,"members":[]},{"__symbol":3,"members":[]}]}]}},"forFeature":{"__symbolic":"function","parameters":["dbCreator","options"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbol":1,"members":[]},"member":"forRoot"},"arguments":[{"__symbolic":"reference","name":"dbCreator"},{"__symbolic":"reference","name":"options"}]}}}},"type":{"summaryKind":2,"type":{"reference":{"__symbol":1,"members":[]},"diDeps":[],"lifecycleHooks":[]},"entryComponents":[],"providers":[],"modules":[{"reference":{"__symbol":1,"members":[]},"diDeps":[],"lifecycleHooks":[]}],"exportedDirectives":[],"exportedPipes":[]}}],"symbols":[{"__symbol":0,"name":"httpInMemBackendServiceFactory","filePath":"./http-in-memory-web-api.module"},{"__symbol":1,"name":"HttpInMemoryWebApiModule","filePath":"./http-in-memory-web-api.module"},{"__symbol":2,"name":"InMemoryDbService","filePath":"./interfaces"},{"__symbol":3,"name":"InMemoryBackendConfig","filePath":"./interfaces"},{"__symbol":4,"name":"XHRBackend","filePath":"@angular/http/http"},{"__symbol":5,"name":"Injector","filePath":"@angular/core/core"}]} \ No newline at end of file diff --git a/src/in-mem/http-status-codes.ngsummary.json b/src/in-mem/http-status-codes.ngsummary.json deleted file mode 100644 index 1d22a05..0000000 --- a/src/in-mem/http-status-codes.ngsummary.json +++ /dev/null @@ -1 +0,0 @@ -{"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"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}},{"symbol":{"__symbol":1,"members":[]},"metadata":{"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"]}},{"symbol":{"__symbol":2,"members":[]},"metadata":{"__symbolic":"function","parameters":["status"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"select","expression":{"__symbolic":"index","expression":{"__symbol":1,"members":[]},"index":{"__symbolic":"reference","name":"status"}},"member":"text"},"right":"Unknown Status"}}},{"symbol":{"__symbol":3,"members":[]},"metadata":{"__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}}}}],"symbols":[{"__symbol":0,"name":"STATUS","filePath":"./http-status-codes"},{"__symbol":1,"name":"STATUS_CODE_INFO","filePath":"./http-status-codes"},{"__symbol":2,"name":"getStatusText","filePath":"./http-status-codes"},{"__symbol":3,"name":"isSuccess","filePath":"./http-status-codes"}]} \ No newline at end of file diff --git a/src/in-mem/http-status-codes.ts b/src/in-mem/http-status-codes.ts deleted file mode 100644 index 072dc83..0000000 --- a/src/in-mem/http-status-codes.ts +++ /dev/null @@ -1,466 +0,0 @@ -export const 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 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' - }, - '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: number) { - return STATUS_CODE_INFO[status].text || 'Unknown Status'; -} - -/** - * Returns true if the the Http Status Code is 200-299 (success) - */ -export function isSuccess(status: number): boolean { return status >= 200 && status < 300; }; diff --git a/src/in-mem/in-memory-web-api.module.ngsummary.json b/src/in-mem/in-memory-web-api.module.ngsummary.json deleted file mode 100644 index c82eb40..0000000 --- a/src/in-mem/in-memory-web-api.module.ngsummary.json +++ /dev/null @@ -1 +0,0 @@ -{"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","statics":{"forRoot":{"__symbolic":"function","parameters":["dbCreator","options"],"value":{"ngModule":{"__symbol":0,"members":[]},"providers":[{"provide":{"__symbol":1,"members":[]},"useClass":{"__symbolic":"reference","name":"dbCreator"}},{"provide":{"__symbol":2,"members":[]},"useValue":{"__symbolic":"reference","name":"options"}},{"provide":{"__symbol":3,"members":[]},"useFactory":{"__symbol":4,"members":[]},"deps":[{"__symbol":5,"members":[]},{"__symbol":1,"members":[]},{"__symbol":2,"members":[]}]},{"provide":{"__symbol":6,"members":[]},"useFactory":{"__symbol":7,"members":[]},"deps":[{"__symbol":1,"members":[]},{"__symbol":2,"members":[]},{"__symbol":8,"members":[]}]}]}},"forFeature":{"__symbolic":"function","parameters":["dbCreator","options"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbol":0,"members":[]},"member":"forRoot"},"arguments":[{"__symbolic":"reference","name":"dbCreator"},{"__symbolic":"reference","name":"options"}]}}}},"type":{"summaryKind":2,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]},"entryComponents":[],"providers":[],"modules":[{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]}],"exportedDirectives":[],"exportedPipes":[]}}],"symbols":[{"__symbol":0,"name":"InMemoryWebApiModule","filePath":"./in-memory-web-api.module"},{"__symbol":1,"name":"InMemoryDbService","filePath":"./interfaces"},{"__symbol":2,"name":"InMemoryBackendConfig","filePath":"./interfaces"},{"__symbol":3,"name":"XHRBackend","filePath":"@angular/http/http"},{"__symbol":4,"name":"httpInMemBackendServiceFactory","filePath":"./http-in-memory-web-api.module"},{"__symbol":5,"name":"Injector","filePath":"@angular/core/core"},{"__symbol":6,"name":"HttpBackend","filePath":"@angular/common/http/http"},{"__symbol":7,"name":"httpClientInMemBackendServiceFactory","filePath":"./http-client-in-memory-web-api.module"},{"__symbol":8,"name":"XhrFactory","filePath":"@angular/common/http/http"}]} \ No newline at end of file diff --git a/src/in-mem/index.ngsummary.json b/src/in-mem/index.ngsummary.json deleted file mode 100644 index ed98b40..0000000 --- a/src/in-mem/index.ngsummary.json +++ /dev/null @@ -1 +0,0 @@ -{"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbol":1,"members":[]}},{"symbol":{"__symbol":2,"members":[]},"metadata":{"__symbol":3,"members":[]}},{"symbol":{"__symbol":4,"members":[]},"metadata":{"__symbol":5,"members":[]}},{"symbol":{"__symbol":6,"members":[]},"metadata":{"__symbol":7,"members":[]}},{"symbol":{"__symbol":8,"members":[]},"metadata":{"__symbol":9,"members":[]}},{"symbol":{"__symbol":10,"members":[]},"metadata":{"__symbol":11,"members":[]}},{"symbol":{"__symbol":12,"members":[]},"metadata":{"__symbol":13,"members":[]}},{"symbol":{"__symbol":14,"members":[]},"metadata":{"__symbol":15,"members":[]}},{"symbol":{"__symbol":16,"members":[]},"metadata":{"__symbol":17,"members":[]}},{"symbol":{"__symbol":18,"members":[]},"metadata":{"__symbol":19,"members":[]}},{"symbol":{"__symbol":20,"members":[]},"metadata":{"__symbol":21,"members":[]}},{"symbol":{"__symbol":22,"members":[]},"metadata":{"__symbol":23,"members":[]}},{"symbol":{"__symbol":24,"members":[]},"metadata":{"__symbol":25,"members":[]}},{"symbol":{"__symbol":26,"members":[]},"metadata":{"__symbol":27,"members":[]}},{"symbol":{"__symbol":28,"members":[]},"metadata":{"__symbol":29,"members":[]}},{"symbol":{"__symbol":30,"members":[]},"metadata":{"__symbol":31,"members":[]}},{"symbol":{"__symbol":32,"members":[]},"metadata":{"__symbol":33,"members":[]}},{"symbol":{"__symbol":34,"members":[]},"metadata":{"__symbol":35,"members":[]}},{"symbol":{"__symbol":36,"members":[]},"metadata":{"__symbol":37,"members":[]}},{"symbol":{"__symbol":38,"members":[]},"metadata":{"__symbol":39,"members":[]}},{"symbol":{"__symbol":40,"members":[]},"metadata":{"__symbol":41,"members":[]}},{"symbol":{"__symbol":42,"members":[]},"metadata":{"__symbol":43,"members":[]}},{"symbol":{"__symbol":44,"members":[]},"metadata":{"__symbol":45,"members":[]}},{"symbol":{"__symbol":46,"members":[]},"metadata":{"__symbol":47,"members":[]}},{"symbol":{"__symbol":48,"members":[]},"metadata":{"__symbol":49,"members":[]}},{"symbol":{"__symbol":50,"members":[]},"metadata":{"__symbol":51,"members":[]}}],"symbols":[{"__symbol":0,"name":"BackendService","filePath":"./index"},{"__symbol":1,"name":"BackendService","filePath":"./backend.service"},{"__symbol":2,"name":"STATUS","filePath":"./index"},{"__symbol":3,"name":"STATUS","filePath":"./http-status-codes"},{"__symbol":4,"name":"STATUS_CODE_INFO","filePath":"./index"},{"__symbol":5,"name":"STATUS_CODE_INFO","filePath":"./http-status-codes"},{"__symbol":6,"name":"getStatusText","filePath":"./index"},{"__symbol":7,"name":"getStatusText","filePath":"./http-status-codes"},{"__symbol":8,"name":"isSuccess","filePath":"./index"},{"__symbol":9,"name":"isSuccess","filePath":"./http-status-codes"},{"__symbol":10,"name":"HttpBackendService","filePath":"./index"},{"__symbol":11,"name":"HttpBackendService","filePath":"./http-backend.service"},{"__symbol":12,"name":"HttpClientBackendService","filePath":"./index"},{"__symbol":13,"name":"HttpClientBackendService","filePath":"./http-client-backend.service"},{"__symbol":14,"name":"InMemoryWebApiModule","filePath":"./index"},{"__symbol":15,"name":"InMemoryWebApiModule","filePath":"./in-memory-web-api.module"},{"__symbol":16,"name":"httpInMemBackendServiceFactory","filePath":"./index"},{"__symbol":17,"name":"httpInMemBackendServiceFactory","filePath":"./http-in-memory-web-api.module"},{"__symbol":18,"name":"HttpInMemoryWebApiModule","filePath":"./index"},{"__symbol":19,"name":"HttpInMemoryWebApiModule","filePath":"./http-in-memory-web-api.module"},{"__symbol":20,"name":"httpClientInMemBackendServiceFactory","filePath":"./index"},{"__symbol":21,"name":"httpClientInMemBackendServiceFactory","filePath":"./http-client-in-memory-web-api.module"},{"__symbol":22,"name":"HttpClientInMemoryWebApiModule","filePath":"./index"},{"__symbol":23,"name":"HttpClientInMemoryWebApiModule","filePath":"./http-client-in-memory-web-api.module"},{"__symbol":24,"name":"HeadersCore","filePath":"./index"},{"__symbol":25,"name":"HeadersCore","filePath":"./interfaces"},{"__symbol":26,"name":"InMemoryDbService","filePath":"./index"},{"__symbol":27,"name":"InMemoryDbService","filePath":"./interfaces"},{"__symbol":28,"name":"InMemoryBackendConfigArgs","filePath":"./index"},{"__symbol":29,"name":"InMemoryBackendConfigArgs","filePath":"./interfaces"},{"__symbol":30,"name":"InMemoryBackendConfig","filePath":"./index"},{"__symbol":31,"name":"InMemoryBackendConfig","filePath":"./interfaces"},{"__symbol":32,"name":"parseUri","filePath":"./index"},{"__symbol":33,"name":"parseUri","filePath":"./interfaces"},{"__symbol":34,"name":"ParsedRequestUrl","filePath":"./index"},{"__symbol":35,"name":"ParsedRequestUrl","filePath":"./interfaces"},{"__symbol":36,"name":"PassThruBackend","filePath":"./index"},{"__symbol":37,"name":"PassThruBackend","filePath":"./interfaces"},{"__symbol":38,"name":"removeTrailingSlash","filePath":"./index"},{"__symbol":39,"name":"removeTrailingSlash","filePath":"./interfaces"},{"__symbol":40,"name":"RequestCore","filePath":"./index"},{"__symbol":41,"name":"RequestCore","filePath":"./interfaces"},{"__symbol":42,"name":"RequestInfo","filePath":"./index"},{"__symbol":43,"name":"RequestInfo","filePath":"./interfaces"},{"__symbol":44,"name":"RequestInfoUtilities","filePath":"./index"},{"__symbol":45,"name":"RequestInfoUtilities","filePath":"./interfaces"},{"__symbol":46,"name":"ResponseInterceptor","filePath":"./index"},{"__symbol":47,"name":"ResponseInterceptor","filePath":"./interfaces"},{"__symbol":48,"name":"ResponseOptions","filePath":"./index"},{"__symbol":49,"name":"ResponseOptions","filePath":"./interfaces"},{"__symbol":50,"name":"UriInfo","filePath":"./index"},{"__symbol":51,"name":"UriInfo","filePath":"./interfaces"}]} \ No newline at end of file diff --git a/src/in-mem/interfaces.ngsummary.json b/src/in-mem/interfaces.ngsummary.json deleted file mode 100644 index 92aa73f..0000000 --- a/src/in-mem/interfaces.ngsummary.json +++ /dev/null @@ -1 +0,0 @@ -{"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"interface"}},{"symbol":{"__symbol":1,"members":[]},"metadata":{"__symbolic":"class","members":{"createDb":[{"__symbolic":"method"}]}}},{"symbol":{"__symbol":2,"members":[]},"metadata":{"__symbolic":"class"}},{"symbol":{"__symbol":3,"members":[]},"metadata":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbol":2,"members":[]}]}]}},"type":{"summaryKind":3,"type":{"reference":{"__symbol":3,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":2,"members":[]}}}}],"lifecycleHooks":[]}}},{"symbol":{"__symbol":4,"members":[]},"metadata":{"__symbolic":"function"}},{"symbol":{"__symbol":5,"members":[]},"metadata":{"__symbolic":"interface"}},{"symbol":{"__symbol":6,"members":[]},"metadata":{"__symbolic":"interface"}},{"symbol":{"__symbol":7,"members":[]},"metadata":{"__symbolic":"function","parameters":["path"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"path"},"member":"replace"},"arguments":[{"__symbolic":"error","message":"Expression form not supported","fileName":"src/in-mem/interfaces.ts"},""]}}},{"symbol":{"__symbol":8,"members":[]},"metadata":{"__symbolic":"interface"}},{"symbol":{"__symbol":9,"members":[]},"metadata":{"__symbolic":"interface"}},{"symbol":{"__symbol":10,"members":[]},"metadata":{"__symbolic":"interface"}},{"symbol":{"__symbol":11,"members":[]},"metadata":{"__symbolic":"interface"}},{"symbol":{"__symbol":12,"members":[]},"metadata":{"__symbolic":"interface"}},{"symbol":{"__symbol":13,"members":[]},"metadata":{"__symbolic":"interface"}}],"symbols":[{"__symbol":0,"name":"HeadersCore","filePath":"./interfaces"},{"__symbol":1,"name":"InMemoryDbService","filePath":"./interfaces"},{"__symbol":2,"name":"InMemoryBackendConfigArgs","filePath":"./interfaces"},{"__symbol":3,"name":"InMemoryBackendConfig","filePath":"./interfaces"},{"__symbol":4,"name":"parseUri","filePath":"./interfaces"},{"__symbol":5,"name":"ParsedRequestUrl","filePath":"./interfaces"},{"__symbol":6,"name":"PassThruBackend","filePath":"./interfaces"},{"__symbol":7,"name":"removeTrailingSlash","filePath":"./interfaces"},{"__symbol":8,"name":"RequestCore","filePath":"./interfaces"},{"__symbol":9,"name":"RequestInfo","filePath":"./interfaces"},{"__symbol":10,"name":"RequestInfoUtilities","filePath":"./interfaces"},{"__symbol":11,"name":"ResponseInterceptor","filePath":"./interfaces"},{"__symbol":12,"name":"ResponseOptions","filePath":"./interfaces"},{"__symbol":13,"name":"UriInfo","filePath":"./interfaces"}]} \ No newline at end of file diff --git a/src/in-mem/in-memory-web-api.module.ts b/src/in-memory-web-api.module.ts old mode 100644 new mode 100755 similarity index 60% rename from src/in-mem/in-memory-web-api.module.ts rename to src/in-memory-web-api.module.ts index fd8085f..97ed075 --- a/src/in-mem/in-memory-web-api.module.ts +++ b/src/in-memory-web-api.module.ts @@ -4,11 +4,7 @@ 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 { InMemoryBackendConfigArgs, InMemoryBackendConfig, InMemoryDbService } from './interfaces'; import { httpInMemBackendServiceFactory } from './http-in-memory-web-api.module'; import { httpClientInMemBackendServiceFactory } from './http-client-in-memory-web-api.module'; @@ -16,34 +12,38 @@ import { httpClientInMemBackendServiceFactory } from './http-client-in-memory-we @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}}); - */ + * 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: InMemoryDbService, useClass: dbCreator }, { provide: InMemoryBackendConfig, useValue: options }, - { provide: XHRBackend, + { + provide: XHRBackend, useFactory: httpInMemBackendServiceFactory, - deps: [Injector, InMemoryDbService, InMemoryBackendConfig]}, + deps: [Injector, InMemoryDbService, InMemoryBackendConfig] + }, - { provide: HttpBackend, + { + provide: HttpBackend, useFactory: httpClientInMemBackendServiceFactory, - deps: [InMemoryDbService, InMemoryBackendConfig, XhrFactory]} + deps: [InMemoryDbService, InMemoryBackendConfig, XhrFactory] + } ] }; } diff --git a/src/in-mem/index.ts b/src/index.ts old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 similarity index 68% rename from src/in-mem/interfaces.ts rename to src/interfaces.ts index 7c43d67..0340c8f --- a/src/in-mem/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/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/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 0a13045..0000000 --- a/src/systemjs.config.js +++ /dev/null @@ -1,57 +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': { - main: 'index.js' - }, - 'rxjs/operators': { - main: 'index.js' - } - } - }); -})(this); 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'; +} diff --git a/test.ts b/test.ts new file mode 100755 index 0000000..ba1ce20 --- /dev/null +++ b/test.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 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..a89c251 --- /dev/null +++ b/tsconfig.app.json @@ -0,0 +1,14 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./out-tsc/app", + "baseUrl": "./", + "module": "es2015", + "types": [], + "paths": { + "in-memory-web-api": ["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 af750f8..edf01a9 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,26 +1,23 @@ { "compilerOptions": { - "target": "es5", + "baseUrl": "./", + "paths": { + "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, - "strictPropertyInitialization": false - }, - "exclude": [ - "node_modules", - "typings/main", - "typings/main.d.ts", - "**/*.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..69a6e52 --- a/tslint.json +++ b/tslint.json @@ -1,19 +1,21 @@ { "rules": { + "callable-types": true, "class-name": true, "comment-format": [ true, "check-space" ], - "curly": true, "eofline": true, - "forin": true, + "import-blacklist": [ + true + ], + "import-spacing": true, "indent": [ true, "spaces" ], "label-position": true, - "label-undefined": true, "max-line-length": [ true, 140 @@ -21,8 +23,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 +44,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 +69,14 @@ "check-else", "check-whitespace" ], + "prefer-const": true, "quotemark": [ true, "single" ], "radix": true, "semicolon": [ + true, "always" ], "triple-equals": [ @@ -80,6 +93,8 @@ "variable-declaration": "nospace" } ], + "typeof-compare": true, + "unified-signatures": true, "variable-name": false, "whitespace": [ true,