protobufjs 6.11.4 → 6.11.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/cli/node_modules/.package-lock.json +86 -32
  2. package/cli/node_modules/@babel/parser/package.json +66 -30
  3. package/cli/node_modules/@types/linkify-it/package.json +65 -36
  4. package/cli/node_modules/@types/markdown-it/package.json +67 -39
  5. package/cli/node_modules/@types/mdurl/package.json +53 -21
  6. package/cli/node_modules/acorn/package.json +48 -17
  7. package/cli/node_modules/acorn-jsx/package.json +42 -11
  8. package/cli/node_modules/argparse/package.json +52 -17
  9. package/cli/node_modules/bluebird/package.json +65 -38
  10. package/cli/node_modules/brace-expansion/index.js +14 -12
  11. package/cli/node_modules/brace-expansion/package.json +4 -1
  12. package/cli/node_modules/catharsis/package.json +44 -10
  13. package/cli/node_modules/deep-is/.travis.yml +5 -0
  14. package/cli/node_modules/deep-is/LICENSE +22 -0
  15. package/cli/node_modules/deep-is/README.markdown +70 -0
  16. package/cli/node_modules/deep-is/example/cmp.js +11 -0
  17. package/cli/node_modules/deep-is/index.js +102 -0
  18. package/cli/node_modules/deep-is/package.json +58 -0
  19. package/cli/node_modules/deep-is/test/NaN.js +16 -0
  20. package/cli/node_modules/deep-is/test/cmp.js +23 -0
  21. package/cli/node_modules/deep-is/test/neg-vs-pos-0.js +15 -0
  22. package/cli/node_modules/entities/package.json +95 -60
  23. package/cli/node_modules/escape-string-regexp/package.json +84 -41
  24. package/cli/node_modules/escodegen/escodegen.js +25 -66
  25. package/cli/node_modules/escodegen/package.json +11 -13
  26. package/cli/node_modules/esprima/package.json +82 -54
  27. package/cli/node_modules/estraverse/estraverse.js +1 -24
  28. package/cli/node_modules/estraverse/package.json +1 -1
  29. package/cli/node_modules/esutils/package.json +52 -21
  30. package/cli/node_modules/fast-levenshtein/LICENSE.md +25 -0
  31. package/cli/node_modules/fast-levenshtein/README.md +104 -0
  32. package/cli/node_modules/fast-levenshtein/levenshtein.js +136 -0
  33. package/cli/node_modules/fast-levenshtein/package.json +39 -0
  34. package/cli/node_modules/fs.realpath/package.json +52 -16
  35. package/cli/node_modules/graceful-fs/package.json +57 -25
  36. package/cli/node_modules/inflight/package.json +44 -15
  37. package/cli/node_modules/inherits/package.json +44 -12
  38. package/cli/node_modules/js2xmlparser/package.json +94 -62
  39. package/cli/node_modules/klaw/package.json +53 -23
  40. package/cli/node_modules/levn/LICENSE +22 -0
  41. package/cli/node_modules/levn/README.md +196 -0
  42. package/cli/node_modules/levn/lib/cast.js +298 -0
  43. package/cli/node_modules/levn/lib/coerce.js +285 -0
  44. package/cli/node_modules/levn/lib/index.js +22 -0
  45. package/cli/node_modules/levn/lib/parse-string.js +113 -0
  46. package/cli/node_modules/levn/lib/parse.js +102 -0
  47. package/cli/node_modules/levn/package.json +47 -0
  48. package/cli/node_modules/linkify-it/package.json +58 -23
  49. package/cli/node_modules/lodash/package.json +61 -10
  50. package/cli/node_modules/markdown-it/package.json +68 -33
  51. package/cli/node_modules/markdown-it-anchor/package.json +72 -30
  52. package/cli/node_modules/marked/package.json +87 -52
  53. package/cli/node_modules/mdurl/package.json +44 -9
  54. package/cli/node_modules/minimatch/README.md +37 -0
  55. package/cli/node_modules/minimatch/minimatch.js +160 -102
  56. package/cli/node_modules/minimatch/package.json +2 -2
  57. package/cli/node_modules/mkdirp/package.json +56 -22
  58. package/cli/node_modules/once/package.json +48 -14
  59. package/cli/node_modules/optionator/CHANGELOG.md +56 -0
  60. package/cli/node_modules/optionator/LICENSE +22 -0
  61. package/cli/node_modules/optionator/README.md +238 -0
  62. package/cli/node_modules/optionator/lib/help.js +260 -0
  63. package/cli/node_modules/optionator/lib/index.js +465 -0
  64. package/cli/node_modules/optionator/lib/util.js +54 -0
  65. package/cli/node_modules/optionator/package.json +44 -0
  66. package/cli/node_modules/prelude-ls/CHANGELOG.md +99 -0
  67. package/cli/node_modules/prelude-ls/LICENSE +22 -0
  68. package/cli/node_modules/prelude-ls/README.md +15 -0
  69. package/cli/node_modules/prelude-ls/lib/Func.js +65 -0
  70. package/cli/node_modules/prelude-ls/lib/List.js +686 -0
  71. package/cli/node_modules/prelude-ls/lib/Num.js +130 -0
  72. package/cli/node_modules/prelude-ls/lib/Obj.js +154 -0
  73. package/cli/node_modules/prelude-ls/lib/Str.js +92 -0
  74. package/cli/node_modules/prelude-ls/lib/index.js +178 -0
  75. package/cli/node_modules/prelude-ls/package.json +52 -0
  76. package/cli/node_modules/requizzle/package.json +52 -21
  77. package/cli/node_modules/source-map/package.json +197 -54
  78. package/cli/node_modules/strip-json-comments/package.json +80 -45
  79. package/cli/node_modules/tmp/README.md +47 -21
  80. package/cli/node_modules/tmp/lib/tmp.js +209 -147
  81. package/cli/node_modules/tmp/package.json +73 -37
  82. package/cli/node_modules/type-check/LICENSE +22 -0
  83. package/cli/node_modules/type-check/README.md +210 -0
  84. package/cli/node_modules/type-check/lib/check.js +126 -0
  85. package/cli/node_modules/type-check/lib/index.js +16 -0
  86. package/cli/node_modules/type-check/lib/parse-type.js +196 -0
  87. package/cli/node_modules/type-check/package.json +40 -0
  88. package/cli/node_modules/uc.micro/package.json +45 -9
  89. package/cli/node_modules/underscore/package.json +95 -61
  90. package/cli/node_modules/word-wrap/LICENSE +21 -0
  91. package/cli/node_modules/word-wrap/README.md +201 -0
  92. package/cli/node_modules/word-wrap/index.d.ts +50 -0
  93. package/cli/node_modules/word-wrap/index.js +61 -0
  94. package/cli/node_modules/word-wrap/package.json +77 -0
  95. package/cli/node_modules/wrappy/package.json +46 -16
  96. package/cli/node_modules/xmlcreate/package.json +87 -55
  97. package/cli/package-lock.json +842 -0
  98. package/cli/package.json +1 -1
  99. package/dist/light/protobuf.js +3 -2
  100. package/dist/light/protobuf.js.map +1 -1
  101. package/dist/light/protobuf.min.js +3 -3
  102. package/dist/light/protobuf.min.js.map +1 -1
  103. package/dist/minimal/protobuf.js +2 -2
  104. package/dist/minimal/protobuf.min.js +3 -3
  105. package/dist/minimal/protobuf.min.js.map +1 -1
  106. package/dist/protobuf.js +3 -2
  107. package/dist/protobuf.js.map +1 -1
  108. package/dist/protobuf.min.js +3 -3
  109. package/dist/protobuf.min.js.map +1 -1
  110. package/package.json +1 -1
  111. package/src/type.js +1 -0
  112. package/cli/node_modules/rimraf/CHANGELOG.md +0 -65
  113. package/cli/node_modules/rimraf/LICENSE +0 -15
  114. package/cli/node_modules/rimraf/README.md +0 -101
  115. package/cli/node_modules/rimraf/bin.js +0 -68
  116. package/cli/node_modules/rimraf/package.json +0 -32
  117. package/cli/node_modules/rimraf/rimraf.js +0 -360
  118. package/cli/node_modules/tmp/CHANGELOG.md +0 -288
@@ -1,10 +1,42 @@
1
1
  {
2
- "name": "acorn",
2
+ "_args": [
3
+ [
4
+ "acorn@8.8.0",
5
+ "/Users/fenster/dev/protobuf.js/cli"
6
+ ]
7
+ ],
8
+ "_from": "acorn@8.8.0",
9
+ "_id": "acorn@8.8.0",
10
+ "_inBundle": false,
11
+ "_integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==",
12
+ "_location": "/acorn",
13
+ "_phantomChildren": {},
14
+ "_requested": {
15
+ "type": "version",
16
+ "registry": true,
17
+ "raw": "acorn@8.8.0",
18
+ "name": "acorn",
19
+ "escapedName": "acorn",
20
+ "rawSpec": "8.8.0",
21
+ "saveSpec": null,
22
+ "fetchSpec": "8.8.0"
23
+ },
24
+ "_requiredBy": [
25
+ "/espree"
26
+ ],
27
+ "_resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz",
28
+ "_spec": "8.8.0",
29
+ "_where": "/Users/fenster/dev/protobuf.js/cli",
30
+ "bin": {
31
+ "acorn": "bin/acorn"
32
+ },
33
+ "bugs": {
34
+ "url": "https://github.com/acornjs/acorn/issues"
35
+ },
3
36
  "description": "ECMAScript parser",
4
- "homepage": "https://github.com/acornjs/acorn",
5
- "main": "dist/acorn.js",
6
- "types": "dist/acorn.d.ts",
7
- "module": "dist/acorn.mjs",
37
+ "engines": {
38
+ "node": ">=0.4.0"
39
+ },
8
40
  "exports": {
9
41
  ".": [
10
42
  {
@@ -16,35 +48,34 @@
16
48
  ],
17
49
  "./package.json": "./package.json"
18
50
  },
19
- "version": "8.8.0",
20
- "engines": {
21
- "node": ">=0.4.0"
22
- },
51
+ "homepage": "https://github.com/acornjs/acorn",
52
+ "license": "MIT",
53
+ "main": "dist/acorn.js",
23
54
  "maintainers": [
24
55
  {
25
56
  "name": "Marijn Haverbeke",
26
57
  "email": "marijnh@gmail.com",
27
- "web": "https://marijnhaverbeke.nl"
58
+ "url": "https://marijnhaverbeke.nl"
28
59
  },
29
60
  {
30
61
  "name": "Ingvar Stepanyan",
31
62
  "email": "me@rreverser.com",
32
- "web": "https://rreverser.com/"
63
+ "url": "https://rreverser.com/"
33
64
  },
34
65
  {
35
66
  "name": "Adrian Heine",
36
- "web": "http://adrianheine.de"
67
+ "url": "http://adrianheine.de"
37
68
  }
38
69
  ],
70
+ "module": "dist/acorn.mjs",
71
+ "name": "acorn",
39
72
  "repository": {
40
73
  "type": "git",
41
- "url": "https://github.com/acornjs/acorn.git"
74
+ "url": "git+https://github.com/acornjs/acorn.git"
42
75
  },
43
- "license": "MIT",
44
76
  "scripts": {
45
77
  "prepare": "cd ..; npm run build:main"
46
78
  },
47
- "bin": {
48
- "acorn": "./bin/acorn"
49
- }
79
+ "types": "dist/acorn.d.ts",
80
+ "version": "8.8.0"
50
81
  }
@@ -1,27 +1,58 @@
1
1
  {
2
- "name": "acorn-jsx",
2
+ "_args": [
3
+ [
4
+ "acorn-jsx@5.3.2",
5
+ "/Users/fenster/dev/protobuf.js/cli"
6
+ ]
7
+ ],
8
+ "_from": "acorn-jsx@5.3.2",
9
+ "_id": "acorn-jsx@5.3.2",
10
+ "_inBundle": false,
11
+ "_integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
12
+ "_location": "/acorn-jsx",
13
+ "_phantomChildren": {},
14
+ "_requested": {
15
+ "type": "version",
16
+ "registry": true,
17
+ "raw": "acorn-jsx@5.3.2",
18
+ "name": "acorn-jsx",
19
+ "escapedName": "acorn-jsx",
20
+ "rawSpec": "5.3.2",
21
+ "saveSpec": null,
22
+ "fetchSpec": "5.3.2"
23
+ },
24
+ "_requiredBy": [
25
+ "/espree"
26
+ ],
27
+ "_resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
28
+ "_spec": "5.3.2",
29
+ "_where": "/Users/fenster/dev/protobuf.js/cli",
30
+ "bugs": {
31
+ "url": "https://github.com/acornjs/acorn-jsx/issues"
32
+ },
3
33
  "description": "Modern, fast React.js JSX parser",
34
+ "devDependencies": {
35
+ "acorn": "^8.0.1"
36
+ },
4
37
  "homepage": "https://github.com/acornjs/acorn-jsx",
5
- "version": "5.3.2",
38
+ "license": "MIT",
6
39
  "maintainers": [
7
40
  {
8
41
  "name": "Ingvar Stepanyan",
9
42
  "email": "me@rreverser.com",
10
- "web": "http://rreverser.com/"
43
+ "url": "http://rreverser.com/"
11
44
  }
12
45
  ],
46
+ "name": "acorn-jsx",
47
+ "peerDependencies": {
48
+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
49
+ },
13
50
  "repository": {
14
51
  "type": "git",
15
- "url": "https://github.com/acornjs/acorn-jsx"
52
+ "url": "git+https://github.com/acornjs/acorn-jsx.git"
16
53
  },
17
- "license": "MIT",
18
54
  "scripts": {
19
55
  "test": "node test/run.js"
20
56
  },
21
- "peerDependencies": {
22
- "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
23
- },
24
- "devDependencies": {
25
- "acorn": "^8.0.1"
26
- }
57
+ "version": "5.3.2"
27
58
  }
@@ -1,7 +1,48 @@
1
1
  {
2
- "name": "argparse",
2
+ "_args": [
3
+ [
4
+ "argparse@2.0.1",
5
+ "/Users/fenster/dev/protobuf.js/cli"
6
+ ]
7
+ ],
8
+ "_from": "argparse@2.0.1",
9
+ "_id": "argparse@2.0.1",
10
+ "_inBundle": false,
11
+ "_integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
12
+ "_location": "/argparse",
13
+ "_phantomChildren": {},
14
+ "_requested": {
15
+ "type": "version",
16
+ "registry": true,
17
+ "raw": "argparse@2.0.1",
18
+ "name": "argparse",
19
+ "escapedName": "argparse",
20
+ "rawSpec": "2.0.1",
21
+ "saveSpec": null,
22
+ "fetchSpec": "2.0.1"
23
+ },
24
+ "_requiredBy": [
25
+ "/markdown-it"
26
+ ],
27
+ "_resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
28
+ "_spec": "2.0.1",
29
+ "_where": "/Users/fenster/dev/protobuf.js/cli",
30
+ "bugs": {
31
+ "url": "https://github.com/nodeca/argparse/issues"
32
+ },
3
33
  "description": "CLI arguments parser. Native port of python's argparse.",
4
- "version": "2.0.1",
34
+ "devDependencies": {
35
+ "@babel/eslint-parser": "^7.11.0",
36
+ "@babel/plugin-syntax-class-properties": "^7.10.4",
37
+ "eslint": "^7.5.0",
38
+ "mocha": "^8.0.1",
39
+ "nyc": "^15.1.0"
40
+ },
41
+ "files": [
42
+ "argparse.js",
43
+ "lib/"
44
+ ],
45
+ "homepage": "https://github.com/nodeca/argparse#readme",
5
46
  "keywords": [
6
47
  "cli",
7
48
  "parser",
@@ -9,23 +50,17 @@
9
50
  "option",
10
51
  "args"
11
52
  ],
12
- "main": "argparse.js",
13
- "files": [
14
- "argparse.js",
15
- "lib/"
16
- ],
17
53
  "license": "Python-2.0",
18
- "repository": "nodeca/argparse",
54
+ "main": "argparse.js",
55
+ "name": "argparse",
56
+ "repository": {
57
+ "type": "git",
58
+ "url": "git+https://github.com/nodeca/argparse.git"
59
+ },
19
60
  "scripts": {
61
+ "coverage": "npm run test && nyc report --reporter html",
20
62
  "lint": "eslint .",
21
- "test": "npm run lint && nyc mocha",
22
- "coverage": "npm run test && nyc report --reporter html"
63
+ "test": "npm run lint && nyc mocha"
23
64
  },
24
- "devDependencies": {
25
- "@babel/eslint-parser": "^7.11.0",
26
- "@babel/plugin-syntax-class-properties": "^7.10.4",
27
- "eslint": "^7.5.0",
28
- "mocha": "^8.0.1",
29
- "nyc": "^15.1.0"
30
- }
65
+ "version": "2.0.1"
31
66
  }
@@ -1,44 +1,42 @@
1
1
  {
2
- "name": "bluebird",
3
- "description": "Full featured Promises/A+ implementation with exceptionally good performance",
4
- "version": "3.7.2",
5
- "keywords": [
6
- "promise",
7
- "performance",
8
- "promises",
9
- "promises-a",
10
- "promises-aplus",
11
- "async",
12
- "await",
13
- "deferred",
14
- "deferreds",
15
- "future",
16
- "flow control",
17
- "dsl",
18
- "fluent interface"
2
+ "_args": [
3
+ [
4
+ "bluebird@3.7.2",
5
+ "/Users/fenster/dev/protobuf.js/cli"
6
+ ]
19
7
  ],
20
- "scripts": {
21
- "lint": "node scripts/jshint.js",
22
- "test": "node --expose-gc tools/test.js",
23
- "istanbul": "istanbul",
24
- "prepublish": "npm run generate-browser-core && npm run generate-browser-full",
25
- "generate-browser-full": "node tools/build.js --no-clean --no-debug --release --browser --minify",
26
- "generate-browser-core": "node tools/build.js --features=core --no-debug --release --zalgo --browser --minify && mv js/browser/bluebird.js js/browser/bluebird.core.js && mv js/browser/bluebird.min.js js/browser/bluebird.core.min.js"
27
- },
28
- "homepage": "https://github.com/petkaantonov/bluebird",
29
- "repository": {
30
- "type": "git",
31
- "url": "git://github.com/petkaantonov/bluebird.git"
8
+ "_from": "bluebird@3.7.2",
9
+ "_id": "bluebird@3.7.2",
10
+ "_inBundle": false,
11
+ "_integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==",
12
+ "_location": "/bluebird",
13
+ "_phantomChildren": {},
14
+ "_requested": {
15
+ "type": "version",
16
+ "registry": true,
17
+ "raw": "bluebird@3.7.2",
18
+ "name": "bluebird",
19
+ "escapedName": "bluebird",
20
+ "rawSpec": "3.7.2",
21
+ "saveSpec": null,
22
+ "fetchSpec": "3.7.2"
32
23
  },
33
- "bugs": {
34
- "url": "http://github.com/petkaantonov/bluebird/issues"
35
- },
36
- "license": "MIT",
24
+ "_requiredBy": [
25
+ "/jsdoc"
26
+ ],
27
+ "_resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz",
28
+ "_spec": "3.7.2",
29
+ "_where": "/Users/fenster/dev/protobuf.js/cli",
37
30
  "author": {
38
31
  "name": "Petka Antonov",
39
32
  "email": "petka_antonov@hotmail.com",
40
33
  "url": "http://github.com/petkaantonov/"
41
34
  },
35
+ "browser": "./js/browser/bluebird.js",
36
+ "bugs": {
37
+ "url": "http://github.com/petkaantonov/bluebird/issues"
38
+ },
39
+ "description": "Full featured Promises/A+ implementation with exceptionally good performance",
42
40
  "devDependencies": {
43
41
  "acorn": "^6.0.2",
44
42
  "acorn-walk": "^6.1.0",
@@ -66,13 +64,42 @@
66
64
  "sinon": "~1.7.3",
67
65
  "uglify-js": "~2.4.16"
68
66
  },
69
- "readmeFilename": "README.md",
70
- "main": "./js/release/bluebird.js",
71
- "webpack": "./js/release/bluebird.js",
72
- "browser": "./js/browser/bluebird.js",
73
67
  "files": [
74
68
  "js/browser",
75
69
  "js/release",
76
70
  "LICENSE"
77
- ]
71
+ ],
72
+ "homepage": "https://github.com/petkaantonov/bluebird",
73
+ "keywords": [
74
+ "promise",
75
+ "performance",
76
+ "promises",
77
+ "promises-a",
78
+ "promises-aplus",
79
+ "async",
80
+ "await",
81
+ "deferred",
82
+ "deferreds",
83
+ "future",
84
+ "flow control",
85
+ "dsl",
86
+ "fluent interface"
87
+ ],
88
+ "license": "MIT",
89
+ "main": "./js/release/bluebird.js",
90
+ "name": "bluebird",
91
+ "repository": {
92
+ "type": "git",
93
+ "url": "git://github.com/petkaantonov/bluebird.git"
94
+ },
95
+ "scripts": {
96
+ "generate-browser-core": "node tools/build.js --features=core --no-debug --release --zalgo --browser --minify && mv js/browser/bluebird.js js/browser/bluebird.core.js && mv js/browser/bluebird.min.js js/browser/bluebird.core.min.js",
97
+ "generate-browser-full": "node tools/build.js --no-clean --no-debug --release --browser --minify",
98
+ "istanbul": "istanbul",
99
+ "lint": "node scripts/jshint.js",
100
+ "prepublish": "npm run generate-browser-core && npm run generate-browser-full",
101
+ "test": "node --expose-gc tools/test.js"
102
+ },
103
+ "version": "3.7.2",
104
+ "webpack": "./js/release/bluebird.js"
78
105
  }
@@ -62,10 +62,13 @@ function parseCommaParts(str) {
62
62
  return parts;
63
63
  }
64
64
 
65
- function expandTop(str) {
65
+ function expandTop(str, options) {
66
66
  if (!str)
67
67
  return [];
68
68
 
69
+ options = options || {};
70
+ var max = options.max == null ? Infinity : options.max;
71
+
69
72
  // I don't know why Bash 4.3 does this, but it does.
70
73
  // Anything starting with {} will have the first two bytes preserved
71
74
  // but *only* at the top level, so {},a}b will not expand to anything,
@@ -76,7 +79,7 @@ function expandTop(str) {
76
79
  str = '\\{\\}' + str.substr(2);
77
80
  }
78
81
 
79
- return expand(escapeBraces(str), true).map(unescapeBraces);
82
+ return expand(escapeBraces(str), max, true).map(unescapeBraces);
80
83
  }
81
84
 
82
85
  function identity(e) {
@@ -97,7 +100,7 @@ function gte(i, y) {
97
100
  return i >= y;
98
101
  }
99
102
 
100
- function expand(str, isTop) {
103
+ function expand(str, max, isTop) {
101
104
  var expansions = [];
102
105
 
103
106
  var m = balanced('{', '}', str);
@@ -109,9 +112,9 @@ function expand(str, isTop) {
109
112
  var isOptions = m.body.indexOf(',') >= 0;
110
113
  if (!isSequence && !isOptions) {
111
114
  // {a},b}
112
- if (m.post.match(/,.*\}/)) {
115
+ if (m.post.match(/,(?!,).*\}/)) {
113
116
  str = m.pre + '{' + m.body + escClose + m.post;
114
- return expand(str);
117
+ return expand(str, max, true);
115
118
  }
116
119
  return [str];
117
120
  }
@@ -123,10 +126,10 @@ function expand(str, isTop) {
123
126
  n = parseCommaParts(m.body);
124
127
  if (n.length === 1) {
125
128
  // x{{a,b}}y ==> x{a}y x{b}y
126
- n = expand(n[0], false).map(embrace);
129
+ n = expand(n[0], max, false).map(embrace);
127
130
  if (n.length === 1) {
128
131
  var post = m.post.length
129
- ? expand(m.post, false)
132
+ ? expand(m.post, max, false)
130
133
  : [''];
131
134
  return post.map(function(p) {
132
135
  return m.pre + n[0] + p;
@@ -141,7 +144,7 @@ function expand(str, isTop) {
141
144
  // no need to expand pre, since it is guaranteed to be free of brace-sets
142
145
  var pre = m.pre;
143
146
  var post = m.post.length
144
- ? expand(m.post, false)
147
+ ? expand(m.post, max, false)
145
148
  : [''];
146
149
 
147
150
  var N;
@@ -151,7 +154,7 @@ function expand(str, isTop) {
151
154
  var y = numeric(n[1]);
152
155
  var width = Math.max(n[0].length, n[1].length)
153
156
  var incr = n.length == 3
154
- ? Math.abs(numeric(n[2]))
157
+ ? Math.max(Math.abs(numeric(n[2])), 1)
155
158
  : 1;
156
159
  var test = lte;
157
160
  var reverse = y < x;
@@ -185,11 +188,11 @@ function expand(str, isTop) {
185
188
  N.push(c);
186
189
  }
187
190
  } else {
188
- N = concatMap(n, function(el) { return expand(el, false) });
191
+ N = concatMap(n, function(el) { return expand(el, max, false) });
189
192
  }
190
193
 
191
194
  for (var j = 0; j < N.length; j++) {
192
- for (var k = 0; k < post.length; k++) {
195
+ for (var k = 0; k < post.length && expansions.length < max; k++) {
193
196
  var expansion = pre + N[j] + post[k];
194
197
  if (!isTop || isSequence || expansion)
195
198
  expansions.push(expansion);
@@ -198,4 +201,3 @@ function expand(str, isTop) {
198
201
 
199
202
  return expansions;
200
203
  }
201
-
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "brace-expansion",
3
3
  "description": "Brace expansion as known from sh/bash",
4
- "version": "1.1.11",
4
+ "version": "1.1.14",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git://github.com/juliangruber/brace-expansion.git"
@@ -43,5 +43,8 @@
43
43
  "iphone/6.0..latest",
44
44
  "android-browser/4.2..latest"
45
45
  ]
46
+ },
47
+ "publishConfig": {
48
+ "tag": "1.x"
46
49
  }
47
50
  }
@@ -1,17 +1,43 @@
1
1
  {
2
- "version": "0.9.0",
3
- "name": "catharsis",
4
- "description": "A JavaScript parser for Google Closure Compiler and JSDoc type expressions.",
5
- "author": "Jeff Williams <jeffrey.l.williams@gmail.com>",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/hegemonic/catharsis"
2
+ "_args": [
3
+ [
4
+ "catharsis@0.9.0",
5
+ "/Users/fenster/dev/protobuf.js/cli"
6
+ ]
7
+ ],
8
+ "_from": "catharsis@0.9.0",
9
+ "_id": "catharsis@0.9.0",
10
+ "_inBundle": false,
11
+ "_integrity": "sha512-prMTQVpcns/tzFgFVkVp6ak6RykZyWb3gu8ckUpd6YkTlacOd3DXGJjIpD4Q6zJirizvaiAjSSHlOsA+6sNh2A==",
12
+ "_location": "/catharsis",
13
+ "_phantomChildren": {},
14
+ "_requested": {
15
+ "type": "version",
16
+ "registry": true,
17
+ "raw": "catharsis@0.9.0",
18
+ "name": "catharsis",
19
+ "escapedName": "catharsis",
20
+ "rawSpec": "0.9.0",
21
+ "saveSpec": null,
22
+ "fetchSpec": "0.9.0"
23
+ },
24
+ "_requiredBy": [
25
+ "/jsdoc"
26
+ ],
27
+ "_resolved": "https://registry.npmjs.org/catharsis/-/catharsis-0.9.0.tgz",
28
+ "_spec": "0.9.0",
29
+ "_where": "/Users/fenster/dev/protobuf.js/cli",
30
+ "author": {
31
+ "name": "Jeff Williams",
32
+ "email": "jeffrey.l.williams@gmail.com"
33
+ },
34
+ "bugs": {
35
+ "url": "https://github.com/hegemonic/catharsis/issues"
9
36
  },
10
- "bugs": "https://github.com/hegemonic/catharsis/issues",
11
- "main": "catharsis.js",
12
37
  "dependencies": {
13
38
  "lodash": "^4.17.15"
14
39
  },
40
+ "description": "A JavaScript parser for Google Closure Compiler and JSDoc type expressions.",
15
41
  "devDependencies": {
16
42
  "ajv": "^6.12.2",
17
43
  "mocha": "^8.0.1",
@@ -22,9 +48,17 @@
22
48
  "engines": {
23
49
  "node": ">= 10"
24
50
  },
51
+ "homepage": "https://github.com/hegemonic/catharsis#readme",
52
+ "license": "MIT",
53
+ "main": "catharsis.js",
54
+ "name": "catharsis",
55
+ "repository": {
56
+ "type": "git",
57
+ "url": "git+https://github.com/hegemonic/catharsis.git"
58
+ },
25
59
  "scripts": {
26
60
  "prepare": "./node_modules/pegjs/bin/pegjs ./lib/parser.pegjs",
27
61
  "test": "./node_modules/mocha/bin/mocha"
28
62
  },
29
- "license": "MIT"
63
+ "version": "0.9.0"
30
64
  }
@@ -0,0 +1,5 @@
1
+ language: node_js
2
+ node_js:
3
+ - 0.6
4
+ - 0.8
5
+ - 0.10
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012, 2013 Thorsten Lorenz <thlorenz@gmx.de>
2
+ Copyright (c) 2012 James Halliday <mail@substack.net>
3
+ Copyright (c) 2009 Thomas Robinson <280north.com>
4
+
5
+ This software is released under the MIT license:
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
8
+ this software and associated documentation files (the "Software"), to deal in
9
+ the Software without restriction, including without limitation the rights to
10
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
11
+ the Software, and to permit persons to whom the Software is furnished to do so,
12
+ subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
19
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
20
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
21
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,70 @@
1
+ deep-is
2
+ ==========
3
+
4
+ Node's `assert.deepEqual() algorithm` as a standalone module. Exactly like
5
+ [deep-equal](https://github.com/substack/node-deep-equal) except for the fact that `deepEqual(NaN, NaN) === true`.
6
+
7
+ This module is around [5 times faster](https://gist.github.com/2790507)
8
+ than wrapping `assert.deepEqual()` in a `try/catch`.
9
+
10
+ [![browser support](http://ci.testling.com/thlorenz/deep-is.png)](http://ci.testling.com/thlorenz/deep-is)
11
+
12
+ [![build status](https://secure.travis-ci.org/thlorenz/deep-is.png)](http://travis-ci.org/thlorenz/deep-is)
13
+
14
+ example
15
+ =======
16
+
17
+ ``` js
18
+ var equal = require('deep-is');
19
+ console.dir([
20
+ equal(
21
+ { a : [ 2, 3 ], b : [ 4 ] },
22
+ { a : [ 2, 3 ], b : [ 4 ] }
23
+ ),
24
+ equal(
25
+ { x : 5, y : [6] },
26
+ { x : 5, y : 6 }
27
+ )
28
+ ]);
29
+ ```
30
+
31
+ methods
32
+ =======
33
+
34
+ var deepIs = require('deep-is')
35
+
36
+ deepIs(a, b)
37
+ ---------------
38
+
39
+ Compare objects `a` and `b`, returning whether they are equal according to a
40
+ recursive equality algorithm.
41
+
42
+ install
43
+ =======
44
+
45
+ With [npm](http://npmjs.org) do:
46
+
47
+ ```
48
+ npm install deep-is
49
+ ```
50
+
51
+ test
52
+ ====
53
+
54
+ With [npm](http://npmjs.org) do:
55
+
56
+ ```
57
+ npm test
58
+ ```
59
+
60
+ license
61
+ =======
62
+
63
+ Copyright (c) 2012, 2013 Thorsten Lorenz <thlorenz@gmx.de>
64
+ Copyright (c) 2012 James Halliday <mail@substack.net>
65
+
66
+ Derived largely from node's assert module, which has the copyright statement:
67
+
68
+ Copyright (c) 2009 Thomas Robinson <280north.com>
69
+
70
+ Released under the MIT license, see LICENSE for details.
@@ -0,0 +1,11 @@
1
+ var equal = require('../');
2
+ console.dir([
3
+ equal(
4
+ { a : [ 2, 3 ], b : [ 4 ] },
5
+ { a : [ 2, 3 ], b : [ 4 ] }
6
+ ),
7
+ equal(
8
+ { x : 5, y : [6] },
9
+ { x : 5, y : 6 }
10
+ )
11
+ ]);