{"bugs":{"url":"https://github.com/architect/asap/issues"},"dist":{"shasum":"3e6e1ed1c0a71a2efb6eaf54d45c7b26cf361501","tarball":"https://registry.npmjs.org/@architect/asap/-/asap-5.0.0-RC.0.tgz","fileCount":16,"integrity":"sha512-JQM3LfYWzJC5PpLltMKVoczrKhSsd2HBG1Yc7Jhee/AVurBFPtyplve7UheImQyYVvytZbRI4OngptZey/3C2Q==","signatures":[{"sig":"MEQCIBwfAI/D9EJY/jU7UPQkIWgFFk64icdYOh+1UYuP/SZ0AiAKVlJ2VNWBhdRkkNSxdzzUeOUf3mIU+Itdiy+CCSMTIQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30140,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8LVSCRA9TVsSAnZWagAAPasP/1ahrX9jZ5BUdlYwBD9j\nRRW+SIB3ohheYZ/BEZYDvl/fTOLHRMZuOi+m1IUGRDal+xGCJGqtABcC+5iW\n4AJncHTvys8ss8opRyTIwHGErRzDmk1b4G398hejPIgt33kDRwTOsub53cJa\n8PDXVUqqPFuzybn4T/wZMb5/2zAkpFBlKbfrjU24lR81igrt50kwCx5YTYai\nZllozaiMbBBpVaxwzqGlmDvElvPFNsnac2IPT4/G71jnebbxVJLJju3nKuVS\n6+rFDm4G5sO/DD/hTmg2lBdnMI7PnZGC1qjhIMX66NwcluxaeA/ApZUjn1Tc\ni1KYNZj72+Jj9uwpMq1WGdpdwEe7nG9VNgPXf1PzvsTY/YCJOAUDKLGQtJ+c\nIFeHORktrF2D6uFR9o8J94SzE+mv7ZhhfxUUnPfxCNjrARFfKO/pOPz7Rd8E\nixOChk4WTKMZbC2WMM+phB/hDKRa3YqY2Oc9WPH7nqVqKyLrTGUjl7ixnVts\n7y1QOdFpK+z0DWekpOvKDpoaalQkbOr6XvSoWvoM43iW0YPmilO6vDhXtx9g\nLMDP5suRjWP8IVv0qOOdLDoWm2h64obh4cdgHRb6V7BCIGoZ/rw8QkzntnjT\nVc/hS4tWjJQX1tOQAF9iA/GhvC8VeRnB70II9BxmOyZ9okdMsLDQrQHry7fx\nFuHK\r\n=jkAG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/asap.js","name":"@architect/asap","readme":"# @architect/asap\n\n>  Architect Static Asset Proxy (ASAP) - a helpful library for Lambda-based static asset delivery\n\n[![GitHub CI status](https://github.com/architect/asap/workflows/Node%20CI/badge.svg)](https://github.com/architect/asap/actions?query=workflow%3A%22Node+CI%22)\n\n# Usage\n\n## Module\n\nCall ASAP within your handler function manually like so:\n\n```javascript\nlet asap = require('@architect/asap')\n\n// All config is optional!\nmodule.exports = asap({\n  // Alias assets to different filenames\n  alias: {\n    '/an-asset.jpg': '/a-different-filename.jpg',\n    '/a-path': '/a-different-path',\n  },\n  // Pass your own fingerprinted static asset manifest (defaults to Arc-generated static.json)\n  assets: { 'some-file.gif': 'some-file-a1b2c3.gif' },\n  // Set a custom bucket configuration (defaults to Arc-generated buckets)\n  bucket: {\n    staging: 'staging-bucket-name',\n    production: 'production-bucket-name',\n    folder: 'some-bucket-subfolder',\n  },\n  // Override the content-aware cache-control header\n  cacheControl: 'max-age=0',\n  // Manually set response headers\n  headers: { 'some-header': 'ok=true' },\n  // Return null if asset is not found (defaults to `false`)\n  passthru: true,\n  // Engage SPA mode (defaults to `false`)\n  spa: false,\n})\n```\n\n\n## Lambda handler\n\nUse ASAP as the handler for your Lambda! If you're using Architect, this is done automatically for you when you don't define a root handler for your `@http` pragma.\n\nIf using ASAP with non-Architect projects, just point your Lambda's source directory to `src/`, and make sure you set the following two env vars:\n- `ARC_ENV`: `staging` or `production`\n- `ARC_STATIC_BUCKET`: the S3 bucket name where your assets are stored\n","engines":{"node":">=12"},"gitHead":"f2045e9241928267f4ad517ebf408b03e1c7d397","license":"Apache-2.0","scripts":{"rc":"npm version prerelease --preid RC","lint":"eslint . --fix","test":"npm run lint && npm run coverage","vendor":"node scripts/generate-mime-files.js","coverage":"nyc --reporter=lcov --reporter=text npm run test:unit","test:unit":"cross-env tape 'test/unit/**/*-test.js' | tap-spec"},"_npmUser":{"name":"architectci","email":"ryan+architectci@begin.com"},"homepage":"https://github.com/architect/asap#readme","keywords":["aws","lambda","amazon","serverless","cloud","cloudfunctions","apigateway","dynamodb","s3","sns","api gateway","framework"],"repository":{"url":"git+https://github.com/architect/asap.git","type":"git"},"_npmVersion":"6.14.15","description":"Architect Static Asset Proxy (ASAP) - a helpful library for Lambda-based static asset delivery","directories":{},"maintainers":[{"name":"brianleroux","email":"b@brian.io"},{"name":"dam","email":"kristoferjoseph@gmail.com"},{"name":"kborchers","email":"kris.borchers@gmail.com"},{"name":"ryanblock","email":"rblock+npm@gmail.com"},{"name":"architectci","email":"ryan+architectci@begin.com"},{"name":"filmaj","email":"maj.fil@gmail.com"}],"_nodeVersion":"12.22.9","eslintConfig":{"extends":"@architect/eslint-config"},"_hasShrinkwrap":false,"readmeFilename":"readme.md","devDependencies":{"nyc":"~15.1.0","tape":"~5.4.1","eslint":"~8.7.0","aws-sdk":"2.880.0","mock-fs":"~5.1.2","tap-spec":"~5.0.0","cross-env":"7.0.3","mime-types":"~2.1.34","proxyquire":"~2.1.3","@architect/eslint-config":"~2.0.1","@architect/req-res-fixtures":"git+https://github.com/architect/req-res-fixtures.git"},"_npmOperationalInternal":{"tmp":"tmp/asap_5.0.0-RC.0_1643165010648_0.8251481956504794","host":"s3://npm-registry-packages"},"_id":"@architect/asap@5.0.0-RC.0","version":"5.0.0-RC.0"}