Added custom log name

This commit is contained in:
2019-11-22 09:43:37 +00:00
parent c4b856da62
commit 646700c73f
699 changed files with 5186 additions and 4259 deletions

2
node_modules/after/package.json generated vendored
View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/after/-/after-0.8.2.tgz",
"_shasum": "fedb394f9f0e02aa9768e702bda23b505fae7e1f",
"_spec": "after@0.8.2",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/engine.io-parser",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/engine.io-parser",
"author": {
"name": "Raynos",
"email": "raynos2@gmail.com"

2
node_modules/ajv/package.json generated vendored
View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz",
"_shasum": "d3cea04d6b017b2894ad69040fec8b623eb4bd52",
"_spec": "ajv@^6.5.5",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/har-validator",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/har-validator",
"author": {
"name": "Evgeny Poberezkin"
},

14
node_modules/ansi-regex/index.js generated vendored
View File

@ -1,14 +1,4 @@
'use strict';
module.exports = options => {
options = Object.assign({
onlyFirst: false
}, options);
const pattern = [
'[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
'(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
].join('|');
return new RegExp(pattern, options.onlyFirst ? undefined : 'g');
module.exports = function () {
return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g;
};

20
node_modules/ansi-regex/license generated vendored
View File

@ -1,9 +1,21 @@
MIT License
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:
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 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.
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.

53
node_modules/ansi-regex/package.json generated vendored
View File

@ -1,27 +1,27 @@
{
"_from": "ansi-regex@^4.1.0",
"_id": "ansi-regex@4.1.0",
"_from": "ansi-regex@^2.0.0",
"_id": "ansi-regex@2.1.1",
"_inBundle": false,
"_integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==",
"_integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
"_location": "/ansi-regex",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "ansi-regex@^4.1.0",
"raw": "ansi-regex@^2.0.0",
"name": "ansi-regex",
"escapedName": "ansi-regex",
"rawSpec": "^4.1.0",
"rawSpec": "^2.0.0",
"saveSpec": null,
"fetchSpec": "^4.1.0"
"fetchSpec": "^2.0.0"
},
"_requiredBy": [
"/strip-ansi"
],
"_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz",
"_shasum": "8b9f8f08cf1acb843756a839ca8c7e3168c51997",
"_spec": "ansi-regex@^4.1.0",
"_where": "/home/sergiu/linx-simulator2/node_modules/strip-ansi",
"_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
"_shasum": "c3b33ab5ee360d86e0e628f0468ae7ef27d654df",
"_spec": "ansi-regex@^2.0.0",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/strip-ansi",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
@ -34,11 +34,11 @@
"deprecated": false,
"description": "Regular expression for matching ANSI escape codes",
"devDependencies": {
"ava": "^0.25.0",
"xo": "^0.23.0"
"ava": "0.17.0",
"xo": "0.16.0"
},
"engines": {
"node": ">=6"
"node": ">=0.10.0"
},
"files": [
"index.js"
@ -72,14 +72,37 @@
"pattern"
],
"license": "MIT",
"maintainers": [
{
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
{
"name": "Joshua Appelman",
"email": "jappelman@xebia.com",
"url": "jbnicolai.com"
},
{
"name": "JD Ballard",
"email": "i.am.qix@gmail.com",
"url": "github.com/qix-"
}
],
"name": "ansi-regex",
"repository": {
"type": "git",
"url": "git+https://github.com/chalk/ansi-regex.git"
},
"scripts": {
"test": "xo && ava",
"test": "xo && ava --verbose",
"view-supported": "node fixtures/view-codes.js"
},
"version": "4.1.0"
"version": "2.1.1",
"xo": {
"rules": {
"guard-for-in": 0,
"no-loop-func": 0
}
}
}

62
node_modules/ansi-regex/readme.md generated vendored
View File

@ -1,26 +1,12 @@
# ansi-regex [![Build Status](https://travis-ci.org/chalk/ansi-regex.svg?branch=master)](https://travis-ci.org/chalk/ansi-regex)
> Regular expression for matching [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code)
---
<div align="center">
<b>
<a href="https://tidelift.com/subscription/pkg/npm-ansi-regex?utm_source=npm-ansi-regex&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
</b>
<br>
<sub>
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
</sub>
</div>
---
> Regular expression for matching [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)
## Install
```
$ npm install ansi-regex
$ npm install --save ansi-regex
```
@ -29,59 +15,25 @@ $ npm install ansi-regex
```js
const ansiRegex = require('ansi-regex');
ansiRegex().test('\u001B[4mcake\u001B[0m');
ansiRegex().test('\u001b[4mcake\u001b[0m');
//=> true
ansiRegex().test('cake');
//=> false
'\u001B[4mcake\u001B[0m'.match(ansiRegex());
//=> ['\u001B[4m', '\u001B[0m']
'\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true}));
//=> ['\u001B[4m']
'\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex());
//=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007']
'\u001b[4mcake\u001b[0m'.match(ansiRegex());
//=> ['\u001b[4m', '\u001b[0m']
```
## API
### ansiRegex([options])
Returns a regex for matching ANSI escape codes.
#### options
##### onlyFirst
Type: `boolean`<br>
Default: `false` *(Matches any ANSI escape codes in a string)*
Match only the first ANSI escape.
## FAQ
### Why do you test for codes not in the ECMA 48 standard?
Some of the codes we run as a test are codes that we acquired finding various lists of non-standard or manufacturer specific codes. We test for both standard and non-standard codes, as most of them follow the same or similar format and can be safely matched in strings without the risk of removing actual string content. There are a few non-standard control codes that do not follow the traditional format (i.e. they end in numbers) thus forcing us to exclude them from the test because we cannot reliably match them.
Some of the codes we run as a test are codes that we acquired finding various lists of non-standard or manufacturer specific codes. If I recall correctly, we test for both standard and non-standard codes, as most of them follow the same or similar format and can be safely matched in strings without the risk of removing actual string content. There are a few non-standard control codes that do not follow the traditional format (i.e. they end in numbers) thus forcing us to exclude them from the test because we cannot reliably match them.
On the historical side, those ECMA standards were established in the early 90's whereas the VT100, for example, was designed in the mid/late 70's. At that point in time, control codes were still pretty ungoverned and engineers used them for a multitude of things, namely to activate hardware ports that may have been proprietary. Somewhere else you see a similar 'anarchy' of codes is in the x86 architecture for processors; there are a ton of "interrupts" that can mean different things on certain brands of processors, most of which have been phased out.
## Security
To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
## Maintainers
- [Sindre Sorhus](https://github.com/sindresorhus)
- [Josh Junon](https://github.com/qix-)
## License
MIT
MIT © [Sindre Sorhus](http://sindresorhus.com)

View File

@ -16,12 +16,13 @@
"fetchSpec": "^3.2.1"
},
"_requiredBy": [
"/chalk"
"/chalk",
"/yargs/wrap-ansi"
],
"_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
"_shasum": "41fbb20243e50b12be0f04b8dedbf07520ce841d",
"_spec": "ansi-styles@^3.2.1",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/chalk",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/chalk",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz",
"_shasum": "3bbc4275dd584cc1b10809b89d4e8b63a69e7675",
"_spec": "arraybuffer.slice@~0.0.7",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/engine.io-parser",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/engine.io-parser",
"bugs": {
"url": "https://github.com/rase-/arraybuffer.slice/issues"
},

2
node_modules/asap/package.json generated vendored
View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz",
"_shasum": "e50347611d7e690943208bbdafebcbc2fb866d46",
"_spec": "asap@~2.0.3",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/promise",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/promise",
"browser": {
"./asap": "./browser-asap.js",
"./asap.js": "./browser-asap.js",

2
node_modules/ascli/package.json generated vendored
View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/ascli/-/ascli-1.0.1.tgz",
"_shasum": "bcfa5974a62f18e81cabaeb49732ab4a88f906bc",
"_spec": "ascli@~1",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/protobufjs",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/protobufjs",
"author": {
"name": "Daniel Wirtz"
},

2
node_modules/asn1/package.json generated vendored
View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz",
"_shasum": "8d2475dfab553bb33e77b54e59e880bb8ce23136",
"_spec": "asn1@~0.2.3",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/sshpk",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/sshpk",
"author": {
"name": "Joyent",
"url": "joyent.com"

View File

@ -26,7 +26,7 @@
"_resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
"_shasum": "f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525",
"_spec": "assert-plus@^1.0.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/http-signature",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/http-signature",
"author": {
"name": "Mark Cavage",
"email": "mcavage@gmail.com"

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz",
"_shasum": "dd379e94f0db8310b08291f9d64c3209766617fd",
"_spec": "async-limiter@~1.0.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/ws",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/ws",
"author": {
"name": "Samuel Reed"
},

2
node_modules/async/package.json generated vendored
View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz",
"_shasum": "d72625e2344a3656e3a3ad4fa749fa83299d82ff",
"_spec": "async@^2.6.0",
"_where": "/home/sergiu/linx-audio-simulator",
"_where": "/home/safemobile/LINX/linx-simulator2",
"author": {
"name": "Caolan McMahon"
},

2
node_modules/asynckit/package.json generated vendored
View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
"_shasum": "c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79",
"_spec": "asynckit@^0.4.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/form-data",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/form-data",
"author": {
"name": "Alex Indigo",
"email": "iam@alexindigo.com"

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",
"_shasum": "b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8",
"_spec": "aws-sign2@~0.7.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/request",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/request",
"author": {
"name": "Mikeal Rogers",
"email": "mikeal.rogers@gmail.com",

2
node_modules/aws4/package.json generated vendored
View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz",
"_shasum": "f0e003d9ca9e7f59c7a508945d7b2ef9a04a542f",
"_spec": "aws4@^1.8.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/request",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/request",
"author": {
"name": "Michael Hart",
"email": "michael.hart.au@gmail.com",

2
node_modules/backo2/package.json generated vendored
View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/backo2/-/backo2-1.0.2.tgz",
"_shasum": "31ab1ac8b129363463e35b3ebb69f4dfcfba7947",
"_spec": "backo2@1.0.2",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/socket.io-client",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/socket.io-client",
"bugs": {
"url": "https://github.com/mokesmokes/backo/issues"
},

2
node_modules/backoff/package.json generated vendored
View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/backoff/-/backoff-2.5.0.tgz",
"_shasum": "f616eda9d3e4b66b8ca7fca79f695722c5f8e26f",
"_spec": "backoff@~2.5.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/reconnect-core",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/reconnect-core",
"author": {
"name": "Mathieu Turcotte",
"email": "turcotte.mat@gmail.com"

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
"_shasum": "89b4d199ab2bee49de164ea02b89ce462d71b767",
"_spec": "balanced-match@^1.0.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/brace-expansion",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/brace-expansion",
"author": {
"name": "Julian Gruber",
"email": "mail@juliangruber.com",

View File

@ -22,7 +22,7 @@
"_resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.5.tgz",
"_shasum": "73926771923b5a19747ad666aa5cd4bf9c6e9ce8",
"_spec": "base64-arraybuffer@0.1.5",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/socket.io-client",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/socket.io-client",
"author": {
"name": "Niklas von Hertzen",
"email": "niklasvh@gmail.com",

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
"_shasum": "a4301d389b6a43f9b67ff3ca11a3f6637e360e9e",
"_spec": "bcrypt-pbkdf@^1.0.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/sshpk",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/sshpk",
"bugs": {
"url": "https://github.com/joyent/node-bcrypt-pbkdf/issues"
},

View File

@ -22,7 +22,7 @@
"_resolved": "https://registry.npmjs.org/better-assert/-/better-assert-1.0.2.tgz",
"_shasum": "40866b9e1b9e0b55b481894311e68faffaebc522",
"_spec": "better-assert@~1.0.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/parseqs",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/parseqs",
"author": {
"name": "TJ Holowaychuk",
"email": "tj@vision-media.ca"

2
node_modules/bindings/package.json generated vendored
View File

@ -23,7 +23,7 @@
"_resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz",
"_shasum": "10353c9e945334bc0511a6d90b38fbc7c9c504df",
"_spec": "bindings@^1.2.1",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/lame",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/lame",
"author": {
"name": "Nathan Rajlich",
"email": "nathan@tootallnate.net",

2
node_modules/blob/package.json generated vendored
View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/blob/-/blob-0.0.5.tgz",
"_shasum": "d680eeef25f8cd91ad533f5b01eed48e64caf683",
"_spec": "blob@0.0.5",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/engine.io-parser",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/engine.io-parser",
"bugs": {
"url": "https://github.com/webmodules/blob/issues"
},

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
"_shasum": "3c7fcbf529d87226f3d2f52b966ff5271eb441dd",
"_spec": "brace-expansion@^1.1.7",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/minimatch",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/minimatch",
"author": {
"name": "Julian Gruber",
"email": "mail@juliangruber.com",

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz",
"_shasum": "bd7dc26ae2972d0eda253be061dba992349c19f0",
"_spec": "buffer-alloc-unsafe@^1.1.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/buffer-alloc",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/buffer-alloc",
"bugs": {
"url": "https://github.com/LinusU/buffer-alloc-unsafe/issues"
},

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz",
"_shasum": "890dd90d923a873e08e10e5fd51a57e5b7cce0ec",
"_spec": "buffer-alloc@^1.1.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/speaker",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/speaker",
"bugs": {
"url": "https://github.com/LinusU/buffer-alloc/issues"
},

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz",
"_shasum": "f8f78b76789888ef39f205cd637f68e702122b2c",
"_spec": "buffer-fill@^1.0.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/buffer-alloc",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/buffer-alloc",
"bugs": {
"url": "https://github.com/LinusU/buffer-fill/issues"
},

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/bytebuffer/-/bytebuffer-5.0.1.tgz",
"_shasum": "582eea4b1a873b6d020a48d58df85f0bba6cfddd",
"_spec": "bytebuffer@~5",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/protobufjs",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/protobufjs",
"author": {
"name": "Daniel Wirtz",
"email": "dcode@dcode.io"

2
node_modules/callsite/package.json generated vendored
View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz",
"_shasum": "280398e5d664bd74038b6f0905153e6e8af1bc20",
"_spec": "callsite@1.0.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/better-assert",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/better-assert",
"author": {
"name": "TJ Holowaychuk",
"email": "tj@vision-media.ca"

88
node_modules/camelcase/index.js generated vendored
View File

@ -1,76 +1,56 @@
'use strict';
const preserveCamelCase = string => {
let isLastCharLower = false;
let isLastCharUpper = false;
let isLastLastCharUpper = false;
function preserveCamelCase(str) {
var isLastCharLower = false;
for (let i = 0; i < string.length; i++) {
const character = string[i];
for (var i = 0; i < str.length; i++) {
var c = str.charAt(i);
if (isLastCharLower && /[a-zA-Z]/.test(character) && character.toUpperCase() === character) {
string = string.slice(0, i) + '-' + string.slice(i);
if (isLastCharLower && (/[a-zA-Z]/).test(c) && c.toUpperCase() === c) {
str = str.substr(0, i) + '-' + str.substr(i);
isLastCharLower = false;
isLastLastCharUpper = isLastCharUpper;
isLastCharUpper = true;
i++;
} else if (isLastCharUpper && isLastLastCharUpper && /[a-zA-Z]/.test(character) && character.toLowerCase() === character) {
string = string.slice(0, i - 1) + '-' + string.slice(i - 1);
isLastLastCharUpper = isLastCharUpper;
isLastCharUpper = false;
isLastCharLower = true;
} else {
isLastCharLower = character.toLowerCase() === character && character.toUpperCase() !== character;
isLastLastCharUpper = isLastCharUpper;
isLastCharUpper = character.toUpperCase() === character && character.toLowerCase() !== character;
isLastCharLower = (c.toLowerCase() === c);
}
}
return string;
};
return str;
}
const camelCase = (input, options) => {
if (!(typeof input === 'string' || Array.isArray(input))) {
throw new TypeError('Expected the input to be `string | string[]`');
}
module.exports = function () {
var str = [].map.call(arguments, function (str) {
return str.trim();
}).filter(function (str) {
return str.length;
}).join('-');
options = Object.assign({
pascalCase: false
}, options);
const postProcess = x => options.pascalCase ? x.charAt(0).toUpperCase() + x.slice(1) : x;
if (Array.isArray(input)) {
input = input.map(x => x.trim())
.filter(x => x.length)
.join('-');
} else {
input = input.trim();
}
if (input.length === 0) {
if (!str.length) {
return '';
}
if (input.length === 1) {
return options.pascalCase ? input.toUpperCase() : input.toLowerCase();
if (str.length === 1) {
return str;
}
const hasUpperCase = input !== input.toLowerCase();
if (!(/[_.\- ]+/).test(str)) {
if (str === str.toUpperCase()) {
return str.toLowerCase();
}
if (hasUpperCase) {
input = preserveCamelCase(input);
if (str[0] !== str[0].toLowerCase()) {
return str[0].toLowerCase() + str.slice(1);
}
return str;
}
input = input
.replace(/^[_.\- ]+/, '')
.toLowerCase()
.replace(/[_.\- ]+(\w|$)/g, (_, p1) => p1.toUpperCase())
.replace(/\d+(\w|$)/g, m => m.toUpperCase());
str = preserveCamelCase(str);
return postProcess(input);
return str
.replace(/^[_.\- ]+/, '')
.toLowerCase()
.replace(/[_.\- ]+(\w|$)/g, function (m, p1) {
return p1.toUpperCase();
});
};
module.exports = camelCase;
// TODO: Remove this for the next major release
module.exports.default = camelCase;

20
node_modules/camelcase/license generated vendored
View File

@ -1,9 +1,21 @@
MIT License
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:
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 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.
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.

44
node_modules/camelcase/package.json generated vendored
View File

@ -1,49 +1,47 @@
{
"_from": "camelcase@^5.0.0",
"_id": "camelcase@5.3.1",
"_from": "camelcase@^2.0.1",
"_id": "camelcase@2.1.1",
"_inBundle": false,
"_integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
"_integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=",
"_location": "/camelcase",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "camelcase@^5.0.0",
"raw": "camelcase@^2.0.1",
"name": "camelcase",
"escapedName": "camelcase",
"rawSpec": "^5.0.0",
"rawSpec": "^2.0.1",
"saveSpec": null,
"fetchSpec": "^5.0.0"
"fetchSpec": "^2.0.1"
},
"_requiredBy": [
"/yargs-parser"
"/protobufjs/yargs"
],
"_resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
"_shasum": "e3c9b31569e106811df242f715725a1f4c494320",
"_spec": "camelcase@^5.0.0",
"_where": "/home/sergiu/linx-simulator2/node_modules/yargs-parser",
"_resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz",
"_shasum": "7c1d16d679a1bbe59ca02cacecfb011e201f5a1f",
"_spec": "camelcase@^2.0.1",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/protobufjs/node_modules/yargs",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
"url": "http://sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/camelcase/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar``fooBar`",
"description": "Convert a dash/dot/underscore/space separated string to camelCase: foo-bar → fooBar",
"devDependencies": {
"ava": "^1.4.1",
"tsd": "^0.7.1",
"xo": "^0.24.0"
"ava": "*",
"xo": "*"
},
"engines": {
"node": ">=6"
"node": ">=0.10.0"
},
"files": [
"index.js",
"index.d.ts"
"index.js"
],
"homepage": "https://github.com/sindresorhus/camelcase#readme",
"keywords": [
@ -58,9 +56,7 @@
"separator",
"string",
"text",
"convert",
"pascalcase",
"pascal-case"
"convert"
],
"license": "MIT",
"name": "camelcase",
@ -69,7 +65,7 @@
"url": "git+https://github.com/sindresorhus/camelcase.git"
},
"scripts": {
"test": "xo && ava && tsd"
"test": "xo && ava"
},
"version": "5.3.1"
"version": "2.1.1"
}

60
node_modules/camelcase/readme.md generated vendored
View File

@ -1,25 +1,12 @@
# camelcase [![Build Status](https://travis-ci.org/sindresorhus/camelcase.svg?branch=master)](https://travis-ci.org/sindresorhus/camelcase)
> Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`
> Convert a dash/dot/underscore/space separated string to camelCase: `foo-bar` → `fooBar`
---
<div align="center">
<b>
<a href="https://tidelift.com/subscription/pkg/npm-camelcase?utm_source=npm-camelcase&utm_medium=referral&utm_campaign=readme">Get professional support for 'camelcase' with a Tidelift subscription</a>
</b>
<br>
<sub>
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
</sub>
</div>
---
## Install
```
$ npm install camelcase
$ npm install --save camelcase
```
@ -37,10 +24,10 @@ camelCase('foo_bar');
camelCase('Foo-Bar');
//=> 'fooBar'
camelCase('Foo-Bar', {pascalCase: true});
//=> 'FooBar'
camelCase('--foo.bar');
//=> 'fooBar'
camelCase('--foo.bar', {pascalCase: false});
camelCase('__foo__bar__');
//=> 'fooBar'
camelCase('foo bar');
@ -51,49 +38,20 @@ console.log(process.argv[3]);
camelCase(process.argv[3]);
//=> 'fooBar'
camelCase(['foo', 'bar']);
camelCase('foo', 'bar');
//=> 'fooBar'
camelCase(['__foo__', '--bar'], {pascalCase: true});
//=> 'FooBar'
camelCase('__foo__', '--bar');
//=> 'fooBar'
```
## API
### camelCase(input, [options])
#### input
Type: `string` `string[]`
String to convert to camel case.
#### options
Type: `Object`
##### pascalCase
Type: `boolean`<br>
Default: `false`
Uppercase the first character: `foo-bar``FooBar`
## Security
To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
## Related
- [decamelize](https://github.com/sindresorhus/decamelize) - The inverse of this module
- [uppercamelcase](https://github.com/SamVerschueren/uppercamelcase) - Like this module, but to PascalCase instead of camelCase
- [titleize](https://github.com/sindresorhus/titleize) - Capitalize every word in string
- [humanize-string](https://github.com/sindresorhus/humanize-string) - Convert a camelized/dasherized/underscored string into a humanized one
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)
MIT © [Sindre Sorhus](http://sindresorhus.com)

2
node_modules/caseless/package.json generated vendored
View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
"_shasum": "1b681c21ff84033c826543090689420d187151dc",
"_spec": "caseless@~0.12.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/request",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/request",
"author": {
"name": "Mikeal Rogers",
"email": "mikeal.rogers@gmail.com"

15
node_modules/chalk/package.json generated vendored
View File

@ -1,28 +1,27 @@
{
"_from": "chalk",
"_from": "chalk@^2.4.2",
"_id": "chalk@2.4.2",
"_inBundle": false,
"_integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
"_location": "/chalk",
"_phantomChildren": {},
"_requested": {
"type": "tag",
"type": "range",
"registry": true,
"raw": "chalk",
"raw": "chalk@^2.4.2",
"name": "chalk",
"escapedName": "chalk",
"rawSpec": "",
"rawSpec": "^2.4.2",
"saveSpec": null,
"fetchSpec": "latest"
"fetchSpec": "^2.4.2"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
"_shasum": "cd42541677a54333cf541a49108c1432b44c9424",
"_spec": "chalk",
"_where": "/home/sergiu/linx-audio-simulator",
"_spec": "chalk@^2.4.2",
"_where": "/home/safemobile/LINX/linx-simulator2",
"bugs": {
"url": "https://github.com/chalk/chalk/issues"
},

50
node_modules/cliui/CHANGELOG.md generated vendored
View File

@ -2,56 +2,6 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
# [5.0.0](https://github.com/yargs/cliui/compare/v4.1.0...v5.0.0) (2019-04-10)
### Bug Fixes
* Update wrap-ansi to fix compatibility with latest versions of chalk. ([#60](https://github.com/yargs/cliui/issues/60)) ([7bf79ae](https://github.com/yargs/cliui/commit/7bf79ae))
### BREAKING CHANGES
* Drop support for node < 6.
<a name="4.1.0"></a>
# [4.1.0](https://github.com/yargs/cliui/compare/v4.0.0...v4.1.0) (2018-04-23)
### Features
* add resetOutput method ([#57](https://github.com/yargs/cliui/issues/57)) ([7246902](https://github.com/yargs/cliui/commit/7246902))
<a name="4.0.0"></a>
# [4.0.0](https://github.com/yargs/cliui/compare/v3.2.0...v4.0.0) (2017-12-18)
### Bug Fixes
* downgrades strip-ansi to version 3.0.1 ([#54](https://github.com/yargs/cliui/issues/54)) ([5764c46](https://github.com/yargs/cliui/commit/5764c46))
* set env variable FORCE_COLOR. ([#56](https://github.com/yargs/cliui/issues/56)) ([7350e36](https://github.com/yargs/cliui/commit/7350e36))
### Chores
* drop support for node < 4 ([#53](https://github.com/yargs/cliui/issues/53)) ([b105376](https://github.com/yargs/cliui/commit/b105376))
### Features
* add fallback for window width ([#45](https://github.com/yargs/cliui/issues/45)) ([d064922](https://github.com/yargs/cliui/commit/d064922))
### BREAKING CHANGES
* officially drop support for Node < 4
<a name="3.2.0"></a>
# [3.2.0](https://github.com/yargs/cliui/compare/v3.1.2...v3.2.0) (2016-04-11)

13
node_modules/cliui/README.md generated vendored
View File

@ -10,7 +10,9 @@ easily create complex multi-column command-line-interfaces.
## Example
```js
var ui = require('cliui')()
var ui = require('cliui')({
width: 80
})
ui.div('Usage: $0 [command] [options]')
@ -46,7 +48,7 @@ console.log(ui.toString())
cliui exposes a simple layout DSL:
If you create a single `ui.div`, passing a string rather than an
If you create a single `ui.row`, passing a string rather than an
object:
* `\n`: characters will be interpreted as new rows.
@ -86,7 +88,6 @@ cliui = require('cliui')
### cliui({width: integer})
Specify the maximum width of the UI being generated.
If no width is provided, cliui will try to get the current window's width and use it, and if that doesn't work, width will be set to `80`.
### cliui({wrap: boolean})
@ -98,7 +99,6 @@ Create a row with any number of columns, a column
can either be a string, or an object with the following
options:
* **text:** some text to place in the column.
* **width:** the width of a column.
* **align:** alignment, `right` or `center`.
* **padding:** `[top, right, bottom, left]`.
@ -108,8 +108,3 @@ options:
Similar to `div`, except the next row will be appended without
a new line being created.
### cliui.resetOutput()
Resets the UI elements of the current cliui instance, maintaining the values
set for `width` and `wrap`.

12
node_modules/cliui/index.js generated vendored
View File

@ -21,10 +21,6 @@ UI.prototype.span = function () {
cols.span = true
}
UI.prototype.resetOutput = function () {
this.rows = []
}
UI.prototype.div = function () {
if (arguments.length === 0) this.div('')
if (this.wrap && this._shouldApplyLayoutDSL.apply(this, arguments)) {
@ -213,7 +209,7 @@ UI.prototype._rasterize = function (row) {
row.forEach(function (col, c) {
// leave room for left and right padding.
col.width = widths[c]
if (_this.wrap) wrapped = wrap(col.text, _this._negatePadding(col), { hard: true }).split('\n')
if (_this.wrap) wrapped = wrap(col.text, _this._negatePadding(col), {hard: true}).split('\n')
else wrapped = col.text.split('\n')
if (col.border) {
@ -286,10 +282,6 @@ function _minWidth (col) {
return minWidth
}
function getWindowWidth () {
if (typeof process === 'object' && process.stdout && process.stdout.columns) return process.stdout.columns
}
function alignRight (str, width) {
str = str.trim()
var padding = ''
@ -318,7 +310,7 @@ module.exports = function (opts) {
opts = opts || {}
return new UI({
width: (opts || {}).width || getWindowWidth() || 80,
width: (opts || {}).width || 80,
wrap: typeof opts.wrap === 'boolean' ? opts.wrap : true
})
}

51
node_modules/cliui/package.json generated vendored
View File

@ -1,27 +1,27 @@
{
"_from": "cliui@^5.0.0",
"_id": "cliui@5.0.0",
"_from": "cliui@^3.0.3",
"_id": "cliui@3.2.0",
"_inBundle": false,
"_integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==",
"_integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=",
"_location": "/cliui",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "cliui@^5.0.0",
"raw": "cliui@^3.0.3",
"name": "cliui",
"escapedName": "cliui",
"rawSpec": "^5.0.0",
"rawSpec": "^3.0.3",
"saveSpec": null,
"fetchSpec": "^5.0.0"
"fetchSpec": "^3.0.3"
},
"_requiredBy": [
"/yargs"
"/protobufjs/yargs"
],
"_resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz",
"_shasum": "deefcfdb2e800784aa34f46fa08e06851c7bbbc5",
"_spec": "cliui@^5.0.0",
"_where": "/home/sergiu/linx-simulator2/node_modules/yargs",
"_resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz",
"_shasum": "120601537a916d29940f934da3b48d585a39213d",
"_spec": "cliui@^3.0.3",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/protobufjs/node_modules/yargs",
"author": {
"name": "Ben Coe",
"email": "ben@npmjs.com"
@ -43,23 +43,20 @@
}
},
"dependencies": {
"string-width": "^3.1.0",
"strip-ansi": "^5.2.0",
"wrap-ansi": "^5.1.0"
"string-width": "^1.0.1",
"strip-ansi": "^3.0.1",
"wrap-ansi": "^2.0.0"
},
"deprecated": false,
"description": "easily create complex multi-column command-line-interfaces",
"devDependencies": {
"chai": "^4.2.0",
"chalk": "^2.4.2",
"coveralls": "^3.0.3",
"mocha": "^6.0.2",
"nyc": "^13.3.0",
"standard": "^12.0.1",
"standard-version": "^5.0.2"
},
"engine": {
"node": ">=6"
"chai": "^3.5.0",
"chalk": "^1.1.2",
"coveralls": "^2.11.8",
"mocha": "^2.4.5",
"nyc": "^6.4.0",
"standard": "^6.0.8",
"standard-version": "^2.1.2"
},
"files": [
"index.js"
@ -84,8 +81,8 @@
"scripts": {
"coverage": "nyc --reporter=text-lcov mocha | coveralls",
"pretest": "standard",
"release": "standard-version",
"test": "nyc mocha"
"test": "nyc mocha",
"version": "standard-version"
},
"standard": {
"ignore": [
@ -95,5 +92,5 @@
"it"
]
},
"version": "5.0.0"
"version": "3.2.0"
}

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",
"_shasum": "0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77",
"_spec": "code-point-at@^1.0.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/string-width",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/string-width",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
"_shasum": "bb71850690e1f136567de629d2d5471deda4c1e8",
"_spec": "color-convert@^1.9.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/ansi-styles",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/ansi-styles",
"author": {
"name": "Heather Arthur",
"email": "fayearthur@gmail.com"

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
"_shasum": "a7d0558bd89c42f795dd42328f740831ca53bc25",
"_spec": "color-name@1.1.3",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/color-convert",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/color-convert",
"author": {
"name": "DY",
"email": "dfcreative@gmail.com"

2
node_modules/colour/package.json generated vendored
View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/colour/-/colour-0.7.1.tgz",
"_shasum": "9cb169917ec5d12c0736d3e8685746df1cadf778",
"_spec": "colour@~0.7.1",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/ascli",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/ascli",
"author": {
"name": "Daniel Wirtz",
"email": "dcode@dcode.io"

View File

@ -22,7 +22,7 @@
"_resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
"_shasum": "c3d45a8b34fd730631a110a8a2520682b31d5a7f",
"_spec": "combined-stream@~1.0.6",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/request",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/request",
"author": {
"name": "Felix Geisendörfer",
"email": "felix@debuggable.com",

11
node_modules/commander/CHANGELOG.md generated vendored
View File

@ -1,3 +1,14 @@
2.20.3 / 2019-10-11
==================
* Support Node.js 0.10 (Revert #1059)
* Ran "npm unpublish commander@2.20.2". There is no 2.20.2.
2.20.1 / 2019-09-29
==================
* Improve executable subcommand tracking
* Update dev dependencies
2.20.0 / 2019-04-02
==================

2
node_modules/commander/index.js generated vendored
View File

@ -484,7 +484,7 @@ Command.prototype.parse = function(argv) {
})[0];
}
if (this._execs[name] && typeof this._execs[name] !== 'function') {
if (this._execs[name] === true) {
return this.executeSubCommand(argv, args, parsed.unknown);
} else if (aliasCommand) {
// is alias of a subCommand

24
node_modules/commander/package.json generated vendored
View File

@ -1,8 +1,8 @@
{
"_from": "commander@^2.9.0",
"_id": "commander@2.20.0",
"_id": "commander@2.20.3",
"_inBundle": false,
"_integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==",
"_integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
"_location": "/commander",
"_phantomChildren": {},
"_requested": {
@ -19,10 +19,10 @@
"/node-opus",
"/stream-throttle"
],
"_resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz",
"_shasum": "d58bb2b5c1ee8f87b0d340027e9e94e222c5a422",
"_resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
"_shasum": "fd485e84c03eb4881c20722ba48035e8531aeb33",
"_spec": "commander@^2.9.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/node-opus",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/node-opus",
"author": {
"name": "TJ Holowaychuk",
"email": "tj@vision-media.ca"
@ -35,13 +35,13 @@
"deprecated": false,
"description": "the complete solution for node.js command-line programs",
"devDependencies": {
"@types/node": "^10.11.3",
"eslint": "^5.6.1",
"@types/node": "^12.7.8",
"eslint": "^6.4.0",
"should": "^13.2.3",
"sinon": "^6.3.4",
"standard": "^12.0.1",
"ts-node": "^7.0.1",
"typescript": "^2.9.2"
"sinon": "^7.5.0",
"standard": "^14.3.1",
"ts-node": "^8.4.1",
"typescript": "^3.6.3"
},
"files": [
"index.js",
@ -67,5 +67,5 @@
"test-typings": "tsc -p tsconfig.json"
},
"typings": "typings/index.d.ts",
"version": "2.20.0"
"version": "2.20.3"
}

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/component-bind/-/component-bind-1.0.0.tgz",
"_shasum": "00c608ab7dcd93897c0009651b1d3a8e1e73bbd1",
"_spec": "component-bind@1.0.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/socket.io-client",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/socket.io-client",
"bugs": {
"url": "https://github.com/component/bind/issues"
},

View File

@ -23,7 +23,7 @@
"_resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz",
"_shasum": "137918d6d78283f7df7a6b7c5a63e140e69425e6",
"_spec": "component-emitter@1.2.1",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/socket.io-client",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/socket.io-client",
"bugs": {
"url": "https://github.com/component/emitter/issues"
},

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/component-inherit/-/component-inherit-0.0.3.tgz",
"_shasum": "645fc4adf58b72b649d5cae65135619db26ff143",
"_spec": "component-inherit@0.0.3",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/engine.io-client",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/engine.io-client",
"bugs": {
"url": "https://github.com/component/inherit/issues"
},

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
"_shasum": "d8a96bd77fd68df7793a73036a3ba0d5405d477b",
"_spec": "concat-map@0.0.1",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/brace-expansion",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/brace-expansion",
"author": {
"name": "James Halliday",
"email": "mail@substack.net",

2
node_modules/config/package.json generated vendored
View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/config/-/config-1.31.0.tgz",
"_shasum": "ab08aeba6536015d220cd0afe14b3e0501082542",
"_spec": "config@^1.30.0",
"_where": "/home/sergiu/linx-audio-simulator",
"_where": "/home/safemobile/LINX/linx-simulator2",
"author": {
"name": "Loren West",
"email": "open_source@lorenwest.com"

View File

@ -25,7 +25,7 @@
"_resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
"_shasum": "b5fd54220aa2bc5ab57aab7140c940754503c1a7",
"_spec": "core-util-is@~1.0.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/readable-stream",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/readable-stream",
"author": {
"name": "Isaac Z. Schlueter",
"email": "i@izs.me",

2
node_modules/dashdash/package.json generated vendored
View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
"_shasum": "853cfa0f7cbe2fed5de20326b8dd581035f6e2f0",
"_spec": "dashdash@^1.12.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/sshpk",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/sshpk",
"author": {
"name": "Trent Mick",
"email": "trentm@gmail.com",

2
node_modules/debug/package.json generated vendored
View File

@ -23,7 +23,7 @@
"_resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
"_shasum": "5d128515df134ff327e90a4c93f4e077a536341f",
"_spec": "debug@^2.2.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/lame",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/lame",
"author": {
"name": "TJ Holowaychuk",
"email": "tj@vision-media.ca"

View File

@ -16,12 +16,14 @@
"fetchSpec": "^1.1.1"
},
"_requiredBy": [
"/yargs"
"/protobufjs/yargs",
"/yargs",
"/yargs-parser"
],
"_resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
"_shasum": "f6534d15148269b20352e7bee26f501f9a191290",
"_spec": "decamelize@^1.1.1",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/yargs",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/protobufjs/node_modules/yargs",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
"_shasum": "df3ae199acadfb7d440aaae0b29e2272b24ec619",
"_spec": "delayed-stream@~1.0.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/combined-stream",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/combined-stream",
"author": {
"name": "Felix Geisendörfer",
"email": "felix@debuggable.com",

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/drop-stream/-/drop-stream-0.1.1.tgz",
"_shasum": "48378157bc115b7b1adde4ad3ce433742396e4b7",
"_spec": "drop-stream@^0.1.1",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/mumble-client",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/mumble-client",
"author": {
"name": "Michael Mayer",
"email": "michael@schnittstabil.de",

2
node_modules/ecc-jsbn/package.json generated vendored
View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
"_shasum": "3a83a904e54353287874c564b7549386849a98c9",
"_spec": "ecc-jsbn@~0.1.1",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/sshpk",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/sshpk",
"author": {
"name": "Jeremie Miller",
"email": "jeremie@jabber.org",

View File

@ -196,6 +196,7 @@ Exposed as `eio` in the browser standalone build.
will be used instead.
- `forceBase64` (`Boolean`): forces base 64 encoding for polling transport even when XHR2 responseType is available and WebSocket even if the used standard supports binary.
- `enablesXDR` (`Boolean`): enables XDomainRequest for IE8 to avoid loading bar flashing with click sound. default to `false` because XDomainRequest has a flaw of not sending cookie.
- `withCredentials` (`Boolean`): defaults to `true`, whether to include credentials (cookies, authorization headers, TLS client certificates, etc.) with cross-origin XHR polling requests.
- `timestampRequests` (`Boolean`): whether to add the timestamp with each
transport request. Note: polling requests are always stamped unless this
option is explicitly set to `false` (`false`)

File diff suppressed because it is too large Load Diff

View File

@ -66,6 +66,7 @@ function Socket (uri, opts) {
this.jsonp = false !== opts.jsonp;
this.forceBase64 = !!opts.forceBase64;
this.enablesXDR = !!opts.enablesXDR;
this.withCredentials = false !== opts.withCredentials;
this.timestampParam = opts.timestampParam || 't';
this.timestampRequests = opts.timestampRequests;
this.transports = opts.transports || ['polling', 'websocket'];
@ -183,6 +184,7 @@ Socket.prototype.createTransport = function (name) {
jsonp: options.jsonp || this.jsonp,
forceBase64: options.forceBase64 || this.forceBase64,
enablesXDR: options.enablesXDR || this.enablesXDR,
withCredentials: options.withCredentials || this.withCredentials,
timestampRequests: options.timestampRequests || this.timestampRequests,
timestampParam: options.timestampParam || this.timestampParam,
policyPort: options.policyPort || this.policyPort,

View File

@ -30,6 +30,7 @@ function Transport (opts) {
this.agent = opts.agent || false;
this.socket = opts.socket;
this.enablesXDR = opts.enablesXDR;
this.withCredentials = opts.withCredentials;
// SSL options for Node.js client
this.pfx = opts.pfx;

View File

@ -77,6 +77,7 @@ XHR.prototype.request = function (opts) {
opts.agent = this.agent || false;
opts.supportsBinary = this.supportsBinary;
opts.enablesXDR = this.enablesXDR;
opts.withCredentials = this.withCredentials;
// SSL options for Node.js client
opts.pfx = this.pfx;
@ -150,6 +151,7 @@ function Request (opts) {
this.isBinary = opts.isBinary;
this.supportsBinary = opts.supportsBinary;
this.enablesXDR = opts.enablesXDR;
this.withCredentials = opts.withCredentials;
this.requestTimeout = opts.requestTimeout;
// SSL options for Node.js client
@ -224,7 +226,7 @@ Request.prototype.create = function () {
// ie6 check
if ('withCredentials' in xhr) {
xhr.withCredentials = true;
xhr.withCredentials = this.withCredentials;
}
if (this.requestTimeout) {
@ -243,7 +245,7 @@ Request.prototype.create = function () {
if (xhr.readyState === 2) {
try {
var contentType = xhr.getResponseHeader('Content-Type');
if (self.supportsBinary && contentType === 'application/octet-stream') {
if (self.supportsBinary && contentType === 'application/octet-stream' || contentType === 'application/octet-stream; charset=UTF-8') {
xhr.responseType = 'arraybuffer';
}
} catch (e) {}
@ -255,7 +257,7 @@ Request.prototype.create = function () {
// make sure the `error` event handler that's user-set
// does not throw in the same tick and gets caught here
setTimeout(function () {
self.onError(xhr.status);
self.onError(typeof xhr.status === 'number' ? xhr.status : 0);
}, 0);
}
};
@ -355,7 +357,7 @@ Request.prototype.onLoad = function () {
try {
contentType = this.xhr.getResponseHeader('Content-Type');
} catch (e) {}
if (contentType === 'application/octet-stream') {
if (contentType === 'application/octet-stream' || contentType === 'application/octet-stream; charset=UTF-8') {
data = this.xhr.response || this.xhr.responseText;
} else {
data = this.xhr.responseText;

View File

@ -15,7 +15,9 @@ if (typeof WebSocket !== 'undefined') {
BrowserWebSocket = WebSocket;
} else if (typeof self !== 'undefined') {
BrowserWebSocket = self.WebSocket || self.MozWebSocket;
} else {
}
if (typeof window === 'undefined') {
try {
NodeWebSocket = require('ws');
} catch (e) { }

View File

@ -1 +0,0 @@
repo_token: SIAeZjKYlHK74rbcFvNHMUzjRiMpflxve

View File

@ -1,14 +0,0 @@
{
"env": {
"browser": true,
"node": true
},
"globals": {
"chrome": true
},
"rules": {
"no-console": 0,
"no-empty": [1, { "allowEmptyCatch": true }]
},
"extends": "eslint:recommended"
}

View File

@ -1,9 +0,0 @@
support
test
examples
example
*.sock
dist
yarn.lock
coverage
bower.json

View File

@ -1,20 +0,0 @@
sudo: false
language: node_js
node_js:
- "4"
- "6"
- "8"
install:
- make install
script:
- make lint
- make test
matrix:
include:
- node_js: '8'
env: BROWSER=1

View File

@ -1,58 +0,0 @@
# get Makefile directory name: http://stackoverflow.com/a/5982798/376773
THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd)
# BIN directory
BIN := $(THIS_DIR)/node_modules/.bin
# Path
PATH := node_modules/.bin:$(PATH)
SHELL := /bin/bash
# applications
NODE ?= $(shell which node)
YARN ?= $(shell which yarn)
PKG ?= $(if $(YARN),$(YARN),$(NODE) $(shell which npm))
BROWSERIFY ?= $(NODE) $(BIN)/browserify
install: node_modules
browser: dist/debug.js
node_modules: package.json
@NODE_ENV= $(PKG) install
@touch node_modules
dist/debug.js: src/*.js node_modules
@mkdir -p dist
@$(BROWSERIFY) \
--standalone debug \
. > dist/debug.js
lint:
@eslint *.js src/*.js
test-node:
@istanbul cover node_modules/mocha/bin/_mocha -- test/**.js
@cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
test-browser:
@$(MAKE) browser
@karma start --single-run
test-all:
@concurrently \
"make test-node" \
"make test-browser"
test:
@if [ "x$(BROWSER)" = "x" ]; then \
$(MAKE) test-node; \
else \
$(MAKE) test-browser; \
fi
clean:
rimraf dist coverage
.PHONY: browser install clean lint test test-all test-node test-browser

View File

@ -70,7 +70,9 @@ Here are some examples:
<img width="647" alt="screen shot 2017-08-08 at 12 53 38 pm" src="https://user-images.githubusercontent.com/71256/29091700-a62a6888-7c38-11e7-800b-db911291ca2b.png">
<img width="647" alt="screen shot 2017-08-08 at 12 53 25 pm" src="https://user-images.githubusercontent.com/71256/29091701-a62ea114-7c38-11e7-826a-2692bedca740.png">
#### Windows note
#### Windows command prompt notes
##### CMD
On Windows the environment variable is set using the `set` command.
@ -78,14 +80,32 @@ On Windows the environment variable is set using the `set` command.
set DEBUG=*,-not_this
```
Note that PowerShell uses different syntax to set environment variables.
Example:
```cmd
set DEBUG=* & node app.js
```
##### PowerShell (VS Code default)
PowerShell uses different syntax to set environment variables.
```cmd
$env:DEBUG = "*,-not_this"
```
Example:
```cmd
$env:DEBUG='app';node app.js
```
Then, run the program to be debugged as usual.
npm script example:
```js
"windowsDebug": "@powershell -Command $env:DEBUG='*';node app.js",
```
## Namespace Colors
@ -248,6 +268,73 @@ error('now goes to stdout via console.info');
log('still goes to stdout, but via console.info now');
```
## Extend
You can simply extend debugger
```js
const log = require('debug')('auth');
//creates new debug instance with extended namespace
const logSign = log.extend('sign');
const logLogin = log.extend('login');
log('hello'); // auth hello
logSign('hello'); //auth:sign hello
logLogin('hello'); //auth:login hello
```
## Set dynamically
You can also enable debug dynamically by calling the `enable()` method :
```js
let debug = require('debug');
console.log(1, debug.enabled('test'));
debug.enable('test');
console.log(2, debug.enabled('test'));
debug.disable();
console.log(3, debug.enabled('test'));
```
print :
```
1 false
2 true
3 false
```
Usage :
`enable(namespaces)`
`namespaces` can include modes separated by a colon and wildcards.
Note that calling `enable()` completely overrides previously set DEBUG variable :
```
$ DEBUG=foo node -e 'var dbg = require("debug"); dbg.enable("bar"); console.log(dbg.enabled("foo"))'
=> false
```
`disable()`
Will disable all namespaces. The functions returns the namespaces currently
enabled (and skipped). This can be useful if you want to disable debugging
temporarily without knowing what was enabled to begin with.
For example:
```js
let debug = require('debug');
debug.enable('foo:*,-foo:bar');
let namespaces = debug.disable();
debug.enable(namespaces);
```
Note: There is no guarantee that the string will be identical to the initial
enable string, but semantically they will be identical.
## Checking whether a debug target is enabled
After you've created a debug instance, you can determine whether or not it is

View File

@ -1,70 +0,0 @@
// Karma configuration
// Generated on Fri Dec 16 2016 13:09:51 GMT+0000 (UTC)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['mocha', 'chai', 'sinon'],
// list of files / patterns to load in the browser
files: [
'dist/debug.js',
'test/*spec.js'
],
// list of files to exclude
exclude: [
'src/node.js'
],
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
},
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['progress'],
// web server port
port: 9876,
// enable / disable colors in the output (reporters and logs)
colors: true,
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['PhantomJS'],
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: false,
// Concurrency level
// how many browser should be started simultaneous
concurrency: Infinity
})
}

View File

@ -1 +0,0 @@
module.exports = require('./src/node');

View File

@ -1,27 +1,27 @@
{
"_from": "debug@~3.1.0",
"_id": "debug@3.1.0",
"_from": "debug@~4.1.0",
"_id": "debug@4.1.1",
"_inBundle": false,
"_integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
"_integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
"_location": "/engine.io-client/debug",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "debug@~3.1.0",
"raw": "debug@~4.1.0",
"name": "debug",
"escapedName": "debug",
"rawSpec": "~3.1.0",
"rawSpec": "~4.1.0",
"saveSpec": null,
"fetchSpec": "~3.1.0"
"fetchSpec": "~4.1.0"
},
"_requiredBy": [
"/engine.io-client"
],
"_resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
"_shasum": "5bb5a0672628b64149566ba16819e61518c67261",
"_spec": "debug@~3.1.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/engine.io-client",
"_resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
"_shasum": "3b72260255109c6b589cee050f1d516139664791",
"_spec": "debug@~4.1.0",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/engine.io-client",
"author": {
"name": "TJ Holowaychuk",
"email": "tj@vision-media.ca"
@ -43,28 +43,34 @@
}
],
"dependencies": {
"ms": "2.0.0"
"ms": "^2.1.1"
},
"deprecated": false,
"description": "small debugging utility",
"devDependencies": {
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"browserify": "14.4.0",
"chai": "^3.5.0",
"concurrently": "^3.1.0",
"coveralls": "^2.11.15",
"eslint": "^3.12.1",
"coveralls": "^3.0.2",
"istanbul": "^0.4.5",
"karma": "^1.3.0",
"karma": "^3.0.0",
"karma-chai": "^0.1.0",
"karma-mocha": "^1.3.0",
"karma-phantomjs-launcher": "^1.0.2",
"karma-sinon": "^1.0.5",
"mocha": "^3.2.0",
"mocha": "^5.2.0",
"mocha-lcov-reporter": "^1.2.0",
"rimraf": "^2.5.4",
"sinon": "^1.17.6",
"sinon-chai": "^2.8.0"
"xo": "^0.23.0"
},
"files": [
"src",
"dist/debug.js",
"LICENSE",
"README.md"
],
"homepage": "https://github.com/visionmedia/debug#readme",
"keywords": [
"debug",
@ -78,5 +84,19 @@
"type": "git",
"url": "git://github.com/visionmedia/debug.git"
},
"version": "3.1.0"
"scripts": {
"build": "npm run build:debug && npm run build:test",
"build:debug": "babel -o dist/debug.js dist/debug.es6.js > dist/debug.js",
"build:test": "babel -d dist test.js",
"clean": "rimraf dist coverage",
"lint": "xo",
"prebuild:debug": "mkdir -p dist && browserify --standalone debug -o dist/debug.es6.js .",
"pretest:browser": "npm run build",
"test": "npm run test:node && npm run test:browser",
"test:browser": "karma start --single-run",
"test:coverage": "cat ./coverage/lcov.info | coveralls",
"test:node": "istanbul cover _mocha -- test.js"
},
"unpkg": "./dist/debug.js",
"version": "4.1.1"
}

View File

@ -1,36 +1,97 @@
/* eslint-env browser */
/**
* This is the web browser implementation of `debug()`.
*
* Expose `debug()` as the module.
*/
exports = module.exports = require('./debug');
exports.log = log;
exports.formatArgs = formatArgs;
exports.save = save;
exports.load = load;
exports.useColors = useColors;
exports.storage = 'undefined' != typeof chrome
&& 'undefined' != typeof chrome.storage
? chrome.storage.local
: localstorage();
exports.storage = localstorage();
/**
* Colors.
*/
exports.colors = [
'#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC',
'#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF',
'#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC',
'#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF',
'#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC',
'#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033',
'#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366',
'#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933',
'#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC',
'#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF',
'#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33'
'#0000CC',
'#0000FF',
'#0033CC',
'#0033FF',
'#0066CC',
'#0066FF',
'#0099CC',
'#0099FF',
'#00CC00',
'#00CC33',
'#00CC66',
'#00CC99',
'#00CCCC',
'#00CCFF',
'#3300CC',
'#3300FF',
'#3333CC',
'#3333FF',
'#3366CC',
'#3366FF',
'#3399CC',
'#3399FF',
'#33CC00',
'#33CC33',
'#33CC66',
'#33CC99',
'#33CCCC',
'#33CCFF',
'#6600CC',
'#6600FF',
'#6633CC',
'#6633FF',
'#66CC00',
'#66CC33',
'#9900CC',
'#9900FF',
'#9933CC',
'#9933FF',
'#99CC00',
'#99CC33',
'#CC0000',
'#CC0033',
'#CC0066',
'#CC0099',
'#CC00CC',
'#CC00FF',
'#CC3300',
'#CC3333',
'#CC3366',
'#CC3399',
'#CC33CC',
'#CC33FF',
'#CC6600',
'#CC6633',
'#CC9900',
'#CC9933',
'#CCCC00',
'#CCCC33',
'#FF0000',
'#FF0033',
'#FF0066',
'#FF0099',
'#FF00CC',
'#FF00FF',
'#FF3300',
'#FF3333',
'#FF3366',
'#FF3399',
'#FF33CC',
'#FF33FF',
'#FF6600',
'#FF6633',
'#FF9900',
'#FF9933',
'#FFCC00',
'#FFCC33'
];
/**
@ -41,44 +102,32 @@ exports.colors = [
* TODO: add a `localStorage` variable to explicitly enable/disable colors
*/
// eslint-disable-next-line complexity
function useColors() {
// NB: In an Electron preload script, document will be defined but not fully
// initialized. Since we know we're in Chrome, we'll just detect this case
// explicitly
if (typeof window !== 'undefined' && window.process && window.process.type === 'renderer') {
return true;
}
// NB: In an Electron preload script, document will be defined but not fully
// initialized. Since we know we're in Chrome, we'll just detect this case
// explicitly
if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {
return true;
}
// Internet Explorer and Edge do not support colors.
if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
return false;
}
// Internet Explorer and Edge do not support colors.
if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
return false;
}
// is webkit? http://stackoverflow.com/a/16459606/376773
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
// is firebug? http://stackoverflow.com/a/398120/376773
(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
// is firefox >= v31?
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||
// double check webkit in userAgent just in case we are in a worker
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
// Is webkit? http://stackoverflow.com/a/16459606/376773
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
// Is firebug? http://stackoverflow.com/a/398120/376773
(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
// Is firefox >= v31?
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||
// Double check webkit in userAgent just in case we are in a worker
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
}
/**
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
*/
exports.formatters.j = function(v) {
try {
return JSON.stringify(v);
} catch (err) {
return '[UnexpectedJSONParseError]: ' + err.message;
}
};
/**
* Colorize log arguments if enabled.
*
@ -86,36 +135,38 @@ exports.formatters.j = function(v) {
*/
function formatArgs(args) {
var useColors = this.useColors;
args[0] = (this.useColors ? '%c' : '') +
this.namespace +
(this.useColors ? ' %c' : ' ') +
args[0] +
(this.useColors ? '%c ' : ' ') +
'+' + module.exports.humanize(this.diff);
args[0] = (useColors ? '%c' : '')
+ this.namespace
+ (useColors ? ' %c' : ' ')
+ args[0]
+ (useColors ? '%c ' : ' ')
+ '+' + exports.humanize(this.diff);
if (!this.useColors) {
return;
}
if (!useColors) return;
const c = 'color: ' + this.color;
args.splice(1, 0, c, 'color: inherit');
var c = 'color: ' + this.color;
args.splice(1, 0, c, 'color: inherit')
// The final "%c" is somewhat tricky, because there could be other
// arguments passed either before or after the %c, so we need to
// figure out the correct index to insert the CSS into
let index = 0;
let lastC = 0;
args[0].replace(/%[a-zA-Z%]/g, match => {
if (match === '%%') {
return;
}
index++;
if (match === '%c') {
// We only are interested in the *last* %c
// (the user may have provided their own)
lastC = index;
}
});
// the final "%c" is somewhat tricky, because there could be other
// arguments passed either before or after the %c, so we need to
// figure out the correct index to insert the CSS into
var index = 0;
var lastC = 0;
args[0].replace(/%[a-zA-Z%]/g, function(match) {
if ('%%' === match) return;
index++;
if ('%c' === match) {
// we only are interested in the *last* %c
// (the user may have provided their own)
lastC = index;
}
});
args.splice(lastC, 0, c);
args.splice(lastC, 0, c);
}
/**
@ -124,13 +175,12 @@ function formatArgs(args) {
*
* @api public
*/
function log() {
// this hackery is required for IE8/9, where
// the `console.log` function doesn't have 'apply'
return 'object' === typeof console
&& console.log
&& Function.prototype.apply.call(console.log, console, arguments);
function log(...args) {
// This hackery is required for IE8/9, where
// the `console.log` function doesn't have 'apply'
return typeof console === 'object' &&
console.log &&
console.log(...args);
}
/**
@ -139,15 +189,17 @@ function log() {
* @param {String} namespaces
* @api private
*/
function save(namespaces) {
try {
if (null == namespaces) {
exports.storage.removeItem('debug');
} else {
exports.storage.debug = namespaces;
}
} catch(e) {}
try {
if (namespaces) {
exports.storage.setItem('debug', namespaces);
} else {
exports.storage.removeItem('debug');
}
} catch (error) {
// Swallow
// XXX (@Qix-) should we be logging these?
}
}
/**
@ -156,27 +208,23 @@ function save(namespaces) {
* @return {String} returns the previously persisted debug modes
* @api private
*/
function load() {
var r;
try {
r = exports.storage.debug;
} catch(e) {}
let r;
try {
r = exports.storage.getItem('debug');
} catch (error) {
// Swallow
// XXX (@Qix-) should we be logging these?
}
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
if (!r && typeof process !== 'undefined' && 'env' in process) {
r = process.env.DEBUG;
}
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
if (!r && typeof process !== 'undefined' && 'env' in process) {
r = process.env.DEBUG;
}
return r;
return r;
}
/**
* Enable namespaces listed in `localStorage.debug` initially.
*/
exports.enable(load());
/**
* Localstorage attempts to return the localstorage.
*
@ -189,7 +237,28 @@ exports.enable(load());
*/
function localstorage() {
try {
return window.localStorage;
} catch (e) {}
try {
// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
// The Browser also has localStorage in the global context.
return localStorage;
} catch (error) {
// Swallow
// XXX (@Qix-) should we be logging these?
}
}
module.exports = require('./common')(exports);
const {formatters} = module.exports;
/**
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
*/
formatters.j = function (v) {
try {
return JSON.stringify(v);
} catch (error) {
return '[UnexpectedJSONParseError]: ' + error.message;
}
};

View File

@ -1,225 +0,0 @@
/**
* This is the common logic for both the Node.js and web browser
* implementations of `debug()`.
*
* Expose `debug()` as the module.
*/
exports = module.exports = createDebug.debug = createDebug['default'] = createDebug;
exports.coerce = coerce;
exports.disable = disable;
exports.enable = enable;
exports.enabled = enabled;
exports.humanize = require('ms');
/**
* Active `debug` instances.
*/
exports.instances = [];
/**
* The currently active debug mode names, and names to skip.
*/
exports.names = [];
exports.skips = [];
/**
* Map of special "%n" handling functions, for the debug "format" argument.
*
* Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
*/
exports.formatters = {};
/**
* Select a color.
* @param {String} namespace
* @return {Number}
* @api private
*/
function selectColor(namespace) {
var hash = 0, i;
for (i in namespace) {
hash = ((hash << 5) - hash) + namespace.charCodeAt(i);
hash |= 0; // Convert to 32bit integer
}
return exports.colors[Math.abs(hash) % exports.colors.length];
}
/**
* Create a debugger with the given `namespace`.
*
* @param {String} namespace
* @return {Function}
* @api public
*/
function createDebug(namespace) {
var prevTime;
function debug() {
// disabled?
if (!debug.enabled) return;
var self = debug;
// set `diff` timestamp
var curr = +new Date();
var ms = curr - (prevTime || curr);
self.diff = ms;
self.prev = prevTime;
self.curr = curr;
prevTime = curr;
// turn the `arguments` into a proper Array
var args = new Array(arguments.length);
for (var i = 0; i < args.length; i++) {
args[i] = arguments[i];
}
args[0] = exports.coerce(args[0]);
if ('string' !== typeof args[0]) {
// anything else let's inspect with %O
args.unshift('%O');
}
// apply any `formatters` transformations
var index = 0;
args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {
// if we encounter an escaped % then don't increase the array index
if (match === '%%') return match;
index++;
var formatter = exports.formatters[format];
if ('function' === typeof formatter) {
var val = args[index];
match = formatter.call(self, val);
// now we need to remove `args[index]` since it's inlined in the `format`
args.splice(index, 1);
index--;
}
return match;
});
// apply env-specific formatting (colors, etc.)
exports.formatArgs.call(self, args);
var logFn = debug.log || exports.log || console.log.bind(console);
logFn.apply(self, args);
}
debug.namespace = namespace;
debug.enabled = exports.enabled(namespace);
debug.useColors = exports.useColors();
debug.color = selectColor(namespace);
debug.destroy = destroy;
// env-specific initialization logic for debug instances
if ('function' === typeof exports.init) {
exports.init(debug);
}
exports.instances.push(debug);
return debug;
}
function destroy () {
var index = exports.instances.indexOf(this);
if (index !== -1) {
exports.instances.splice(index, 1);
return true;
} else {
return false;
}
}
/**
* Enables a debug mode by namespaces. This can include modes
* separated by a colon and wildcards.
*
* @param {String} namespaces
* @api public
*/
function enable(namespaces) {
exports.save(namespaces);
exports.names = [];
exports.skips = [];
var i;
var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
var len = split.length;
for (i = 0; i < len; i++) {
if (!split[i]) continue; // ignore empty strings
namespaces = split[i].replace(/\*/g, '.*?');
if (namespaces[0] === '-') {
exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
} else {
exports.names.push(new RegExp('^' + namespaces + '$'));
}
}
for (i = 0; i < exports.instances.length; i++) {
var instance = exports.instances[i];
instance.enabled = exports.enabled(instance.namespace);
}
}
/**
* Disable debug output.
*
* @api public
*/
function disable() {
exports.enable('');
}
/**
* Returns true if the given mode name is enabled, false otherwise.
*
* @param {String} name
* @return {Boolean}
* @api public
*/
function enabled(name) {
if (name[name.length - 1] === '*') {
return true;
}
var i, len;
for (i = 0, len = exports.skips.length; i < len; i++) {
if (exports.skips[i].test(name)) {
return false;
}
}
for (i = 0, len = exports.names.length; i < len; i++) {
if (exports.names[i].test(name)) {
return true;
}
}
return false;
}
/**
* Coerce `val`.
*
* @param {Mixed} val
* @return {Mixed}
* @api private
*/
function coerce(val) {
if (val instanceof Error) return val.stack || val.message;
return val;
}

View File

@ -1,10 +1,10 @@
/**
* Detect Electron renderer process, which is node, but we should
* Detect Electron renderer / nwjs process, which is node, but we should
* treat as a browser.
*/
if (typeof process === 'undefined' || process.type === 'renderer') {
module.exports = require('./browser.js');
if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
module.exports = require('./browser.js');
} else {
module.exports = require('./node.js');
module.exports = require('./node.js');
}

View File

@ -2,16 +2,13 @@
* Module dependencies.
*/
var tty = require('tty');
var util = require('util');
const tty = require('tty');
const util = require('util');
/**
* This is the Node.js implementation of `debug()`.
*
* Expose `debug()` as the module.
*/
exports = module.exports = require('./debug');
exports.init = init;
exports.log = log;
exports.formatArgs = formatArgs;
@ -23,21 +20,95 @@ exports.useColors = useColors;
* Colors.
*/
exports.colors = [ 6, 2, 3, 4, 5, 1 ];
exports.colors = [6, 2, 3, 4, 5, 1];
try {
var supportsColor = require('supports-color');
if (supportsColor && supportsColor.level >= 2) {
exports.colors = [
20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68,
69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134,
135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171,
172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204,
205, 206, 207, 208, 209, 214, 215, 220, 221
];
}
} catch (err) {
// swallow - we only care if `supports-color` is available; it doesn't have to be.
// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
// eslint-disable-next-line import/no-extraneous-dependencies
const supportsColor = require('supports-color');
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
exports.colors = [
20,
21,
26,
27,
32,
33,
38,
39,
40,
41,
42,
43,
44,
45,
56,
57,
62,
63,
68,
69,
74,
75,
76,
77,
78,
79,
80,
81,
92,
93,
98,
99,
112,
113,
128,
129,
134,
135,
148,
149,
160,
161,
162,
163,
164,
165,
166,
167,
168,
169,
170,
171,
172,
173,
178,
179,
184,
185,
196,
197,
198,
199,
200,
201,
202,
203,
204,
205,
206,
207,
208,
209,
214,
215,
220,
221
];
}
} catch (error) {
// Swallow - we only care if `supports-color` is available; it doesn't have to be.
}
/**
@ -46,24 +117,31 @@ try {
* $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
*/
exports.inspectOpts = Object.keys(process.env).filter(function (key) {
return /^debug_/i.test(key);
}).reduce(function (obj, key) {
// camel-case
var prop = key
.substring(6)
.toLowerCase()
.replace(/_([a-z])/g, function (_, k) { return k.toUpperCase() });
exports.inspectOpts = Object.keys(process.env).filter(key => {
return /^debug_/i.test(key);
}).reduce((obj, key) => {
// Camel-case
const prop = key
.substring(6)
.toLowerCase()
.replace(/_([a-z])/g, (_, k) => {
return k.toUpperCase();
});
// coerce string value into JS value
var val = process.env[key];
if (/^(yes|on|true|enabled)$/i.test(val)) val = true;
else if (/^(no|off|false|disabled)$/i.test(val)) val = false;
else if (val === 'null') val = null;
else val = Number(val);
// Coerce string value into JS value
let val = process.env[key];
if (/^(yes|on|true|enabled)$/i.test(val)) {
val = true;
} else if (/^(no|off|false|disabled)$/i.test(val)) {
val = false;
} else if (val === 'null') {
val = null;
} else {
val = Number(val);
}
obj[prop] = val;
return obj;
obj[prop] = val;
return obj;
}, {});
/**
@ -71,32 +149,11 @@ exports.inspectOpts = Object.keys(process.env).filter(function (key) {
*/
function useColors() {
return 'colors' in exports.inspectOpts
? Boolean(exports.inspectOpts.colors)
: tty.isatty(process.stderr.fd);
return 'colors' in exports.inspectOpts ?
Boolean(exports.inspectOpts.colors) :
tty.isatty(process.stderr.fd);
}
/**
* Map %o to `util.inspect()`, all on a single line.
*/
exports.formatters.o = function(v) {
this.inspectOpts.colors = this.useColors;
return util.inspect(v, this.inspectOpts)
.split('\n').map(function(str) {
return str.trim()
}).join(' ');
};
/**
* Map %o to `util.inspect()`, allowing multiple lines if needed.
*/
exports.formatters.O = function(v) {
this.inspectOpts.colors = this.useColors;
return util.inspect(v, this.inspectOpts);
};
/**
* Adds ANSI color escape codes if enabled.
*
@ -104,35 +161,33 @@ exports.formatters.O = function(v) {
*/
function formatArgs(args) {
var name = this.namespace;
var useColors = this.useColors;
const {namespace: name, useColors} = this;
if (useColors) {
var c = this.color;
var colorCode = '\u001b[3' + (c < 8 ? c : '8;5;' + c);
var prefix = ' ' + colorCode + ';1m' + name + ' ' + '\u001b[0m';
if (useColors) {
const c = this.color;
const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c);
const prefix = ` ${colorCode};1m${name} \u001B[0m`;
args[0] = prefix + args[0].split('\n').join('\n' + prefix);
args.push(colorCode + 'm+' + exports.humanize(this.diff) + '\u001b[0m');
} else {
args[0] = getDate() + name + ' ' + args[0];
}
args[0] = prefix + args[0].split('\n').join('\n' + prefix);
args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m');
} else {
args[0] = getDate() + name + ' ' + args[0];
}
}
function getDate() {
if (exports.inspectOpts.hideDate) {
return '';
} else {
return new Date().toISOString() + ' ';
}
if (exports.inspectOpts.hideDate) {
return '';
}
return new Date().toISOString() + ' ';
}
/**
* Invokes `util.format()` with the specified arguments and writes to stderr.
*/
function log() {
return process.stderr.write(util.format.apply(util, arguments) + '\n');
function log(...args) {
return process.stderr.write(util.format(...args) + '\n');
}
/**
@ -141,15 +196,14 @@ function log() {
* @param {String} namespaces
* @api private
*/
function save(namespaces) {
if (null == namespaces) {
// If you set a process.env field to null or undefined, it gets cast to the
// string 'null' or 'undefined'. Just delete instead.
delete process.env.DEBUG;
} else {
process.env.DEBUG = namespaces;
}
if (namespaces) {
process.env.DEBUG = namespaces;
} else {
// If you set a process.env field to null or undefined, it gets cast to the
// string 'null' or 'undefined'. Just delete instead.
delete process.env.DEBUG;
}
}
/**
@ -160,7 +214,7 @@ function save(namespaces) {
*/
function load() {
return process.env.DEBUG;
return process.env.DEBUG;
}
/**
@ -170,17 +224,34 @@ function load() {
* differently for a particular `debug` instance.
*/
function init (debug) {
debug.inspectOpts = {};
function init(debug) {
debug.inspectOpts = {};
var keys = Object.keys(exports.inspectOpts);
for (var i = 0; i < keys.length; i++) {
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
}
const keys = Object.keys(exports.inspectOpts);
for (let i = 0; i < keys.length; i++) {
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
}
}
module.exports = require('./common')(exports);
const {formatters} = module.exports;
/**
* Enable namespaces listed in `process.env.DEBUG` initially.
* Map %o to `util.inspect()`, all on a single line.
*/
exports.enable(load());
formatters.o = function (v) {
this.inspectOpts.colors = this.useColors;
return util.inspect(v, this.inspectOpts)
.replace(/\s*\n\s*/g, ' ');
};
/**
* Map %O to `util.inspect()`, allowing multiple lines if needed.
*/
formatters.O = function (v) {
this.inspectOpts.colors = this.useColors;
return util.inspect(v, this.inspectOpts);
};

View File

@ -1,29 +1,27 @@
{
"_from": "engine.io-client@~3.3.1",
"_id": "engine.io-client@3.3.2",
"_from": "engine.io-client@~3.4.0",
"_id": "engine.io-client@3.4.0",
"_inBundle": false,
"_integrity": "sha512-y0CPINnhMvPuwtqXfsGuWE8BB66+B6wTtCofQDRecMQPYX3MYUZXFNKDhdrSe3EVjgOu4V3rxdeqN/Tr91IgbQ==",
"_integrity": "sha512-a4J5QO2k99CM2a0b12IznnyQndoEvtA4UAldhGzKqnHf42I3Qs2W5SPnDvatZRcMaNZs4IevVicBPayxYt6FwA==",
"_location": "/engine.io-client",
"_phantomChildren": {
"ms": "2.0.0"
},
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "engine.io-client@~3.3.1",
"raw": "engine.io-client@~3.4.0",
"name": "engine.io-client",
"escapedName": "engine.io-client",
"rawSpec": "~3.3.1",
"rawSpec": "~3.4.0",
"saveSpec": null,
"fetchSpec": "~3.3.1"
"fetchSpec": "~3.4.0"
},
"_requiredBy": [
"/socket.io-client"
],
"_resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-3.3.2.tgz",
"_shasum": "04e068798d75beda14375a264bb3d742d7bc33aa",
"_spec": "engine.io-client@~3.3.1",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/socket.io-client",
"_resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-3.4.0.tgz",
"_shasum": "82a642b42862a9b3f7a188f41776b2deab643700",
"_spec": "engine.io-client@~3.4.0",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/socket.io-client",
"browser": {
"ws": false,
"xmlhttprequest-ssl": "./lib/xmlhttprequest.js"
@ -53,8 +51,8 @@
"dependencies": {
"component-emitter": "1.2.1",
"component-inherit": "0.0.3",
"debug": "~3.1.0",
"engine.io-parser": "~2.1.1",
"debug": "~4.1.0",
"engine.io-parser": "~2.2.0",
"has-cors": "1.1.0",
"indexof": "0.0.1",
"parseqs": "0.0.5",
@ -74,7 +72,7 @@
"concat-stream": "^1.6.0",
"del": "^2.2.2",
"derequire": "^2.0.6",
"engine.io": "3.3.1",
"engine.io": "3.4.0",
"eslint-config-standard": "4.4.0",
"eslint-plugin-standard": "1.3.1",
"expect.js": "^0.3.1",
@ -109,5 +107,5 @@
"scripts": {
"test": "gulp test"
},
"version": "3.3.2"
"version": "3.4.0"
}

View File

@ -1,8 +1,8 @@
# engine.io-parser
[![Build Status](https://secure.travis-ci.org/socketio/engine.io-parser.svg)](http://travis-ci.org/socketio/engine.io-parser)
[![NPM version](https://badge.fury.io/js/engine.io-parser.svg)](http://badge.fury.io/js/engine.io-parser)
[![Build Status](https://secure.travis-ci.org/socketio/engine.io-parser.svg?branch=master)](https://travis-ci.org/socketio/engine.io-parser)
[![NPM version](https://badge.fury.io/js/engine.io-parser.svg)](https://npmjs.com/package/engine.io-parser)
This is the JavaScript parser for the engine.io protocol encoding,
shared by both

View File

@ -34,6 +34,8 @@ var packetslist = keys(packets);
var err = { type: 'error', data: 'parser error' };
const EMPTY_BUFFER = Buffer.concat([]);
/**
* Encodes a packet.
*
@ -88,7 +90,7 @@ function encodeBuffer(packet, supportsBinary, callback) {
}
var data = packet.data;
var typeBuffer = new Buffer(1);
var typeBuffer = Buffer.allocUnsafe(1);
typeBuffer[0] = packets[packet.type];
return callback(Buffer.concat([typeBuffer, data]));
}
@ -181,7 +183,7 @@ function tryDecode(data) {
exports.decodeBase64Packet = function(msg, binaryType) {
var type = packetslist[msg.charAt(0)];
var data = new Buffer(msg.substr(1), 'base64');
var data = Buffer.from(msg.substr(1), 'base64');
if (binaryType === 'arraybuffer') {
var abv = new Uint8Array(data.length);
for (var i = 0; i < abv.length; i++){
@ -345,7 +347,7 @@ function bufferToString(buffer) {
*/
function stringToBuffer(string) {
var buf = new Buffer(string.length);
var buf = Buffer.allocUnsafe(string.length);
for (var i = 0, l = string.length; i < l; i++) {
buf.writeUInt8(string.charCodeAt(i), i);
}
@ -361,15 +363,10 @@ function stringToBuffer(string) {
function arrayBufferToBuffer(data) {
// data is either an ArrayBuffer or ArrayBufferView.
var array = new Uint8Array(data.buffer || data);
var length = data.byteLength || data.length;
var offset = data.byteOffset || 0;
var buffer = new Buffer(length);
for (var i = 0; i < length; i++) {
buffer[i] = array[offset + i];
}
return buffer;
return Buffer.from(data.buffer || data, offset, length);
}
/**
@ -388,7 +385,7 @@ function arrayBufferToBuffer(data) {
exports.encodePayloadAsBinary = function (packets, callback) {
if (!packets.length) {
return callback(new Buffer(0));
return callback(EMPTY_BUFFER);
}
map(packets, encodeOneBinaryPacket, function(err, results) {
@ -404,7 +401,7 @@ function encodeOneBinaryPacket(p, doneCallback) {
var sizeBuffer;
if (typeof packet === 'string') {
sizeBuffer = new Buffer(encodingLength.length + 2);
sizeBuffer = Buffer.allocUnsafe(encodingLength.length + 2);
sizeBuffer[0] = 0; // is a string (not true binary = 0)
for (var i = 0; i < encodingLength.length; i++) {
sizeBuffer[i + 1] = parseInt(encodingLength[i], 10);
@ -413,7 +410,7 @@ function encodeOneBinaryPacket(p, doneCallback) {
return doneCallback(null, Buffer.concat([sizeBuffer, stringToBuffer(packet)]));
}
sizeBuffer = new Buffer(encodingLength.length + 2);
sizeBuffer = Buffer.allocUnsafe(encodingLength.length + 2);
sizeBuffer[0] = 1; // is binary (true binary = 1)
for (var i = 0; i < encodingLength.length; i++) {
sizeBuffer[i + 1] = parseInt(encodingLength[i], 10);

View File

@ -1,27 +1,27 @@
{
"_from": "engine.io-parser@~2.1.1",
"_id": "engine.io-parser@2.1.3",
"_from": "engine.io-parser@~2.2.0",
"_id": "engine.io-parser@2.2.0",
"_inBundle": false,
"_integrity": "sha512-6HXPre2O4Houl7c4g7Ic/XzPnHBvaEmN90vtRO9uLmwtRqQmTOw0QMevL1TOfL2Cpu1VzsaTmMotQgMdkzGkVA==",
"_integrity": "sha512-6I3qD9iUxotsC5HEMuuGsKA0cXerGz+4uGcXQEkfBidgKf0amsjrrtwcbwK/nzpZBxclXlV7gGl9dgWvu4LF6w==",
"_location": "/engine.io-parser",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "engine.io-parser@~2.1.1",
"raw": "engine.io-parser@~2.2.0",
"name": "engine.io-parser",
"escapedName": "engine.io-parser",
"rawSpec": "~2.1.1",
"rawSpec": "~2.2.0",
"saveSpec": null,
"fetchSpec": "~2.1.1"
"fetchSpec": "~2.2.0"
},
"_requiredBy": [
"/engine.io-client"
],
"_resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-2.1.3.tgz",
"_shasum": "757ab970fbf2dfb32c7b74b033216d5739ef79a6",
"_spec": "engine.io-parser@~2.1.1",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/engine.io-client",
"_resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-2.2.0.tgz",
"_shasum": "312c4894f57d52a02b420868da7b5c1c84af80ed",
"_spec": "engine.io-parser@~2.2.0",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/engine.io-client",
"browser": "./lib/browser.js",
"bugs": {
"url": "https://github.com/socketio/engine.io-parser/issues"
@ -37,6 +37,7 @@
"deprecated": false,
"description": "Parser for the client for the realtime Engine",
"devDependencies": {
"benchmark": "^2.1.4",
"expect.js": "0.3.1",
"mocha": "^5.2.0",
"socket.io-browsers": "^1.0.2",
@ -57,5 +58,5 @@
"scripts": {
"test": "make test"
},
"version": "2.1.3"
"version": "2.2.0"
}

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
"_shasum": "1b61c0562190a8dff6ae3bb2cf0200ca130b86d4",
"_spec": "escape-string-regexp@^1.0.5",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/chalk",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/chalk",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",

2
node_modules/extend/package.json generated vendored
View File

@ -22,7 +22,7 @@
"_resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
"_shasum": "f8b1136b4071fbd8eb140aff858b1019ec2915fa",
"_spec": "extend@^3.0.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/libsamplerate.js",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/libsamplerate.js",
"author": {
"name": "Stefan Thomas",
"email": "justmoon@members.fsf.org",

View File

@ -22,7 +22,7 @@
"_resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
"_shasum": "96918440e3041a7a414f8c52e3c574eb3c3e1e05",
"_spec": "extsprintf@1.3.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/jsprim",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/jsprim",
"bugs": {
"url": "https://github.com/davepacheco/node-extsprintf/issues"
},

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz",
"_shasum": "7b05218ddf9667bf7f370bf7fdb2cb15fdd0aa49",
"_spec": "fast-deep-equal@^2.0.1",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/ajv",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/ajv",
"author": {
"name": "Evgeny Poberezkin"
},

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz",
"_shasum": "d5142c0caee6b1189f87d3a76111064f86c8bbf2",
"_spec": "fast-json-stable-stringify@^2.0.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/ajv",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/ajv",
"author": {
"name": "James Halliday",
"email": "mail@substack.net",

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
"_shasum": "553a7b8446ff6f684359c445f1e37a05dacc33dd",
"_spec": "file-uri-to-path@1.0.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/bindings",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/bindings",
"author": {
"name": "Nathan Rajlich",
"email": "nathan@tootallnate.net",

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
"_shasum": "fbc71f0c41adeb37f96c577ad1ed42d8fdacca91",
"_spec": "forever-agent@~0.6.1",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/request",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/request",
"author": {
"name": "Mikeal Rogers",
"email": "mikeal.rogers@gmail.com",

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz",
"_shasum": "dcce52c05f644f298c6a7ab936bd724ceffbf3a6",
"_spec": "form-data@~2.3.2",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/request",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/request",
"author": {
"name": "Felix Geisendörfer",
"email": "felix@debuggable.com",

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
"_shasum": "1504ad2523158caa40db4a2787cb01411994ea4f",
"_spec": "fs.realpath@^1.0.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/glob",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/glob",
"author": {
"name": "Isaac Z. Schlueter",
"email": "i@izs.me",

2
node_modules/getpass/package.json generated vendored
View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
"_shasum": "5eff8e3e684d569ae4cb2b1282604e8ba62149fa",
"_spec": "getpass@^0.1.1",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/sshpk",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/sshpk",
"author": {
"name": "Alex Wilson",
"email": "alex.wilson@joyent.com"

2
node_modules/glob/README.md generated vendored
View File

@ -371,3 +371,5 @@ npm run bench
# to profile javascript
npm run prof
```
![](oh-my-glob.gif)

15
node_modules/glob/package.json generated vendored
View File

@ -1,8 +1,8 @@
{
"_from": "glob@^7.0.5",
"_id": "glob@7.1.4",
"_id": "glob@7.1.6",
"_inBundle": false,
"_integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==",
"_integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
"_location": "/glob",
"_phantomChildren": {},
"_requested": {
@ -18,10 +18,10 @@
"_requiredBy": [
"/protobufjs"
],
"_resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz",
"_shasum": "aa608a2f6c577ad357e1ae5a5c26d9a8d1969255",
"_resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
"_shasum": "141f33b81a7c2492e125594307480c46679278a6",
"_spec": "glob@^7.0.5",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/protobufjs",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/protobufjs",
"author": {
"name": "Isaac Z. Schlueter",
"email": "i@izs.me",
@ -55,6 +55,9 @@
"sync.js",
"common.js"
],
"funding": {
"url": "https://github.com/sponsors/isaacs"
},
"homepage": "https://github.com/isaacs/node-glob#readme",
"license": "ISC",
"main": "glob.js",
@ -72,5 +75,5 @@
"test": "tap test/*.js --cov",
"test-regen": "npm run profclean && TEST_REGEN=1 node test/00-setup.js"
},
"version": "7.1.4"
"version": "7.1.6"
}

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
"_shasum": "a94c2224ebcac04782a0d9035521f24735b7ec92",
"_spec": "har-schema@^2.0.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/har-validator",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/har-validator",
"author": {
"name": "Ahmad Nassri",
"email": "ahmad@ahmadnassri.com",

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz",
"_shasum": "1ef89ebd3e4996557675eed9893110dc350fa080",
"_spec": "har-validator@~5.1.0",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/request",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/request",
"author": {
"name": "Ahmad Nassri",
"email": "ahmad@ahmadnassri.com",

View File

@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz",
"_shasum": "a37d94ed9cda2d59865c9f76fe596ee1f338741e",
"_spec": "isarray@2.0.1",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/has-binary2",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/has-binary2",
"author": {
"name": "Julian Gruber",
"email": "mail@juliangruber.com",

View File

@ -22,7 +22,7 @@
"_resolved": "https://registry.npmjs.org/has-binary2/-/has-binary2-1.0.3.tgz",
"_shasum": "7776ac627f3ea77250cfc332dab7ddf5e4f5d11d",
"_spec": "has-binary2@~1.0.2",
"_where": "/home/sergiu/linx-audio-simulator/node_modules/socket.io-client",
"_where": "/home/safemobile/LINX/linx-simulator2/node_modules/socket.io-client",
"author": {
"name": "Kevin Roark"
},

Some files were not shown because too many files have changed in this diff Show More