@aws-solutions-constructs/core 2.50.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 +50 -5
  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 +11 -10
  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,107 +0,0 @@
1
- 'use strict'
2
- var util = require('util')
3
- var TrackerBase = require('./tracker-base.js')
4
- var Tracker = require('./tracker.js')
5
- var TrackerStream = require('./tracker-stream.js')
6
-
7
- var TrackerGroup = module.exports = function (name) {
8
- TrackerBase.call(this, name)
9
- this.parentGroup = null
10
- this.trackers = []
11
- this.completion = {}
12
- this.weight = {}
13
- this.totalWeight = 0
14
- this.finished = false
15
- this.bubbleChange = bubbleChange(this)
16
- }
17
- util.inherits(TrackerGroup, TrackerBase)
18
-
19
- function bubbleChange (trackerGroup) {
20
- return function (name, completed, tracker) {
21
- trackerGroup.completion[tracker.id] = completed
22
- if (trackerGroup.finished) return
23
- trackerGroup.emit('change', name || trackerGroup.name, trackerGroup.completed(), trackerGroup)
24
- }
25
- }
26
-
27
- TrackerGroup.prototype.nameInTree = function () {
28
- var names = []
29
- var from = this
30
- while (from) {
31
- names.unshift(from.name)
32
- from = from.parentGroup
33
- }
34
- return names.join('/')
35
- }
36
-
37
- TrackerGroup.prototype.addUnit = function (unit, weight) {
38
- if (unit.addUnit) {
39
- var toTest = this
40
- while (toTest) {
41
- if (unit === toTest) {
42
- throw new Error(
43
- 'Attempted to add tracker group ' +
44
- unit.name + ' to tree that already includes it ' +
45
- this.nameInTree(this))
46
- }
47
- toTest = toTest.parentGroup
48
- }
49
- unit.parentGroup = this
50
- }
51
- this.weight[unit.id] = weight || 1
52
- this.totalWeight += this.weight[unit.id]
53
- this.trackers.push(unit)
54
- this.completion[unit.id] = unit.completed()
55
- unit.on('change', this.bubbleChange)
56
- if (!this.finished) this.emit('change', unit.name, this.completion[unit.id], unit)
57
- return unit
58
- }
59
-
60
- TrackerGroup.prototype.completed = function () {
61
- if (this.trackers.length === 0) return 0
62
- var valPerWeight = 1 / this.totalWeight
63
- var completed = 0
64
- for (var ii = 0; ii < this.trackers.length; ii++) {
65
- var trackerId = this.trackers[ii].id
66
- completed += valPerWeight * this.weight[trackerId] * this.completion[trackerId]
67
- }
68
- return completed
69
- }
70
-
71
- TrackerGroup.prototype.newGroup = function (name, weight) {
72
- return this.addUnit(new TrackerGroup(name), weight)
73
- }
74
-
75
- TrackerGroup.prototype.newItem = function (name, todo, weight) {
76
- return this.addUnit(new Tracker(name, todo), weight)
77
- }
78
-
79
- TrackerGroup.prototype.newStream = function (name, todo, weight) {
80
- return this.addUnit(new TrackerStream(name, todo), weight)
81
- }
82
-
83
- TrackerGroup.prototype.finish = function () {
84
- this.finished = true
85
- if (!this.trackers.length) this.addUnit(new Tracker(), 1, true)
86
- for (var ii = 0; ii < this.trackers.length; ii++) {
87
- var tracker = this.trackers[ii]
88
- tracker.finish()
89
- tracker.removeListener('change', this.bubbleChange)
90
- }
91
- this.emit('change', this.name, 1, this)
92
- }
93
-
94
- var buffer = ' '
95
- TrackerGroup.prototype.debug = function (depth) {
96
- depth = depth || 0
97
- var indent = depth ? buffer.substr(0, depth) : ''
98
- var output = indent + (this.name || 'top') + ': ' + this.completed() + '\n'
99
- this.trackers.forEach(function (tracker) {
100
- if (tracker instanceof TrackerGroup) {
101
- output += tracker.debug(depth + 1)
102
- } else {
103
- output += indent + ' ' + tracker.name + ': ' + tracker.completed() + '\n'
104
- }
105
- })
106
- return output
107
- }
@@ -1,36 +0,0 @@
1
- 'use strict'
2
- var util = require('util')
3
- var stream = require('readable-stream')
4
- var delegate = require('delegates')
5
- var Tracker = require('./tracker.js')
6
-
7
- var TrackerStream = module.exports = function (name, size, options) {
8
- stream.Transform.call(this, options)
9
- this.tracker = new Tracker(name, size)
10
- this.name = name
11
- this.id = this.tracker.id
12
- this.tracker.on('change', delegateChange(this))
13
- }
14
- util.inherits(TrackerStream, stream.Transform)
15
-
16
- function delegateChange (trackerStream) {
17
- return function (name, completion, tracker) {
18
- trackerStream.emit('change', name, completion, trackerStream)
19
- }
20
- }
21
-
22
- TrackerStream.prototype._transform = function (data, encoding, cb) {
23
- this.tracker.completeWork(data.length ? data.length : 1)
24
- this.push(data)
25
- cb()
26
- }
27
-
28
- TrackerStream.prototype._flush = function (cb) {
29
- this.tracker.finish()
30
- cb()
31
- }
32
-
33
- delegate(TrackerStream.prototype, 'tracker')
34
- .method('completed')
35
- .method('addWork')
36
- .method('finish')
@@ -1,30 +0,0 @@
1
- 'use strict'
2
- var util = require('util')
3
- var TrackerBase = require('./tracker-base.js')
4
-
5
- var Tracker = module.exports = function (name, todo) {
6
- TrackerBase.call(this, name)
7
- this.workDone = 0
8
- this.workTodo = todo || 0
9
- }
10
- util.inherits(Tracker, TrackerBase)
11
-
12
- Tracker.prototype.completed = function () {
13
- return this.workTodo === 0 ? 0 : this.workDone / this.workTodo
14
- }
15
-
16
- Tracker.prototype.addWork = function (work) {
17
- this.workTodo += work
18
- this.emit('change', this.name, this.completed(), this)
19
- }
20
-
21
- Tracker.prototype.completeWork = function (work) {
22
- this.workDone += work
23
- if (this.workDone > this.workTodo) this.workDone = this.workTodo
24
- this.emit('change', this.name, this.completed(), this)
25
- }
26
-
27
- Tracker.prototype.finish = function () {
28
- this.workTodo = this.workDone = 1
29
- this.emit('change', this.name, 1, this)
30
- }
@@ -1,32 +0,0 @@
1
- /* eslint-disable babel/new-cap, xo/throw-new-error */
2
- 'use strict';
3
- module.exports = function (str, pos) {
4
- if (str === null || str === undefined) {
5
- throw TypeError();
6
- }
7
-
8
- str = String(str);
9
-
10
- var size = str.length;
11
- var i = pos ? Number(pos) : 0;
12
-
13
- if (Number.isNaN(i)) {
14
- i = 0;
15
- }
16
-
17
- if (i < 0 || i >= size) {
18
- return undefined;
19
- }
20
-
21
- var first = str.charCodeAt(i);
22
-
23
- if (first >= 0xD800 && first <= 0xDBFF && size > i + 1) {
24
- var second = str.charCodeAt(i + 1);
25
-
26
- if (second >= 0xDC00 && second <= 0xDFFF) {
27
- return ((first - 0xD800) * 0x400) + second - 0xDC00 + 0x10000;
28
- }
29
- }
30
-
31
- return first;
32
- };
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
@@ -1,38 +0,0 @@
1
- {
2
- "name": "code-point-at",
3
- "version": "1.1.0",
4
- "description": "ES2015 `String#codePointAt()` ponyfill",
5
- "license": "MIT",
6
- "repository": "sindresorhus/code-point-at",
7
- "author": {
8
- "name": "Sindre Sorhus",
9
- "email": "sindresorhus@gmail.com",
10
- "url": "sindresorhus.com"
11
- },
12
- "engines": {
13
- "node": ">=0.10.0"
14
- },
15
- "scripts": {
16
- "test": "xo && ava"
17
- },
18
- "files": [
19
- "index.js"
20
- ],
21
- "keywords": [
22
- "es2015",
23
- "ponyfill",
24
- "polyfill",
25
- "shim",
26
- "string",
27
- "str",
28
- "code",
29
- "point",
30
- "at",
31
- "codepoint",
32
- "unicode"
33
- ],
34
- "devDependencies": {
35
- "ava": "*",
36
- "xo": "^0.16.0"
37
- }
38
- }
@@ -1,32 +0,0 @@
1
- # code-point-at [![Build Status](https://travis-ci.org/sindresorhus/code-point-at.svg?branch=master)](https://travis-ci.org/sindresorhus/code-point-at)
2
-
3
- > ES2015 [`String#codePointAt()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/codePointAt) [ponyfill](https://ponyfill.com)
4
-
5
-
6
- ## Install
7
-
8
- ```
9
- $ npm install --save code-point-at
10
- ```
11
-
12
-
13
- ## Usage
14
-
15
- ```js
16
- var codePointAt = require('code-point-at');
17
-
18
- codePointAt('🐴');
19
- //=> 128052
20
-
21
- codePointAt('abc', 2);
22
- //=> 99
23
- ```
24
-
25
- ## API
26
-
27
- ### codePointAt(input, [position])
28
-
29
-
30
- ## License
31
-
32
- MIT © [Sindre Sorhus](https://sindresorhus.com)
@@ -1,19 +0,0 @@
1
- Copyright Node.js contributors. All rights reserved.
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy
4
- of this software and associated documentation files (the "Software"), to
5
- deal in the Software without restriction, including without limitation the
6
- rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7
- sell copies of the Software, and to permit persons to whom the Software is
8
- furnished to do so, subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in
11
- all copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19
- IN THE SOFTWARE.
@@ -1,3 +0,0 @@
1
- # core-util-is
2
-
3
- The `util.is*` functions introduced in Node v0.12.
@@ -1,107 +0,0 @@
1
- // Copyright Joyent, Inc. and other Node contributors.
2
- //
3
- // Permission is hereby granted, free of charge, to any person obtaining a
4
- // copy of this software and associated documentation files (the
5
- // "Software"), to deal in the Software without restriction, including
6
- // without limitation the rights to use, copy, modify, merge, publish,
7
- // distribute, sublicense, and/or sell copies of the Software, and to permit
8
- // persons to whom the Software is furnished to do so, subject to the
9
- // following conditions:
10
- //
11
- // The above copyright notice and this permission notice shall be included
12
- // in all copies or substantial portions of the Software.
13
- //
14
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15
- // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
17
- // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
18
- // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
19
- // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
20
- // USE OR OTHER DEALINGS IN THE SOFTWARE.
21
-
22
- // NOTE: These type checking functions intentionally don't use `instanceof`
23
- // because it is fragile and can be easily faked with `Object.create()`.
24
-
25
- function isArray(arg) {
26
- if (Array.isArray) {
27
- return Array.isArray(arg);
28
- }
29
- return objectToString(arg) === '[object Array]';
30
- }
31
- exports.isArray = isArray;
32
-
33
- function isBoolean(arg) {
34
- return typeof arg === 'boolean';
35
- }
36
- exports.isBoolean = isBoolean;
37
-
38
- function isNull(arg) {
39
- return arg === null;
40
- }
41
- exports.isNull = isNull;
42
-
43
- function isNullOrUndefined(arg) {
44
- return arg == null;
45
- }
46
- exports.isNullOrUndefined = isNullOrUndefined;
47
-
48
- function isNumber(arg) {
49
- return typeof arg === 'number';
50
- }
51
- exports.isNumber = isNumber;
52
-
53
- function isString(arg) {
54
- return typeof arg === 'string';
55
- }
56
- exports.isString = isString;
57
-
58
- function isSymbol(arg) {
59
- return typeof arg === 'symbol';
60
- }
61
- exports.isSymbol = isSymbol;
62
-
63
- function isUndefined(arg) {
64
- return arg === void 0;
65
- }
66
- exports.isUndefined = isUndefined;
67
-
68
- function isRegExp(re) {
69
- return objectToString(re) === '[object RegExp]';
70
- }
71
- exports.isRegExp = isRegExp;
72
-
73
- function isObject(arg) {
74
- return typeof arg === 'object' && arg !== null;
75
- }
76
- exports.isObject = isObject;
77
-
78
- function isDate(d) {
79
- return objectToString(d) === '[object Date]';
80
- }
81
- exports.isDate = isDate;
82
-
83
- function isError(e) {
84
- return (objectToString(e) === '[object Error]' || e instanceof Error);
85
- }
86
- exports.isError = isError;
87
-
88
- function isFunction(arg) {
89
- return typeof arg === 'function';
90
- }
91
- exports.isFunction = isFunction;
92
-
93
- function isPrimitive(arg) {
94
- return arg === null ||
95
- typeof arg === 'boolean' ||
96
- typeof arg === 'number' ||
97
- typeof arg === 'string' ||
98
- typeof arg === 'symbol' || // ES6 symbol
99
- typeof arg === 'undefined';
100
- }
101
- exports.isPrimitive = isPrimitive;
102
-
103
- exports.isBuffer = require('buffer').Buffer.isBuffer;
104
-
105
- function objectToString(o) {
106
- return Object.prototype.toString.call(o);
107
- }
@@ -1,38 +0,0 @@
1
- {
2
- "name": "core-util-is",
3
- "version": "1.0.3",
4
- "description": "The `util.is*` functions introduced in Node v0.12.",
5
- "main": "lib/util.js",
6
- "files": [
7
- "lib"
8
- ],
9
- "repository": {
10
- "type": "git",
11
- "url": "git://github.com/isaacs/core-util-is"
12
- },
13
- "keywords": [
14
- "util",
15
- "isBuffer",
16
- "isArray",
17
- "isNumber",
18
- "isString",
19
- "isRegExp",
20
- "isThis",
21
- "isThat",
22
- "polyfill"
23
- ],
24
- "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
25
- "license": "MIT",
26
- "bugs": {
27
- "url": "https://github.com/isaacs/core-util-is/issues"
28
- },
29
- "scripts": {
30
- "test": "tap test.js",
31
- "preversion": "npm test",
32
- "postversion": "npm publish",
33
- "prepublishOnly": "git push origin --follow-tags"
34
- },
35
- "devDependencies": {
36
- "tap": "^15.0.9"
37
- }
38
- }
@@ -1 +0,0 @@
1
- node_modules/
@@ -1,22 +0,0 @@
1
-
2
- 1.0.0 / 2015-12-14
3
- ==================
4
-
5
- * Merge pull request #12 from kasicka/master
6
- * Add license text
7
-
8
- 0.1.0 / 2014-10-17
9
- ==================
10
-
11
- * adds `.fluent()` to api
12
-
13
- 0.0.3 / 2014-01-13
14
- ==================
15
-
16
- * fix receiver for .method()
17
-
18
- 0.0.2 / 2014-01-13
19
- ==================
20
-
21
- * Object.defineProperty() sucks
22
- * Initial commit
@@ -1,20 +0,0 @@
1
- Copyright (c) 2015 TJ Holowaychuk <tj@vision-media.ca>
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,8 +0,0 @@
1
-
2
- test:
3
- @./node_modules/.bin/mocha \
4
- --require should \
5
- --reporter spec \
6
- --bail
7
-
8
- .PHONY: test
@@ -1,94 +0,0 @@
1
-
2
- # delegates
3
-
4
- Node method and accessor delegation utilty.
5
-
6
- ## Installation
7
-
8
- ```
9
- $ npm install delegates
10
- ```
11
-
12
- ## Example
13
-
14
- ```js
15
- var delegate = require('delegates');
16
-
17
- ...
18
-
19
- delegate(proto, 'request')
20
- .method('acceptsLanguages')
21
- .method('acceptsEncodings')
22
- .method('acceptsCharsets')
23
- .method('accepts')
24
- .method('is')
25
- .access('querystring')
26
- .access('idempotent')
27
- .access('socket')
28
- .access('length')
29
- .access('query')
30
- .access('search')
31
- .access('status')
32
- .access('method')
33
- .access('path')
34
- .access('body')
35
- .access('host')
36
- .access('url')
37
- .getter('subdomains')
38
- .getter('protocol')
39
- .getter('header')
40
- .getter('stale')
41
- .getter('fresh')
42
- .getter('secure')
43
- .getter('ips')
44
- .getter('ip')
45
- ```
46
-
47
- # API
48
-
49
- ## Delegate(proto, prop)
50
-
51
- Creates a delegator instance used to configure using the `prop` on the given
52
- `proto` object. (which is usually a prototype)
53
-
54
- ## Delegate#method(name)
55
-
56
- Allows the given method `name` to be accessed on the host.
57
-
58
- ## Delegate#getter(name)
59
-
60
- Creates a "getter" for the property with the given `name` on the delegated
61
- object.
62
-
63
- ## Delegate#setter(name)
64
-
65
- Creates a "setter" for the property with the given `name` on the delegated
66
- object.
67
-
68
- ## Delegate#access(name)
69
-
70
- Creates an "accessor" (ie: both getter *and* setter) for the property with the
71
- given `name` on the delegated object.
72
-
73
- ## Delegate#fluent(name)
74
-
75
- A unique type of "accessor" that works for a "fluent" API. When called as a
76
- getter, the method returns the expected value. However, if the method is called
77
- with a value, it will return itself so it can be chained. For example:
78
-
79
- ```js
80
- delegate(proto, 'request')
81
- .fluent('query')
82
-
83
- // getter
84
- var q = request.query();
85
-
86
- // setter (chainable)
87
- request
88
- .query({ a: 1 })
89
- .query({ b: 2 });
90
- ```
91
-
92
- # License
93
-
94
- MIT