package.json 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. {
  2. "name": "google-gax",
  3. "version": "4.4.1",
  4. "description": "Google API Extensions",
  5. "main": "build/src/index.js",
  6. "types": "build/src/index.d.ts",
  7. "files": [
  8. "build/src",
  9. "build/protos/",
  10. "!build/src/**/*.map"
  11. ],
  12. "dependencies": {
  13. "@grpc/grpc-js": "^1.10.9",
  14. "@grpc/proto-loader": "^0.7.13",
  15. "@types/long": "^4.0.0",
  16. "abort-controller": "^3.0.0",
  17. "duplexify": "^4.0.0",
  18. "google-auth-library": "^9.3.0",
  19. "node-fetch": "^2.7.0",
  20. "object-hash": "^3.0.0",
  21. "proto3-json-serializer": "^2.0.2",
  22. "retry-request": "^7.0.0",
  23. "uuid": "^9.0.1",
  24. "protobufjs": "^7.3.2"
  25. },
  26. "devDependencies": {
  27. "@types/uuid": "^9.0.7",
  28. "@babel/plugin-proposal-private-methods": "^7.18.6",
  29. "@compodoc/compodoc": "1.1.23",
  30. "@types/mocha": "^9.0.0",
  31. "@types/ncp": "^2.0.1",
  32. "@types/node": "^20.5.0",
  33. "@types/node-fetch": "^2.6.11",
  34. "@types/object-hash": "^3.0.0",
  35. "@types/proxyquire": "^1.3.28",
  36. "@types/pumpify": "^1.4.1",
  37. "@types/sinon": "^17.0.0",
  38. "@types/uglify-js": "^3.17.0",
  39. "c8": "^9.0.0",
  40. "cheerio": "1.0.0-rc.12",
  41. "codecov": "^3.1.0",
  42. "execa": "^5.0.0",
  43. "glob": "10.4.5",
  44. "google-proto-files": "^4.2.0",
  45. "gts": "^5.0.0",
  46. "jackspeak": "3.4.3",
  47. "linkinator": "^4.0.0",
  48. "lru-cache": "10.4.3",
  49. "long": "^4.0.0",
  50. "mkdirp": "^2.0.0",
  51. "mocha": "^9.0.0",
  52. "ncp": "^2.0.0",
  53. "null-loader": "^4.0.0",
  54. "protobufjs-cli": "1.1.3",
  55. "proxyquire": "^2.0.1",
  56. "pumpify": "^2.0.0",
  57. "sinon": "^18.0.0",
  58. "stream-events": "^1.0.4",
  59. "ts-loader": "^8.0.0",
  60. "typescript": "^5.1.6",
  61. "uglify-js": "^3.17.0",
  62. "walkdir": "^0.4.0",
  63. "webpack": "^4.0.0",
  64. "webpack-cli": "^4.0.0"
  65. },
  66. "scripts": {
  67. "docs": "compodoc src/",
  68. "pretest": "npm run prepare",
  69. "test": "c8 mocha build/test/unit",
  70. "lint": "gts check src samples test",
  71. "clean": "gts clean",
  72. "compile": "tsc -p . && cp src/*.json build/src && cp -r test/fixtures build/test && cp -r protos build/",
  73. "compile-operation-protos": "pbjs -t json google/longrunning/operations.proto -p ./protos > protos/operations.json && pbjs -t static-module -r operations_protos google/longrunning/operations.proto -p ./protos > protos/operations.js && pbts protos/operations.js -o protos/operations.d.ts",
  74. "compile-compute-operations-protos": "pbjs -t json google/longrunning/compute_operations.proto -p ./protos > protos/compute_operations.json && pbjs -t static-module -r compute_operations_protos google/longrunning/compute_operations.proto -p ./protos > protos/compute_operations.js && pbts protos/compute_operations.js -o protos/compute_operations.d.ts",
  75. "compile-iam-protos": "pbjs -t json google/iam/v1/iam_policy.proto google/iam/v1/options.proto google/iam/v1/policy.proto google/iam/v1/logging/audit_data.proto -p ./protos > protos/iam_service.json && pbjs -t static-module -r iam_protos google/iam/v1/iam_policy.proto google/iam/v1/options.proto google/iam/v1/policy.proto google/iam/v1/logging/audit_data.proto -p ./protos > protos/iam_service.js && pbts protos/iam_service.js -o protos/iam_service.d.ts",
  76. "compile-location-protos": "pbjs -t json google/cloud/location/locations.proto -p ./protos > protos/locations.json && pbjs -t static-module -r locations_protos google/cloud/location/locations.proto -p ./protos > protos/locations.js && pbts protos/locations.js -o protos/locations.d.ts",
  77. "compile-status-protos": "pbjs -t json google/rpc/status.proto google/rpc/error_details.proto -p ./protos > protos/status.json",
  78. "compile-http-protos": "pbjs -t static-module -r http_proto --keep-case google/api/http.proto -p ./protos > protos/http.js && pbts protos/http.js -o protos/http.d.ts",
  79. "fix": "gts fix",
  80. "prepare": "npm run compile && cd ../tools && npm i && npm run compile && cd ../gax && pwd && node ../tools/build/src/prepublish.js . && mkdirp build/protos && cp -r protos/* build/protos/ && npm run minify-proto-json",
  81. "system-test": "c8 mocha build/test/system-test --timeout 600000 && npm run test-application",
  82. "samples-test": "cd samples/ && npm link ../ && npm test && cd ../",
  83. "docs-test": "linkinator docs",
  84. "predocs-test": "npm run docs",
  85. "browser-test": "cd test/browser-test && npm run prefetch && npm install && npm test",
  86. "test-application": "cd test/test-application && npm run prefetch && npm install && npm start",
  87. "prelint": "cd samples; npm link ../; npm install",
  88. "precompile": "gts clean",
  89. "update-protos": "cd ../tools && npm i && npm run compile && cd ../gax && node ../tools/build/src/listProtos.js .",
  90. "minify-proto-json": "cd ../tools && npm i && npm run compile && cd ../gax && node ../tools/build/src/minify.js",
  91. "@compodoc/compodoc": "1.1.21"
  92. },
  93. "keywords": [
  94. "grpc"
  95. ],
  96. "repository": {
  97. "type": "git",
  98. "url": "https://github.com/googleapis/gax-nodejs.git",
  99. "directory": "gax"
  100. },
  101. "author": "Google API Authors",
  102. "license": "Apache-2.0",
  103. "bugs": {
  104. "url": "https://github.com/googleapis/gax-nodejs/issues"
  105. },
  106. "homepage": "https://github.com/googleapis/gax-nodejs#readme",
  107. "engines": {
  108. "node": ">=14"
  109. },
  110. "browser": "build/src/fallback.js"
  111. }