@aws-solutions-constructs/core 2.51.0 → 2.52.0

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 (200) hide show
  1. package/.eslintignore +2 -0
  2. package/.jsii +49 -4
  3. package/node_modules/ansi-regex/index.js +8 -2
  4. package/node_modules/ansi-regex/license +4 -16
  5. package/node_modules/ansi-regex/package.json +53 -62
  6. package/node_modules/ansi-regex/readme.md +48 -9
  7. package/node_modules/aproba/index.js +33 -33
  8. package/node_modules/aproba/package.json +5 -4
  9. package/node_modules/are-we-there-yet/LICENSE.md +18 -0
  10. package/node_modules/are-we-there-yet/README.md +16 -3
  11. package/node_modules/are-we-there-yet/lib/tracker-base.js +13 -0
  12. package/node_modules/are-we-there-yet/lib/tracker-group.js +112 -0
  13. package/node_modules/are-we-there-yet/lib/tracker-stream.js +42 -0
  14. package/node_modules/are-we-there-yet/lib/tracker.js +34 -0
  15. package/node_modules/are-we-there-yet/package.json +38 -20
  16. package/node_modules/color-support/README.md +129 -0
  17. package/node_modules/color-support/bin.js +3 -0
  18. package/node_modules/color-support/browser.js +14 -0
  19. package/node_modules/color-support/index.js +134 -0
  20. package/node_modules/color-support/package.json +36 -0
  21. package/node_modules/gauge/LICENSE.md +20 -0
  22. package/node_modules/gauge/README.md +19 -16
  23. package/node_modules/gauge/{base-theme.js → lib/base-theme.js} +7 -3
  24. package/node_modules/gauge/lib/has-color.js +4 -0
  25. package/node_modules/gauge/{index.js → lib/index.js} +90 -34
  26. package/node_modules/gauge/{plumbing.js → lib/plumbing.js} +3 -1
  27. package/node_modules/gauge/{progress-bar.js → lib/progress-bar.js} +12 -6
  28. package/node_modules/gauge/{render-template.js → lib/render-template.js} +69 -28
  29. package/node_modules/gauge/{template-item.js → lib/template-item.js} +21 -7
  30. package/node_modules/gauge/{theme-set.js → lib/theme-set.js} +31 -24
  31. package/node_modules/gauge/lib/themes.js +56 -0
  32. package/node_modules/gauge/{wide-truncate.js → lib/wide-truncate.js} +9 -3
  33. package/node_modules/gauge/package.json +47 -42
  34. package/node_modules/is-fullwidth-code-point/index.js +40 -36
  35. package/node_modules/is-fullwidth-code-point/license +4 -16
  36. package/node_modules/is-fullwidth-code-point/package.json +40 -43
  37. package/node_modules/is-fullwidth-code-point/readme.md +8 -8
  38. package/node_modules/npmlog/LICENSE.md +20 -0
  39. package/node_modules/npmlog/{log.js → lib/log.js} +149 -58
  40. package/node_modules/npmlog/package.json +36 -12
  41. package/node_modules/signal-exit/LICENSE.txt +1 -1
  42. package/node_modules/signal-exit/README.md +56 -21
  43. package/node_modules/signal-exit/dist/cjs/browser.d.ts +12 -0
  44. package/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
  45. package/node_modules/signal-exit/dist/cjs/browser.js +10 -0
  46. package/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
  47. package/node_modules/signal-exit/dist/cjs/index.d.ts +48 -0
  48. package/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
  49. package/node_modules/signal-exit/dist/cjs/index.js +279 -0
  50. package/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
  51. package/node_modules/signal-exit/dist/cjs/package.json +3 -0
  52. package/node_modules/signal-exit/dist/cjs/signals.d.ts +29 -0
  53. package/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
  54. package/node_modules/signal-exit/dist/cjs/signals.js +42 -0
  55. package/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
  56. package/node_modules/signal-exit/dist/mjs/browser.d.ts +12 -0
  57. package/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
  58. package/node_modules/signal-exit/dist/mjs/browser.js +4 -0
  59. package/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
  60. package/node_modules/signal-exit/dist/mjs/index.d.ts +48 -0
  61. package/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
  62. package/node_modules/signal-exit/dist/mjs/index.js +275 -0
  63. package/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
  64. package/node_modules/signal-exit/dist/mjs/package.json +3 -0
  65. package/node_modules/signal-exit/dist/mjs/signals.d.ts +29 -0
  66. package/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
  67. package/node_modules/signal-exit/dist/mjs/signals.js +39 -0
  68. package/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
  69. package/node_modules/signal-exit/package.json +87 -19
  70. package/node_modules/string-width/index.js +29 -19
  71. package/node_modules/string-width/license +4 -16
  72. package/node_modules/string-width/package.json +54 -54
  73. package/node_modules/string-width/readme.md +17 -9
  74. package/node_modules/strip-ansi/index.js +2 -4
  75. package/node_modules/strip-ansi/license +4 -16
  76. package/node_modules/strip-ansi/package.json +52 -55
  77. package/node_modules/strip-ansi/readme.md +20 -7
  78. package/package.json +8 -7
  79. package/test/test-helper.d.ts +1 -1
  80. package/test/test-helper.js +5 -5
  81. package/node_modules/are-we-there-yet/CHANGES.md +0 -37
  82. package/node_modules/are-we-there-yet/LICENSE +0 -5
  83. package/node_modules/are-we-there-yet/tracker-base.js +0 -11
  84. package/node_modules/are-we-there-yet/tracker-group.js +0 -107
  85. package/node_modules/are-we-there-yet/tracker-stream.js +0 -36
  86. package/node_modules/are-we-there-yet/tracker.js +0 -30
  87. package/node_modules/code-point-at/index.js +0 -32
  88. package/node_modules/code-point-at/license +0 -21
  89. package/node_modules/code-point-at/package.json +0 -38
  90. package/node_modules/code-point-at/readme.md +0 -32
  91. package/node_modules/core-util-is/LICENSE +0 -19
  92. package/node_modules/core-util-is/README.md +0 -3
  93. package/node_modules/core-util-is/lib/util.js +0 -107
  94. package/node_modules/core-util-is/package.json +0 -38
  95. package/node_modules/delegates/.npmignore +0 -1
  96. package/node_modules/delegates/History.md +0 -22
  97. package/node_modules/delegates/License +0 -20
  98. package/node_modules/delegates/Makefile +0 -8
  99. package/node_modules/delegates/Readme.md +0 -94
  100. package/node_modules/delegates/index.js +0 -121
  101. package/node_modules/delegates/package.json +0 -13
  102. package/node_modules/delegates/test/index.js +0 -94
  103. package/node_modules/gauge/CHANGELOG.md +0 -160
  104. package/node_modules/gauge/LICENSE +0 -13
  105. package/node_modules/gauge/has-color.js +0 -12
  106. package/node_modules/gauge/themes.js +0 -54
  107. package/node_modules/inherits/LICENSE +0 -16
  108. package/node_modules/inherits/README.md +0 -42
  109. package/node_modules/inherits/inherits.js +0 -9
  110. package/node_modules/inherits/inherits_browser.js +0 -27
  111. package/node_modules/inherits/package.json +0 -29
  112. package/node_modules/isarray/.npmignore +0 -1
  113. package/node_modules/isarray/.travis.yml +0 -4
  114. package/node_modules/isarray/Makefile +0 -6
  115. package/node_modules/isarray/README.md +0 -60
  116. package/node_modules/isarray/component.json +0 -19
  117. package/node_modules/isarray/index.js +0 -5
  118. package/node_modules/isarray/package.json +0 -45
  119. package/node_modules/isarray/test.js +0 -20
  120. package/node_modules/number-is-nan/index.js +0 -4
  121. package/node_modules/number-is-nan/license +0 -21
  122. package/node_modules/number-is-nan/package.json +0 -35
  123. package/node_modules/number-is-nan/readme.md +0 -28
  124. package/node_modules/object-assign/index.js +0 -90
  125. package/node_modules/object-assign/license +0 -21
  126. package/node_modules/object-assign/package.json +0 -42
  127. package/node_modules/object-assign/readme.md +0 -61
  128. package/node_modules/process-nextick-args/index.js +0 -45
  129. package/node_modules/process-nextick-args/license.md +0 -19
  130. package/node_modules/process-nextick-args/package.json +0 -25
  131. package/node_modules/process-nextick-args/readme.md +0 -18
  132. package/node_modules/readable-stream/.travis.yml +0 -34
  133. package/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  134. package/node_modules/readable-stream/GOVERNANCE.md +0 -136
  135. package/node_modules/readable-stream/LICENSE +0 -47
  136. package/node_modules/readable-stream/README.md +0 -58
  137. package/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
  138. package/node_modules/readable-stream/duplex-browser.js +0 -1
  139. package/node_modules/readable-stream/duplex.js +0 -1
  140. package/node_modules/readable-stream/lib/_stream_duplex.js +0 -131
  141. package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -47
  142. package/node_modules/readable-stream/lib/_stream_readable.js +0 -1019
  143. package/node_modules/readable-stream/lib/_stream_transform.js +0 -214
  144. package/node_modules/readable-stream/lib/_stream_writable.js +0 -685
  145. package/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -78
  146. package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -84
  147. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  148. package/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  149. package/node_modules/readable-stream/package.json +0 -52
  150. package/node_modules/readable-stream/passthrough.js +0 -1
  151. package/node_modules/readable-stream/readable-browser.js +0 -7
  152. package/node_modules/readable-stream/readable.js +0 -19
  153. package/node_modules/readable-stream/transform.js +0 -1
  154. package/node_modules/readable-stream/writable-browser.js +0 -1
  155. package/node_modules/readable-stream/writable.js +0 -8
  156. package/node_modules/safe-buffer/LICENSE +0 -21
  157. package/node_modules/safe-buffer/README.md +0 -584
  158. package/node_modules/safe-buffer/index.d.ts +0 -187
  159. package/node_modules/safe-buffer/index.js +0 -62
  160. package/node_modules/safe-buffer/package.json +0 -37
  161. package/node_modules/signal-exit/index.js +0 -202
  162. package/node_modules/signal-exit/signals.js +0 -53
  163. package/node_modules/string_decoder/.travis.yml +0 -50
  164. package/node_modules/string_decoder/LICENSE +0 -48
  165. package/node_modules/string_decoder/README.md +0 -47
  166. package/node_modules/string_decoder/lib/string_decoder.js +0 -296
  167. package/node_modules/string_decoder/package.json +0 -31
  168. package/node_modules/util-deprecate/History.md +0 -16
  169. package/node_modules/util-deprecate/LICENSE +0 -24
  170. package/node_modules/util-deprecate/README.md +0 -53
  171. package/node_modules/util-deprecate/browser.js +0 -67
  172. package/node_modules/util-deprecate/node.js +0 -6
  173. package/node_modules/util-deprecate/package.json +0 -27
  174. package/node_modules/wide-align/node_modules/ansi-regex/index.js +0 -10
  175. package/node_modules/wide-align/node_modules/ansi-regex/license +0 -9
  176. package/node_modules/wide-align/node_modules/ansi-regex/package.json +0 -55
  177. package/node_modules/wide-align/node_modules/ansi-regex/readme.md +0 -78
  178. package/node_modules/wide-align/node_modules/is-fullwidth-code-point/index.js +0 -50
  179. package/node_modules/wide-align/node_modules/is-fullwidth-code-point/license +0 -9
  180. package/node_modules/wide-align/node_modules/is-fullwidth-code-point/package.json +0 -42
  181. package/node_modules/wide-align/node_modules/is-fullwidth-code-point/readme.md +0 -39
  182. package/node_modules/wide-align/node_modules/string-width/index.js +0 -47
  183. package/node_modules/wide-align/node_modules/string-width/license +0 -9
  184. package/node_modules/wide-align/node_modules/string-width/package.json +0 -56
  185. package/node_modules/wide-align/node_modules/string-width/readme.md +0 -50
  186. package/node_modules/wide-align/node_modules/strip-ansi/index.js +0 -4
  187. package/node_modules/wide-align/node_modules/strip-ansi/license +0 -9
  188. package/node_modules/wide-align/node_modules/strip-ansi/package.json +0 -54
  189. package/node_modules/wide-align/node_modules/strip-ansi/readme.md +0 -46
  190. /package/node_modules/{wide-align/node_modules/ansi-regex → ansi-regex}/index.d.ts +0 -0
  191. /package/node_modules/are-we-there-yet/{index.js → lib/index.js} +0 -0
  192. /package/node_modules/{npmlog → color-support}/LICENSE +0 -0
  193. /package/node_modules/gauge/{error.js → lib/error.js} +0 -0
  194. /package/node_modules/gauge/{process.js → lib/process.js} +0 -0
  195. /package/node_modules/gauge/{set-immediate.js → lib/set-immediate.js} +0 -0
  196. /package/node_modules/gauge/{set-interval.js → lib/set-interval.js} +0 -0
  197. /package/node_modules/gauge/{spin.js → lib/spin.js} +0 -0
  198. /package/node_modules/{wide-align/node_modules/is-fullwidth-code-point → is-fullwidth-code-point}/index.d.ts +0 -0
  199. /package/node_modules/{wide-align/node_modules/string-width → string-width}/index.d.ts +0 -0
  200. /package/node_modules/{wide-align/node_modules/strip-ansi → strip-ansi}/index.d.ts +0 -0
@@ -1,121 +0,0 @@
1
-
2
- /**
3
- * Expose `Delegator`.
4
- */
5
-
6
- module.exports = Delegator;
7
-
8
- /**
9
- * Initialize a delegator.
10
- *
11
- * @param {Object} proto
12
- * @param {String} target
13
- * @api public
14
- */
15
-
16
- function Delegator(proto, target) {
17
- if (!(this instanceof Delegator)) return new Delegator(proto, target);
18
- this.proto = proto;
19
- this.target = target;
20
- this.methods = [];
21
- this.getters = [];
22
- this.setters = [];
23
- this.fluents = [];
24
- }
25
-
26
- /**
27
- * Delegate method `name`.
28
- *
29
- * @param {String} name
30
- * @return {Delegator} self
31
- * @api public
32
- */
33
-
34
- Delegator.prototype.method = function(name){
35
- var proto = this.proto;
36
- var target = this.target;
37
- this.methods.push(name);
38
-
39
- proto[name] = function(){
40
- return this[target][name].apply(this[target], arguments);
41
- };
42
-
43
- return this;
44
- };
45
-
46
- /**
47
- * Delegator accessor `name`.
48
- *
49
- * @param {String} name
50
- * @return {Delegator} self
51
- * @api public
52
- */
53
-
54
- Delegator.prototype.access = function(name){
55
- return this.getter(name).setter(name);
56
- };
57
-
58
- /**
59
- * Delegator getter `name`.
60
- *
61
- * @param {String} name
62
- * @return {Delegator} self
63
- * @api public
64
- */
65
-
66
- Delegator.prototype.getter = function(name){
67
- var proto = this.proto;
68
- var target = this.target;
69
- this.getters.push(name);
70
-
71
- proto.__defineGetter__(name, function(){
72
- return this[target][name];
73
- });
74
-
75
- return this;
76
- };
77
-
78
- /**
79
- * Delegator setter `name`.
80
- *
81
- * @param {String} name
82
- * @return {Delegator} self
83
- * @api public
84
- */
85
-
86
- Delegator.prototype.setter = function(name){
87
- var proto = this.proto;
88
- var target = this.target;
89
- this.setters.push(name);
90
-
91
- proto.__defineSetter__(name, function(val){
92
- return this[target][name] = val;
93
- });
94
-
95
- return this;
96
- };
97
-
98
- /**
99
- * Delegator fluent accessor
100
- *
101
- * @param {String} name
102
- * @return {Delegator} self
103
- * @api public
104
- */
105
-
106
- Delegator.prototype.fluent = function (name) {
107
- var proto = this.proto;
108
- var target = this.target;
109
- this.fluents.push(name);
110
-
111
- proto[name] = function(val){
112
- if ('undefined' != typeof val) {
113
- this[target][name] = val;
114
- return this;
115
- } else {
116
- return this[target][name];
117
- }
118
- };
119
-
120
- return this;
121
- };
@@ -1,13 +0,0 @@
1
- {
2
- "name": "delegates",
3
- "version": "1.0.0",
4
- "repository": "visionmedia/node-delegates",
5
- "description": "delegate methods and accessors to another property",
6
- "keywords": ["delegate", "delegation"],
7
- "dependencies": {},
8
- "devDependencies": {
9
- "mocha": "*",
10
- "should": "*"
11
- },
12
- "license": "MIT"
13
- }
@@ -1,94 +0,0 @@
1
-
2
- var assert = require('assert');
3
- var delegate = require('..');
4
-
5
- describe('.method(name)', function(){
6
- it('should delegate methods', function(){
7
- var obj = {};
8
-
9
- obj.request = {
10
- foo: function(bar){
11
- assert(this == obj.request);
12
- return bar;
13
- }
14
- };
15
-
16
- delegate(obj, 'request').method('foo');
17
-
18
- obj.foo('something').should.equal('something');
19
- })
20
- })
21
-
22
- describe('.getter(name)', function(){
23
- it('should delegate getters', function(){
24
- var obj = {};
25
-
26
- obj.request = {
27
- get type() {
28
- return 'text/html';
29
- }
30
- }
31
-
32
- delegate(obj, 'request').getter('type');
33
-
34
- obj.type.should.equal('text/html');
35
- })
36
- })
37
-
38
- describe('.setter(name)', function(){
39
- it('should delegate setters', function(){
40
- var obj = {};
41
-
42
- obj.request = {
43
- get type() {
44
- return this._type.toUpperCase();
45
- },
46
-
47
- set type(val) {
48
- this._type = val;
49
- }
50
- }
51
-
52
- delegate(obj, 'request').setter('type');
53
-
54
- obj.type = 'hey';
55
- obj.request.type.should.equal('HEY');
56
- })
57
- })
58
-
59
- describe('.access(name)', function(){
60
- it('should delegate getters and setters', function(){
61
- var obj = {};
62
-
63
- obj.request = {
64
- get type() {
65
- return this._type.toUpperCase();
66
- },
67
-
68
- set type(val) {
69
- this._type = val;
70
- }
71
- }
72
-
73
- delegate(obj, 'request').access('type');
74
-
75
- obj.type = 'hey';
76
- obj.type.should.equal('HEY');
77
- })
78
- })
79
-
80
- describe('.fluent(name)', function () {
81
- it('should delegate in a fluent fashion', function () {
82
- var obj = {
83
- settings: {
84
- env: 'development'
85
- }
86
- };
87
-
88
- delegate(obj, 'settings').fluent('env');
89
-
90
- obj.env().should.equal('development');
91
- obj.env('production').should.equal(obj);
92
- obj.settings.env.should.equal('production');
93
- })
94
- })
@@ -1,160 +0,0 @@
1
- ### v2.7.4
2
-
3
- * Reset colors prior to ending a line, to eliminate flicker when a line
4
- is trucated between start and end color sequences.
5
-
6
- ### v2.7.3
7
-
8
- * Only create our onExit handler when we're enabled and remove it when we're
9
- disabled. This stops us from creating multiple onExit handlers when
10
- multiple gauge objects are being used.
11
- * Fix bug where if a theme name were given instead of a theme object, it
12
- would crash.
13
- * Remove supports-color because it's not actually used. Uhm. Yes, I just
14
- updated it. >.>
15
-
16
- ### v2.7.2
17
-
18
- * Use supports-color instead of has-color (as the module has been renamed)
19
-
20
- ### v2.7.1
21
-
22
- * Bug fix: Calls to show/pulse while the progress bar is disabled should still
23
- update our internal representation of what would be shown should it be enabled.
24
-
25
- ### v2.7.0
26
-
27
- * New feature: Add new `isEnabled` method to allow introspection of the gauge's
28
- "enabledness" as controlled by `.enable()` and `.disable()`.
29
-
30
- ### v2.6.0
31
-
32
- * Bug fix: Don't run the code associated with `enable`/`disable` if the gauge
33
- is already enabled or disabled respectively. This prevents leaking event
34
- listeners, amongst other weirdness.
35
- * New feature: Template items can have default values that will be used if no
36
- value was otherwise passed in.
37
-
38
- ### v2.5.3
39
-
40
- * Default to `enabled` only if we have a tty. Users can always override
41
- this by passing in the `enabled` option explicitly or by calling calling
42
- `gauge.enable()`.
43
-
44
- ### v2.5.2
45
-
46
- * Externalized `./console-strings.js` into `console-control-strings`.
47
-
48
- ### v2.5.1
49
-
50
- * Update to `signal-exit@3.0.0`, which fixes a compatibility bug with the
51
- node profiler.
52
- * [#39](https://github.com/iarna/gauge/pull/39) Fix tests on 0.10 and add
53
- a missing devDependency. ([@helloyou2012](https://github.com/helloyou2012))
54
-
55
- ### v2.5.0
56
-
57
- * Add way to programmatically fetch a list of theme names in a themeset
58
- (`Themeset.getThemeNames`).
59
-
60
- ### v2.4.0
61
-
62
- * Add support for setting themesets on existing gauge objects.
63
- * Add post-IO callback to `gauge.hide()` as it is somtetimes necessary when
64
- your terminal is interleaving output from multiple filehandles (ie, stdout
65
- & stderr).
66
-
67
- ### v2.3.1
68
-
69
- * Fix a refactor bug in setTheme where it wasn't accepting the various types
70
- of args it should.
71
-
72
- ### v2.3.0
73
-
74
- #### FEATURES
75
-
76
- * Add setTemplate & setTheme back in.
77
- * Add support for named themes, you can now ask for things like 'colorASCII'
78
- and 'brailleSpinner'. Of course, you can still pass in theme objects.
79
- Additionally you can now pass in an object with `hasUnicode`, `hasColor` and
80
- `platform` keys in order to override our guesses as to those values when
81
- selecting a default theme from the themeset.
82
- * Make the output stream optional (it defaults to `process.stderr` now).
83
- * Add `setWriteTo(stream[, tty])` to change the output stream and,
84
- optionally, tty.
85
-
86
- #### BUG FIXES & REFACTORING
87
-
88
- * Abort the display phase early if we're supposed to be hidden and we are.
89
- * Stop printing a bunch of spaces at the end of lines, since we're already
90
- using an erase-to-end-of-line code anyway.
91
- * The unicode themes were missing the subsection separator.
92
-
93
- ### v2.2.1
94
-
95
- * Fix image in readme
96
-
97
- ### v2.2.0
98
-
99
- * All new themes API– reference themes by name and pass in custom themes and
100
- themesets (themesets get platform support autodetection done on them to
101
- select the best theme). Theme mixins let you add features to all existing
102
- themes.
103
- * Much, much improved test coverage.
104
-
105
- ### v2.1.0
106
-
107
- * Got rid of ░ in the default platform, noUnicode, hasColor theme. Thanks
108
- to @yongtw123 for pointing out this had snuck in.
109
- * Fiddled with the demo output to make it easier to see the spinner spin. Also
110
- added prints before each platforms test output.
111
- * I forgot to include `signal-exit` in our deps. <.< Thank you @KenanY for
112
- finding this. Then I was lazy and made a new commit instead of using his
113
- PR. Again, thank you for your patience @KenenY.
114
- * Drastically speed up travis testing.
115
- * Add a small javascript demo (demo.js) for showing off the various themes
116
- (and testing them on diff platforms).
117
- * Change: The subsection separator from ⁄ and / (different chars) to >.
118
- * Fix crasher: A show or pulse without a label would cause the template renderer
119
- to complain about a missing value.
120
- * New feature: Add the ability to disable the clean-up-on-exit behavior.
121
- Not something I expect to be widely desirable, but important if you have
122
- multiple distinct gauge instances in your app.
123
- * Use our own color support detection.
124
- The `has-color` module proved too magic for my needs, making assumptions
125
- as to which stream we write to and reading command line arguments.
126
-
127
- ### v2.0.0
128
-
129
- This is a major rewrite of the internals. Externally there are fewer
130
- changes:
131
-
132
- * On node>0.8 gauge object now prints updates at a fixed rate. This means
133
- that when you call `show` it may wate up to `updateInterval` ms before it
134
- actually prints an update. You override this behavior with the
135
- `fixedFramerate` option.
136
- * The gauge object now keeps the cursor hidden as long as it's enabled and
137
- shown.
138
- * The constructor's arguments have changed, now it takes a mandatory output
139
- stream and an optional options object. The stream no longer needs to be
140
- an `ansi`ified stream, although it can be if you want (but we won't make
141
- use of its special features).
142
- * Previously the gauge was disabled by default if `process.stdout` wasn't a
143
- tty. Now it always defaults to enabled. If you want the previous
144
- behavior set the `enabled` option to `process.stdout.isTTY`.
145
- * The constructor's options have changed– see the docs for details.
146
- * Themes are entirely different. If you were using a custom theme, or
147
- referring to one directly (eg via `Gauge.unicode` or `Gauge.ascii`) then
148
- you'll need to change your code. You can get the equivalent of the latter
149
- with:
150
- ```
151
- var themes = require('gauge/themes')
152
- var unicodeTheme = themes(true, true) // returns the color unicode theme for your platform
153
- ```
154
- The default themes no longer use any ambiguous width characters, so even
155
- if you choose to display those as wide your progress bar should still
156
- display correctly.
157
- * Templates are entirely different and if you were using a custom one, you
158
- should consult the documentation to learn how to recreate it. If you were
159
- using the default, be aware that it has changed and the result looks quite
160
- a bit different.
@@ -1,13 +0,0 @@
1
- Copyright (c) 2014, Rebecca Turner <me@re-becca.org>
2
-
3
- Permission to use, copy, modify, and/or distribute this software for any
4
- purpose with or without fee is hereby granted, provided that the above
5
- copyright notice and this permission notice appear in all copies.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13
- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -1,12 +0,0 @@
1
- 'use strict'
2
-
3
- module.exports = isWin32() || isColorTerm()
4
-
5
- function isWin32 () {
6
- return process.platform === 'win32'
7
- }
8
-
9
- function isColorTerm () {
10
- var termHasColor = /^screen|^xterm|^vt100|color|ansi|cygwin|linux/i
11
- return !!process.env.COLORTERM || termHasColor.test(process.env.TERM)
12
- }
@@ -1,54 +0,0 @@
1
- 'use strict'
2
- var consoleControl = require('console-control-strings')
3
- var ThemeSet = require('./theme-set.js')
4
-
5
- var themes = module.exports = new ThemeSet()
6
-
7
- themes.addTheme('ASCII', {
8
- preProgressbar: '[',
9
- postProgressbar: ']',
10
- progressbarTheme: {
11
- complete: '#',
12
- remaining: '.'
13
- },
14
- activityIndicatorTheme: '-\\|/',
15
- preSubsection: '>'
16
- })
17
-
18
- themes.addTheme('colorASCII', themes.getTheme('ASCII'), {
19
- progressbarTheme: {
20
- preComplete: consoleControl.color('inverse'),
21
- complete: ' ',
22
- postComplete: consoleControl.color('stopInverse'),
23
- preRemaining: consoleControl.color('brightBlack'),
24
- remaining: '.',
25
- postRemaining: consoleControl.color('reset')
26
- }
27
- })
28
-
29
- themes.addTheme('brailleSpinner', {
30
- preProgressbar: '⸨',
31
- postProgressbar: '⸩',
32
- progressbarTheme: {
33
- complete: '░',
34
- remaining: '⠂'
35
- },
36
- activityIndicatorTheme: '⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏',
37
- preSubsection: '>'
38
- })
39
-
40
- themes.addTheme('colorBrailleSpinner', themes.getTheme('brailleSpinner'), {
41
- progressbarTheme: {
42
- preComplete: consoleControl.color('inverse'),
43
- complete: ' ',
44
- postComplete: consoleControl.color('stopInverse'),
45
- preRemaining: consoleControl.color('brightBlack'),
46
- remaining: '░',
47
- postRemaining: consoleControl.color('reset')
48
- }
49
- })
50
-
51
- themes.setDefault({}, 'ASCII')
52
- themes.setDefault({hasColor: true}, 'colorASCII')
53
- themes.setDefault({platform: 'darwin', hasUnicode: true}, 'brailleSpinner')
54
- themes.setDefault({platform: 'darwin', hasUnicode: true, hasColor: true}, 'colorBrailleSpinner')
@@ -1,16 +0,0 @@
1
- The ISC License
2
-
3
- Copyright (c) Isaac Z. Schlueter
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted, provided that the above
7
- copyright notice and this permission notice appear in all copies.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
11
- FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
- PERFORMANCE OF THIS SOFTWARE.
16
-
@@ -1,42 +0,0 @@
1
- Browser-friendly inheritance fully compatible with standard node.js
2
- [inherits](http://nodejs.org/api/util.html#util_util_inherits_constructor_superconstructor).
3
-
4
- This package exports standard `inherits` from node.js `util` module in
5
- node environment, but also provides alternative browser-friendly
6
- implementation through [browser
7
- field](https://gist.github.com/shtylman/4339901). Alternative
8
- implementation is a literal copy of standard one located in standalone
9
- module to avoid requiring of `util`. It also has a shim for old
10
- browsers with no `Object.create` support.
11
-
12
- While keeping you sure you are using standard `inherits`
13
- implementation in node.js environment, it allows bundlers such as
14
- [browserify](https://github.com/substack/node-browserify) to not
15
- include full `util` package to your client code if all you need is
16
- just `inherits` function. It worth, because browser shim for `util`
17
- package is large and `inherits` is often the single function you need
18
- from it.
19
-
20
- It's recommended to use this package instead of
21
- `require('util').inherits` for any code that has chances to be used
22
- not only in node.js but in browser too.
23
-
24
- ## usage
25
-
26
- ```js
27
- var inherits = require('inherits');
28
- // then use exactly as the standard one
29
- ```
30
-
31
- ## note on version ~1.0
32
-
33
- Version ~1.0 had completely different motivation and is not compatible
34
- neither with 2.0 nor with standard node.js `inherits`.
35
-
36
- If you are using version ~1.0 and planning to switch to ~2.0, be
37
- careful:
38
-
39
- * new version uses `super_` instead of `super` for referencing
40
- superclass
41
- * new version overwrites current prototype while old one preserves any
42
- existing fields on it
@@ -1,9 +0,0 @@
1
- try {
2
- var util = require('util');
3
- /* istanbul ignore next */
4
- if (typeof util.inherits !== 'function') throw '';
5
- module.exports = util.inherits;
6
- } catch (e) {
7
- /* istanbul ignore next */
8
- module.exports = require('./inherits_browser.js');
9
- }
@@ -1,27 +0,0 @@
1
- if (typeof Object.create === 'function') {
2
- // implementation from standard node.js 'util' module
3
- module.exports = function inherits(ctor, superCtor) {
4
- if (superCtor) {
5
- ctor.super_ = superCtor
6
- ctor.prototype = Object.create(superCtor.prototype, {
7
- constructor: {
8
- value: ctor,
9
- enumerable: false,
10
- writable: true,
11
- configurable: true
12
- }
13
- })
14
- }
15
- };
16
- } else {
17
- // old school shim for old browsers
18
- module.exports = function inherits(ctor, superCtor) {
19
- if (superCtor) {
20
- ctor.super_ = superCtor
21
- var TempCtor = function () {}
22
- TempCtor.prototype = superCtor.prototype
23
- ctor.prototype = new TempCtor()
24
- ctor.prototype.constructor = ctor
25
- }
26
- }
27
- }
@@ -1,29 +0,0 @@
1
- {
2
- "name": "inherits",
3
- "description": "Browser-friendly inheritance fully compatible with standard node.js inherits()",
4
- "version": "2.0.4",
5
- "keywords": [
6
- "inheritance",
7
- "class",
8
- "klass",
9
- "oop",
10
- "object-oriented",
11
- "inherits",
12
- "browser",
13
- "browserify"
14
- ],
15
- "main": "./inherits.js",
16
- "browser": "./inherits_browser.js",
17
- "repository": "git://github.com/isaacs/inherits",
18
- "license": "ISC",
19
- "scripts": {
20
- "test": "tap"
21
- },
22
- "devDependencies": {
23
- "tap": "^14.2.4"
24
- },
25
- "files": [
26
- "inherits.js",
27
- "inherits_browser.js"
28
- ]
29
- }
@@ -1 +0,0 @@
1
- node_modules
@@ -1,4 +0,0 @@
1
- language: node_js
2
- node_js:
3
- - "0.8"
4
- - "0.10"
@@ -1,6 +0,0 @@
1
-
2
- test:
3
- @node_modules/.bin/tape test.js
4
-
5
- .PHONY: test
6
-
@@ -1,60 +0,0 @@
1
-
2
- # isarray
3
-
4
- `Array#isArray` for older browsers.
5
-
6
- [![build status](https://secure.travis-ci.org/juliangruber/isarray.svg)](http://travis-ci.org/juliangruber/isarray)
7
- [![downloads](https://img.shields.io/npm/dm/isarray.svg)](https://www.npmjs.org/package/isarray)
8
-
9
- [![browser support](https://ci.testling.com/juliangruber/isarray.png)
10
- ](https://ci.testling.com/juliangruber/isarray)
11
-
12
- ## Usage
13
-
14
- ```js
15
- var isArray = require('isarray');
16
-
17
- console.log(isArray([])); // => true
18
- console.log(isArray({})); // => false
19
- ```
20
-
21
- ## Installation
22
-
23
- With [npm](http://npmjs.org) do
24
-
25
- ```bash
26
- $ npm install isarray
27
- ```
28
-
29
- Then bundle for the browser with
30
- [browserify](https://github.com/substack/browserify).
31
-
32
- With [component](http://component.io) do
33
-
34
- ```bash
35
- $ component install juliangruber/isarray
36
- ```
37
-
38
- ## License
39
-
40
- (MIT)
41
-
42
- Copyright (c) 2013 Julian Gruber &lt;julian@juliangruber.com&gt;
43
-
44
- Permission is hereby granted, free of charge, to any person obtaining a copy of
45
- this software and associated documentation files (the "Software"), to deal in
46
- the Software without restriction, including without limitation the rights to
47
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
48
- of the Software, and to permit persons to whom the Software is furnished to do
49
- so, subject to the following conditions:
50
-
51
- The above copyright notice and this permission notice shall be included in all
52
- copies or substantial portions of the Software.
53
-
54
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
55
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
56
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
57
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
58
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
59
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
60
- SOFTWARE.