Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/safe-regex.json

raw
1 {
2 "_id": "safe-regex",
3 "_rev": "39-8cc87500ee57f5c169a346988301dea8",
4 "name": "safe-regex",
5 "description": "detect possibly catastrophic, exponential-time regular expressions",
6 "dist-tags": {
7 "latest": "2.1.1"
8 },
9 "versions": {
10 "0.0.0": {
11 "name": "safe-regex",
12 "version": "0.0.0",
13 "description": "detect possibly catastrophic, exponential-time regular expressions",
14 "main": "index.js",
15 "dependencies": {
16 "ret": "~0.1.6"
17 },
18 "devDependencies": {
19 "tape": "~1.0.4"
20 },
21 "scripts": {
22 "test": "tape test/*.js"
23 },
24 "testling": {
25 "files": "test/*.js",
26 "browsers": [
27 "ie/8",
28 "ie/9",
29 "ie/10",
30 "firefox/latest",
31 "chrome/latest",
32 "opera/latest",
33 "safari/latest"
34 ]
35 },
36 "repository": {
37 "type": "git",
38 "url": "git://github.com/substack/safe-regex.git"
39 },
40 "homepage": "https://github.com/substack/safe-regex",
41 "keywords": [
42 "catastrophic",
43 "exponential",
44 "regex",
45 "safe",
46 "sandbox"
47 ],
48 "author": {
49 "name": "James Halliday",
50 "email": "[email protected]",
51 "url": "http://substack.net"
52 },
53 "license": "MIT",
54 "bugs": {
55 "url": "https://github.com/substack/safe-regex/issues"
56 },
57 "_id": "[email protected]",
58 "dist": {
59 "shasum": "9a9ae1f35a6ea8047b6ea6ecf9c05143e1efc3ab",
60 "tarball": "https://registry.npmjs.org/safe-regex/-/safe-regex-0.0.0.tgz"
61 },
62 "_from": ".",
63 "_npmVersion": "1.3.0",
64 "_npmUser": {
65 "name": "substack",
66 "email": "[email protected]"
67 },
68 "maintainers": [
69 {
70 "name": "substack",
71 "email": "[email protected]"
72 }
73 ],
74 "directories": {}
75 },
76 "0.0.1": {
77 "name": "safe-regex",
78 "version": "0.0.1",
79 "description": "detect possibly catastrophic, exponential-time regular expressions",
80 "main": "index.js",
81 "dependencies": {
82 "ret": "~0.1.6"
83 },
84 "devDependencies": {
85 "tape": "~1.0.4"
86 },
87 "scripts": {
88 "test": "tape test/*.js"
89 },
90 "testling": {
91 "files": "test/*.js",
92 "browsers": [
93 "ie/8",
94 "ie/9",
95 "ie/10",
96 "firefox/latest",
97 "chrome/latest",
98 "opera/latest",
99 "safari/latest"
100 ]
101 },
102 "repository": {
103 "type": "git",
104 "url": "git://github.com/substack/safe-regex.git"
105 },
106 "homepage": "https://github.com/substack/safe-regex",
107 "keywords": [
108 "catastrophic",
109 "exponential",
110 "regex",
111 "safe",
112 "sandbox"
113 ],
114 "author": {
115 "name": "James Halliday",
116 "email": "[email protected]",
117 "url": "http://substack.net"
118 },
119 "license": "MIT",
120 "bugs": {
121 "url": "https://github.com/substack/safe-regex/issues"
122 },
123 "_id": "[email protected]",
124 "dist": {
125 "shasum": "350ae32b49b7dc75d1cac3a18cb8b375a94ef15c",
126 "tarball": "https://registry.npmjs.org/safe-regex/-/safe-regex-0.0.1.tgz"
127 },
128 "_from": ".",
129 "_npmVersion": "1.3.14",
130 "_npmUser": {
131 "name": "substack",
132 "email": "[email protected]"
133 },
134 "maintainers": [
135 {
136 "name": "substack",
137 "email": "[email protected]"
138 }
139 ],
140 "directories": {}
141 },
142 "1.0.0": {
143 "name": "safe-regex",
144 "version": "1.0.0",
145 "description": "detect possibly catastrophic, exponential-time regular expressions",
146 "main": "index.js",
147 "dependencies": {
148 "ret": "~0.1.10"
149 },
150 "devDependencies": {
151 "tape": "^3.5.0"
152 },
153 "scripts": {
154 "test": "tape test/*.js"
155 },
156 "testling": {
157 "files": "test/*.js",
158 "browsers": [
159 "ie/8",
160 "ie/9",
161 "ie/10",
162 "firefox/latest",
163 "chrome/latest",
164 "opera/latest",
165 "safari/latest"
166 ]
167 },
168 "repository": {
169 "type": "git",
170 "url": "git://github.com/substack/safe-regex.git"
171 },
172 "homepage": "https://github.com/substack/safe-regex",
173 "keywords": [
174 "catastrophic",
175 "exponential",
176 "regex",
177 "safe",
178 "sandbox"
179 ],
180 "author": {
181 "name": "James Halliday",
182 "email": "[email protected]",
183 "url": "http://substack.net"
184 },
185 "license": "MIT",
186 "gitHead": "4ffa3f1b0ffe993ecaee97a622fb17469db2c2c6",
187 "bugs": {
188 "url": "https://github.com/substack/safe-regex/issues"
189 },
190 "_id": "[email protected]",
191 "_shasum": "2a88b57eb36396bb4c69218a3acd3334c5570123",
192 "_from": ".",
193 "_npmVersion": "2.3.0",
194 "_nodeVersion": "0.10.35",
195 "_npmUser": {
196 "name": "substack",
197 "email": "[email protected]"
198 },
199 "maintainers": [
200 {
201 "name": "substack",
202 "email": "[email protected]"
203 }
204 ],
205 "dist": {
206 "shasum": "2a88b57eb36396bb4c69218a3acd3334c5570123",
207 "tarball": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.0.0.tgz"
208 },
209 "directories": {}
210 },
211 "1.1.0": {
212 "name": "safe-regex",
213 "version": "1.1.0",
214 "description": "detect possibly catastrophic, exponential-time regular expressions",
215 "main": "index.js",
216 "dependencies": {
217 "ret": "~0.1.10"
218 },
219 "devDependencies": {
220 "tape": "^3.5.0"
221 },
222 "scripts": {
223 "test": "tape test/*.js"
224 },
225 "testling": {
226 "files": "test/*.js",
227 "browsers": [
228 "ie/8",
229 "ie/9",
230 "ie/10",
231 "firefox/latest",
232 "chrome/latest",
233 "opera/latest",
234 "safari/latest"
235 ]
236 },
237 "repository": {
238 "type": "git",
239 "url": "git://github.com/substack/safe-regex.git"
240 },
241 "homepage": "https://github.com/substack/safe-regex",
242 "keywords": [
243 "catastrophic",
244 "exponential",
245 "regex",
246 "safe",
247 "sandbox"
248 ],
249 "author": {
250 "name": "James Halliday",
251 "email": "[email protected]",
252 "url": "http://substack.net"
253 },
254 "license": "MIT",
255 "gitHead": "d2570f31bd9d779515015917bb8297c753e46572",
256 "bugs": {
257 "url": "https://github.com/substack/safe-regex/issues"
258 },
259 "_id": "[email protected]",
260 "_shasum": "40a3669f3b077d1e943d44629e157dd48023bf2e",
261 "_from": ".",
262 "_npmVersion": "2.3.0",
263 "_nodeVersion": "0.12.0",
264 "_npmUser": {
265 "name": "substack",
266 "email": "[email protected]"
267 },
268 "maintainers": [
269 {
270 "name": "substack",
271 "email": "[email protected]"
272 }
273 ],
274 "dist": {
275 "shasum": "40a3669f3b077d1e943d44629e157dd48023bf2e",
276 "tarball": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz"
277 },
278 "directories": {}
279 },
280 "2.0.0": {
281 "name": "safe-regex",
282 "version": "2.0.0",
283 "description": "detect possibly catastrophic, exponential-time regular expressions",
284 "main": "index.js",
285 "dependencies": {
286 "regexp-tree": "~0.0.85"
287 },
288 "devDependencies": {
289 "tape": "^3.5.0"
290 },
291 "scripts": {
292 "test": "tape test/*.js"
293 },
294 "testling": {
295 "files": "test/*.js",
296 "browsers": [
297 "ie/8",
298 "ie/9",
299 "ie/10",
300 "firefox/latest",
301 "chrome/latest",
302 "opera/latest",
303 "safari/latest"
304 ]
305 },
306 "repository": {
307 "type": "git",
308 "url": "git://github.com/davisjam/safe-regex.git"
309 },
310 "homepage": "https://github.com/davisjam/safe-regex",
311 "keywords": [
312 "catastrophic",
313 "exponential",
314 "regex",
315 "safe",
316 "sandbox"
317 ],
318 "author": {
319 "name": "James C.",
320 "email": "[email protected]",
321 "url": "Jamie"
322 },
323 "license": "MIT",
324 "gitHead": "cd95cff13de26a3065a97eeb90dba360a95790d8",
325 "bugs": {
326 "url": "https://github.com/davisjam/safe-regex/issues"
327 },
328 "_id": "[email protected]",
329 "_npmVersion": "5.5.1",
330 "_nodeVersion": "8.2.1",
331 "_npmUser": {
332 "name": "davisjam",
333 "email": "[email protected]"
334 },
335 "dist": {
336 "integrity": "sha512-thCAfpaDb/DuCwidgS2h5BGyNx+vcN9F8fPLLhOrDndirBhOAwPkB4V28LMc+/Km1uHOg0APIIXdSg1Ck8BHjw==",
337 "shasum": "1c021d0d55ee116bf6caeeb1d7d0a388509f7112",
338 "tarball": "https://registry.npmjs.org/safe-regex/-/safe-regex-2.0.0.tgz",
339 "fileCount": 8,
340 "unpackedSize": 6297,
341 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb01YTCRA9TVsSAnZWagAA6eYP/RGb8XTt77idCZ+SIMT+\nsxoXkclnotDuOvnjje2mMzL5idYn6QQuFe+pTeBtFcaVCUMx3rpKVVd/+z46\nG5Z8qUJc8mrHf9bajUIgwpFVufEVGXmNFGH5fmC7nJQhm18c8ze4SDl1mU+y\nCwdteHQE0PkRtRwF3f8LyzkKg8U6n6c2hGDTZIRYcZa+KHOpXrDwdBbbAdyQ\nF0ZUyPyNRO4kF8t8q/gWs17I56EcvSpdBAnw2je2Ow8HCTh4UD27Y9mF2K6c\nMvSqoUlx5FNf1CO4Wb0kjAYbmh7+5NX2njZa1KUB+jnAa/0jm0oTDg4g5dIh\nFDA02BqRlTZ5uGZv/s3mJQi645Q1L5CVDeOySfvoVG59sNV8hiTOzWisHNxD\nj+Tguiq+88xISuUJJqA9DmVtUvg8LLgJ/o+9Re6C7TziUpR28Cshrbjd9FS7\nV85NZxtLgRHI+Ogm9aZsx8NU8NnElMT+45BFf+7twop/CMhZj6eYS05kZ0Es\n+8EtPulPyX7VBAZb85rPnVX46LNLMCWRqgl6gvkHzDlZjPLqrqA9RCDlhE9x\nxq1qt6DTXRArxWwt6DlPGXNV0Gm3VFr4IqdaRUrchdYj/RbTuE79BO5MTQMa\njInQ1jpb/9z9q+lxim7JX/7ow51htlPc8HusbQsYRVA68poYGmyA4KPyO34i\nXeX0\r\n=3u4b\r\n-----END PGP SIGNATURE-----\r\n"
342 },
343 "maintainers": [
344 {
345 "email": "[email protected]",
346 "name": "davisjam"
347 }
348 ],
349 "directories": {},
350 "_npmOperationalInternal": {
351 "host": "s3://npm-registry-packages",
352 "tmp": "tmp/safe-regex_2.0.0_1540576786474_0.40345973051344486"
353 },
354 "_hasShrinkwrap": false
355 },
356 "2.0.1": {
357 "name": "safe-regex",
358 "version": "2.0.1",
359 "description": "detect possibly catastrophic, exponential-time regular expressions",
360 "main": "index.js",
361 "dependencies": {
362 "regexp-tree": "~0.0.85"
363 },
364 "devDependencies": {
365 "tape": "^3.5.0"
366 },
367 "scripts": {
368 "test": "tape test/*.js"
369 },
370 "testling": {
371 "files": "test/*.js",
372 "browsers": [
373 "ie/8",
374 "ie/9",
375 "ie/10",
376 "firefox/latest",
377 "chrome/latest",
378 "opera/latest",
379 "safari/latest"
380 ]
381 },
382 "repository": {
383 "type": "git",
384 "url": "git://github.com/davisjam/safe-regex.git"
385 },
386 "homepage": "https://github.com/davisjam/safe-regex",
387 "keywords": [
388 "catastrophic",
389 "exponential",
390 "regex",
391 "safe",
392 "sandbox"
393 ],
394 "author": {
395 "name": "James C.",
396 "email": "[email protected]",
397 "url": "Jamie"
398 },
399 "license": "MIT",
400 "gitHead": "db1568fee2072aa532919b0899490b4a4492efd4",
401 "bugs": {
402 "url": "https://github.com/davisjam/safe-regex/issues"
403 },
404 "_id": "[email protected]",
405 "_npmVersion": "6.2.0",
406 "_nodeVersion": "10.9.0",
407 "_npmUser": {
408 "name": "davisjam",
409 "email": "[email protected]"
410 },
411 "dist": {
412 "integrity": "sha512-4tbOl0xq/cxbhEhdvxKaCZgzwOKeqt2tnHc2OPBkMsVdZ0s0C5oJwI6voRI9XzPSzeN35PECDNDK946x4d/0eA==",
413 "shasum": "676c791d97f31fadb8958d64300f7760606fa0a1",
414 "tarball": "https://registry.npmjs.org/safe-regex/-/safe-regex-2.0.1.tgz",
415 "fileCount": 8,
416 "unpackedSize": 6466,
417 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb3G6CCRA9TVsSAnZWagAA05QP/AspKkR4cFKY0Ep0zeNr\nB/q0yj32KJKdsTRI597w3VN/7X6Cnvs63mRpVu8+9nvTCoDRscLMRG9jnZl2\nChM06cOzj5MsoxxMZO+7hal87ykMbDfic31wrPccQZNPGqXb5Sz1RhUVWvQu\nWyVODcZwOJy/vqVchIUF19Unr0KNchxKQGQ8rE7/CmzgsG/Xl3U98Ghz00h7\nzpvra0bpCqwm1O0kCKbC+EQyAaUYUaJMCbIwO2ASIZi2Kj7ECVxFR6MNcEMa\np+HmwTWF0lfVQvnQT624fVLuOhfeHPkdoQ2a06/D6l0Wd77glmg6PfViRGDs\n7p+PcnDgzBp6EpS6S2BX0JkIjISSTBtO4RFZkkZGngldt01XWb98DSMC63wW\nWLpNBfizShoQvYxLHVpIM4M/2Md3+tQvomdD85hzDr4q9WyKbPMBwOkUY+BZ\n5KA70oEbJ1JSJgMYf+mjoYMxCx1pp5FEFqih9fOkhHovTGbD4yhwXeKO0uDP\nLxWXp8YxozXGMSg7Yg1I0ilO95F6qa2X0/XonS+ecmKvR/4I8u1YwgtaIj3g\nCoucZBEHwYXREOT9NIeg/+DGXJ9sSaraAvf+LZON8qkeuHiuXw12JHO90tWR\nPKqaNXaOFZ26j4Egof7vHQzZ/Y0JW+bawTRnOp6veXSFtBipVmeQ94ugwjsj\nDl3s\r\n=X2u1\r\n-----END PGP SIGNATURE-----\r\n"
418 },
419 "maintainers": [
420 {
421 "email": "[email protected]",
422 "name": "davisjam"
423 }
424 ],
425 "directories": {},
426 "_npmOperationalInternal": {
427 "host": "s3://npm-registry-packages",
428 "tmp": "tmp/safe-regex_2.0.1_1541172865225_0.8604165785745475"
429 },
430 "_hasShrinkwrap": false
431 },
432 "2.0.2": {
433 "name": "safe-regex",
434 "version": "2.0.2",
435 "description": "detect possibly catastrophic, exponential-time regular expressions",
436 "main": "index.js",
437 "dependencies": {
438 "regexp-tree": "~0.1.1"
439 },
440 "devDependencies": {
441 "tape": "^4.10.1"
442 },
443 "scripts": {
444 "test": "tape test/*.js"
445 },
446 "testling": {
447 "files": "test/*.js",
448 "browsers": [
449 "ie/8",
450 "ie/9",
451 "ie/10",
452 "firefox/latest",
453 "chrome/latest",
454 "opera/latest",
455 "safari/latest"
456 ]
457 },
458 "repository": {
459 "type": "git",
460 "url": "git://github.com/davisjam/safe-regex.git"
461 },
462 "homepage": "https://github.com/davisjam/safe-regex",
463 "keywords": [
464 "catastrophic",
465 "exponential",
466 "regex",
467 "safe",
468 "sandbox"
469 ],
470 "author": {
471 "name": "James C.",
472 "email": "[email protected]",
473 "url": "Jamie"
474 },
475 "license": "MIT",
476 "gitHead": "132c9b9d9efbf0ba5a85bfcd1b2bbd365d95b1b1",
477 "bugs": {
478 "url": "https://github.com/davisjam/safe-regex/issues"
479 },
480 "_id": "[email protected]",
481 "_npmVersion": "6.2.0",
482 "_nodeVersion": "10.9.0",
483 "_npmUser": {
484 "name": "davisjam",
485 "email": "[email protected]"
486 },
487 "dist": {
488 "integrity": "sha512-rRALJT0mh4qVFIJ9HvfjKDN77F9vp7kltOpFFI/8e6oKyHFmmxz4aSkY/YVauRDe7U0RrHdw9Lsxdel3E19s0A==",
489 "shasum": "3601b28d3aefe4b963d42f6c2cdb241265cbd63c",
490 "tarball": "https://registry.npmjs.org/safe-regex/-/safe-regex-2.0.2.tgz",
491 "fileCount": 8,
492 "unpackedSize": 6684,
493 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdE1VCRA9TVsSAnZWagAAPaMP/2/YYMhPlbkRjDOD0Ixs\nf5A3mmk1k4AXxlXIC9EPu8aInNtrbBycqfIdTT6e/QUAmByT3lJlxMUGHHde\noOJ+nGNwqiNea8O9sOLWgFmr630RmvYCayupGeFKqhpM2Sw75VilIcCHdHbq\nyzWzHgUpjGcdPVuXM0MJ3S/Hk2tG/yHCAKBxmoWKwgMaJf/Ps92/sDaPflwQ\nndx2zzOkk/i/uurwzKnpiaMZfK0u9LbsJbTXvXtNoWaJLhaJNNsoZwcyb0PY\nEhKDw24dWuuCJ2UJLEhRREar+EJnl70FmJpJfQjlV451VNw4PEiJiOFgmwag\nS0dtALEGXkXnoQuIFJkw1rOTIA9YIl3vXWasO9tojruZ9qp7lt915poYIr5y\nNYvtzf3hzhl3/3fkNqU2YhofhL3hOMd7GhtXaGaAo/IQf/X90exTBftTDtvw\n6aX6/OsfPawggM1QxLy/4qLIQIQcxJHhXTJKDctzw9pIKXxjRsmui0B04b8E\njCPWdHRnA+oBgnkGwL3My8ofCwa+eErszudl/Ee6OOUjvy/c+qmQvJpeMaH0\nW5+y2JC5j5uEj8ILsokwdQz4PTlZdrRhvtXKiz5415v5ut+ayEoN7s/fveiF\nBAf5sINDxHOjw3qjidBKXUyIP71VPpL+gJxFU6f3tgMIsJ7MH9NpneaYhhq4\nf3o1\r\n=On78\r\n-----END PGP SIGNATURE-----\r\n"
494 },
495 "maintainers": [
496 {
497 "email": "[email protected]",
498 "name": "davisjam"
499 }
500 ],
501 "directories": {},
502 "_npmOperationalInternal": {
503 "host": "s3://npm-registry-packages",
504 "tmp": "tmp/safe-regex_2.0.2_1551125844844_0.438144546598763"
505 },
506 "_hasShrinkwrap": false
507 },
508 "2.1.0": {
509 "name": "safe-regex",
510 "version": "2.1.0",
511 "description": "detect possibly catastrophic, exponential-time regular expressions",
512 "main": "index.js",
513 "dependencies": {
514 "regexp-tree": "~0.1.1"
515 },
516 "devDependencies": {
517 "jest": "^24.9.0"
518 },
519 "scripts": {
520 "test": "jest"
521 },
522 "jest": {
523 "moduleFileExtensions": [
524 "js"
525 ],
526 "testRegex": "test.*\\.spec\\.js$",
527 "collectCoverage": true,
528 "coverageReporters": [
529 "text-summary",
530 "html",
531 "lcov"
532 ],
533 "collectCoverageFrom": [
534 "*.js"
535 ],
536 "coverageThreshold": {
537 "global": {
538 "statements": 100,
539 "branches": 100,
540 "functions": 100,
541 "lines": 100
542 }
543 }
544 },
545 "repository": {
546 "type": "git",
547 "url": "git://github.com/davisjam/safe-regex.git"
548 },
549 "homepage": "https://github.com/davisjam/safe-regex",
550 "keywords": [
551 "catastrophic",
552 "exponential",
553 "regex",
554 "safe",
555 "sandbox"
556 ],
557 "author": {
558 "name": "James C.",
559 "email": "[email protected]",
560 "url": "Jamie"
561 },
562 "license": "MIT",
563 "gitHead": "329afeae8e8acae78dd86d104ea758533895219f",
564 "bugs": {
565 "url": "https://github.com/davisjam/safe-regex/issues"
566 },
567 "_id": "[email protected]",
568 "_nodeVersion": "12.10.0",
569 "_npmVersion": "6.10.3",
570 "dist": {
571 "integrity": "sha512-C2EKpE6DIkQRrVhqMG4NcA3/ekUJBy6YZaGw+77RaO3Odtkm+wb9kNjnM9LHSKwxWr6YYLrGk/MqGg5rOPzElA==",
572 "shasum": "3c8c4481278b21d030f6272b8c663de6776130ac",
573 "tarball": "https://registry.npmjs.org/safe-regex/-/safe-regex-2.1.0.tgz",
574 "fileCount": 12,
575 "unpackedSize": 14937,
576 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdrgokCRA9TVsSAnZWagAAgIsP/2MJ95jEs1UD5g2zUpm3\nDYxXbYLBcD2LV/DfoElSR+6zdGSaoBQAqq9I+wdzmHZD4GR782hXyjy2dWQl\nUvqcXtmdzbKHYFWEi6psiw5x5N4NzzTwLIPIeEvLcqZpToX18KVKftW3eED4\n0HhaL0ABFvSKWM4NCsi2jkG85x9tFlSiX1oa1iAssDR87cDCFR7QAFxAqaCL\nVnvQCpWxrwz/V0fEHG1hSM97VhvCyz6yGNOXYLmZGz8JyWmSFRLl+WSHQqnh\na3dYGg899HAEwBceb7sM+F09mFym1kUncaH64uUAwuhulhHqT+MAJXkUSHhe\ngPBorf5C1YlSmQuLMZNwRF7/l2bsWq7XGniTr0JIFrJsBAW05LEOcMkujhjz\naVJR2+pP4eaLAI6Yl+z6ULM4PPE6FAxFsUGrvAsDflehvG3PWYLzwcMzsub3\ns2CvmpqJCT6H5wNT4cf7eb56oaOtAsDdDHIRR5XNxMquk+du+dBLtTPPdGC/\nN5eDTW26hjZ8VmjybmIRWgA9AP9wU83GRrQ062xJ68y6ztBHn2CVspQ7j6U3\nIh4uAv3Zq+cAc7Q4k8X/9nW5UM7UgCE3hHwevM6HwZY/LTpICxDFGNc6AM+D\nx9lIetUT62urPk82KDpVnEoXFF5dfiWbykxsIuf6J7n3RzDKRdUOr2GFz9ko\nsbjj\r\n=E4W+\r\n-----END PGP SIGNATURE-----\r\n"
577 },
578 "maintainers": [
579 {
580 "email": "[email protected]",
581 "name": "davisjam"
582 }
583 ],
584 "_npmUser": {
585 "name": "davisjam",
586 "email": "[email protected]"
587 },
588 "directories": {},
589 "_npmOperationalInternal": {
590 "host": "s3://npm-registry-packages",
591 "tmp": "tmp/safe-regex_2.1.0_1571686947761_0.11552026867530052"
592 },
593 "_hasShrinkwrap": false
594 },
595 "2.1.1": {
596 "name": "safe-regex",
597 "version": "2.1.1",
598 "description": "detect possibly catastrophic, exponential-time regular expressions",
599 "main": "index.js",
600 "dependencies": {
601 "regexp-tree": "~0.1.1"
602 },
603 "devDependencies": {
604 "jest": "^24.9.0"
605 },
606 "scripts": {
607 "test": "jest"
608 },
609 "jest": {
610 "moduleFileExtensions": [
611 "js"
612 ],
613 "testRegex": "test.*\\.spec\\.js$",
614 "collectCoverage": true,
615 "coverageReporters": [
616 "text-summary",
617 "html",
618 "lcov"
619 ],
620 "collectCoverageFrom": [
621 "*.js"
622 ],
623 "coverageThreshold": {
624 "global": {
625 "statements": 100,
626 "branches": 100,
627 "functions": 100,
628 "lines": 100
629 }
630 }
631 },
632 "repository": {
633 "type": "git",
634 "url": "git://github.com/davisjam/safe-regex.git"
635 },
636 "homepage": "https://github.com/davisjam/safe-regex",
637 "keywords": [
638 "catastrophic",
639 "exponential",
640 "regex",
641 "safe",
642 "sandbox"
643 ],
644 "author": {
645 "name": "James C.",
646 "email": "[email protected]",
647 "url": "Jamie"
648 },
649 "license": "MIT",
650 "gitHead": "9070d9459dac17e281d06e50110fec2cb40cfc67",
651 "bugs": {
652 "url": "https://github.com/davisjam/safe-regex/issues"
653 },
654 "_id": "[email protected]",
655 "_nodeVersion": "12.10.0",
656 "_npmVersion": "6.10.3",
657 "dist": {
658 "integrity": "sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A==",
659 "shasum": "f7128f00d056e2fe5c11e81a1324dd974aadced2",
660 "tarball": "https://registry.npmjs.org/safe-regex/-/safe-regex-2.1.1.tgz",
661 "fileCount": 12,
662 "unpackedSize": 16453,
663 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdrgq+CRA9TVsSAnZWagAATfEQAIJO5L5SSbRfHveBd3zB\nN29CKk0NG/A1JNgbGZQdwIawa9jflOQG/MhoHaUN3os+p9fcJVzJscj2hbR+\nUaIYcvtHAiep3z9J8K2I06amkfmIV6hi3H1XciTcVL+6lvxeYz5uK1Nu8jdj\nP7GSWnn4q8vdtd/adFTJvF3JaZjilMXRiL+FQ7WFP1yjD2xWItPm6AUSEsdj\nD659F89LN60Ru2cjuvQVBBtnrxGxdvXk+EUzdYLMR/3oI1wNYQ61JNJPzF73\nViq8X/9taqbdz36ZfZRFpJy8fnldSoHmcIB2xrxyjGCtrfc7kYp4Rp4bqqSI\nXb1Vvp1FDKVHftqGtau8RnvpwoNi58PuXyLq1DmvqLDN3clcenbKVAdoLUKI\ngrwvCbtGyADJoHUZTT6mu0h0bJYl5/i4Q5rxlQJmB6W9VI028x3kMyTOV6O9\np6vED9/MSVLgLJlvgx6eLE4U3STCNNkmvkntyWuQmLfPIxWk009EWBbrqEd7\nCtH6JCIWh/sUjFfL689RyWNenYk2X/fX1dYlX3D3vuI4BVyHtgomiKy7W/rg\nApORC5/RXeQ4iWXKaw6jQGPPID/ZfLGU5oEBUSwZokyjZTlLN9EwKL0CirdG\nDM8bOw7zxqUatxzNuZlmMXYME20ojFs0XFhPSG7Ltw54rhmmPi6FVpEyA2zU\nr52j\r\n=ZyaJ\r\n-----END PGP SIGNATURE-----\r\n"
664 },
665 "maintainers": [
666 {
667 "email": "[email protected]",
668 "name": "davisjam"
669 }
670 ],
671 "_npmUser": {
672 "name": "davisjam",
673 "email": "[email protected]"
674 },
675 "directories": {},
676 "_npmOperationalInternal": {
677 "host": "s3://npm-registry-packages",
678 "tmp": "tmp/safe-regex_2.1.1_1571687101795_0.5043143354036861"
679 },
680 "_hasShrinkwrap": false
681 }
682 },
683 "readme": "# safe-regex\n\nDetect potentially\n[catastrophic](http://regular-expressions.mobi/catastrophic.html)\n[exponential-time](http://perlgeek.de/blog-en/perl-tips/in-search-of-an-exponetial-regexp.html)\nregular expressions by limiting the\n[star height](https://en.wikipedia.org/wiki/Star_height) to 1.\n\nWARNING: This module has both false positives and false negatives.\nUse [vuln-regex-detector](https://github.com/davisjam/vuln-regex-detector) for improved accuracy.\n\n[![Build Status](https://travis-ci.org/davisjam/safe-regex.svg?branch=master)](https://travis-ci.org/davisjam/safe-regex)\n\n## Example\n\nSuppose you have a script named `safe.js`:\n\n``` js\nvar safe = require('safe-regex');\nvar regex = process.argv.slice(2).join(' ');\nconsole.log(safe(regex));\n```\n\nThis is its behavior:\n\n```\n$ node safe.js '(x+x+)+y'\nfalse\n$ node safe.js '(beep|boop)*'\ntrue\n$ node safe.js '(a+){10}'\nfalse\n$ node safe.js '\\blocation\\s*:[^:\\n]+\\b(Oakland|San Francisco)\\b'\ntrue\n```\n\n## Methods\n\n``` js\nconst safe = require('safe-regex')\n```\n\n### const ok = safe(re, opts={})\n\nReturn a boolean `ok` whether or not the regex `re` is safe and not possibly\ncatastrophic.\n\n`re` can be a `RegExp` object or just a string.\n\nIf the `re` is a string and is an invalid regex, returns `false`.\n\n* `opts.limit` - maximum number of allowed repetitions in the entire regex.\nDefault: `25`.\n\n## Install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install safe-regex\n```\n\n## Resources\n\n### What should I do if my project has a super-linear regex?\n\n1. Confirm that it is *reachable* by untrusted input.\n2. If it is, you can consider whether you can prevent worst-case behavior by trimming the input, revising the regex, or replacing the regex with another algorithm like string functions. For examples, see Table 5 in [this article](http://people.cs.vt.edu/davisjam/downloads/publications/DavisCoghlanServantLee-EcosystemREDOS-ESECFSE18.pdf).\n3. If none of those solutions looks feasible, you might also consider changing regex engines. The [RE2 bindings](https://www.npmjs.com/package/re2) might work, though test carefully to confirm there are no [semantic portability problems](https://medium.com/@davisjam/why-arent-regexes-a-lingua-franca-esecfse19-a36348df3a2?source=friends_link&sk=d21be7f8f723e2080dc993385c6973d1).\n\n### Further reading\n\nThe following documents may be edifying:\n\n- [Research brief on the extent of super-linear regexes in practice](https://medium.com/@davisjam/introduction-987fdc4c7b0?source=friends_link&sk=ceefa4a4ca9617e08ab782c3b1580aea)\n- [Research brief on the variability of super-linear regex behavior across programming languages](https://medium.com/@davisjam/why-arent-regexes-a-lingua-franca-esecfse19-a36348df3a2?source=friends_link&sk=d21be7f8f723e2080dc993385c6973d1)\n- [Comparing regex matching algorithms](https://swtch.com/~rsc/regexp/regexp1.html)\n\n## Project policies\n\n### Versioning\n\nThis project follows [Semantic Versioning 2.0 (semver)](https://semver.org/).\n\nHere are the project-specific meanings of MAJOR, MINOR, and PATCH updates:\n\n- MAJOR: \"Incompatible\" API changes were introduced. There are two types in this module:\n - Changes that modify the interface\n - Changes that cause any regexes to be marked as unsafe that were formerly marked as safe\n- MINOR: Functionality was added in a backwards-compatible manner. There are two types in this module:\n - Refactoring the analyses but not changing their results\n - Modifying the analyses to reduce false positives, without affecting negatives (false or true)\n- PATCH: I don't anticipate using PATCH for this module\n\n### License\n\n[MIT](https://github.com/davisjam/safe-regex/blob/master/LICENSE)",
684 "maintainers": [
685 {
686 "email": "[email protected]",
687 "name": "davisjam"
688 }
689 ],
690 "time": {
691 "modified": "2019-10-21T19:45:04.555Z",
692 "created": "2013-07-13T02:56:00.967Z",
693 "0.0.0": "2013-07-13T02:56:02.406Z",
694 "0.0.1": "2013-11-22T08:44:01.232Z",
695 "1.0.0": "2015-02-06T16:36:31.893Z",
696 "1.1.0": "2015-03-19T00:30:21.780Z",
697 "2.0.0": "2018-10-26T17:59:46.642Z",
698 "2.0.1": "2018-11-02T15:34:25.412Z",
699 "2.0.2": "2019-02-25T20:17:25.012Z",
700 "2.1.0": "2019-10-21T19:42:27.934Z",
701 "2.1.1": "2019-10-21T19:45:01.945Z"
702 },
703 "author": {
704 "name": "James C.",
705 "email": "[email protected]",
706 "url": "Jamie"
707 },
708 "repository": {
709 "type": "git",
710 "url": "git://github.com/davisjam/safe-regex.git"
711 },
712 "users": {
713 "julien-f": true,
714 "cilindrox": true,
715 "openam": true,
716 "davidcai": true,
717 "stretchgz": true,
718 "csbun": true,
719 "kobleistvan": true,
720 "disqus": true,
721 "scottfreecode": true,
722 "lonjoy": true,
723 "anchnk": true,
724 "hibrahimsafak": true,
725 "kikar": true,
726 "joseph320": true,
727 "raydog": true,
728 "vishwasc": true,
729 "dpjayasekara": true,
730 "ngpvnk": true,
731 "tkalfigo": true,
732 "donecharlton": true
733 },
734 "homepage": "https://github.com/davisjam/safe-regex",
735 "keywords": [
736 "catastrophic",
737 "exponential",
738 "regex",
739 "safe",
740 "sandbox"
741 ],
742 "bugs": {
743 "url": "https://github.com/davisjam/safe-regex/issues"
744 },
745 "license": "MIT",
746 "readmeFilename": "README.md"
747 }