{ "_args": [ [ "array-reduce@~0.0.0", "/Users/tristan/dev/p4/depot/main/helix-web-services/source/clients/2016.1.0/javascript/node_modules/shell-quote" ] ], "_from": "array-reduce@>=0.0.0 <0.1.0", "_id": "array-reduce@0.0.0", "_inCache": true, "_installable": true, "_location": "/array-reduce", "_npmUser": { "email": "mail@substack.net", "name": "substack" }, "_npmVersion": "1.3.21", "_phantomChildren": {}, "_requested": { "name": "array-reduce", "raw": "array-reduce@~0.0.0", "rawSpec": "~0.0.0", "scope": null, "spec": ">=0.0.0 <0.1.0", "type": "range" }, "_requiredBy": [ "/shell-quote" ], "_resolved": "https://registry.npmjs.org/array-reduce/-/array-reduce-0.0.0.tgz", "_shasum": "173899d3ffd1c7d9383e4479525dbe278cab5f2b", "_shrinkwrap": null, "_spec": "array-reduce@~0.0.0", "_where": "/Users/tristan/dev/p4/depot/main/helix-web-services/source/clients/2016.1.0/javascript/node_modules/shell-quote", "author": { "email": "mail@substack.net", "name": "James Halliday", "url": "http://substack.net" }, "bugs": { "url": "https://github.com/substack/array-reduce/issues" }, "dependencies": {}, "description": "`[].reduce()` for old browsers", "devDependencies": { "tape": "~2.3.2" }, "directories": {}, "dist": { "shasum": "173899d3ffd1c7d9383e4479525dbe278cab5f2b", "tarball": "http://registry.npmjs.org/array-reduce/-/array-reduce-0.0.0.tgz" }, "homepage": "https://github.com/substack/array-reduce", "keywords": [ "array", "reduce", "es5", "ie6", "ie7", "ie8", "fold" ], "license": "MIT", "main": "index.js", "maintainers": [ { "email": "mail@substack.net", "name": "substack" } ], "name": "array-reduce", "optionalDependencies": {}, "readme": "# array-reduce\n\n`[].reduce()` for old browsers\n\n[![testling badge](https://ci.testling.com/substack/array-reduce.png)](https://ci.testling.com/substack/array-reduce)\n\n[![build status](https://secure.travis-ci.org/substack/array-reduce.png)](http://travis-ci.org/substack/array-reduce)\n\n# example\n\n```\nvar reduce = require('array-reduce');\nvar xs = [ 1, 2, 3, 4 ];\nvar sum = reduce(xs, function (acc, x) { return acc + x }, 0);\nconsole.log(sum);\n```\n\noutput:\n\n```\n10\n```\n\n# methods\n\n``` js\nvar reduce = require('array-reduce')\n```\n\n## var res = reduce(xs, f, init)\n\nCreate a result `res` by folding `acc = f(acc, xs[i], i)` over each element in\nthe array `xs` at element `i`. If `init` is given, the first `acc` value is\n`init`, otherwise `xs[0]` is used.\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install array-reduce\n```\n\n# license\n\nMIT\n", "readmeFilename": "readme.markdown", "repository": { "type": "git", "url": "git://github.com/substack/array-reduce.git" }, "scripts": { "test": "tape test/*.js" }, "testling": { "browsers": [ "ie/8..latest", "firefox/16..latest", "firefox/nightly", "chrome/22..latest", "chrome/canary", "opera/12..latest", "opera/next", "safari/5.1..latest", "ipad/6.0..latest", "iphone/6.0..latest", "android-browser/4.2..latest" ], "files": "test/*.js" }, "version": "0.0.0" }
# | 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/array-reduce/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. |