Comparing version 2.2.0-beta.2 to 3.0.0-alpha.1
@@ -76,8 +76,2 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "assert", { | ||
enumerable: true, | ||
get: function get() { | ||
return _assert.assert; | ||
} | ||
}); | ||
@@ -91,4 +85,2 @@ var _globals = require("./globals"); | ||
var _isElectron = _interopRequireDefault(require("./is-electron")); | ||
var _assert = require("./assert"); | ||
//# sourceMappingURL=index.js.map |
@@ -106,2 +106,32 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "addColor", { | ||
enumerable: true, | ||
get: function get() { | ||
return _color.addColor; | ||
} | ||
}); | ||
Object.defineProperty(exports, "leftPad", { | ||
enumerable: true, | ||
get: function get() { | ||
return _formatters.leftPad; | ||
} | ||
}); | ||
Object.defineProperty(exports, "rightPad", { | ||
enumerable: true, | ||
get: function get() { | ||
return _formatters.rightPad; | ||
} | ||
}); | ||
Object.defineProperty(exports, "autobind", { | ||
enumerable: true, | ||
get: function get() { | ||
return _autobind.autobind; | ||
} | ||
}); | ||
Object.defineProperty(exports, "LocalStorage", { | ||
enumerable: true, | ||
get: function get() { | ||
return _localStorage.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "_enableDOMLogging", { | ||
@@ -117,3 +147,3 @@ enumerable: true, | ||
var _globals = require("./lib/utils/globals"); | ||
var _globals = require("./utils/globals"); | ||
@@ -128,3 +158,3 @@ var _globals2 = require("./env/globals"); | ||
var _assert = _interopRequireDefault(require("./env/assert")); | ||
var _assert = _interopRequireDefault(require("./utils/assert")); | ||
@@ -135,6 +165,12 @@ var _stats = _interopRequireDefault(require("./lib/stats")); | ||
var _color = require("./lib/utils/color"); | ||
var _color = require("./utils/color"); | ||
var _logToDom = require("./lib/utils/log-to-dom"); | ||
var _formatters = require("./utils/formatters"); | ||
var _autobind = require("./utils/autobind"); | ||
var _localStorage = _interopRequireDefault(require("./utils/local-storage")); | ||
var _logToDom = require("./utils/log-to-dom"); | ||
var _default = new _log.default({ | ||
@@ -141,0 +177,0 @@ id: 'probe.gl' |
"use strict"; | ||
var _globals = require("./lib/utils/globals"); | ||
var _globals = require("./utils/globals"); | ||
_globals.global.probe = {}; | ||
//# sourceMappingURL=init.js.map |
@@ -20,15 +20,15 @@ "use strict"; | ||
var _globals = require("./utils/globals"); | ||
var _globals = require("../utils/globals"); | ||
var _localStorage = _interopRequireDefault(require("./utils/local-storage")); | ||
var _localStorage = _interopRequireDefault(require("../utils/local-storage")); | ||
var _timestamp = require("./utils/timestamp"); | ||
var _timestamp = require("../utils/timestamp"); | ||
var _formatters = require("./utils/formatters"); | ||
var _formatters = require("../utils/formatters"); | ||
var _color = require("./utils/color"); | ||
var _color = require("../utils/color"); | ||
var _autobind = require("./utils/autobind"); | ||
var _autobind = require("../utils/autobind"); | ||
var _assert2 = _interopRequireDefault(require("../lib/utils/assert")); | ||
var _assert2 = _interopRequireDefault(require("../utils/assert")); | ||
@@ -35,0 +35,0 @@ var originalConsole = { |
@@ -14,5 +14,5 @@ "use strict"; | ||
var _timestamp = require("./utils/timestamp"); | ||
var _timestamp = require("../utils/timestamp"); | ||
var _formatters = require("./utils/formatters"); | ||
var _formatters = require("../utils/formatters"); | ||
@@ -19,0 +19,0 @@ var Stats = function () { |
@@ -5,3 +5,2 @@ export { self, window, global, document, process, console } from './globals'; | ||
export { default as isElectron } from './is-electron'; | ||
export { assert } from './assert'; | ||
//# sourceMappingURL=index.js.map |
import './init'; | ||
export { VERSION } from './lib/utils/globals'; | ||
export { VERSION } from './utils/globals'; | ||
export { self, window, global, document, process, console } from './env/globals'; | ||
@@ -7,6 +7,6 @@ export { default as isBrowser, isBrowserMainThread } from './env/is-browser'; | ||
export { default as isElectron } from './env/is-electron'; | ||
export { default as assert } from './env/assert'; | ||
export { default as assert } from './utils/assert'; | ||
export { default as Stats } from './lib/stats'; | ||
export { default as Log } from './lib/log'; | ||
export { COLOR } from './lib/utils/color'; | ||
export { COLOR } from './utils/color'; | ||
import { default as Log } from './lib/log'; | ||
@@ -16,3 +16,7 @@ export default new Log({ | ||
}); | ||
export { enableDOMLogging as _enableDOMLogging } from './lib/utils/log-to-dom'; | ||
export { addColor } from './utils/color'; | ||
export { leftPad, rightPad } from './utils/formatters'; | ||
export { autobind } from './utils/autobind'; | ||
export { default as LocalStorage } from './utils/local-storage'; | ||
export { enableDOMLogging as _enableDOMLogging } from './utils/log-to-dom'; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
import { global } from './lib/utils/globals'; | ||
import { global } from './utils/globals'; | ||
global.probe = {}; | ||
//# sourceMappingURL=init.js.map |
@@ -1,9 +0,8 @@ | ||
import { VERSION } from './utils/globals'; | ||
import LocalStorage from './utils/local-storage'; | ||
import { getTimestamp } from './utils/timestamp'; | ||
import { formatImage, formatTime, leftPad } from './utils/formatters'; | ||
import { addColor } from './utils/color'; | ||
import { autobind } from './utils/autobind'; | ||
import { isBrowser } from './utils/globals'; | ||
import assert from '../lib/utils/assert'; | ||
import { VERSION, isBrowser } from '../utils/globals'; | ||
import LocalStorage from '../utils/local-storage'; | ||
import { getTimestamp } from '../utils/timestamp'; | ||
import { formatImage, formatTime, leftPad } from '../utils/formatters'; | ||
import { addColor } from '../utils/color'; | ||
import { autobind } from '../utils/autobind'; | ||
import assert from '../utils/assert'; | ||
const originalConsole = { | ||
@@ -10,0 +9,0 @@ debug: isBrowser ? console.debug || console.log : console.log, |
@@ -1,3 +0,3 @@ | ||
import { getTimestamp } from './utils/timestamp'; | ||
import { formatTime } from './utils/formatters'; | ||
import { getTimestamp } from '../utils/timestamp'; | ||
import { formatTime } from '../utils/formatters'; | ||
export default class Stats { | ||
@@ -4,0 +4,0 @@ constructor({ |
@@ -5,3 +5,2 @@ export { self, window, global, document, process, console } from './globals'; | ||
export { default as isElectron } from './is-electron'; | ||
export { assert } from './assert'; | ||
//# sourceMappingURL=index.js.map |
import './init'; | ||
export { VERSION } from './lib/utils/globals'; | ||
export { VERSION } from './utils/globals'; | ||
export { self, window, global, document, process, console } from './env/globals'; | ||
@@ -7,6 +7,6 @@ export { default as isBrowser, isBrowserMainThread } from './env/is-browser'; | ||
export { default as isElectron } from './env/is-electron'; | ||
export { default as assert } from './env/assert'; | ||
export { default as assert } from './utils/assert'; | ||
export { default as Stats } from './lib/stats'; | ||
export { default as Log } from './lib/log'; | ||
export { COLOR } from './lib/utils/color'; | ||
export { COLOR } from './utils/color'; | ||
import { default as Log } from './lib/log'; | ||
@@ -16,3 +16,7 @@ export default new Log({ | ||
}); | ||
export { enableDOMLogging as _enableDOMLogging } from './lib/utils/log-to-dom'; | ||
export { addColor } from './utils/color'; | ||
export { leftPad, rightPad } from './utils/formatters'; | ||
export { autobind } from './utils/autobind'; | ||
export { default as LocalStorage } from './utils/local-storage'; | ||
export { enableDOMLogging as _enableDOMLogging } from './utils/log-to-dom'; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
import { global } from './lib/utils/globals'; | ||
import { global } from './utils/globals'; | ||
global.probe = {}; | ||
//# sourceMappingURL=init.js.map |
@@ -6,10 +6,9 @@ import _typeof from "@babel/runtime/helpers/esm/typeof"; | ||
import _createClass from "@babel/runtime/helpers/esm/createClass"; | ||
import { VERSION } from './utils/globals'; | ||
import LocalStorage from './utils/local-storage'; | ||
import { getTimestamp } from './utils/timestamp'; | ||
import { formatImage, formatTime, leftPad } from './utils/formatters'; | ||
import { addColor } from './utils/color'; | ||
import { autobind } from './utils/autobind'; | ||
import { isBrowser } from './utils/globals'; | ||
import _assert from '../lib/utils/assert'; | ||
import { VERSION, isBrowser } from '../utils/globals'; | ||
import LocalStorage from '../utils/local-storage'; | ||
import { getTimestamp } from '../utils/timestamp'; | ||
import { formatImage, formatTime, leftPad } from '../utils/formatters'; | ||
import { addColor } from '../utils/color'; | ||
import { autobind } from '../utils/autobind'; | ||
import _assert from '../utils/assert'; | ||
var originalConsole = { | ||
@@ -16,0 +15,0 @@ debug: isBrowser ? console.debug || console.log : console.log, |
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck"; | ||
import _createClass from "@babel/runtime/helpers/esm/createClass"; | ||
import { getTimestamp } from './utils/timestamp'; | ||
import { formatTime } from './utils/formatters'; | ||
import { getTimestamp } from '../utils/timestamp'; | ||
import { formatTime } from '../utils/formatters'; | ||
@@ -6,0 +6,0 @@ var Stats = function () { |
{ | ||
"name": "probe.gl", | ||
"description": "JavaScript Console Instrumentation and Benchmarking for Browser and Node", | ||
"description": "JavaScript console instrumentation for browser and Node", | ||
"license": "MIT", | ||
"version": "2.2.0-beta.2", | ||
"version": "3.0.0-alpha.1", | ||
"keywords": [ | ||
@@ -22,6 +22,3 @@ "javascript", | ||
"src", | ||
"bench.js", | ||
"env.js", | ||
"test.js", | ||
"test-utils.js" | ||
"env.js" | ||
], | ||
@@ -34,81 +31,7 @@ "sideEffects": [ | ||
"browser": { | ||
"asciify-image": false, | ||
"child_process": false, | ||
"fs": false, | ||
"puppeteer": false, | ||
"console": false, | ||
"net": false, | ||
"readline": false, | ||
"tls": false | ||
"asciify-image": false | ||
}, | ||
"scripts": { | ||
"clean": "rm -fr dist dist-es6 && mkdir -p dist/es5 dist/esm dist/es6", | ||
"build": "npm run clean && npm run build-es6 && npm run build-esm && npm run build-es5 && npm run build-size", | ||
"build-es6": "BABEL_ENV=es6 babel src --config-file ./babel.config.js --out-dir dist/es6 --source-maps --ignore 'node_modules/'", | ||
"build-esm": "BABEL_ENV=esm babel src --config-file ./babel.config.js --out-dir dist/esm --source-maps --ignore 'node_modules/'", | ||
"build-es5": "BABEL_ENV=es5 babel src --config-file ./babel.config.js --out-dir dist/es5 --source-maps --ignore 'node_modules/'", | ||
"build-size": "(echo \"dist size\" ; find dist/es6/lib -name '*.js' | xargs cat | wc -c) && (echo \"dist/es5 size\" ; find dist/es5/lib -name '*.js' | xargs cat | wc -c) && (echo \"source size\" ; find src/lib -name '*.js' | xargs cat | wc -c)", | ||
"cover": "NODE_ENV=test nyc --reporter html --reporter cobertura --reporter=lcov npm run test-cover", | ||
"lint": "eslint src test examples && npm run lint-yarn", | ||
"lint-yarn": "!(grep -q unpm.u yarn.lock) || (echo 'Please rebuild yarn file using public npmrc' && false)", | ||
"prettier": "prettier --write \"{src,test}/**/*.js\" --loglevel warn", | ||
"publish-prod": "npm run test && npm run test-dist && npm publish", | ||
"publish-beta": "npm run test && npm run test-dist && npm publish --tag beta", | ||
"test": "npm run lint && node test/start.js test && node test/start.js log && node test/start.js browser-headless", | ||
"test-fast": "node test/start.js test | tap-diff", | ||
"test-dist": "node test/start.js dist", | ||
"test-cover": "NODE_ENV=test tape -r babel-register test/node.js && nyc report", | ||
"test-size": "npm run build && webpack --config test/webpack.config.js --env.import-nothing", | ||
"bench": "node test/start.js bench", | ||
"test-browser": "node test/start.js browser", | ||
"bench-browser": "webpack-dev-server --config test/webpack.config.js --env.bench --progress --hot --open" | ||
}, | ||
"dependencies": { | ||
"@babel/runtime": "^7.0.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.0.0", | ||
"@babel/core": "^7.0.0", | ||
"@babel/plugin-transform-runtime": "^7.0.0", | ||
"@babel/preset-env": "^7.0.0", | ||
"@babel/register": "^7.0.0", | ||
"babel-eslint": "^9.0.0", | ||
"babel-plugin-istanbul": "^5.0.0", | ||
"babel-plugin-transform-builtin-extend": "^1.1.2", | ||
"babel-plugin-version-inline": "^1.0.0", | ||
"babel-loader": "^8.0.0", | ||
"coveralls": "^2.13.0", | ||
"eslint": "^4.13.0", | ||
"eslint-config-uber-es2015": "^3.0.0", | ||
"eslint-config-prettier": "^4.0.0", | ||
"eslint-plugin-prettier": "^3.0.0", | ||
"module-alias": "^2.0.0", | ||
"nyc": "^10.2.0", | ||
"pixelmatch": "^4.0.2", | ||
"pre-commit": "^1.2.2", | ||
"prettier": "^1.16.0", | ||
"puppeteer": "^1.1.1", | ||
"reify": "^0.4.4", | ||
"source-map-loader": "^0.2.1", | ||
"tap-browser-color": "^0.1.2", | ||
"tap-diff": "^0.1.1", | ||
"tape": "^4.5.1", | ||
"tape-catch": "^1.0.4", | ||
"uglifyjs-webpack-plugin": "^1.2.4", | ||
"url-loader": "^1.0.1", | ||
"webpack": "^2.4.0", | ||
"webpack-bundle-analyzer": "^2.11.1", | ||
"webpack-dev-server": "^2.4.0" | ||
}, | ||
"nyc": { | ||
"sourceMap": false, | ||
"instrument": false, | ||
"include": [ | ||
"src/**/*.js" | ||
], | ||
"exclude": [ | ||
"test/**/*.js", | ||
"src/layers/deprecated" | ||
] | ||
} | ||
} |
@@ -6,4 +6,1 @@ // ENVIRONMENT | ||
export {default as isElectron} from './is-electron'; | ||
// ENVIRONMENT'S ASSERT IS 5K PROVIDE OUR OWN | ||
export {assert} from './assert'; |
import './init'; | ||
export {VERSION} from './lib/utils/globals'; | ||
export {VERSION} from './utils/globals'; | ||
@@ -12,3 +12,3 @@ // ENVIRONMENT | ||
// ENVIRONMENT'S ASSERT IS 5-15KB, SO WE PROVIDE OUR OWN | ||
export {default as assert} from './env/assert'; | ||
export {default as assert} from './utils/assert'; | ||
@@ -20,3 +20,3 @@ // STATS (PERFORMANCE PROFILING) | ||
export {default as Log} from './lib/log'; | ||
export {COLOR} from './lib/utils/color'; | ||
export {COLOR} from './utils/color'; | ||
@@ -27,4 +27,10 @@ // DEFAULT EXPORT IS A LOG INSTANCE | ||
// UTILITIES | ||
export {addColor} from './utils/color'; | ||
export {leftPad, rightPad} from './utils/formatters'; | ||
export {autobind} from './utils/autobind'; | ||
export {default as LocalStorage} from './utils/local-storage'; | ||
// EXPERIMENTAL EXPORTS | ||
// DOM LOGGING | ||
export {enableDOMLogging as _enableDOMLogging} from './lib/utils/log-to-dom'; | ||
export {enableDOMLogging as _enableDOMLogging} from './utils/log-to-dom'; |
@@ -1,2 +0,2 @@ | ||
import {global} from './lib/utils/globals'; | ||
import {global} from './utils/globals'; | ||
global.probe = {}; |
@@ -23,10 +23,9 @@ // Copyright (c) 2017 Uber Technologies, Inc. | ||
/* global console */ | ||
import {VERSION} from './utils/globals'; | ||
import LocalStorage from './utils/local-storage'; | ||
import {getTimestamp} from './utils/timestamp'; | ||
import {formatImage, formatTime, leftPad} from './utils/formatters'; | ||
import {addColor} from './utils/color'; | ||
import {autobind} from './utils/autobind'; | ||
import {isBrowser} from './utils/globals'; | ||
import assert from '../lib/utils/assert'; | ||
import {VERSION, isBrowser} from '../utils/globals'; | ||
import LocalStorage from '../utils/local-storage'; | ||
import {getTimestamp} from '../utils/timestamp'; | ||
import {formatImage, formatTime, leftPad} from '../utils/formatters'; | ||
import {addColor} from '../utils/color'; | ||
import {autobind} from '../utils/autobind'; | ||
import assert from '../utils/assert'; | ||
@@ -33,0 +32,0 @@ /* eslint-disable no-console */ |
@@ -1,3 +0,3 @@ | ||
import {getTimestamp} from './utils/timestamp'; | ||
import {formatTime} from './utils/formatters'; | ||
import {getTimestamp} from '../utils/timestamp'; | ||
import {formatTime} from '../utils/formatters'; | ||
@@ -4,0 +4,0 @@ // const MAX_FPS = 70; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
0
0
386369
130
4691
1
0