Showing
11 changed files
with
216 additions
and
167 deletions
1 | -const subReddits = [ | 1 | +const { MessageEmbed } = require('discord.js'); |
2 | - "r/aww" | 2 | +const randomPuppy = require('random-puppy'); |
3 | -] | ||
4 | 3 | ||
5 | module.exports = { | 4 | module.exports = { |
6 | name: 'cute', | 5 | name: 'cute', |
7 | - description: 'Embeds pictures pulled from listed subreddits', | 6 | + description: 'pulls cute animal pics and embed post', |
8 | execute(message, args, Discord){ | 7 | execute(message, args, Discord){ |
9 | - const randomIndex = randomInt(0, subReddits.length); | 8 | + let reddit = [ |
10 | - axios | 9 | + "aww", |
11 | - .get(`https://reddit.com/${subReddits[randomIndex]}/.json`) | 10 | + "puppies", |
12 | - .then((resp) => { | 11 | + "toebeans" |
13 | - const { | 12 | + ] |
14 | - title, | ||
15 | - url, | ||
16 | - subreddit_name_prefixed: subreddit | ||
17 | - } = getRandomPost(resp.data.data.children); | ||
18 | - }) | ||
19 | 13 | ||
20 | - const newEmbed = new Discord.cuteEmbed() | 14 | + let subreddit = reddit[Math.floor(Math.random()*reddit.length -1)]; |
21 | - .setTitle('${title}') | 15 | + |
22 | - .setImage('${url}'); | 16 | + const cuteEmbed = new MessageEmbed() |
23 | - } | 17 | + .setDescription("Some cute animals to blow away your anxieties!"); |
24 | -} | 18 | + |
19 | + randomPuppy(subreddit).then(reponse => { | ||
20 | + console.log(url); | ||
21 | + const cuteurl = url; | ||
22 | + | ||
23 | + cuteEmbed.setColor('#91B2C7'); | ||
24 | + cuteEmbed.setImage('${cuteurl}'); | ||
25 | + }); | ||
25 | 26 | ||
26 | -//random int generator | 27 | + message.channel.send(cuteEmbed); |
27 | -function randomInt(min, max) { | 28 | + } |
28 | - return (Math.floor(Math.random() * (max - min))) + min; | ||
29 | } | 29 | } |
30 | -//random post generator | ||
31 | -function getRandomPost(posts) { | ||
32 | - const randomIndex = randomInt(0, posts.length); | ||
33 | - return posts[randomIndex].data; | ||
34 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -47,6 +47,14 @@ | ... | @@ -47,6 +47,14 @@ |
47 | "form-data": "^4.0.0" | 47 | "form-data": "^4.0.0" |
48 | } | 48 | } |
49 | }, | 49 | }, |
50 | + "node_modules/capture-stack-trace": { | ||
51 | + "version": "1.0.1", | ||
52 | + "resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.1.tgz", | ||
53 | + "integrity": "sha512-mYQLZnx5Qt1JgB1WEiMCf2647plpGeQ2NMR/5L0HNZzGQo4fuSPnK+wjfPnKZV0aiJDgzmWqqkV/g7JD+DW0qw==", | ||
54 | + "engines": { | ||
55 | + "node": ">=0.10.0" | ||
56 | + } | ||
57 | + }, | ||
50 | "node_modules/combined-stream": { | 58 | "node_modules/combined-stream": { |
51 | "version": "1.0.8", | 59 | "version": "1.0.8", |
52 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", | 60 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", |
... | @@ -58,6 +66,17 @@ | ... | @@ -58,6 +66,17 @@ |
58 | "node": ">= 0.8" | 66 | "node": ">= 0.8" |
59 | } | 67 | } |
60 | }, | 68 | }, |
69 | + "node_modules/create-error-class": { | ||
70 | + "version": "3.0.2", | ||
71 | + "resolved": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz", | ||
72 | + "integrity": "sha512-gYTKKexFO3kh200H1Nit76sRwRtOY32vQd3jpAQKpLtZqyNsSQNfI4N7o3eP2wUjV35pTWKRYqFUDBvUha/Pkw==", | ||
73 | + "dependencies": { | ||
74 | + "capture-stack-trace": "^1.0.0" | ||
75 | + }, | ||
76 | + "engines": { | ||
77 | + "node": ">=0.10.0" | ||
78 | + } | ||
79 | + }, | ||
61 | "node_modules/delayed-stream": { | 80 | "node_modules/delayed-stream": { |
62 | "version": "1.0.0", | 81 | "version": "1.0.0", |
63 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", | 82 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", |
... | @@ -85,6 +104,30 @@ | ... | @@ -85,6 +104,30 @@ |
85 | "node": ">=12.0.0" | 104 | "node": ">=12.0.0" |
86 | } | 105 | } |
87 | }, | 106 | }, |
107 | + "node_modules/discord.js/node_modules/node-fetch": { | ||
108 | + "version": "2.6.7", | ||
109 | + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", | ||
110 | + "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", | ||
111 | + "dependencies": { | ||
112 | + "whatwg-url": "^5.0.0" | ||
113 | + }, | ||
114 | + "engines": { | ||
115 | + "node": "4.x || >=6.0.0" | ||
116 | + }, | ||
117 | + "peerDependencies": { | ||
118 | + "encoding": "^0.1.0" | ||
119 | + }, | ||
120 | + "peerDependenciesMeta": { | ||
121 | + "encoding": { | ||
122 | + "optional": true | ||
123 | + } | ||
124 | + } | ||
125 | + }, | ||
126 | + "node_modules/duplexer3": { | ||
127 | + "version": "0.1.4", | ||
128 | + "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", | ||
129 | + "integrity": "sha512-CEj8FwwNA4cVH2uFCoHUrmojhYh1vmCdOaneKJXwkeY1i9jnlslVo9dx+hQ5Hl9GnH/Bwy/IjxAyOePyPKYnzA==" | ||
130 | + }, | ||
88 | "node_modules/event-target-shim": { | 131 | "node_modules/event-target-shim": { |
89 | "version": "5.0.1", | 132 | "version": "5.0.1", |
90 | "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", | 133 | "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", |
... | @@ -93,6 +136,11 @@ | ... | @@ -93,6 +136,11 @@ |
93 | "node": ">=6" | 136 | "node": ">=6" |
94 | } | 137 | } |
95 | }, | 138 | }, |
139 | + "node_modules/eventemitter3": { | ||
140 | + "version": "1.2.0", | ||
141 | + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-1.2.0.tgz", | ||
142 | + "integrity": "sha512-DOFqA1MF46fmZl2xtzXR3MPCRsXqgoFqdXcrCVYM3JNnfUeHTm/fh/v/iU7gBFpwkuBmoJPAm5GuhdDfSEJMJA==" | ||
143 | + }, | ||
96 | "node_modules/follow-redirects": { | 144 | "node_modules/follow-redirects": { |
97 | "version": "1.15.1", | 145 | "version": "1.15.1", |
98 | "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.1.tgz", | 146 | "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.1.tgz", |
... | @@ -125,6 +173,67 @@ | ... | @@ -125,6 +173,67 @@ |
125 | "node": ">= 6" | 173 | "node": ">= 6" |
126 | } | 174 | } |
127 | }, | 175 | }, |
176 | + "node_modules/get-stream": { | ||
177 | + "version": "3.0.0", | ||
178 | + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", | ||
179 | + "integrity": "sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==", | ||
180 | + "engines": { | ||
181 | + "node": ">=4" | ||
182 | + } | ||
183 | + }, | ||
184 | + "node_modules/got": { | ||
185 | + "version": "6.7.1", | ||
186 | + "resolved": "https://registry.npmjs.org/got/-/got-6.7.1.tgz", | ||
187 | + "integrity": "sha512-Y/K3EDuiQN9rTZhBvPRWMLXIKdeD1Rj0nzunfoi0Yyn5WBEbzxXKU9Ub2X41oZBagVWOBU3MuDonFMgPWQFnwg==", | ||
188 | + "dependencies": { | ||
189 | + "create-error-class": "^3.0.0", | ||
190 | + "duplexer3": "^0.1.4", | ||
191 | + "get-stream": "^3.0.0", | ||
192 | + "is-redirect": "^1.0.0", | ||
193 | + "is-retry-allowed": "^1.0.0", | ||
194 | + "is-stream": "^1.0.0", | ||
195 | + "lowercase-keys": "^1.0.0", | ||
196 | + "safe-buffer": "^5.0.1", | ||
197 | + "timed-out": "^4.0.0", | ||
198 | + "unzip-response": "^2.0.1", | ||
199 | + "url-parse-lax": "^1.0.0" | ||
200 | + }, | ||
201 | + "engines": { | ||
202 | + "node": ">=4" | ||
203 | + } | ||
204 | + }, | ||
205 | + "node_modules/is-redirect": { | ||
206 | + "version": "1.0.0", | ||
207 | + "resolved": "https://registry.npmjs.org/is-redirect/-/is-redirect-1.0.0.tgz", | ||
208 | + "integrity": "sha512-cr/SlUEe5zOGmzvj9bUyC4LVvkNVAXu4GytXLNMr1pny+a65MpQ9IJzFHD5vi7FyJgb4qt27+eS3TuQnqB+RQw==", | ||
209 | + "engines": { | ||
210 | + "node": ">=0.10.0" | ||
211 | + } | ||
212 | + }, | ||
213 | + "node_modules/is-retry-allowed": { | ||
214 | + "version": "1.2.0", | ||
215 | + "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz", | ||
216 | + "integrity": "sha512-RUbUeKwvm3XG2VYamhJL1xFktgjvPzL0Hq8C+6yrWIswDy3BIXGqCxhxkc30N9jqK311gVU137K8Ei55/zVJRg==", | ||
217 | + "engines": { | ||
218 | + "node": ">=0.10.0" | ||
219 | + } | ||
220 | + }, | ||
221 | + "node_modules/is-stream": { | ||
222 | + "version": "1.1.0", | ||
223 | + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", | ||
224 | + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", | ||
225 | + "engines": { | ||
226 | + "node": ">=0.10.0" | ||
227 | + } | ||
228 | + }, | ||
229 | + "node_modules/lowercase-keys": { | ||
230 | + "version": "1.0.1", | ||
231 | + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", | ||
232 | + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", | ||
233 | + "engines": { | ||
234 | + "node": ">=0.10.0" | ||
235 | + } | ||
236 | + }, | ||
128 | "node_modules/mime-db": { | 237 | "node_modules/mime-db": { |
129 | "version": "1.52.0", | 238 | "version": "1.52.0", |
130 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", | 239 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", |
... | @@ -144,23 +253,12 @@ | ... | @@ -144,23 +253,12 @@ |
144 | "node": ">= 0.6" | 253 | "node": ">= 0.6" |
145 | } | 254 | } |
146 | }, | 255 | }, |
147 | - "node_modules/node-fetch": { | 256 | + "node_modules/prepend-http": { |
148 | - "version": "2.6.7", | 257 | + "version": "1.0.4", |
149 | - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", | 258 | + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", |
150 | - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", | 259 | + "integrity": "sha512-PhmXi5XmoyKw1Un4E+opM2KcsJInDvKyuOumcjjw3waw86ZNjHwVUOOWLc4bCzLdcKNaWBH9e99sbWzDQsVaYg==", |
151 | - "dependencies": { | ||
152 | - "whatwg-url": "^5.0.0" | ||
153 | - }, | ||
154 | "engines": { | 260 | "engines": { |
155 | - "node": "4.x || >=6.0.0" | 261 | + "node": ">=0.10.0" |
156 | - }, | ||
157 | - "peerDependencies": { | ||
158 | - "encoding": "^0.1.0" | ||
159 | - }, | ||
160 | - "peerDependenciesMeta": { | ||
161 | - "encoding": { | ||
162 | - "optional": true | ||
163 | - } | ||
164 | } | 262 | } |
165 | }, | 263 | }, |
166 | "node_modules/prism-media": { | 264 | "node_modules/prism-media": { |
... | @@ -188,11 +286,51 @@ | ... | @@ -188,11 +286,51 @@ |
188 | } | 286 | } |
189 | } | 287 | } |
190 | }, | 288 | }, |
289 | + "node_modules/random-puppy": { | ||
290 | + "version": "1.1.0", | ||
291 | + "resolved": "https://registry.npmjs.org/random-puppy/-/random-puppy-1.1.0.tgz", | ||
292 | + "integrity": "sha512-IK0ev5l+3cy8iZGO/sx5j0lP+TUBMVlidh7d7RGgCttD+qOO+frTYpQ0yr37A4inSDTwvE1QwdmgvpQ1tjIgFQ==", | ||
293 | + "dependencies": { | ||
294 | + "eventemitter3": "^1.2.0", | ||
295 | + "got": "^6.3.0", | ||
296 | + "unique-random-array": "^1.0.0" | ||
297 | + }, | ||
298 | + "engines": { | ||
299 | + "node": ">=4.0.0" | ||
300 | + } | ||
301 | + }, | ||
302 | + "node_modules/safe-buffer": { | ||
303 | + "version": "5.2.1", | ||
304 | + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", | ||
305 | + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", | ||
306 | + "funding": [ | ||
307 | + { | ||
308 | + "type": "github", | ||
309 | + "url": "https://github.com/sponsors/feross" | ||
310 | + }, | ||
311 | + { | ||
312 | + "type": "patreon", | ||
313 | + "url": "https://www.patreon.com/feross" | ||
314 | + }, | ||
315 | + { | ||
316 | + "type": "consulting", | ||
317 | + "url": "https://feross.org/support" | ||
318 | + } | ||
319 | + ] | ||
320 | + }, | ||
191 | "node_modules/setimmediate": { | 321 | "node_modules/setimmediate": { |
192 | "version": "1.0.5", | 322 | "version": "1.0.5", |
193 | "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", | 323 | "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", |
194 | "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=" | 324 | "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=" |
195 | }, | 325 | }, |
326 | + "node_modules/timed-out": { | ||
327 | + "version": "4.0.1", | ||
328 | + "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", | ||
329 | + "integrity": "sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8=", | ||
330 | + "engines": { | ||
331 | + "node": ">=0.10.0" | ||
332 | + } | ||
333 | + }, | ||
196 | "node_modules/tr46": { | 334 | "node_modules/tr46": { |
197 | "version": "0.0.3", | 335 | "version": "0.0.3", |
198 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", | 336 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", |
... | @@ -203,6 +341,44 @@ | ... | @@ -203,6 +341,44 @@ |
203 | "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz", | 341 | "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz", |
204 | "integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==" | 342 | "integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==" |
205 | }, | 343 | }, |
344 | + "node_modules/unique-random": { | ||
345 | + "version": "1.0.0", | ||
346 | + "resolved": "https://registry.npmjs.org/unique-random/-/unique-random-1.0.0.tgz", | ||
347 | + "integrity": "sha1-zj4iTIJCzTOg53sNcYDXfmti0MQ=", | ||
348 | + "engines": { | ||
349 | + "node": ">=0.10.0" | ||
350 | + } | ||
351 | + }, | ||
352 | + "node_modules/unique-random-array": { | ||
353 | + "version": "1.0.1", | ||
354 | + "resolved": "https://registry.npmjs.org/unique-random-array/-/unique-random-array-1.0.1.tgz", | ||
355 | + "integrity": "sha512-z9J/SV8CUIhIRROcHe9YUoAT6XthUJt0oUyLGgobiXJprDP9O9dsErNevvSaAv5BkhwFEVPn6nIEOKeNE6Ck1Q==", | ||
356 | + "dependencies": { | ||
357 | + "unique-random": "^1.0.0" | ||
358 | + }, | ||
359 | + "engines": { | ||
360 | + "node": ">=0.10.0" | ||
361 | + } | ||
362 | + }, | ||
363 | + "node_modules/unzip-response": { | ||
364 | + "version": "2.0.1", | ||
365 | + "resolved": "https://registry.npmjs.org/unzip-response/-/unzip-response-2.0.1.tgz", | ||
366 | + "integrity": "sha1-0vD3N9FrBhXnKmk17QQhRXLVb5c=", | ||
367 | + "engines": { | ||
368 | + "node": ">=4" | ||
369 | + } | ||
370 | + }, | ||
371 | + "node_modules/url-parse-lax": { | ||
372 | + "version": "1.0.0", | ||
373 | + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz", | ||
374 | + "integrity": "sha1-evjzA2Rem9eaJy56FKxovAYJ2nM=", | ||
375 | + "dependencies": { | ||
376 | + "prepend-http": "^1.0.1" | ||
377 | + }, | ||
378 | + "engines": { | ||
379 | + "node": ">=0.10.0" | ||
380 | + } | ||
381 | + }, | ||
206 | "node_modules/webidl-conversions": { | 382 | "node_modules/webidl-conversions": { |
207 | "version": "3.0.1", | 383 | "version": "3.0.1", |
208 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", | 384 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", | ... | ... |
node_modules/node-fetch/LICENSE.md
deleted
100644 → 0
1 | -The MIT License (MIT) | ||
2 | - | ||
3 | -Copyright (c) 2016 David Frank | ||
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 all | ||
13 | -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 THE | ||
21 | -SOFTWARE. | ||
22 | - |
node_modules/node-fetch/README.md
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/node-fetch/browser.js
deleted
100644 → 0
1 | -"use strict"; | ||
2 | - | ||
3 | -// ref: https://github.com/tc39/proposal-global | ||
4 | -var getGlobal = function () { | ||
5 | - // the only reliable means to get the global object is | ||
6 | - // `Function('return this')()` | ||
7 | - // However, this causes CSP violations in Chrome apps. | ||
8 | - if (typeof self !== 'undefined') { return self; } | ||
9 | - if (typeof window !== 'undefined') { return window; } | ||
10 | - if (typeof global !== 'undefined') { return global; } | ||
11 | - throw new Error('unable to locate global object'); | ||
12 | -} | ||
13 | - | ||
14 | -var global = getGlobal(); | ||
15 | - | ||
16 | -module.exports = exports = global.fetch; | ||
17 | - | ||
18 | -// Needed for TypeScript and Webpack. | ||
19 | -if (global.fetch) { | ||
20 | - exports.default = global.fetch.bind(global); | ||
21 | -} | ||
22 | - | ||
23 | -exports.Headers = global.Headers; | ||
24 | -exports.Request = global.Request; | ||
25 | -exports.Response = global.Response; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
This diff is collapsed. Click to expand it.
node_modules/node-fetch/lib/index.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/node-fetch/package.json
deleted
100644 → 0
1 | -{ | ||
2 | - "name": "node-fetch", | ||
3 | - "version": "2.6.7", | ||
4 | - "description": "A light-weight module that brings window.fetch to node.js", | ||
5 | - "main": "lib/index.js", | ||
6 | - "browser": "./browser.js", | ||
7 | - "module": "lib/index.mjs", | ||
8 | - "files": [ | ||
9 | - "lib/index.js", | ||
10 | - "lib/index.mjs", | ||
11 | - "lib/index.es.js", | ||
12 | - "browser.js" | ||
13 | - ], | ||
14 | - "engines": { | ||
15 | - "node": "4.x || >=6.0.0" | ||
16 | - }, | ||
17 | - "scripts": { | ||
18 | - "build": "cross-env BABEL_ENV=rollup rollup -c", | ||
19 | - "prepare": "npm run build", | ||
20 | - "test": "cross-env BABEL_ENV=test mocha --require babel-register --throw-deprecation test/test.js", | ||
21 | - "report": "cross-env BABEL_ENV=coverage nyc --reporter lcov --reporter text mocha -R spec test/test.js", | ||
22 | - "coverage": "cross-env BABEL_ENV=coverage nyc --reporter json --reporter text mocha -R spec test/test.js && codecov -f coverage/coverage-final.json" | ||
23 | - }, | ||
24 | - "repository": { | ||
25 | - "type": "git", | ||
26 | - "url": "https://github.com/bitinn/node-fetch.git" | ||
27 | - }, | ||
28 | - "keywords": [ | ||
29 | - "fetch", | ||
30 | - "http", | ||
31 | - "promise" | ||
32 | - ], | ||
33 | - "author": "David Frank", | ||
34 | - "license": "MIT", | ||
35 | - "bugs": { | ||
36 | - "url": "https://github.com/bitinn/node-fetch/issues" | ||
37 | - }, | ||
38 | - "homepage": "https://github.com/bitinn/node-fetch", | ||
39 | - "dependencies": { | ||
40 | - "whatwg-url": "^5.0.0" | ||
41 | - }, | ||
42 | - "peerDependencies": { | ||
43 | - "encoding": "^0.1.0" | ||
44 | - }, | ||
45 | - "peerDependenciesMeta": { | ||
46 | - "encoding": { | ||
47 | - "optional": true | ||
48 | - } | ||
49 | - }, | ||
50 | - "devDependencies": { | ||
51 | - "@ungap/url-search-params": "^0.1.2", | ||
52 | - "abort-controller": "^1.1.0", | ||
53 | - "abortcontroller-polyfill": "^1.3.0", | ||
54 | - "babel-core": "^6.26.3", | ||
55 | - "babel-plugin-istanbul": "^4.1.6", | ||
56 | - "babel-preset-env": "^1.6.1", | ||
57 | - "babel-register": "^6.16.3", | ||
58 | - "chai": "^3.5.0", | ||
59 | - "chai-as-promised": "^7.1.1", | ||
60 | - "chai-iterator": "^1.1.1", | ||
61 | - "chai-string": "~1.3.0", | ||
62 | - "codecov": "3.3.0", | ||
63 | - "cross-env": "^5.2.0", | ||
64 | - "form-data": "^2.3.3", | ||
65 | - "is-builtin-module": "^1.0.0", | ||
66 | - "mocha": "^5.0.0", | ||
67 | - "nyc": "11.9.0", | ||
68 | - "parted": "^0.1.1", | ||
69 | - "promise": "^8.0.3", | ||
70 | - "resumer": "0.0.0", | ||
71 | - "rollup": "^0.63.4", | ||
72 | - "rollup-plugin-babel": "^3.0.7", | ||
73 | - "string-to-arraybuffer": "^1.0.2", | ||
74 | - "teeny-request": "3.7.0" | ||
75 | - } | ||
76 | -} |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment