{ "_args": [ [ "buffer@^4.1.0", "/Users/tristan/dev/p4/depot/main/helix-web-services/source/clients/2016.1.0/javascript/node_modules/browserify" ] ], "_from": "buffer@>=4.1.0 <5.0.0", "_id": "buffer@4.5.1", "_inCache": true, "_installable": true, "_location": "/buffer", "_nodeVersion": "4.3.2", "_npmOperationalInternal": { "host": "packages-13-west.internal.npmjs.com", "tmp": "tmp/buffer-4.5.1.tgz_1458788498069_0.22429057699628174" }, "_npmUser": { "email": "feross@feross.org", "name": "feross" }, "_npmVersion": "2.14.12", "_phantomChildren": {}, "_requested": { "name": "buffer", "raw": "buffer@^4.1.0", "rawSpec": "^4.1.0", "scope": null, "spec": ">=4.1.0 <5.0.0", "type": "range" }, "_requiredBy": [ "/browserify" ], "_resolved": "https://registry.npmjs.org/buffer/-/buffer-4.5.1.tgz", "_shasum": "237b5bdef693c4c332385c1ded4ef4646e232d73", "_shrinkwrap": null, "_spec": "buffer@^4.1.0", "_where": "/Users/tristan/dev/p4/depot/main/helix-web-services/source/clients/2016.1.0/javascript/node_modules/browserify", "author": { "email": "feross@feross.org", "name": "Feross Aboukhadijeh", "url": "http://feross.org" }, "bugs": { "url": "https://github.com/feross/buffer/issues" }, "contributors": [ { "email": "toots@rastageeks.org", "name": "Romain Beauxis" }, { "email": "mail@substack.net", "name": "James Halliday" } ], "dependencies": { "base64-js": "^1.0.2", "ieee754": "^1.1.4", "isarray": "^1.0.0" }, "description": "Node.js Buffer API, for the browser", "devDependencies": { "benchmark": "^2.0.0", "browserify": "^13.0.0", "concat-stream": "^1.4.7", "hyperquest": "^1.0.1", "is-buffer": "^1.1.1", "is-nan": "^1.0.1", "split": "^1.0.0", "standard": "^6.0.5", "tape": "^4.0.0", "through2": "^2.0.0", "zuul": "^3.0.0" }, "directories": {}, "dist": { "shasum": "237b5bdef693c4c332385c1ded4ef4646e232d73", "tarball": "https://registry.npmjs.org/buffer/-/buffer-4.5.1.tgz" }, "gitHead": "b9781a9434aaaa3d3099e7281c15a6a5f51c9b51", "homepage": "https://github.com/feross/buffer", "jspm": { "map": { "./index.js": { "node": "@node/buffer" } } }, "keywords": [ "buffer", "browserify", "compatible", "browser", "arraybuffer", "uint8array", "dataview" ], "license": "MIT", "main": "index.js", "maintainers": [ { "email": "feross@feross.org", "name": "feross" } ], "name": "buffer", "optionalDependencies": {}, "readme": "ERROR: No README data found!", "repository": { "type": "git", "url": "git://github.com/feross/buffer.git" }, "scripts": { "perf": "browserify --debug perf/bracket-notation.js > perf/bundle.js && open perf/index.html", "perf-node": "node perf/bracket-notation.js && node perf/concat.js && node perf/copy-big.js && node perf/copy.js && node perf/new-big.js && node perf/new.js && node perf/readDoubleBE.js && node perf/readFloatBE.js && node perf/readUInt32LE.js && node perf/slice.js && node perf/writeFloatBE.js", "size": "browserify -r ./ | uglifyjs -c -m | gzip | wc -c", "test": "standard && node ./bin/test.js", "test-browser": "zuul -- test/*.js test/node/*.js", "test-browser-local": "zuul --local -- test/*.js test/node/*.js", "test-node": "tape test/*.js test/node/*.js test/node-es6/*.js && OBJECT_IMPL=true tape test/*.js test/node/*.js" }, "standard": { "ignore": [ "test/node/*.js", "test/node-es6/*.js", "test/_polyfill.js", "perf/*.js" ] }, "version": "4.5.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/buffer/package.json | |||||
#2 | 19053 | tjuricek |
Rebuild JavaScript Client SDK. The JavaScript client now is a "typed" approach that tends to be similar in approach to the other clients, based on the swagger definition for the platform version. Importantly, client SDK tests are individual scripts (that run under node) that are actually controlled via TestNG. This approach now lets us use a consistent test reporting format so we can at least collect reports from each of the jobs. The documentation is still in progress, that I want to validate as the tests are generated. |
||
#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. |