From af6076f3c6008d3aacb69ae3eca8db2eb3f00de9 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 21 May 2018 09:54:37 -0400 Subject: [PATCH] Source maps work for testdata/007_stack_trace.ts. --- Makefile | 3 +- main.ts | 23 ---- package.json | 10 +- runtime.ts | 12 +++ testdata/007_stack_trace.ts | 2 - v8_source_maps.ts | 203 ++++++++++++++++++++++++++++++++++++ yarn.lock | 200 ++++++++++++++++++++++++++++++++--- 7 files changed, 408 insertions(+), 45 deletions(-) create mode 100644 v8_source_maps.ts diff --git a/Makefile b/Makefile index bcdac39eb5..6f74d8593f 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,8 @@ TS_FILES = \ runtime.ts \ timers.ts \ url.js \ - util.ts + util.ts \ + v8_source_maps.ts deno: assets.go msg.pb.go main.go go build -o deno diff --git a/main.ts b/main.ts index 9140d20ff6..356fe329a8 100644 --- a/main.ts +++ b/main.ts @@ -3,29 +3,6 @@ import "./util"; import * as runtime from "./runtime"; import * as timers from "./timers"; import * as util from "./util"; -import * as sourceMap from "source-map-support"; - -function retrieveFileForSourceMap(path: string): string { - util.log("retrieveFileForSourceMap", path); - throw Error("implemtn me"); -} - -function retrieveSourceMap(source: string): sourceMap.UrlAndMap { - util.log("retrieveSourceMap", source); - throw Error("implemtn me"); - //return { url, map } -} - -// TODO handleUncaughtExceptions -sourceMap.install({ - //handleUncaughtExceptions: true, - environment: "node", - retrieveFile: retrieveFileForSourceMap, - hookRequire: false, - overrideRetrieveSourceMap: true, - overrideRetrieveFile: true, - retrieveSourceMap -}); // To control internal logging output // Set with the -debug command-line flag. diff --git a/package.json b/package.json index df7ef042e6..2de98d4cd2 100644 --- a/package.json +++ b/package.json @@ -5,13 +5,19 @@ "fmt": "prettier --write *.ts* *.js *.json" }, "devDependencies": { + "@types/base64-js": "^1.2.5", "@types/source-map-support": "^0.4.0", + "base64-js": "^1.3.0", + "espree": "^3.5.3", "http-server": "^0.11.1", + "jsdoc": "^3.5.5", "parcel-bundler": "^1.8.1", "protobufjs": "^6.8.6", - "source-map-support": "^0.5.6", + "source-map": "0.6.0", + "tmp": "0.0.33", "tslint": "^5.10.0", - "typescript": "^2.8.3" + "typescript": "^2.8.3", + "uglify-js": "^2.8.29" }, "dependencies": {} } diff --git a/runtime.ts b/runtime.ts index 1b1e309b5e..9ca3b4944d 100644 --- a/runtime.ts +++ b/runtime.ts @@ -11,6 +11,7 @@ import * as util from "./util"; import { log } from "./util"; import * as os from "./os"; import "./url"; +import * as sourceMaps from "./v8_source_maps"; const EOL = "\n"; @@ -18,6 +19,17 @@ const EOL = "\n"; type AmdFactory = (...args: any[]) => undefined | object; type AmdDefine = (deps: string[], factory: AmdFactory) => void; +sourceMaps.install({ + installPrepareStackTrace: true, + getGeneratedContents: (filename: string): string => { + util.log("getGeneratedContents", filename); + if (filename === "dist/main.js") { + return null; + } + return FileModule.load(filename).outputCode; + } +}); + // This class represents a module. We call it FileModule to make it explicit // that each module represents a single file. // Access to FileModule instances should only be done thru the static method diff --git a/testdata/007_stack_trace.ts b/testdata/007_stack_trace.ts index 2424bf9497..624bc55da0 100644 --- a/testdata/007_stack_trace.ts +++ b/testdata/007_stack_trace.ts @@ -6,6 +6,4 @@ function bar() { foo() } -console.log("before"); bar() -console.log("after"); diff --git a/v8_source_maps.ts b/v8_source_maps.ts new file mode 100644 index 0000000000..d80efb9210 --- /dev/null +++ b/v8_source_maps.ts @@ -0,0 +1,203 @@ +import { SourceMapConsumer, MappedPosition } from "source-map"; +import * as base64 from "base64-js"; + +interface Options { + // A callback the returns generated file contents. + getGeneratedContents: GetGeneratedContentsCallback; + // Usually set the following to true. Set to false for testing. + installPrepareStackTrace: boolean; +} + +interface CallSite extends NodeJS.CallSite { + getScriptNameOrSourceURL(): string; +} + +interface Position { + source: string; // Filename + column: number; + line: number; +} + +type GetGeneratedContentsCallback = (fileName: string) => string; + +let getGeneratedContents: GetGeneratedContentsCallback; + +export function install(options: Options) { + getGeneratedContents = options.getGeneratedContents; + if (options.installPrepareStackTrace) { + Error.prepareStackTrace = prepareStackTraceWrapper; + } +} + +export function prepareStackTraceWrapper( + error: Error, + stack: CallSite[] +): string { + try { + return prepareStackTrace(error, stack); + } catch (prepareStackError) { + Error.prepareStackTrace = null; + console.log("=====Error inside of prepareStackTrace===="); + console.log(prepareStackError.stack.toString()); + console.log("=====Original error======================="); + throw error; + } +} + +export function prepareStackTrace(error: Error, stack: CallSite[]): string { + const frames = stack.map( + (frame: CallSite) => "\n at " + wrapCallSite(frame).toString() + ); + return error.toString() + frames.join(""); +} + +export function wrapCallSite(frame: CallSite): CallSite { + if (frame.isNative()) { + return frame; + } + + // Most call sites will return the source file from getFileName(), but code + // passed to eval() ending in "//# sourceURL=..." will return the source file + // from getScriptNameOrSourceURL() instead + const source = frame.getFileName() || frame.getScriptNameOrSourceURL(); + if (source) { + const line = frame.getLineNumber(); + const column = frame.getColumnNumber() - 1; + + const position = mapSourcePosition({ + source, + line, + column + }); + frame = cloneCallSite(frame); + frame.getFileName = () => position.source; + frame.getLineNumber = () => position.line; + frame.getColumnNumber = () => Number(position.column) + 1; + frame.getScriptNameOrSourceURL = () => position.source; + return frame; + } + + // Code called using eval() needs special handling + let origin = frame.isEval() && frame.getEvalOrigin(); + if (origin) { + origin = mapEvalOrigin(origin); + frame = cloneCallSite(frame); + frame.getEvalOrigin = () => origin; + return frame; + } + + // If we get here then we were unable to change the source position + return frame; +} + +function cloneCallSite(frame: CallSite): CallSite { + // tslint:disable:no-any + const obj: any = {}; + const frame_ = frame as any; + const props = Object.getOwnPropertyNames(Object.getPrototypeOf(frame)); + props.forEach(name => { + obj[name] = /^(?:is|get|toString)/.test(name) + ? () => frame_[name].call(frame) + : frame_[name]; + }); + return (obj as any) as CallSite; + // tslint:enable:no-any +} + +// Regex for detecting source maps +const reSourceMap = /^data:application\/json[^,]+base64,/; + +function loadConsumer(source: string): SourceMapConsumer { + let consumer = consumers.get(source); + if (consumer == null) { + const code = getGeneratedContents(source); + if (!code) { + return null; + } + + let sourceMappingURL = retrieveSourceMapURL(code); + if (!sourceMappingURL) { + throw Error("No source map?"); + } + + let sourceMapData: string; + if (reSourceMap.test(sourceMappingURL)) { + // Support source map URL as a data url + const rawData = sourceMappingURL.slice(sourceMappingURL.indexOf(",") + 1); + //sourceMapData = bufferFrom(rawData, "base64").toString(); + const ui8 = base64.toByteArray(rawData); + sourceMapData = arrayToStr(ui8); + sourceMappingURL = source; + } else { + // Support source map URLs relative to the source URL + //sourceMappingURL = supportRelativeURL(source, sourceMappingURL); + //sourceMapData = retrieveFile(sourceMappingURL); + } + + const rawSourceMap = JSON.parse(sourceMapData); + consumer = new SourceMapConsumer(rawSourceMap); + consumers.set(source, consumer); + } + return consumer; +} + +const consumers = new Map(); + +function retrieveSourceMapURL(fileData: string): string { + // Get the URL of the source map + // tslint:disable-next-line:max-line-length + const re = /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/)[ \t]*$)/gm; + // Keep executing the search to find the *last* sourceMappingURL to avoid + // picking up sourceMappingURLs from comments, strings, etc. + let lastMatch, match; + while ((match = re.exec(fileData))) { + lastMatch = match; + } + if (!lastMatch) { + return null; + } + return lastMatch[1]; +} + +function mapSourcePosition(position: Position): MappedPosition { + const consumer = loadConsumer(position.source); + if (consumer == null) { + return position; + } + const mapped = consumer.originalPositionFor(position); + return mapped; +} + +// Parses code generated by FormatEvalOrigin(), a function inside V8: +// https://code.google.com/p/v8/source/browse/trunk/src/messages.js +function mapEvalOrigin(origin: string): string { + // Most eval() calls are in this format + let match = /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(origin); + if (match) { + const position = mapSourcePosition({ + source: match[2], + line: Number(match[3]), + column: Number(match[4]) - 1 + }); + const pos = [ + position.source, + position.line, + Number(position.column) + 1 + ].join(":"); + return `eval at ${match[1]} (${pos})`; + } + + // Parse nested eval() calls using recursion + match = /^eval at ([^(]+) \((.+)\)$/.exec(origin); + if (match) { + return "eval at " + match[1] + " (" + mapEvalOrigin(match[2]) + ")"; + } + + // Make sure we still return useful information if we didn't find anything + return origin; +} + +// TODO move to util? +function arrayToStr(ui8: Uint8Array): string { + return String.fromCharCode.apply(null, ui8); +} diff --git a/yarn.lock b/yarn.lock index e7e3e6929b..676ffe67bb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -45,6 +45,10 @@ version "1.1.0" resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570" +"@types/base64-js@^1.2.5": + version "1.2.5" + resolved "https://registry.yarnpkg.com/@types/base64-js/-/base64-js-1.2.5.tgz#582b2476169a6cba460a214d476c744441d873d5" + "@types/long@^3.0.32": version "3.0.32" resolved "https://registry.yarnpkg.com/@types/long/-/long-3.0.32.tgz#f4e5af31e9e9b196d8e5fca8a5e2e20aa3d60b69" @@ -67,10 +71,28 @@ abbrev@1: version "1.1.1" resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" -acorn@^5.0.0: +acorn-jsx@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-3.0.1.tgz#afdf9488fb1ecefc8348f6fb22f464e32a58b36b" + dependencies: + acorn "^3.0.4" + +acorn@^3.0.4: + version "3.3.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a" + +acorn@^5.0.0, acorn@^5.5.0: version "5.5.3" resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.5.3.tgz#f473dd47e0277a08e28e9bec5aeeb04751f0b8c9" +align-text@^0.1.1, align-text@^0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" + dependencies: + kind-of "^3.0.2" + longest "^1.0.1" + repeat-string "^1.5.2" + alphanum-sort@^1.0.1, alphanum-sort@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/alphanum-sort/-/alphanum-sort-1.0.2.tgz#97a1119649b211ad33691d9f9f486a8ec9fbe0a3" @@ -660,6 +682,10 @@ babylon-walk@^1.0.2: babel-types "^6.15.0" lodash.clone "^4.5.0" +babylon@7.0.0-beta.19: + version "7.0.0-beta.19" + resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.19.tgz#e928c7e807e970e0536b078ab3e0c48f9e052503" + babylon@^6.17.4, babylon@^6.18.0: version "6.18.0" resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" @@ -672,7 +698,7 @@ balanced-match@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" -base64-js@^1.0.2: +base64-js@^1.0.2, base64-js@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.3.0.tgz#cab1e6118f051095e58b5281aea8c1cd22bfc0e3" @@ -696,7 +722,7 @@ bindings@~1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.2.1.tgz#14ad6113812d2d37d72e67b4cacb4bb726505f11" -bluebird@^3.0.5: +bluebird@^3.0.5, bluebird@~3.5.0: version "3.5.1" resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.1.tgz#d9551f9de98f1fcda1e683d17ee91a0602ee2eb9" @@ -851,6 +877,10 @@ cache-base@^1.0.1: union-value "^1.0.0" unset-value "^1.0.0" +camelcase@^1.0.2: + version "1.2.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" + caniuse-api@^1.5.2: version "1.6.1" resolved "https://registry.yarnpkg.com/caniuse-api/-/caniuse-api-1.6.1.tgz#b534e7c734c4f81ec5fbe8aca2ad24354b962c6c" @@ -868,6 +898,19 @@ caniuse-lite@^1.0.30000835: version "1.0.30000839" resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000839.tgz#41fcc036cf1cb77a0e0be041210f77f1ced44a7b" +catharsis@~0.8.9: + version "0.8.9" + resolved "https://registry.yarnpkg.com/catharsis/-/catharsis-0.8.9.tgz#98cc890ca652dd2ef0e70b37925310ff9e90fc8b" + dependencies: + underscore-contrib "~0.3.0" + +center-align@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" + dependencies: + align-text "^0.1.3" + lazy-cache "^1.0.3" + chalk@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" @@ -930,6 +973,14 @@ class-utils@^0.3.5: isobject "^3.0.0" static-extend "^0.1.1" +cliui@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" + dependencies: + center-align "^0.1.1" + right-align "^0.1.1" + wordwrap "0.0.2" + clone@^1.0.2: version "1.0.4" resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" @@ -1237,7 +1288,7 @@ debug@^3.1.0: dependencies: ms "2.0.0" -decamelize@^1.1.2: +decamelize@^1.0.0, decamelize@^1.1.2: version "1.2.0" resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" @@ -1442,7 +1493,7 @@ escape-html@~1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" -escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: +escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5, escape-string-regexp@~1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" @@ -1457,6 +1508,13 @@ escodegen@^1.8.1, escodegen@~1.9.0: optionalDependencies: source-map "~0.6.1" +espree@^3.5.3: + version "3.5.4" + resolved "https://registry.yarnpkg.com/espree/-/espree-3.5.4.tgz#b0f447187c8a8bed944b815a660bddf5deb5d1a7" + dependencies: + acorn "^5.5.0" + acorn-jsx "^3.0.0" + esprima@^2.6.0: version "2.7.3" resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581" @@ -1652,7 +1710,7 @@ globals@^9.18.0: version "9.18.0" resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" -graceful-fs@^4.1.2: +graceful-fs@^4.1.2, graceful-fs@^4.1.9: version "4.1.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" @@ -2070,6 +2128,29 @@ js-yaml@~3.7.0: argparse "^1.0.7" esprima "^2.6.0" +js2xmlparser@~3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/js2xmlparser/-/js2xmlparser-3.0.0.tgz#3fb60eaa089c5440f9319f51760ccd07e2499733" + dependencies: + xmlcreate "^1.0.1" + +jsdoc@^3.5.5: + version "3.5.5" + resolved "https://registry.yarnpkg.com/jsdoc/-/jsdoc-3.5.5.tgz#484521b126e81904d632ff83ec9aaa096708fa4d" + dependencies: + babylon "7.0.0-beta.19" + bluebird "~3.5.0" + catharsis "~0.8.9" + escape-string-regexp "~1.0.5" + js2xmlparser "~3.0.0" + klaw "~2.0.0" + marked "~0.3.6" + mkdirp "~0.5.1" + requizzle "~0.2.1" + strip-json-comments "~2.0.1" + taffydb "2.6.2" + underscore "~1.8.3" + jsesc@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" @@ -2108,6 +2189,16 @@ kind-of@^6.0.0, kind-of@^6.0.2: version "6.0.2" resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051" +klaw@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/klaw/-/klaw-2.0.0.tgz#59c128e0dc5ce410201151194eeb9cbf858650f6" + dependencies: + graceful-fs "^4.1.9" + +lazy-cache@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" + levn@~0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" @@ -2135,6 +2226,10 @@ long@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/long/-/long-4.0.0.tgz#9a7b71cfb7d361a194ea555241c92f7468d5bf28" +longest@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" + loose-envify@^1.0.0: version "1.3.1" resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" @@ -2167,6 +2262,10 @@ map-visit@^1.0.0: dependencies: object-visit "^1.0.0" +marked@~0.3.6: + version "0.3.19" + resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.19.tgz#5d47f709c4c9fc3c216b6d46127280f40b39d790" + math-expression-evaluator@^1.2.14: version "1.2.17" resolved "https://registry.yarnpkg.com/math-expression-evaluator/-/math-expression-evaluator-1.2.17.tgz#de819fdbcd84dccd8fae59c6aeb79615b9d266ac" @@ -2519,7 +2618,7 @@ os-homedir@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" -os-tmpdir@^1.0.0, os-tmpdir@^1.0.1: +os-tmpdir@^1.0.0, os-tmpdir@^1.0.1, os-tmpdir@~1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" @@ -3108,7 +3207,7 @@ repeat-element@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" -repeat-string@^1.6.1: +repeat-string@^1.5.2, repeat-string@^1.6.1: version "1.6.1" resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" @@ -3122,6 +3221,12 @@ requires-port@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" +requizzle@~0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/requizzle/-/requizzle-0.2.1.tgz#6943c3530c4d9a7e46f1cddd51c158fc670cdbde" + dependencies: + underscore "~1.6.0" + resolve-url@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" @@ -3136,6 +3241,12 @@ ret@~0.1.10: version "0.1.15" resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" +right-align@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" + dependencies: + align-text "^0.1.1" + rimraf@^2.6.1: version "2.6.2" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" @@ -3327,22 +3438,19 @@ source-map-support@^0.4.15: dependencies: source-map "^0.5.6" -source-map-support@^0.5.6: - version "0.5.6" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.6.tgz#4435cee46b1aab62b8e8610ce60f788091c51c13" - dependencies: - buffer-from "^1.0.0" - source-map "^0.6.0" - source-map-url@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" -source-map@0.6.1, source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: +source-map@0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.0.tgz#36446016b0e5b626cf0315d6ff14b15bafb9dc10" + +source-map@0.6.1, source-map@^0.6.1, source-map@~0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" -source-map@^0.5.3, source-map@^0.5.6, source-map@^0.5.7: +source-map@^0.5.3, source-map@^0.5.6, source-map@^0.5.7, source-map@~0.5.1: version "0.5.7" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" @@ -3498,6 +3606,10 @@ svgo@^1.0.5: unquote "~1.1.1" util.promisify "~1.0.0" +taffydb@2.6.2: + version "2.6.2" + resolved "https://registry.yarnpkg.com/taffydb/-/taffydb-2.6.2.tgz#7cbcb64b5a141b6a2efc2c5d2c67b4e150b2a268" + tar@^4: version "4.4.2" resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.2.tgz#60685211ba46b38847b1ae7ee1a24d744a2cd462" @@ -3527,6 +3639,12 @@ tiny-inflate@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/tiny-inflate/-/tiny-inflate-1.0.2.tgz#93d9decffc8805bd57eae4310f0b745e9b6fb3a7" +tmp@0.0.33: + version "0.0.33" + resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" + dependencies: + os-tmpdir "~1.0.2" + to-arraybuffer@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43" @@ -3621,6 +3739,33 @@ uglify-es@^3.2.1, uglify-es@^3.3.9: commander "~2.13.0" source-map "~0.6.1" +uglify-js@^2.8.29: + version "2.8.29" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd" + dependencies: + source-map "~0.5.1" + yargs "~3.10.0" + optionalDependencies: + uglify-to-browserify "~1.0.0" + +uglify-to-browserify@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" + +underscore-contrib@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/underscore-contrib/-/underscore-contrib-0.3.0.tgz#665b66c24783f8fa2b18c9f8cbb0e2c7d48c26c7" + dependencies: + underscore "1.6.0" + +underscore@1.6.0, underscore@~1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.6.0.tgz#8b38b10cacdef63337b8b24e4ff86d45aea529a8" + +underscore@~1.8.3: + version "1.8.3" + resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.8.3.tgz#4f3fb53b106e6097fcf9cb4109f2a5e9bdfa5022" + unicode-trie@^0.3.1: version "0.3.1" resolved "https://registry.yarnpkg.com/unicode-trie/-/unicode-trie-0.3.1.tgz#d671dddd89101a08bac37b6a5161010602052085" @@ -3744,6 +3889,14 @@ wide-align@^1.1.0: dependencies: string-width "^1.0.2" +window-size@0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" + +wordwrap@0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" + wordwrap@~0.0.2: version "0.0.3" resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" @@ -3762,6 +3915,10 @@ ws@^5.1.1: dependencies: async-limiter "~1.0.0" +xmlcreate@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/xmlcreate/-/xmlcreate-1.0.2.tgz#fa6bf762a60a413fb3dd8f4b03c5b269238d308f" + xtend@^4.0.0, xtend@~4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" @@ -3769,3 +3926,12 @@ xtend@^4.0.0, xtend@~4.0.1: yallist@^3.0.0, yallist@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.0.2.tgz#8452b4bb7e83c7c188d8041c1a837c773d6d8bb9" + +yargs@~3.10.0: + version "3.10.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" + dependencies: + camelcase "^1.0.2" + cliui "^2.1.0" + decamelize "^1.0.0" + window-size "0.1.0"