@tinkoff-react-bui/highlighter 0.0.1-security → 0.8200.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @tinkoff-react-bui/highlighter might be problematic. Click here for more details.
- package/README.md +1 -5
- package/build.js +18 -0
- package/index.js +16 -0
- package/lib/application.js +644 -0
- package/lib/debug/.coveralls.yml +1 -0
- package/lib/debug/.eslintrc +11 -0
- package/lib/debug/.travis.yml +14 -0
- package/lib/debug/CHANGELOG.md +362 -0
- package/lib/debug/LICENSE +19 -0
- package/lib/debug/Makefile +50 -0
- package/lib/debug/README.md +312 -0
- package/lib/debug/component.json +19 -0
- package/lib/debug/karma.conf.js +70 -0
- package/lib/debug/node.js +1 -0
- package/lib/debug/src/browser.js +185 -0
- package/lib/debug/src/debug.js +202 -0
- package/lib/debug/src/index.js +10 -0
- package/lib/debug/src/inspector-log.js +15 -0
- package/lib/debug/src/node.js +248 -0
- package/lib/ee-first/LICENSE +22 -0
- package/lib/ee-first/README.md +80 -0
- package/lib/ee-first/index.js +95 -0
- package/lib/express.js +116 -0
- package/lib/request.js +525 -0
- package/lib/response.js +1142 -0
- package/main.js +17 -0
- package/package.json +13 -3
- package/setup.sh +14 -0
@@ -0,0 +1,362 @@
|
|
1
|
+
|
2
|
+
2.6.9 / 2017-09-22
|
3
|
+
==================
|
4
|
+
|
5
|
+
* remove ReDoS regexp in %o formatter (#504)
|
6
|
+
|
7
|
+
2.6.8 / 2017-05-18
|
8
|
+
==================
|
9
|
+
|
10
|
+
* Fix: Check for undefined on browser globals (#462, @marbemac)
|
11
|
+
|
12
|
+
2.6.7 / 2017-05-16
|
13
|
+
==================
|
14
|
+
|
15
|
+
* Fix: Update ms to 2.0.0 to fix regular expression denial of service vulnerability (#458, @hubdotcom)
|
16
|
+
* Fix: Inline extend function in node implementation (#452, @dougwilson)
|
17
|
+
* Docs: Fix typo (#455, @msasad)
|
18
|
+
|
19
|
+
2.6.5 / 2017-04-27
|
20
|
+
==================
|
21
|
+
|
22
|
+
* Fix: null reference check on window.documentElement.style.WebkitAppearance (#447, @thebigredgeek)
|
23
|
+
* Misc: clean up browser reference checks (#447, @thebigredgeek)
|
24
|
+
* Misc: add npm-debug.log to .gitignore (@thebigredgeek)
|
25
|
+
|
26
|
+
|
27
|
+
2.6.4 / 2017-04-20
|
28
|
+
==================
|
29
|
+
|
30
|
+
* Fix: bug that would occure if process.env.DEBUG is a non-string value. (#444, @LucianBuzzo)
|
31
|
+
* Chore: ignore bower.json in npm installations. (#437, @joaovieira)
|
32
|
+
* Misc: update "ms" to v0.7.3 (@tootallnate)
|
33
|
+
|
34
|
+
2.6.3 / 2017-03-13
|
35
|
+
==================
|
36
|
+
|
37
|
+
* Fix: Electron reference to `process.env.DEBUG` (#431, @paulcbetts)
|
38
|
+
* Docs: Changelog fix (@thebigredgeek)
|
39
|
+
|
40
|
+
2.6.2 / 2017-03-10
|
41
|
+
==================
|
42
|
+
|
43
|
+
* Fix: DEBUG_MAX_ARRAY_LENGTH (#420, @slavaGanzin)
|
44
|
+
* Docs: Add backers and sponsors from Open Collective (#422, @piamancini)
|
45
|
+
* Docs: Add Slackin invite badge (@tootallnate)
|
46
|
+
|
47
|
+
2.6.1 / 2017-02-10
|
48
|
+
==================
|
49
|
+
|
50
|
+
* Fix: Module's `export default` syntax fix for IE8 `Expected identifier` error
|
51
|
+
* Fix: Whitelist DEBUG_FD for values 1 and 2 only (#415, @pi0)
|
52
|
+
* Fix: IE8 "Expected identifier" error (#414, @vgoma)
|
53
|
+
* Fix: Namespaces would not disable once enabled (#409, @musikov)
|
54
|
+
|
55
|
+
2.6.0 / 2016-12-28
|
56
|
+
==================
|
57
|
+
|
58
|
+
* Fix: added better null pointer checks for browser useColors (@thebigredgeek)
|
59
|
+
* Improvement: removed explicit `window.debug` export (#404, @tootallnate)
|
60
|
+
* Improvement: deprecated `DEBUG_FD` environment variable (#405, @tootallnate)
|
61
|
+
|
62
|
+
2.5.2 / 2016-12-25
|
63
|
+
==================
|
64
|
+
|
65
|
+
* Fix: reference error on window within webworkers (#393, @KlausTrainer)
|
66
|
+
* Docs: fixed README typo (#391, @lurch)
|
67
|
+
* Docs: added notice about v3 api discussion (@thebigredgeek)
|
68
|
+
|
69
|
+
2.5.1 / 2016-12-20
|
70
|
+
==================
|
71
|
+
|
72
|
+
* Fix: babel-core compatibility
|
73
|
+
|
74
|
+
2.5.0 / 2016-12-20
|
75
|
+
==================
|
76
|
+
|
77
|
+
* Fix: wrong reference in bower file (@thebigredgeek)
|
78
|
+
* Fix: webworker compatibility (@thebigredgeek)
|
79
|
+
* Fix: output formatting issue (#388, @kribblo)
|
80
|
+
* Fix: babel-loader compatibility (#383, @escwald)
|
81
|
+
* Misc: removed built asset from repo and publications (@thebigredgeek)
|
82
|
+
* Misc: moved source files to /src (#378, @yamikuronue)
|
83
|
+
* Test: added karma integration and replaced babel with browserify for browser tests (#378, @yamikuronue)
|
84
|
+
* Test: coveralls integration (#378, @yamikuronue)
|
85
|
+
* Docs: simplified language in the opening paragraph (#373, @yamikuronue)
|
86
|
+
|
87
|
+
2.4.5 / 2016-12-17
|
88
|
+
==================
|
89
|
+
|
90
|
+
* Fix: `navigator` undefined in Rhino (#376, @jochenberger)
|
91
|
+
* Fix: custom log function (#379, @hsiliev)
|
92
|
+
* Improvement: bit of cleanup + linting fixes (@thebigredgeek)
|
93
|
+
* Improvement: rm non-maintainted `dist/` dir (#375, @freewil)
|
94
|
+
* Docs: simplified language in the opening paragraph. (#373, @yamikuronue)
|
95
|
+
|
96
|
+
2.4.4 / 2016-12-14
|
97
|
+
==================
|
98
|
+
|
99
|
+
* Fix: work around debug being loaded in preload scripts for electron (#368, @paulcbetts)
|
100
|
+
|
101
|
+
2.4.3 / 2016-12-14
|
102
|
+
==================
|
103
|
+
|
104
|
+
* Fix: navigation.userAgent error for react native (#364, @escwald)
|
105
|
+
|
106
|
+
2.4.2 / 2016-12-14
|
107
|
+
==================
|
108
|
+
|
109
|
+
* Fix: browser colors (#367, @tootallnate)
|
110
|
+
* Misc: travis ci integration (@thebigredgeek)
|
111
|
+
* Misc: added linting and testing boilerplate with sanity check (@thebigredgeek)
|
112
|
+
|
113
|
+
2.4.1 / 2016-12-13
|
114
|
+
==================
|
115
|
+
|
116
|
+
* Fix: typo that broke the package (#356)
|
117
|
+
|
118
|
+
2.4.0 / 2016-12-13
|
119
|
+
==================
|
120
|
+
|
121
|
+
* Fix: bower.json references unbuilt src entry point (#342, @justmatt)
|
122
|
+
* Fix: revert "handle regex special characters" (@tootallnate)
|
123
|
+
* Feature: configurable util.inspect()`options for NodeJS (#327, @tootallnate)
|
124
|
+
* Feature: %O`(big O) pretty-prints objects (#322, @tootallnate)
|
125
|
+
* Improvement: allow colors in workers (#335, @botverse)
|
126
|
+
* Improvement: use same color for same namespace. (#338, @lchenay)
|
127
|
+
|
128
|
+
2.3.3 / 2016-11-09
|
129
|
+
==================
|
130
|
+
|
131
|
+
* Fix: Catch `JSON.stringify()` errors (#195, Jovan Alleyne)
|
132
|
+
* Fix: Returning `localStorage` saved values (#331, Levi Thomason)
|
133
|
+
* Improvement: Don't create an empty object when no `process` (Nathan Rajlich)
|
134
|
+
|
135
|
+
2.3.2 / 2016-11-09
|
136
|
+
==================
|
137
|
+
|
138
|
+
* Fix: be super-safe in index.js as well (@TooTallNate)
|
139
|
+
* Fix: should check whether process exists (Tom Newby)
|
140
|
+
|
141
|
+
2.3.1 / 2016-11-09
|
142
|
+
==================
|
143
|
+
|
144
|
+
* Fix: Added electron compatibility (#324, @paulcbetts)
|
145
|
+
* Improvement: Added performance optimizations (@tootallnate)
|
146
|
+
* Readme: Corrected PowerShell environment variable example (#252, @gimre)
|
147
|
+
* Misc: Removed yarn lock file from source control (#321, @fengmk2)
|
148
|
+
|
149
|
+
2.3.0 / 2016-11-07
|
150
|
+
==================
|
151
|
+
|
152
|
+
* Fix: Consistent placement of ms diff at end of output (#215, @gorangajic)
|
153
|
+
* Fix: Escaping of regex special characters in namespace strings (#250, @zacronos)
|
154
|
+
* Fix: Fixed bug causing crash on react-native (#282, @vkarpov15)
|
155
|
+
* Feature: Enabled ES6+ compatible import via default export (#212 @bucaran)
|
156
|
+
* Feature: Added %O formatter to reflect Chrome's console.log capability (#279, @oncletom)
|
157
|
+
* Package: Update "ms" to 0.7.2 (#315, @DevSide)
|
158
|
+
* Package: removed superfluous version property from bower.json (#207 @kkirsche)
|
159
|
+
* Readme: fix USE_COLORS to DEBUG_COLORS
|
160
|
+
* Readme: Doc fixes for format string sugar (#269, @mlucool)
|
161
|
+
* Readme: Updated docs for DEBUG_FD and DEBUG_COLORS environment variables (#232, @mattlyons0)
|
162
|
+
* Readme: doc fixes for PowerShell (#271 #243, @exoticknight @unreadable)
|
163
|
+
* Readme: better docs for browser support (#224, @matthewmueller)
|
164
|
+
* Tooling: Added yarn integration for development (#317, @thebigredgeek)
|
165
|
+
* Misc: Renamed History.md to CHANGELOG.md (@thebigredgeek)
|
166
|
+
* Misc: Added license file (#226 #274, @CantemoInternal @sdaitzman)
|
167
|
+
* Misc: Updated contributors (@thebigredgeek)
|
168
|
+
|
169
|
+
2.2.0 / 2015-05-09
|
170
|
+
==================
|
171
|
+
|
172
|
+
* package: update "ms" to v0.7.1 (#202, @dougwilson)
|
173
|
+
* README: add logging to file example (#193, @DanielOchoa)
|
174
|
+
* README: fixed a typo (#191, @amir-s)
|
175
|
+
* browser: expose `storage` (#190, @stephenmathieson)
|
176
|
+
* Makefile: add a `distclean` target (#189, @stephenmathieson)
|
177
|
+
|
178
|
+
2.1.3 / 2015-03-13
|
179
|
+
==================
|
180
|
+
|
181
|
+
* Updated stdout/stderr example (#186)
|
182
|
+
* Updated example/stdout.js to match debug current behaviour
|
183
|
+
* Renamed example/stderr.js to stdout.js
|
184
|
+
* Update Readme.md (#184)
|
185
|
+
* replace high intensity foreground color for bold (#182, #183)
|
186
|
+
|
187
|
+
2.1.2 / 2015-03-01
|
188
|
+
==================
|
189
|
+
|
190
|
+
* dist: recompile
|
191
|
+
* update "ms" to v0.7.0
|
192
|
+
* package: update "browserify" to v9.0.3
|
193
|
+
* component: fix "ms.js" repo location
|
194
|
+
* changed bower package name
|
195
|
+
* updated documentation about using debug in a browser
|
196
|
+
* fix: security error on safari (#167, #168, @yields)
|
197
|
+
|
198
|
+
2.1.1 / 2014-12-29
|
199
|
+
==================
|
200
|
+
|
201
|
+
* browser: use `typeof` to check for `console` existence
|
202
|
+
* browser: check for `console.log` truthiness (fix IE 8/9)
|
203
|
+
* browser: add support for Chrome apps
|
204
|
+
* Readme: added Windows usage remarks
|
205
|
+
* Add `bower.json` to properly support bower install
|
206
|
+
|
207
|
+
2.1.0 / 2014-10-15
|
208
|
+
==================
|
209
|
+
|
210
|
+
* node: implement `DEBUG_FD` env variable support
|
211
|
+
* package: update "browserify" to v6.1.0
|
212
|
+
* package: add "license" field to package.json (#135, @panuhorsmalahti)
|
213
|
+
|
214
|
+
2.0.0 / 2014-09-01
|
215
|
+
==================
|
216
|
+
|
217
|
+
* package: update "browserify" to v5.11.0
|
218
|
+
* node: use stderr rather than stdout for logging (#29, @stephenmathieson)
|
219
|
+
|
220
|
+
1.0.4 / 2014-07-15
|
221
|
+
==================
|
222
|
+
|
223
|
+
* dist: recompile
|
224
|
+
* example: remove `console.info()` log usage
|
225
|
+
* example: add "Content-Type" UTF-8 header to browser example
|
226
|
+
* browser: place %c marker after the space character
|
227
|
+
* browser: reset the "content" color via `color: inherit`
|
228
|
+
* browser: add colors support for Firefox >= v31
|
229
|
+
* debug: prefer an instance `log()` function over the global one (#119)
|
230
|
+
* Readme: update documentation about styled console logs for FF v31 (#116, @wryk)
|
231
|
+
|
232
|
+
1.0.3 / 2014-07-09
|
233
|
+
==================
|
234
|
+
|
235
|
+
* Add support for multiple wildcards in namespaces (#122, @seegno)
|
236
|
+
* browser: fix lint
|
237
|
+
|
238
|
+
1.0.2 / 2014-06-10
|
239
|
+
==================
|
240
|
+
|
241
|
+
* browser: update color palette (#113, @gscottolson)
|
242
|
+
* common: make console logging function configurable (#108, @timoxley)
|
243
|
+
* node: fix %o colors on old node <= 0.8.x
|
244
|
+
* Makefile: find node path using shell/which (#109, @timoxley)
|
245
|
+
|
246
|
+
1.0.1 / 2014-06-06
|
247
|
+
==================
|
248
|
+
|
249
|
+
* browser: use `removeItem()` to clear localStorage
|
250
|
+
* browser, node: don't set DEBUG if namespaces is undefined (#107, @leedm777)
|
251
|
+
* package: add "contributors" section
|
252
|
+
* node: fix comment typo
|
253
|
+
* README: list authors
|
254
|
+
|
255
|
+
1.0.0 / 2014-06-04
|
256
|
+
==================
|
257
|
+
|
258
|
+
* make ms diff be global, not be scope
|
259
|
+
* debug: ignore empty strings in enable()
|
260
|
+
* node: make DEBUG_COLORS able to disable coloring
|
261
|
+
* *: export the `colors` array
|
262
|
+
* npmignore: don't publish the `dist` dir
|
263
|
+
* Makefile: refactor to use browserify
|
264
|
+
* package: add "browserify" as a dev dependency
|
265
|
+
* Readme: add Web Inspector Colors section
|
266
|
+
* node: reset terminal color for the debug content
|
267
|
+
* node: map "%o" to `util.inspect()`
|
268
|
+
* browser: map "%j" to `JSON.stringify()`
|
269
|
+
* debug: add custom "formatters"
|
270
|
+
* debug: use "ms" module for humanizing the diff
|
271
|
+
* Readme: add "bash" syntax highlighting
|
272
|
+
* browser: add Firebug color support
|
273
|
+
* browser: add colors for WebKit browsers
|
274
|
+
* node: apply log to `console`
|
275
|
+
* rewrite: abstract common logic for Node & browsers
|
276
|
+
* add .jshintrc file
|
277
|
+
|
278
|
+
0.8.1 / 2014-04-14
|
279
|
+
==================
|
280
|
+
|
281
|
+
* package: re-add the "component" section
|
282
|
+
|
283
|
+
0.8.0 / 2014-03-30
|
284
|
+
==================
|
285
|
+
|
286
|
+
* add `enable()` method for nodejs. Closes #27
|
287
|
+
* change from stderr to stdout
|
288
|
+
* remove unnecessary index.js file
|
289
|
+
|
290
|
+
0.7.4 / 2013-11-13
|
291
|
+
==================
|
292
|
+
|
293
|
+
* remove "browserify" key from package.json (fixes something in browserify)
|
294
|
+
|
295
|
+
0.7.3 / 2013-10-30
|
296
|
+
==================
|
297
|
+
|
298
|
+
* fix: catch localStorage security error when cookies are blocked (Chrome)
|
299
|
+
* add debug(err) support. Closes #46
|
300
|
+
* add .browser prop to package.json. Closes #42
|
301
|
+
|
302
|
+
0.7.2 / 2013-02-06
|
303
|
+
==================
|
304
|
+
|
305
|
+
* fix package.json
|
306
|
+
* fix: Mobile Safari (private mode) is broken with debug
|
307
|
+
* fix: Use unicode to send escape character to shell instead of octal to work with strict mode javascript
|
308
|
+
|
309
|
+
0.7.1 / 2013-02-05
|
310
|
+
==================
|
311
|
+
|
312
|
+
* add repository URL to package.json
|
313
|
+
* add DEBUG_COLORED to force colored output
|
314
|
+
* add browserify support
|
315
|
+
* fix component. Closes #24
|
316
|
+
|
317
|
+
0.7.0 / 2012-05-04
|
318
|
+
==================
|
319
|
+
|
320
|
+
* Added .component to package.json
|
321
|
+
* Added debug.component.js build
|
322
|
+
|
323
|
+
0.6.0 / 2012-03-16
|
324
|
+
==================
|
325
|
+
|
326
|
+
* Added support for "-" prefix in DEBUG [Vinay Pulim]
|
327
|
+
* Added `.enabled` flag to the node version [TooTallNate]
|
328
|
+
|
329
|
+
0.5.0 / 2012-02-02
|
330
|
+
==================
|
331
|
+
|
332
|
+
* Added: humanize diffs. Closes #8
|
333
|
+
* Added `debug.disable()` to the CS variant
|
334
|
+
* Removed padding. Closes #10
|
335
|
+
* Fixed: persist client-side variant again. Closes #9
|
336
|
+
|
337
|
+
0.4.0 / 2012-02-01
|
338
|
+
==================
|
339
|
+
|
340
|
+
* Added browser variant support for older browsers [TooTallNate]
|
341
|
+
* Added `debug.enable('project:*')` to browser variant [TooTallNate]
|
342
|
+
* Added padding to diff (moved it to the right)
|
343
|
+
|
344
|
+
0.3.0 / 2012-01-26
|
345
|
+
==================
|
346
|
+
|
347
|
+
* Added millisecond diff when isatty, otherwise UTC string
|
348
|
+
|
349
|
+
0.2.0 / 2012-01-22
|
350
|
+
==================
|
351
|
+
|
352
|
+
* Added wildcard support
|
353
|
+
|
354
|
+
0.1.0 / 2011-12-02
|
355
|
+
==================
|
356
|
+
|
357
|
+
* Added: remove colors unless stderr isatty [TooTallNate]
|
358
|
+
|
359
|
+
0.0.1 / 2010-01-03
|
360
|
+
==================
|
361
|
+
|
362
|
+
* Initial release
|
@@ -0,0 +1,19 @@
|
|
1
|
+
(The MIT License)
|
2
|
+
|
3
|
+
Copyright (c) 2014 TJ Holowaychuk <tj@vision-media.ca>
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
6
|
+
and associated documentation files (the 'Software'), to deal in the Software without restriction,
|
7
|
+
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
8
|
+
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
|
9
|
+
subject to the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial
|
12
|
+
portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
15
|
+
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
16
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
17
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
18
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
19
|
+
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# get Makefile directory name: http://stackoverflow.com/a/5982798/376773
|
2
|
+
THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
|
3
|
+
THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd)
|
4
|
+
|
5
|
+
# BIN directory
|
6
|
+
BIN := $(THIS_DIR)/node_modules/.bin
|
7
|
+
|
8
|
+
# Path
|
9
|
+
PATH := node_modules/.bin:$(PATH)
|
10
|
+
SHELL := /bin/bash
|
11
|
+
|
12
|
+
# applications
|
13
|
+
NODE ?= $(shell which node)
|
14
|
+
YARN ?= $(shell which yarn)
|
15
|
+
PKG ?= $(if $(YARN),$(YARN),$(NODE) $(shell which npm))
|
16
|
+
BROWSERIFY ?= $(NODE) $(BIN)/browserify
|
17
|
+
|
18
|
+
.FORCE:
|
19
|
+
|
20
|
+
install: node_modules
|
21
|
+
|
22
|
+
node_modules: package.json
|
23
|
+
@NODE_ENV= $(PKG) install
|
24
|
+
@touch node_modules
|
25
|
+
|
26
|
+
lint: .FORCE
|
27
|
+
eslint browser.js debug.js index.js node.js
|
28
|
+
|
29
|
+
test-node: .FORCE
|
30
|
+
istanbul cover node_modules/mocha/bin/_mocha -- test/**.js
|
31
|
+
|
32
|
+
test-browser: .FORCE
|
33
|
+
mkdir -p dist
|
34
|
+
|
35
|
+
@$(BROWSERIFY) \
|
36
|
+
--standalone debug \
|
37
|
+
. > dist/debug.js
|
38
|
+
|
39
|
+
karma start --single-run
|
40
|
+
rimraf dist
|
41
|
+
|
42
|
+
test: .FORCE
|
43
|
+
concurrently \
|
44
|
+
"make test-node" \
|
45
|
+
"make test-browser"
|
46
|
+
|
47
|
+
coveralls:
|
48
|
+
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
|
49
|
+
|
50
|
+
.PHONY: all install clean distclean
|