aboutsummaryrefslogtreecommitdiff
path: root/node_modules/chrome-trace-event
diff options
context:
space:
mode:
authorruki <waruqi@gmail.com>2018-11-08 00:38:48 +0800
committerruki <waruqi@gmail.com>2018-11-07 21:53:09 +0800
commit26105034da4fcce7ac883c899d781f016559310d (patch)
treec459a5dc4e3aa0972d9919033ece511ce76dd129 /node_modules/chrome-trace-event
parent2c77f00f1a7ecb6c8192f9c16d3b2001b254a107 (diff)
downloadxmake-docs-26105034da4fcce7ac883c899d781f016559310d.tar.gz
xmake-docs-26105034da4fcce7ac883c899d781f016559310d.zip
switch to vuepress
Diffstat (limited to 'node_modules/chrome-trace-event')
-rw-r--r--node_modules/chrome-trace-event/.travis.yml22
-rw-r--r--node_modules/chrome-trace-event/CHANGES.md26
-rw-r--r--node_modules/chrome-trace-event/LICENSE.txt23
-rw-r--r--node_modules/chrome-trace-event/Makefile42
-rw-r--r--node_modules/chrome-trace-event/README.md31
-rw-r--r--node_modules/chrome-trace-event/dist/trace-event.d.ts51
-rw-r--r--node_modules/chrome-trace-event/dist/trace-event.js174
-rw-r--r--node_modules/chrome-trace-event/dist/trace-event.js.map1
-rw-r--r--node_modules/chrome-trace-event/events.log2
-rw-r--r--node_modules/chrome-trace-event/package.json37
-rw-r--r--node_modules/chrome-trace-event/tsconfig.json32
-rw-r--r--node_modules/chrome-trace-event/yarn.lock213
12 files changed, 654 insertions, 0 deletions
diff --git a/node_modules/chrome-trace-event/.travis.yml b/node_modules/chrome-trace-event/.travis.yml
new file mode 100644
index 00000000..bc15b1b1
--- /dev/null
+++ b/node_modules/chrome-trace-event/.travis.yml
@@ -0,0 +1,22 @@
+sudo: false
+dist: trusty
+language: node_js
+
+script:
+ - yarn build
+ - yarn test
+ - yarn check_format
+branches:
+ only:
+ - master
+
+cache:
+ yarn: true
+
+matrix:
+ include:
+ - os: linux
+ node_js: "8"
+ - os: linux
+ node_js: "6"
+ fast_finish: true
diff --git a/node_modules/chrome-trace-event/CHANGES.md b/node_modules/chrome-trace-event/CHANGES.md
new file mode 100644
index 00000000..889d7de4
--- /dev/null
+++ b/node_modules/chrome-trace-event/CHANGES.md
@@ -0,0 +1,26 @@
+# node-trace-event changelog
+
+## 1.3.1 (not yet released)
+
+(nothing yet)
+
+
+## 1.3.0
+
+- Add `.child(<fields>)` option to `trace_event.createBunyanTracer()` object.
+
+
+## 1.2.0
+
+- Add `trace_event.createBunyanLogger()` usage for some sugar. See the
+ README.md for details.
+
+
+## 1.1.0
+
+- Rename to 'trace-event', which is a much more accurate name.
+
+
+## 1.0.0
+
+First release.
diff --git a/node_modules/chrome-trace-event/LICENSE.txt b/node_modules/chrome-trace-event/LICENSE.txt
new file mode 100644
index 00000000..427a1364
--- /dev/null
+++ b/node_modules/chrome-trace-event/LICENSE.txt
@@ -0,0 +1,23 @@
+# This is the MIT license
+
+Copyright (c) 2015 Joyent Inc. All rights reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
diff --git a/node_modules/chrome-trace-event/Makefile b/node_modules/chrome-trace-event/Makefile
new file mode 100644
index 00000000..db516170
--- /dev/null
+++ b/node_modules/chrome-trace-event/Makefile
@@ -0,0 +1,42 @@
+
+TAPE = ./node_modules/.bin/tape
+JSSTYLE_FILES := $(shell find lib test -name "*.js")
+
+
+all $(TAPE):
+ npm install
+
+.PHONY: clean
+clean:
+ rm -rf examples/*.json examples/*.log
+
+.PHONY: distclean
+distclean: clean
+ rm -rf node_modules
+
+.PHONY: test
+test: | $(TAPE)
+ $(TAPE) test/*.test.js
+
+.PHONY: check-jsstyle
+check-jsstyle: $(JSSTYLE_FILES)
+ ./tools/jsstyle -o indent=4,doxygen,unparenthesized-return=0,blank-after-start-comment=0,leading-right-paren-ok $(JSSTYLE_FILES)
+
+.PHONY: check
+check: check-jsstyle
+ @echo "Check ok."
+
+# Ensure CHANGES.md and package.json have the same version.
+.PHONY: versioncheck
+versioncheck:
+ @echo version is: $(shell cat package.json | json version)
+ [[ `cat package.json | json version` == `grep '^## ' CHANGES.md | head -1 | awk '{print $$2}'` ]]
+
+.PHONY: cutarelease
+cutarelease: versioncheck
+ [[ `git status | tail -n1` == "nothing to commit, working directory clean" ]]
+ ./tools/cutarelease.py -p trace-event -f package.json
+
+.PHONY: git-hooks
+git-hooks:
+ [[ -e .git/hooks/pre-commit ]] || ln -s ../../tools/pre-commit.sh .git/hooks/pre-commit
diff --git a/node_modules/chrome-trace-event/README.md b/node_modules/chrome-trace-event/README.md
new file mode 100644
index 00000000..8bd20774
--- /dev/null
+++ b/node_modules/chrome-trace-event/README.md
@@ -0,0 +1,31 @@
+[![Build Status](https://travis-ci.org/samccone/chrome-trace-event.svg?branch=master)](https://travis-ci.org/samccone/chrome-trace-event)
+
+chrome-trace-event: A node library for creating trace event logs of program
+execution according to [Google's Trace Event
+format](https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU).
+These logs can then be visualized with
+[trace-viewer](https://github.com/google/trace-viewer) or chrome devtools to grok one's programs.
+
+# Install
+
+ npm install chrome-trace-event
+
+# Usage
+
+```javascript
+const Trace = require("chrome-trace-event").Tracer;
+const trace = new Trace({
+ noStream: true
+});
+trace.pipe(fs.createWriteStream(outPath));
+trace.flush();
+```
+
+# Links
+
+* https://github.com/google/trace-viewer/wiki
+* https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU
+
+# License
+
+MIT. See LICENSE.txt.
diff --git a/node_modules/chrome-trace-event/dist/trace-event.d.ts b/node_modules/chrome-trace-event/dist/trace-event.d.ts
new file mode 100644
index 00000000..d46d8699
--- /dev/null
+++ b/node_modules/chrome-trace-event/dist/trace-event.d.ts
@@ -0,0 +1,51 @@
+/// <reference types="node" />
+/**
+ * trace-event - A library to create a trace of your node app per
+ * Google's Trace Event format:
+ * // JSSTYLED
+ * https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU
+ */
+import { Readable as ReadableStream } from "stream";
+export interface Event {
+ ts: number;
+ pid: number;
+ tid: number;
+ /** event phase */
+ ph?: string;
+ [otherData: string]: any;
+}
+export interface Fields {
+ cat?: any;
+ args?: any;
+ [filedName: string]: any;
+}
+export interface TracerOptions {
+ parent?: Tracer | null;
+ fields?: Fields | null;
+ objectMode?: boolean | null;
+ noStream?: boolean;
+}
+export declare class Tracer extends ReadableStream {
+ private _objectMode;
+ /** Node Stream internal APIs */
+ private _push;
+ private firstPush?;
+ private noStream;
+ private events;
+ private parent;
+ private fields;
+ constructor(opts?: TracerOptions);
+ /**
+ * If in no streamMode in order to flush out the trace
+ * you need to call flush.
+ */
+ flush(): void;
+ _read(_: number): void;
+ private _pushString(ev);
+ child(fields: Fields): Tracer;
+ begin(fields: Fields): void;
+ end(fields: Fields): void;
+ completeEvent(fields: Fields): void;
+ instantEvent(fields: Fields): void;
+ mkEventFunc(ph: string): (fields: Fields) => void;
+}
diff --git a/node_modules/chrome-trace-event/dist/trace-event.js b/node_modules/chrome-trace-event/dist/trace-event.js
new file mode 100644
index 00000000..b07b2913
--- /dev/null
+++ b/node_modules/chrome-trace-event/dist/trace-event.js
@@ -0,0 +1,174 @@
+"use strict";
+/**
+ * trace-event - A library to create a trace of your node app per
+ * Google's Trace Event format:
+ * // JSSTYLED
+ * https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+var tslib_1 = require("tslib");
+var stream_1 = require("stream");
+function evCommon() {
+ var hrtime = process.hrtime(); // [seconds, nanoseconds]
+ var ts = hrtime[0] * 1000000 + Math.round(hrtime[1] / 1000); // microseconds
+ return {
+ ts: ts,
+ pid: process.pid,
+ tid: process.pid // no meaningful tid for node.js
+ };
+}
+var Tracer = /** @class */ (function (_super) {
+ tslib_1.__extends(Tracer, _super);
+ function Tracer(opts) {
+ if (opts === void 0) { opts = {}; }
+ var _this = _super.call(this) || this;
+ _this.noStream = false;
+ _this.events = [];
+ if (typeof opts !== "object") {
+ throw new Error("Invalid options passed (must be an object)");
+ }
+ if (opts.parent != null && typeof opts.parent !== "object") {
+ throw new Error("Invalid option (parent) passed (must be an object)");
+ }
+ if (opts.fields != null && typeof opts.fields !== "object") {
+ throw new Error("Invalid option (fields) passed (must be an object)");
+ }
+ if (opts.objectMode != null &&
+ (opts.objectMode !== true && opts.objectMode !== false)) {
+ throw new Error("Invalid option (objectsMode) passed (must be a boolean)");
+ }
+ _this.noStream = opts.noStream || false;
+ _this.parent = opts.parent;
+ if (_this.parent) {
+ _this.fields = Object.assign({}, opts.parent && opts.parent.fields);
+ }
+ else {
+ _this.fields = {};
+ }
+ if (opts.fields) {
+ Object.assign(_this.fields, opts.fields);
+ }
+ if (!_this.fields.cat) {
+ // trace-viewer *requires* `cat`, so let's have a fallback.
+ _this.fields.cat = "default";
+ }
+ else if (Array.isArray(_this.fields.cat)) {
+ _this.fields.cat = _this.fields.cat.join(",");
+ }
+ if (!_this.fields.args) {
+ // trace-viewer *requires* `args`, so let's have a fallback.
+ _this.fields.args = {};
+ }
+ if (_this.parent) {
+ // TODO: Not calling Readable ctor here. Does that cause probs?
+ // Probably if trying to pipe from the child.
+ // Might want a serpate TracerChild class for these guys.
+ _this._push = _this.parent._push.bind(_this.parent);
+ }
+ else {
+ _this._objectMode = Boolean(opts.objectMode);
+ var streamOpts = { objectMode: _this._objectMode };
+ if (_this._objectMode) {
+ _this._push = _this.push;
+ }
+ else {
+ _this._push = _this._pushString;
+ streamOpts.encoding = "utf8";
+ }
+ stream_1.Readable.call(_this, streamOpts);
+ }
+ return _this;
+ }
+ /**
+ * If in no streamMode in order to flush out the trace
+ * you need to call flush.
+ */
+ Tracer.prototype.flush = function () {
+ if (this.noStream === true) {
+ for (var _i = 0, _a = this.events; _i < _a.length; _i++) {
+ var evt = _a[_i];
+ this._push(evt);
+ }
+ }
+ };
+ Tracer.prototype._read = function (_) { };
+ Tracer.prototype._pushString = function (ev) {
+ if (!this.firstPush) {
+ this.push("[");
+ this.firstPush = true;
+ }
+ this.push(JSON.stringify(ev) + ",\n", "utf8");
+ };
+ // TODO Perhaps figure out getting a trailing ']' without ',]' if helpful.
+ //Tracer.prototype._flush = function _flush() {
+ // if (!this._objectMode) {
+ // this.push(']')
+ // }
+ //};
+ Tracer.prototype.child = function (fields) {
+ return new Tracer({
+ parent: this,
+ fields: fields
+ });
+ };
+ Tracer.prototype.begin = function (fields) {
+ return this.mkEventFunc("b")(fields);
+ };
+ Tracer.prototype.end = function (fields) {
+ return this.mkEventFunc("e")(fields);
+ };
+ Tracer.prototype.completeEvent = function (fields) {
+ return this.mkEventFunc("X")(fields);
+ };
+ Tracer.prototype.instantEvent = function (fields) {
+ return this.mkEventFunc("I")(fields);
+ };
+ Tracer.prototype.mkEventFunc = function (ph) {
+ var _this = this;
+ return function (fields) {
+ var ev = evCommon();
+ // Assign the event phase.
+ ev.ph = ph;
+ if (fields) {
+ if (typeof fields === "string") {
+ ev.name = fields;
+ }
+ else {
+ for (var _i = 0, _a = Object.keys(fields); _i < _a.length; _i++) {
+ var k = _a[_i];
+ if (k === "cat") {
+ ev.cat = fields.cat.join(",");
+ }
+ else {
+ ev[k] = fields[k];
+ }
+ }
+ }
+ }
+ if (!_this.noStream) {
+ _this._push(ev);
+ }
+ else {
+ _this.events.push(ev);
+ }
+ };
+ };
+ return Tracer;
+}(stream_1.Readable));
+exports.Tracer = Tracer;
+/*
+ * These correspond to the "Async events" in the Trace Events doc.
+ *
+ * Required fields:
+ * - name
+ * - id
+ *
+ * Optional fields:
+ * - cat (array)
+ * - args (object)
+ * - TODO: stack fields, other optional fields?
+ *
+ * Dev Note: We don't explicitly assert that correct fields are
+ * used for speed (premature optimization alert!).
+ */
+//# sourceMappingURL=trace-event.js.map \ No newline at end of file
diff --git a/node_modules/chrome-trace-event/dist/trace-event.js.map b/node_modules/chrome-trace-event/dist/trace-event.js.map
new file mode 100644
index 00000000..b5ed78a6
--- /dev/null
+++ b/node_modules/chrome-trace-event/dist/trace-event.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"trace-event.js","sourceRoot":"","sources":["../lib/trace-event.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,iCAAqE;AAYrE;IACE,IAAI,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,yBAAyB;IACxD,IAAI,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,eAAe;IAC5E,OAAO;QACL,EAAE,IAAA;QACF,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,gCAAgC;KAClD,CAAC;AACJ,CAAC;AAiBD;IAA4B,kCAAc;IAUxC,gBAAY,IAAwB;QAAxB,qBAAA,EAAA,SAAwB;QAApC,YACE,iBAAO,SA6DR;QAnEO,cAAQ,GAAY,KAAK,CAAC;QAC1B,YAAM,GAAY,EAAE,CAAC;QAM3B,IAAI,OA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M;oBACL,KAAgB,UAAmB,EAAnB,KAAA,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAnB,cAAmB,EAAnB,IAAmB;wBAA9B,IAAM,CAAC,SAAA;wBACV,IAAI,CAAC,KAAK,KAAK,EAAE;4BACf,EAAE,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;yBAC/B;6BAAM;4BACL,EAAE,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;yBACnB;qBACF;iBACF;aACF;YAED,IAAI,CAAC,KAAI,CAAC,QAAQ,EAAE;gBAClB,KAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;aAChB;iBAAM;gBACL,KAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;aACtB;QACH,CAAC,CAAC;IACJ,CAAC;IACH,aAAC;AAAD,CAAC,AAzJD,CAA4B,iBAAc,GAyJzC;AAzJY,wBAAM;AA2JnB;;;;;;;;;;;;;;GAcG"} \ No newline at end of file
diff --git a/node_modules/chrome-trace-event/events.log b/node_modules/chrome-trace-event/events.log
new file mode 100644
index 00000000..e510f916
--- /dev/null
+++ b/node_modules/chrome-trace-event/events.log
@@ -0,0 +1,2 @@
+[{"ts":84716485545,"pid":21887,"tid":21887,"ph":"b","name":"doSomething","id":"abc"},
+{"ts":84717491639,"pid":21887,"tid":21887,"ph":"e","name":"doSomething","id":"abc"},
diff --git a/node_modules/chrome-trace-event/package.json b/node_modules/chrome-trace-event/package.json
new file mode 100644
index 00000000..956839e4
--- /dev/null
+++ b/node_modules/chrome-trace-event/package.json
@@ -0,0 +1,37 @@
+{
+ "name": "chrome-trace-event",
+ "description": "A library to create a trace of your node app per Google's Trace Event format.",
+ "license": "MIT",
+ "version": "1.0.0",
+ "author": "Trent Mick, Sam Saccone",
+ "keywords": [
+ "trace-event",
+ "trace",
+ "event",
+ "trace-viewer",
+ "google"
+ ],
+ "repository": {
+ "type": "git",
+ "url": "github.com:samccone/chrome-trace-event"
+ },
+ "main": "./dist/trace-event.js",
+ "typings": "./dist/trace-event.d.ts",
+ "dependencies": {
+ "tslib": "^1.9.0"
+ },
+ "devDependencies": {
+ "@types/node": "^9.6.5",
+ "prettier": "^1.12.1",
+ "tape": "4.8.0",
+ "typescript": "^2.8.1"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "scripts": {
+ "build": "tsc",
+ "check_format": "prettier -l lib/** test/** examples/**",
+ "test": "tape test/*.test.js"
+ }
+}
diff --git a/node_modules/chrome-trace-event/tsconfig.json b/node_modules/chrome-trace-event/tsconfig.json
new file mode 100644
index 00000000..38a4c9ed
--- /dev/null
+++ b/node_modules/chrome-trace-event/tsconfig.json
@@ -0,0 +1,32 @@
+{
+ "compilerOptions": {
+ /* Basic Options */
+ "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
+ "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
+ "lib": ["es2015"], /* Specify library files to be included in the compilation. */
+ "declaration": true, /* Generates corresponding '.d.ts' file. */
+ "sourceMap": true, /* Generates corresponding '.map' file. */
+ "outDir": "./dist", /* Redirect output structure to the directory. */
+ "importHelpers": true, /* Import emit helpers from 'tslib'. */
+
+ /* Strict Type-Checking Options */
+ "strict": true, /* Enable all strict type-checking options. */
+ "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
+ "strictNullChecks": true, /* Enable strict null checks. */
+ "strictFunctionTypes": true, /* Enable strict checking of function types. */
+ "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
+ "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
+ "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
+
+ /* Additional Checks */
+ "noUnusedLocals": true, /* Report errors on unused locals. */
+ "noUnusedParameters": true, /* Report errors on unused parameters. */
+ "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
+ "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
+
+ /* Module Resolution Options */
+
+ "types": ["node"], /* Type declaration files to be included in compilation. */
+ "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
+ }
+}
diff --git a/node_modules/chrome-trace-event/yarn.lock b/node_modules/chrome-trace-event/yarn.lock
new file mode 100644
index 00000000..5a685a04
--- /dev/null
+++ b/node_modules/chrome-trace-event/yarn.lock
@@ -0,0 +1,213 @@
+# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
+# yarn lockfile v1
+
+
+"@types/node@^9.6.5":
+ version "9.6.5"
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-9.6.5.tgz#ee700810fdf49ac1c399fc5980b7559b3e5a381d"
+
+balanced-match@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
+
+brace-expansion@^1.1.7:
+ version "1.1.8"
+ resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.8.tgz#c07b211c7c952ec1f8efd51a77ef0d1d3990a292"
+ dependencies:
+ balanced-match "^1.0.0"
+ concat-map "0.0.1"
+
+concat-map@0.0.1:
+ version "0.0.1"
+ resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
+
+deep-equal@~1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-1.0.1.tgz#f5d260292b660e084eff4cdbc9f08ad3247448b5"
+
+define-properties@^1.1.2:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.2.tgz#83a73f2fea569898fb737193c8f873caf6d45c94"
+ dependencies:
+ foreach "^2.0.5"
+ object-keys "^1.0.8"
+
+defined@~1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/defined/-/defined-1.0.0.tgz#c98d9bcef75674188e110969151199e39b1fa693"
+
+es-abstract@^1.5.0:
+ version "1.10.0"
+ resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.10.0.tgz#1ecb36c197842a00d8ee4c2dfd8646bb97d60864"
+ dependencies:
+ 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@^1.1.1:
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.1.1.tgz#45355248a88979034b6792e19bb81f2b7975dd0d"
+ dependencies:
+ is-callable "^1.1.1"
+ is-date-object "^1.0.1"
+ is-symbol "^1.0.1"
+
+for-each@~0.3.2:
+ version "0.3.2"
+ resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.2.tgz#2c40450b9348e97f281322593ba96704b9abd4d4"
+ dependencies:
+ is-function "~1.0.0"
+
+foreach@^2.0.5:
+ version "2.0.5"
+ resolved "https://registry.yarnpkg.com/foreach/-/foreach-2.0.5.tgz#0bee005018aeb260d0a3af3ae658dd0136ec1b99"
+
+fs.realpath@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
+
+function-bind@^1.0.2, function-bind@^1.1.1, function-bind@~1.1.0:
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"
+
+glob@~7.1.2:
+ version "7.1.2"
+ resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15"
+ dependencies:
+ fs.realpath "^1.0.0"
+ inflight "^1.0.4"
+ inherits "2"
+ minimatch "^3.0.4"
+ once "^1.3.0"
+ path-is-absolute "^1.0.0"
+
+has@^1.0.1, has@~1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/has/-/has-1.0.1.tgz#8461733f538b0837c9361e39a9ab9e9704dc2f28"
+ dependencies:
+ function-bind "^1.0.2"
+
+inflight@^1.0.4:
+ version "1.0.6"
+ resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
+ dependencies:
+ once "^1.3.0"
+ wrappy "1"
+
+inherits@2, inherits@~2.0.3:
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"
+
+is-callable@^1.1.1, is-callable@^1.1.3:
+ version "1.1.3"
+ resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.3.tgz#86eb75392805ddc33af71c92a0eedf74ee7604b2"
+
+is-date-object@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16"
+
+is-function@~1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/is-function/-/is-function-1.0.1.tgz#12cfb98b65b57dd3d193a3121f5f6e2f437602b5"
+
+is-regex@^1.0.4:
+ version "1.0.4"
+ resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.4.tgz#5517489b547091b0930e095654ced25ee97e9491"
+ dependencies:
+ has "^1.0.1"
+
+is-symbol@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.1.tgz#3cc59f00025194b6ab2e38dbae6689256b660572"
+
+minimatch@^3.0.4:
+ version "3.0.4"
+ resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
+ dependencies:
+ brace-expansion "^1.1.7"
+
+minimist@~1.2.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
+
+object-inspect@~1.3.0:
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.3.0.tgz#5b1eb8e6742e2ee83342a637034d844928ba2f6d"
+
+object-keys@^1.0.8:
+ version "1.0.11"
+ resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.11.tgz#c54601778ad560f1142ce0e01bcca8b56d13426d"
+
+once@^1.3.0:
+ version "1.4.0"
+ resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
+ dependencies:
+ wrappy "1"
+
+path-is-absolute@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
+
+path-parse@^1.0.5:
+ version "1.0.5"
+ resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1"
+
+prettier@^1.12.1:
+ version "1.12.1"
+ resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.12.1.tgz#c1ad20e803e7749faf905a409d2367e06bbe7325"
+
+resolve@~1.4.0:
+ version "1.4.0"
+ resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.4.0.tgz#a75be01c53da25d934a98ebd0e4c4a7312f92a86"
+ dependencies:
+ path-parse "^1.0.5"
+
+resumer@~0.0.0:
+ version "0.0.0"
+ resolved "https://registry.yarnpkg.com/resumer/-/resumer-0.0.0.tgz#f1e8f461e4064ba39e82af3cdc2a8c893d076759"
+ dependencies:
+ through "~2.3.4"
+
+string.prototype.trim@~1.1.2:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.1.2.tgz#d04de2c89e137f4d7d206f086b5ed2fae6be8cea"
+ dependencies:
+ define-properties "^1.1.2"
+ es-abstract "^1.5.0"
+ function-bind "^1.0.2"
+
+tape@4.8.0:
+ version "4.8.0"
+ resolved "https://registry.yarnpkg.com/tape/-/tape-4.8.0.tgz#f6a9fec41cc50a1de50fa33603ab580991f6068e"
+ dependencies:
+ deep-equal "~1.0.1"
+ defined "~1.0.0"
+ for-each "~0.3.2"
+ function-bind "~1.1.0"
+ glob "~7.1.2"
+ has "~1.0.1"
+ inherits "~2.0.3"
+ minimist "~1.2.0"
+ object-inspect "~1.3.0"
+ resolve "~1.4.0"
+ resumer "~0.0.0"
+ string.prototype.trim "~1.1.2"
+ through "~2.3.8"
+
+through@~2.3.4, through@~2.3.8:
+ version "2.3.8"
+ resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"
+
+tslib@^1.9.0:
+ version "1.9.0"
+ resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.0.tgz#e37a86fda8cbbaf23a057f473c9f4dc64e5fc2e8"
+
+typescript@^2.8.1:
+ version "2.8.1"
+ resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.8.1.tgz#6160e4f8f195d5ba81d4876f9c0cc1fbc0820624"
+
+wrappy@1:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"