UNPKG

@profusion/apollo-federation-upload

Version:

This library makes it easier to support file uploads to your federated micro-services. It uses the [Apollo](https://www.apollographql.com/docs/apollo-server/data/file-uploads/) server's solution. It works by simply redirecting the file uploaded stream to

77 lines (76 loc) 2.21 kB
{ "name": "@profusion/apollo-federation-upload", "version": "4.2.0", "main": "./build/index.js", "types": "./build/index.d.ts", "author": "Guilherme Iscaro (iscaro@profusion.mobi)", "repository": "https://github.com/profusion/apollo-federation-file-upload", "license": "MIT", "private": false, "keywords": [ "apollo", "federation", "file", "gateway", "graphQL", "upload" ], "scripts": { "prepare": "husky install", "check-types": "tsc --noEmit", "run-lint": "eslint --max-warnings=0 --ext .ts lib", "lint": "run-s check-types run-lint", "build": "tsc", "prepublishOnly": "tsc", "test": "nyc ts-node ./test/index.ts" }, "dependencies": { "form-data": "^4.0.0", "graphql-upload": "^15.0.1", "lodash.clonedeep": "^4.5.0", "lodash.set": "^4.3.2" }, "resolutions": { "**/strip-ansi": "^6.0.0", "**/string-width": "^4.2.3", "**/wrap-ansi": "^6.2.0" }, "peerDependencies": { "@apollo/gateway": "^2.1.1" }, "devDependencies": { "@apollo/gateway": "^2.1.1", "@apollo/subgraph": "^2.0.4", "@commitlint/cli": "^17.0.2", "@commitlint/config-angular": "^17.0.0", "@istanbuljs/nyc-config-typescript": "^1.0.2", "@types/lodash.clonedeep": "^4.5.7", "@types/lodash.set": "^4.3.7", "@types/make-fetch-happen": "^9.0.2", "@types/newman": "^5.3.0", "@types/node": "^17.0.40", "@typescript-eslint/eslint-plugin": "^6.0.0", "@typescript-eslint/parser": "^6.0.0", "apollo-graphql": "^0.9.7", "apollo-server-core": "^3.12.0", "apollo-server-env": "^4.2.1", "apollo-server-express": "^3.12.0", "eslint": "^8.44.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^8.8.0", "eslint-import-resolver-typescript": "^3.5.5", "eslint-plugin-filenames": "^1.3.2", "eslint-plugin-import": "^2.27.5", "eslint-plugin-prettier": "^4.2.1", "express": "4.18.1", "graphql": "^16.5.0", "husky": "^8.0.1", "newman": "^5.3.2", "npm-run-all": "^4.1.5", "nyc": "^15.1.0", "prettier": "^2.6.2", "source-map-support": "^0.5.21", "ts-node": "^10.8.1", "typescript": "^4.7.3" } }