fsevents 1.0.8 → 1.0.9

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.

Potentially problematic release.


This version of fsevents might be problematic. Click here for more details.

Files changed (194) hide show
  1. package/node_modules/ansi-styles/index.js +72 -6
  2. package/node_modules/ansi-styles/package.json +19 -12
  3. package/node_modules/ansi-styles/readme.md +36 -8
  4. package/node_modules/are-we-there-yet/CHANGES.md +19 -0
  5. package/node_modules/are-we-there-yet/README.md +12 -2
  6. package/node_modules/are-we-there-yet/index.js +4 -132
  7. package/node_modules/are-we-there-yet/package.json +18 -13
  8. package/node_modules/are-we-there-yet/test/lib/test-event.js +29 -0
  9. package/node_modules/are-we-there-yet/test/tracker.js +44 -43
  10. package/node_modules/are-we-there-yet/test/trackergroup.js +73 -64
  11. package/node_modules/are-we-there-yet/test/trackerstream.js +26 -40
  12. package/node_modules/are-we-there-yet/tracker-base.js +11 -0
  13. package/node_modules/are-we-there-yet/tracker-group.js +107 -0
  14. package/node_modules/are-we-there-yet/tracker-stream.js +35 -0
  15. package/node_modules/are-we-there-yet/tracker.js +30 -0
  16. package/node_modules/asn1/package.json +1 -2
  17. package/node_modules/assert-plus/package.json +1 -3
  18. package/node_modules/async/package.json +1 -1
  19. package/node_modules/aws4/.npmignore +2 -1
  20. package/node_modules/aws4/README.md +4 -0
  21. package/node_modules/aws4/aws4.js +8 -3
  22. package/node_modules/aws4/node_modules/lru-cache/.npmignore +3 -0
  23. package/node_modules/aws4/node_modules/lru-cache/.travis.yml +3 -4
  24. package/node_modules/aws4/node_modules/lru-cache/README.md +29 -24
  25. package/node_modules/aws4/node_modules/lru-cache/benchmarks/insertion-time.js +32 -0
  26. package/node_modules/aws4/node_modules/lru-cache/lib/lru-cache.js +333 -199
  27. package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/LICENSE +15 -0
  28. package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/README.md +60 -0
  29. package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/map.js +9 -0
  30. package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/package.json +59 -0
  31. package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/pseudomap.js +113 -0
  32. package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/test/basic.js +86 -0
  33. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/.npmignore +4 -0
  34. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/.travis.yml +7 -0
  35. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/CONTRIBUTING.md +4 -0
  36. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/LICENSE +15 -0
  37. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/README.md +204 -0
  38. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/package.json +59 -0
  39. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/test/basic.js +188 -0
  40. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/yallist.js +360 -0
  41. package/node_modules/aws4/node_modules/lru-cache/package.json +16 -12
  42. package/node_modules/aws4/node_modules/lru-cache/test/basic.js +270 -146
  43. package/node_modules/aws4/node_modules/lru-cache/test/foreach.js +39 -25
  44. package/node_modules/aws4/node_modules/lru-cache/test/inspect.js +54 -0
  45. package/node_modules/aws4/node_modules/lru-cache/test/no-symbol.js +3 -0
  46. package/node_modules/aws4/node_modules/lru-cache/test/serialize.js +115 -104
  47. package/node_modules/aws4/package.json +17 -14
  48. package/node_modules/bl/bl.js +9 -3
  49. package/node_modules/bl/package.json +12 -12
  50. package/node_modules/bl/test/test.js +14 -0
  51. package/node_modules/color-convert/README.md +62 -0
  52. package/node_modules/color-convert/conversions.js +594 -0
  53. package/node_modules/color-convert/css-keywords.js +151 -0
  54. package/node_modules/color-convert/index.js +75 -0
  55. package/node_modules/color-convert/package.json +92 -0
  56. package/node_modules/color-convert/route.js +98 -0
  57. package/node_modules/dashdash/lib/dashdash.js +1 -1
  58. package/node_modules/dashdash/node_modules/assert-plus/AUTHORS +6 -0
  59. package/node_modules/dashdash/node_modules/assert-plus/CHANGES.md +14 -0
  60. package/node_modules/dashdash/node_modules/assert-plus/README.md +162 -0
  61. package/node_modules/dashdash/node_modules/assert-plus/assert.js +211 -0
  62. package/node_modules/dashdash/node_modules/assert-plus/package.json +89 -0
  63. package/node_modules/dashdash/package.json +19 -12
  64. package/node_modules/ecc-jsbn/package.json +1 -2
  65. package/node_modules/escape-string-regexp/package.json +15 -11
  66. package/node_modules/extsprintf/package.json +2 -3
  67. package/node_modules/form-data/.dockerignore +7 -0
  68. package/node_modules/form-data/.editorconfig +10 -0
  69. package/node_modules/form-data/.eslintignore +1 -0
  70. package/node_modules/form-data/.eslintrc +64 -0
  71. package/node_modules/form-data/{Readme.md → README.md} +9 -1
  72. package/node_modules/form-data/lib/browser.js +2 -1
  73. package/node_modules/form-data/lib/form_data.js +172 -135
  74. package/node_modules/form-data/lib/populate.js +9 -0
  75. package/node_modules/form-data/package.json +35 -16
  76. package/node_modules/form-data/wercker.yml +36 -0
  77. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/index.js +1 -1
  78. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/package.json +14 -10
  79. package/node_modules/gauge/README.md +1 -1
  80. package/node_modules/gauge/package.json +18 -14
  81. package/node_modules/gauge/progress-bar.js +2 -2
  82. package/node_modules/http-signature/package.json +1 -2
  83. package/node_modules/is-my-json-valid/README.md +2 -2
  84. package/node_modules/is-my-json-valid/index.js +15 -6
  85. package/node_modules/is-my-json-valid/package.json +11 -7
  86. package/node_modules/is-my-json-valid/test/json-schema-draft4/multipleOf.json +36 -0
  87. package/node_modules/is-my-json-valid/test/misc.js +18 -0
  88. package/node_modules/is-typedarray/package.json +1 -2
  89. package/node_modules/isarray/.npmignore +1 -0
  90. package/node_modules/isarray/.travis.yml +4 -0
  91. package/node_modules/isarray/Makefile +6 -0
  92. package/node_modules/isarray/README.md +6 -0
  93. package/node_modules/isarray/index.js +3 -1
  94. package/node_modules/isarray/package.json +28 -10
  95. package/node_modules/isarray/test.js +20 -0
  96. package/node_modules/jodid25519/package.json +1 -2
  97. package/node_modules/jsbn/package.json +1 -2
  98. package/node_modules/json-schema/package.json +1 -1
  99. package/node_modules/jsprim/package.json +1 -2
  100. package/node_modules/lodash.pad/LICENSE +17 -16
  101. package/node_modules/lodash.pad/README.md +2 -2
  102. package/node_modules/lodash.pad/index.js +3 -94
  103. package/node_modules/lodash.pad/package.json +12 -12
  104. package/node_modules/lodash.padend/LICENSE +23 -0
  105. package/node_modules/lodash.padend/README.md +18 -0
  106. package/node_modules/lodash.padend/index.js +285 -0
  107. package/node_modules/lodash.padend/package.json +91 -0
  108. package/node_modules/lodash.padstart/LICENSE +23 -0
  109. package/node_modules/lodash.padstart/README.md +18 -0
  110. package/node_modules/lodash.padstart/index.js +285 -0
  111. package/node_modules/lodash.padstart/package.json +91 -0
  112. package/node_modules/lodash.repeat/LICENSE +17 -16
  113. package/node_modules/lodash.repeat/README.md +2 -2
  114. package/node_modules/lodash.repeat/index.js +3 -94
  115. package/node_modules/lodash.repeat/package.json +14 -13
  116. package/node_modules/lodash.tostring/LICENSE +23 -0
  117. package/node_modules/lodash.tostring/README.md +18 -0
  118. package/node_modules/lodash.tostring/index.js +164 -0
  119. package/node_modules/lodash.tostring/package.json +91 -0
  120. package/node_modules/mime-db/HISTORY.md +14 -0
  121. package/node_modules/mime-db/db.json +26 -3
  122. package/node_modules/mime-db/package.json +23 -18
  123. package/node_modules/mime-types/HISTORY.md +8 -0
  124. package/node_modules/mime-types/README.md +1 -1
  125. package/node_modules/mime-types/package.json +21 -16
  126. package/node_modules/node-pre-gyp/CHANGELOG.md +11 -0
  127. package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +44 -4
  128. package/node_modules/node-pre-gyp/package.json +16 -16
  129. package/node_modules/npmlog/.nyc_output/64996.json +1 -0
  130. package/node_modules/npmlog/.nyc_output/64998.json +1 -0
  131. package/node_modules/npmlog/.nyc_output/65000.json +1 -0
  132. package/node_modules/npmlog/log.js +3 -2
  133. package/node_modules/npmlog/package.json +15 -11
  134. package/node_modules/npmlog/test/progress.js +25 -8
  135. package/node_modules/once/package.json +1 -1
  136. package/node_modules/qs/package.json +1 -2
  137. package/node_modules/readable-stream/.travis.yml +18 -16
  138. package/node_modules/readable-stream/README.md +1 -1
  139. package/node_modules/readable-stream/doc/stream.markdown +435 -405
  140. package/node_modules/readable-stream/lib/_stream_duplex.js +13 -20
  141. package/node_modules/readable-stream/lib/_stream_passthrough.js +3 -4
  142. package/node_modules/readable-stream/lib/_stream_readable.js +110 -205
  143. package/node_modules/readable-stream/lib/_stream_transform.js +21 -38
  144. package/node_modules/readable-stream/lib/_stream_writable.js +108 -121
  145. package/node_modules/readable-stream/package.json +19 -15
  146. package/node_modules/request/package.json +1 -2
  147. package/node_modules/rimraf/node_modules/glob/README.md +6 -0
  148. package/node_modules/rimraf/node_modules/glob/common.js +12 -3
  149. package/node_modules/rimraf/node_modules/glob/glob.js +20 -3
  150. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +1 -1
  151. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +14 -10
  152. package/node_modules/rimraf/node_modules/glob/package.json +15 -11
  153. package/node_modules/rimraf/node_modules/glob/sync.js +8 -1
  154. package/node_modules/rimraf/package.json +14 -10
  155. package/node_modules/semver/package.json +1 -2
  156. package/node_modules/sshpk/lib/formats/rfc4253.js +2 -1
  157. package/node_modules/sshpk/package.json +13 -10
  158. package/node_modules/strip-ansi/package.json +21 -16
  159. package/node_modules/strip-ansi/readme.md +5 -5
  160. package/node_modules/tough-cookie/lib/cookie.js +2 -2
  161. package/node_modules/tough-cookie/package.json +13 -9
  162. package/node_modules/tweetnacl/CHANGELOG.md +53 -0
  163. package/node_modules/tweetnacl/COPYING.txt +9 -0
  164. package/node_modules/tweetnacl/README.md +14 -40
  165. package/node_modules/tweetnacl/nacl-fast.js +21 -51
  166. package/node_modules/tweetnacl/nacl-fast.min.js +2 -2
  167. package/node_modules/tweetnacl/nacl.js +21 -51
  168. package/node_modules/tweetnacl/nacl.min.js +1 -1
  169. package/node_modules/tweetnacl/package.json +28 -38
  170. package/node_modules/verror/package.json +2 -3
  171. package/package.json +2 -2
  172. package/node_modules/aws4/example.js +0 -372
  173. package/node_modules/aws4/node_modules/lru-cache/test/memory-leak.js +0 -51
  174. package/node_modules/isarray/build/build.js +0 -209
  175. package/node_modules/lodash._basetostring/LICENSE +0 -22
  176. package/node_modules/lodash._basetostring/README.md +0 -20
  177. package/node_modules/lodash._basetostring/index.js +0 -22
  178. package/node_modules/lodash._basetostring/package.json +0 -99
  179. package/node_modules/lodash._createpadding/LICENSE +0 -22
  180. package/node_modules/lodash._createpadding/README.md +0 -20
  181. package/node_modules/lodash._createpadding/index.js +0 -37
  182. package/node_modules/lodash._createpadding/package.json +0 -101
  183. package/node_modules/lodash._root/LICENSE +0 -22
  184. package/node_modules/lodash._root/README.md +0 -18
  185. package/node_modules/lodash._root/index.js +0 -53
  186. package/node_modules/lodash._root/package.json +0 -77
  187. package/node_modules/lodash.padleft/LICENSE.txt +0 -22
  188. package/node_modules/lodash.padleft/README.md +0 -20
  189. package/node_modules/lodash.padleft/index.js +0 -50
  190. package/node_modules/lodash.padleft/package.json +0 -107
  191. package/node_modules/lodash.padright/LICENSE.txt +0 -22
  192. package/node_modules/lodash.padright/README.md +0 -20
  193. package/node_modules/lodash.padright/index.js +0 -50
  194. package/node_modules/lodash.padright/package.json +0 -107
@@ -1,372 +0,0 @@
1
- var http = require('http'),
2
- https = require('https'),
3
- aws4 = require('aws4')
4
-
5
- // given an options object you could pass to http.request
6
- var opts = {host: 'sqs.us-east-1.amazonaws.com', path: '/?Action=ListQueues'}
7
-
8
- // alternatively (as aws4 can infer the host):
9
- opts = {service: 'sqs', region: 'us-east-1', path: '/?Action=ListQueues'}
10
-
11
- // alternatively (as us-east-1 is default):
12
- opts = {service: 'sqs', path: '/?Action=ListQueues'}
13
-
14
- aws4.sign(opts) // assumes AWS credentials are available in process.env
15
-
16
- console.log(opts)
17
- /*
18
- {
19
- host: 'sqs.us-east-1.amazonaws.com',
20
- path: '/?Action=ListQueues',
21
- headers: {
22
- Host: 'sqs.us-east-1.amazonaws.com',
23
- 'X-Amz-Date': '20121226T061030Z',
24
- Authorization: 'AWS4-HMAC-SHA256 Credential=ABCDEF/20121226/us-east-1/sqs/aws4_request, ...'
25
- }
26
- }
27
- */
28
-
29
- // we can now use this to query AWS using the standard node.js http API
30
- http.request(opts, function(res) { res.pipe(process.stdout) }).end()
31
- /*
32
- <?xml version="1.0"?>
33
- <ListQueuesResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/">
34
- ...
35
- */
36
-
37
- // you can also pass AWS credentials in explicitly (otherwise taken from process.env)
38
- aws4.sign(opts, {accessKeyId: '', secretAccessKey: ''})
39
-
40
- // can also add the signature to query strings
41
- aws4.sign({service: 's3', path: '/my-bucket?X-Amz-Expires=12345', signQuery: true})
42
-
43
- // create a utility function to pipe to stdout (with https this time)
44
- function request(o) { https.request(o, function(res) { res.pipe(process.stdout) }).end(o.body || '') }
45
-
46
- // aws4 can infer the HTTP method if a body is passed in
47
- // method will be POST and Content-Type: 'application/x-www-form-urlencoded; charset=utf-8'
48
- request(aws4.sign({service: 'iam', body: 'Action=ListGroups&Version=2010-05-08'}))
49
- /*
50
- <ListGroupsResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
51
- ...
52
- */
53
-
54
- // can specify any custom option or header as per usual
55
- request(aws4.sign({
56
- service: 'dynamodb',
57
- region: 'ap-southeast-2',
58
- method: 'POST',
59
- path: '/',
60
- headers: {
61
- 'Content-Type': 'application/x-amz-json-1.0',
62
- 'X-Amz-Target': 'DynamoDB_20120810.ListTables'
63
- },
64
- body: '{}'
65
- }))
66
- /*
67
- {"TableNames":[]}
68
- ...
69
- */
70
-
71
- // works with all other services that support Signature Version 4
72
-
73
- request(aws4.sign({service: 's3', path: '/', signQuery: true}))
74
- /*
75
- <ListAllMyBucketsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
76
- ...
77
- */
78
-
79
- request(aws4.sign({service: 'ec2', path: '/?Action=DescribeRegions&Version=2014-06-15'}))
80
- /*
81
- <DescribeRegionsResponse xmlns="http://ec2.amazonaws.com/doc/2014-06-15/">
82
- ...
83
- */
84
-
85
- request(aws4.sign({service: 'sns', path: '/?Action=ListTopics&Version=2010-03-31'}))
86
- /*
87
- <ListTopicsResponse xmlns="http://sns.amazonaws.com/doc/2010-03-31/">
88
- ...
89
- */
90
-
91
- request(aws4.sign({service: 'sts', path: '/?Action=GetSessionToken&Version=2011-06-15'}))
92
- /*
93
- <GetSessionTokenResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
94
- ...
95
- */
96
-
97
- request(aws4.sign({service: 'cloudsearch', path: '/?Action=ListDomainNames&Version=2013-01-01'}))
98
- /*
99
- <ListDomainNamesResponse xmlns="http://cloudsearch.amazonaws.com/doc/2013-01-01/">
100
- ...
101
- */
102
-
103
- request(aws4.sign({service: 'ses', path: '/?Action=ListIdentities&Version=2010-12-01'}))
104
- /*
105
- <ListIdentitiesResponse xmlns="http://ses.amazonaws.com/doc/2010-12-01/">
106
- ...
107
- */
108
-
109
- request(aws4.sign({service: 'autoscaling', path: '/?Action=DescribeAutoScalingInstances&Version=2011-01-01'}))
110
- /*
111
- <DescribeAutoScalingInstancesResponse xmlns="http://autoscaling.amazonaws.com/doc/2011-01-01/">
112
- ...
113
- */
114
-
115
- request(aws4.sign({service: 'elasticloadbalancing', path: '/?Action=DescribeLoadBalancers&Version=2012-06-01'}))
116
- /*
117
- <DescribeLoadBalancersResponse xmlns="http://elasticloadbalancing.amazonaws.com/doc/2012-06-01/">
118
- ...
119
- */
120
-
121
- request(aws4.sign({service: 'cloudformation', path: '/?Action=ListStacks&Version=2010-05-15'}))
122
- /*
123
- <ListStacksResponse xmlns="http://cloudformation.amazonaws.com/doc/2010-05-15/">
124
- ...
125
- */
126
-
127
- request(aws4.sign({service: 'elasticbeanstalk', path: '/?Action=ListAvailableSolutionStacks&Version=2010-12-01'}))
128
- /*
129
- <ListAvailableSolutionStacksResponse xmlns="http://elasticbeanstalk.amazonaws.com/docs/2010-12-01/">
130
- ...
131
- */
132
-
133
- request(aws4.sign({service: 'rds', path: '/?Action=DescribeDBInstances&Version=2012-09-17'}))
134
- /*
135
- <DescribeDBInstancesResponse xmlns="http://rds.amazonaws.com/doc/2012-09-17/">
136
- ...
137
- */
138
-
139
- request(aws4.sign({service: 'monitoring', path: '/?Action=ListMetrics&Version=2010-08-01'}))
140
- /*
141
- <ListMetricsResponse xmlns="http://monitoring.amazonaws.com/doc/2010-08-01/">
142
- ...
143
- */
144
-
145
- request(aws4.sign({service: 'redshift', path: '/?Action=DescribeClusters&Version=2012-12-01'}))
146
- /*
147
- <DescribeClustersResponse xmlns="http://redshift.amazonaws.com/doc/2012-12-01/">
148
- ...
149
- */
150
-
151
- request(aws4.sign({service: 'cloudfront', path: '/2014-05-31/distribution'}))
152
- /*
153
- <DistributionList xmlns="http://cloudfront.amazonaws.com/doc/2014-05-31/">
154
- ...
155
- */
156
-
157
- request(aws4.sign({service: 'elasticache', path: '/?Action=DescribeCacheClusters&Version=2014-07-15'}))
158
- /*
159
- <DescribeCacheClustersResponse xmlns="http://elasticache.amazonaws.com/doc/2014-07-15/">
160
- ...
161
- */
162
-
163
- request(aws4.sign({service: 'elasticmapreduce', path: '/?Action=DescribeJobFlows&Version=2009-03-31'}))
164
- /*
165
- <DescribeJobFlowsResponse xmlns="http://elasticmapreduce.amazonaws.com/doc/2009-03-31">
166
- ...
167
- */
168
-
169
- request(aws4.sign({service: 'route53', path: '/2013-04-01/hostedzone'}))
170
- /*
171
- <ListHostedZonesResponse xmlns="https://route53.amazonaws.com/doc/2013-04-01/">
172
- ...
173
- */
174
-
175
- request(aws4.sign({service: 'appstream', path: '/applications'}))
176
- /*
177
- {"_links":{"curie":[{"href":"http://docs.aws.amazon.com/appstream/latest/...
178
- ...
179
- */
180
-
181
- request(aws4.sign({service: 'cognito-sync', path: '/identitypools'}))
182
- /*
183
- {"Count":0,"IdentityPoolUsages":[],"MaxResults":16,"NextToken":null}
184
- ...
185
- */
186
-
187
- request(aws4.sign({service: 'elastictranscoder', path: '/2012-09-25/pipelines'}))
188
- /*
189
- {"NextPageToken":null,"Pipelines":[]}
190
- ...
191
- */
192
-
193
- request(aws4.sign({service: 'lambda', path: '/2014-11-13/functions/'}))
194
- /*
195
- {"Functions":[],"NextMarker":null}
196
- ...
197
- */
198
-
199
- request(aws4.sign({service: 'ecs', path: '/?Action=ListClusters&Version=2014-11-13'}))
200
- /*
201
- <ListClustersResponse xmlns="http://ecs.amazonaws.com/doc/2014-11-13/">
202
- ...
203
- */
204
-
205
- request(aws4.sign({service: 'glacier', path: '/-/vaults', headers: {'X-Amz-Glacier-Version': '2012-06-01'}}))
206
- /*
207
- {"Marker":null,"VaultList":[]}
208
- ...
209
- */
210
-
211
- request(aws4.sign({service: 'storagegateway', body: '{}', headers: {
212
- 'Content-Type': 'application/x-amz-json-1.1',
213
- 'X-Amz-Target': 'StorageGateway_20120630.ListGateways'
214
- }}))
215
- /*
216
- {"Gateways":[]}
217
- ...
218
- */
219
-
220
- request(aws4.sign({service: 'datapipeline', body: '{}', headers: {
221
- 'Content-Type': 'application/x-amz-json-1.1',
222
- 'X-Amz-Target': 'DataPipeline.ListPipelines'
223
- }}))
224
- /*
225
- {"hasMoreResults":false,"pipelineIdList":[]}
226
- ...
227
- */
228
-
229
- request(aws4.sign({service: 'opsworks', body: '{}', headers: {
230
- 'Content-Type': 'application/x-amz-json-1.1',
231
- 'X-Amz-Target': 'OpsWorks_20130218.DescribeStacks'
232
- }}))
233
- /*
234
- {"Stacks":[]}
235
- ...
236
- */
237
-
238
- request(aws4.sign({service: 'route53domains', body: '{}', headers: {
239
- 'Content-Type': 'application/x-amz-json-1.1',
240
- 'X-Amz-Target': 'Route53Domains_v20140515.ListDomains'
241
- }}))
242
- /*
243
- {"Domains":[]}
244
- ...
245
- */
246
-
247
- request(aws4.sign({service: 'kinesis', body: '{}', headers: {
248
- 'Content-Type': 'application/x-amz-json-1.1',
249
- 'X-Amz-Target': 'Kinesis_20131202.ListStreams'
250
- }}))
251
- /*
252
- {"HasMoreStreams":false,"StreamNames":[]}
253
- ...
254
- */
255
-
256
- request(aws4.sign({service: 'cloudtrail', body: '{}', headers: {
257
- 'Content-Type': 'application/x-amz-json-1.1',
258
- 'X-Amz-Target': 'CloudTrail_20131101.DescribeTrails'
259
- }}))
260
- /*
261
- {"trailList":[]}
262
- ...
263
- */
264
-
265
- request(aws4.sign({service: 'logs', body: '{}', headers: {
266
- 'Content-Type': 'application/x-amz-json-1.1',
267
- 'X-Amz-Target': 'Logs_20140328.DescribeLogGroups'
268
- }}))
269
- /*
270
- {"logGroups":[]}
271
- ...
272
- */
273
-
274
- request(aws4.sign({service: 'codedeploy', body: '{}', headers: {
275
- 'Content-Type': 'application/x-amz-json-1.1',
276
- 'X-Amz-Target': 'CodeDeploy_20141006.ListApplications'
277
- }}))
278
- /*
279
- {"applications":[]}
280
- ...
281
- */
282
-
283
- request(aws4.sign({service: 'directconnect', body: '{}', headers: {
284
- 'Content-Type': 'application/x-amz-json-1.1',
285
- 'X-Amz-Target': 'OvertureService.DescribeConnections'
286
- }}))
287
- /*
288
- {"connections":[]}
289
- ...
290
- */
291
-
292
- request(aws4.sign({service: 'kms', body: '{}', headers: {
293
- 'Content-Type': 'application/x-amz-json-1.1',
294
- 'X-Amz-Target': 'TrentService.ListKeys'
295
- }}))
296
- /*
297
- {"Keys":[],"Truncated":false}
298
- ...
299
- */
300
-
301
- request(aws4.sign({service: 'config', body: '{}', headers: {
302
- 'Content-Type': 'application/x-amz-json-1.1',
303
- 'X-Amz-Target': 'StarlingDoveService.DescribeDeliveryChannels'
304
- }}))
305
- /*
306
- {"DeliveryChannels":[]}
307
- ...
308
- */
309
-
310
- request(aws4.sign({service: 'cloudhsm', body: '{}', headers: {
311
- 'Content-Type': 'application/x-amz-json-1.1',
312
- 'X-Amz-Target': 'CloudHsmFrontendService.ListAvailableZones'
313
- }}))
314
- /*
315
- {"AZList":["us-east-1a","us-east-1b","us-east-1c"]}
316
- ...
317
- */
318
-
319
- request(aws4.sign({
320
- service: 'swf',
321
- body: '{"registrationStatus":"REGISTERED"}',
322
- headers: {
323
- 'Content-Type': 'application/x-amz-json-1.0',
324
- 'X-Amz-Target': 'SimpleWorkflowService.ListDomains'
325
- }
326
- }))
327
- /*
328
- {"domainInfos":[]}
329
- ...
330
- */
331
-
332
- request(aws4.sign({
333
- service: 'cognito-identity',
334
- body: '{"MaxResults": 1}',
335
- headers: {
336
- 'Content-Type': 'application/x-amz-json-1.1',
337
- 'X-Amz-Target': 'AWSCognitoIdentityService.ListIdentityPools'
338
- }
339
- }))
340
- /*
341
- {"IdentityPools":[]}
342
- ...
343
- */
344
-
345
- request(aws4.sign({
346
- service: 'mobileanalytics',
347
- path: '/2014-06-05/events',
348
- body: JSON.stringify({events:[{
349
- eventType: 'a',
350
- timestamp: new Date().toISOString(),
351
- session: {},
352
- }]}),
353
- headers: {
354
- 'Content-Type': 'application/json',
355
- 'X-Amz-Client-Context': JSON.stringify({
356
- client: {client_id: 'a', app_title: 'a'},
357
- custom: {},
358
- env: {platform: 'a'},
359
- services: {},
360
- }),
361
- }
362
- }))
363
- /*
364
- (HTTP 202, empty response)
365
- */
366
-
367
- // Still not updated to v4...
368
-
369
- //request(aws4.sign({service: 'importexport', path: '/?Action=ListJobs&Version=2010-06-01'}))
370
-
371
- //request(aws4.sign({service: 'sdb', path: '/?Action=ListDomains&Version=2009-04-15'}))
372
-
@@ -1,51 +0,0 @@
1
- #!/usr/bin/env node --expose_gc
2
-
3
-
4
- var weak = require('weak');
5
- var test = require('tap').test
6
- var LRU = require('../')
7
- var l = new LRU({ max: 10 })
8
- var refs = 0
9
- function X() {
10
- refs ++
11
- weak(this, deref)
12
- }
13
-
14
- function deref() {
15
- refs --
16
- }
17
-
18
- test('no leaks', function (t) {
19
- // fill up the cache
20
- for (var i = 0; i < 100; i++) {
21
- l.set(i, new X);
22
- // throw some gets in there, too.
23
- if (i % 2 === 0)
24
- l.get(i / 2)
25
- }
26
-
27
- gc()
28
-
29
- var start = process.memoryUsage()
30
-
31
- // capture the memory
32
- var startRefs = refs
33
-
34
- // do it again, but more
35
- for (var i = 0; i < 10000; i++) {
36
- l.set(i, new X);
37
- // throw some gets in there, too.
38
- if (i % 2 === 0)
39
- l.get(i / 2)
40
- }
41
-
42
- gc()
43
-
44
- var end = process.memoryUsage()
45
- t.equal(refs, startRefs, 'no leaky refs')
46
-
47
- console.error('start: %j\n' +
48
- 'end: %j', start, end);
49
- t.pass();
50
- t.end();
51
- })
@@ -1,209 +0,0 @@
1
-
2
- /**
3
- * Require the given path.
4
- *
5
- * @param {String} path
6
- * @return {Object} exports
7
- * @api public
8
- */
9
-
10
- function require(path, parent, orig) {
11
- var resolved = require.resolve(path);
12
-
13
- // lookup failed
14
- if (null == resolved) {
15
- orig = orig || path;
16
- parent = parent || 'root';
17
- var err = new Error('Failed to require "' + orig + '" from "' + parent + '"');
18
- err.path = orig;
19
- err.parent = parent;
20
- err.require = true;
21
- throw err;
22
- }
23
-
24
- var module = require.modules[resolved];
25
-
26
- // perform real require()
27
- // by invoking the module's
28
- // registered function
29
- if (!module.exports) {
30
- module.exports = {};
31
- module.client = module.component = true;
32
- module.call(this, module.exports, require.relative(resolved), module);
33
- }
34
-
35
- return module.exports;
36
- }
37
-
38
- /**
39
- * Registered modules.
40
- */
41
-
42
- require.modules = {};
43
-
44
- /**
45
- * Registered aliases.
46
- */
47
-
48
- require.aliases = {};
49
-
50
- /**
51
- * Resolve `path`.
52
- *
53
- * Lookup:
54
- *
55
- * - PATH/index.js
56
- * - PATH.js
57
- * - PATH
58
- *
59
- * @param {String} path
60
- * @return {String} path or null
61
- * @api private
62
- */
63
-
64
- require.resolve = function(path) {
65
- if (path.charAt(0) === '/') path = path.slice(1);
66
- var index = path + '/index.js';
67
-
68
- var paths = [
69
- path,
70
- path + '.js',
71
- path + '.json',
72
- path + '/index.js',
73
- path + '/index.json'
74
- ];
75
-
76
- for (var i = 0; i < paths.length; i++) {
77
- var path = paths[i];
78
- if (require.modules.hasOwnProperty(path)) return path;
79
- }
80
-
81
- if (require.aliases.hasOwnProperty(index)) {
82
- return require.aliases[index];
83
- }
84
- };
85
-
86
- /**
87
- * Normalize `path` relative to the current path.
88
- *
89
- * @param {String} curr
90
- * @param {String} path
91
- * @return {String}
92
- * @api private
93
- */
94
-
95
- require.normalize = function(curr, path) {
96
- var segs = [];
97
-
98
- if ('.' != path.charAt(0)) return path;
99
-
100
- curr = curr.split('/');
101
- path = path.split('/');
102
-
103
- for (var i = 0; i < path.length; ++i) {
104
- if ('..' == path[i]) {
105
- curr.pop();
106
- } else if ('.' != path[i] && '' != path[i]) {
107
- segs.push(path[i]);
108
- }
109
- }
110
-
111
- return curr.concat(segs).join('/');
112
- };
113
-
114
- /**
115
- * Register module at `path` with callback `definition`.
116
- *
117
- * @param {String} path
118
- * @param {Function} definition
119
- * @api private
120
- */
121
-
122
- require.register = function(path, definition) {
123
- require.modules[path] = definition;
124
- };
125
-
126
- /**
127
- * Alias a module definition.
128
- *
129
- * @param {String} from
130
- * @param {String} to
131
- * @api private
132
- */
133
-
134
- require.alias = function(from, to) {
135
- if (!require.modules.hasOwnProperty(from)) {
136
- throw new Error('Failed to alias "' + from + '", it does not exist');
137
- }
138
- require.aliases[to] = from;
139
- };
140
-
141
- /**
142
- * Return a require function relative to the `parent` path.
143
- *
144
- * @param {String} parent
145
- * @return {Function}
146
- * @api private
147
- */
148
-
149
- require.relative = function(parent) {
150
- var p = require.normalize(parent, '..');
151
-
152
- /**
153
- * lastIndexOf helper.
154
- */
155
-
156
- function lastIndexOf(arr, obj) {
157
- var i = arr.length;
158
- while (i--) {
159
- if (arr[i] === obj) return i;
160
- }
161
- return -1;
162
- }
163
-
164
- /**
165
- * The relative require() itself.
166
- */
167
-
168
- function localRequire(path) {
169
- var resolved = localRequire.resolve(path);
170
- return require(resolved, parent, path);
171
- }
172
-
173
- /**
174
- * Resolve relative to the parent.
175
- */
176
-
177
- localRequire.resolve = function(path) {
178
- var c = path.charAt(0);
179
- if ('/' == c) return path.slice(1);
180
- if ('.' == c) return require.normalize(p, path);
181
-
182
- // resolve deps by returning
183
- // the dep in the nearest "deps"
184
- // directory
185
- var segs = parent.split('/');
186
- var i = lastIndexOf(segs, 'deps') + 1;
187
- if (!i) i = 0;
188
- path = segs.slice(0, i + 1).join('/') + '/deps/' + path;
189
- return path;
190
- };
191
-
192
- /**
193
- * Check if module is defined at `path`.
194
- */
195
-
196
- localRequire.exists = function(path) {
197
- return require.modules.hasOwnProperty(localRequire.resolve(path));
198
- };
199
-
200
- return localRequire;
201
- };
202
- require.register("isarray/index.js", function(exports, require, module){
203
- module.exports = Array.isArray || function (arr) {
204
- return Object.prototype.toString.call(arr) == '[object Array]';
205
- };
206
-
207
- });
208
- require.alias("isarray/index.js", "isarray/index.js");
209
-
@@ -1,22 +0,0 @@
1
- Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
2
- Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
3
- DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,20 +0,0 @@
1
- # lodash._basetostring v3.0.1
2
-
3
- The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseToString` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
4
-
5
- ## Installation
6
-
7
- Using npm:
8
-
9
- ```bash
10
- $ {sudo -H} npm i -g npm
11
- $ npm i --save lodash._basetostring
12
- ```
13
-
14
- In Node.js/io.js:
15
-
16
- ```js
17
- var baseToString = require('lodash._basetostring');
18
- ```
19
-
20
- See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._basetostring) for more details.
@@ -1,22 +0,0 @@
1
- /**
2
- * lodash 3.0.1 (Custom Build) <https://lodash.com/>
3
- * Build: `lodash modern modularize exports="npm" -o ./`
4
- * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
5
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
6
- * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7
- * Available under MIT license <https://lodash.com/license>
8
- */
9
-
10
- /**
11
- * Converts `value` to a string if it's not one. An empty string is returned
12
- * for `null` or `undefined` values.
13
- *
14
- * @private
15
- * @param {*} value The value to process.
16
- * @returns {string} Returns the string.
17
- */
18
- function baseToString(value) {
19
- return value == null ? '' : (value + '');
20
- }
21
-
22
- module.exports = baseToString;