{"bugs":{"url":"https://github.com/architect/asap/issues"},"dist":{"shasum":"50740d60e69e9da3b64fc9b052c48c3f18ef8a9f","tarball":"https://registry.npmjs.org/@architect/asap/-/asap-5.0.3-RC.0.tgz","fileCount":17,"integrity":"sha512-YV7zwPKycxzfM31MTtd0ZAZIKLioe+QgziW7SMgUJT/eTP/WcQjg0niECo6UBu23H+oW+e6t+Z0dOkMf2Yv4eA==","signatures":[{"sig":"MEYCIQDpy8CyI7bb+rNkpyoDk1n1MCjFLv/PM9YWQ0JG8TQz+wIhAOKegFlXhC0Qh0/qTIl2iwx7yY82MLevUbVq+b7ZcWJ8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31062,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfqgCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrFrQ/8CzgRFm9GIahw3NZfzjJ1vL7zy9bYFkAwqj/KqUVmwd3sb3+g\r\nfttgIqgQP+fljrIRd1Ag72Qw7r4o6g11kRFkmvd2/uuGqN51wEtaBjqG/GIA\r\nIbKEBW+r5ko5lYxwcN/QEqVSnH3vxIP0nJJfVqnDDFOvPQEd+B0EpOCTw0tp\r\n7H1DLNlHTXpJVg39GGf25OVHmfKttUu+Q58THlSpk9dpX7Hq+xJJITGKLcwo\r\no8+eu7y5ch9qI5+3247n4Xxb+kjoeIwCUuEbmIdk2MXA3hqKQn6UWXBti6M7\r\nvPH3YMX9py3BnsjACG4PLmJb2TOOTdIkUzd2h0Y7AGf9RgT/KRZ5o4Jvct6O\r\ni+o7X6hhy5Yh6R/xKWDKZNt0duAj9tPLH1jqxh+EdsQjSJuNcqV4Ntk/5RMu\r\nhr20lk3bihCP8ftjuzfR39Fq3B9Jl8djSFN+1VQgK1CHtnXQz7AfYGQTUL3i\r\nO/6vIkPPcWVodC9U83fts0ncUxc+vM3Ip9tlQzslEp1LowTIC7J15BI5+nhf\r\ncUsau/1JRhHeBLhVEqOkBpZSlUnC/mUxkjjaxysC4Vx+0luMlIUzEUlW0KZj\r\ncUJebn+kTSbvpSNZbQbkqTldSiOhVC/oYwgL0ThQx8ySZB+ZNQFHawTXmLqM\r\notVkw1ymqz2NcULxLe4IPLOjpROUsH4zPbs=\r\n=lRZA\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":"57524286b75e95b8a51904db43b1c380f463c8f0","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":"8.19.2","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":"18.12.0","eslintConfig":{"extends":"@architect/eslint-config"},"_hasShrinkwrap":false,"readmeFilename":"readme.md","devDependencies":{"nyc":"~15.1.0","tape":"~5.6.1","eslint":"~8.27.0","aws-sdk":"2.1055.0","mock-fs":"~5.2.0","tap-spec":"~5.0.0","cross-env":"7.0.3","mime-types":"~2.1.35","proxyquire":"~2.1.3","@aws-sdk/client-s3":"~3.216.0","@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.3-RC.0_1669244930401_0.7405494543672915","host":"s3://npm-registry-packages"},"_id":"@architect/asap@5.0.3-RC.0","version":"5.0.3-RC.0"}