{"bugs":{"url":"https://github.com/architect/asap/issues"},"dist":{"shasum":"e3274dee9e87af1af00fc0a9ebe1dbb126dbd455","tarball":"https://registry.npmjs.org/@architect/asap/-/asap-5.0.3-RC.1.tgz","fileCount":17,"integrity":"sha512-IVssCghbioG8ORqLR9DfXgNwgXlhVptpFXVmCtqQ/WHaUKlki5LmMUm7hnYeMpvex5LLtnInTsxbXJ11nf0Ddw==","signatures":[{"sig":"MEQCIGXhWlftzz1UF6abEhljisrjQIZmpuZnqgbtVCViugcYAiApFqkdp8H+XQ0eHILXsvxQzkBtlfgLaI+ZdJEK8ag/jA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31471,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfrfIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpSjg//YJSfNyLfsWPL6A/twa1evZGlAjQHDFhWaBFKdLEtfvs8w2R1\r\nPjwXJpPj3wSnOc8gfQWpJuPn/Oxs9of0tcF8JB1rNgfJQqeYRRfWrawAXzdN\r\naD7F+Ejt4VoLWRmwmJkNZalz/P732eYnRHGecMb+qQx/9YM29bdcEx64q6Y1\r\nBEaLDxIpyHgtHHodnRO91GSCfDnunrDDgiuTmXl4KGoMlUBaEooRBL+1un5n\r\n7+aY2EWbZ/MA6Uxm17HPJRYCVEtaXn4fdY2L1X92dXsvmARHHrGbys+xqpGn\r\nMOND/jTFtbPF8a2oK1XWxxKMQH43H4Ktm8xukDwSwdWWfXk9W+7alZ3gYgy5\r\ny3IJT+a2VTfTdB7rf9yr0BEwRSdsSoCoXuGBbhUhp3FHlXtT7camJj9cVB+8\r\nwWVv4FeM2WwB8L+WIsbjgKgP4ZEjsRyNje5ZG7ujVFmsA0ju1cDeB5SRyuDe\r\npCUCrxHkvtczzHqPBzj3QsNb7j/Bq6DV6ayq1KY0k3jm9Zdpng4U4EgSJyOr\r\nF0LR4www0uSj5CdbOKBzgWuIZ/7OU8xqcqtEc9iYa3kkbA8qzXiUPsI9kBFW\r\nKf4TIYXJKU6eATB+aWgCFdrN2ZFYndpUAigMZ653Uqw7TVONIJvolV6Ubmb4\r\nEW6NFm+DvuT0VFENSFL9kx/NWQM3vcaGuvk=\r\n=OB0D\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":"836453eabe1ae8f10f59935e6e14f31db4b0d7e2","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.1_1669248968709_0.2401553651968118","host":"s3://npm-registry-packages"},"_id":"@architect/asap@5.0.3-RC.1","version":"5.0.3-RC.1"}