-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
103 lines (103 loc) · 8.8 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"_args": [
[
{
"raw": "request-promise-core@https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.1.tgz",
"scope": null,
"escapedName": "request-promise-core",
"name": "request-promise-core",
"rawSpec": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.1.tgz",
"spec": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.1.tgz",
"type": "remote"
},
"/Users/jennyphan/AngularToolingSamples/Angular4/aboutMe-app/functions/node_modules/firebase-admin"
]
],
"_from": "request-promise-core@https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.1.tgz",
"_id": "request-promise-core@1.1.1",
"_inCache": true,
"_location": "/firebase-admin/request-promise-core",
"_phantomChildren": {},
"_requested": {
"raw": "request-promise-core@https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.1.tgz",
"scope": null,
"escapedName": "request-promise-core",
"name": "request-promise-core",
"rawSpec": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.1.tgz",
"spec": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.1.tgz",
"type": "remote"
},
"_requiredBy": [
"/firebase-admin",
"/firebase-admin/request-promise"
],
"_resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.1.tgz",
"_shasum": "3eee00b2c5aa83239cfb04c5700da36f81cd08b6",
"_shrinkwrap": null,
"_spec": "request-promise-core@https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.1.tgz",
"_where": "/Users/jennyphan/AngularToolingSamples/Angular4/aboutMe-app/functions/node_modules/firebase-admin",
"author": {
"name": "Nicolai Kamenzky",
"url": "https://github.com/analog-nico"
},
"bugs": {
"url": "https://github.com/request/promise-core/issues"
},
"dependencies": {
"lodash": "^4.13.1"
},
"description": "Core Promise support implementation for the simplified HTTP request client 'request'.",
"devDependencies": {
"@request/api": "^0.6.0",
"@request/client": "^0.1.0",
"bluebird": "~3.4.1",
"body-parser": "~1.15.2",
"chai": "~3.5.0",
"chalk": "~1.1.3",
"gulp": "~3.9.1",
"gulp-coveralls": "~0.1.4",
"gulp-eslint": "~2.1.0",
"gulp-istanbul": "~1.0.0",
"gulp-mocha": "~2.2.0",
"node-version": "~1.0.0",
"publish-please": "~2.1.4",
"request": "^2.34.0",
"rimraf": "~2.5.3",
"run-sequence": "~1.2.2",
"stealthy-require": "~1.0.0"
},
"engines": {
"node": ">=0.10.0"
},
"homepage": "https://github.com/request/promise-core#readme",
"keywords": [
"xhr",
"http",
"https",
"promise",
"request",
"then",
"thenable",
"core"
],
"license": "ISC",
"main": "./lib/plumbing.js",
"name": "request-promise-core",
"optionalDependencies": {},
"peerDependencies": {
"request": "^2.34"
},
"readme": "<a href=\"http://promisesaplus.com/\">\n <img src=\"https://promises-aplus.github.io/promises-spec/assets/logo-small.png\" align=\"right\" alt=\"Promises/A+ logo\" />\n</a>\n\n# request-promise-core\n\n[![Gitter](https://img.shields.io/badge/gitter-join_chat-blue.svg?style=flat-square&maxAge=2592000)](https://gitter.im/request/request-promise?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\n[![Build Status](https://img.shields.io/travis/request/promise-core/master.svg?style=flat-square&maxAge=2592000)](https://travis-ci.org/request/promise-core)\n[![Coverage Status](https://img.shields.io/coveralls/request/promise-core.svg?style=flat-square&maxAge=2592000)](https://coveralls.io/r/request/promise-core)\n[![Dependency Status](https://img.shields.io/david/request/promise-core.svg?style=flat-square&maxAge=2592000)](https://david-dm.org/request/promise-core)\n[![Known Vulnerabilities](https://snyk.io/test/npm/promise-core/badge.svg?style=flat-square&maxAge=2592000)](https://snyk.io/test/npm/promise-core)\n\n\nThis package is the core for the following packages:\n\n- [`request-promise`](https://github.com/request/request-promise)\n- [`request-promise-any`](https://github.com/request/request-promise-any)\n- [`request-promise-bluebird`](https://github.com/request/request-promise-bluebird)\n- [`request-promise-native`](https://github.com/request/request-promise-native)\n\n`request-promise-core` contains the core logic to add Promise support to [`request`](https://github.com/request/request).\n\nPlease use one of the libraries above. It is only recommended to use this library directly, if you have very specific requirements.\n\n## Installation for `request@^2.34`\n\nThis module is installed via npm:\n\n```\nnpm install --save request\nnpm install --save request-promise-core\n```\n\n`request` is defined as a peer-dependency and thus has to be installed separately.\n\n## Usage for `request@^2.34`\n\n``` js\n// 1. Load the request library\n\n// Only use a direct require if you are 100% sure that:\n// - Your project does not use request directly. That is without the Promise capabilities by calling require('request').\n// - Any of the installed libraries use request.\n// ...because Request's prototype will be patched in step 2.\n/* var request = require('request'); */\n\n// Instead use:\nvar stealthyRequire = require('stealthy-require');\nvar request = stealthyRequire(require.cache, function () {\n return require('request');\n});\n\n\n// 2. Add Promise support to request\n\nvar configure = require('request-promise-core/configure/request2');\n\nconfigure({\n request: request,\n\t// Pass your favorite ES6-compatible promise implementation\n PromiseImpl: Promise,\n\t// Expose all methods of the promise instance you want to call on the request(...) call\n expose: [\n 'then', // Allows to use request(...).then(...)\n 'catch', // Allows to use request(...).catch(...)\n 'promise' // Allows to use request(...).promise() which returns the promise instance\n ],\n // Optional: Pass a callback that is called within the Promise constructor\n constructorMixin: function (resolve, reject) {\n // `this` is the request object\n // Additional arguments may be passed depending on the PromiseImpl used\n }\n});\n\n\n// 3. Use request with its promise capabilities\n\n// E.g. crawl a web page:\nrequest('http://www.google.com')\n .then(function (htmlString) {\n // Process html...\n })\n .catch(function (err) {\n // Crawling failed...\n });\n```\n\n## Installation and Usage for `request@next`\n\n[Request Next](https://github.com/request/request/issues/1982) is still in alpha. However, `request-promise-core` is already designed to be compatible and ships with a configuration helper – `require('request-promise-core/configure/request-next')` – that is [used by `request-promise`](https://github.com/request/request-promise/blob/next/lib/rp.js) in its \"next\" branch.\n\n## Contributing\n\nTo set up your development environment:\n\n1. clone the repo to your desktop,\n2. in the shell `cd` to the main folder,\n3. hit `npm install`,\n4. hit `npm install gulp -g` if you haven't installed gulp globally yet, and\n5. run `gulp dev`. (Or run `node ./node_modules/.bin/gulp dev` if you don't want to install gulp globally.)\n\n`gulp dev` watches all source files and if you save some changes it will lint the code and execute all tests. The test coverage report can be viewed from `./coverage/lcov-report/index.html`.\n\nIf you want to debug a test you should use `gulp test-without-coverage` to run all tests without obscuring the code by the test coverage instrumentation.\n\n## Change History\n\n- 1.1.1 (2016-08-08)\n - Renamed package to `request-promise-core` because there where [too many issues](https://github.com/request/request-promise/issues/137) with the scoped package name `@request/promise-core`\n- 1.1.0 (2016-07-30)\n - Added `constructorMixin` option to enable [request/request-promise#123](https://github.com/request/request-promise/pull/123)\n- 1.0.0 (2016-07-15)\n - All tests green, ready for prime time\n- 1.0.0-rc.1 (2016-07-10)\n - Reimplementation of core logic based on `request-promise@3.0.0`\n - Plus `transform2xxOnly` option (fixes [request/request-promise#131](https://github.com/request/request-promise/issues/131))\n\n## License (ISC)\n\nIn case you never heard about the [ISC license](http://en.wikipedia.org/wiki/ISC_license) it is functionally equivalent to the MIT license.\n\nSee the [LICENSE file](LICENSE) for details.",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/request/promise-core.git"
},
"scripts": {
"prepublish": "publish-please guard",
"publish-please": "publish-please",
"test": "gulp ci",
"test-publish": "gulp ci-no-cov"
},
"version": "1.1.1"
}