{ "_args": [ [ "reduce-component@1.0.1", "/Users/tristan/dev/p4/depot/main/helix-web-services/source/clients/2016.1.0/javascript/node_modules/superagent" ] ], "_from": "reduce-component@1.0.1", "_id": "reduce-component@1.0.1", "_inCache": true, "_installable": true, "_location": "/reduce-component", "_npmUser": { "email": "gjj391@gmail.com", "name": "gjohnson" }, "_npmVersion": "1.3.11", "_phantomChildren": {}, "_requested": { "name": "reduce-component", "raw": "reduce-component@1.0.1", "rawSpec": "1.0.1", "scope": null, "spec": "1.0.1", "type": "version" }, "_requiredBy": [ "/superagent" ], "_resolved": "https://registry.npmjs.org/reduce-component/-/reduce-component-1.0.1.tgz", "_shasum": "e0c93542c574521bea13df0f9488ed82ab77c5da", "_shrinkwrap": null, "_spec": "reduce-component@1.0.1", "_where": "/Users/tristan/dev/p4/depot/main/helix-web-services/source/clients/2016.1.0/javascript/node_modules/superagent", "bugs": { "url": "https://github.com/redventures/reduce/issues" }, "component": { "scripts": { "reduce": "index.js" } }, "dependencies": {}, "description": "Array reduce component", "devDependencies": { "mocha": "*", "should": "*" }, "directories": {}, "dist": { "shasum": "e0c93542c574521bea13df0f9488ed82ab77c5da", "tarball": "http://registry.npmjs.org/reduce-component/-/reduce-component-1.0.1.tgz" }, "homepage": "https://github.com/redventures/reduce#readme", "license": "Apache, Version 2.0", "main": "./index.js", "maintainers": [ { "email": "gjj391@gmail.com", "name": "gjohnson" } ], "name": "reduce-component", "optionalDependencies": {}, "readme": "\n# reduce\n\n array reduce\n\n## Installation\n\n```sh\n $ component install redventures/reduce\n```\n\n## API\n\n```js\nvar reduce = require('reduce');\n\nvar numbers = [0, 1, 2, 3, 4, 5];\n\nvar result = reduce(numbers, function(prev, curr){\n return prev + curr;\n});\n```\n \n## License\n\nCopyright 2012 Red Ventures\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n", "readmeFilename": "Readme.md", "repository": { "type": "git", "url": "git://github.com/redventures/reduce.git" }, "version": "1.0.1" }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 19553 | swellard | Move and rename clients | ||
//guest/perforce_software/helix-web-services/main/source/clients/2016.1.0/javascript/node_modules/reduce-component/package.json | |||||
#1 | 18810 | tjuricek |
First-pass at JavaScript client SDK. JavaScript requires Node with Gulp to "browserfy" the library. It's the easiest way I found to use the swagger-js project; bundle up a wrapping method. There is no JavaScript reference guide. The swagger-js doesn't really document what they do very well, actually. Overall I'm not particularly impressed by swagger-js, it was hard to even figure out what the right method syntax was. We may want to invest time in doing it better. This required setting CORS response headers, which are currently defaulted to a fairly insecure setting. |