forked from enviPath/enviPy
Current Dev State
This commit is contained in:
23
static/js/ketcher2/node_modules/nyc/node_modules/debug-log/index.js
generated
vendored
Normal file
23
static/js/ketcher2/node_modules/nyc/node_modules/debug-log/index.js
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
'use strict';
|
||||
// https://github.com/joyent/node/blob/fbfe562d71ae8d8f8bbf627808c755e513e4e905/lib/util.js#L96-L114
|
||||
var util = require('util');
|
||||
var debugEnv = process.env.NODE_DEBUG || '';
|
||||
var cache = {};
|
||||
|
||||
module.exports = function (set) {
|
||||
set = set.toUpperCase();
|
||||
|
||||
if (!cache[set]) {
|
||||
if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnv)) {
|
||||
var pid = process.pid;
|
||||
|
||||
cache[set] = function () {
|
||||
console.error('%s %d: %s', set, pid, util.format.apply(util, arguments));
|
||||
};
|
||||
} else {
|
||||
cache[set] = function () {};
|
||||
}
|
||||
}
|
||||
|
||||
return cache[set];
|
||||
};
|
||||
21
static/js/ketcher2/node_modules/nyc/node_modules/debug-log/license
generated
vendored
Normal file
21
static/js/ketcher2/node_modules/nyc/node_modules/debug-log/license
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
|
||||
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.
|
||||
106
static/js/ketcher2/node_modules/nyc/node_modules/debug-log/package.json
generated
vendored
Normal file
106
static/js/ketcher2/node_modules/nyc/node_modules/debug-log/package.json
generated
vendored
Normal file
@ -0,0 +1,106 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "debug-log@^1.0.1",
|
||||
"scope": null,
|
||||
"escapedName": "debug-log",
|
||||
"name": "debug-log",
|
||||
"rawSpec": "^1.0.1",
|
||||
"spec": ">=1.0.1 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"/Users/benjamincoe/bcoe/nyc"
|
||||
]
|
||||
],
|
||||
"_from": "debug-log@>=1.0.1 <2.0.0",
|
||||
"_id": "debug-log@1.0.1",
|
||||
"_inBundle": true,
|
||||
"_inCache": true,
|
||||
"_location": "/nyc/debug-log",
|
||||
"_nodeVersion": "4.5.0",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "packages-12-west.internal.npmjs.com",
|
||||
"tmp": "tmp/debug-log-1.0.1.tgz_1475222911607_0.4391861706972122"
|
||||
},
|
||||
"_npmUser": {
|
||||
"name": "sindresorhus",
|
||||
"email": "sindresorhus@gmail.com"
|
||||
},
|
||||
"_npmVersion": "2.15.9",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "debug-log@^1.0.1",
|
||||
"scope": null,
|
||||
"escapedName": "debug-log",
|
||||
"name": "debug-log",
|
||||
"rawSpec": "^1.0.1",
|
||||
"spec": ">=1.0.1 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/nyc"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/debug-log/-/debug-log-1.0.1.tgz",
|
||||
"_shasum": "2307632d4c04382b8df8a32f70b895046d52745f",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "debug-log@^1.0.1",
|
||||
"_where": "/Users/benjamincoe/bcoe/nyc",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/debug-log/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "Node.js 0.12 util.debuglog() ponyfill",
|
||||
"devDependencies": {},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "2307632d4c04382b8df8a32f70b895046d52745f",
|
||||
"tarball": "https://registry.npmjs.org/debug-log/-/debug-log-1.0.1.tgz"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"gitHead": "7e7fcd7947b80590e39d9ff0167771536d4b355f",
|
||||
"homepage": "https://github.com/sindresorhus/debug-log#readme",
|
||||
"keywords": [
|
||||
"debug",
|
||||
"log",
|
||||
"logging",
|
||||
"debuglog",
|
||||
"built-in",
|
||||
"util",
|
||||
"utils",
|
||||
"core",
|
||||
"console",
|
||||
"env",
|
||||
"environment",
|
||||
"ponyfill",
|
||||
"polyfill",
|
||||
"shim"
|
||||
],
|
||||
"license": "MIT",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "sindresorhus",
|
||||
"email": "sindresorhus@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "debug-log",
|
||||
"optionalDependencies": {},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/debug-log.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node test.js"
|
||||
},
|
||||
"version": "1.0.1"
|
||||
}
|
||||
40
static/js/ketcher2/node_modules/nyc/node_modules/debug-log/readme.md
generated
vendored
Normal file
40
static/js/ketcher2/node_modules/nyc/node_modules/debug-log/readme.md
generated
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
# debug-log [](https://travis-ci.org/sindresorhus/debug-log)
|
||||
|
||||
> Node.js 0.12 [`util.debuglog()`](http://nodejs.org/api/util.html#util_util_debuglog_section) [ponyfill](https://ponyfill.com)
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save debug-log
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
// example.js
|
||||
var debugLog = require('debug-log')('foo');
|
||||
|
||||
debugLog('unicorns & rainbows');
|
||||
```
|
||||
|
||||
```
|
||||
$ node example.js
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
$ NODE_DEBUG=foo node example.js
|
||||
FOO 3245: unicorns & rainbows
|
||||
```
|
||||
|
||||
|
||||
## API
|
||||
|
||||
See the [`util.debuglog()` docs](http://nodejs.org/api/util.html#util_util_debuglog_section).
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
||||
Reference in New Issue
Block a user